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

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 (188) hide show
  1. package/README.md +37 -37
  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 +1 -1
  6. package/dist/api/DeviceApi.js +1 -1
  7. package/dist/api/EventApi.js +1 -1
  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 +1 -1
  13. package/dist/api/RouteApi.js +1 -1
  14. package/dist/api/SkillsApi.js +17 -17
  15. package/dist/api/UsageApi.js +59 -49
  16. package/dist/api/WebhookApi.js +45 -67
  17. package/dist/model/AWSRoleConfig.js +1 -1
  18. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  19. package/dist/model/Alert.js +1 -1
  20. package/dist/model/AlertDataInner.js +1 -1
  21. package/dist/model/AlertNotificationsInner.js +1 -1
  22. package/dist/model/ArchiveStats.js +1 -1
  23. package/dist/model/AwsRoute.js +1 -1
  24. package/dist/model/AzureRoute.js +1 -1
  25. package/dist/model/BatchJobNoteRequest.js +1 -1
  26. package/dist/model/BatchJobRequests.js +1 -1
  27. package/dist/model/BillingAccount.js +1 -1
  28. package/dist/model/BlynkRoute.js +1 -1
  29. package/dist/model/Body.js +1 -1
  30. package/dist/model/CancelJobRun200Response.js +1 -1
  31. package/dist/model/CellularPlan.js +1 -1
  32. package/dist/model/CloneProjectRequest.js +1 -1
  33. package/dist/model/Contact.js +1 -1
  34. package/dist/model/CreateFleetRequest.js +1 -1
  35. package/dist/model/CreateJob201Response.js +1 -1
  36. package/dist/model/CreateMonitor.js +1 -1
  37. package/dist/model/CreateProductRequest.js +1 -1
  38. package/dist/model/CreateProjectRequest.js +1 -1
  39. package/dist/model/CreateProjectSecretRequest.js +1 -1
  40. package/dist/model/CreateUpdateRepository.js +1 -1
  41. package/dist/model/CreatedRepository.js +1 -1
  42. package/dist/model/CurrentFirmware.js +1 -1
  43. package/dist/model/DFUEnv.js +1 -1
  44. package/dist/model/DFUState.js +1 -1
  45. package/dist/model/DataField.js +1 -1
  46. package/dist/model/DataSet.js +1 -1
  47. package/dist/model/DataSetField.js +1 -1
  48. package/dist/model/DataUsage.js +1 -1
  49. package/dist/model/DatacakeRoute.js +1 -1
  50. package/dist/model/DatasetReloadProgress.js +1 -1
  51. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  52. package/dist/model/DeleteJob200Response.js +1 -1
  53. package/dist/model/DeleteNotefilesRequest.js +1 -1
  54. package/dist/model/DescriptionRecord.js +1 -1
  55. package/dist/model/DescriptionRecordList.js +1 -1
  56. package/dist/model/Device.js +1 -1
  57. package/dist/model/DeviceDfuHistory.js +1 -1
  58. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  59. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  60. package/dist/model/DeviceDfuStateMachine.js +1 -1
  61. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  62. package/dist/model/DeviceDfuStatus.js +1 -1
  63. package/dist/model/DeviceDfuStatusPage.js +1 -1
  64. package/dist/model/DeviceSensor.js +1 -1
  65. package/dist/model/DeviceSession.js +1 -1
  66. package/dist/model/DeviceTowerInfo.js +1 -1
  67. package/dist/model/DeviceUsage.js +1 -1
  68. package/dist/model/DfuActionRequest.js +1 -1
  69. package/dist/model/EmailNotification.js +1 -1
  70. package/dist/model/EnvTreeJsonNode.js +1 -1
  71. package/dist/model/EnvVar.js +1 -1
  72. package/dist/model/EnvironmentVariables.js +1 -1
  73. package/dist/model/Error.js +1 -1
  74. package/dist/model/Event.js +1 -1
  75. package/dist/model/Filter.js +1 -1
  76. package/dist/model/Firmware.js +1 -1
  77. package/dist/model/FirmwareInfo.js +1 -1
  78. package/dist/model/Fleet.js +1 -1
  79. package/dist/model/FleetConnectivityAssurance.js +1 -1
  80. package/dist/model/GetAlerts200Response.js +1 -1
  81. package/dist/model/GetApiUsage200Response.js +2 -2
  82. package/dist/model/GetDataUsage200Response.js +2 -2
  83. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  84. package/dist/model/GetDbNote200Response.js +1 -1
  85. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  86. package/dist/model/GetDeviceFleets200Response.js +1 -1
  87. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  88. package/dist/model/GetDeviceJourney200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  90. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  91. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  92. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  93. package/dist/model/GetDevicePlans200Response.js +1 -1
  94. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  95. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  96. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  97. package/dist/model/GetDeviceSessions200Response.js +1 -1
  98. package/dist/model/GetDevices200Response.js +1 -1
  99. package/dist/model/GetEvents200Response.js +1 -1
  100. package/dist/model/GetJobRuns200Response.js +1 -1
  101. package/dist/model/GetJobs200Response.js +1 -1
  102. package/dist/model/GetNotefile200Response.js +1 -1
  103. package/dist/model/GetOrganization200Response.js +1 -1
  104. package/dist/model/GetOrganization200ResponsePlan.js +1 -1
  105. package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
  106. package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
  107. package/dist/model/GetOrganizations200Response.js +1 -1
  108. package/dist/model/GetProducts200Response.js +1 -1
  109. package/dist/model/GetProjectMembers200Response.js +1 -1
  110. package/dist/model/GetProjectSecretsResponse.js +1 -1
  111. package/dist/model/GetProjects200Response.js +1 -1
  112. package/dist/model/GetRouteLogsUsage200Response.js +2 -2
  113. package/dist/model/GetSessionsUsage200Response.js +3 -3
  114. package/dist/model/GetWebhooks200Response.js +1 -1
  115. package/dist/model/GoogleRoute.js +1 -1
  116. package/dist/model/HealthLog.js +1 -1
  117. package/dist/model/HttpRoute.js +1 -1
  118. package/dist/model/Job.js +1 -1
  119. package/dist/model/JobDefinition.js +1 -1
  120. package/dist/model/JobDefinitionReportOptions.js +1 -1
  121. package/dist/model/JobDefinitionSelect.js +1 -1
  122. package/dist/model/JobDetail.js +1 -1
  123. package/dist/model/JobDetailAllOf.js +1 -1
  124. package/dist/model/JobRun.js +1 -1
  125. package/dist/model/Location.js +1 -1
  126. package/dist/model/Monitor.js +1 -1
  127. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  128. package/dist/model/MqttRoute.js +1 -1
  129. package/dist/model/Note.js +1 -1
  130. package/dist/model/NoteInput.js +1 -1
  131. package/dist/model/Notefile.js +1 -1
  132. package/dist/model/NotefileSchema.js +1 -1
  133. package/dist/model/NotehubRoute.js +1 -1
  134. package/dist/model/NotehubRouteSummary.js +1 -1
  135. package/dist/model/OAuth2Error.js +1 -1
  136. package/dist/model/OAuth2TokenResponse.js +1 -1
  137. package/dist/model/Organization.js +5 -3
  138. package/dist/model/Product.js +1 -1
  139. package/dist/model/Project.js +1 -1
  140. package/dist/model/ProjectMember.js +1 -1
  141. package/dist/model/ProjectSecret.js +1 -1
  142. package/dist/model/ProvisionDeviceRequest.js +1 -1
  143. package/dist/model/ProxyRoute.js +1 -1
  144. package/dist/model/QubitroRoute.js +1 -1
  145. package/dist/model/RadRoute.js +1 -1
  146. package/dist/model/Repository.js +1 -1
  147. package/dist/model/RepositoryListResponse.js +1 -1
  148. package/dist/model/RepositoryRecord.js +1 -1
  149. package/dist/model/RepositoryTokenRequest.js +1 -1
  150. package/dist/model/RepositoryTokenResponse.js +1 -1
  151. package/dist/model/RouteLog.js +1 -1
  152. package/dist/model/RouteTransformSettings.js +1 -1
  153. package/dist/model/RunJob200Response.js +1 -1
  154. package/dist/model/S3ArchiveRoute.js +1 -1
  155. package/dist/model/SatelliteDataUsage.js +1 -1
  156. package/dist/model/SatellitePlan.js +1 -1
  157. package/dist/model/SchemaProperty.js +1 -1
  158. package/dist/model/SignalDevice200Response.js +1 -1
  159. package/dist/model/SimUsage.js +1 -1
  160. package/dist/model/Skill.js +1 -1
  161. package/dist/model/SkillLinks.js +1 -1
  162. package/dist/model/SkillSet.js +1 -1
  163. package/dist/model/SkillSummary.js +1 -1
  164. package/dist/model/SkillWrite.js +1 -1
  165. package/dist/model/SkillWriteResult.js +1 -1
  166. package/dist/model/SlackBearerNotification.js +1 -1
  167. package/dist/model/SlackRoute.js +1 -1
  168. package/dist/model/SlackWebHookNotification.js +1 -1
  169. package/dist/model/SnowflakeRoute.js +1 -1
  170. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  171. package/dist/model/ThingworxRoute.js +1 -1
  172. package/dist/model/TowerLocation.js +1 -1
  173. package/dist/model/TwilioRoute.js +1 -1
  174. package/dist/model/UpdateFleetRequest.js +1 -1
  175. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  176. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  177. package/dist/model/UploadMetadata.js +1 -1
  178. package/dist/model/UsageApiData.js +1 -1
  179. package/dist/model/UsageData.js +1 -1
  180. package/dist/model/UsageEventsData.js +1 -1
  181. package/dist/model/UsageEventsResponse.js +2 -2
  182. package/dist/model/UsageRouteLogsData.js +1 -1
  183. package/dist/model/UsageSessionsData.js +1 -1
  184. package/dist/model/UserDfuStateMachine.js +1 -1
  185. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  186. package/dist/model/UserFirmwareInfo.js +1 -1
  187. package/dist/model/WebhookSettings.js +4 -4
  188. package/package.json +1 -1
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -45,8 +45,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
45
45
  }
