@blues-inc/notehub-js 6.7.0-beta.73 → 6.7.0-beta.75

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 (189) hide show
  1. package/README.md +130 -129
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +5 -5
  5. package/dist/api/DescriptionApi.js +49 -33
  6. package/dist/api/DeviceApi.js +177 -115
  7. package/dist/api/EventApi.js +51 -45
  8. package/dist/api/ExternalDevicesApi.js +19 -13
  9. package/dist/api/JobsApi.js +57 -39
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +17 -11
  12. package/dist/api/ProjectApi.js +237 -149
  13. package/dist/api/RouteApi.js +47 -35
  14. package/dist/api/SkillsApi.js +17 -17
  15. package/dist/api/UsageApi.js +59 -49
  16. package/dist/api/WebhookApi.js +67 -45
  17. package/dist/index.js +7 -0
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +3 -3
  20. package/dist/model/Alert.js +1 -1
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +1 -1
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +2 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +3 -2
  33. package/dist/model/CloneProjectRequest.js +7 -7
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +4 -3
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +1 -1
  38. package/dist/model/CreateProductRequest.js +7 -6
  39. package/dist/model/CreateProjectRequest.js +5 -5
  40. package/dist/model/CreateProjectSecretRequest.js +5 -5
  41. package/dist/model/CreateUpdateRepository.js +2 -1
  42. package/dist/model/CreatedRepository.js +5 -5
  43. package/dist/model/CurrentFirmware.js +1 -1
  44. package/dist/model/DFUEnv.js +1 -1
  45. package/dist/model/DFUState.js +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +4 -4
  48. package/dist/model/DataSetField.js +2 -2
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +6 -6
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +27 -8
  58. package/dist/model/DeviceDfuHistory.js +2 -1
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +2 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  63. package/dist/model/DeviceDfuStatus.js +2 -2
  64. package/dist/model/DeviceDfuStatusPage.js +1 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +1 -1
  67. package/dist/model/DeviceTowerInfo.js +6 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +1 -1
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +1 -1
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +6 -6
  79. package/dist/model/Fleet.js +11 -10
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +1 -1
  82. package/dist/model/GetApiUsage200Response.js +2 -2
  83. package/dist/model/GetDataUsage200Response.js +2 -2
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200Response.js +1 -1
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  91. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -1
  95. package/dist/model/GetDevicePublicKey200Response.js +5 -3
  96. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
  98. package/dist/model/GetDeviceSessions200Response.js +1 -1
  99. package/dist/model/GetDevices200Response.js +1 -1
  100. package/dist/model/GetEvents200Response.js +1 -1
  101. package/dist/model/GetJobRuns200Response.js +1 -1
  102. package/dist/model/GetJobs200Response.js +1 -1
  103. package/dist/model/GetNotefile200Response.js +1 -1
  104. package/dist/model/GetOrganization200Response.js +1 -1
  105. package/dist/model/GetOrganization200ResponsePlan.js +1 -1
  106. package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
  107. package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
  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 +1 -1
  121. package/dist/model/JobDefinitionReportOptions.js +1 -1
  122. package/dist/model/JobDefinitionSelect.js +1 -1
  123. package/dist/model/JobDetail.js +1 -1
  124. package/dist/model/JobDetailAllOf.js +1 -1
  125. package/dist/model/JobRun.js +1 -1
  126. package/dist/model/Location.js +13 -7
  127. package/dist/model/Monitor.js +1 -1
  128. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  129. package/dist/model/MqttRoute.js +1 -1
  130. package/dist/model/Note.js +2 -2
  131. package/dist/model/NoteInput.js +1 -1
  132. package/dist/model/Notefile.js +2 -1
  133. package/dist/model/NotefileSchema.js +5 -3
  134. package/dist/model/NotehubRoute.js +7 -3
  135. package/dist/model/NotehubRouteSummary.js +6 -1
  136. package/dist/model/OAuth2Error.js +1 -1
  137. package/dist/model/OAuth2TokenResponse.js +1 -1
  138. package/dist/model/Organization.js +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/RepositoryRecord.js +119 -0
  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 +1 -1
  162. package/dist/model/SkillLinks.js +1 -1
  163. package/dist/model/SkillSet.js +1 -1
  164. package/dist/model/SkillSummary.js +1 -1
  165. package/dist/model/SkillWrite.js +1 -1
  166. package/dist/model/SkillWriteResult.js +1 -1
  167. package/dist/model/SlackBearerNotification.js +1 -1
  168. package/dist/model/SlackRoute.js +1 -1
  169. package/dist/model/SlackWebHookNotification.js +1 -1
  170. package/dist/model/SnowflakeRoute.js +1 -1
  171. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  172. package/dist/model/ThingworxRoute.js +1 -1
  173. package/dist/model/TowerLocation.js +1 -1
  174. package/dist/model/TwilioRoute.js +1 -1
  175. package/dist/model/UpdateFleetRequest.js +7 -6
  176. package/dist/model/UpdateHostFirmwareRequest.js +4 -4
  177. package/dist/model/UpdateProjectSecretRequest.js +3 -3
  178. package/dist/model/UploadMetadata.js +1 -1
  179. package/dist/model/UsageApiData.js +1 -1
  180. package/dist/model/UsageData.js +1 -1
  181. package/dist/model/UsageEventsData.js +1 -1
  182. package/dist/model/UsageEventsResponse.js +2 -2
  183. package/dist/model/UsageRouteLogsData.js +1 -1
  184. package/dist/model/UsageSessionsData.js +1 -1
  185. package/dist/model/UserDfuStateMachine.js +1 -1
  186. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  187. package/dist/model/UserFirmwareInfo.js +1 -1
  188. package/dist/model/WebhookSettings.js +4 -4
  189. package/package.json +1 -1
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * Route service.
32
32
  * @module api/RouteApi
