@blues-inc/notehub-js 6.7.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +154 -150
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +12 -7
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +277 -134
- package/dist/api/EventApi.js +67 -200
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +259 -165
- package/dist/api/RouteApi.js +54 -39
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +73 -63
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +91 -63
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +14 -9
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +14 -4
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +3 -1
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +36 -8
- package/dist/model/DeviceDfuHistory.js +12 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +14 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +12 -3
- package/dist/model/DeviceDfuStatusPage.js +14 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +16 -7
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +14 -1
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- 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 +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +14 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -1
- package/dist/model/GetDeviceSessions200Response.js +14 -1
- package/dist/model/GetDevices200Response.js +14 -1
- package/dist/model/GetEvents200Response.js +14 -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/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- 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 +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- 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 +13 -7
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +60 -14
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +207 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
- package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
- package/dist/model/SkillSummary.js +205 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +153 -0
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioNotification.js +167 -0
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageSessionsData.js +1 -1
- 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 +4 -4
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/LoginRequest.js +0 -103
package/dist/api/ProjectApi.js
CHANGED
|
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version
|
|
59
|
+
* @version 7.0.0
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
|
@@ -72,10 +72,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Add
|
|
75
|
+
* Add a device to fleets
|
|
76
|
+
* Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
|
|
76
77
|
* @param {String} projectOrProductUID
|
|
77
78
|
* @param {String} deviceUID
|
|
78
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add
|
|
79
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
79
80
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
80
81
|
*/
|
|
81
82
|
return _createClass(ProjectApi, [{
|
|
@@ -109,10 +110,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
/**
|
|
112
|
-
* Add
|
|
113
|
+
* Add a device to fleets
|
|
114
|
+
* Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
|
|
113
115
|
* @param {String} projectOrProductUID
|
|
114
116
|
* @param {String} deviceUID
|
|
115
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add
|
|
117
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
116
118
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
117
119
|
*/
|
|
118
120
|
}, {
|
|
@@ -124,9 +126,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
/**
|
|
127
|
-
* Clone a
|
|
129
|
+
* Clone a project
|
|
130
|
+
* Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
128
131
|
* @param {String} projectOrProductUID
|
|
129
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
132
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
|
|
130
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
131
134
|
*/
|
|
132
135
|
}, {
|
|
@@ -155,9 +158,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
/**
|
|
158
|
-
* Clone a
|
|
161
|
+
* Clone a project
|
|
162
|
+
* Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
159
163
|
* @param {String} projectOrProductUID
|
|
160
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
164
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
|
|
161
165
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
162
166
|
*/
|
|
163
167
|
}, {
|
|
@@ -169,9 +173,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
/**
|
|
172
|
-
* Create
|
|
176
|
+
* Create a fleet
|
|
177
|
+
* Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
|
|
173
178
|
* @param {String} projectOrProductUID
|
|
174
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
179
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
|
|
175
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
176
181
|
*/
|
|
177
182
|
}, {
|
|
@@ -200,9 +205,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
/**
|
|
203
|
-
* Create
|
|
208
|
+
* Create a fleet
|
|
209
|
+
* Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
|
|
204
210
|
* @param {String} projectOrProductUID
|
|
205
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
211
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
|
|
206
212
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
207
213
|
*/
|
|
208
214
|
}, {
|
|
@@ -214,9 +220,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
214
220
|
}
|
|
215
221
|
|
|
216
222
|
/**
|
|
217
|
-
* Create
|
|
223
|
+
* Create a product
|
|
224
|
+
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
218
225
|
* @param {String} projectOrProductUID
|
|
219
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
226
|
+
* @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
|
|
220
227
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
221
228
|
*/
|
|
222
229
|
}, {
|
|
@@ -245,9 +252,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
252
|
}
|
|
246
253
|
|
|
247
254
|
/**
|
|
248
|
-
* Create
|
|
255
|
+
* Create a product
|
|
256
|
+
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
249
257
|
* @param {String} projectOrProductUID
|
|
250
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
258
|
+
* @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
|
|
251
259
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
252
260
|
*/
|
|
253
261
|
}, {
|
|
@@ -259,8 +267,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
259
267
|
}
|
|
260
268
|
|
|
261
269
|
/**
|
|
262
|
-
* Create a
|
|
263
|
-
*
|
|
270
|
+
* Create a project
|
|
271
|
+
* Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
|
|
272
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
264
273
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
265
274
|
*/
|
|
266
275
|
}, {
|
|
@@ -283,8 +292,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
283
292
|
}
|
|
284
293
|
|
|
285
294
|
/**
|
|
286
|
-
* Create a
|
|
287
|
-
*
|
|
295
|
+
* Create a project
|
|
296
|
+
* Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
|
|
297
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
288
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
289
299
|
*/
|
|
290
300
|
}, {
|
|
@@ -296,7 +306,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
306
|
}
|
|
297
307
|
|
|
298
308
|
/**
|
|
299
|
-
* Create a
|
|
309
|
+
* Create a project secret
|
|
310
|
+
* Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
|
|
300
311
|
* @param {String} projectOrProductUID
|
|
301
312
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
302
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
@@ -327,7 +338,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
338
|
}
|
|
328
339
|
|
|
329
340
|
/**
|
|
330
|
-
* Create a
|
|
341
|
+
* Create a project secret
|
|
342
|
+
* Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
|
|
331
343
|
* @param {String} projectOrProductUID
|
|
332
344
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
333
345
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
@@ -341,10 +353,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
353
|
}
|
|
342
354
|
|
|
343
355
|
/**
|
|
344
|
-
* Remove
|
|
356
|
+
* Remove a device from fleets
|
|
357
|
+
* Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
|
|
345
358
|
* @param {String} projectOrProductUID
|
|
346
359
|
* @param {String} deviceUID
|
|
347
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove
|
|
360
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
|
|
348
361
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
349
362
|
*/
|
|
350
363
|
}, {
|
|
@@ -378,10 +391,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
378
391
|
}
|
|
379
392
|
|
|
380
393
|
/**
|
|
381
|
-
* Remove
|
|
394
|
+
* Remove a device from fleets
|
|
395
|
+
* Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
|
|
382
396
|
* @param {String} projectOrProductUID
|
|
383
397
|
* @param {String} deviceUID
|
|
384
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove
|
|
398
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
|
|
385
399
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
386
400
|
*/
|
|
387
401
|
}, {
|
|
@@ -393,7 +407,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
393
407
|
}
|
|
394
408
|
|
|
395
409
|
/**
|
|
396
|
-
* Delete
|
|
410
|
+
* Delete host firmware
|
|
411
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
397
412
|
* @param {String} projectOrProductUID
|
|
398
413
|
* @param {module:model/String} firmwareType
|
|
399
414
|
* @param {String} filename
|
|
@@ -431,7 +446,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
431
446
|
}
|
|
432
447
|
|
|
433
448
|
/**
|
|
434
|
-
* Delete
|
|
449
|
+
* Delete host firmware
|
|
450
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
435
451
|
* @param {String} projectOrProductUID
|
|
436
452
|
* @param {module:model/String} firmwareType
|
|
437
453
|
* @param {String} filename
|
|
@@ -446,7 +462,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
462
|
}
|
|
447
463
|
|
|
448
464
|
/**
|
|
449
|
-
* Delete
|
|
465
|
+
* Delete a fleet
|
|
466
|
+
* Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
|
|
450
467
|
* @param {String} projectOrProductUID
|
|
451
468
|
* @param {String} fleetUID
|
|
452
469
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -478,7 +495,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
478
495
|
}
|
|
479
496
|
|
|
480
497
|
/**
|
|
481
|
-
* Delete
|
|
498
|
+
* Delete a fleet
|
|
499
|
+
* Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
|
|
482
500
|
* @param {String} projectOrProductUID
|
|
483
501
|
* @param {String} fleetUID
|
|
484
502
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -492,10 +510,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
510
|
}
|
|
493
511
|
|
|
494
512
|
/**
|
|
495
|
-
* Delete
|
|
513
|
+
* Delete a fleet environment variable
|
|
514
|
+
* Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
|
|
496
515
|
* @param {String} projectOrProductUID
|
|
497
516
|
* @param {String} fleetUID
|
|
498
|
-
* @param {String} key
|
|
517
|
+
* @param {String} key Name of the environment variable to delete.
|
|
499
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
500
519
|
*/
|
|
501
520
|
}, {
|
|
@@ -530,10 +549,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
530
549
|
}
|
|
531
550
|
|
|
532
551
|
/**
|
|
533
|
-
* Delete
|
|
552
|
+
* Delete a fleet environment variable
|
|
553
|
+
* Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
|
|
534
554
|
* @param {String} projectOrProductUID
|
|
535
555
|
* @param {String} fleetUID
|
|
536
|
-
* @param {String} key
|
|
556
|
+
* @param {String} key Name of the environment variable to delete.
|
|
537
557
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
538
558
|
*/
|
|
539
559
|
}, {
|
|
@@ -546,6 +566,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
566
|
|
|
547
567
|
/**
|
|
548
568
|
* Delete a product
|
|
569
|
+
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
549
570
|
* @param {String} projectOrProductUID
|
|
550
571
|
* @param {String} productUID
|
|
551
572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -578,6 +599,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
599
|
|
|
579
600
|
/**
|
|
580
601
|
* Delete a product
|
|
602
|
+
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
581
603
|
* @param {String} projectOrProductUID
|
|
582
604
|
* @param {String} productUID
|
|
583
605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -591,7 +613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
613
|
}
|
|
592
614
|
|
|
593
615
|
/**
|
|
594
|
-
* Delete a
|
|
616
|
+
* Delete a project
|
|
617
|
+
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
595
618
|
* @param {String} projectOrProductUID
|
|
596
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
597
620
|
*/
|
|
@@ -617,7 +640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
617
640
|
}
|
|
618
641
|
|
|
619
642
|
/**
|
|
620
|
-
* Delete a
|
|
643
|
+
* Delete a project
|
|
644
|
+
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
621
645
|
* @param {String} projectOrProductUID
|
|
622
646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
623
647
|
*/
|
|
@@ -630,9 +654,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
630
654
|
}
|
|
631
655
|
|
|
632
656
|
/**
|
|
633
|
-
* Delete
|
|
657
|
+
* Delete a project environment variable
|
|
658
|
+
* Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
|
|
634
659
|
* @param {String} projectOrProductUID
|
|
635
|
-
* @param {String} key
|
|
660
|
+
* @param {String} key Name of the environment variable to delete.
|
|
636
661
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
637
662
|
*/
|
|
638
663
|
}, {
|
|
@@ -662,9 +687,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
662
687
|
}
|
|
663
688
|
|
|
664
689
|
/**
|
|
665
|
-
* Delete
|
|
690
|
+
* Delete a project environment variable
|
|
691
|
+
* Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
|
|
666
692
|
* @param {String} projectOrProductUID
|
|
667
|
-
* @param {String} key
|
|
693
|
+
* @param {String} key Name of the environment variable to delete.
|
|
668
694
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
669
695
|
*/
|
|
670
696
|
}, {
|
|
@@ -676,9 +702,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
702
|
}
|
|
677
703
|
|
|
678
704
|
/**
|
|
679
|
-
* Delete a project secret
|
|
705
|
+
* Delete a project secret
|
|
706
|
+
* Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
680
707
|
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} secretName
|
|
708
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
682
709
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
683
710
|
*/
|
|
684
711
|
}, {
|
|
@@ -708,9 +735,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
708
735
|
}
|
|
709
736
|
|
|
710
737
|
/**
|
|
711
|
-
* Delete a project secret
|
|
738
|
+
* Delete a project secret
|
|
739
|
+
* Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
712
740
|
* @param {String} projectOrProductUID
|
|
713
|
-
* @param {String} secretName
|
|
741
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
714
742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
715
743
|
*/
|
|
716
744
|
}, {
|
|
@@ -722,7 +750,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
722
750
|
}
|
|
723
751
|
|
|
724
752
|
/**
|
|
725
|
-
* Disable the
|
|
753
|
+
* Disable the global event transformation
|
|
754
|
+
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
726
755
|
* @param {String} projectOrProductUID
|
|
727
756
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
728
757
|
*/
|
|
@@ -748,7 +777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
748
777
|
}
|
|
749
778
|
|
|
750
779
|
/**
|
|
751
|
-
* Disable the
|
|
780
|
+
* Disable the global event transformation
|
|
781
|
+
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
752
782
|
* @param {String} projectOrProductUID
|
|
753
783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
754
784
|
*/
|
|
@@ -761,9 +791,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
761
791
|
}
|
|
762
792
|
|
|
763
793
|
/**
|
|
764
|
-
* Download firmware
|
|
794
|
+
* Download host firmware
|
|
795
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
765
796
|
* @param {String} projectOrProductUID
|
|
766
|
-
* @param {module:model/String} firmwareType
|
|
797
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
767
798
|
* @param {String} filename
|
|
768
799
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
769
800
|
*/
|
|
@@ -799,9 +830,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
799
830
|
}
|
|
800
831
|
|
|
801
832
|
/**
|
|
802
|
-
* Download firmware
|
|
833
|
+
* Download host firmware
|
|
834
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
803
835
|
* @param {String} projectOrProductUID
|
|
804
|
-
* @param {module:model/String} firmwareType
|
|
836
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
805
837
|
* @param {String} filename
|
|
806
838
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
807
839
|
*/
|
|
@@ -814,7 +846,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
814
846
|
}
|
|
815
847
|
|
|
816
848
|
/**
|
|
817
|
-
* Enable the
|
|
849
|
+
* Enable the global event transformation
|
|
850
|
+
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
818
851
|
* @param {String} projectOrProductUID
|
|
819
852
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
820
853
|
*/
|
|
@@ -840,7 +873,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
873
|
}
|
|
841
874
|
|
|
842
875
|
/**
|
|
843
|
-
* Enable the
|
|
876
|
+
* Enable the global event transformation
|
|
877
|
+
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
844
878
|
* @param {String} projectOrProductUID
|
|
845
879
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
846
880
|
*/
|
|
@@ -854,7 +888,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
854
888
|
|
|
855
889
|
/**
|
|
856
890
|
* Get AWS role configuration for role-based authentication
|
|
857
|
-
*
|
|
891
|
+
* Get the AWS account ID and External ID for the IAM role trust policy used by AWS routes with role-based authentication. The External ID is created on the first call and stays the same after that.
|
|
858
892
|
* @param {String} projectOrProductUID
|
|
859
893
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
860
894
|
*/
|
|
@@ -881,7 +915,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
881
915
|
|
|
882
916
|
/**
|
|
883
917
|
* Get AWS role configuration for role-based authentication
|
|
884
|
-
*
|
|
918
|
+
* Get the AWS account ID and External ID for the IAM role trust policy used by AWS routes with role-based authentication. The External ID is created on the first call and stays the same after that.
|
|
885
919
|
* @param {String} projectOrProductUID
|
|
886
920
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
887
921
|
*/
|
|
@@ -894,10 +928,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
894
928
|
}
|
|
895
929
|
|
|
896
930
|
/**
|
|
897
|
-
* Get device
|
|
931
|
+
* Get a device's firmware update history
|
|
932
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
898
933
|
* @param {String} projectOrProductUID
|
|
899
934
|
* @param {String} deviceUID
|
|
900
|
-
* @param {module:model/String} firmwareType
|
|
935
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
901
936
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
902
937
|
*/
|
|
903
938
|
}, {
|
|
@@ -932,10 +967,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
932
967
|
}
|
|
933
968
|
|
|
934
969
|
/**
|
|
935
|
-
* Get device
|
|
970
|
+
* Get a device's firmware update history
|
|
971
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
936
972
|
* @param {String} projectOrProductUID
|
|
937
973
|
* @param {String} deviceUID
|
|
938
|
-
* @param {module:model/String} firmwareType
|
|
974
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
939
975
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
940
976
|
*/
|
|
941
977
|
}, {
|
|
@@ -947,10 +983,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
947
983
|
}
|
|
948
984
|
|
|
949
985
|
/**
|
|
950
|
-
* Get device
|
|
986
|
+
* Get a device's firmware update status
|
|
987
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
951
988
|
* @param {String} projectOrProductUID
|
|
952
989
|
* @param {String} deviceUID
|
|
953
|
-
* @param {module:model/String} firmwareType
|
|
990
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
954
991
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
955
992
|
*/
|
|
956
993
|
}, {
|
|
@@ -985,10 +1022,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
985
1022
|
}
|
|
986
1023
|
|
|
987
1024
|
/**
|
|
988
|
-
* Get device
|
|
1025
|
+
* Get a device's firmware update status
|
|
1026
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
989
1027
|
* @param {String} projectOrProductUID
|
|
990
1028
|
* @param {String} deviceUID
|
|
991
|
-
* @param {module:model/String} firmwareType
|
|
1029
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
992
1030
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
993
1031
|
*/
|
|
994
1032
|
}, {
|
|
@@ -1000,7 +1038,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
1038
|
}
|
|
1001
1039
|
|
|
1002
1040
|
/**
|
|
1003
|
-
*
|
|
1041
|
+
* List a device's fleets
|
|
1042
|
+
* List the fleets a device belongs to, with only each fleet's UID, label and creation time. For a fleet's full details use `GetFleet`. Returns 404 if the device isn't in the project.
|
|
1004
1043
|
* @param {String} projectOrProductUID
|
|
1005
1044
|
* @param {String} deviceUID
|
|
1006
1045
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
@@ -1032,7 +1071,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1032
1071
|
}
|
|
1033
1072
|
|
|
1034
1073
|
/**
|
|
1035
|
-
*
|
|
1074
|
+
* List a device's fleets
|
|
1075
|
+
* List the fleets a device belongs to, with only each fleet's UID, label and creation time. For a fleet's full details use `GetFleet`. Returns 404 if the device isn't in the project.
|
|
1036
1076
|
* @param {String} projectOrProductUID
|
|
1037
1077
|
* @param {String} deviceUID
|
|
1038
1078
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1046,22 +1086,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1046
1086
|
}
|
|
1047
1087
|
|
|
1048
1088
|
/**
|
|
1049
|
-
*
|
|
1089
|
+
* List devices' firmware update history
|
|
1090
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1050
1091
|
* @param {String} projectOrProductUID
|
|
1051
|
-
* @param {module:model/String} firmwareType
|
|
1092
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1052
1093
|
* @param {Object} opts Optional parameters
|
|
1053
|
-
* @param {Number} opts.pageSize (default to
|
|
1094
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1054
1095
|
* @param {Number} opts.pageNum (default to 1)
|
|
1096
|
+
* @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.
|
|
1055
1097
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1056
1098
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1057
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1099
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1058
1100
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1059
1101
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1060
1102
|
* @param {String} opts.fleetUID
|
|
1061
1103
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1062
1104
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1063
1105
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1064
|
-
* @param {Array.<String>} opts.productUID
|
|
1106
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1065
1107
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1066
1108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
1067
1109
|
*/
|
|
@@ -1085,6 +1127,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1085
1127
|
var queryParams = {
|
|
1086
1128
|
pageSize: opts["pageSize"],
|
|
1087
1129
|
pageNum: opts["pageNum"],
|
|
1130
|
+
cursor: opts["cursor"],
|
|
1088
1131
|
sortBy: opts["sortBy"],
|
|
1089
1132
|
sortOrder: opts["sortOrder"],
|
|
1090
1133
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
@@ -1107,22 +1150,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1107
1150
|
}
|
|
1108
1151
|
|
|
1109
1152
|
/**
|
|
1110
|
-
*
|
|
1153
|
+
* List devices' firmware update history
|
|
1154
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1111
1155
|
* @param {String} projectOrProductUID
|
|
1112
|
-
* @param {module:model/String} firmwareType
|
|
1156
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1113
1157
|
* @param {Object} opts Optional parameters
|
|
1114
|
-
* @param {Number} opts.pageSize (default to
|
|
1158
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1115
1159
|
* @param {Number} opts.pageNum (default to 1)
|
|
1160
|
+
* @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.
|
|
1116
1161
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1117
1162
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1118
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1163
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1119
1164
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1120
1165
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1121
1166
|
* @param {String} opts.fleetUID
|
|
1122
1167
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1123
1168
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1124
1169
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1125
|
-
* @param {Array.<String>} opts.productUID
|
|
1170
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1126
1171
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1127
1172
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
1128
1173
|
*/
|
|
@@ -1135,22 +1180,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1135
1180
|
}
|
|
1136
1181
|
|
|
1137
1182
|
/**
|
|
1138
|
-
*
|
|
1183
|
+
* List devices' firmware status
|
|
1184
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1139
1185
|
* @param {String} projectOrProductUID
|
|
1140
|
-
* @param {module:model/String} firmwareType
|
|
1186
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1141
1187
|
* @param {Object} opts Optional parameters
|
|
1142
|
-
* @param {Number} opts.pageSize (default to
|
|
1188
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1143
1189
|
* @param {Number} opts.pageNum (default to 1)
|
|
1190
|
+
* @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.
|
|
1144
1191
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1145
1192
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1146
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1193
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1147
1194
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1148
1195
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1149
1196
|
* @param {String} opts.fleetUID
|
|
1150
1197
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1151
1198
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1152
1199
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1153
|
-
* @param {Array.<String>} opts.productUID
|
|
1200
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1154
1201
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1155
1202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1156
1203
|
*/
|
|
@@ -1174,6 +1221,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1174
1221
|
var queryParams = {
|
|
1175
1222
|
pageSize: opts["pageSize"],
|
|
1176
1223
|
pageNum: opts["pageNum"],
|
|
1224
|
+
cursor: opts["cursor"],
|
|
1177
1225
|
sortBy: opts["sortBy"],
|
|
1178
1226
|
sortOrder: opts["sortOrder"],
|
|
1179
1227
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
@@ -1196,22 +1244,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1244
|
}
|
|
1197
1245
|
|
|
1198
1246
|
/**
|
|
1199
|
-
*
|
|
1247
|
+
* List devices' firmware status
|
|
1248
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1200
1249
|
* @param {String} projectOrProductUID
|
|
1201
|
-
* @param {module:model/String} firmwareType
|
|
1250
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1202
1251
|
* @param {Object} opts Optional parameters
|
|
1203
|
-
* @param {Number} opts.pageSize (default to
|
|
1252
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1204
1253
|
* @param {Number} opts.pageNum (default to 1)
|
|
1254
|
+
* @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.
|
|
1205
1255
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1206
1256
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1207
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1257
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1208
1258
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1209
1259
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1210
1260
|
* @param {String} opts.fleetUID
|
|
1211
1261
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1212
1262
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1213
1263
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1214
|
-
* @param {Array.<String>} opts.productUID
|
|
1264
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1215
1265
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1216
1266
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1217
1267
|
*/
|
|
@@ -1224,16 +1274,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1224
1274
|
}
|
|
1225
1275
|
|
|
1226
1276
|
/**
|
|
1227
|
-
*
|
|
1277
|
+
* List firmware
|
|
1278
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1228
1279
|
* @param {String} projectOrProductUID
|
|
1229
1280
|
* @param {Object} opts Optional parameters
|
|
1230
|
-
* @param {String} opts.product
|
|
1231
|
-
* @param {String} opts.firmwareType
|
|
1232
|
-
* @param {String} opts.version
|
|
1233
|
-
* @param {String} opts.target
|
|
1234
|
-
* @param {String} opts.filename
|
|
1235
|
-
* @param {String} opts.md5
|
|
1236
|
-
* @param {Boolean} opts.unpublished
|
|
1281
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1282
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1283
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1284
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1285
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1286
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1287
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1237
1288
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1238
1289
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1239
1290
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1271,16 +1322,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1271
1322
|
}
|
|
1272
1323
|
|
|
1273
1324
|
/**
|
|
1274
|
-
*
|
|
1325
|
+
* List firmware
|
|
1326
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1275
1327
|
* @param {String} projectOrProductUID
|
|
1276
1328
|
* @param {Object} opts Optional parameters
|
|
1277
|
-
* @param {String} opts.product
|
|
1278
|
-
* @param {String} opts.firmwareType
|
|
1279
|
-
* @param {String} opts.version
|
|
1280
|
-
* @param {String} opts.target
|
|
1281
|
-
* @param {String} opts.filename
|
|
1282
|
-
* @param {String} opts.md5
|
|
1283
|
-
* @param {Boolean} opts.unpublished
|
|
1329
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1330
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1331
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1332
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1333
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1334
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1335
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1284
1336
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1285
1337
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1286
1338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1294,7 +1346,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1294
1346
|
}
|
|
1295
1347
|
|
|
1296
1348
|
/**
|
|
1297
|
-
* Get
|
|
1349
|
+
* Get a fleet
|
|
1350
|
+
* Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
|
|
1298
1351
|
* @param {String} projectOrProductUID
|
|
1299
1352
|
* @param {String} fleetUID
|
|
1300
1353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
@@ -1326,7 +1379,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1326
1379
|
}
|
|
1327
1380
|
|
|
1328
1381
|
/**
|
|
1329
|
-
* Get
|
|
1382
|
+
* Get a fleet
|
|
1383
|
+
* Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
|
|
1330
1384
|
* @param {String} projectOrProductUID
|
|
1331
1385
|
* @param {String} fleetUID
|
|
1332
1386
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1340,7 +1394,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1340
1394
|
}
|
|
1341
1395
|
|
|
1342
1396
|
/**
|
|
1343
|
-
* Get environment
|
|
1397
|
+
* Get a fleet's environment hierarchy
|
|
1398
|
+
* Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
|
|
1344
1399
|
* @param {String} projectOrProductUID
|
|
1345
1400
|
* @param {String} fleetUID
|
|
1346
1401
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -1372,7 +1427,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1372
1427
|
}
|
|
1373
1428
|
|
|
1374
1429
|
/**
|
|
1375
|
-
* Get environment
|
|
1430
|
+
* Get a fleet's environment hierarchy
|
|
1431
|
+
* Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
|
|
1376
1432
|
* @param {String} projectOrProductUID
|
|
1377
1433
|
* @param {String} fleetUID
|
|
1378
1434
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1386,7 +1442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1386
1442
|
}
|
|
1387
1443
|
|
|
1388
1444
|
/**
|
|
1389
|
-
* Get environment variables
|
|
1445
|
+
* Get fleet environment variables
|
|
1446
|
+
* Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
|
|
1390
1447
|
* @param {String} projectOrProductUID
|
|
1391
1448
|
* @param {String} fleetUID
|
|
1392
1449
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1418,7 +1475,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1418
1475
|
}
|
|
1419
1476
|
|
|
1420
1477
|
/**
|
|
1421
|
-
* Get environment variables
|
|
1478
|
+
* Get fleet environment variables
|
|
1479
|
+
* Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
|
|
1422
1480
|
* @param {String} projectOrProductUID
|
|
1423
1481
|
* @param {String} fleetUID
|
|
1424
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1432,7 +1490,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1432
1490
|
}
|
|
1433
1491
|
|
|
1434
1492
|
/**
|
|
1435
|
-
*
|
|
1493
|
+
* List fleets
|
|
1494
|
+
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1436
1495
|
* @param {String} projectOrProductUID
|
|
1437
1496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1438
1497
|
*/
|
|
@@ -1458,7 +1517,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1458
1517
|
}
|
|
1459
1518
|
|
|
1460
1519
|
/**
|
|
1461
|
-
*
|
|
1520
|
+
* List fleets
|
|
1521
|
+
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1462
1522
|
* @param {String} projectOrProductUID
|
|
1463
1523
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1464
1524
|
*/
|
|
@@ -1471,7 +1531,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1471
1531
|
}
|
|
1472
1532
|
|
|
1473
1533
|
/**
|
|
1474
|
-
*
|
|
1534
|
+
* List Notefile schemas
|
|
1535
|
+
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1475
1536
|
* @param {String} projectOrProductUID
|
|
1476
1537
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1477
1538
|
*/
|
|
@@ -1497,7 +1558,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1497
1558
|
}
|
|
1498
1559
|
|
|
1499
1560
|
/**
|
|
1500
|
-
*
|
|
1561
|
+
* List Notefile schemas
|
|
1562
|
+
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1501
1563
|
* @param {String} projectOrProductUID
|
|
1502
1564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1503
1565
|
*/
|
|
@@ -1510,7 +1572,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1510
1572
|
}
|
|
1511
1573
|
|
|
1512
1574
|
/**
|
|
1513
|
-
*
|
|
1575
|
+
* List a project's products
|
|
1576
|
+
* List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
|
|
1514
1577
|
* @param {String} projectOrProductUID
|
|
1515
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1516
1579
|
*/
|
|
@@ -1536,7 +1599,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1536
1599
|
}
|
|
1537
1600
|
|
|
1538
1601
|
/**
|
|
1539
|
-
*
|
|
1602
|
+
* List a project's products
|
|
1603
|
+
* List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
|
|
1540
1604
|
* @param {String} projectOrProductUID
|
|
1541
1605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1542
1606
|
*/
|
|
@@ -1549,7 +1613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1549
1613
|
}
|
|
1550
1614
|
|
|
1551
1615
|
/**
|
|
1552
|
-
* Get a
|
|
1616
|
+
* Get a project
|
|
1617
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1553
1618
|
* @param {String} projectOrProductUID
|
|
1554
1619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1555
1620
|
*/
|
|
@@ -1575,7 +1640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1575
1640
|
}
|
|
1576
1641
|
|
|
1577
1642
|
/**
|
|
1578
|
-
* Get a
|
|
1643
|
+
* Get a project
|
|
1644
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1579
1645
|
* @param {String} projectOrProductUID
|
|
1580
1646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1581
1647
|
*/
|
|
@@ -1588,8 +1654,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1588
1654
|
}
|
|
1589
1655
|
|
|
1590
1656
|
/**
|
|
1591
|
-
* Get
|
|
1592
|
-
*
|
|
1657
|
+
* Get the project for a ProductUID
|
|
1658
|
+
* Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
|
|
1659
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1593
1660
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1594
1661
|
*/
|
|
1595
1662
|
}, {
|
|
@@ -1614,8 +1681,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1614
1681
|
}
|
|
1615
1682
|
|
|
1616
1683
|
/**
|
|
1617
|
-
* Get
|
|
1618
|
-
*
|
|
1684
|
+
* Get the project for a ProductUID
|
|
1685
|
+
* Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
|
|
1686
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1619
1687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1620
1688
|
*/
|
|
1621
1689
|
}, {
|
|
@@ -1627,7 +1695,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1627
1695
|
}
|
|
1628
1696
|
|
|
1629
1697
|
/**
|
|
1630
|
-
* Get environment
|
|
1698
|
+
* Get the project environment hierarchy
|
|
1699
|
+
* Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
|
|
1631
1700
|
* @param {String} projectOrProductUID
|
|
1632
1701
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1633
1702
|
*/
|
|
@@ -1653,7 +1722,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1653
1722
|
}
|
|
1654
1723
|
|
|
1655
1724
|
/**
|
|
1656
|
-
* Get environment
|
|
1725
|
+
* Get the project environment hierarchy
|
|
1726
|
+
* Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
|
|
1657
1727
|
* @param {String} projectOrProductUID
|
|
1658
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1659
1729
|
*/
|
|
@@ -1666,7 +1736,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1666
1736
|
}
|
|
1667
1737
|
|
|
1668
1738
|
/**
|
|
1669
|
-
* Get environment variables
|
|
1739
|
+
* Get project environment variables
|
|
1740
|
+
* Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
|
|
1670
1741
|
* @param {String} projectOrProductUID
|
|
1671
1742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1672
1743
|
*/
|
|
@@ -1692,7 +1763,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1692
1763
|
}
|
|
1693
1764
|
|
|
1694
1765
|
/**
|
|
1695
|
-
* Get environment variables
|
|
1766
|
+
* Get project environment variables
|
|
1767
|
+
* Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
|
|
1696
1768
|
* @param {String} projectOrProductUID
|
|
1697
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1698
1770
|
*/
|
|
@@ -1705,7 +1777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1705
1777
|
}
|
|
1706
1778
|
|
|
1707
1779
|
/**
|
|
1708
|
-
*
|
|
1780
|
+
* List project members
|
|
1781
|
+
* List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
|
|
1709
1782
|
* @param {String} projectOrProductUID
|
|
1710
1783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1711
1784
|
*/
|
|
@@ -1731,7 +1804,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1731
1804
|
}
|
|
1732
1805
|
|
|
1733
1806
|
/**
|
|
1734
|
-
*
|
|
1807
|
+
* List project members
|
|
1808
|
+
* List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
|
|
1735
1809
|
* @param {String} projectOrProductUID
|
|
1736
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1737
1811
|
*/
|
|
@@ -1744,7 +1818,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1744
1818
|
}
|
|
1745
1819
|
|
|
1746
1820
|
/**
|
|
1747
|
-
*
|
|
1821
|
+
* List project secrets
|
|
1822
|
+
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1748
1823
|
* @param {String} projectOrProductUID
|
|
1749
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1750
1825
|
*/
|
|
@@ -1770,7 +1845,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1770
1845
|
}
|
|
1771
1846
|
|
|
1772
1847
|
/**
|
|
1773
|
-
*
|
|
1848
|
+
* List project secrets
|
|
1849
|
+
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1774
1850
|
* @param {String} projectOrProductUID
|
|
1775
1851
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1776
1852
|
*/
|
|
@@ -1783,7 +1859,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1783
1859
|
}
|
|
1784
1860
|
|
|
1785
1861
|
/**
|
|
1786
|
-
*
|
|
1862
|
+
* List projects
|
|
1863
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1787
1864
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1788
1865
|
*/
|
|
1789
1866
|
}, {
|
|
@@ -1802,7 +1879,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1802
1879
|
}
|
|
1803
1880
|
|
|
1804
1881
|
/**
|
|
1805
|
-
*
|
|
1882
|
+
* List projects
|
|
1883
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1806
1884
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1807
1885
|
*/
|
|
1808
1886
|
}, {
|
|
@@ -1814,19 +1892,20 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1814
1892
|
}
|
|
1815
1893
|
|
|
1816
1894
|
/**
|
|
1817
|
-
*
|
|
1895
|
+
* Start or cancel firmware updates
|
|
1896
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1818
1897
|
* @param {String} projectOrProductUID
|
|
1819
|
-
* @param {module:model/String} firmwareType
|
|
1820
|
-
* @param {module:model/String} action
|
|
1898
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1899
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1821
1900
|
* @param {Object} opts Optional parameters
|
|
1822
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1901
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1823
1902
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1824
1903
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1825
1904
|
* @param {String} opts.fleetUID
|
|
1826
1905
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1827
1906
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1828
1907
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1829
|
-
* @param {Array.<String>} opts.productUID
|
|
1908
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1830
1909
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1831
1910
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1832
1911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1874,19 +1953,20 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1874
1953
|
}
|
|
1875
1954
|
|
|
1876
1955
|
/**
|
|
1877
|
-
*
|
|
1956
|
+
* Start or cancel firmware updates
|
|
1957
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1878
1958
|
* @param {String} projectOrProductUID
|
|
1879
|
-
* @param {module:model/String} firmwareType
|
|
1880
|
-
* @param {module:model/String} action
|
|
1959
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1960
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1881
1961
|
* @param {Object} opts Optional parameters
|
|
1882
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1962
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1883
1963
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1884
1964
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1885
1965
|
* @param {String} opts.fleetUID
|
|
1886
1966
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1887
1967
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1888
1968
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1889
|
-
* @param {Array.<String>} opts.productUID
|
|
1969
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1890
1970
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1891
1971
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1892
1972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1900,10 +1980,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1900
1980
|
}
|
|
1901
1981
|
|
|
1902
1982
|
/**
|
|
1903
|
-
* Set environment variables
|
|
1983
|
+
* Set fleet environment variables
|
|
1984
|
+
* Add or change a fleet's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
|
|
1904
1985
|
* @param {String} projectOrProductUID
|
|
1905
1986
|
* @param {String} fleetUID
|
|
1906
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1987
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1907
1988
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1908
1989
|
*/
|
|
1909
1990
|
}, {
|
|
@@ -1937,10 +2018,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1937
2018
|
}
|
|
1938
2019
|
|
|
1939
2020
|
/**
|
|
1940
|
-
* Set environment variables
|
|
2021
|
+
* Set fleet environment variables
|
|
2022
|
+
* Add or change a fleet's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
|
|
1941
2023
|
* @param {String} projectOrProductUID
|
|
1942
2024
|
* @param {String} fleetUID
|
|
1943
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
2025
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1944
2026
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1945
2027
|
*/
|
|
1946
2028
|
}, {
|
|
@@ -1952,9 +2034,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1952
2034
|
}
|
|
1953
2035
|
|
|
1954
2036
|
/**
|
|
1955
|
-
* Set the
|
|
2037
|
+
* Set the global event transformation
|
|
2038
|
+
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
1956
2039
|
* @param {String} projectOrProductUID
|
|
1957
|
-
* @param {String} body JSONata expression
|
|
2040
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1958
2041
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1959
2042
|
*/
|
|
1960
2043
|
}, {
|
|
@@ -1983,9 +2066,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1983
2066
|
}
|
|
1984
2067
|
|
|
1985
2068
|
/**
|
|
1986
|
-
* Set the
|
|
2069
|
+
* Set the global event transformation
|
|
2070
|
+
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
1987
2071
|
* @param {String} projectOrProductUID
|
|
1988
|
-
* @param {String} body JSONata expression
|
|
2072
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1989
2073
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1990
2074
|
*/
|
|
1991
2075
|
}, {
|
|
@@ -1997,7 +2081,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1997
2081
|
}
|
|
1998
2082
|
|
|
1999
2083
|
/**
|
|
2000
|
-
* Set environment variables
|
|
2084
|
+
* Set project environment variables
|
|
2085
|
+
* Add or change project environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
2001
2086
|
* @param {String} projectOrProductUID
|
|
2002
2087
|
* @param {Object} opts Optional parameters
|
|
2003
2088
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2026,7 +2111,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2026
2111
|
}
|
|
2027
2112
|
|
|
2028
2113
|
/**
|
|
2029
|
-
* Set environment variables
|
|
2114
|
+
* Set project environment variables
|
|
2115
|
+
* Add or change project environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
2030
2116
|
* @param {String} projectOrProductUID
|
|
2031
2117
|
* @param {Object} opts Optional parameters
|
|
2032
2118
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2041,7 +2127,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2041
2127
|
}
|
|
2042
2128
|
|
|
2043
2129
|
/**
|
|
2044
|
-
* Update
|
|
2130
|
+
* Update host firmware metadata
|
|
2131
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2045
2132
|
* @param {String} projectOrProductUID
|
|
2046
2133
|
* @param {module:model/String} firmwareType
|
|
2047
2134
|
* @param {String} filename
|
|
@@ -2084,7 +2171,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2084
2171
|
}
|
|
2085
2172
|
|
|
2086
2173
|
/**
|
|
2087
|
-
* Update
|
|
2174
|
+
* Update host firmware metadata
|
|
2175
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2088
2176
|
* @param {String} projectOrProductUID
|
|
2089
2177
|
* @param {module:model/String} firmwareType
|
|
2090
2178
|
* @param {String} filename
|
|
@@ -2100,10 +2188,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2100
2188
|
}
|
|
2101
2189
|
|
|
2102
2190
|
/**
|
|
2103
|
-
* Update
|
|
2191
|
+
* Update a fleet
|
|
2192
|
+
* Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
|
|
2104
2193
|
* @param {String} projectOrProductUID
|
|
2105
2194
|
* @param {String} fleetUID
|
|
2106
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2195
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2107
2196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2108
2197
|
*/
|
|
2109
2198
|
}, {
|
|
@@ -2137,10 +2226,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2137
2226
|
}
|
|
2138
2227
|
|
|
2139
2228
|
/**
|
|
2140
|
-
* Update
|
|
2229
|
+
* Update a fleet
|
|
2230
|
+
* Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
|
|
2141
2231
|
* @param {String} projectOrProductUID
|
|
2142
2232
|
* @param {String} fleetUID
|
|
2143
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2233
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2144
2234
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2145
2235
|
*/
|
|
2146
2236
|
}, {
|
|
@@ -2152,9 +2242,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2152
2242
|
}
|
|
2153
2243
|
|
|
2154
2244
|
/**
|
|
2155
|
-
* Update
|
|
2245
|
+
* Update a project secret
|
|
2246
|
+
* Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
2156
2247
|
* @param {String} projectOrProductUID
|
|
2157
|
-
* @param {String} secretName
|
|
2248
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2158
2249
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2159
2250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2160
2251
|
*/
|
|
@@ -2189,9 +2280,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2189
2280
|
}
|
|
2190
2281
|
|
|
2191
2282
|
/**
|
|
2192
|
-
* Update
|
|
2283
|
+
* Update a project secret
|
|
2284
|
+
* Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
2193
2285
|
* @param {String} projectOrProductUID
|
|
2194
|
-
* @param {String} secretName
|
|
2286
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2195
2287
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2196
2288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2197
2289
|
*/
|
|
@@ -2204,10 +2296,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2204
2296
|
}
|
|
2205
2297
|
|
|
2206
2298
|
/**
|
|
2207
|
-
* Upload firmware
|
|
2299
|
+
* Upload firmware
|
|
2300
|
+
* Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
|
|
2208
2301
|
* @param {String} projectOrProductUID
|
|
2209
|
-
* @param {module:model/String} firmwareType
|
|
2210
|
-
* @param {String} filename
|
|
2302
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2303
|
+
* @param {String} filename Name to store the file under. Notehub adds `$` and a timestamp before the extension, except for a Notecard firmware name that already contains `$`.
|
|
2211
2304
|
* @param {File} body contents of the firmware binary
|
|
2212
2305
|
* @param {Object} opts Optional parameters
|
|
2213
2306
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2254,10 +2347,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2254
2347
|
}
|
|
2255
2348
|
|
|
2256
2349
|
/**
|
|
2257
|
-
* Upload firmware
|
|
2350
|
+
* Upload firmware
|
|
2351
|
+
* Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
|
|
2258
2352
|
* @param {String} projectOrProductUID
|
|
2259
|
-
* @param {module:model/String} firmwareType
|
|
2260
|
-
* @param {String} filename
|
|
2353
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2354
|
+
* @param {String} filename Name to store the file under. Notehub adds `$` and a timestamp before the extension, except for a Notecard firmware name that already contains `$`.
|
|
2261
2355
|
* @param {File} body contents of the firmware binary
|
|
2262
2356
|
* @param {Object} opts Optional parameters
|
|
2263
2357
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|