@blues-inc/notehub-js 6.7.0-beta.9 → 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +156 -153
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +15 -13
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +57 -41
- package/dist/api/DeviceApi.js +428 -297
- package/dist/api/EventApi.js +85 -224
- package/dist/api/ExternalDevicesApi.js +31 -25
- package/dist/api/JobsApi.js +75 -57
- package/dist/api/MonitorApi.js +37 -27
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +421 -333
- package/dist/api/RouteApi.js +67 -55
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +83 -73
- package/dist/api/WebhookApi.js +95 -73
- 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 +16 -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 +14 -2
- package/dist/model/AzureRoute.js +8 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +6 -5
- package/dist/model/BillingAccount.js +5 -3
- package/dist/model/BlynkRoute.js +6 -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 +5 -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 +2 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +5 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +7 -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 +3 -2
- package/dist/model/Device.js +27 -8
- package/dist/model/DeviceDfuHistory.js +3 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +4 -2
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +3 -3
- package/dist/model/DeviceDfuStatusPage.js +4 -2
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +37 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +7 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- package/dist/model/EnvTreeJsonNode.js +17 -6
- package/dist/model/EnvVar.js +5 -1
- package/dist/model/EnvironmentVariables.js +3 -2
- package/dist/model/Error.js +4 -1
- package/dist/model/Event.js +7 -7
- package/dist/model/Filter.js +5 -5
- 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 +2 -2
- 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 +2 -2
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetDevices200Response.js +2 -2
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/{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 +3 -2
- 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 +6 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +7 -2
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +2 -1
- package/dist/model/JobDefinitionSelect.js +4 -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 +14 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +4 -2
- 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 +6 -1
- package/dist/model/QubitroRoute.js +7 -1
- package/dist/model/RadRoute.js +9 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +3 -2
- 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 +5 -5
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +16 -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 +210 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
- package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +79 -51
- package/dist/model/SkillSummary.js +208 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +154 -0
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +9 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- package/dist/model/SnowflakeRoute.js +9 -1
- package/dist/model/SnowpipeStreamingRoute.js +12 -1
- package/dist/model/ThingworxRoute.js +6 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioNotification.js +167 -0
- package/dist/model/TwilioRoute.js +9 -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 +3 -2
- package/dist/model/UsageData.js +7 -3
- package/dist/model/UsageEventsData.js +5 -2
- package/dist/model/UsageEventsResponse.js +4 -3
- package/dist/model/UsageRouteLogsData.js +10 -6
- package/dist/model/UsageSessionsData.js +11 -5
- 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, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version
|
|
59
|
+
* @version 7.0.0-beta.1
|
|
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
|
|
76
|
-
*
|
|
77
|
-
* @param {String}
|
|
78
|
-
* @param {
|
|
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.
|
|
77
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
78
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
-
*
|
|
114
|
-
* @param {String}
|
|
115
|
-
* @param {
|
|
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.
|
|
115
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
116
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
128
|
-
*
|
|
129
|
-
* @param {
|
|
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).
|
|
131
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
159
|
-
*
|
|
160
|
-
* @param {
|
|
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).
|
|
163
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
173
|
-
*
|
|
174
|
-
* @param {
|
|
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.
|
|
178
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
204
|
-
*
|
|
205
|
-
* @param {
|
|
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.
|
|
210
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
218
|
-
* @
|
|
219
|
-
* @param {
|
|
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.
|
|
225
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
249
|
-
* @
|
|
250
|
-
* @param {
|
|
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.
|
|
257
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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,8 +306,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
306
|
}
|
|
297
307
|
|
|
298
308
|
/**
|
|
299
|
-
* Create a
|
|
300
|
-
*
|
|
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.
|
|
311
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
303
314
|
*/
|
|
@@ -327,8 +338,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
338
|
}
|
|
328
339
|
|
|
329
340
|
/**
|
|
330
|
-
* Create a
|
|
331
|
-
*
|
|
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.
|
|
343
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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}
|
|
334
346
|
*/
|
|
@@ -341,10 +353,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
353
|
}
|
|
342
354
|
|
|
343
355
|
/**
|
|
344
|
-
* Remove
|
|
345
|
-
*
|
|
346
|
-
* @param {String}
|
|
347
|
-
* @param {
|
|
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.
|
|
358
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
359
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
382
|
-
*
|
|
383
|
-
* @param {String}
|
|
384
|
-
* @param {
|
|
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.
|
|
396
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
397
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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,8 +407,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
393
407
|
}
|
|
394
408
|
|
|
395
409
|
/**
|
|
396
|
-
* Delete
|
|
397
|
-
*
|
|
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.
|
|
412
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
398
413
|
* @param {module:model/String} firmwareType
|
|
399
414
|
* @param {String} filename
|
|
400
415
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -431,8 +446,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
431
446
|
}
|
|
432
447
|
|
|
433
448
|
/**
|
|
434
|
-
* Delete
|
|
435
|
-
*
|
|
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.
|
|
451
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
436
452
|
* @param {module:model/String} firmwareType
|
|
437
453
|
* @param {String} filename
|
|
438
454
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -446,9 +462,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
462
|
}
|
|
447
463
|
|
|
448
464
|
/**
|
|
449
|
-
* Delete
|
|
450
|
-
*
|
|
451
|
-
* @param {String}
|
|
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.
|
|
467
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
468
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
452
469
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
453
470
|
*/
|
|
454
471
|
}, {
|
|
@@ -478,9 +495,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
478
495
|
}
|
|
479
496
|
|
|
480
497
|
/**
|
|
481
|
-
* Delete
|
|
482
|
-
*
|
|
483
|
-
* @param {String}
|
|
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.
|
|
500
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
501
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
484
502
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
485
503
|
*/
|
|
486
504
|
}, {
|
|
@@ -492,10 +510,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
510
|
}
|
|
493
511
|
|
|
494
512
|
/**
|
|
495
|
-
* Delete
|
|
496
|
-
*
|
|
497
|
-
* @param {String}
|
|
498
|
-
* @param {String}
|
|
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.
|
|
515
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
516
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
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
|
|
534
|
-
*
|
|
535
|
-
* @param {String}
|
|
536
|
-
* @param {String}
|
|
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.
|
|
554
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
555
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
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,8 +566,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
566
|
|
|
547
567
|
/**
|
|
548
568
|
* Delete a product
|
|
549
|
-
*
|
|
550
|
-
* @param {String}
|
|
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.
|
|
570
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
571
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
|
|
551
572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
552
573
|
*/
|
|
553
574
|
}, {
|
|
@@ -578,8 +599,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
599
|
|
|
579
600
|
/**
|
|
580
601
|
* Delete a product
|
|
581
|
-
*
|
|
582
|
-
* @param {String}
|
|
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.
|
|
603
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
604
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.bridge:sensors`. List with `GetProducts`.
|
|
583
605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
584
606
|
*/
|
|
585
607
|
}, {
|
|
@@ -591,8 +613,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
613
|
}
|
|
592
614
|
|
|
593
615
|
/**
|
|
594
|
-
* Delete a
|
|
595
|
-
*
|
|
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.
|
|
618
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
596
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
597
620
|
*/
|
|
598
621
|
}, {
|
|
@@ -617,8 +640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
617
640
|
}
|
|
618
641
|
|
|
619
642
|
/**
|
|
620
|
-
* Delete a
|
|
621
|
-
*
|
|
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.
|
|
645
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
622
646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
623
647
|
*/
|
|
624
648
|
}, {
|
|
@@ -630,9 +654,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
630
654
|
}
|
|
631
655
|
|
|
632
656
|
/**
|
|
633
|
-
* Delete
|
|
634
|
-
*
|
|
635
|
-
* @param {String}
|
|
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.
|
|
659
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
666
|
-
*
|
|
667
|
-
* @param {String}
|
|
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.
|
|
692
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
680
|
-
*
|
|
681
|
-
* @param {String}
|
|
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.
|
|
707
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
712
|
-
*
|
|
713
|
-
* @param {String}
|
|
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.
|
|
740
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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,8 +750,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
722
750
|
}
|
|
723
751
|
|
|
724
752
|
/**
|
|
725
|
-
* Disable the
|
|
726
|
-
*
|
|
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.
|
|
755
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
727
756
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
728
757
|
*/
|
|
729
758
|
}, {
|
|
@@ -748,8 +777,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
748
777
|
}
|
|
749
778
|
|
|
750
779
|
/**
|
|
751
|
-
* Disable the
|
|
752
|
-
*
|
|
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.
|
|
782
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
753
783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
754
784
|
*/
|
|
755
785
|
}, {
|
|
@@ -761,9 +791,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
761
791
|
}
|
|
762
792
|
|
|
763
793
|
/**
|
|
764
|
-
* Download firmware
|
|
765
|
-
*
|
|
766
|
-
* @param {
|
|
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.
|
|
796
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
803
|
-
*
|
|
804
|
-
* @param {
|
|
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.
|
|
835
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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,8 +846,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
814
846
|
}
|
|
815
847
|
|
|
816
848
|
/**
|
|
817
|
-
* Enable the
|
|
818
|
-
*
|
|
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.
|
|
851
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
819
852
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
820
853
|
*/
|
|
821
854
|
}, {
|
|
@@ -840,8 +873,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
873
|
}
|
|
841
874
|
|
|
842
875
|
/**
|
|
843
|
-
* Enable the
|
|
844
|
-
*
|
|
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.
|
|
878
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
845
879
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
846
880
|
*/
|
|
847
881
|
}, {
|
|
@@ -854,8 +888,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
854
888
|
|
|
855
889
|
/**
|
|
856
890
|
* Get AWS role configuration for role-based authentication
|
|
857
|
-
*
|
|
858
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
892
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
*/
|
|
861
895
|
}, {
|
|
@@ -881,8 +915,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
881
915
|
|
|
882
916
|
/**
|
|
883
917
|
* Get AWS role configuration for role-based authentication
|
|
884
|
-
*
|
|
885
|
-
* @param {String} projectOrProductUID
|
|
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.
|
|
919
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
886
920
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
887
921
|
*/
|
|
888
922
|
}, {
|
|
@@ -894,10 +928,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
894
928
|
}
|
|
895
929
|
|
|
896
930
|
/**
|
|
897
|
-
* Get device
|
|
898
|
-
*
|
|
899
|
-
* @param {String}
|
|
900
|
-
* @param {
|
|
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.
|
|
933
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
934
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
936
|
-
*
|
|
937
|
-
* @param {String}
|
|
938
|
-
* @param {
|
|
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.
|
|
972
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
973
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
951
|
-
*
|
|
952
|
-
* @param {String}
|
|
953
|
-
* @param {
|
|
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.
|
|
988
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
989
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
989
|
-
*
|
|
990
|
-
* @param {String}
|
|
991
|
-
* @param {
|
|
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.
|
|
1027
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1028
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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,9 +1038,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
1038
|
}
|
|
1001
1039
|
|
|
1002
1040
|
/**
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1005
|
-
* @param {String}
|
|
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.
|
|
1043
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1044
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
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
|
|
1007
1046
|
*/
|
|
1008
1047
|
}, {
|
|
@@ -1032,9 +1071,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1032
1071
|
}
|
|
1033
1072
|
|
|
1034
1073
|
/**
|
|
1035
|
-
*
|
|
1036
|
-
*
|
|
1037
|
-
* @param {String}
|
|
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.
|
|
1076
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1077
|
+
* @param {String} deviceUID DeviceUID, e.g. `dev:864475040509284`. List with `GetDevices`.
|
|
1038
1078
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1039
1079
|
*/
|
|
1040
1080
|
}, {
|
|
@@ -1046,24 +1086,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1046
1086
|
}
|
|
1047
1087
|
|
|
1048
1088
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
* @param {
|
|
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.
|
|
1091
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
1054
|
-
* @param {Number} opts.pageNum
|
|
1055
|
-
* @param {String} opts.cursor
|
|
1056
|
-
* @param {module:model/String} opts.sortBy
|
|
1057
|
-
* @param {module:model/String} opts.sortOrder
|
|
1058
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1059
|
-
* @param {Array.<String>} opts.tag
|
|
1060
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1061
|
-
* @param {String} opts.fleetUID
|
|
1062
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1063
|
-
* @param {Array.<String>} opts.location Location
|
|
1064
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1065
|
-
* @param {Array.<String>} opts.productUID
|
|
1066
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1094
|
+
* @param {Number} opts.pageSize How many results to return per page. (default to 1000)
|
|
1095
|
+
* @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
|
|
1096
|
+
* @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
|
|
1097
|
+
* @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
|
|
1098
|
+
* @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
|
|
1099
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1100
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1101
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1102
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1103
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1104
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1105
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1106
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1107
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1067
1108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
1068
1109
|
*/
|
|
1069
1110
|
}, {
|
|
@@ -1109,24 +1150,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1109
1150
|
}
|
|
1110
1151
|
|
|
1111
1152
|
/**
|
|
1112
|
-
*
|
|
1113
|
-
*
|
|
1114
|
-
* @param {
|
|
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.
|
|
1155
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1156
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1115
1157
|
* @param {Object} opts Optional parameters
|
|
1116
|
-
* @param {Number} opts.pageSize
|
|
1117
|
-
* @param {Number} opts.pageNum
|
|
1118
|
-
* @param {String} opts.cursor
|
|
1119
|
-
* @param {module:model/String} opts.sortBy
|
|
1120
|
-
* @param {module:model/String} opts.sortOrder
|
|
1121
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1122
|
-
* @param {Array.<String>} opts.tag
|
|
1123
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1124
|
-
* @param {String} opts.fleetUID
|
|
1125
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1126
|
-
* @param {Array.<String>} opts.location Location
|
|
1127
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1128
|
-
* @param {Array.<String>} opts.productUID
|
|
1129
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1158
|
+
* @param {Number} opts.pageSize How many results to return per page. (default to 1000)
|
|
1159
|
+
* @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
|
|
1160
|
+
* @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
|
|
1161
|
+
* @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
|
|
1162
|
+
* @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
|
|
1163
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1164
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1165
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1166
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1167
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1168
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1169
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1170
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1171
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1130
1172
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
1131
1173
|
*/
|
|
1132
1174
|
}, {
|
|
@@ -1138,24 +1180,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1138
1180
|
}
|
|
1139
1181
|
|
|
1140
1182
|
/**
|
|
1141
|
-
*
|
|
1142
|
-
*
|
|
1143
|
-
* @param {
|
|
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.
|
|
1185
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1186
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1144
1187
|
* @param {Object} opts Optional parameters
|
|
1145
|
-
* @param {Number} opts.pageSize
|
|
1146
|
-
* @param {Number} opts.pageNum
|
|
1147
|
-
* @param {String} opts.cursor
|
|
1148
|
-
* @param {module:model/String} opts.sortBy
|
|
1149
|
-
* @param {module:model/String} opts.sortOrder
|
|
1150
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1151
|
-
* @param {Array.<String>} opts.tag
|
|
1152
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1153
|
-
* @param {String} opts.fleetUID
|
|
1154
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1155
|
-
* @param {Array.<String>} opts.location Location
|
|
1156
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1157
|
-
* @param {Array.<String>} opts.productUID
|
|
1158
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1188
|
+
* @param {Number} opts.pageSize How many results to return per page. (default to 1000)
|
|
1189
|
+
* @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
|
|
1190
|
+
* @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
|
|
1191
|
+
* @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
|
|
1192
|
+
* @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
|
|
1193
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1194
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1195
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1196
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1197
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1198
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1199
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1200
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1201
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1159
1202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1160
1203
|
*/
|
|
1161
1204
|
}, {
|
|
@@ -1201,24 +1244,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1201
1244
|
}
|
|
1202
1245
|
|
|
1203
1246
|
/**
|
|
1204
|
-
*
|
|
1205
|
-
*
|
|
1206
|
-
* @param {
|
|
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.
|
|
1249
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1250
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1207
1251
|
* @param {Object} opts Optional parameters
|
|
1208
|
-
* @param {Number} opts.pageSize
|
|
1209
|
-
* @param {Number} opts.pageNum
|
|
1210
|
-
* @param {String} opts.cursor
|
|
1211
|
-
* @param {module:model/String} opts.sortBy
|
|
1212
|
-
* @param {module:model/String} opts.sortOrder
|
|
1213
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1214
|
-
* @param {Array.<String>} opts.tag
|
|
1215
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1216
|
-
* @param {String} opts.fleetUID
|
|
1217
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1218
|
-
* @param {Array.<String>} opts.location Location
|
|
1219
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1220
|
-
* @param {Array.<String>} opts.productUID
|
|
1221
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1252
|
+
* @param {Number} opts.pageSize How many results to return per page. (default to 1000)
|
|
1253
|
+
* @param {Number} opts.pageNum Page number, starting at 1. Can't be combined with `cursor`. (default to 1)
|
|
1254
|
+
* @param {String} opts.cursor Read in ascending modification order. Start with `0` for the beginning, or a Unix time in microseconds (inclusive), e.g. now minus 30 days. To resume, pass back `next_cursor` or `X-Next-Cursor` unchanged; its `.N` suffix ensures no row repeats or is skipped.
|
|
1255
|
+
* @param {module:model/String} opts.sortBy Field to sort results by. (default to 'captured')
|
|
1256
|
+
* @param {module:model/String} opts.sortOrder Sort direction: `asc` or `desc`. (default to 'asc')
|
|
1257
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1258
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1259
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1260
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1261
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1262
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1263
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1264
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1265
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1222
1266
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1223
1267
|
*/
|
|
1224
1268
|
}, {
|
|
@@ -1230,16 +1274,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1230
1274
|
}
|
|
1231
1275
|
|
|
1232
1276
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
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.
|
|
1279
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1235
1280
|
* @param {Object} opts Optional parameters
|
|
1236
|
-
* @param {String} opts.product
|
|
1237
|
-
* @param {String} opts.firmwareType
|
|
1238
|
-
* @param {String} opts.version
|
|
1239
|
-
* @param {String} opts.target
|
|
1240
|
-
* @param {String} opts.filename
|
|
1241
|
-
* @param {String} opts.md5
|
|
1242
|
-
* @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.
|
|
1243
1288
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1244
1289
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1245
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
|
|
@@ -1277,16 +1322,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1277
1322
|
}
|
|
1278
1323
|
|
|
1279
1324
|
/**
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
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.
|
|
1327
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1282
1328
|
* @param {Object} opts Optional parameters
|
|
1283
|
-
* @param {String} opts.product
|
|
1284
|
-
* @param {String} opts.firmwareType
|
|
1285
|
-
* @param {String} opts.version
|
|
1286
|
-
* @param {String} opts.target
|
|
1287
|
-
* @param {String} opts.filename
|
|
1288
|
-
* @param {String} opts.md5
|
|
1289
|
-
* @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.
|
|
1290
1336
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1291
1337
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1292
1338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1300,9 +1346,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1346
|
}
|
|
1301
1347
|
|
|
1302
1348
|
/**
|
|
1303
|
-
* Get
|
|
1304
|
-
*
|
|
1305
|
-
* @param {String}
|
|
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.
|
|
1351
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1352
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1306
1353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1307
1354
|
*/
|
|
1308
1355
|
}, {
|
|
@@ -1332,9 +1379,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1332
1379
|
}
|
|
1333
1380
|
|
|
1334
1381
|
/**
|
|
1335
|
-
* Get
|
|
1336
|
-
*
|
|
1337
|
-
* @param {String}
|
|
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.
|
|
1384
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1385
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1338
1386
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1339
1387
|
*/
|
|
1340
1388
|
}, {
|
|
@@ -1346,9 +1394,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1394
|
}
|
|
1347
1395
|
|
|
1348
1396
|
/**
|
|
1349
|
-
* Get environment
|
|
1350
|
-
*
|
|
1351
|
-
* @param {String}
|
|
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.
|
|
1399
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1400
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1352
1401
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1353
1402
|
*/
|
|
1354
1403
|
}, {
|
|
@@ -1378,9 +1427,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1427
|
}
|
|
1379
1428
|
|
|
1380
1429
|
/**
|
|
1381
|
-
* Get environment
|
|
1382
|
-
*
|
|
1383
|
-
* @param {String}
|
|
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.
|
|
1432
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1433
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1384
1434
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1385
1435
|
*/
|
|
1386
1436
|
}, {
|
|
@@ -1392,9 +1442,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1392
1442
|
}
|
|
1393
1443
|
|
|
1394
1444
|
/**
|
|
1395
|
-
* Get environment variables
|
|
1396
|
-
*
|
|
1397
|
-
* @param {String}
|
|
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.
|
|
1447
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1448
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1398
1449
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1399
1450
|
*/
|
|
1400
1451
|
}, {
|
|
@@ -1424,9 +1475,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1424
1475
|
}
|
|
1425
1476
|
|
|
1426
1477
|
/**
|
|
1427
|
-
* Get environment variables
|
|
1428
|
-
*
|
|
1429
|
-
* @param {String}
|
|
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.
|
|
1480
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1481
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1430
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1431
1483
|
*/
|
|
1432
1484
|
}, {
|
|
@@ -1438,8 +1490,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1438
1490
|
}
|
|
1439
1491
|
|
|
1440
1492
|
/**
|
|
1441
|
-
*
|
|
1442
|
-
*
|
|
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.
|
|
1495
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1443
1496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1444
1497
|
*/
|
|
1445
1498
|
}, {
|
|
@@ -1464,8 +1517,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1464
1517
|
}
|
|
1465
1518
|
|
|
1466
1519
|
/**
|
|
1467
|
-
*
|
|
1468
|
-
*
|
|
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.
|
|
1522
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1469
1523
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1470
1524
|
*/
|
|
1471
1525
|
}, {
|
|
@@ -1477,8 +1531,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1477
1531
|
}
|
|
1478
1532
|
|
|
1479
1533
|
/**
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
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.
|
|
1536
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1482
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
|
|
1483
1538
|
*/
|
|
1484
1539
|
}, {
|
|
@@ -1503,8 +1558,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1503
1558
|
}
|
|
1504
1559
|
|
|
1505
1560
|
/**
|
|
1506
|
-
*
|
|
1507
|
-
*
|
|
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.
|
|
1563
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1508
1564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1509
1565
|
*/
|
|
1510
1566
|
}, {
|
|
@@ -1516,8 +1572,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1516
1572
|
}
|
|
1517
1573
|
|
|
1518
1574
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
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.
|
|
1577
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1521
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1522
1579
|
*/
|
|
1523
1580
|
}, {
|
|
@@ -1542,8 +1599,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1542
1599
|
}
|
|
1543
1600
|
|
|
1544
1601
|
/**
|
|
1545
|
-
*
|
|
1546
|
-
*
|
|
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.
|
|
1604
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1547
1605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1548
1606
|
*/
|
|
1549
1607
|
}, {
|
|
@@ -1555,8 +1613,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1555
1613
|
}
|
|
1556
1614
|
|
|
1557
1615
|
/**
|
|
1558
|
-
* Get a
|
|
1559
|
-
*
|
|
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.
|
|
1618
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1560
1619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1561
1620
|
*/
|
|
1562
1621
|
}, {
|
|
@@ -1581,8 +1640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1581
1640
|
}
|
|
1582
1641
|
|
|
1583
1642
|
/**
|
|
1584
|
-
* Get a
|
|
1585
|
-
*
|
|
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.
|
|
1645
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1586
1646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1587
1647
|
*/
|
|
1588
1648
|
}, {
|
|
@@ -1594,8 +1654,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1594
1654
|
}
|
|
1595
1655
|
|
|
1596
1656
|
/**
|
|
1597
|
-
* Get
|
|
1598
|
-
*
|
|
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.
|
|
1599
1660
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1600
1661
|
*/
|
|
1601
1662
|
}, {
|
|
@@ -1620,8 +1681,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1620
1681
|
}
|
|
1621
1682
|
|
|
1622
1683
|
/**
|
|
1623
|
-
* Get
|
|
1624
|
-
*
|
|
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.
|
|
1625
1687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1626
1688
|
*/
|
|
1627
1689
|
}, {
|
|
@@ -1633,8 +1695,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1633
1695
|
}
|
|
1634
1696
|
|
|
1635
1697
|
/**
|
|
1636
|
-
* Get environment
|
|
1637
|
-
*
|
|
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`.
|
|
1700
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1638
1701
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1639
1702
|
*/
|
|
1640
1703
|
}, {
|
|
@@ -1659,8 +1722,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1659
1722
|
}
|
|
1660
1723
|
|
|
1661
1724
|
/**
|
|
1662
|
-
* Get environment
|
|
1663
|
-
*
|
|
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`.
|
|
1727
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1664
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1665
1729
|
*/
|
|
1666
1730
|
}, {
|
|
@@ -1672,8 +1736,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1672
1736
|
}
|
|
1673
1737
|
|
|
1674
1738
|
/**
|
|
1675
|
-
* Get environment variables
|
|
1676
|
-
*
|
|
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`.
|
|
1741
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1677
1742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1678
1743
|
*/
|
|
1679
1744
|
}, {
|
|
@@ -1698,8 +1763,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1698
1763
|
}
|
|
1699
1764
|
|
|
1700
1765
|
/**
|
|
1701
|
-
* Get environment variables
|
|
1702
|
-
*
|
|
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`.
|
|
1768
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1703
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1704
1770
|
*/
|
|
1705
1771
|
}, {
|
|
@@ -1711,8 +1777,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1711
1777
|
}
|
|
1712
1778
|
|
|
1713
1779
|
/**
|
|
1714
|
-
*
|
|
1715
|
-
*
|
|
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.
|
|
1782
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1716
1783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1717
1784
|
*/
|
|
1718
1785
|
}, {
|
|
@@ -1737,8 +1804,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1737
1804
|
}
|
|
1738
1805
|
|
|
1739
1806
|
/**
|
|
1740
|
-
*
|
|
1741
|
-
*
|
|
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.
|
|
1809
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1742
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1743
1811
|
*/
|
|
1744
1812
|
}, {
|
|
@@ -1750,8 +1818,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1750
1818
|
}
|
|
1751
1819
|
|
|
1752
1820
|
/**
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
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.
|
|
1823
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1755
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1756
1825
|
*/
|
|
1757
1826
|
}, {
|
|
@@ -1776,8 +1845,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1776
1845
|
}
|
|
1777
1846
|
|
|
1778
1847
|
/**
|
|
1779
|
-
*
|
|
1780
|
-
*
|
|
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.
|
|
1850
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1781
1851
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1782
1852
|
*/
|
|
1783
1853
|
}, {
|
|
@@ -1789,7 +1859,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1789
1859
|
}
|
|
1790
1860
|
|
|
1791
1861
|
/**
|
|
1792
|
-
*
|
|
1862
|
+
* List projects
|
|
1863
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1793
1864
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1794
1865
|
*/
|
|
1795
1866
|
}, {
|
|
@@ -1808,7 +1879,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1808
1879
|
}
|
|
1809
1880
|
|
|
1810
1881
|
/**
|
|
1811
|
-
*
|
|
1882
|
+
* List projects
|
|
1883
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1812
1884
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1813
1885
|
*/
|
|
1814
1886
|
}, {
|
|
@@ -1820,20 +1892,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1820
1892
|
}
|
|
1821
1893
|
|
|
1822
1894
|
/**
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
* @param {
|
|
1826
|
-
* @param {module:model/String}
|
|
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.
|
|
1897
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
1827
1900
|
* @param {Object} opts Optional parameters
|
|
1828
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1829
|
-
* @param {Array.<String>} opts.tag
|
|
1830
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1831
|
-
* @param {String} opts.fleetUID
|
|
1832
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1833
|
-
* @param {Array.<String>} opts.location Location
|
|
1834
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1835
|
-
* @param {Array.<String>} opts.productUID
|
|
1836
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1901
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1902
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1903
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1904
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1905
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1906
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1907
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1908
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1909
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1837
1910
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1838
1911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1839
1912
|
*/
|
|
@@ -1880,20 +1953,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1880
1953
|
}
|
|
1881
1954
|
|
|
1882
1955
|
/**
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
* @param {
|
|
1886
|
-
* @param {module:model/String}
|
|
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.
|
|
1958
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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
|
|
1887
1961
|
* @param {Object} opts Optional parameters
|
|
1888
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1889
|
-
* @param {Array.<String>} opts.tag
|
|
1890
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1891
|
-
* @param {String} opts.fleetUID
|
|
1892
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1893
|
-
* @param {Array.<String>} opts.location Location
|
|
1894
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1895
|
-
* @param {Array.<String>} opts.productUID
|
|
1896
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1962
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
1963
|
+
* @param {Array.<String>} opts.tag Whole tag, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1964
|
+
* @param {Array.<String>} opts.serialNumber Serial number substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1965
|
+
* @param {String} opts.fleetUID Limit results to this fleet (FleetUID).
|
|
1966
|
+
* @param {Array.<String>} opts.notecardFirmware Notecard firmware substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1967
|
+
* @param {Array.<String>} opts.location Location substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1968
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware version substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1969
|
+
* @param {Array.<String>} opts.productUID ProductUID substring, any case. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1970
|
+
* @param {Array.<String>} opts.sku SKU substring. `*` is a wildcard and `\\*` a literal `*`; `%` and `_` are literal.
|
|
1897
1971
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1898
1972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1899
1973
|
*/
|
|
@@ -1906,10 +1980,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1906
1980
|
}
|
|
1907
1981
|
|
|
1908
1982
|
/**
|
|
1909
|
-
* Set environment variables
|
|
1910
|
-
*
|
|
1911
|
-
* @param {String}
|
|
1912
|
-
* @param {
|
|
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.
|
|
1985
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
1986
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
1987
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1913
1988
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1914
1989
|
*/
|
|
1915
1990
|
}, {
|
|
@@ -1943,10 +2018,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1943
2018
|
}
|
|
1944
2019
|
|
|
1945
2020
|
/**
|
|
1946
|
-
* Set environment variables
|
|
1947
|
-
*
|
|
1948
|
-
* @param {String}
|
|
1949
|
-
* @param {
|
|
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.
|
|
2023
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2024
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
2025
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1950
2026
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1951
2027
|
*/
|
|
1952
2028
|
}, {
|
|
@@ -1958,9 +2034,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1958
2034
|
}
|
|
1959
2035
|
|
|
1960
2036
|
/**
|
|
1961
|
-
* Set the
|
|
1962
|
-
*
|
|
1963
|
-
* @param {String}
|
|
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.
|
|
2039
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2040
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1964
2041
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1965
2042
|
*/
|
|
1966
2043
|
}, {
|
|
@@ -1989,9 +2066,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1989
2066
|
}
|
|
1990
2067
|
|
|
1991
2068
|
/**
|
|
1992
|
-
* Set the
|
|
1993
|
-
*
|
|
1994
|
-
* @param {String}
|
|
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.
|
|
2071
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2072
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1995
2073
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1996
2074
|
*/
|
|
1997
2075
|
}, {
|
|
@@ -2003,8 +2081,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2003
2081
|
}
|
|
2004
2082
|
|
|
2005
2083
|
/**
|
|
2006
|
-
* Set environment variables
|
|
2007
|
-
*
|
|
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.
|
|
2086
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2008
2087
|
* @param {Object} opts Optional parameters
|
|
2009
2088
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
2010
2089
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -2032,8 +2111,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2032
2111
|
}
|
|
2033
2112
|
|
|
2034
2113
|
/**
|
|
2035
|
-
* Set environment variables
|
|
2036
|
-
*
|
|
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.
|
|
2116
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2037
2117
|
* @param {Object} opts Optional parameters
|
|
2038
2118
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
2039
2119
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -2047,8 +2127,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2047
2127
|
}
|
|
2048
2128
|
|
|
2049
2129
|
/**
|
|
2050
|
-
* Update
|
|
2051
|
-
*
|
|
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.
|
|
2132
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2052
2133
|
* @param {module:model/String} firmwareType
|
|
2053
2134
|
* @param {String} filename
|
|
2054
2135
|
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
@@ -2090,8 +2171,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2090
2171
|
}
|
|
2091
2172
|
|
|
2092
2173
|
/**
|
|
2093
|
-
* Update
|
|
2094
|
-
*
|
|
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.
|
|
2176
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2095
2177
|
* @param {module:model/String} firmwareType
|
|
2096
2178
|
* @param {String} filename
|
|
2097
2179
|
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
@@ -2106,10 +2188,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2106
2188
|
}
|
|
2107
2189
|
|
|
2108
2190
|
/**
|
|
2109
|
-
* Update
|
|
2110
|
-
*
|
|
2111
|
-
* @param {String}
|
|
2112
|
-
* @param {
|
|
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.
|
|
2193
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2194
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
2195
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2113
2196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2114
2197
|
*/
|
|
2115
2198
|
}, {
|
|
@@ -2143,10 +2226,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2143
2226
|
}
|
|
2144
2227
|
|
|
2145
2228
|
/**
|
|
2146
|
-
* Update
|
|
2147
|
-
*
|
|
2148
|
-
* @param {String}
|
|
2149
|
-
* @param {
|
|
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.
|
|
2231
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2232
|
+
* @param {String} fleetUID FleetUID, e.g. `fleet:1042ddc5-3b2c-4cec-b1fb-d3040538094d`. List with `GetFleets`.
|
|
2233
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2150
2234
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2151
2235
|
*/
|
|
2152
2236
|
}, {
|
|
@@ -2158,9 +2242,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2158
2242
|
}
|
|
2159
2243
|
|
|
2160
2244
|
/**
|
|
2161
|
-
* Update
|
|
2162
|
-
*
|
|
2163
|
-
* @param {String}
|
|
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.
|
|
2247
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2248
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2164
2249
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2165
2250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2166
2251
|
*/
|
|
@@ -2195,9 +2280,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2195
2280
|
}
|
|
2196
2281
|
|
|
2197
2282
|
/**
|
|
2198
|
-
* Update
|
|
2199
|
-
*
|
|
2200
|
-
* @param {String}
|
|
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.
|
|
2285
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
2286
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2201
2287
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2202
2288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2203
2289
|
*/
|
|
@@ -2210,10 +2296,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2210
2296
|
}
|
|
2211
2297
|
|
|
2212
2298
|
/**
|
|
2213
|
-
* Upload firmware
|
|
2214
|
-
*
|
|
2215
|
-
* @param {
|
|
2216
|
-
* @param {String}
|
|
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.
|
|
2301
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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 `$`.
|
|
2217
2304
|
* @param {File} body contents of the firmware binary
|
|
2218
2305
|
* @param {Object} opts Optional parameters
|
|
2219
2306
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2260,10 +2347,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2260
2347
|
}
|
|
2261
2348
|
|
|
2262
2349
|
/**
|
|
2263
|
-
* Upload firmware
|
|
2264
|
-
*
|
|
2265
|
-
* @param {
|
|
2266
|
-
* @param {String}
|
|
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.
|
|
2352
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
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 `$`.
|
|
2267
2355
|
* @param {File} body contents of the firmware binary
|
|
2268
2356
|
* @param {Object} opts Optional parameters
|
|
2269
2357
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|