33
- * @version 6.7.0-beta.73
33
+ * @version 6.7.0-beta.75
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -46,7 +46,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
46
46
  }
47
47
 
48
48
  /**
49
- * Create Route within a Project
49
+ * Create a route
50
+ * Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
50
51
  * @param {String} projectOrProductUID
51
52
  * @param {module:model/NotehubRoute} notehubRoute Route to be created
52
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
@@ -77,7 +78,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
77
78
  }
78
79
 
79
80
  /**
80
- * Create Route within a Project
81
+ * Create a route
82
+ * Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
81
83
  * @param {String} projectOrProductUID
82
84
  * @param {module:model/NotehubRoute} notehubRoute Route to be created
83
85
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
@@ -91,9 +93,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
91
93
  }
92
94
 
93
95
  /**
94
- * Delete single route within a project
96
+ * Delete a route
97
+ * Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
95
98
  * @param {String} projectOrProductUID
96
- * @param {String} routeUID
99
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
97
100
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
98
101
  */
99
102
  }, {
@@ -123,9 +126,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
123
126
  }
124
127
 
125
128
  /**
126
- * Delete single route within a project
129
+ * Delete a route
130
+ * Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
127
131
  * @param {String} projectOrProductUID
128
- * @param {String} routeUID
132
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
129
133
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
130
134
  */
131
135
  }, {
@@ -137,9 +141,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
137
141
  }
138
142
 
139
143
  /**
140
- * Get single route within a project
144
+ * Get a route
145
+ * Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
141
146
  * @param {String} projectOrProductUID
142
- * @param {String} routeUID
147
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
143
148
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
144
149
  */
145
150
  }, {
@@ -169,9 +174,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
169
174
  }
170
175
 
171
176
  /**
172
- * Get single route within a project
177
+ * Get a route
178
+ * Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
173
179
  * @param {String} projectOrProductUID
174
- * @param {String} routeUID
180
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
175
181
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
176
182
  */
177
183
  }, {
@@ -183,23 +189,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
183
189
  }
184
190
 
185
191
  /**
186
- * Get Route Logs by RouteUID
192
+ * List a route's logs
193
+ * List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
187
194
  * @param {String} projectOrProductUID
188
- * @param {String} routeUID
195
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
189
196
  * @param {Object} opts Optional parameters
190
197
  * @param {Number} opts.pageSize (default to 1000)
191
198
  * @param {Number} opts.pageNum (default to 1)
192
199
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
193
200
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
194
- * @param {module:model/String} opts.sortBy (default to 'date')
195
- * @param {module:model/String} opts.sortOrder (default to 'desc')
201
+ * @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
202
+ * @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
196
203
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
197
204
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
198
- * @param {Boolean} opts.systemFilesOnly
199
- * @param {Boolean} opts.mostRecentOnly
200
- * @param {String} opts.files
201
- * @param {Array.<module:model/String>} opts.routingStatus
202
- * @param {Array.<String>} opts.responseStatus
205
+ * @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
206
+ * @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
207
+ * @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
208
+ * @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
209
+ * @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
203
210
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
204
211
  */
