@blues-inc/notehub-js 6.7.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/README.md +154 -150
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +12 -7
  4. package/dist/api/AuthorizationApi.js +11 -50
  5. package/dist/api/DescriptionApi.js +49 -33
  6. package/dist/api/DeviceApi.js +277 -134
  7. package/dist/api/EventApi.js +67 -200
  8. package/dist/api/ExternalDevicesApi.js +19 -13
  9. package/dist/api/JobsApi.js +57 -39
  10. package/dist/api/MonitorApi.js +27 -17
  11. package/dist/api/OrganizationApi.js +25 -19
  12. package/dist/api/ProjectApi.js +259 -165
  13. package/dist/api/RouteApi.js +54 -39
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +73 -63
  16. package/dist/api/WebhookApi.js +67 -45
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +3 -3
  20. package/dist/model/Alert.js +14 -9
  21. package/dist/model/AlertDataInner.js +9 -4
  22. package/dist/model/AlertNotificationsInner.js +14 -4
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +5 -5
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +2 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +3 -2
  33. package/dist/model/CloneProjectRequest.js +7 -7
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +4 -3
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +37 -25
  38. package/dist/model/CreateProductRequest.js +7 -6
  39. package/dist/model/CreateProjectRequest.js +5 -5
  40. package/dist/model/CreateProjectSecretRequest.js +5 -5
  41. package/dist/model/CreateUpdateRepository.js +3 -1
  42. package/dist/model/CreatedRepository.js +5 -5
  43. package/dist/model/CurrentFirmware.js +1 -1
  44. package/dist/model/DFUEnv.js +1 -1
  45. package/dist/model/DFUState.js +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +4 -4
  48. package/dist/model/DataSetField.js +2 -2
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +6 -6
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +36 -8
  58. package/dist/model/DeviceDfuHistory.js +12 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +14 -1
  61. package/dist/model/DeviceDfuStateMachine.js +2 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  63. package/dist/model/DeviceDfuStatus.js +12 -3
  64. package/dist/model/DeviceDfuStatusPage.js +14 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +5 -5
  67. package/dist/model/DeviceTowerInfo.js +6 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +29 -6
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +16 -7
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +6 -6
  79. package/dist/model/Fleet.js +11 -10
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +14 -1
  82. package/dist/model/GetApiUsage200Response.js +2 -2
  83. package/dist/model/GetDataUsage200Response.js +2 -2
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +5 -3
  96. package/dist/model/GetDevicePublicKeys200Response.js +14 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -1
  98. package/dist/model/GetDeviceSessions200Response.js +14 -1
  99. package/dist/model/GetDevices200Response.js +14 -1
  100. package/dist/model/GetEvents200Response.js +14 -1
  101. package/dist/model/GetJobRuns200Response.js +1 -1
  102. package/dist/model/GetJobs200Response.js +1 -1
  103. package/dist/model/GetNotefile200Response.js +1 -1
  104. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
  105. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
  106. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
  107. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
  108. package/dist/model/GetOrganizations200Response.js +1 -1
  109. package/dist/model/GetProducts200Response.js +1 -1
  110. package/dist/model/GetProjectMembers200Response.js +1 -1
  111. package/dist/model/GetProjectSecretsResponse.js +1 -1
  112. package/dist/model/GetProjects200Response.js +1 -1
  113. package/dist/model/GetRouteLogsUsage200Response.js +2 -2
  114. package/dist/model/GetSessionsUsage200Response.js +3 -3
  115. package/dist/model/GetWebhooks200Response.js +1 -1
  116. package/dist/model/GoogleRoute.js +1 -1
  117. package/dist/model/HealthLog.js +7 -4
  118. package/dist/model/HttpRoute.js +1 -1
  119. package/dist/model/Job.js +1 -1
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +3 -3
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +13 -7
  127. package/dist/model/Monitor.js +18 -12
  128. package/dist/model/MonitorAlertRoutesInner.js +60 -14
  129. package/dist/model/MqttRoute.js +1 -1
  130. package/dist/model/Note.js +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +2 -1
  133. package/dist/model/NotefileSchema.js +5 -3
  134. package/dist/model/NotehubRoute.js +7 -3
  135. package/dist/model/NotehubRouteSummary.js +6 -1
  136. package/dist/model/OAuth2Error.js +1 -1
  137. package/dist/model/OAuth2TokenResponse.js +1 -1
  138. package/dist/model/Organization.js +5 -3
  139. package/dist/model/Product.js +8 -4
  140. package/dist/model/Project.js +7 -4
  141. package/dist/model/ProjectMember.js +5 -4
  142. package/dist/model/ProjectSecret.js +7 -7
  143. package/dist/model/ProvisionDeviceRequest.js +5 -5
  144. package/dist/model/ProxyRoute.js +1 -1
  145. package/dist/model/QubitroRoute.js +1 -1
  146. package/dist/model/RadRoute.js +1 -1
  147. package/dist/model/Repository.js +3 -3
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
  150. package/dist/model/RepositoryTokenRequest.js +1 -1
  151. package/dist/model/RepositoryTokenResponse.js +1 -1
  152. package/dist/model/RouteLog.js +9 -9
  153. package/dist/model/RouteTransformSettings.js +1 -1
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +1 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +6 -4
  159. package/dist/model/SignalDevice200Response.js +2 -2
  160. package/dist/model/SimUsage.js +1 -1
  161. package/dist/model/Skill.js +207 -0
  162. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
  163. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
  164. package/dist/model/SkillSummary.js +205 -0
  165. package/dist/model/SkillWrite.js +128 -0
  166. package/dist/model/SkillWriteResult.js +153 -0
  167. package/dist/model/SlackBearerNotification.js +31 -8
  168. package/dist/model/SlackRoute.js +1 -1
  169. package/dist/model/SlackWebHookNotification.js +31 -8
  170. package/dist/model/SnowflakeRoute.js +1 -1
  171. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  172. package/dist/model/ThingworxRoute.js +1 -1
  173. package/dist/model/TowerLocation.js +1 -1
  174. package/dist/model/TwilioNotification.js +167 -0
  175. package/dist/model/TwilioRoute.js +1 -1
  176. package/dist/model/UpdateFleetRequest.js +7 -6
  177. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  178. package/dist/model/UpdateProjectSecretRequest.js +3 -3
  179. package/dist/model/UploadMetadata.js +1 -1
  180. package/dist/model/UsageApiData.js +1 -1
  181. package/dist/model/UsageData.js +1 -1
  182. package/dist/model/UsageEventsData.js +1 -1
  183. package/dist/model/UsageEventsResponse.js +2 -2
  184. package/dist/model/UsageRouteLogsData.js +2 -2
  185. package/dist/model/UsageSessionsData.js +1 -1
  186. package/dist/model/UserDfuStateMachine.js +1 -1
  187. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  188. package/dist/model/UserFirmwareInfo.js +1 -1
  189. package/dist/model/WebhookSettings.js +4 -4
  190. package/package.json +1 -1
  191. package/dist/api/BillingAccountApi.js +0 -167
  192. package/dist/model/LoginRequest.js +0 -103
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CreateFleetRequest model module.
29
29
  * @module model/CreateFleetRequest
