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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/README.md +156 -152
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +17 -12
  4. package/dist/api/AuthorizationApi.js +12 -51
  5. package/dist/api/DescriptionApi.js +58 -42
  6. package/dist/api/DeviceApi.js +434 -291
  7. package/dist/api/EventApi.js +88 -221
  8. package/dist/api/ExternalDevicesApi.js +32 -26
  9. package/dist/api/JobsApi.js +76 -58
  10. package/dist/api/MonitorApi.js +38 -28
  11. package/dist/api/OrganizationApi.js +26 -20
  12. package/dist/api/ProjectApi.js +424 -330
  13. package/dist/api/RouteApi.js +69 -54
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +84 -74
  16. package/dist/api/WebhookApi.js +96 -74
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +2 -2
  19. package/dist/model/AddDeviceToFleetsRequest.js +4 -4
  20. package/dist/model/Alert.js +17 -10
  21. package/dist/model/AlertDataInner.js +10 -5
  22. package/dist/model/AlertNotificationsInner.js +15 -5
  23. package/dist/model/ArchiveStats.js +2 -2
  24. package/dist/model/AwsRoute.js +15 -3
  25. package/dist/model/AzureRoute.js +9 -2
  26. package/dist/model/BatchJobNoteRequest.js +2 -2
  27. package/dist/model/BatchJobRequests.js +7 -6
  28. package/dist/model/BillingAccount.js +6 -4
  29. package/dist/model/BillingAccountRole.js +1 -1
  30. package/dist/model/BlynkRoute.js +7 -2
  31. package/dist/model/Body.js +3 -2
  32. package/dist/model/CancelJobRun200Response.js +2 -2
  33. package/dist/model/CellularPlan.js +4 -3
  34. package/dist/model/CloneProjectRequest.js +8 -8
  35. package/dist/model/Contact.js +6 -2
  36. package/dist/model/CreateFleetRequest.js +5 -4
  37. package/dist/model/CreateJob201Response.js +2 -2
  38. package/dist/model/CreateMonitor.js +38 -26
  39. package/dist/model/CreateProductRequest.js +8 -7
  40. package/dist/model/CreateProjectRequest.js +6 -6
  41. package/dist/model/CreateProjectSecretRequest.js +6 -6
  42. package/dist/model/CreateUpdateRepository.js +4 -2
  43. package/dist/model/CreatedRepository.js +6 -6
  44. package/dist/model/CurrentFirmware.js +2 -2
  45. package/dist/model/DFUEnv.js +2 -2
  46. package/dist/model/DFUState.js +3 -2
  47. package/dist/model/DataField.js +2 -2
  48. package/dist/model/DataSet.js +6 -5
  49. package/dist/model/DataSetField.js +3 -3
  50. package/dist/model/DataUsage.js +2 -2
  51. package/dist/model/DatacakeRoute.js +8 -2
  52. package/dist/model/DatasetReloadProgress.js +2 -2
  53. package/dist/model/DeleteDeviceFromFleetsRequest.js +4 -4
  54. package/dist/model/DeleteJob200Response.js +2 -2
  55. package/dist/model/DeleteNotefilesRequest.js +3 -3
  56. package/dist/model/DescriptionRecord.js +7 -7
  57. package/dist/model/DescriptionRecordList.js +4 -3
  58. package/dist/model/Device.js +37 -9
  59. package/dist/model/DeviceDfuHistory.js +13 -3
  60. package/dist/model/DeviceDfuHistoryCurrent.js +3 -3
  61. package/dist/model/DeviceDfuHistoryPage.js +17 -2
  62. package/dist/model/DeviceDfuStateMachine.js +3 -2
  63. package/dist/model/DeviceDfuStateMachineNode.js +3 -3
  64. package/dist/model/DeviceDfuStatus.js +13 -4
  65. package/dist/model/DeviceDfuStatusPage.js +17 -2
  66. package/dist/model/DeviceSensor.js +2 -2
  67. package/dist/model/DeviceSession.js +38 -6
  68. package/dist/model/DeviceTowerInfo.js +7 -2
  69. package/dist/model/DeviceUsage.js +8 -2
  70. package/dist/model/DfuActionRequest.js +3 -3
  71. package/dist/model/EmailNotification.js +30 -7
  72. package/dist/model/EnvTreeJsonNode.js +18 -7
  73. package/dist/model/EnvVar.js +6 -2
  74. package/dist/model/EnvironmentVariables.js +4 -3
  75. package/dist/model/Error.js +5 -2
  76. package/dist/model/Event.js +17 -8
  77. package/dist/model/Filter.js +6 -6
  78. package/dist/model/Firmware.js +2 -2
  79. package/dist/model/FirmwareInfo.js +7 -7
  80. package/dist/model/Fleet.js +12 -11
  81. package/dist/model/FleetConnectivityAssurance.js +2 -2
  82. package/dist/model/GetAlerts200Response.js +15 -2
  83. package/dist/model/GetApiUsage200Response.js +3 -3
  84. package/dist/model/GetDataUsage200Response.js +3 -3
  85. package/dist/model/GetDataUsage200ResponseDataInner.js +4 -4
  86. package/dist/model/GetDbNote200Response.js +2 -2
  87. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  88. package/dist/model/GetDeviceFleets200Response.js +2 -2
  89. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  90. package/dist/model/GetDeviceJourney200Response.js +2 -2
  91. package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
  92. package/dist/model/GetDeviceJourneys200Response.js +2 -2
  93. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
  94. package/dist/model/GetDeviceLatestEvents200Response.js +3 -3
  95. package/dist/model/GetDevicePlans200Response.js +3 -2
  96. package/dist/model/GetDevicePublicKey200Response.js +6 -4
  97. package/dist/model/GetDevicePublicKeys200Response.js +15 -2
  98. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -2
  99. package/dist/model/GetDeviceSessions200Response.js +15 -2
  100. package/dist/model/GetDevices200Response.js +15 -2
  101. package/dist/model/GetEvents200Response.js +15 -2
  102. package/dist/model/GetJobRuns200Response.js +2 -2
  103. package/dist/model/GetJobs200Response.js +2 -2
  104. package/dist/model/GetNotefile200Response.js +2 -2
  105. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
  106. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
  107. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
  108. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
  109. package/dist/model/GetOrganizations200Response.js +2 -2
  110. package/dist/model/GetProducts200Response.js +2 -2
  111. package/dist/model/GetProjectMembers200Response.js +2 -2
  112. package/dist/model/GetProjectSecretsResponse.js +4 -3
  113. package/dist/model/GetProjects200Response.js +2 -2
  114. package/dist/model/GetRouteLogsUsage200Response.js +3 -3
  115. package/dist/model/GetSessionsUsage200Response.js +4 -4
  116. package/dist/model/GetWebhooks200Response.js +2 -2
  117. package/dist/model/GoogleRoute.js +7 -2
  118. package/dist/model/HealthLog.js +8 -5
  119. package/dist/model/HttpRoute.js +8 -3
  120. package/dist/model/Job.js +2 -2
  121. package/dist/model/JobDefinition.js +3 -3
  122. package/dist/model/JobDefinitionReportOptions.js +3 -2
  123. package/dist/model/JobDefinitionSelect.js +5 -4
  124. package/dist/model/JobDetail.js +2 -2
  125. package/dist/model/JobDetailAllOf.js +2 -2
  126. package/dist/model/JobRun.js +2 -2
  127. package/dist/model/Location.js +14 -8
  128. package/dist/model/Monitor.js +19 -13
  129. package/dist/model/MonitorAlertRoutesInner.js +61 -15
  130. package/dist/model/MqttRoute.js +15 -2
  131. package/dist/model/Note.js +3 -3
  132. package/dist/model/NoteInput.js +2 -2
  133. package/dist/model/Notefile.js +5 -3
  134. package/dist/model/NotefileSchema.js +6 -4
  135. package/dist/model/NotehubRoute.js +8 -4
  136. package/dist/model/NotehubRouteSummary.js +7 -2
  137. package/dist/model/OAuth2Error.js +2 -2
  138. package/dist/model/OAuth2TokenResponse.js +2 -2
  139. package/dist/model/Organization.js +6 -4
  140. package/dist/model/OrganizationRole.js +1 -1
  141. package/dist/model/Product.js +9 -5
  142. package/dist/model/Project.js +8 -5
  143. package/dist/model/ProjectMember.js +6 -5
  144. package/dist/model/ProjectSecret.js +8 -8
  145. package/dist/model/ProvisionDeviceRequest.js +6 -6
  146. package/dist/model/ProxyRoute.js +7 -2
  147. package/dist/model/QubitroRoute.js +8 -2
  148. package/dist/model/RadRoute.js +10 -2
  149. package/dist/model/Repository.js +4 -4
  150. package/dist/model/RepositoryListResponse.js +4 -3
  151. package/dist/model/RepositoryRecord.js +119 -0
  152. package/dist/model/RepositoryTokenRequest.js +2 -2
  153. package/dist/model/RepositoryTokenResponse.js +2 -2
  154. package/dist/model/Role.js +1 -1
  155. package/dist/model/RouteLog.js +10 -10
  156. package/dist/model/RouteTransformSettings.js +6 -6
  157. package/dist/model/RunJob200Response.js +2 -2
  158. package/dist/model/S3ArchiveRoute.js +17 -2
  159. package/dist/model/SatelliteDataUsage.js +2 -2
  160. package/dist/model/SatellitePlan.js +2 -2
  161. package/dist/model/SchemaProperty.js +7 -5
  162. package/dist/model/SignalDevice200Response.js +3 -3
  163. package/dist/model/SimUsage.js +2 -2
  164. package/dist/model/Skill.js +210 -0
  165. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +60 -41
  166. package/dist/model/SkillSet.js +185 -0
  167. package/dist/model/SkillSummary.js +208 -0
  168. package/dist/model/SkillWrite.js +128 -0
  169. package/dist/model/{GetEventsByCursor200Response.js → SkillWriteResult.js} +62 -65
  170. package/dist/model/SlackBearerNotification.js +32 -9
  171. package/dist/model/SlackRoute.js +10 -2
  172. package/dist/model/SlackWebHookNotification.js +32 -9
  173. package/dist/model/SnowflakeRoute.js +10 -2
  174. package/dist/model/SnowpipeStreamingRoute.js +13 -2
  175. package/dist/model/ThingworxRoute.js +7 -2
  176. package/dist/model/TowerLocation.js +2 -2
  177. package/dist/model/TwilioNotification.js +167 -0
  178. package/dist/model/TwilioRoute.js +10 -2
  179. package/dist/model/UpdateFleetRequest.js +8 -7
  180. package/dist/model/UpdateHostFirmwareRequest.js +5 -5
  181. package/dist/model/UpdateProjectSecretRequest.js +4 -4
  182. package/dist/model/UploadMetadata.js +2 -2
  183. package/dist/model/UsageApiData.js +4 -3
  184. package/dist/model/UsageData.js +8 -4
  185. package/dist/model/UsageEventsData.js +6 -3
  186. package/dist/model/UsageEventsResponse.js +5 -4
  187. package/dist/model/UsageRouteLogsData.js +11 -7
  188. package/dist/model/UsageSessionsData.js +12 -6
  189. package/dist/model/UserDfuStateMachine.js +2 -2
  190. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  191. package/dist/model/UserFirmwareInfo.js +2 -2
  192. package/dist/model/WebhookSettings.js +5 -5
  193. package/package.json +1 -1
  194. package/dist/api/BillingAccountApi.js +0 -167
  195. package/dist/model/Login200Response.js +0 -91
  196. package/dist/model/LoginRequest.js +0 -103