46
46
 
47
47
  /**
48
- * Add a note-shaped event from a device (legacy)
49
- * Legacy: add an event from a device, adding the device to the project if it's new. The body is note-shaped: `file`, `body`, an optional base64 `payload`, and other event fields such as `when` and `sn`. No webhook transform applies. New integrations should use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if there's no `body` or `payload`.
48
+ * Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
50
49
  * @param {String} productUID
51
50
  * @param {String} deviceUID
52
51
  * @param {Object.<String, {String: Object}>} requestBody A Note-shaped event. Typically contains the notefile name (file), a JSON body, and an optional base64-encoded payload, but any additional Note fields (e.g. when, sn, where_lat, where_lon) are accepted and honored.
@@ -83,8 +82,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
83
82
  }
84
83
 
85
84
  /**
86
- * Add a note-shaped event from a device (legacy)
87
- * Legacy: add an event from a device, adding the device to the project if it's new. The body is note-shaped: `file`, `body`, an optional base64 `payload`, and other event fields such as `when` and `sn`. No webhook transform applies. New integrations should use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if there's no `body` or `payload`.
85
+ * Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
88
86
  * @param {String} productUID
89
87
  * @param {String} deviceUID
90
88
  * @param {Object.<String, {String: Object}>} requestBody A Note-shaped event. Typically contains the notefile name (file), a JSON body, and an optional base64-encoded payload, but any additional Note fields (e.g. when, sn, where_lat, where_lon) are accepted and honored.
@@ -99,10 +97,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
99
97
  }
100
98
 
101
99
  /**
102
- * Create a webhook
103
- * Create an inbound webhook that outside services post to with `CreateWebhookEventByProduct`. Its events go to the notefile `<webhookUID>.qo` unless its JSONata `transform` sets `file`. Use a lower-case ID; the event endpoints look it up in lower case. Requires the Owner or Developer role. Returns 409 if the ID is taken, and 400 if it has characters other than letters, digits, `-` and `_`.
100
+ * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
104
101
  * @param {String} projectOrProductUID
105
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
102
+ * @param {String} webhookUID WebhookUID
106
103
  * @param {module:model/WebhookSettings} webhookSettings
107
104
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
108
105
  */