205
212
  }, {
@@ -244,23 +251,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
244
251
  }
245
252
 
246
253
  /**
247
- * Get Route Logs by RouteUID
254
+ * List a route's logs
255
+ * List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
248
256
  * @param {String} projectOrProductUID
249
- * @param {String} routeUID
257
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
250
258
  * @param {Object} opts Optional parameters
251
259
  * @param {Number} opts.pageSize (default to 1000)
252
260
  * @param {Number} opts.pageNum (default to 1)
253
261
  * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
254
262
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
255
- * @param {module:model/String} opts.sortBy (default to 'date')
256
- * @param {module:model/String} opts.sortOrder (default to 'desc')
263
+ * @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
264
+ * @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
257
265
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
258
266
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
259
- * @param {Boolean} opts.systemFilesOnly
260
- * @param {Boolean} opts.mostRecentOnly
261
- * @param {String} opts.files
262
- * @param {Array.<module:model/String>} opts.routingStatus
263
- * @param {Array.<String>} opts.responseStatus
267
+ * @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
268
+ * @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
269
+ * @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
270
+ * @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
271
+ * @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
264
272
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
265
273
  */
266
274
  }, {
@@ -272,7 +280,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
272
280
  }
273
281
 
274
282
  /**
275
- * Get all Routes within a Project
283
+ * List routes
284
+ * List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
276
285
  * @param {String} projectOrProductUID
277
286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
278
287
  */
@@ -298,7 +307,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
298
307
  }
299
308
 
300
309
  /**
301
- * Get all Routes within a Project
310
+ * List routes
311
+ * List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
302
312
  * @param {String} projectOrProductUID
303
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
304
314
  */
@@ -311,9 +321,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
311
321
  }
312
322
 
313
323
  /**
314
- * Update route by UID
324
+ * Update a route
325
+ * Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
315
326
  * @param {String} projectOrProductUID
316
- * @param {String} routeUID
327
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
317
328
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
318
329
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
319
330
  */
@@ -348,9 +359,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
348
359
  }
349
360
 
350
361
  /**
351
- * Update route by UID
362
+ * Update a route
363
+ * Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
352
364
  * @param {String} projectOrProductUID
353
- * @param {String} routeUID
365
+ * @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
354
366
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
355
367
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
356
368
  */
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * Skills service.
33
33
  * @module api/SkillsApi
34
- * @version 6.7.0-beta.73
34
+ * @version 6.7.0-beta.75
35
35
  */
36
36
  var SkillsApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -47,8 +47,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
47
47
  }
48
48
 