30
- * @version 6.7.0
30
+ * @version 7.0.0
31
31
  */
32
32
  var CreateFleetRequest = /*#__PURE__*/function () {
33
33
  /**
@@ -109,18 +109,19 @@ var CreateFleetRequest = /*#__PURE__*/function () {
109
109
  CreateFleetRequest.prototype["connectivity_assurance"] = undefined;
110
110
 
111
111
  /**
112
- * The label, or name, for the Fleet.
112
+ * Fleet name shown in Notehub. Required.
113
113
  * @member {String} label
114
114
  */
115
115
  CreateFleetRequest.prototype["label"] = undefined;
116
116
 
117
117
  /**
118
- * JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
118
+ * JSONata expression for smart fleet membership: `1` adds the device, `-1` removes it, and `0` or an error leaves it unchanged.
119
119
  * @member {String} smart_rule
120
120
  */
121
121
  CreateFleetRequest.prototype["smart_rule"] = undefined;
122
122
 
123
123
  /**
124
+ * If `true`, `smart_rule` adds and removes devices. Default `false`.
124
125
  * @member {Boolean} smart_rule_enabled
125
126
  */
126
127
  CreateFleetRequest.prototype["smart_rule_enabled"] = undefined;
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateJob201Response model module.
31
31
  * @module model/CreateJob201Response
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var CreateJob201Response = /*#__PURE__*/function () {
35
35
  /**
@@ -31,15 +31,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The CreateMonitor model module.
33
33
  * @module model/CreateMonitor
34
- * @version 6.7.0
34
+ * @version 7.0.0
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
38
38
  * Constructs a new <code>CreateMonitor</code>.
39
39
  * @alias module:model/CreateMonitor
40
40
  * @implements module:model/Monitor
41
- * @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>}
42
- * @param name {String}
41
+ * @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>} Where to send notifications, by email, Slack or Twilio. Required to create a monitor.
42
+ * @param name {String} Monitor name. Required to create a monitor.
43
43
  * @param threshold {Number} The value that condition_type compares against. For heartbeat monitors this is seconds of inactivity; for usage monitors it is bytes.
44
44
  */
45
45
  function CreateMonitor(alertRoutes, name, threshold) {
@@ -249,13 +249,13 @@ var CreateMonitor = /*#__PURE__*/function () {
249
249
  CreateMonitor.RequiredProperties = ["alert_routes", "name", "threshold"];
250
250
 
251
251
  /**
252
- * Aggregate function to apply to the selected values before applying the condition. [none, avg, max, min, sum, count]
252
+ * How values in `aggregate_window` are combined before the comparison. - `none`: compare each value on its own - `avg`, `max`, `min`, `sum`: compare the average, largest, smallest or total - `count`: compare the number of matching events; needs no `source_selector`
253
253
  * @member {module:model/CreateMonitor.AggregateFunctionEnum} aggregate_function
254
254
  */
255
255
  CreateMonitor.prototype["aggregate_function"] = undefined;
256
256
 
257
257
  /**
258
- * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
258
+ * The time window for `aggregate_function`, such as `10m` or `5h30m40s`.
259
259
  * @member {String} aggregate_window
260
260
  */
261
261
  CreateMonitor.prototype["aggregate_window"] = undefined;
@@ -267,17 +267,19 @@ CreateMonitor.prototype["aggregate_window"] = undefined;
267
267
  CreateMonitor.prototype["alert"] = undefined;
268
268
 
269
269
  /**
270
+ * Where to send notifications, by email, Slack or Twilio. Required to create a monitor.
270
271
  * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
271
272
  */
272
273
  CreateMonitor.prototype["alert_routes"] = undefined;
273
274
 
274
275
  /**
275
- * A comparison operation to apply to the value selected by the source_selector. Required for event and usage monitors; set automatically for heartbeat monitors. [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
276
+ * How the value is compared with `threshold`. Required for event and usage monitors; heartbeat monitors always use `greater_than_or_equal_to`.
276
277
  * @member {module:model/CreateMonitor.ConditionTypeEnum} condition_type
277
278
  */
278
279
  CreateMonitor.prototype["condition_type"] = undefined;
279
280
 
280
281
  /**
282
+ * Free-form description.
281
283
  * @member {String} description
282
284
  * @default ''
283
285
  */
@@ -290,34 +292,37 @@ CreateMonitor.prototype["description"] = "";
290
292
  CreateMonitor.prototype["disabled"] = undefined;
291
293
 
292
294
  /**
295
+ * Watch only devices in these fleets (FleetUIDs).
293
296
  * @member {Array.<String>} fleet_filter
294
297
  */
295
298
  CreateMonitor.prototype["fleet_filter"] = undefined;
296
299
 
297
300
  /**
298
- * The last time the monitor was evaluated and routed.
301
+ * When the monitor last sent notifications.
299
302
  * @member {String} last_routed_at
300
303
  */
301
304
  CreateMonitor.prototype["last_routed_at"] = undefined;
302
305
 
303
306
  /**
307
+ * Monitor name. Required to create a monitor.
304
308
  * @member {String} name
305
309
  */
306
310
  CreateMonitor.prototype["name"] = undefined;
307
311
 
308
312
  /**
313
+ * Watch only events from these notefiles, e.g. `data.qo`. Not allowed for heartbeat monitors.
309
314
  * @member {Array.<String>} notefile_filter
310
315
  */
311
316
  CreateMonitor.prototype["notefile_filter"] = undefined;
312
317
 
313
318
  /**
314
- * Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
319
+ * With an `aggregate_function`, aggregate each device on its own, so one device can raise an alert. If false, aggregate across all devices.
315
320
  * @member {Boolean} per_device
316
321
  */
317
322
  CreateMonitor.prototype["per_device"] = undefined;
318
323
 
319
324
  /**
320
- * The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
325
+ * How long to wait after notifying before notifying again, such as `10m` or `5h30m`. Defaults to `5m`.
321
326
  * @member {String} routing_cooldown_period
322
327
  */
323
328
  CreateMonitor.prototype["routing_cooldown_period"] = undefined;
@@ -329,13 +334,13 @@ CreateMonitor.prototype["routing_cooldown_period"] = undefined;
329
334
  CreateMonitor.prototype["silenced"] = undefined;
330
335
 
331
336
  /**
332
- * A dot-delimited path to a single numeric value within the event body.
337
+ * Dot path to a numeric value inside the event body, such as `temperature`, not `body.temperature`. Required for event monitors unless `aggregate_function` is `count`.
333
338
  * @member {String} source_selector
334
339
  */
335
340
  CreateMonitor.prototype["source_selector"] = undefined;
336
341
 
337
342
  /**
338
- * The type of source to monitor. Defaults to \"event\".
343
+ * What the monitor watches. Defaults to `event` on create. - `event`: a numeric value in event bodies, read with `source_selector` - `heartbeat`: devices that go `threshold` seconds without activity - `usage`: cellular or satellite data usage
339
344
  * @member {module:model/CreateMonitor.SourceTypeEnum} source_type
340
345
  * @default 'event'
341
346
  */
@@ -348,36 +353,37 @@ CreateMonitor.prototype["source_type"] = "event";
348
353
  CreateMonitor.prototype["threshold"] = undefined;
349
354
 
350
355
  /**
356
+ * MonitorUID, `monitor:` followed by a UUID.
351
357
  * @member {String} uid
352
358
  */
353
359
  CreateMonitor.prototype["uid"] = undefined;
354
360
 
355
361
  /**
356
- * For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
362
+ * For usage monitors, what usage is summed over. - `device`: each device on its own - `fleet`: each fleet in `fleet_filter` on its own. Requires `fleet_filter`, or the monitor never fires.
357
363
  * @member {String} usage_scope
358
364
  */
359
365
  CreateMonitor.prototype["usage_scope"] = undefined;
360
366
 
361
367
  /**
362
- * For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
368
+ * For usage monitors, which data to watch. - `cellular`: cellular data - `satellite`: satellite data
363
369
  * @member {String} usage_type
364
370
  */
365
371
  CreateMonitor.prototype["usage_type"] = undefined;
366
372
 
367
373
  /**
368
- * For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
374
+ * For usage monitors, the rolling window to sum usage over, in days, e.g. `30`.
369
375
  * @member {Number} usage_window
370
376
  */
371
377
  CreateMonitor.prototype["usage_window"] = undefined;
372
378
 
373
379
  // Implement Monitor interface:
374
380
  /**
375
- * Aggregate function to apply to the selected values before applying the condition. [none, avg, max, min, sum, count]
381
+ * How values in `aggregate_window` are combined before the comparison. - `none`: compare each value on its own - `avg`, `max`, `min`, `sum`: compare the average, largest, smallest or total - `count`: compare the number of matching events; needs no `source_selector`
376
382
  * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
377
383
  */
378
384
  _Monitor["default"].prototype["aggregate_function"] = undefined;
379
385
  /**
380
- * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
386
+ * The time window for `aggregate_function`, such as `10m` or `5h30m40s`.
381
387
  * @member {String} aggregate_window
382
388
  */
383
389
  _Monitor["default"].prototype["aggregate_window"] = undefined;
@@ -387,15 +393,17 @@ _Monitor["default"].prototype["aggregate_window"] = undefined;
387
393
  */
388
394
  _Monitor["default"].prototype["alert"] = undefined;
389
395
  /**
396
+ * Where to send notifications, by email, Slack or Twilio. Required to create a monitor.
390
397
  * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
391
398
  */
392
399
  _Monitor["default"].prototype["alert_routes"] = undefined;
393
400
  /**
394
- * A comparison operation to apply to the value selected by the source_selector. Required for event and usage monitors; set automatically for heartbeat monitors. [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
401
+ * How the value is compared with `threshold`. Required for event and usage monitors; heartbeat monitors always use `greater_than_or_equal_to`.
395
402
  * @member {module:model/Monitor.ConditionTypeEnum} condition_type
396
403
  */
397
404
  _Monitor["default"].prototype["condition_type"] = undefined;
398
405
  /**
406
+ * Free-form description.
399
407
  * @member {String} description
400
408
  * @default ''
401
409
  */
@@ -406,29 +414,32 @@ _Monitor["default"].prototype["description"] = "";
406
414
  */
407
415
  _Monitor["default"].prototype["disabled"] = undefined;
408
416
  /**
417
+ * Watch only devices in these fleets (FleetUIDs).
409
418
  * @member {Array.<String>} fleet_filter
410
419
  */
411
420
  _Monitor["default"].prototype["fleet_filter"] = undefined;
412
421
  /**
413
- * The last time the monitor was evaluated and routed.
422
+ * When the monitor last sent notifications.
414
423
  * @member {String} last_routed_at
415
424
  */
416
425
  _Monitor["default"].prototype["last_routed_at"] = undefined;
417
426
  /**
427
+ * Monitor name. Required to create a monitor.
418
428
  * @member {String} name
419
429
  */
420
430
  _Monitor["default"].prototype["name"] = undefined;
421
431
  /**
432
+ * Watch only events from these notefiles, e.g. `data.qo`. Not allowed for heartbeat monitors.
422
433
  * @member {Array.<String>} notefile_filter
423
434
  */
424
435
  _Monitor["default"].prototype["notefile_filter"] = undefined;
425
436
  /**
426
- * Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
437
+ * With an `aggregate_function`, aggregate each device on its own, so one device can raise an alert. If false, aggregate across all devices.
427
438
  * @member {Boolean} per_device
428
439
  */
429
440
  _Monitor["default"].prototype["per_device"] = undefined;
430
441
  /**
431
- * The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
442
+ * How long to wait after notifying before notifying again, such as `10m` or `5h30m`. Defaults to `5m`.
432
443
  * @member {String} routing_cooldown_period
433
444
  */
434
445
  _Monitor["default"].prototype["routing_cooldown_period"] = undefined;
@@ -438,12 +449,12 @@ _Monitor["default"].prototype["routing_cooldown_period"] = undefined;
438
449
  */
439
450
  _Monitor["default"].prototype["silenced"] = undefined;
440
451
  /**
441
- * A dot-delimited path to a single numeric value within the event body.
452
+ * Dot path to a numeric value inside the event body, such as `temperature`, not `body.temperature`. Required for event monitors unless `aggregate_function` is `count`.
442
453
  * @member {String} source_selector
443
454
  */
444
455
  _Monitor["default"].prototype["source_selector"] = undefined;
445
456
  /**
446
- * The type of source to monitor. Defaults to \"event\".
457
+ * What the monitor watches. Defaults to `event` on create. - `event`: a numeric value in event bodies, read with `source_selector` - `heartbeat`: devices that go `threshold` seconds without activity - `usage`: cellular or satellite data usage
447
458
  * @member {module:model/Monitor.SourceTypeEnum} source_type
448
459
  * @default 'event'
449
460
  */
@@ -454,21 +465,22 @@ _Monitor["default"].prototype["source_type"] = "event";
454
465
  */
455
466
  _Monitor["default"].prototype["threshold"] = undefined;
456
467
  /**
468
+ * MonitorUID, `monitor:` followed by a UUID.
457
469
  * @member {String} uid
458
470
  */
459
471
  _Monitor["default"].prototype["uid"] = undefined;
460
472
  /**
461
- * For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
473
+ * For usage monitors, what usage is summed over. - `device`: each device on its own - `fleet`: each fleet in `fleet_filter` on its own. Requires `fleet_filter`, or the monitor never fires.
462
474
  * @member {String} usage_scope
463
475
  */
464
476
  _Monitor["default"].prototype["usage_scope"] = undefined;
465
477
  /**
466
- * For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
478
+ * For usage monitors, which data to watch. - `cellular`: cellular data - `satellite`: satellite data
467
479
  * @member {String} usage_type
468
480
  */
469
481
  _Monitor["default"].prototype["usage_type"] = undefined;
470
482
  /**
471
- * For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
483
+ * For usage monitors, the rolling window to sum usage over, in days, e.g. `30`.
472
484
  * @member {Number} usage_window
473
485
  */
474
486
  _Monitor["default"].prototype["usage_window"] = undefined;
@@ -29,14 +29,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProductRequest model module.
31
31
  * @module model/CreateProductRequest
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var CreateProductRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CreateProductRequest</code>.
37
37
  * @alias module:model/CreateProductRequest
38
- * @param label {String} The label for the Product.
39
- * @param productUid {String} The requested uid for the Product. Will be prefixed with the user's reversed email.
38
+ * @param label {String} Product name shown in Notehub.
39
+ * @param productUid {String} Suffix of the new ProductUID. Must start with a lowercase letter and contain only lowercase letters, digits, `.`, `_` or `-`.
40
40
  */
41
41
  function CreateProductRequest(label, productUid) {
42
42
  _classCallCheck(this, CreateProductRequest);
@@ -127,24 +127,25 @@ var CreateProductRequest = /*#__PURE__*/function () {
127
127
  CreateProductRequest.RequiredProperties = ["label", "product_uid"];
128
128
 
129
129
  /**
130
+ * FleetUIDs that devices are added to when first provisioned with this ProductUID.
130
131
  * @member {Array.<String>} auto_provision_fleets
131
132
  */
132
133
  CreateProductRequest.prototype["auto_provision_fleets"] = undefined;
133
134
 
134
135
  /**
135
- * If `true`, devices provisioned to this product will be automatically disabled by default.
136
+ * If `true`, devices provisioned with this ProductUID start out disabled.
136
137
  * @member {Boolean} disable_devices_by_default
137
138
  */
138
139
  CreateProductRequest.prototype["disable_devices_by_default"] = undefined;
139
140
 
140
141
  /**
141
- * The label for the Product.
142
+ * Product name shown in Notehub.
142
143
  * @member {String} label
143
144
  */
144
145
  CreateProductRequest.prototype["label"] = undefined;
145
146
 
146
147
  /**
147
- * The requested uid for the Product. Will be prefixed with the user's reversed email.
148
+ * Suffix of the new ProductUID. Must start with a lowercase letter and contain only lowercase letters, digits, `.`, `_` or `-`.
148
149
  * @member {String} product_uid
149
150
  */
150
151
  CreateProductRequest.prototype["product_uid"] = undefined;
@@ -29,14 +29,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProjectRequest model module.
31
31
  * @module model/CreateProjectRequest
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var CreateProjectRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CreateProjectRequest</code>.
37
37
  * @alias module:model/CreateProjectRequest
38
- * @param billingAccountUid {String} The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
39
- * @param label {String} The label for the project.
38
+ * @param billingAccountUid {String} UID of the organization that owns and is billed for the project. List them with `GetBillingAccounts`.
39
+ * @param label {String} Project name shown in Notehub.
40
40
  */
41
41
  function CreateProjectRequest(billingAccountUid, label) {
42
42
  _classCallCheck(this, CreateProjectRequest);
@@ -117,13 +117,13 @@ var CreateProjectRequest = /*#__PURE__*/function () {
117
117
  CreateProjectRequest.RequiredProperties = ["billing_account_uid", "label"];
118
118
 
119
119
  /**
120
- * The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
120
+ * UID of the organization that owns and is billed for the project. List them with `GetBillingAccounts`.
121
121
  * @member {String} billing_account_uid
122
122
  */
123
123
  CreateProjectRequest.prototype["billing_account_uid"] = undefined;
124
124
 
125
125
  /**
126
- * The label for the project.
126
+ * Project name shown in Notehub.
127
127
  * @member {String} label
128
128
  */
129
129
  CreateProjectRequest.prototype["label"] = undefined;
@@ -29,14 +29,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProjectSecretRequest model module.
31
31
  * @module model/CreateProjectSecretRequest
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var CreateProjectSecretRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CreateProjectSecretRequest</code>.
37
37
  * @alias module:model/CreateProjectSecretRequest
38
- * @param name {String} The secret name (alphanumeric and underscores only).
39
- * @param value {String} The secret value (encrypted at rest, never returned after creation).
38
+ * @param name {String} 1 to 64 letters, digits or underscores. Routes and alerts reference the secret as `[$$name]`.
39
+ * @param value {String} The secret value. Encrypted at rest and never returned.
40
40
  */
41
41
  function CreateProjectSecretRequest(name, value) {
42
42
  _classCallCheck(this, CreateProjectSecretRequest);
@@ -117,13 +117,13 @@ var CreateProjectSecretRequest = /*#__PURE__*/function () {
117
117
  CreateProjectSecretRequest.RequiredProperties = ["name", "value"];
118
118
 
119
119
  /**
120
- * The secret name (alphanumeric and underscores only).
120
+ * 1 to 64 letters, digits or underscores. Routes and alerts reference the secret as `[$$name]`.
121
121
  * @member {String} name
122
122
  */
123
123
  CreateProjectSecretRequest.prototype["name"] = undefined;
124
124
 
125
125
  /**
126
- * The secret value (encrypted at rest, never returned after creation).
126
+ * The secret value. Encrypted at rest and never returned.
127
127
  * @member {String} value
128
128
  */
129
129
  CreateProjectSecretRequest.prototype["value"] = undefined;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The CreateUpdateRepository model module.
28
28
  * @module model/CreateUpdateRepository
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var CreateUpdateRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -104,11 +104,13 @@ var CreateUpdateRepository = /*#__PURE__*/function () {
104
104
  CreateUpdateRepository.prototype["fleet_uids"] = undefined;
105
105
 
106
106
  /**
107
+ * Repository name.
107
108
  * @member {String} name
108
109
  */
109
110
  CreateUpdateRepository.prototype["name"] = undefined;
110
111
 
111
112
  /**
113
+ * The project whose events the repository holds. A repository can reference at most one project.
112
114
  * @member {Array.<String>} project_uids
113
115
  */
114
116
  CreateUpdateRepository.prototype["project_uids"] = undefined;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The CreatedRepository model module.
28
28
  * @module model/CreatedRepository
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var CreatedRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -125,13 +125,13 @@ var CreatedRepository = /*#__PURE__*/function () {
125
125
  CreatedRepository.prototype["fleet_uids"] = undefined;
126
126
 
127
127
  /**
128
- * repository name
128
+ * Repository name.
129
129
  * @member {String} name
130
130
  */
131
131
  CreatedRepository.prototype["name"] = undefined;
132
132
 
133
133
  /**
134
- * read-only password for the database, also used as X-Repository-Token header for subsequent API calls. This value is only served once when the repository is created, and never to a scoped token, which queries through the repository token endpoint instead
134
+ * The repository key, for `X-Repository-Key` and as the database password. Returned only here, never to a scoped token.
135
135
  * @member {String} password
136
136
  */
137
137
  CreatedRepository.prototype["password"] = undefined;
@@ -142,13 +142,13 @@ CreatedRepository.prototype["password"] = undefined;
142
142
  CreatedRepository.prototype["project_uids"] = undefined;
143
143
 
144
144
  /**
145
- * The unique identifier for the data repository
145
+ * Repository UID, e.g. `repo:2606f411-dea6-44a0-9743-1130f57d77d8`.
146
146
  * @member {String} uid
147
147
  */
148
148
  CreatedRepository.prototype["uid"] = undefined;
149
149
 
150
150
  /**
151
- * read-only user for database
151
+ * Read-only database user that goes with `password`.
152
152
  * @member {String} user
153
153
  */
154
154
  CreatedRepository.prototype["user"] = undefined;
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CurrentFirmware model module.
29
29
  * @module model/CurrentFirmware
30
- * @version 6.7.0
30
+ * @version 7.0.0
31
31
  */
32
32
  var CurrentFirmware = /*#__PURE__*/function () {
33
33
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The DFUEnv model module.
29
29
  * @module model/DFUEnv
30
- * @version 6.7.0
30
+ * @version 7.0.0
31
31
  */
32
32
  var DFUEnv = /*#__PURE__*/function () {
33
33
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DFUState model module.
28
28
  * @module model/DFUState
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var DFUState = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DataField model module.
28
28
  * @module model/DataField
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var DataField = /*#__PURE__*/function () {
32
32
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The DataSet model module.
33
33
  * @module model/DataSet
34
- * @version 6.7.0
34
+ * @version 7.0.0
35
35
  */
36
36
  var DataSet = /*#__PURE__*/function () {
37
37
  /**
@@ -245,7 +245,7 @@ DataSet.prototype["name"] = undefined;
245
245
  DataSet.prototype["notefiles"] = undefined;
246
246
 
247
247
  /**
248
- * Optional Python source projecting each event, as an alternative to JSONata. It defines one function, with type annotations required: \"def rows(record: dict[str, Any]) -> list[dict[str, Any]]\". It returns zero or more row objects per event, whose keys are the dataset's columns -- the same convention the rows expression uses. Returning an empty list contributes no rows and is not an error; anything else, None included, is an error for that event. Mutually exclusive with rows, time, lat, lon and every field's own jsonata expression, since a Python projection produces whole row objects and leaves nothing for them to do. Use it for payloads JSONata cannot decode, such as packed binary, base64-wrapped blobs, protobuf or CBOR. At most 64 KiB. Rows must come back in the same order every time rows() runs over the same event: a row's position in the list identifies it, so an order that varies (such as iterating over a set) makes a replay insert duplicates. Sort the list if the order is not already fixed.
248
+ * Optional Python projection: `def rows(record: dict[str, Any]) -> list[dict[str, Any]]`, called once per `RepositoryRecord`. Return rows in a fixed order, or a reload duplicates them. Can't be combined with JSONata fields. Max 64 KiB.
249
249
  * @member {String} python
250
250
  */
251
251
  DataSet.prototype["python"] = undefined;
@@ -256,13 +256,13 @@ DataSet.prototype["python"] = undefined;
256
256
  DataSet.prototype["reload"] = undefined;
257
257
 
258
258
  /**
259
- * Optional JSONata expression that expands one event into several rows. It evaluates to one row object per row, whose keys are the dataset's columns: an array of objects, or a single object for one row. Both are accepted because JSONata collapses a one-element sequence to the element, so the same expression yields an array for an event carrying several readings and a bare object for one carrying a single reading. A result that is undefined or empty contributes no rows and is not an error; anything that is not an object, or an array containing one, is rejected. When set it is the only expression that reads the event: each field below takes the row object key matching its name, and time/lat/lon name a key too. Omit it and the dataset produces one row per event, with each field's own jsonata expression reading the event directly. event.uploaded and event.captured always resolve against the event either way.
259
+ * Optional JSONata expression turning one `RepositoryRecord` into row objects whose keys are the columns. When set, fields, `time`, `lat` and `lon` name row keys instead.
260
260
  * @member {String} rows
261
261
  */
262
262
  DataSet.prototype["rows"] = undefined;
263
263
 
264
264
  /**
265
- * JSONata expression resulting in the row's time. Required for a dataset with no rows expression. With one it defaults to the row object's \"time\" key, and only needs setting to name a different key, or to reach past the row as event.uploaded and event.captured do. lat and lon work the same way and are what declare that the dataset has a location column at all.
265
+ * JSONata expression for the row's time. Required without `rows`; with `rows`, defaults to the row's `time` key.
266
266
  * @member {String} time
267
267
  */
268
268
  DataSet.prototype["time"] = undefined;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DataSetField model module.
28
28
  * @module model/DataSetField
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var DataSetField = /*#__PURE__*/function () {
32
32
  /**
@@ -101,7 +101,7 @@ var DataSetField = /*#__PURE__*/function () {
101
101
  DataSetField.prototype["datatype"] = undefined;
102
102
 
103
103
  /**
104
- * The JSONata expression that populates this field from the event. Required for a dataset with no rows expression. Must be omitted when the dataset has one: the column is then taken from the row object key matching this field's name, and supplying an expression here is rejected rather than silently ignored.
104
+ * JSONata expression for this column. Required without the dataset's `rows` expression; must be omitted with it.
105
105
  * @member {String} jsonata
106
106
  */
107
107
  DataSetField.prototype["jsonata"] = undefined;
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The DataUsage model module.
31
31
  * @module model/DataUsage
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var DataUsage = /*#__PURE__*/function () {
35
35
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The DatacakeRoute model module.
30
30
  * @module model/DatacakeRoute
31
- * @version 6.7.0
31
+ * @version 7.0.0
32
32
  */
33
33
  var DatacakeRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DatasetReloadProgress model module.
28
28
  * @module model/DatasetReloadProgress
29
- * @version 6.7.0
29
+ * @version 7.0.0
30
30
  */
31
31
  var DatasetReloadProgress = /*#__PURE__*/function () {
32
32
  /**
@@ -29,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The DeleteDeviceFromFleetsRequest model module.
31
31
  * @module model/DeleteDeviceFromFleetsRequest
32
- * @version 6.7.0
32
+ * @version 7.0.0
33
33
  */
34
34
  var DeleteDeviceFromFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>DeleteDeviceFromFleetsRequest</code>.
37
37
  * @alias module:model/DeleteDeviceFromFleetsRequest
38
- * @param fleetUids {Array.<String>} The fleetUIDs to remove from the device.
38
+ * @param fleetUids {Array.<String>} FleetUIDs to remove the device from.
39
39
  */
40
40
  function DeleteDeviceFromFleetsRequest(fleetUids) {
41
41
  _classCallCheck(this, DeleteDeviceFromFleetsRequest);
@@ -108,7 +108,7 @@ var DeleteDeviceFromFleetsRequest = /*#__PURE__*/function () {
108
108
  DeleteDeviceFromFleetsRequest.RequiredProperties = ["fleet_uids"];
109
109
 
110
110
  /**
111
- * The fleetUIDs to remove from the device.
111
+ * FleetUIDs to remove the device from.
112
112
  * @member {Array.<String>} fleet_uids
113
113
  */
114
114
  DeleteDeviceFromFleetsRequest.prototype["fleet_uids"] = undefined;