@blues-inc/notehub-js 6.7.0-beta.64 → 6.7.0-beta.66
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 +66 -66
- 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 +177 -115
- 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 +165 -97
- 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 +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +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 +2 -2
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +27 -8
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -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 +7 -4
- 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 +13 -7
- 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 +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +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 +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +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 +2 -2
- 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 +1 -1
- 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.66
|
|
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
|
}, {
|
|
@@ -448,7 +462,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
462
|
}
|
|
449
463
|
|
|
450
464
|
/**
|
|
451
|
-
* Delete
|
|
465
|
+
* Delete a fleet
|
|
466
|
+
* Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
|
|
452
467
|
* @param {String} projectOrProductUID
|
|
453
468
|
* @param {String} fleetUID
|
|
454
469
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -480,7 +495,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
495
|
}
|
|
481
496
|
|
|
482
497
|
/**
|
|
483
|
-
* Delete
|
|
498
|
+
* Delete a fleet
|
|
499
|
+
* Delete a fleet and remove it from all its devices. The devices stay in the project; the fleet's environment variables are deleted. To remove one device from a fleet, use `DeleteDeviceFromFleets`. Requires the Owner or Developer role. Returns 400 if the fleet does not exist, including on a retry.
|
|
484
500
|
* @param {String} projectOrProductUID
|
|
485
501
|
* @param {String} fleetUID
|
|
486
502
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -494,10 +510,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
494
510
|
}
|
|
495
511
|
|
|
496
512
|
/**
|
|
497
|
-
* Delete
|
|
513
|
+
* Delete a fleet environment variable
|
|
514
|
+
* Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
|
|
498
515
|
* @param {String} projectOrProductUID
|
|
499
516
|
* @param {String} fleetUID
|
|
500
|
-
* @param {String} key
|
|
517
|
+
* @param {String} key Name of the environment variable to delete.
|
|
501
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
502
519
|
*/
|
|
503
520
|
}, {
|
|
@@ -532,10 +549,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
532
549
|
}
|
|
533
550
|
|
|
534
551
|
/**
|
|
535
|
-
* Delete
|
|
552
|
+
* Delete a fleet environment variable
|
|
553
|
+
* Delete one fleet environment variable and return the ones left. Requires the Owner or Developer role. Returns 404 if the fleet or the variable doesn't exist.
|
|
536
554
|
* @param {String} projectOrProductUID
|
|
537
555
|
* @param {String} fleetUID
|
|
538
|
-
* @param {String} key
|
|
556
|
+
* @param {String} key Name of the environment variable to delete.
|
|
539
557
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
540
558
|
*/
|
|
541
559
|
}, {
|
|
@@ -548,6 +566,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
548
566
|
|
|
549
567
|
/**
|
|
550
568
|
* Delete a product
|
|
569
|
+
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
551
570
|
* @param {String} projectOrProductUID
|
|
552
571
|
* @param {String} productUID
|
|
553
572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -580,6 +599,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
580
599
|
|
|
581
600
|
/**
|
|
582
601
|
* Delete a product
|
|
602
|
+
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
583
603
|
* @param {String} projectOrProductUID
|
|
584
604
|
* @param {String} productUID
|
|
585
605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -593,7 +613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
593
613
|
}
|
|
594
614
|
|
|
595
615
|
/**
|
|
596
|
-
* Delete a
|
|
616
|
+
* Delete a project
|
|
617
|
+
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
597
618
|
* @param {String} projectOrProductUID
|
|
598
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
599
620
|
*/
|
|
@@ -619,7 +640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
619
640
|
}
|
|
620
641
|
|
|
621
642
|
/**
|
|
622
|
-
* Delete a
|
|
643
|
+
* Delete a project
|
|
644
|
+
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
623
645
|
* @param {String} projectOrProductUID
|
|
624
646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
625
647
|
*/
|
|
@@ -632,9 +654,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
632
654
|
}
|
|
633
655
|
|
|
634
656
|
/**
|
|
635
|
-
* Delete
|
|
657
|
+
* Delete a project environment variable
|
|
658
|
+
* Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
|
|
636
659
|
* @param {String} projectOrProductUID
|
|
637
|
-
* @param {String} key
|
|
660
|
+
* @param {String} key Name of the environment variable to delete.
|
|
638
661
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
639
662
|
*/
|
|
640
663
|
}, {
|
|
@@ -664,9 +687,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
664
687
|
}
|
|
665
688
|
|
|
666
689
|
/**
|
|
667
|
-
* Delete
|
|
690
|
+
* Delete a project environment variable
|
|
691
|
+
* Delete one project environment variable and return the ones left. Deleting a variable that doesn't exist still succeeds. Requires the Owner or Developer role.
|
|
668
692
|
* @param {String} projectOrProductUID
|
|
669
|
-
* @param {String} key
|
|
693
|
+
* @param {String} key Name of the environment variable to delete.
|
|
670
694
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
671
695
|
*/
|
|
672
696
|
}, {
|
|
@@ -678,9 +702,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
678
702
|
}
|
|
679
703
|
|
|
680
704
|
/**
|
|
681
|
-
* Delete a project secret
|
|
705
|
+
* Delete a project secret
|
|
706
|
+
* Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
682
707
|
* @param {String} projectOrProductUID
|
|
683
|
-
* @param {String} secretName
|
|
708
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
684
709
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
685
710
|
*/
|
|
686
711
|
}, {
|
|
@@ -710,9 +735,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
710
735
|
}
|
|
711
736
|
|
|
712
737
|
/**
|
|
713
|
-
* Delete a project secret
|
|
738
|
+
* Delete a project secret
|
|
739
|
+
* Delete a project secret. Routes and alerts that still reference it can no longer resolve it. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
714
740
|
* @param {String} projectOrProductUID
|
|
715
|
-
* @param {String} secretName
|
|
741
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
716
742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
717
743
|
*/
|
|
718
744
|
}, {
|
|
@@ -724,7 +750,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
724
750
|
}
|
|
725
751
|
|
|
726
752
|
/**
|
|
727
|
-
* Disable the
|
|
753
|
+
* Disable the global event transformation
|
|
754
|
+
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
728
755
|
* @param {String} projectOrProductUID
|
|
729
756
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
730
757
|
*/
|
|
@@ -750,7 +777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
750
777
|
}
|
|
751
778
|
|
|
752
779
|
/**
|
|
753
|
-
* Disable the
|
|
780
|
+
* Disable the global event transformation
|
|
781
|
+
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
754
782
|
* @param {String} projectOrProductUID
|
|
755
783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
756
784
|
*/
|
|
@@ -818,7 +846,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
818
846
|
}
|
|
819
847
|
|
|
820
848
|
/**
|
|
821
|
-
* Enable the
|
|
849
|
+
* Enable the global event transformation
|
|
850
|
+
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
822
851
|
* @param {String} projectOrProductUID
|
|
823
852
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
824
853
|
*/
|
|
@@ -844,7 +873,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
844
873
|
}
|
|
845
874
|
|
|
846
875
|
/**
|
|
847
|
-
* Enable the
|
|
876
|
+
* Enable the global event transformation
|
|
877
|
+
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
848
878
|
* @param {String} projectOrProductUID
|
|
849
879
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
850
880
|
*/
|
|
@@ -858,7 +888,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
858
888
|
|
|
859
889
|
/**
|
|
860
890
|
* Get AWS role configuration for role-based authentication
|
|
861
|
-
*
|
|
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.
|
|
862
892
|
* @param {String} projectOrProductUID
|
|
863
893
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
864
894
|
*/
|
|
@@ -885,7 +915,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
885
915
|
|
|
886
916
|
/**
|
|
887
917
|
* Get AWS role configuration for role-based authentication
|
|
888
|
-
*
|
|
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.
|
|
889
919
|
* @param {String} projectOrProductUID
|
|
890
920
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
891
921
|
*/
|
|
@@ -1008,7 +1038,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1008
1038
|
}
|
|
1009
1039
|
|
|
1010
1040
|
/**
|
|
1011
|
-
*
|
|
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.
|
|
1012
1043
|
* @param {String} projectOrProductUID
|
|
1013
1044
|
* @param {String} deviceUID
|
|
1014
1045
|
* @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 +1071,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1040
1071
|
}
|
|
1041
1072
|
|
|
1042
1073
|
/**
|
|
1043
|
-
*
|
|
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.
|
|
1044
1076
|
* @param {String} projectOrProductUID
|
|
1045
1077
|
* @param {String} deviceUID
|
|
1046
1078
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1314,7 +1346,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1314
1346
|
}
|
|
1315
1347
|
|
|
1316
1348
|
/**
|
|
1317
|
-
* Get
|
|
1349
|
+
* Get a fleet
|
|
1350
|
+
* Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
|
|
1318
1351
|
* @param {String} projectOrProductUID
|
|
1319
1352
|
* @param {String} fleetUID
|
|
1320
1353
|
* @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 +1379,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1379
|
}
|
|
1347
1380
|
|
|
1348
1381
|
/**
|
|
1349
|
-
* Get
|
|
1382
|
+
* Get a fleet
|
|
1383
|
+
* Get one fleet's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Returns 404 if the fleet doesn't exist.
|
|
1350
1384
|
* @param {String} projectOrProductUID
|
|
1351
1385
|
* @param {String} fleetUID
|
|
1352
1386
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1360,7 +1394,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1360
1394
|
}
|
|
1361
1395
|
|
|
1362
1396
|
/**
|
|
1363
|
-
* Get environment
|
|
1397
|
+
* Get a fleet's environment hierarchy
|
|
1398
|
+
* Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
|
|
1364
1399
|
* @param {String} projectOrProductUID
|
|
1365
1400
|
* @param {String} fleetUID
|
|
1366
1401
|
* @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 +1427,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1392
1427
|
}
|
|
1393
1428
|
|
|
1394
1429
|
/**
|
|
1395
|
-
* Get environment
|
|
1430
|
+
* Get a fleet's environment hierarchy
|
|
1431
|
+
* Get a fleet's environment variables and the project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. Returns 500 if the fleet doesn't exist.
|
|
1396
1432
|
* @param {String} projectOrProductUID
|
|
1397
1433
|
* @param {String} fleetUID
|
|
1398
1434
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1406,7 +1442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1406
1442
|
}
|
|
1407
1443
|
|
|
1408
1444
|
/**
|
|
1409
|
-
* Get environment variables
|
|
1445
|
+
* Get fleet environment variables
|
|
1446
|
+
* Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
|
|
1410
1447
|
* @param {String} projectOrProductUID
|
|
1411
1448
|
* @param {String} fleetUID
|
|
1412
1449
|
* @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 +1475,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1438
1475
|
}
|
|
1439
1476
|
|
|
1440
1477
|
/**
|
|
1441
|
-
* Get environment variables
|
|
1478
|
+
* Get fleet environment variables
|
|
1479
|
+
* Get the environment variables set on a fleet, with their notes. They override project variables, and device variables override them. Returns 404 if the fleet doesn't exist.
|
|
1442
1480
|
* @param {String} projectOrProductUID
|
|
1443
1481
|
* @param {String} fleetUID
|
|
1444
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1452,7 +1490,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1452
1490
|
}
|
|
1453
1491
|
|
|
1454
1492
|
/**
|
|
1455
|
-
*
|
|
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.
|
|
1456
1495
|
* @param {String} projectOrProductUID
|
|
1457
1496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1458
1497
|
*/
|
|
@@ -1478,7 +1517,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1478
1517
|
}
|
|
1479
1518
|
|
|
1480
1519
|
/**
|
|
1481
|
-
*
|
|
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.
|
|
1482
1522
|
* @param {String} projectOrProductUID
|
|
1483
1523
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1484
1524
|
*/
|
|
@@ -1491,7 +1531,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1531
|
}
|
|
1492
1532
|
|
|
1493
1533
|
/**
|
|
1494
|
-
*
|
|
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.
|
|
1495
1536
|
* @param {String} projectOrProductUID
|
|
1496
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
|
|
1497
1538
|
*/
|
|
@@ -1517,7 +1558,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1517
1558
|
}
|
|
1518
1559
|
|
|
1519
1560
|
/**
|
|
1520
|
-
*
|
|
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.
|
|
1521
1563
|
* @param {String} projectOrProductUID
|
|
1522
1564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1523
1565
|
*/
|
|
@@ -1530,7 +1572,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1530
1572
|
}
|
|
1531
1573
|
|
|
1532
1574
|
/**
|
|
1533
|
-
*
|
|
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.
|
|
1534
1577
|
* @param {String} projectOrProductUID
|
|
1535
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1536
1579
|
*/
|
|
@@ -1556,7 +1599,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1556
1599
|
}
|
|
1557
1600
|
|
|
1558
1601
|
/**
|
|
1559
|
-
*
|
|
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.
|
|
1560
1604
|
* @param {String} projectOrProductUID
|
|
1561
1605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1562
1606
|
*/
|
|
@@ -1569,7 +1613,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1569
1613
|
}
|
|
1570
1614
|
|
|
1571
1615
|
/**
|
|
1572
|
-
* Get a
|
|
1616
|
+
* Get a project
|
|
1617
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1573
1618
|
* @param {String} projectOrProductUID
|
|
1574
1619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1575
1620
|
*/
|
|
@@ -1595,7 +1640,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1595
1640
|
}
|
|
1596
1641
|
|
|
1597
1642
|
/**
|
|
1598
|
-
* Get a
|
|
1643
|
+
* Get a project
|
|
1644
|
+
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1599
1645
|
* @param {String} projectOrProductUID
|
|
1600
1646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1601
1647
|
*/
|
|
@@ -1608,8 +1654,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1608
1654
|
}
|
|
1609
1655
|
|
|
1610
1656
|
/**
|
|
1611
|
-
* Get
|
|
1612
|
-
*
|
|
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.
|
|
1613
1660
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1614
1661
|
*/
|
|
1615
1662
|
}, {
|
|
@@ -1634,8 +1681,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1634
1681
|
}
|
|
1635
1682
|
|
|
1636
1683
|
/**
|
|
1637
|
-
* Get
|
|
1638
|
-
*
|
|
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.
|
|
1639
1687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1640
1688
|
*/
|
|
1641
1689
|
}, {
|
|
@@ -1647,7 +1695,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1647
1695
|
}
|
|
1648
1696
|
|
|
1649
1697
|
/**
|
|
1650
|
-
* Get environment
|
|
1698
|
+
* Get the project environment hierarchy
|
|
1699
|
+
* Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
|
|
1651
1700
|
* @param {String} projectOrProductUID
|
|
1652
1701
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1653
1702
|
*/
|
|
@@ -1673,7 +1722,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1673
1722
|
}
|
|
1674
1723
|
|
|
1675
1724
|
/**
|
|
1676
|
-
* Get environment
|
|
1725
|
+
* Get the project environment hierarchy
|
|
1726
|
+
* Get the project's environment variables as a one-node environment hierarchy tree. The fleet and device hierarchy operations use the same format; for plain key/value pairs, use `GetProjectEnvironmentVariables`.
|
|
1677
1727
|
* @param {String} projectOrProductUID
|
|
1678
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1679
1729
|
*/
|
|
@@ -1686,7 +1736,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1686
1736
|
}
|
|
1687
1737
|
|
|
1688
1738
|
/**
|
|
1689
|
-
* Get environment variables
|
|
1739
|
+
* Get project environment variables
|
|
1740
|
+
* Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
|
|
1690
1741
|
* @param {String} projectOrProductUID
|
|
1691
1742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1692
1743
|
*/
|
|
@@ -1712,7 +1763,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1712
1763
|
}
|
|
1713
1764
|
|
|
1714
1765
|
/**
|
|
1715
|
-
* Get environment variables
|
|
1766
|
+
* Get project environment variables
|
|
1767
|
+
* Get the environment variables set on the project, with their notes. Fleet and device variables override these; for what a device actually sees, use `GetDeviceEnvironmentVariables`.
|
|
1716
1768
|
* @param {String} projectOrProductUID
|
|
1717
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1718
1770
|
*/
|
|
@@ -1725,7 +1777,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1725
1777
|
}
|
|
1726
1778
|
|
|
1727
1779
|
/**
|
|
1728
|
-
*
|
|
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.
|
|
1729
1782
|
* @param {String} projectOrProductUID
|
|
1730
1783
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1731
1784
|
*/
|
|
@@ -1751,7 +1804,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1751
1804
|
}
|
|
1752
1805
|
|
|
1753
1806
|
/**
|
|
1754
|
-
*
|
|
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.
|
|
1755
1809
|
* @param {String} projectOrProductUID
|
|
1756
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1757
1811
|
*/
|
|
@@ -1764,7 +1818,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1764
1818
|
}
|
|
1765
1819
|
|
|
1766
1820
|
/**
|
|
1767
|
-
*
|
|
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.
|
|
1768
1823
|
* @param {String} projectOrProductUID
|
|
1769
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1770
1825
|
*/
|
|
@@ -1790,7 +1845,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1790
1845
|
}
|
|
1791
1846
|
|
|
1792
1847
|
/**
|
|
1793
|
-
*
|
|
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.
|
|
1794
1850
|
* @param {String} projectOrProductUID
|
|
1795
1851
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1796
1852
|
*/
|
|
@@ -1803,7 +1859,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1803
1859
|
}
|
|
1804
1860
|
|
|
1805
1861
|
/**
|
|
1806
|
-
*
|
|
1862
|
+
* List projects
|
|
1863
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1807
1864
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1808
1865
|
*/
|
|
1809
1866
|
}, {
|
|
@@ -1822,7 +1879,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1822
1879
|
}
|
|
1823
1880
|
|
|
1824
1881
|
/**
|
|
1825
|
-
*
|
|
1882
|
+
* List projects
|
|
1883
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1826
1884
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1827
1885
|
*/
|
|
1828
1886
|
}, {
|
|
@@ -1922,10 +1980,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1922
1980
|
}
|
|
1923
1981
|
|
|
1924
1982
|
/**
|
|
1925
|
-
* Set environment variables
|
|
1983
|
+
* Set fleet environment variables
|
|
1984
|
+
* Add or change a fleet's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
|
|
1926
1985
|
* @param {String} projectOrProductUID
|
|
1927
1986
|
* @param {String} fleetUID
|
|
1928
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1987
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1929
1988
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1930
1989
|
*/
|
|
1931
1990
|
}, {
|
|
@@ -1959,10 +2018,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1959
2018
|
}
|
|
1960
2019
|
|
|
1961
2020
|
/**
|
|
1962
|
-
* Set environment variables
|
|
2021
|
+
* Set fleet environment variables
|
|
2022
|
+
* Add or change a fleet's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 404 if the fleet doesn't exist, and 400 if a note's key isn't a variable.
|
|
1963
2023
|
* @param {String} projectOrProductUID
|
|
1964
2024
|
* @param {String} fleetUID
|
|
1965
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
2025
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1966
2026
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1967
2027
|
*/
|
|
1968
2028
|
}, {
|
|
@@ -1974,9 +2034,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1974
2034
|
}
|
|
1975
2035
|
|
|
1976
2036
|
/**
|
|
1977
|
-
* Set the
|
|
2037
|
+
* Set the global event transformation
|
|
2038
|
+
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
1978
2039
|
* @param {String} projectOrProductUID
|
|
1979
|
-
* @param {String} body JSONata expression
|
|
2040
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1980
2041
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1981
2042
|
*/
|
|
1982
2043
|
}, {
|
|
@@ -2005,9 +2066,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2005
2066
|
}
|
|
2006
2067
|
|
|
2007
2068
|
/**
|
|
2008
|
-
* Set the
|
|
2069
|
+
* Set the global event transformation
|
|
2070
|
+
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
2009
2071
|
* @param {String} projectOrProductUID
|
|
2010
|
-
* @param {String} body JSONata expression
|
|
2072
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
2011
2073
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
2012
2074
|
*/
|
|
2013
2075
|
}, {
|
|
@@ -2019,7 +2081,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2019
2081
|
}
|
|
2020
2082
|
|
|
2021
2083
|
/**
|
|
2022
|
-
* Set environment variables
|
|
2084
|
+
* Set project environment variables
|
|
2085
|
+
* Add or change project environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
2023
2086
|
* @param {String} projectOrProductUID
|
|
2024
2087
|
* @param {Object} opts Optional parameters
|
|
2025
2088
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2048,7 +2111,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2048
2111
|
}
|
|
2049
2112
|
|
|
2050
2113
|
/**
|
|
2051
|
-
* Set environment variables
|
|
2114
|
+
* Set project environment variables
|
|
2115
|
+
* Add or change project environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
2052
2116
|
* @param {String} projectOrProductUID
|
|
2053
2117
|
* @param {Object} opts Optional parameters
|
|
2054
2118
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2124,10 +2188,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2124
2188
|
}
|
|
2125
2189
|
|
|
2126
2190
|
/**
|
|
2127
|
-
* Update
|
|
2191
|
+
* Update a fleet
|
|
2192
|
+
* Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
|
|
2128
2193
|
* @param {String} projectOrProductUID
|
|
2129
2194
|
* @param {String} fleetUID
|
|
2130
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2195
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2131
2196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2132
2197
|
*/
|
|
2133
2198
|
}, {
|
|
@@ -2161,10 +2226,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2161
2226
|
}
|
|
2162
2227
|
|
|
2163
2228
|
/**
|
|
2164
|
-
* Update
|
|
2229
|
+
* Update a fleet
|
|
2230
|
+
* Change a fleet's label, smart rule, watchdog or connectivity assurance, or add and remove devices. Always send `smart_rule_enabled`; leaving it out turns the smart rule off. Empty `label` or `smart_rule` keeps the current value; `-` clears `smart_rule`. Requires the Owner or Developer role. Returns 400 for an unknown fleet or `label` of `-`, and for a bad DeviceUID after saving the other changes.
|
|
2165
2231
|
* @param {String} projectOrProductUID
|
|
2166
2232
|
* @param {String} fleetUID
|
|
2167
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2233
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest The fields to change. Fields left out keep their values, except `smart_rule_enabled`.
|
|
2168
2234
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2169
2235
|
*/
|
|
2170
2236
|
}, {
|
|
@@ -2176,9 +2242,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2176
2242
|
}
|
|
2177
2243
|
|
|
2178
2244
|
/**
|
|
2179
|
-
* Update
|
|
2245
|
+
* Update a project secret
|
|
2246
|
+
* Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
2180
2247
|
* @param {String} projectOrProductUID
|
|
2181
|
-
* @param {String} secretName
|
|
2248
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2182
2249
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2183
2250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2184
2251
|
*/
|
|
@@ -2213,9 +2280,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2213
2280
|
}
|
|
2214
2281
|
|
|
2215
2282
|
/**
|
|
2216
|
-
* Update
|
|
2283
|
+
* Update a project secret
|
|
2284
|
+
* Replace the value of an existing project secret. Routes and alerts that reference it use the new value from then on. Requires the Owner or Developer role. Returns 404 if the secret doesn't exist.
|
|
2217
2285
|
* @param {String} projectOrProductUID
|
|
2218
|
-
* @param {String} secretName
|
|
2286
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2219
2287
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2220
2288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2221
2289
|
*/
|