@@ -137,10 +134,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
137
134
  }
138
135
 
139
136
  /**
140
- * Create a webhook
141
- * Create an inbound webhook that outside services post to with `CreateWebhookEventByProduct`. Its events go to the notefile `<webhookUID>.qo` unless its JSONata `transform` sets `file`. Use a lower-case ID; the event endpoints look it up in lower case. Requires the Owner or Developer role. Returns 409 if the ID is taken, and 400 if it has characters other than letters, digits, `-` and `_`.
137
+ * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
142
138
  * @param {String} projectOrProductUID
143
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
139
+ * @param {String} webhookUID WebhookUID
144
140
  * @param {module:model/WebhookSettings} webhookSettings
145
141
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
146
142
  */
@@ -153,12 +149,11 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
153
149
  }
154
150
 
155
151
  /**
156
- * Send a device's event through a webhook
157
- * Post JSON to a webhook as one device's event, like `CreateWebhookEventByProduct`. The device is added to the project if it's new; a DeviceUID without a prefix becomes `dev:ext:<deviceUID>`, in lower case. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
152
+ * Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
158
153
  * @param {String} productUID
159
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
154
+ * @param {String} webhookUID WebhookUID
160
155
  * @param {String} deviceUID
161
- * @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
156
+ * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
162
157
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
163
158
  */