49
49
  /**
50
- * Delete a Project Skill (Product Skill)
51
- * Skill Training: delete a skill and all its stored versions. Requires If-Match: \"revision\" from GetSkill. Subproject writes must target the parent project.
50
+ * Delete a project skill
51
+ * Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
52
52
  * @param {String} projectOrProductUID
53
53
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
54
54
  * @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
@@ -87,8 +87,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
87
87
  }
88
88
 
89
89
  /**
90
- * Delete a Project Skill (Product Skill)
91
- * Skill Training: delete a skill and all its stored versions. Requires If-Match: \"revision\" from GetSkill. Subproject writes must target the parent project.
90
+ * Delete a project skill
91
+ * Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
92
92
  * @param {String} projectOrProductUID
93
93
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
94
94
  * @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
@@ -103,8 +103,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
103
103
  }
104
104
 
105
105
  /**
106
- * Read a Project Skill (Product Skill)
107
- * Read one skill with metadata and exact Markdown content. Use links.self from GetSkills, or URL-encode the entire skill name as one path parameter. If-Match requires a revision; If-None-Match skips unchanged content.
106
+ * Get a project skill
107
+ * Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
108
108
  * @param {String} projectOrProductUID
109
109
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
110
110
  * @param {Object} opts Optional parameters
@@ -143,8 +143,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
143
143
  }
144
144
 
145
145
  /**
146
- * Read a Project Skill (Product Skill)
147
- * Read one skill with metadata and exact Markdown content. Use links.self from GetSkills, or URL-encode the entire skill name as one path parameter. If-Match requires a revision; If-None-Match skips unchanged content.
146
+ * Get a project skill
147
+ * Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
148
148
  * @param {String} projectOrProductUID
149
149
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
150
150
  * @param {Object} opts Optional parameters
@@ -161,8 +161,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
161
161
  }
162
162
 
163
163
  /**
164
- * List Project Skills (Product Skills)
165
- * List all skill metadata. Set includeContent=true to include exact Markdown content in one consistent snapshot. No pagination; an empty project returns skills: []. On 413, list metadata and use GetSkill for individual documents. Subprojects read their parent's skills.
164
+ * List project skills
165
+ * List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
166
166
  * @param {String} projectOrProductUID
167
167
  * @param {Object} opts Optional parameters
168
168
  * @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
@@ -196,8 +196,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
196
196
  }
197
197
 
198
198
  /**
199
- * List Project Skills (Product Skills)
200
- * List all skill metadata. Set includeContent=true to include exact Markdown content in one consistent snapshot. No pagination; an empty project returns skills: []. On 413, list metadata and use GetSkill for individual documents. Subprojects read their parent's skills.
199
+ * List project skills
200
+ * List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
201
201
  * @param {String} projectOrProductUID
202
202
  * @param {Object} opts Optional parameters
203
203
  * @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
@@ -213,8 +213,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
213
213
  }
214
214
 
215
215
  /**
216
- * Create or replace a Project Skill (Product Skill)
217
- * Skill Training: create with If-None-Match: *, or replace with If-Match: \"revision\" from GetSkill. Send content and optional kinds. Omit kinds to preserve them; [] clears them. An identical write returns unchanged. Subproject writes must target the parent project.
216
+ * Create or replace a project skill
217
+ * Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
218
218
  * @param {String} projectOrProductUID
219
219
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
220
220
  * @param {module:model/SkillWrite} skillWrite
@@ -258,8 +258,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
258
258
  }
259
259
 
260
260
  /**
261
- * Create or replace a Project Skill (Product Skill)
262
- * Skill Training: create with If-None-Match: *, or replace with If-Match: \"revision\" from GetSkill. Send content and optional kinds. Omit kinds to preserve them; [] clears them. An identical write returns unchanged. Subproject writes must target the parent project.
261
+ * Create or replace a project skill
262
+ * Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
263
263
  * @param {String} projectOrProductUID
264
264
  * @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
265
265
  * @param {module:model/SkillWrite} skillWrite
@@ -32,7 +32,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
32
32
  /**
33
33
  * Usage service.
34
34
  * @module api/UsageApi
35
- * @version 6.7.0-beta.73
35
+ * @version 6.7.0-beta.75
36
36
  */
37
37
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
38
38
  /**
@@ -48,13 +48,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
48
48
  }
49
49
 
50
50
  /**
51
- * Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
51
+ * Get billable API usage
52
+ * Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
52
53
  * @param {String} projectOrProductUID
53
- * @param {module:model/String} period Period type for aggregation
54
+ * @param {module:model/String} period The length of time each data point covers.
54
55
  * @param {Object} opts Optional parameters
55
56
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
56
57
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
57
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
58
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
58
59
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
59
60
  */
60
61
  return _createClass(UsageApi, [{
@@ -89,13 +90,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
89
90
  }
90
91
 
91
92
  /**
92
- * Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
93
+ * Get billable API usage
94
+ * Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
93
95
  * @param {String} projectOrProductUID
94
- * @param {module:model/String} period Period type for aggregation
96
+ * @param {module:model/String} period The length of time each data point covers.
95
97
  * @param {Object} opts Optional parameters
96
98
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
97
99
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
98
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
100
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
99
101
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
100
102
  */
101
103
  }, {
@@ -107,16 +109,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
107
109
  }
108
110
 
109
111
  /**
110
- * Get data usage in bytes for a project with time range and period aggregation
112
+ * Get cellular and satellite data usage
113
+ * Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
111
114
  * @param {String} projectOrProductUID
112
- * @param {module:model/String} period Period type for aggregation
115
+ * @param {module:model/String} period The length of time each data point covers.
113
116
  * @param {Object} opts Optional parameters
114
117
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
115
118
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
116
119
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
117
120
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
118
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
119
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
121
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
122
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
120
123
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
121
124
  */
122
125
  }, {
@@ -154,16 +157,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
154
157
  }
155
158
 
156
159
  /**
157
- * Get data usage in bytes for a project with time range and period aggregation
160
+ * Get cellular and satellite data usage
161
+ * Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
158
162
  * @param {String} projectOrProductUID
159
- * @param {module:model/String} period Period type for aggregation
163
+ * @param {module:model/String} period The length of time each data point covers.
160
164
  * @param {Object} opts Optional parameters
161
165
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
162
166
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
163
167
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
164
168
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
165
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
166
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
169
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
170
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
167
171
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
168
172
  */
