@blues-inc/notehub-js 6.7.0-beta.64 → 6.7.0-beta.65
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 +45 -45
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +217 -169
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/SkillsApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- 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 +1 -1
- package/dist/model/CreatedRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -2
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetOrganization200Response.js +1 -1
- package/dist/model/GetOrganization200ResponsePlan.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +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 +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +1 -1
- package/dist/model/SkillSummary.js +1 -1
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
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 6.7.0-beta.
|
|
59
|
+
* @version 6.7.0-beta.65
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
|
@@ -72,10 +72,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Add
|
|
75
|
+
* Add a device to fleets
|
|
76
|
+
* Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
|
|
76
77
|
* @param {String} projectOrProductUID
|
|
77
78
|
* @param {String} deviceUID
|
|
78
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add
|
|
79
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
79
80
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
80
81
|
*/
|
|
81
82
|
return _createClass(ProjectApi, [{
|
|
@@ -109,10 +110,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
/**
|
|
112
|
-
* Add
|
|
113
|
+
* Add a device to fleets
|
|
114
|
+
* Add a device to one or more fleets, keeping the fleets it's already in, and return all its fleets. Fleets it's already in are skipped, so a retry is safe. Requires the Owner or Developer role. Returns 400 if a fleet doesn't exist.
|
|
113
115
|
* @param {String} projectOrProductUID
|
|
114
116
|
* @param {String} deviceUID
|
|
115
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add
|
|
117
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
116
118
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
117
119
|
*/
|
|
118
120
|
}, {
|
|
@@ -124,9 +126,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
/**
|
|
127
|
-
* Clone a
|
|
129
|
+
* Clone a project
|
|
130
|
+
* Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
128
131
|
* @param {String} projectOrProductUID
|
|
129
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
132
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
|
|
130
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
131
134
|
*/
|
|
132
135
|
}, {
|
|
@@ -155,9 +158,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
/**
|
|
158
|
-
* Clone a
|
|
161
|
+
* Clone a project
|
|
162
|
+
* Create a new project as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. Copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
159
163
|
* @param {String} projectOrProductUID
|
|
160
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
164
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest The new project's name and organization, and what to leave out of the copy.
|
|
161
165
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
162
166
|
*/
|
|
163
167
|
}, {
|
|
@@ -169,9 +173,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
/**
|
|
172
|
-
* Create
|
|
176
|
+
* Create a fleet
|
|
177
|
+
* Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
|
|
173
178
|
* @param {String} projectOrProductUID
|
|
174
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
179
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
|
|
175
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
176
181
|
*/
|
|
177
182
|
}, {
|
|
@@ -200,9 +205,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
/**
|
|
203
|
-
* Create
|
|
208
|
+
* Create a fleet
|
|
209
|
+
* Create a fleet in the project. Connectivity assurance is on unless `connectivity_assurance.enabled` is `false`. A second call creates another fleet. Requires the Owner or Developer role. Returns 400 if `label` is missing or empty.
|
|
204
210
|
* @param {String} projectOrProductUID
|
|
205
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
211
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest The new fleet's name and settings.
|
|
206
212
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
207
213
|
*/
|
|
208
214
|
}, {
|
|
@@ -214,9 +220,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
214
220
|
}
|
|
215
221
|
|
|
216
222
|
/**
|
|
217
|
-
* Create
|
|
223
|
+
* Create a product
|
|
224
|
+
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
218
225
|
* @param {String} projectOrProductUID
|
|
219
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
226
|
+
* @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
|
|
220
227
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
221
228
|
*/
|
|
222
229
|
}, {
|
|
@@ -245,9 +252,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
252
|
}
|
|
246
253
|
|
|
247
254
|
/**
|
|
248
|
-
* Create
|
|
255
|
+
* Create a product
|
|
256
|
+
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
249
257
|
* @param {String} projectOrProductUID
|
|
250
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
258
|
+
* @param {module:model/CreateProductRequest} createProductRequest The new product's UID suffix, name and provisioning settings.
|
|
251
259
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
252
260
|
*/
|
|
253
261
|
}, {
|
|
@@ -259,8 +267,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
259
267
|
}
|
|
260
268
|
|
|
261
269
|
/**
|
|
262
|
-
* Create a
|
|
263
|
-
*
|
|
270
|
+
* Create a project
|
|
271
|
+
* Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
|
|
272
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
264
273
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
265
274
|
*/
|
|
266
275
|
}, {
|
|
@@ -283,8 +292,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
283
292
|
}
|
|
284
293
|
|
|
285
294
|
/**
|
|
286
|
-
* Create a
|
|
287
|
-
*
|
|
295
|
+
* Create a project
|
|
296
|
+
* Create a project in an organization, with one default fleet, no products, and the caller as its Owner. A second call creates another project. Requires a verified email address (401 otherwise) and permission to create projects in the organization (403 otherwise).
|
|
297
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
288
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
289
299
|
*/
|
|
290
300
|
}, {
|
|
@@ -296,7 +306,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
306
|
}
|
|
297
307
|
|
|
298
308
|
/**
|
|
299
|
-
* Create a
|
|
309
|
+
* Create a project secret
|
|
310
|
+
* Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
|
|
300
311
|
* @param {String} projectOrProductUID
|
|
301
312
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
302
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
@@ -327,7 +338,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
338
|
}
|
|
328
339
|
|
|
329
340
|
/**
|
|
330
|
-
* Create a
|
|
341
|
+
* Create a project secret
|
|
342
|
+
* Store a secret value that routes and alerts can reference as `[$$name]` without exposing it. The value can't be read back. Requires the Owner or Developer role. Returns 409 if the name is taken, and 400 if it's invalid.
|
|
331
343
|
* @param {String} projectOrProductUID
|
|
332
344
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
333
345
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
@@ -341,10 +353,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
353
|
}
|
|
342
354
|
|
|
343
355
|
/**
|
|
344
|
-
* Remove
|
|
356
|
+
* Remove a device from fleets
|
|
357
|
+
* Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
|
|
345
358
|
* @param {String} projectOrProductUID
|
|
346
359
|
* @param {String} deviceUID
|
|
347
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove
|
|
360
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
|
|
348
361
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
349
362
|
*/
|
|
350
363
|
}, {
|
|
@@ -378,10 +391,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
378
391
|
}
|
|
379
392
|
|
|
380
393
|
/**
|
|
381
|
-
* Remove
|
|
394
|
+
* Remove a device from fleets
|
|
395
|
+
* Remove a device from one or more fleets and return the fleets it's still in. Fleets it isn't in are ignored, so a retry is safe. Requires the Owner or Developer role.
|
|
382
396
|
* @param {String} projectOrProductUID
|
|
383
397
|
* @param {String} deviceUID
|
|
384
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove
|
|
398
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device from.
|
|
385
399
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
386
400
|
*/
|
|
387
401
|
}, {
|
|
@@ -393,8 +407,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
393
407
|
}
|
|
394
408
|
|
|
395
409
|
/**
|
|
396
|
-
* Delete host firmware
|
|
397
|
-
* 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.
|
|
410
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
398
411
|
* @param {String} projectOrProductUID
|
|
399
412
|
* @param {module:model/String} firmwareType
|
|
400
413
|
* @param {String} filename
|
|
@@ -432,8 +445,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
432
445
|
}
|
|
433
446
|
|
|
434
447
|
/**
|
|
435
|
-
* Delete host firmware
|
|
436
|
-
* 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.
|
|
448
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
437
449
|
* @param {String} projectOrProductUID
|
|
438
450
|
* @param {module:model/String} firmwareType
|
|
439
451
|
* @param {String} filename
|
|
@@ -448,7 +460,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
460
|
}
|
|
449
461
|
|
|
450
462
|
/**
|
|
451
|
-
* Delete
|
|
463
|
+
* Delete a fleet
|
|
464
|
+
* 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.
|
|
452
465
|
* @param {String} projectOrProductUID
|
|
453
466
|
* @param {String} fleetUID
|
|
454
467
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -480,7 +493,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
493
|
}
|
|
481
494
|
|
|
482
495
|
/**
|
|
483
|
-
* Delete
|
|
496
|
+
* Delete a fleet
|
|
497
|
+
* 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.
|
|
484
498
|
* @param {String} projectOrProductUID
|
|
485
499
|
* @param {String} fleetUID
|
|
486
500
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -494,10 +508,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
494
508
|
}
|
|
495
509
|
|
|
496
510
|
/**
|
|
497
|
-
* Delete
|
|
511
|
+
* Delete a fleet environment variable
|
|
512
|
+
* 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.
|
|
498
513
|
* @param {String} projectOrProductUID
|
|
499
514
|
* @param {String} fleetUID
|
|
500
|
-
* @param {String} key
|
|
515
|
+
* @param {String} key Name of the environment variable to delete.
|
|
501
516
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
502
517
|
*/
|
|
503
518
|
}, {
|
|
@@ -532,10 +547,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
532
547
|
}
|
|
533
548
|
|
|
534
549
|
/**
|
|
535
|
-
* Delete
|
|
550
|
+
* Delete a fleet environment variable
|
|
551
|
+
* 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.
|
|
536
552
|
* @param {String} projectOrProductUID
|
|
537
553
|
* @param {String} fleetUID
|
|
538
|
-
* @param {String} key
|
|
554
|
+
* @param {String} key Name of the environment variable to delete.
|
|
539
555
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
540
556
|
*/
|
|
541
557
|
}, {
|
|
@@ -548,6 +564,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
548
564
|
|
|
549
565
|
/**
|
|
550
566
|
* Delete a product
|
|
567
|
+
* 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.
|
|
551
568
|
* @param {String} projectOrProductUID
|
|
552
569
|
* @param {String} productUID
|
|
553
570
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -580,6 +597,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
580
597
|
|
|
581
598
|
/**
|
|
582
599
|
* Delete a product
|
|
600
|
+
* 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.
|
|
583
601
|
* @param {String} projectOrProductUID
|
|
584
602
|
* @param {String} productUID
|
|
585
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -593,7 +611,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
593
611
|
}
|
|
594
612
|
|
|
595
613
|
/**
|
|
596
|
-
* Delete a
|
|
614
|
+
* Delete a project
|
|
615
|
+
* 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.
|
|
597
616
|
* @param {String} projectOrProductUID
|
|
598
617
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
599
618
|
*/
|
|
@@ -619,7 +638,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
619
638
|
}
|
|
620
639
|
|
|
621
640
|
/**
|
|
622
|
-
* Delete a
|
|
641
|
+
* Delete a project
|
|
642
|
+
* 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.
|
|
623
643
|
* @param {String} projectOrProductUID
|
|
624
644
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
625
645
|
*/
|
|
@@ -632,9 +652,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
632
652
|
}
|
|
633
653
|
|
|
634
654
|
/**
|
|
635
|
-
* Delete
|
|
655
|
+
* Delete a project environment variable
|
|
656
|
+
* 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.
|
|
636
657
|
* @param {String} projectOrProductUID
|
|
637
|
-
* @param {String} key
|
|
658
|
+
* @param {String} key Name of the environment variable to delete.
|
|
638
659
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
639
660
|
*/
|
|
640
661
|
}, {
|
|
@@ -664,9 +685,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
664
685
|
}
|
|
665
686
|
|
|
666
687
|
/**
|
|
667
|
-
* Delete
|
|
688
|
+
* Delete a project environment variable
|
|
689
|
+
* 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.
|
|
668
690
|
* @param {String} projectOrProductUID
|
|
669
|
-
* @param {String} key
|
|
691
|
+
* @param {String} key Name of the environment variable to delete.
|
|
670
692
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
671
693
|
*/
|
|
672
694
|
}, {
|
|
@@ -678,9 +700,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
678
700
|
}
|
|
679
701
|
|
|
680
702
|
/**
|
|
681
|
-
* Delete a project secret
|
|
703
|
+
* Delete a project secret
|
|
704
|
+
* 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.
|
|
682
705
|
* @param {String} projectOrProductUID
|
|
683
|
-
* @param {String} secretName
|
|
706
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
684
707
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
685
708
|
*/
|
|
686
709
|
}, {
|
|
@@ -710,9 +733,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
710
733
|
}
|
|
711
734
|
|
|
712
735
|
/**
|
|
713
|
-
* Delete a project secret
|
|
736
|
+
* Delete a project secret
|
|
737
|
+
* 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.
|
|
714
738
|
* @param {String} projectOrProductUID
|
|
715
|
-
* @param {String} secretName
|
|
739
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
716
740
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
717
741
|
*/
|
|
718
742
|
}, {
|
|
@@ -724,7 +748,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
724
748
|
}
|
|
725
749
|
|
|
726
750
|
/**
|
|
727
|
-
* Disable the
|
|
751
|
+
* Disable the global event transformation
|
|
752
|
+
* 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.
|
|
728
753
|
* @param {String} projectOrProductUID
|
|
729
754
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
730
755
|
*/
|
|
@@ -750,7 +775,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
750
775
|
}
|
|
751
776
|
|
|
752
777
|
/**
|
|
753
|
-
* Disable the
|
|
778
|
+
* Disable the global event transformation
|
|
779
|
+
* 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.
|
|
754
780
|
* @param {String} projectOrProductUID
|
|
755
781
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
756
782
|
*/
|
|
@@ -763,10 +789,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
763
789
|
}
|
|
764
790
|
|
|
765
791
|
/**
|
|
766
|
-
* Download
|
|
767
|
-
* 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.
|
|
792
|
+
* Download firmware binary
|
|
768
793
|
* @param {String} projectOrProductUID
|
|
769
|
-
* @param {module:model/String} firmwareType
|
|
794
|
+
* @param {module:model/String} firmwareType
|
|
770
795
|
* @param {String} filename
|
|
771
796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
772
797
|
*/
|
|
@@ -802,10 +827,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
802
827
|
}
|
|
803
828
|
|
|
804
829
|
/**
|
|
805
|
-
* Download
|
|
806
|
-
* 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.
|
|
830
|
+
* Download firmware binary
|
|
807
831
|
* @param {String} projectOrProductUID
|
|
808
|
-
* @param {module:model/String} firmwareType
|
|
832
|
+
* @param {module:model/String} firmwareType
|
|
809
833
|
* @param {String} filename
|
|
810
834
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
811
835
|
*/
|
|
@@ -818,7 +842,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
818
842
|
}
|
|
819
843
|
|
|
820
844
|
/**
|
|
821
|
-
* Enable the
|
|
845
|
+
* Enable the global event transformation
|
|
846
|
+
* 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.
|
|
822
847
|
* @param {String} projectOrProductUID
|
|
823
848
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
824
849
|
*/
|
|
@@ -844,7 +869,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
844
869
|
}
|
|
845
870
|
|
|
846
871
|
/**
|
|
847
|
-
* Enable the
|
|
872
|
+
* Enable the global event transformation
|
|
873
|
+
* 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.
|
|
848
874
|
* @param {String} projectOrProductUID
|
|
849
875
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
850
876
|
*/
|
|
@@ -858,7 +884,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
858
884
|
|
|
859
885
|
/**
|
|
860
886
|
* Get AWS role configuration for role-based authentication
|
|
861
|
-
*
|
|
887
|
+
* 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.
|
|
862
888
|
* @param {String} projectOrProductUID
|
|
863
889
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
864
890
|
*/
|
|
@@ -885,7 +911,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
885
911
|
|
|
886
912
|
/**
|
|
887
913
|
* Get AWS role configuration for role-based authentication
|
|
888
|
-
*
|
|
914
|
+
* 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.
|
|
889
915
|
* @param {String} projectOrProductUID
|
|
890
916
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
891
917
|
*/
|
|
@@ -898,11 +924,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
924
|
}
|
|
899
925
|
|
|
900
926
|
/**
|
|
901
|
-
* Get
|
|
902
|
-
* 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.
|
|
927
|
+
* Get device DFU history for host or Notecard firmware
|
|
903
928
|
* @param {String} projectOrProductUID
|
|
904
929
|
* @param {String} deviceUID
|
|
905
|
-
* @param {module:model/String} firmwareType
|
|
930
|
+
* @param {module:model/String} firmwareType
|
|
906
931
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
907
932
|
*/
|
|
908
933
|
}, {
|
|
@@ -937,11 +962,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
937
962
|
}
|
|
938
963
|
|
|
939
964
|
/**
|
|
940
|
-
* Get
|
|
941
|
-
* 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.
|
|
965
|
+
* Get device DFU history for host or Notecard firmware
|
|
942
966
|
* @param {String} projectOrProductUID
|
|
943
967
|
* @param {String} deviceUID
|
|
944
|
-
* @param {module:model/String} firmwareType
|
|
968
|
+
* @param {module:model/String} firmwareType
|
|
945
969
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
946
970
|
*/
|
|
947
971
|
}, {
|
|
@@ -953,11 +977,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
953
977
|
}
|
|
954
978
|
|
|
955
979
|
/**
|
|
956
|
-
* Get
|
|
957
|
-
* 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.
|
|
980
|
+
* Get device DFU history for host or Notecard firmware
|
|
958
981
|
* @param {String} projectOrProductUID
|
|
959
982
|
* @param {String} deviceUID
|
|
960
|
-
* @param {module:model/String} firmwareType
|
|
983
|
+
* @param {module:model/String} firmwareType
|
|
961
984
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
962
985
|
*/
|
|
963
986
|
}, {
|
|
@@ -992,11 +1015,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
992
1015
|
}
|
|
993
1016
|
|
|
994
1017
|
/**
|
|
995
|
-
* Get
|
|
996
|
-
* 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.
|
|
1018
|
+
* Get device DFU history for host or Notecard firmware
|
|
997
1019
|
* @param {String} projectOrProductUID
|
|
998
1020
|
* @param {String} deviceUID
|
|
999
|
-
* @param {module:model/String} firmwareType
|
|
1021
|
+
* @param {module:model/String} firmwareType
|
|
1000
1022
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
1001
1023
|
*/
|
|
1002
1024
|
}, {
|
|
@@ -1008,7 +1030,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1008
1030
|
}
|
|
1009
1031
|
|
|
1010
1032
|
/**
|
|
1011
|
-
*
|
|
1033
|
+
* List a device's fleets
|
|
1034
|
+
* 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.
|
|
1012
1035
|
* @param {String} projectOrProductUID
|
|
1013
1036
|
* @param {String} deviceUID
|
|
1014
1037
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
@@ -1040,7 +1063,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1040
1063
|
}
|
|
1041
1064
|
|
|
1042
1065
|
/**
|
|
1043
|
-
*
|
|
1066
|
+
* List a device's fleets
|
|
1067
|
+
* 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.
|
|
1044
1068
|
* @param {String} projectOrProductUID
|
|
1045
1069
|
* @param {String} deviceUID
|
|
1046
1070
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1054,10 +1078,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1054
1078
|
}
|
|
1055
1079
|
|
|
1056
1080
|
/**
|
|
1057
|
-
*
|
|
1058
|
-
* 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.
|
|
1081
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1059
1082
|
* @param {String} projectOrProductUID
|
|
1060
|
-
* @param {module:model/String} firmwareType
|
|
1083
|
+
* @param {module:model/String} firmwareType
|
|
1061
1084
|
* @param {Object} opts Optional parameters
|
|
1062
1085
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1063
1086
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1118,10 +1141,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1118
1141
|
}
|
|
1119
1142
|
|
|
1120
1143
|
/**
|
|
1121
|
-
*
|
|
1122
|
-
* 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.
|
|
1144
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1123
1145
|
* @param {String} projectOrProductUID
|
|
1124
|
-
* @param {module:model/String} firmwareType
|
|
1146
|
+
* @param {module:model/String} firmwareType
|
|
1125
1147
|
* @param {Object} opts Optional parameters
|
|
1126
1148
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1127
1149
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1148,10 +1170,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1148
1170
|
}
|
|
1149
1171
|
|
|
1150
1172
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
* 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.
|
|
1173
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1153
1174
|
* @param {String} projectOrProductUID
|
|
1154
|
-
* @param {module:model/String} firmwareType
|
|
1175
|
+
* @param {module:model/String} firmwareType
|
|
1155
1176
|
* @param {Object} opts Optional parameters
|
|
1156
1177
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1157
1178
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1212,10 +1233,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1212
1233
|
}
|
|
1213
1234
|
|
|
1214
1235
|
/**
|
|
1215
|
-
*
|
|
1216
|
-
* 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.
|
|
1236
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1217
1237
|
* @param {String} projectOrProductUID
|
|
1218
|
-
* @param {module:model/String} firmwareType
|
|
1238
|
+
* @param {module:model/String} firmwareType
|
|
1219
1239
|
* @param {Object} opts Optional parameters
|
|
1220
1240
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1221
1241
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1242,17 +1262,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1242
1262
|
}
|
|
1243
1263
|
|
|
1244
1264
|
/**
|
|
1245
|
-
*
|
|
1246
|
-
* 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.
|
|
1265
|
+
* Get Available Firmware Information
|
|
1247
1266
|
* @param {String} projectOrProductUID
|
|
1248
1267
|
* @param {Object} opts Optional parameters
|
|
1249
|
-
* @param {String} opts.product
|
|
1250
|
-
* @param {String} opts.firmwareType
|
|
1251
|
-
* @param {String} opts.version
|
|
1252
|
-
* @param {String} opts.target
|
|
1253
|
-
* @param {String} opts.filename
|
|
1254
|
-
* @param {String} opts.md5
|
|
1255
|
-
* @param {Boolean} opts.unpublished
|
|
1268
|
+
* @param {String} opts.product
|
|
1269
|
+
* @param {String} opts.firmwareType
|
|
1270
|
+
* @param {String} opts.version
|
|
1271
|
+
* @param {String} opts.target
|
|
1272
|
+
* @param {String} opts.filename
|
|
1273
|
+
* @param {String} opts.md5
|
|
1274
|
+
* @param {Boolean} opts.unpublished
|
|
1256
1275
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1257
1276
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1258
1277
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1290,17 +1309,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1290
1309
|
}
|
|
1291
1310
|
|
|
1292
1311
|
/**
|
|
1293
|
-
*
|
|
1294
|
-
* 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.
|
|
1312
|
+
* Get Available Firmware Information
|
|
1295
1313
|
* @param {String} projectOrProductUID
|
|
1296
1314
|
* @param {Object} opts Optional parameters
|
|
1297
|
-
* @param {String} opts.product
|
|
1298
|
-
* @param {String} opts.firmwareType
|
|
1299
|
-
* @param {String} opts.version
|
|
1300
|
-
* @param {String} opts.target
|
|
1301
|
-
* @param {String} opts.filename
|
|
1302
|
-
* @param {String} opts.md5
|
|
1303
|
-
* @param {Boolean} opts.unpublished
|
|
1315
|
+
* @param {String} opts.product
|
|
1316
|
+
* @param {String} opts.firmwareType
|
|
1317
|
+
* @param {String} opts.version
|
|
1318
|
+
* @param {String} opts.target
|
|
1319
|
+
* @param {String} opts.filename
|
|
1320
|
+
* @param {String} opts.md5
|
|
1321
|
+
* @param {Boolean} opts.unpublished
|
|
1304
1322
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1305
1323
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1306
1324
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1314,7 +1332,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1314
1332
|
}
|
|
1315
1333
|
|
|
1316
1334
|
/**
|
|
1317
|
-
* Get
|
|
1335
|
+
* Get a fleet
|
|
1336
|
+
* 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.
|
|
1318
1337
|
* @param {String} projectOrProductUID
|
|
1319
1338
|
* @param {String} fleetUID
|
|
1320
1339
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
@@ -1346,7 +1365,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1365
|
}
|
|
1347
1366
|
|
|
1348
1367
|
/**
|
|
1349
|
-
* Get
|
|
1368
|
+
* Get a fleet
|
|
1369
|
+
* 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.
|
|
1350
1370
|
* @param {String} projectOrProductUID
|
|
1351
1371
|
* @param {String} fleetUID
|
|
1352
1372
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1360,7 +1380,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1360
1380
|
}
|
|
1361
1381
|
|
|
1362
1382
|
/**
|
|
1363
|
-
* Get environment
|
|
1383
|
+
* Get a fleet's environment hierarchy
|
|
1384
|
+
* 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.
|
|
1364
1385
|
* @param {String} projectOrProductUID
|
|
1365
1386
|
* @param {String} fleetUID
|
|
1366
1387
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -1392,7 +1413,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1392
1413
|
}
|
|
1393
1414
|
|
|
1394
1415
|
/**
|
|
1395
|
-
* Get environment
|
|
1416
|
+
* Get a fleet's environment hierarchy
|
|
1417
|
+
* 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.
|
|
1396
1418
|
* @param {String} projectOrProductUID
|
|
1397
1419
|
* @param {String} fleetUID
|
|
1398
1420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1406,7 +1428,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1406
1428
|
}
|
|
1407
1429
|
|
|
1408
1430
|
/**
|
|
1409
|
-
* Get environment variables
|
|
1431
|
+
* Get fleet environment variables
|
|
1432
|
+
* 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.
|
|
1410
1433
|
* @param {String} projectOrProductUID
|
|
1411
1434
|
* @param {String} fleetUID
|
|
1412
1435
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1438,7 +1461,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1438
1461
|
}
|
|
1439
1462
|
|
|
1440
1463
|
/**
|
|
1441
|
-
* Get environment variables
|
|
1464
|
+
* Get fleet environment variables
|
|
1465
|
+
* 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.
|
|
1442
1466
|
* @param {String} projectOrProductUID
|
|
1443
1467
|
* @param {String} fleetUID
|
|
1444
1468
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1452,7 +1476,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1452
1476
|
}
|
|
1453
1477
|
|
|
1454
1478
|
/**
|
|
1455
|
-
*
|
|
1479
|
+
* List fleets
|
|
1480
|
+
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1456
1481
|
* @param {String} projectOrProductUID
|
|
1457
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1458
1483
|
*/
|
|
@@ -1478,7 +1503,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1478
1503
|
}
|
|
1479
1504
|
|
|
1480
1505
|
/**
|
|
1481
|
-
*
|
|
1506
|
+
* List fleets
|
|
1507
|
+
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1482
1508
|
* @param {String} projectOrProductUID
|
|
1483
1509
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1484
1510
|
*/
|
|
@@ -1491,7 +1517,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1517
|
}
|
|
1492
1518
|
|
|
1493
1519
|
/**
|
|
1494
|
-
*
|
|
1520
|
+
* List Notefile schemas
|
|
1521
|
+
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1495
1522
|
* @param {String} projectOrProductUID
|
|
1496
1523
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1497
1524
|
*/
|
|
@@ -1517,7 +1544,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1517
1544
|
}
|
|
1518
1545
|
|
|
1519
1546
|
/**
|
|
1520
|
-
*
|
|
1547
|
+
* List Notefile schemas
|
|
1548
|
+
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1521
1549
|
* @param {String} projectOrProductUID
|
|
1522
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1523
1551
|
*/
|
|
@@ -1530,7 +1558,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1530
1558
|
}
|
|
1531
1559
|
|
|
1532
1560
|
/**
|
|
1533
|
-
*
|
|
1561
|
+
* List a project's products
|
|
1562
|
+
* 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.
|
|
1534
1563
|
* @param {String} projectOrProductUID
|
|
1535
1564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1536
1565
|
*/
|
|
@@ -1556,7 +1585,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1556
1585
|
}
|
|
1557
1586
|
|
|
1558
1587
|
/**
|
|
1559
|
-
*
|
|
1588
|
+
* List a project's products
|
|
1589
|
+
* 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.
|
|
1560
1590
|
* @param {String} projectOrProductUID
|
|
1561
1591
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1562
1592
|
*/
|
|
@@ -1569,7 +1599,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1569
1599
|
}
|
|
1570
1600
|
|
|
1571
1601
|
/**
|
|
1572
|
-
* Get a
|
|
1602
|
+
* Get a project
|
|
1603
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1573
1604
|
* @param {String} projectOrProductUID
|
|
1574
1605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1575
1606
|
*/
|
|
@@ -1595,7 +1626,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1595
1626
|
}
|
|
1596
1627
|
|
|
1597
1628
|
/**
|
|
1598
|
-
* Get a
|
|
1629
|
+
* Get a project
|
|
1630
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1599
1631
|
* @param {String} projectOrProductUID
|
|
1600
1632
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1601
1633
|
*/
|
|
@@ -1608,8 +1640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1608
1640
|
}
|
|
1609
1641
|
|
|
1610
1642
|
/**
|
|
1611
|
-
* Get
|
|
1612
|
-
*
|
|
1643
|
+
* Get the project for a ProductUID
|
|
1644
|
+
* Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
|
|
1645
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1613
1646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1614
1647
|
*/
|
|
1615
1648
|
}, {
|
|
@@ -1634,8 +1667,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1634
1667
|
}
|
|
1635
1668
|
|
|
1636
1669
|
/**
|
|
1637
|
-
* Get
|
|
1638
|
-
*
|
|
1670
|
+
* Get the project for a ProductUID
|
|
1671
|
+
* Get the project that a ProductUID belongs to. Returns the same object as `GetProject`, which also accepts a ProductUID in place of a ProjectUID.
|
|
1672
|
+
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1639
1673
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1640
1674
|
*/
|
|
1641
1675
|
}, {
|
|
@@ -1647,7 +1681,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1647
1681
|
}
|
|
1648
1682
|
|
|
1649
1683
|
/**
|
|
1650
|
-
* Get environment
|
|
1684
|
+
* Get the project environment hierarchy
|
|
1685
|
+
* 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`.
|
|
1651
1686
|
* @param {String} projectOrProductUID
|
|
1652
1687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1653
1688
|
*/
|
|
@@ -1673,7 +1708,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1673
1708
|
}
|
|
1674
1709
|
|
|
1675
1710
|
/**
|
|
1676
|
-
* Get environment
|
|
1711
|
+
* Get the project environment hierarchy
|
|
1712
|
+
* 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`.
|
|
1677
1713
|
* @param {String} projectOrProductUID
|
|
1678
1714
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1679
1715
|
*/
|
|
@@ -1686,7 +1722,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1686
1722
|
}
|
|
1687
1723
|
|
|
1688
1724
|
/**
|
|
1689
|
-
* Get environment variables
|
|
1725
|
+
* Get project environment variables
|
|
1726
|
+
* 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`.
|
|
1690
1727
|
* @param {String} projectOrProductUID
|
|
1691
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1692
1729
|
*/
|
|
@@ -1712,7 +1749,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1712
1749
|
}
|
|
1713
1750
|
|
|
1714
1751
|
/**
|
|
1715
|
-
* Get environment variables
|
|
1752
|
+
* Get project environment variables
|
|
1753
|
+
* 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`.
|
|
1716
1754
|
* @param {String} projectOrProductUID
|
|
1717
1755
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1718
1756
|
*/
|
|
@@ -1725,7 +1763,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1725
1763
|
}
|
|
1726
1764
|
|
|
1727
1765
|
/**
|
|
1728
|
-
*
|
|
1766
|
+
* List project members
|
|
1767
|
+
* 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.
|
|
1729
1768
|
* @param {String} projectOrProductUID
|
|
1730
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1731
1770
|
*/
|
|
@@ -1751,7 +1790,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1751
1790
|
}
|
|
1752
1791
|
|
|
1753
1792
|
/**
|
|
1754
|
-
*
|
|
1793
|
+
* List project members
|
|
1794
|
+
* 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.
|
|
1755
1795
|
* @param {String} projectOrProductUID
|
|
1756
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1757
1797
|
*/
|
|
@@ -1764,7 +1804,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1764
1804
|
}
|
|
1765
1805
|
|
|
1766
1806
|
/**
|
|
1767
|
-
*
|
|
1807
|
+
* List project secrets
|
|
1808
|
+
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1768
1809
|
* @param {String} projectOrProductUID
|
|
1769
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1770
1811
|
*/
|
|
@@ -1790,7 +1831,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1790
1831
|
}
|
|
1791
1832
|
|
|
1792
1833
|
/**
|
|
1793
|
-
*
|
|
1834
|
+
* List project secrets
|
|
1835
|
+
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1794
1836
|
* @param {String} projectOrProductUID
|
|
1795
1837
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1796
1838
|
*/
|
|
@@ -1803,7 +1845,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1803
1845
|
}
|
|
1804
1846
|
|
|
1805
1847
|
/**
|
|
1806
|
-
*
|
|
1848
|
+
* List projects
|
|
1849
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1807
1850
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1808
1851
|
*/
|
|
1809
1852
|
}, {
|
|
@@ -1822,7 +1865,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1822
1865
|
}
|
|
1823
1866
|
|
|
1824
1867
|
/**
|
|
1825
|
-
*
|
|
1868
|
+
* List projects
|
|
1869
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1826
1870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1827
1871
|
*/
|
|
1828
1872
|
}, {
|
|
@@ -1834,11 +1878,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1834
1878
|
}
|
|
1835
1879
|
|
|
1836
1880
|
/**
|
|
1837
|
-
*
|
|
1838
|
-
* 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.
|
|
1881
|
+
* Update/cancel host or notecard firmware updates
|
|
1839
1882
|
* @param {String} projectOrProductUID
|
|
1840
|
-
* @param {module:model/String} firmwareType
|
|
1841
|
-
* @param {module:model/String} action
|
|
1883
|
+
* @param {module:model/String} firmwareType
|
|
1884
|
+
* @param {module:model/String} action
|
|
1842
1885
|
* @param {Object} opts Optional parameters
|
|
1843
1886
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1844
1887
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1895,11 +1938,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1895
1938
|
}
|
|
1896
1939
|
|
|
1897
1940
|
/**
|
|
1898
|
-
*
|
|
1899
|
-
* 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.
|
|
1941
|
+
* Update/cancel host or notecard firmware updates
|
|
1900
1942
|
* @param {String} projectOrProductUID
|
|
1901
|
-
* @param {module:model/String} firmwareType
|
|
1902
|
-
* @param {module:model/String} action
|
|
1943
|
+
* @param {module:model/String} firmwareType
|
|
1944
|
+
* @param {module:model/String} action
|
|
1903
1945
|
* @param {Object} opts Optional parameters
|
|
1904
1946
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1905
1947
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1922,10 +1964,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1922
1964
|
}
|
|
1923
1965
|
|
|
1924
1966
|
/**
|
|
1925
|
-
* Set environment variables
|
|
1967
|
+
* Set fleet environment variables
|
|
1968
|
+
* 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.
|
|
1926
1969
|
* @param {String} projectOrProductUID
|
|
1927
1970
|
* @param {String} fleetUID
|
|
1928
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1971
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1929
1972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1930
1973
|
*/
|
|
1931
1974
|
}, {
|
|
@@ -1959,10 +2002,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1959
2002
|
}
|
|
1960
2003
|
|
|
1961
2004
|
/**
|
|
1962
|
-
* Set environment variables
|
|
2005
|
+
* Set fleet environment variables
|
|
2006
|
+
* 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.
|
|
1963
2007
|
* @param {String} projectOrProductUID
|
|
1964
2008
|
* @param {String} fleetUID
|
|
1965
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
2009
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1966
2010
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1967
2011
|
*/
|
|
1968
2012
|
}, {
|
|
@@ -1974,9 +2018,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1974
2018
|
}
|
|
1975
2019
|
|
|
1976
2020
|
/**
|
|
1977
|
-
* Set the
|
|
2021
|
+
* Set the global event transformation
|
|
2022
|
+
* 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.
|
|
1978
2023
|
* @param {String} projectOrProductUID
|
|
1979
|
-
* @param {String} body JSONata expression
|
|
2024
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1980
2025
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1981
2026
|
*/
|
|
1982
2027
|
}, {
|
|
@@ -2005,9 +2050,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2005
2050
|
}
|
|
2006
2051
|
|
|
2007
2052
|
/**
|
|
2008
|
-
* Set the
|
|
2053
|
+
* Set the global event transformation
|
|
2054
|
+
* 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.
|
|
2009
2055
|
* @param {String} projectOrProductUID
|
|
2010
|
-
* @param {String} body JSONata expression
|
|
2056
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
2011
2057
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
2012
2058
|
*/
|
|
2013
2059
|
}, {
|
|
@@ -2019,7 +2065,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2019
2065
|
}
|
|
2020
2066
|
|
|
2021
2067
|
/**
|
|
2022
|
-
* Set environment variables
|
|
2068
|
+
* Set project environment variables
|
|
2069
|
+
* 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.
|
|
2023
2070
|
* @param {String} projectOrProductUID
|
|
2024
2071
|
* @param {Object} opts Optional parameters
|
|
2025
2072
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2048,7 +2095,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2048
2095
|
}
|
|
2049
2096
|
|
|
2050
2097
|
/**
|
|
2051
|
-
* Set environment variables
|
|
2098
|
+
* Set project environment variables
|
|
2099
|
+
* 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.
|
|
2052
2100
|
* @param {String} projectOrProductUID
|
|
2053
2101
|
* @param {Object} opts Optional parameters
|
|
2054
2102
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2063,8 +2111,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2063
2111
|
}
|
|
2064
2112
|
|
|
2065
2113
|
/**
|
|
2066
|
-
* Update host firmware
|
|
2067
|
-
* 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.
|
|
2114
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2068
2115
|
* @param {String} projectOrProductUID
|
|
2069
2116
|
* @param {module:model/String} firmwareType
|
|
2070
2117
|
* @param {String} filename
|
|
@@ -2107,8 +2154,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2107
2154
|
}
|
|
2108
2155
|
|
|
2109
2156
|
/**
|
|
2110
|
-
* Update host firmware
|
|
2111
|
-
* 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.
|
|
2157
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2112
2158
|
* @param {String} projectOrProductUID
|
|
2113
2159
|
* @param {module:model/String} firmwareType
|
|
2114
2160
|
* @param {String} filename
|
|
@@ -2124,10 +2170,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2124
2170
|
}
|
|
2125
2171
|
|
|
2126
2172
|
/**
|
|
2127
|
-
* Update
|
|
2173
|
+
* Update a fleet
|
|
2174
|
+
* 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.
|
|
2128
2175
|
* @param {String} projectOrProductUID
|
|
2129
2176
|
* @param {String} fleetUID
|
|
2130
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2177
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2131
2178
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2132
2179
|
*/
|
|
2133
2180
|
}, {
|
|
@@ -2161,10 +2208,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2161
2208
|
}
|
|
2162
2209
|
|
|
2163
2210
|
/**
|
|
2164
|
-
* Update
|
|
2211
|
+
* Update a fleet
|
|
2212
|
+
* 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.
|
|
2165
2213
|
* @param {String} projectOrProductUID
|
|
2166
2214
|
* @param {String} fleetUID
|
|
2167
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2215
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2168
2216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2169
2217
|
*/
|
|
2170
2218
|
}, {
|
|
@@ -2176,9 +2224,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2176
2224
|
}
|
|
2177
2225
|
|
|
2178
2226
|
/**
|
|
2179
|
-
* Update
|
|
2227
|
+
* Update a project secret
|
|
2228
|
+
* 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.
|
|
2180
2229
|
* @param {String} projectOrProductUID
|
|
2181
|
-
* @param {String} secretName
|
|
2230
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2182
2231
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2183
2232
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2184
2233
|
*/
|
|
@@ -2213,9 +2262,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2213
2262
|
}
|
|
2214
2263
|
|
|
2215
2264
|
/**
|
|
2216
|
-
* Update
|
|
2265
|
+
* Update a project secret
|
|
2266
|
+
* 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.
|
|
2217
2267
|
* @param {String} projectOrProductUID
|
|
2218
|
-
* @param {String} secretName
|
|
2268
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2219
2269
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2220
2270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2221
2271
|
*/
|
|
@@ -2228,11 +2278,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2228
2278
|
}
|
|
2229
2279
|
|
|
2230
2280
|
/**
|
|
2231
|
-
* Upload firmware
|
|
2232
|
-
* 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.
|
|
2281
|
+
* Upload firmware binary
|
|
2233
2282
|
* @param {String} projectOrProductUID
|
|
2234
|
-
* @param {module:model/String} firmwareType
|
|
2235
|
-
* @param {String} filename
|
|
2283
|
+
* @param {module:model/String} firmwareType
|
|
2284
|
+
* @param {String} filename
|
|
2236
2285
|
* @param {File} body contents of the firmware binary
|
|
2237
2286
|
* @param {Object} opts Optional parameters
|
|
2238
2287
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2279,11 +2328,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2279
2328
|
}
|
|
2280
2329
|
|
|
2281
2330
|
/**
|
|
2282
|
-
* Upload firmware
|
|
2283
|
-
* 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.
|
|
2331
|
+
* Upload firmware binary
|
|
2284
2332
|
* @param {String} projectOrProductUID
|
|
2285
|
-
* @param {module:model/String} firmwareType
|
|
2286
|
-
* @param {String} filename
|
|
2333
|
+
* @param {module:model/String} firmwareType
|
|
2334
|
+
* @param {String} filename
|
|
2287
2335
|
* @param {File} body contents of the firmware binary
|
|
2288
2336
|
* @param {Object} opts Optional parameters
|
|
2289
2337
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|