164
159
  }, {
@@ -197,12 +192,11 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
197
192
  }
198
193
 
199
194
  /**
200
- * Send a device's event through a webhook
201
- * Post JSON to a webhook as one device's event, like `CreateWebhookEventByProduct`. The device is added to the project if it's new; a DeviceUID without a prefix becomes `dev:ext:<deviceUID>`, in lower case. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
195
+ * Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
202
196
  * @param {String} productUID
203
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
197
+ * @param {String} webhookUID WebhookUID
204
198
  * @param {String} deviceUID
205
- * @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
199
+ * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
206
200
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
207
201
  */
208
202
  }, {
@@ -214,11 +208,10 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
214
208
  }
215
209
 
216
210
  /**
217
- * Send an event through a webhook
218
- * Post JSON to a webhook. The whole body becomes the event body, in the notefile `<webhookUID>.qo`, from the device `dev:ext:webhook`, unless the webhook's `transform` sets other values. For a specific device, use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
211
+ * Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
219
212
  * @param {String} productUID
220
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
221
- * @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
213
+ * @param {String} webhookUID WebhookUID
214
+ * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
222
215
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
223
216
  */
224
217
  }, {
@@ -252,11 +245,10 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
252
245
  }
253
246
 
254
247
  /**
255
- * Send an event through a webhook
256
- * Post JSON to a webhook. The whole body becomes the event body, in the notefile `<webhookUID>.qo`, from the device `dev:ext:webhook`, unless the webhook's `transform` sets other values. For a specific device, use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
248
+ * Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
257
249
  * @param {String} productUID
258
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
259
- * @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
250
+ * @param {String} webhookUID WebhookUID
251
+ * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
260
252
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
261
253
  */
262
254
  }, {
@@ -268,10 +260,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
268
260
  }
269
261
 
270
262
  /**
271
- * Delete a webhook
272
- * Delete a webhook's settings. Posts to its ID are still accepted, just without a transform; to stop accepting them, set `disabled` with `UpdateWebhook` instead. Requires the Owner or Developer role. Returns 404 if the webhook doesn't exist.
263
+ * Deletes the specified webhook
273
264
  * @param {String} projectOrProductUID
274
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
265
+ * @param {String} webhookUID WebhookUID
275
266
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
276
267
  */
277
268
  }, {
@@ -301,10 +292,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
301
292
  }
302
293
 
