@blues-inc/notehub-js 7.0.0-beta.1 → 7.0.0-beta.2
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.
- package/README.md +5 -5
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +9 -9
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +9 -9
- package/dist/api/DeviceApi.js +195 -195
- package/dist/api/EventApi.js +33 -33
- package/dist/api/ExternalDevicesApi.js +13 -13
- package/dist/api/JobsApi.js +19 -19
- package/dist/api/MonitorApi.js +11 -11
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +185 -185
- package/dist/api/RouteApi.js +25 -25
- package/dist/api/SkillsApi.js +9 -9
- package/dist/api/UsageApi.js +17 -17
- package/dist/api/WebhookApi.js +29 -29
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -3
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +2 -14
- package/dist/model/AzureRoute.js +1 -8
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -2
- package/dist/model/BillingAccount.js +3 -5
- package/dist/model/BlynkRoute.js +1 -6
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -5
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -2
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -2
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -7
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +2 -3
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -3
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -3
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -33
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -7
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +6 -17
- package/dist/model/EnvVar.js +1 -5
- package/dist/model/EnvironmentVariables.js +2 -3
- package/dist/model/Error.js +1 -4
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +5 -5
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetOrganization200Response.js +1 -1
- package/dist/model/GetOrganization200ResponsePlan.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +2 -3
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -6
- package/dist/model/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +2 -7
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -2
- package/dist/model/JobDefinitionSelect.js +1 -2
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -14
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -3
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +2 -2
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -6
- package/dist/model/QubitroRoute.js +1 -7
- package/dist/model/RadRoute.js +1 -9
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +2 -3
- package/dist/model/RepositoryRecord.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +5 -5
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -16
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +4 -7
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +5 -9
- package/dist/model/SkillSummary.js +4 -7
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +2 -3
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -9
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -9
- package/dist/model/SnowpipeStreamingRoute.js +1 -12
- package/dist/model/ThingworxRoute.js +1 -6
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioNotification.js +1 -1
- package/dist/model/TwilioRoute.js +1 -9
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +2 -3
- package/dist/model/UsageData.js +3 -7
- package/dist/model/UsageEventsData.js +2 -5
- package/dist/model/UsageEventsResponse.js +2 -3
- package/dist/model/UsageRouteLogsData.js +5 -9
- package/dist/model/UsageSessionsData.js +5 -11
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/api/RouteApi.js
CHANGED
|
@@ -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 7.0.0-beta.
|
|
33
|
+
* @version 7.0.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,7 +48,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Create a route
|
|
50
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.
|
|
51
|
-
* @param {String} projectOrProductUID
|
|
51
|
+
* @param {String} projectOrProductUID
|
|
52
52
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
54
54
|
*/
|
|
@@ -80,7 +80,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
80
80
|
/**
|
|
81
81
|
* Create a route
|
|
82
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.
|
|
83
|
-
* @param {String} projectOrProductUID
|
|
83
|
+
* @param {String} projectOrProductUID
|
|
84
84
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
85
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
86
86
|
*/
|
|
@@ -94,8 +94,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Delete a route
|
|
97
|
-
* Delete a route so it stops sending events. Requires the Owner or Developer role.
|
|
98
|
-
* @param {String} projectOrProductUID
|
|
97
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
98
|
+
* @param {String} projectOrProductUID
|
|
99
99
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
100
100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
101
101
|
*/
|
|
@@ -127,8 +127,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* Delete a route
|
|
130
|
-
* Delete a route so it stops sending events. Requires the Owner or Developer role.
|
|
131
|
-
* @param {String} projectOrProductUID
|
|
130
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
131
|
+
* @param {String} projectOrProductUID
|
|
132
132
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
133
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
134
134
|
*/
|
|
@@ -143,7 +143,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
143
143
|
/**
|
|
144
144
|
* Get a route
|
|
145
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.
|
|
146
|
-
* @param {String} projectOrProductUID
|
|
146
|
+
* @param {String} projectOrProductUID
|
|
147
147
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
148
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
149
149
|
*/
|
|
@@ -176,7 +176,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
176
|
/**
|
|
177
177
|
* Get a route
|
|
178
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.
|
|
179
|
-
* @param {String} projectOrProductUID
|
|
179
|
+
* @param {String} projectOrProductUID
|
|
180
180
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
182
182
|
*/
|
|
@@ -191,13 +191,13 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
191
191
|
/**
|
|
192
192
|
* List a route's logs
|
|
193
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.
|
|
194
|
-
* @param {String} projectOrProductUID
|
|
194
|
+
* @param {String} projectOrProductUID
|
|
195
195
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
196
196
|
* @param {Object} opts Optional parameters
|
|
197
|
-
* @param {Number} opts.pageSize
|
|
198
|
-
* @param {Number} opts.pageNum
|
|
199
|
-
* @param {String} opts.cursor
|
|
200
|
-
* @param {Array.<String>} opts.deviceUID
|
|
197
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
198
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
199
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
200
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
201
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
202
|
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
203
203
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -253,13 +253,13 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
253
253
|
/**
|
|
254
254
|
* List a route's logs
|
|
255
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.
|
|
256
|
-
* @param {String} projectOrProductUID
|
|
256
|
+
* @param {String} projectOrProductUID
|
|
257
257
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
258
258
|
* @param {Object} opts Optional parameters
|
|
259
|
-
* @param {Number} opts.pageSize
|
|
260
|
-
* @param {Number} opts.pageNum
|
|
261
|
-
* @param {String} opts.cursor
|
|
262
|
-
* @param {Array.<String>} opts.deviceUID
|
|
259
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
260
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
261
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
262
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
263
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
264
|
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
265
265
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -282,7 +282,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
282
|
/**
|
|
283
283
|
* List routes
|
|
284
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`.
|
|
285
|
-
* @param {String} projectOrProductUID
|
|
285
|
+
* @param {String} projectOrProductUID
|
|
286
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
|
|
287
287
|
*/
|
|
288
288
|
}, {
|
|
@@ -309,7 +309,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
309
|
/**
|
|
310
310
|
* List routes
|
|
311
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`.
|
|
312
|
-
* @param {String} projectOrProductUID
|
|
312
|
+
* @param {String} projectOrProductUID
|
|
313
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
|
|
314
314
|
*/
|
|
315
315
|
}, {
|
|
@@ -322,8 +322,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
324
|
* Update a route
|
|
325
|
-
*
|
|
326
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
326
|
+
* @param {String} projectOrProductUID
|
|
327
327
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
328
328
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
329
329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
@@ -360,8 +360,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* Update a route
|
|
363
|
-
*
|
|
364
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
364
|
+
* @param {String} projectOrProductUID
|
|
365
365
|
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
366
366
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
367
367
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
package/dist/api/SkillsApi.js
CHANGED
|
@@ -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 7.0.0-beta.
|
|
34
|
+
* @version 7.0.0-beta.2
|
|
35
35
|
*/
|
|
36
36
|
var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -49,7 +49,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
49
|
/**
|
|
50
50
|
* Delete a project skill
|
|
51
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
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
55
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -89,7 +89,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
89
|
/**
|
|
90
90
|
* Delete a project skill
|
|
91
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
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
95
95
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -105,7 +105,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
105
105
|
/**
|
|
106
106
|
* Get a project skill
|
|
107
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
|
-
* @param {String} projectOrProductUID
|
|
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
|
|
111
111
|
* @param {String} opts.ifMatch Optionally require one strong ETag or quoted skill revision; wildcards and weak tags are rejected.
|
|
@@ -145,7 +145,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
145
145
|
/**
|
|
146
146
|
* Get a project skill
|
|
147
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
|
-
* @param {String} projectOrProductUID
|
|
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
|
|
151
151
|
* @param {String} opts.ifMatch Optionally require one strong ETag or quoted skill revision; wildcards and weak tags are rejected.
|
|
@@ -163,7 +163,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
163
163
|
/**
|
|
164
164
|
* List project skills
|
|
165
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
|
-
* @param {String} projectOrProductUID
|
|
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)
|
|
169
169
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag from GetSkills matches, or use * to match any current representation.
|
|
@@ -198,7 +198,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
198
198
|
/**
|
|
199
199
|
* List project skills
|
|
200
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
|
-
* @param {String} projectOrProductUID
|
|
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)
|
|
204
204
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag from GetSkills matches, or use * to match any current representation.
|
|
@@ -215,7 +215,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
215
|
/**
|
|
216
216
|
* Create or replace a project skill
|
|
217
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
|
-
* @param {String} projectOrProductUID
|
|
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
|
|
221
221
|
* @param {Object} opts Optional parameters
|
|
@@ -260,7 +260,7 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
260
|
/**
|
|
261
261
|
* Create or replace a project skill
|
|
262
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
|
-
* @param {String} projectOrProductUID
|
|
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
|
|
266
266
|
* @param {Object} opts Optional parameters
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -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 7.0.0-beta.
|
|
35
|
+
* @version 7.0.0-beta.2
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|
|
@@ -50,7 +50,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
50
50
|
/**
|
|
51
51
|
* Get billable API usage
|
|
52
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
|
|
53
|
+
* @param {String} projectOrProductUID
|
|
54
54
|
* @param {module:model/String} period The length of time each data point covers.
|
|
55
55
|
* @param {Object} opts Optional parameters
|
|
56
56
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -92,7 +92,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
92
|
/**
|
|
93
93
|
* Get billable API usage
|
|
94
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
|
|
95
|
+
* @param {String} projectOrProductUID
|
|
96
96
|
* @param {module:model/String} period The length of time each data point covers.
|
|
97
97
|
* @param {Object} opts Optional parameters
|
|
98
98
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -111,12 +111,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
111
|
/**
|
|
112
112
|
* Get cellular and satellite data usage
|
|
113
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
|
|
114
|
+
* @param {String} projectOrProductUID
|
|
115
115
|
* @param {module:model/String} period The length of time each data point covers.
|
|
116
116
|
* @param {Object} opts Optional parameters
|
|
117
117
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
118
118
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
119
|
-
* @param {Array.<String>} opts.deviceUID
|
|
119
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
120
120
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
121
121
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
122
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')
|
|
@@ -159,12 +159,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
159
159
|
/**
|
|
160
160
|
* Get cellular and satellite data usage
|
|
161
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
|
|
162
|
+
* @param {String} projectOrProductUID
|
|
163
163
|
* @param {module:model/String} period The length of time each data point covers.
|
|
164
164
|
* @param {Object} opts Optional parameters
|
|
165
165
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
166
166
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
167
|
-
* @param {Array.<String>} opts.deviceUID
|
|
167
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
168
168
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
169
169
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
170
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')
|
|
@@ -181,12 +181,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
181
|
/**
|
|
182
182
|
* Get event usage
|
|
183
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
|
|
184
|
+
* @param {String} projectOrProductUID
|
|
185
185
|
* @param {module:model/String} period The length of time each data point covers.
|
|
186
186
|
* @param {Object} opts Optional parameters
|
|
187
187
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
188
188
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
189
|
-
* @param {Array.<String>} opts.deviceUID
|
|
189
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
190
190
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
191
191
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
192
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')
|
|
@@ -235,12 +235,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
235
235
|
/**
|
|
236
236
|
* Get event usage
|
|
237
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
|
|
238
|
+
* @param {String} projectOrProductUID
|
|
239
239
|
* @param {module:model/String} period The length of time each data point covers.
|
|
240
240
|
* @param {Object} opts Optional parameters
|
|
241
241
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
242
242
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
243
|
-
* @param {Array.<String>} opts.deviceUID
|
|
243
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
244
244
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
245
245
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
246
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')
|
|
@@ -260,7 +260,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
260
|
/**
|
|
261
261
|
* Get route log usage
|
|
262
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
|
|
263
|
+
* @param {String} projectOrProductUID
|
|
264
264
|
* @param {module:model/String} period The length of time each data point covers.
|
|
265
265
|
* @param {Object} opts Optional parameters
|
|
266
266
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -308,7 +308,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
308
|
/**
|
|
309
309
|
* Get route log usage
|
|
310
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
|
|
311
|
+
* @param {String} projectOrProductUID
|
|
312
312
|
* @param {module:model/String} period The length of time each data point covers.
|
|
313
313
|
* @param {Object} opts Optional parameters
|
|
314
314
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -330,12 +330,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
330
330
|
/**
|
|
331
331
|
* Get session usage
|
|
332
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
|
|
333
|
+
* @param {String} projectOrProductUID
|
|
334
334
|
* @param {module:model/String} period The length of time each data point covers.
|
|
335
335
|
* @param {Object} opts Optional parameters
|
|
336
336
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
337
337
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
338
|
-
* @param {Array.<String>} opts.deviceUID
|
|
338
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
339
339
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
340
340
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
341
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')
|
|
@@ -380,12 +380,12 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
380
380
|
/**
|
|
381
381
|
* Get session usage
|
|
382
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
|
|
383
|
+
* @param {String} projectOrProductUID
|
|
384
384
|
* @param {module:model/String} period The length of time each data point covers.
|
|
385
385
|
* @param {Object} opts Optional parameters
|
|
386
386
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
387
387
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
388
|
-
* @param {Array.<String>} opts.deviceUID
|
|
388
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
389
389
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
390
390
|
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
391
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')
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,8 +47,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* Add a note-shaped event from a device (legacy)
|
|
49
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`.
|
|
50
|
-
* @param {String} productUID
|
|
51
|
-
* @param {String} deviceUID
|
|
50
|
+
* @param {String} productUID
|
|
51
|
+
* @param {String} deviceUID
|
|
52
52
|
* @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.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
54
54
|
*/
|
|
@@ -85,8 +85,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
85
|
/**
|
|
86
86
|
* Add a note-shaped event from a device (legacy)
|
|
87
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`.
|
|
88
|
-
* @param {String} productUID
|
|
89
|
-
* @param {String} deviceUID
|
|
88
|
+
* @param {String} productUID
|
|
89
|
+
* @param {String} deviceUID
|
|
90
90
|
* @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.
|
|
91
91
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
92
92
|
*/
|
|
@@ -101,7 +101,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
101
|
/**
|
|
102
102
|
* Create a webhook
|
|
103
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 `_`.
|
|
104
|
-
* @param {String} projectOrProductUID
|
|
104
|
+
* @param {String} projectOrProductUID
|
|
105
105
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
106
106
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
107
107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -139,7 +139,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
139
139
|
/**
|
|
140
140
|
* Create a webhook
|
|
141
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 `_`.
|
|
142
|
-
* @param {String} projectOrProductUID
|
|
142
|
+
* @param {String} projectOrProductUID
|
|
143
143
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
144
144
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
145
145
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -155,9 +155,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
155
|
/**
|
|
156
156
|
* Send a device's event through a webhook
|
|
157
157
|
* Post JSON to a webhook as one device's event, like `CreateWebhookEventByProduct`, adding the device if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:abc` becomes `dev:ext:abc`, not an existing Notecard. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
|
|
158
|
-
* @param {String} productUID
|
|
158
|
+
* @param {String} productUID
|
|
159
159
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
160
|
-
* @param {String} deviceUID
|
|
160
|
+
* @param {String} deviceUID
|
|
161
161
|
* @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
163
163
|
*/
|
|
@@ -199,9 +199,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
199
199
|
/**
|
|
200
200
|
* Send a device's event through a webhook
|
|
201
201
|
* Post JSON to a webhook as one device's event, like `CreateWebhookEventByProduct`, adding the device if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:abc` becomes `dev:ext:abc`, not an existing Notecard. Requires the Owner or Developer role. Returns 400 if the transform fails, and 500 if the webhook is disabled.
|
|
202
|
-
* @param {String} productUID
|
|
202
|
+
* @param {String} productUID
|
|
203
203
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
204
|
-
* @param {String} deviceUID
|
|
204
|
+
* @param {String} deviceUID
|
|
205
205
|
* @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
|
|
206
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
207
207
|
*/
|
|
@@ -216,7 +216,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
216
216
|
/**
|
|
217
217
|
* Send an event through a webhook
|
|
218
218
|
* Post JSON to a webhook. The body becomes the event body, in `<webhookUID>.qo`, from `dev:ext:webhook`; a `transform` can change all three, but must set `body`. For a specific device, use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if the transform fails or sets no `body`, and 500 if the webhook is disabled.
|
|
219
|
-
* @param {String} productUID
|
|
219
|
+
* @param {String} productUID
|
|
220
220
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
221
221
|
* @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
|
|
222
222
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -254,7 +254,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
254
254
|
/**
|
|
255
255
|
* Send an event through a webhook
|
|
256
256
|
* Post JSON to a webhook. The body becomes the event body, in `<webhookUID>.qo`, from `dev:ext:webhook`; a `transform` can change all three, but must set `body`. For a specific device, use `CreateWebhookDeviceEventByProduct`. Requires the Owner or Developer role. Returns 400 if the transform fails or sets no `body`, and 500 if the webhook is disabled.
|
|
257
|
-
* @param {String} productUID
|
|
257
|
+
* @param {String} productUID
|
|
258
258
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
259
259
|
* @param {Object.<String, {String: Object}>} requestBody Any JSON object; it becomes the event body, or the transform's input.
|
|
260
260
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -270,7 +270,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
270
270
|
/**
|
|
271
271
|
* Delete a webhook
|
|
272
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.
|
|
273
|
-
* @param {String} projectOrProductUID
|
|
273
|
+
* @param {String} projectOrProductUID
|
|
274
274
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
275
275
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
276
276
|
*/
|
|
@@ -303,7 +303,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
303
303
|
/**
|
|
304
304
|
* Delete a webhook
|
|
305
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.
|
|
306
|
-
* @param {String} projectOrProductUID
|
|
306
|
+
* @param {String} projectOrProductUID
|
|
307
307
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
308
308
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
309
309
|
*/
|
|
@@ -318,7 +318,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
318
318
|
/**
|
|
319
319
|
* Get a webhook
|
|
320
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.
|
|
321
|
-
* @param {String} projectOrProductUID
|
|
321
|
+
* @param {String} projectOrProductUID
|
|
322
322
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
323
323
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
324
324
|
*/
|
|
@@ -351,7 +351,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
351
351
|
/**
|
|
352
352
|
* Get a webhook
|
|
353
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.
|
|
354
|
-
* @param {String} projectOrProductUID
|
|
354
|
+
* @param {String} projectOrProductUID
|
|
355
355
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
356
356
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
357
357
|
*/
|
|
@@ -366,7 +366,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
366
366
|
/**
|
|
367
367
|
* Get a webhook by ProductUID
|
|
368
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.
|
|
369
|
-
* @param {String} productUID
|
|
369
|
+
* @param {String} productUID
|
|
370
370
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
371
371
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
372
372
|
*/
|
|
@@ -399,7 +399,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
399
|
/**
|
|
400
400
|
* Get a webhook by ProductUID
|
|
401
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.
|
|
402
|
-
* @param {String} productUID
|
|
402
|
+
* @param {String} productUID
|
|
403
403
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
404
404
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
405
405
|
*/
|
|
@@ -414,7 +414,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
414
414
|
/**
|
|
415
415
|
* List webhooks
|
|
416
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.
|
|
417
|
-
* @param {String} projectOrProductUID
|
|
417
|
+
* @param {String} projectOrProductUID
|
|
418
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
|
|
419
419
|
*/
|
|
420
420
|
}, {
|
|
@@ -441,7 +441,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
441
441
|
/**
|
|
442
442
|
* List webhooks
|
|
443
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.
|
|
444
|
-
* @param {String} projectOrProductUID
|
|
444
|
+
* @param {String} projectOrProductUID
|
|
445
445
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
|
|
446
446
|
*/
|
|
447
447
|
}, {
|
|
@@ -455,8 +455,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
455
455
|
/**
|
|
456
456
|
* Open or close a webhook device's session (legacy)
|
|
457
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.
|
|
458
|
-
* @param {String} productUID
|
|
459
|
-
* @param {String} deviceUID
|
|
458
|
+
* @param {String} productUID
|
|
459
|
+
* @param {String} deviceUID
|
|
460
460
|
* @param {Object} opts Optional parameters
|
|
461
461
|
* @param {Object.<String, {String: Object}>} opts.requestBody Session fields, such as `why_session_opened`, `why_session_closed` and signal or location values.
|
|
462
462
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -491,8 +491,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
491
|
/**
|
|
492
492
|
* Open or close a webhook device's session (legacy)
|
|
493
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.
|
|
494
|
-
* @param {String} productUID
|
|
495
|
-
* @param {String} deviceUID
|
|
494
|
+
* @param {String} productUID
|
|
495
|
+
* @param {String} deviceUID
|
|
496
496
|
* @param {Object} opts Optional parameters
|
|
497
497
|
* @param {Object.<String, {String: Object}>} opts.requestBody Session fields, such as `why_session_opened`, `why_session_closed` and signal or location values.
|
|
498
498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -508,7 +508,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
508
508
|
/**
|
|
509
509
|
* Update a webhook
|
|
510
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.
|
|
511
|
-
* @param {String} projectOrProductUID
|
|
511
|
+
* @param {String} projectOrProductUID
|
|
512
512
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
513
513
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
514
514
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -546,7 +546,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
546
|
/**
|
|
547
547
|
* Update a webhook
|
|
548
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.
|
|
549
|
-
* @param {String} projectOrProductUID
|
|
549
|
+
* @param {String} projectOrProductUID
|
|
550
550
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
551
551
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
552
552
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -562,7 +562,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
562
562
|
/**
|
|
563
563
|
* Update a webhook by ProductUID
|
|
564
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 `_`.
|
|
565
|
-
* @param {String} productUID
|
|
565
|
+
* @param {String} productUID
|
|
566
566
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
567
567
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
568
568
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -600,7 +600,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
600
|
/**
|
|
601
601
|
* Update a webhook by ProductUID
|
|
602
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 `_`.
|
|
603
|
-
* @param {String} productUID
|
|
603
|
+
* @param {String} productUID
|
|
604
604
|
* @param {String} webhookUID Webhook ID, e.g. `ttn-uplink`. Use lower case. List with `GetWebhooks`.
|
|
605
605
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
606
606
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.2
|
|
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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|