@blues-inc/notehub-js 6.7.0-beta.63 → 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 +44 -44
- 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 +45 -51
- 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 +35 -47
- 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 -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 +1 -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 +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 +3 -7
- package/dist/model/NotehubRouteSummary.js +1 -6
- 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 +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +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 +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.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
|
}, {
|
|
@@ -446,7 +460,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
460
|
}
|
|
447
461
|
|
|
448
462
|
/**
|
|
449
|
-
* 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.
|
|
450
465
|
* @param {String} projectOrProductUID
|
|
451
466
|
* @param {String} fleetUID
|
|
452
467
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -478,7 +493,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
478
493
|
}
|
|
479
494
|
|
|
480
495
|
/**
|
|
481
|
-
* 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.
|
|
482
498
|
* @param {String} projectOrProductUID
|
|
483
499
|
* @param {String} fleetUID
|
|
484
500
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -492,10 +508,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
508
|
}
|
|
493
509
|
|
|
494
510
|
/**
|
|
495
|
-
* 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.
|
|
496
513
|
* @param {String} projectOrProductUID
|
|
497
514
|
* @param {String} fleetUID
|
|
498
|
-
* @param {String} key
|
|
515
|
+
* @param {String} key Name of the environment variable to delete.
|
|
499
516
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
500
517
|
*/
|
|
501
518
|
}, {
|
|
@@ -530,10 +547,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
530
547
|
}
|
|
531
548
|
|
|
532
549
|
/**
|
|
533
|
-
* 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.
|
|
534
552
|
* @param {String} projectOrProductUID
|
|
535
553
|
* @param {String} fleetUID
|
|
536
|
-
* @param {String} key
|
|
554
|
+
* @param {String} key Name of the environment variable to delete.
|
|
537
555
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
538
556
|
*/
|
|
539
557
|
}, {
|
|
@@ -546,6 +564,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
564
|
|
|
547
565
|
/**
|
|
548
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.
|
|
549
568
|
* @param {String} projectOrProductUID
|
|
550
569
|
* @param {String} productUID
|
|
551
570
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -578,6 +597,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
597
|
|
|
579
598
|
/**
|
|
580
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.
|
|
581
601
|
* @param {String} projectOrProductUID
|
|
582
602
|
* @param {String} productUID
|
|
583
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -591,7 +611,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
611
|
}
|
|
592
612
|
|
|
593
613
|
/**
|
|
594
|
-
* 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.
|
|
595
616
|
* @param {String} projectOrProductUID
|
|
596
617
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
597
618
|
*/
|
|
@@ -617,7 +638,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
617
638
|
}
|
|
618
639
|
|
|
619
640
|
/**
|
|
620
|
-
* 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.
|
|
621
643
|
* @param {String} projectOrProductUID
|
|
622
644
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
623
645
|
*/
|
|
@@ -630,9 +652,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
630
652
|
}
|
|
631
653
|
|
|
632
654
|
/**
|
|
633
|
-
* 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.
|
|
634
657
|
* @param {String} projectOrProductUID
|
|
635
|
-
* @param {String} key
|
|
658
|
+
* @param {String} key Name of the environment variable to delete.
|
|
636
659
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
637
660
|
*/
|
|
638
661
|
}, {
|
|
@@ -662,9 +685,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
662
685
|
}
|
|
663
686
|
|
|
664
687
|
/**
|
|
665
|
-
* 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.
|
|
666
690
|
* @param {String} projectOrProductUID
|
|
667
|
-
* @param {String} key
|
|
691
|
+
* @param {String} key Name of the environment variable to delete.
|
|
668
692
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
669
693
|
*/
|
|
670
694
|
}, {
|
|
@@ -676,9 +700,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
700
|
}
|
|
677
701
|
|
|
678
702
|
/**
|
|
679
|
-
* 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.
|
|
680
705
|
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} secretName
|
|
706
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
682
707
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
683
708
|
*/
|
|
684
709
|
}, {
|
|
@@ -708,9 +733,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
708
733
|
}
|
|
709
734
|
|
|
710
735
|
/**
|
|
711
|
-
* 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.
|
|
712
738
|
* @param {String} projectOrProductUID
|
|
713
|
-
* @param {String} secretName
|
|
739
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
714
740
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
715
741
|
*/
|
|
716
742
|
}, {
|
|
@@ -722,7 +748,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
722
748
|
}
|
|
723
749
|
|
|
724
750
|
/**
|
|
725
|
-
* 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.
|
|
726
753
|
* @param {String} projectOrProductUID
|
|
727
754
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
728
755
|
*/
|
|
@@ -748,7 +775,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
748
775
|
}
|
|
749
776
|
|
|
750
777
|
/**
|
|
751
|
-
* 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.
|
|
752
780
|
* @param {String} projectOrProductUID
|
|
753
781
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
754
782
|
*/
|
|
@@ -814,7 +842,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
814
842
|
}
|
|
815
843
|
|
|
816
844
|
/**
|
|
817
|
-
* 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.
|
|
818
847
|
* @param {String} projectOrProductUID
|
|
819
848
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
820
849
|
*/
|
|
@@ -840,7 +869,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
869
|
}
|
|
841
870
|
|
|
842
871
|
/**
|
|
843
|
-
* 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.
|
|
844
874
|
* @param {String} projectOrProductUID
|
|
845
875
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
846
876
|
*/
|
|
@@ -854,7 +884,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
854
884
|
|
|
855
885
|
/**
|
|
856
886
|
* Get AWS role configuration for role-based authentication
|
|
857
|
-
*
|
|
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.
|
|
858
888
|
* @param {String} projectOrProductUID
|
|
859
889
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
860
890
|
*/
|
|
@@ -881,7 +911,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
881
911
|
|
|
882
912
|
/**
|
|
883
913
|
* Get AWS role configuration for role-based authentication
|
|
884
|
-
*
|
|
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.
|
|
885
915
|
* @param {String} projectOrProductUID
|
|
886
916
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
887
917
|
*/
|
|
@@ -1000,7 +1030,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
1030
|
}
|
|
1001
1031
|
|
|
1002
1032
|
/**
|
|
1003
|
-
*
|
|
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.
|
|
1004
1035
|
* @param {String} projectOrProductUID
|
|
1005
1036
|
* @param {String} deviceUID
|
|
1006
1037
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
@@ -1032,7 +1063,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1032
1063
|
}
|
|
1033
1064
|
|
|
1034
1065
|
/**
|
|
1035
|
-
*
|
|
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.
|
|
1036
1068
|
* @param {String} projectOrProductUID
|
|
1037
1069
|
* @param {String} deviceUID
|
|
1038
1070
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1300,7 +1332,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1332
|
}
|
|
1301
1333
|
|
|
1302
1334
|
/**
|
|
1303
|
-
* 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.
|
|
1304
1337
|
* @param {String} projectOrProductUID
|
|
1305
1338
|
* @param {String} fleetUID
|
|
1306
1339
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
@@ -1332,7 +1365,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1332
1365
|
}
|
|
1333
1366
|
|
|
1334
1367
|
/**
|
|
1335
|
-
* 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.
|
|
1336
1370
|
* @param {String} projectOrProductUID
|
|
1337
1371
|
* @param {String} fleetUID
|
|
1338
1372
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1346,7 +1380,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1380
|
}
|
|
1347
1381
|
|
|
1348
1382
|
/**
|
|
1349
|
-
* 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.
|
|
1350
1385
|
* @param {String} projectOrProductUID
|
|
1351
1386
|
* @param {String} fleetUID
|
|
1352
1387
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -1378,7 +1413,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1413
|
}
|
|
1379
1414
|
|
|
1380
1415
|
/**
|
|
1381
|
-
* 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.
|
|
1382
1418
|
* @param {String} projectOrProductUID
|
|
1383
1419
|
* @param {String} fleetUID
|
|
1384
1420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1392,7 +1428,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1392
1428
|
}
|
|
1393
1429
|
|
|
1394
1430
|
/**
|
|
1395
|
-
* 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.
|
|
1396
1433
|
* @param {String} projectOrProductUID
|
|
1397
1434
|
* @param {String} fleetUID
|
|
1398
1435
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1424,7 +1461,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1424
1461
|
}
|
|
1425
1462
|
|
|
1426
1463
|
/**
|
|
1427
|
-
* 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.
|
|
1428
1466
|
* @param {String} projectOrProductUID
|
|
1429
1467
|
* @param {String} fleetUID
|
|
1430
1468
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1438,7 +1476,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1438
1476
|
}
|
|
1439
1477
|
|
|
1440
1478
|
/**
|
|
1441
|
-
*
|
|
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.
|
|
1442
1481
|
* @param {String} projectOrProductUID
|
|
1443
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1444
1483
|
*/
|
|
@@ -1464,7 +1503,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1464
1503
|
}
|
|
1465
1504
|
|
|
1466
1505
|
/**
|
|
1467
|
-
*
|
|
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.
|
|
1468
1508
|
* @param {String} projectOrProductUID
|
|
1469
1509
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1470
1510
|
*/
|
|
@@ -1477,7 +1517,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1477
1517
|
}
|
|
1478
1518
|
|
|
1479
1519
|
/**
|
|
1480
|
-
*
|
|
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.
|
|
1481
1522
|
* @param {String} projectOrProductUID
|
|
1482
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
|
|
1483
1524
|
*/
|
|
@@ -1503,7 +1544,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1503
1544
|
}
|
|
1504
1545
|
|
|
1505
1546
|
/**
|
|
1506
|
-
*
|
|
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.
|
|
1507
1549
|
* @param {String} projectOrProductUID
|
|
1508
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1509
1551
|
*/
|
|
@@ -1516,7 +1558,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1516
1558
|
}
|
|
1517
1559
|
|
|
1518
1560
|
/**
|
|
1519
|
-
*
|
|
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.
|
|
1520
1563
|
* @param {String} projectOrProductUID
|
|
1521
1564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1522
1565
|
*/
|
|
@@ -1542,7 +1585,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1542
1585
|
}
|
|
1543
1586
|
|
|
1544
1587
|
/**
|
|
1545
|
-
*
|
|
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.
|
|
1546
1590
|
* @param {String} projectOrProductUID
|
|
1547
1591
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1548
1592
|
*/
|
|
@@ -1555,7 +1599,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1555
1599
|
}
|
|
1556
1600
|
|
|
1557
1601
|
/**
|
|
1558
|
-
* 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.
|
|
1559
1604
|
* @param {String} projectOrProductUID
|
|
1560
1605
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1561
1606
|
*/
|
|
@@ -1581,7 +1626,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1581
1626
|
}
|
|
1582
1627
|
|
|
1583
1628
|
/**
|
|
1584
|
-
* 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.
|
|
1585
1631
|
* @param {String} projectOrProductUID
|
|
1586
1632
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1587
1633
|
*/
|
|
@@ -1594,8 +1640,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1594
1640
|
}
|
|
1595
1641
|
|
|
1596
1642
|
/**
|
|
1597
|
-
* Get
|
|
1598
|
-
*
|
|
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.
|
|
1599
1646
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1600
1647
|
*/
|
|
1601
1648
|
}, {
|
|
@@ -1620,8 +1667,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1620
1667
|
}
|
|
1621
1668
|
|
|
1622
1669
|
/**
|
|
1623
|
-
* Get
|
|
1624
|
-
*
|
|
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.
|
|
1625
1673
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1626
1674
|
*/
|
|
1627
1675
|
}, {
|
|
@@ -1633,7 +1681,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1633
1681
|
}
|
|
1634
1682
|
|
|
1635
1683
|
/**
|
|
1636
|
-
* 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`.
|
|
1637
1686
|
* @param {String} projectOrProductUID
|
|
1638
1687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1639
1688
|
*/
|
|
@@ -1659,7 +1708,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1659
1708
|
}
|
|
1660
1709
|
|
|
1661
1710
|
/**
|
|
1662
|
-
* 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`.
|
|
1663
1713
|
* @param {String} projectOrProductUID
|
|
1664
1714
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1665
1715
|
*/
|
|
@@ -1672,7 +1722,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1672
1722
|
}
|
|
1673
1723
|
|
|
1674
1724
|
/**
|
|
1675
|
-
* 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`.
|
|
1676
1727
|
* @param {String} projectOrProductUID
|
|
1677
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1678
1729
|
*/
|
|
@@ -1698,7 +1749,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1698
1749
|
}
|
|
1699
1750
|
|
|
1700
1751
|
/**
|
|
1701
|
-
* 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`.
|
|
1702
1754
|
* @param {String} projectOrProductUID
|
|
1703
1755
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1704
1756
|
*/
|
|
@@ -1711,7 +1763,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1711
1763
|
}
|
|
1712
1764
|
|
|
1713
1765
|
/**
|
|
1714
|
-
*
|
|
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.
|
|
1715
1768
|
* @param {String} projectOrProductUID
|
|
1716
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1717
1770
|
*/
|
|
@@ -1737,7 +1790,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1737
1790
|
}
|
|
1738
1791
|
|
|
1739
1792
|
/**
|
|
1740
|
-
*
|
|
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.
|
|
1741
1795
|
* @param {String} projectOrProductUID
|
|
1742
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1743
1797
|
*/
|
|
@@ -1750,7 +1804,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1750
1804
|
}
|
|
1751
1805
|
|
|
1752
1806
|
/**
|
|
1753
|
-
*
|
|
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.
|
|
1754
1809
|
* @param {String} projectOrProductUID
|
|
1755
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1756
1811
|
*/
|
|
@@ -1776,7 +1831,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1776
1831
|
}
|
|
1777
1832
|
|
|
1778
1833
|
/**
|
|
1779
|
-
*
|
|
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.
|
|
1780
1836
|
* @param {String} projectOrProductUID
|
|
1781
1837
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1782
1838
|
*/
|
|
@@ -1789,7 +1845,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1789
1845
|
}
|
|
1790
1846
|
|
|
1791
1847
|
/**
|
|
1792
|
-
*
|
|
1848
|
+
* List projects
|
|
1849
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1793
1850
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1794
1851
|
*/
|
|
1795
1852
|
}, {
|
|
@@ -1808,7 +1865,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1808
1865
|
}
|
|
1809
1866
|
|
|
1810
1867
|
/**
|
|
1811
|
-
*
|
|
1868
|
+
* List projects
|
|
1869
|
+
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1812
1870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1813
1871
|
*/
|
|
1814
1872
|
}, {
|
|
@@ -1906,10 +1964,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1906
1964
|
}
|
|
1907
1965
|
|
|
1908
1966
|
/**
|
|
1909
|
-
* 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.
|
|
1910
1969
|
* @param {String} projectOrProductUID
|
|
1911
1970
|
* @param {String} fleetUID
|
|
1912
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1971
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1913
1972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1914
1973
|
*/
|
|
1915
1974
|
}, {
|
|
@@ -1943,10 +2002,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1943
2002
|
}
|
|
1944
2003
|
|
|
1945
2004
|
/**
|
|
1946
|
-
* 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.
|
|
1947
2007
|
* @param {String} projectOrProductUID
|
|
1948
2008
|
* @param {String} fleetUID
|
|
1949
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
2009
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1950
2010
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1951
2011
|
*/
|
|
1952
2012
|
}, {
|
|
@@ -1958,9 +2018,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1958
2018
|
}
|
|
1959
2019
|
|
|
1960
2020
|
/**
|
|
1961
|
-
* 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.
|
|
1962
2023
|
* @param {String} projectOrProductUID
|
|
1963
|
-
* @param {String} body JSONata expression
|
|
2024
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1964
2025
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1965
2026
|
*/
|
|
1966
2027
|
}, {
|
|
@@ -1989,9 +2050,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1989
2050
|
}
|
|
1990
2051
|
|
|
1991
2052
|
/**
|
|
1992
|
-
* 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.
|
|
1993
2055
|
* @param {String} projectOrProductUID
|
|
1994
|
-
* @param {String} body JSONata expression
|
|
2056
|
+
* @param {String} body JSONata expression as plain text. An empty body clears the transformation.
|
|
1995
2057
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1996
2058
|
*/
|
|
1997
2059
|
}, {
|
|
@@ -2003,7 +2065,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2003
2065
|
}
|
|
2004
2066
|
|
|
2005
2067
|
/**
|
|
2006
|
-
* 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.
|
|
2007
2070
|
* @param {String} projectOrProductUID
|
|
2008
2071
|
* @param {Object} opts Optional parameters
|
|
2009
2072
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2032,7 +2095,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2032
2095
|
}
|
|
2033
2096
|
|
|
2034
2097
|
/**
|
|
2035
|
-
* 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.
|
|
2036
2100
|
* @param {String} projectOrProductUID
|
|
2037
2101
|
* @param {Object} opts Optional parameters
|
|
2038
2102
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2106,10 +2170,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2106
2170
|
}
|
|
2107
2171
|
|
|
2108
2172
|
/**
|
|
2109
|
-
* 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.
|
|
2110
2175
|
* @param {String} projectOrProductUID
|
|
2111
2176
|
* @param {String} fleetUID
|
|
2112
|
-
* @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`.
|
|
2113
2178
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2114
2179
|
*/
|
|
2115
2180
|
}, {
|
|
@@ -2143,10 +2208,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2143
2208
|
}
|
|
2144
2209
|
|
|
2145
2210
|
/**
|
|
2146
|
-
* 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.
|
|
2147
2213
|
* @param {String} projectOrProductUID
|
|
2148
2214
|
* @param {String} fleetUID
|
|
2149
|
-
* @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`.
|
|
2150
2216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2151
2217
|
*/
|
|
2152
2218
|
}, {
|
|
@@ -2158,9 +2224,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2158
2224
|
}
|
|
2159
2225
|
|
|
2160
2226
|
/**
|
|
2161
|
-
* 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.
|
|
2162
2229
|
* @param {String} projectOrProductUID
|
|
2163
|
-
* @param {String} secretName
|
|
2230
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2164
2231
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2165
2232
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2166
2233
|
*/
|
|
@@ -2195,9 +2262,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2195
2262
|
}
|
|
2196
2263
|
|
|
2197
2264
|
/**
|
|
2198
|
-
* 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.
|
|
2199
2267
|
* @param {String} projectOrProductUID
|
|
2200
|
-
* @param {String} secretName
|
|
2268
|
+
* @param {String} secretName Name of the secret, as listed by `GetProjectSecrets`.
|
|
2201
2269
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2202
2270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2203
2271
|
*/
|