303
294
  /**
304
- * Delete a webhook
305
- * Delete a webhook's settings. Posts to its ID are still accepted, just without a transform; to stop accepting them, set `disabled` with `UpdateWebhook` instead. Requires the Owner or Developer role. Returns 404 if the webhook doesn't exist.
295
+ * Deletes the specified webhook
306
296
  * @param {String} projectOrProductUID
307
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
297
+ * @param {String} webhookUID WebhookUID
308
298
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
309
299
  */
310
300
  }, {
@@ -316,10 +306,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
316
306
  }
317
307
 
318
308
  /**
319
- * Get a webhook
320
- * Get one webhook's transform and whether it's disabled. Requires the Owner or Developer role. Returns 404 if the webhook doesn't exist.
309
+ * Retrieves the configuration settings for the specified webhook
321
310
  * @param {String} projectOrProductUID
322
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
311
+ * @param {String} webhookUID WebhookUID
323
312
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
324
313
  */
325
314
  }, {
@@ -349,10 +338,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
349
338
  }
350
339
 
351
340
  /**
352
- * Get a webhook
353
- * Get one webhook's transform and whether it's disabled. Requires the Owner or Developer role. Returns 404 if the webhook doesn't exist.
341
+ * Retrieves the configuration settings for the specified webhook
354
342
  * @param {String} projectOrProductUID
355
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
343
+ * @param {String} webhookUID WebhookUID
356
344
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
357
345
  */
358
346
  }, {
@@ -364,10 +352,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
364
352
  }
365
353
 
366
354
  /**
367
- * Get a webhook by ProductUID
368
- * Get one webhook's settings, like `GetWebhook`, but addressed by ProductUID instead of the project. Requires the Owner or Developer role. Returns 500, not 404, if the webhook doesn't exist.
355
+ * Retrieves the configuration settings for the specified webhook, addressed by productUID.
369
356
  * @param {String} productUID
370
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
357
+ * @param {String} webhookUID WebhookUID
371
358
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
372
359
  */
373
360
  }, {
@@ -397,10 +384,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
397
384
  }
398
385
 
399
386
  /**
400
- * Get a webhook by ProductUID
401
- * Get one webhook's settings, like `GetWebhook`, but addressed by ProductUID instead of the project. Requires the Owner or Developer role. Returns 500, not 404, if the webhook doesn't exist.
387
+ * Retrieves the configuration settings for the specified webhook, addressed by productUID.
402
388
  * @param {String} productUID
403
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
389
+ * @param {String} webhookUID WebhookUID
404
390
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
405
391
  */
406
392
  }, {
@@ -412,8 +398,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
412
398
  }
413
399
 
414
400
  /**
415
- * List webhooks
416
- * List a project's inbound webhooks with their transforms and whether they're disabled. An inbound webhook lets an outside service post data that Notehub turns into events. Requires the Owner or Developer role.
401
+ * Retrieves all webhooks for the specified project
417
402
  * @param {String} projectOrProductUID
418
403
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
419
404
  */
@@ -439,8 +424,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
439
424
  }
440
425
 
441
426
  /**
442
- * List webhooks
443
- * List a project's inbound webhooks with their transforms and whether they're disabled. An inbound webhook lets an outside service post data that Notehub turns into events. Requires the Owner or Developer role.
427
+ * Retrieves all webhooks for the specified project
444
428
  * @param {String} projectOrProductUID
445
429
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
446
430
  */
@@ -453,12 +437,11 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
453
437
  }
454
438
 
455
439
  /**
456
- * Open or close a webhook device's session (legacy)
457
- * Legacy: open, update or close a webhook device's session, adding the device if it's new. The body is a session: set `why_session_opened` to open one, `why_session_closed` to close it, both to close and reopen, or neither to update the open session. Requires the Owner or Developer role. Returns 400 when updating with no session open.
440
+ * Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
458
441
  * @param {String} productUID
459
442
  * @param {String} deviceUID
460
443
  * @param {Object} opts Optional parameters
461
- * @param {Object.<String, {String: Object}>} opts.requestBody Session fields, such as `why_session_opened`, `why_session_closed` and signal or location values.
444
+ * @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
462
445
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
463
446
  */