@@ -17,7 +17,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
17
17
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
18
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
21
21
  * Notehub API
22
22
  * The OpenAPI definition for the Notehub.io API.
23
23
  *
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * Usage service.
34
34
  * @module api/UsageApi
35
- * @version 6.7.0
35
+ * @version 7.0.0-beta.1
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
52
- * @param {String} projectOrProductUID
53
- * @param {module:model/String} period Period type for aggregation
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`.
53
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {String} projectOrProductUID
94
- * @param {module:model/String} period Period type for aggregation
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`.
95
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
111
- * @param {String} projectOrProductUID
112
- * @param {module:model/String} period Period type for 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`.
114
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
117
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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')
119
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
120
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
158
- * @param {String} projectOrProductUID
159
- * @param {module:model/String} period Period type for 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`.
162
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
164
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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')
167
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
168
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
179
- * @param {String} projectOrProductUID
180
- * @param {module:model/String} period Period type for aggregation
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`.
184
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
185
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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)
189
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
190
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
232
- * @param {String} projectOrProductUID
233
- * @param {module:model/String} period Period type for aggregation
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`.
238
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
238
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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)
243
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
244
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
256
- * @param {String} projectOrProductUID
257
- * @param {module:model/String} period Period type for aggregation
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.
263
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.routeUID A Route UID.
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)
268
+ * @param {Array.<String>} opts.routeUID A RouteUID.
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
303
- * @param {String} projectOrProductUID
304
- * @param {module:model/String} period Period type for aggregation
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.
311
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.routeUID A Route UID.
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)
316
+ * @param {Array.<String>} opts.routeUID A RouteUID.
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
324
- * @param {String} projectOrProductUID
325
- * @param {module:model/String} period Period type for aggregation
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`.
333
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
330
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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)
338
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
339
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
373
- * @param {String} projectOrProductUID
374
- * @param {module:model/String} period Period type for aggregation
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`.
383
+ * @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
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
- * @param {Array.<String>} opts.deviceUID A Device UID.
379
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
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)
388
+ * @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
389
+ * @param {Array.<String>} opts.fleetUID Filter by FleetUID
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
  }, {