169
173
  }, {
@@ -175,19 +179,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
175
179
  }
176
180
 
177
181
  /**
178
- * Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
182
+ * Get event usage
183
+ * Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
179
184
  * @param {String} projectOrProductUID
180
- * @param {module:model/String} period Period type for aggregation
185
+ * @param {module:model/String} period The length of time each data point covers.
181
186
  * @param {Object} opts Optional parameters
182
187
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
183
188
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
184
189
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
185
190
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
186
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
187
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
188
- * @param {Array.<String>} opts.notefile Filter to specific notefiles
189
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
190
- * @param {Boolean} opts.includeNotefiles Include per-notefile event counts in the response (default to false)
191
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
192
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
193
+ * @param {Array.<String>} opts.notefile Count only events from these notefiles.
194
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
195
+ * @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
191
196
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
192
197
  */
193
198
  }, {
@@ -228,19 +233,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
228
233
  }
229
234
 
230
235
  /**
231
- * Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
236
+ * Get event usage
237
+ * Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
232
238
  * @param {String} projectOrProductUID
233
- * @param {module:model/String} period Period type for aggregation
239
+ * @param {module:model/String} period The length of time each data point covers.
234
240
  * @param {Object} opts Optional parameters
235
241
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
236
242
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
237
243
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
238
244
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
239
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
240
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
241
- * @param {Array.<String>} opts.notefile Filter to specific notefiles
242
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
243
- * @param {Boolean} opts.includeNotefiles Include per-notefile event counts in the response (default to false)
245
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
246
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
247
+ * @param {Array.<String>} opts.notefile Count only events from these notefiles.
248
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
249
+ * @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
244
250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
245
251
  */
246
252
  }, {
@@ -252,16 +258,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
252
258
  }
253
259
 
254
260
  /**
255
- * Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
261
+ * Get route log usage
262
+ * Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
256
263
  * @param {String} projectOrProductUID
257
- * @param {module:model/String} period Period type for aggregation
264
+ * @param {module:model/String} period The length of time each data point covers.
258
265
  * @param {Object} opts Optional parameters
259
266
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
260
267
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
261
268
  * @param {Array.<String>} opts.routeUID A RouteUID.
262
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
263
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
264
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
269
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
270
+ * @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
271
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
265
272
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
266
273
  */
267
274
  }, {
@@ -299,16 +306,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
299
306
  }
300
307
 
301
308
  /**
302
- * Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
309
+ * Get route log usage
310
+ * Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
303
311
  * @param {String} projectOrProductUID
304
- * @param {module:model/String} period Period type for aggregation
312
+ * @param {module:model/String} period The length of time each data point covers.
305
313
  * @param {Object} opts Optional parameters
306
314
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
307
315
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
308
316
  * @param {Array.<String>} opts.routeUID A RouteUID.
309
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
310
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
311
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
317
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
318
+ * @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
319
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
312
320
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
313
321
  */
314
322
  }, {
@@ -320,17 +328,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
320
328
  }
321
329
 
322
330
  /**
323
- * Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
331
+ * Get session usage
332
+ * Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
324
333
  * @param {String} projectOrProductUID
325
- * @param {module:model/String} period Period type for aggregation
334
+ * @param {module:model/String} period The length of time each data point covers.
326
335
  * @param {Object} opts Optional parameters
327
336
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
328
337
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
329
338
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
330
339
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
331
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
332
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
333
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
340
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
341
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
342
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
334
343
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
335
344
  */
336
345
  }, {
@@ -369,17 +378,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
369
378
  }
370
379
 
371
380
  /**
372
- * Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
381
+ * Get session usage
382
+ * Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
373
383
  * @param {String} projectOrProductUID
374
- * @param {module:model/String} period Period type for aggregation
384
+ * @param {module:model/String} period The length of time each data point covers.
375
385
  * @param {Object} opts Optional parameters
376
386
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
377
387
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
378
388
  * @param {Array.<String>} opts.deviceUID A DeviceUID.
379
389
  * @param {Array.<String>} opts.fleetUID Filter by FleetUID
380
- * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
381
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
382
- * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
390
+ * @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
391
+ * @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
392
+ * @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
383
393
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
384
394
  */
385
395
  }, {