464
447
  }, {
@@ -489,12 +472,11 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
489
472
  }
490
473
 
491
474
  /**
492
- * Open or close a webhook device's session (legacy)
493
- * Legacy: open, update or close a webhook device's session, adding the device if it's new. The body is a session: set `why_session_opened` to open one, `why_session_closed` to close it, both to close and reopen, or neither to update the open session. Requires the Owner or Developer role. Returns 400 when updating with no session open.
475
+ * Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
494
476
  * @param {String} productUID
495
477
  * @param {String} deviceUID
496
478
  * @param {Object} opts Optional parameters
497
- * @param {Object.<String, {String: Object}>} opts.requestBody Session fields, such as `why_session_opened`, `why_session_closed` and signal or location values.
479
+ * @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
498
480
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
499
481
  */
500
482
  }, {
@@ -506,10 +488,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
506
488
  }
507
489
 
508
490
  /**
509
- * Update a webhook
510
- * Replace a webhook's settings, creating the webhook if it doesn't exist. Send every field: a missing `transform` is cleared and a missing `disabled` enables the webhook. Requires the Owner or Developer role.
491
+ * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
511
492
  * @param {String} projectOrProductUID
512
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
493
+ * @param {String} webhookUID WebhookUID
513
494
  * @param {module:model/WebhookSettings} webhookSettings
514
495
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
515
496
  */
@@ -544,10 +525,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
544
525
  }
545
526
 
546
527
  /**
547
- * Update a webhook
548
- * Replace a webhook's settings, creating the webhook if it doesn't exist. Send every field: a missing `transform` is cleared and a missing `disabled` enables the webhook. Requires the Owner or Developer role.
528
+ * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
549
529
  * @param {String} projectOrProductUID
550
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
530
+ * @param {String} webhookUID WebhookUID
551
531
  * @param {module:model/WebhookSettings} webhookSettings
552
532
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
553
533
  */
@@ -560,10 +540,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
560
540
  }
561
541
 
562
542
  /**
563
- * Update a webhook by ProductUID
564
- * Replace a webhook's settings, like `UpdateWebhook`, but addressed by ProductUID. Creates the webhook if it doesn't exist. Requires the Owner or Developer role. Returns 400 if the ID has characters other than letters, digits, `-` and `_`.
543
+ * Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
565
544
  * @param {String} productUID
566
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
545
+ * @param {String} webhookUID WebhookUID
567
546
  * @param {module:model/WebhookSettings} webhookSettings
568
547
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
569
548
  */
@@ -598,10 +577,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
598
577
  }
599
578
 
600
579
  /**
601
- * Update a webhook by ProductUID
602
- * Replace a webhook's settings, like `UpdateWebhook`, but addressed by ProductUID. Creates the webhook if it doesn't exist. Requires the Owner or Developer role. Returns 400 if the ID has characters other than letters, digits, `-` and `_`.
580
+ * Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
603
581
  * @param {String} productUID
604
- * @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
582
+ * @param {String} webhookUID WebhookUID
605
583
  * @param {module:model/WebhookSettings} webhookSettings
606
584
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
607
585
  */
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The AWSRoleConfig model module.
31
31
  * @module model/AWSRoleConfig
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var AWSRoleConfig = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 6.7.0-beta.71
34
+ * @version 6.7.0-beta.72
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The ArchiveStats model module.
28
28
  * @module model/ArchiveStats
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var ArchiveStats = /*#__PURE__*/function () {
32
32
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
28
28
  /**
29
29
  * The AwsRoute model module.
30
30
  * @module model/AwsRoute
31
- * @version 6.7.0-beta.71
31
+ * @version 6.7.0-beta.72
32
32
  */
33
33
  var AwsRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
28
28
  /**
29
29
  * The AzureRoute model module.
30
30
  * @module model/AzureRoute
31
- * @version 6.7.0-beta.71
31
+ * @version 6.7.0-beta.72
32
32
  */
33
33
  var AzureRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The BatchJobNoteRequest model module.
31
31
  * @module model/BatchJobNoteRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var BatchJobNoteRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The BatchJobRequests model module.
32
32
  * @module model/BatchJobRequests
33
- * @version 6.7.0-beta.71
33
+ * @version 6.7.0-beta.72
34
34
  */
35
35
  var BatchJobRequests = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The BillingAccount model module.
32
32
  * @module model/BillingAccount
33
- * @version 6.7.0-beta.71
33
+ * @version 6.7.0-beta.72
34
34
  */
35
35
  var BillingAccount = /*#__PURE__*/function () {
36
36
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
28
28
  /**
29
29
  * The BlynkRoute model module.
30
30
  * @module model/BlynkRoute
31
- * @version 6.7.0-beta.71
31
+ * @version 6.7.0-beta.72
32
32
  */
33
33
  var BlynkRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The Body model module.
28
28
  * @module model/Body
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var Body = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CancelJobRun200Response model module.
31
31
  * @module model/CancelJobRun200Response
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CancelJobRun200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
27
27
  /**
28
28
  * The CellularPlan model module.
29
29
  * @module model/CellularPlan
30
- * @version 6.7.0-beta.71
30
+ * @version 6.7.0-beta.72
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CloneProjectRequest model module.
31
31
  * @module model/CloneProjectRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The Contact model module.
28
28
  * @module model/Contact
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
27
27
  /**
28
28
  * The CreateFleetRequest model module.
29
29
  * @module model/CreateFleetRequest
30
- * @version 6.7.0-beta.71
30
+ * @version 6.7.0-beta.72
31
31
  */
32
32
  var CreateFleetRequest = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateJob201Response model module.
31
31
  * @module model/CreateJob201Response
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CreateJob201Response = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The CreateMonitor model module.
33
33
  * @module model/CreateMonitor
34
- * @version 6.7.0-beta.71
34
+ * @version 6.7.0-beta.72
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateProductRequest model module.
31
31
  * @module model/CreateProductRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CreateProductRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateProjectRequest model module.
31
31
  * @module model/CreateProjectRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CreateProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateProjectSecretRequest model module.
31
31
  * @module model/CreateProjectSecretRequest
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var CreateProjectSecretRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The CreateUpdateRepository model module.
28
28
  * @module model/CreateUpdateRepository
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var CreateUpdateRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The CreatedRepository model module.
28
28
  * @module model/CreatedRepository
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var CreatedRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
27
27
  /**
28
28
  * The CurrentFirmware model module.
29
29
  * @module model/CurrentFirmware
30
- * @version 6.7.0-beta.71
30
+ * @version 6.7.0-beta.72
31
31
  */
32
32
  var CurrentFirmware = /*#__PURE__*/function () {
33
33
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
27
27
  /**
28
28
  * The DFUEnv model module.
29
29
  * @module model/DFUEnv
30
- * @version 6.7.0-beta.71
30
+ * @version 6.7.0-beta.72
31
31
  */
32
32
  var DFUEnv = /*#__PURE__*/function () {
33
33
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The DFUState model module.
28
28
  * @module model/DFUState
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var DFUState = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The DataField model module.
28
28
  * @module model/DataField
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var DataField = /*#__PURE__*/function () {
32
32
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The DataSet model module.
33
33
  * @module model/DataSet
34
- * @version 6.7.0-beta.71
34
+ * @version 6.7.0-beta.72
35
35
  */
36
36
  var DataSet = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The DataSetField model module.
28
28
  * @module model/DataSetField
29
- * @version 6.7.0-beta.71
29
+ * @version 6.7.0-beta.72
30
30
  */
31
31
  var DataSetField = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The DataUsage model module.
31
31
  * @module model/DataUsage
32
- * @version 6.7.0-beta.71
32
+ * @version 6.7.0-beta.72
33
33
  */
34
34
  var DataUsage = /*#__PURE__*/function () {
35
35
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
28
28
  /**
29
29
  * The DatacakeRoute model module.
30
30
  * @module model/DatacakeRoute
31
- * @version 6.7.0-beta.71
31
+ * @version 6.7.0-beta.72
32
32
  */
33
33
  var DatacakeRoute = /*#__PURE__*/function () {
34
34
  /**