@blues-inc/notehub-js 6.7.0-beta.72 → 6.7.0-beta.73
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 +125 -126
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +7 -5
- package/dist/api/AuthorizationApi.js +5 -5
- package/dist/api/DescriptionApi.js +33 -49
- package/dist/api/DeviceApi.js +115 -177
- package/dist/api/EventApi.js +45 -51
- package/dist/api/ExternalDevicesApi.js +13 -19
- package/dist/api/JobsApi.js +39 -57
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +11 -17
- package/dist/api/ProjectApi.js +149 -237
- package/dist/api/RouteApi.js +35 -47
- package/dist/api/SkillsApi.js +17 -17
- package/dist/api/UsageApi.js +49 -59
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +0 -7
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +11 -6
- package/dist/model/AlertDataInner.js +9 -4
- 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 -2
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +2 -3
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +3 -4
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +6 -7
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +1 -2
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +8 -27
- package/dist/model/DeviceDfuHistory.js +1 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -2
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -6
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +10 -11
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- 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 +1 -2
- package/dist/model/GetDevicePublicKey200Response.js +3 -5
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -3
- 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 +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +4 -7
- 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 +7 -13
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +4 -4
- 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 +1 -2
- package/dist/model/NotefileSchema.js +3 -5
- 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 +3 -5
- package/dist/model/Product.js +4 -8
- package/dist/model/Project.js +4 -7
- package/dist/model/ProjectMember.js +4 -5
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/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 +4 -6
- 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 +3 -3
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +3 -3
- 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 +6 -7
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +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/model/RepositoryRecord.js +0 -119
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.73
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
|
@@ -72,11 +72,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Add
|
|
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.
|
|
75
|
+
* Add Device to Fleets
|
|
77
76
|
* @param {String} projectOrProductUID
|
|
78
77
|
* @param {String} deviceUID
|
|
79
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
78
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
80
79
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
81
80
|
*/
|
|
82
81
|
return _createClass(ProjectApi, [{
|
|
@@ -110,11 +109,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
* Add
|
|
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.
|
|
112
|
+
* Add Device to Fleets
|
|
115
113
|
* @param {String} projectOrProductUID
|
|
116
114
|
* @param {String} deviceUID
|
|
117
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add the device to.
|
|
115
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
118
116
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
119
117
|
*/
|
|
120
118
|
}, {
|
|
@@ -126,10 +124,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
124
|
}
|
|
127
125
|
|
|
128
126
|
/**
|
|
129
|
-
* Clone a
|
|
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).
|
|
127
|
+
* Clone a Project
|
|
131
128
|
* @param {String} projectOrProductUID
|
|
132
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
129
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
133
130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
134
131
|
*/
|
|
135
132
|
}, {
|
|
@@ -158,10 +155,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
/**
|
|
161
|
-
* Clone a
|
|
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).
|
|
158
|
+
* Clone a Project
|
|
163
159
|
* @param {String} projectOrProductUID
|
|
164
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
160
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
165
161
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
166
162
|
*/
|
|
167
163
|
}, {
|
|
@@ -173,10 +169,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
173
169
|
}
|
|
174
170
|
|
|
175
171
|
/**
|
|
176
|
-
* Create
|
|
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.
|
|
172
|
+
* Create Fleet
|
|
178
173
|
* @param {String} projectOrProductUID
|
|
179
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
174
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
180
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
181
176
|
*/
|
|
182
177
|
}, {
|
|
@@ -205,10 +200,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
200
|
}
|
|
206
201
|
|
|
207
202
|
/**
|
|
208
|
-
* Create
|
|
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.
|
|
203
|
+
* Create Fleet
|
|
210
204
|
* @param {String} projectOrProductUID
|
|
211
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
205
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
212
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
213
207
|
*/
|
|
214
208
|
}, {
|
|
@@ -220,10 +214,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
220
214
|
}
|
|
221
215
|
|
|
222
216
|
/**
|
|
223
|
-
* Create a
|
|
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.
|
|
217
|
+
* Create Product within a Project
|
|
225
218
|
* @param {String} projectOrProductUID
|
|
226
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
219
|
+
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
227
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
228
221
|
*/
|
|
229
222
|
}, {
|
|
@@ -252,10 +245,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
245
|
}
|
|
253
246
|
|
|
254
247
|
/**
|
|
255
|
-
* Create a
|
|
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.
|
|
248
|
+
* Create Product within a Project
|
|
257
249
|
* @param {String} projectOrProductUID
|
|
258
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
250
|
+
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
259
251
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
260
252
|
*/
|
|
261
253
|
}, {
|
|
@@ -267,9 +259,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
259
|
}
|
|
268
260
|
|
|
269
261
|
/**
|
|
270
|
-
* Create a
|
|
271
|
-
*
|
|
272
|
-
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
262
|
+
* Create a Project
|
|
263
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
|
|
273
264
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
274
265
|
*/
|
|
275
266
|
}, {
|
|
@@ -292,9 +283,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
292
283
|
}
|
|
293
284
|
|
|
294
285
|
/**
|
|
295
|
-
* Create a
|
|
296
|
-
*
|
|
297
|
-
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
286
|
+
* Create a Project
|
|
287
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
|
|
298
288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
299
289
|
*/
|
|
300
290
|
}, {
|
|
@@ -306,8 +296,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
296
|
}
|
|
307
297
|
|
|
308
298
|
/**
|
|
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.
|
|
299
|
+
* Create a new project secret
|
|
311
300
|
* @param {String} projectOrProductUID
|
|
312
301
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
313
302
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
@@ -338,8 +327,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
338
327
|
}
|
|
339
328
|
|
|
340
329
|
/**
|
|
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.
|
|
330
|
+
* Create a new project secret
|
|
343
331
|
* @param {String} projectOrProductUID
|
|
344
332
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
345
333
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
@@ -353,11 +341,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
353
341
|
}
|
|
354
342
|
|
|
355
343
|
/**
|
|
356
|
-
* Remove
|
|
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.
|
|
344
|
+
* Remove Device from Fleets
|
|
358
345
|
* @param {String} projectOrProductUID
|
|
359
346
|
* @param {String} deviceUID
|
|
360
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device
|
|
347
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
361
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
362
349
|
*/
|
|
363
350
|
}, {
|
|
@@ -391,11 +378,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
391
378
|
}
|
|
392
379
|
|
|
393
380
|
/**
|
|
394
|
-
* Remove
|
|
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.
|
|
381
|
+
* Remove Device from Fleets
|
|
396
382
|
* @param {String} projectOrProductUID
|
|
397
383
|
* @param {String} deviceUID
|
|
398
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove the device
|
|
384
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
399
385
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
400
386
|
*/
|
|
401
387
|
}, {
|
|
@@ -407,8 +393,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
393
|
}
|
|
408
394
|
|
|
409
395
|
/**
|
|
410
|
-
* Delete host firmware
|
|
411
|
-
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
396
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
412
397
|
* @param {String} projectOrProductUID
|
|
413
398
|
* @param {module:model/String} firmwareType
|
|
414
399
|
* @param {String} filename
|
|
@@ -446,8 +431,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
431
|
}
|
|
447
432
|
|
|
448
433
|
/**
|
|
449
|
-
* Delete host firmware
|
|
450
|
-
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
434
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
451
435
|
* @param {String} projectOrProductUID
|
|
452
436
|
* @param {module:model/String} firmwareType
|
|
453
437
|
* @param {String} filename
|
|
@@ -462,8 +446,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
462
446
|
}
|
|
463
447
|
|
|
464
448
|
/**
|
|
465
|
-
* Delete
|
|
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.
|
|
449
|
+
* Delete Fleet
|
|
467
450
|
* @param {String} projectOrProductUID
|
|
468
451
|
* @param {String} fleetUID
|
|
469
452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -495,8 +478,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
495
478
|
}
|
|
496
479
|
|
|
497
480
|
/**
|
|
498
|
-
* Delete
|
|
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.
|
|
481
|
+
* Delete Fleet
|
|
500
482
|
* @param {String} projectOrProductUID
|
|
501
483
|
* @param {String} fleetUID
|
|
502
484
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -510,11 +492,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
492
|
}
|
|
511
493
|
|
|
512
494
|
/**
|
|
513
|
-
* Delete a fleet
|
|
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.
|
|
495
|
+
* Delete environment variables of a fleet
|
|
515
496
|
* @param {String} projectOrProductUID
|
|
516
497
|
* @param {String} fleetUID
|
|
517
|
-
* @param {String} key
|
|
498
|
+
* @param {String} key The environment variable key to delete.
|
|
518
499
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
519
500
|
*/
|
|
520
501
|
}, {
|
|
@@ -549,11 +530,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
549
530
|
}
|
|
550
531
|
|
|
551
532
|
/**
|
|
552
|
-
* Delete a fleet
|
|
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.
|
|
533
|
+
* Delete environment variables of a fleet
|
|
554
534
|
* @param {String} projectOrProductUID
|
|
555
535
|
* @param {String} fleetUID
|
|
556
|
-
* @param {String} key
|
|
536
|
+
* @param {String} key The environment variable key to delete.
|
|
557
537
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
558
538
|
*/
|
|
559
539
|
}, {
|
|
@@ -566,7 +546,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
546
|
|
|
567
547
|
/**
|
|
568
548
|
* 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.
|
|
570
549
|
* @param {String} projectOrProductUID
|
|
571
550
|
* @param {String} productUID
|
|
572
551
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -599,7 +578,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
599
578
|
|
|
600
579
|
/**
|
|
601
580
|
* 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.
|
|
603
581
|
* @param {String} projectOrProductUID
|
|
604
582
|
* @param {String} productUID
|
|
605
583
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -613,8 +591,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
613
591
|
}
|
|
614
592
|
|
|
615
593
|
/**
|
|
616
|
-
* Delete a
|
|
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.
|
|
594
|
+
* Delete a Project by ProjectUID
|
|
618
595
|
* @param {String} projectOrProductUID
|
|
619
596
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
620
597
|
*/
|
|
@@ -640,8 +617,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
640
617
|
}
|
|
641
618
|
|
|
642
619
|
/**
|
|
643
|
-
* Delete a
|
|
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.
|
|
620
|
+
* Delete a Project by ProjectUID
|
|
645
621
|
* @param {String} projectOrProductUID
|
|
646
622
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
647
623
|
*/
|
|
@@ -654,10 +630,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
654
630
|
}
|
|
655
631
|
|
|
656
632
|
/**
|
|
657
|
-
* Delete a project
|
|
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.
|
|
633
|
+
* Delete an environment variable of a project by key
|
|
659
634
|
* @param {String} projectOrProductUID
|
|
660
|
-
* @param {String} key
|
|
635
|
+
* @param {String} key The environment variable key to delete.
|
|
661
636
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
662
637
|
*/
|
|
663
638
|
}, {
|
|
@@ -687,10 +662,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
687
662
|
}
|
|
688
663
|
|
|
689
664
|
/**
|
|
690
|
-
* Delete a project
|
|
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.
|
|
665
|
+
* Delete an environment variable of a project by key
|
|
692
666
|
* @param {String} projectOrProductUID
|
|
693
|
-
* @param {String} key
|
|
667
|
+
* @param {String} key The environment variable key to delete.
|
|
694
668
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
695
669
|
*/
|
|
696
670
|
}, {
|
|
@@ -702,10 +676,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
702
676
|
}
|
|
703
677
|
|
|
704
678
|
/**
|
|
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.
|
|
679
|
+
* Delete a project secret by name
|
|
707
680
|
* @param {String} projectOrProductUID
|
|
708
|
-
* @param {String} secretName
|
|
681
|
+
* @param {String} secretName The name of the secret.
|
|
709
682
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
710
683
|
*/
|
|
711
684
|
}, {
|
|
@@ -735,10 +708,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
735
708
|
}
|
|
736
709
|
|
|
737
710
|
/**
|
|
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.
|
|
711
|
+
* Delete a project secret by name
|
|
740
712
|
* @param {String} projectOrProductUID
|
|
741
|
-
* @param {String} secretName
|
|
713
|
+
* @param {String} secretName The name of the secret.
|
|
742
714
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
743
715
|
*/
|
|
744
716
|
}, {
|
|
@@ -750,8 +722,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
750
722
|
}
|
|
751
723
|
|
|
752
724
|
/**
|
|
753
|
-
* Disable the
|
|
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.
|
|
725
|
+
* Disable the project-level event JSONata transformation
|
|
755
726
|
* @param {String} projectOrProductUID
|
|
756
727
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
757
728
|
*/
|
|
@@ -777,8 +748,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
777
748
|
}
|
|
778
749
|
|
|
779
750
|
/**
|
|
780
|
-
* Disable the
|
|
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.
|
|
751
|
+
* Disable the project-level event JSONata transformation
|
|
782
752
|
* @param {String} projectOrProductUID
|
|
783
753
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
784
754
|
*/
|
|
@@ -791,10 +761,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
761
|
}
|
|
792
762
|
|
|
793
763
|
/**
|
|
794
|
-
* Download
|
|
795
|
-
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
764
|
+
* Download firmware binary
|
|
796
765
|
* @param {String} projectOrProductUID
|
|
797
|
-
* @param {module:model/String} firmwareType
|
|
766
|
+
* @param {module:model/String} firmwareType
|
|
798
767
|
* @param {String} filename
|
|
799
768
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
800
769
|
*/
|
|
@@ -830,10 +799,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
830
799
|
}
|
|
831
800
|
|
|
832
801
|
/**
|
|
833
|
-
* Download
|
|
834
|
-
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
802
|
+
* Download firmware binary
|
|
835
803
|
* @param {String} projectOrProductUID
|
|
836
|
-
* @param {module:model/String} firmwareType
|
|
804
|
+
* @param {module:model/String} firmwareType
|
|
837
805
|
* @param {String} filename
|
|
838
806
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
839
807
|
*/
|
|
@@ -846,8 +814,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
846
814
|
}
|
|
847
815
|
|
|
848
816
|
/**
|
|
849
|
-
* Enable the
|
|
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.
|
|
817
|
+
* Enable the project-level event JSONata transformation
|
|
851
818
|
* @param {String} projectOrProductUID
|
|
852
819
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
853
820
|
*/
|
|
@@ -873,8 +840,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
873
840
|
}
|
|
874
841
|
|
|
875
842
|
/**
|
|
876
|
-
* Enable the
|
|
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.
|
|
843
|
+
* Enable the project-level event JSONata transformation
|
|
878
844
|
* @param {String} projectOrProductUID
|
|
879
845
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
880
846
|
*/
|
|
@@ -888,7 +854,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
888
854
|
|
|
889
855
|
/**
|
|
890
856
|
* Get AWS role configuration for role-based authentication
|
|
891
|
-
*
|
|
857
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
892
858
|
* @param {String} projectOrProductUID
|
|
893
859
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
894
860
|
*/
|
|
@@ -915,7 +881,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
915
881
|
|
|
916
882
|
/**
|
|
917
883
|
* Get AWS role configuration for role-based authentication
|
|
918
|
-
*
|
|
884
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
919
885
|
* @param {String} projectOrProductUID
|
|
920
886
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
921
887
|
*/
|
|
@@ -928,11 +894,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
928
894
|
}
|
|
929
895
|
|
|
930
896
|
/**
|
|
931
|
-
* Get
|
|
932
|
-
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
897
|
+
* Get device DFU history for host or Notecard firmware
|
|
933
898
|
* @param {String} projectOrProductUID
|
|
934
899
|
* @param {String} deviceUID
|
|
935
|
-
* @param {module:model/String} firmwareType
|
|
900
|
+
* @param {module:model/String} firmwareType
|
|
936
901
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
937
902
|
*/
|
|
938
903
|
}, {
|
|
@@ -967,11 +932,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
967
932
|
}
|
|
968
933
|
|
|
969
934
|
/**
|
|
970
|
-
* Get
|
|
971
|
-
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
935
|
+
* Get device DFU history for host or Notecard firmware
|
|
972
936
|
* @param {String} projectOrProductUID
|
|
973
937
|
* @param {String} deviceUID
|
|
974
|
-
* @param {module:model/String} firmwareType
|
|
938
|
+
* @param {module:model/String} firmwareType
|
|
975
939
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
976
940
|
*/
|
|
977
941
|
}, {
|
|
@@ -983,11 +947,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
983
947
|
}
|
|
984
948
|
|
|
985
949
|
/**
|
|
986
|
-
* Get
|
|
987
|
-
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
950
|
+
* Get device DFU history for host or Notecard firmware
|
|
988
951
|
* @param {String} projectOrProductUID
|
|
989
952
|
* @param {String} deviceUID
|
|
990
|
-
* @param {module:model/String} firmwareType
|
|
953
|
+
* @param {module:model/String} firmwareType
|
|
991
954
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
992
955
|
*/
|
|
993
956
|
}, {
|
|
@@ -1022,11 +985,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1022
985
|
}
|
|
1023
986
|
|
|
1024
987
|
/**
|
|
1025
|
-
* Get
|
|
1026
|
-
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
988
|
+
* Get device DFU history for host or Notecard firmware
|
|
1027
989
|
* @param {String} projectOrProductUID
|
|
1028
990
|
* @param {String} deviceUID
|
|
1029
|
-
* @param {module:model/String} firmwareType
|
|
991
|
+
* @param {module:model/String} firmwareType
|
|
1030
992
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
1031
993
|
*/
|
|
1032
994
|
}, {
|
|
@@ -1038,8 +1000,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1038
1000
|
}
|
|
1039
1001
|
|
|
1040
1002
|
/**
|
|
1041
|
-
*
|
|
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.
|
|
1003
|
+
* Get Device Fleets
|
|
1043
1004
|
* @param {String} projectOrProductUID
|
|
1044
1005
|
* @param {String} deviceUID
|
|
1045
1006
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
@@ -1071,8 +1032,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1071
1032
|
}
|
|
1072
1033
|
|
|
1073
1034
|
/**
|
|
1074
|
-
*
|
|
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.
|
|
1035
|
+
* Get Device Fleets
|
|
1076
1036
|
* @param {String} projectOrProductUID
|
|
1077
1037
|
* @param {String} deviceUID
|
|
1078
1038
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1086,10 +1046,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1086
1046
|
}
|
|
1087
1047
|
|
|
1088
1048
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1049
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1091
1050
|
* @param {String} projectOrProductUID
|
|
1092
|
-
* @param {module:model/String} firmwareType
|
|
1051
|
+
* @param {module:model/String} firmwareType
|
|
1093
1052
|
* @param {Object} opts Optional parameters
|
|
1094
1053
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1095
1054
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1150,10 +1109,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1150
1109
|
}
|
|
1151
1110
|
|
|
1152
1111
|
/**
|
|
1153
|
-
*
|
|
1154
|
-
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1112
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1155
1113
|
* @param {String} projectOrProductUID
|
|
1156
|
-
* @param {module:model/String} firmwareType
|
|
1114
|
+
* @param {module:model/String} firmwareType
|
|
1157
1115
|
* @param {Object} opts Optional parameters
|
|
1158
1116
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1159
1117
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1180,10 +1138,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1180
1138
|
}
|
|
1181
1139
|
|
|
1182
1140
|
/**
|
|
1183
|
-
*
|
|
1184
|
-
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1141
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1185
1142
|
* @param {String} projectOrProductUID
|
|
1186
|
-
* @param {module:model/String} firmwareType
|
|
1143
|
+
* @param {module:model/String} firmwareType
|
|
1187
1144
|
* @param {Object} opts Optional parameters
|
|
1188
1145
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1189
1146
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1244,10 +1201,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1201
|
}
|
|
1245
1202
|
|
|
1246
1203
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1204
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1249
1205
|
* @param {String} projectOrProductUID
|
|
1250
|
-
* @param {module:model/String} firmwareType
|
|
1206
|
+
* @param {module:model/String} firmwareType
|
|
1251
1207
|
* @param {Object} opts Optional parameters
|
|
1252
1208
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1253
1209
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1274,17 +1230,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1274
1230
|
}
|
|
1275
1231
|
|
|
1276
1232
|
/**
|
|
1277
|
-
*
|
|
1278
|
-
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1233
|
+
* Get Available Firmware Information
|
|
1279
1234
|
* @param {String} projectOrProductUID
|
|
1280
1235
|
* @param {Object} opts Optional parameters
|
|
1281
|
-
* @param {String} opts.product
|
|
1282
|
-
* @param {String} opts.firmwareType
|
|
1283
|
-
* @param {String} opts.version
|
|
1284
|
-
* @param {String} opts.target
|
|
1285
|
-
* @param {String} opts.filename
|
|
1286
|
-
* @param {String} opts.md5
|
|
1287
|
-
* @param {Boolean} opts.unpublished
|
|
1236
|
+
* @param {String} opts.product
|
|
1237
|
+
* @param {String} opts.firmwareType
|
|
1238
|
+
* @param {String} opts.version
|
|
1239
|
+
* @param {String} opts.target
|
|
1240
|
+
* @param {String} opts.filename
|
|
1241
|
+
* @param {String} opts.md5
|
|
1242
|
+
* @param {Boolean} opts.unpublished
|
|
1288
1243
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1289
1244
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1290
1245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1322,17 +1277,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1322
1277
|
}
|
|
1323
1278
|
|
|
1324
1279
|
/**
|
|
1325
|
-
*
|
|
1326
|
-
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1280
|
+
* Get Available Firmware Information
|
|
1327
1281
|
* @param {String} projectOrProductUID
|
|
1328
1282
|
* @param {Object} opts Optional parameters
|
|
1329
|
-
* @param {String} opts.product
|
|
1330
|
-
* @param {String} opts.firmwareType
|
|
1331
|
-
* @param {String} opts.version
|
|
1332
|
-
* @param {String} opts.target
|
|
1333
|
-
* @param {String} opts.filename
|
|
1334
|
-
* @param {String} opts.md5
|
|
1335
|
-
* @param {Boolean} opts.unpublished
|
|
1283
|
+
* @param {String} opts.product
|
|
1284
|
+
* @param {String} opts.firmwareType
|
|
1285
|
+
* @param {String} opts.version
|
|
1286
|
+
* @param {String} opts.target
|
|
1287
|
+
* @param {String} opts.filename
|
|
1288
|
+
* @param {String} opts.md5
|
|
1289
|
+
* @param {Boolean} opts.unpublished
|
|
1336
1290
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1337
1291
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1338
1292
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1346,8 +1300,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1300
|
}
|
|
1347
1301
|
|
|
1348
1302
|
/**
|
|
1349
|
-
* Get
|
|
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.
|
|
1303
|
+
* Get Fleet
|
|
1351
1304
|
* @param {String} projectOrProductUID
|
|
1352
1305
|
* @param {String} fleetUID
|
|
1353
1306
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
@@ -1379,8 +1332,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1379
1332
|
}
|
|
1380
1333
|
|
|
1381
1334
|
/**
|
|
1382
|
-
* Get
|
|
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.
|
|
1335
|
+
* Get Fleet
|
|
1384
1336
|
* @param {String} projectOrProductUID
|
|
1385
1337
|
* @param {String} fleetUID
|
|
1386
1338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1394,8 +1346,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1394
1346
|
}
|
|
1395
1347
|
|
|
1396
1348
|
/**
|
|
1397
|
-
* Get
|
|
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.
|
|
1349
|
+
* Get environment variable hierarchy for a device
|
|
1399
1350
|
* @param {String} projectOrProductUID
|
|
1400
1351
|
* @param {String} fleetUID
|
|
1401
1352
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -1427,8 +1378,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1427
1378
|
}
|
|
1428
1379
|
|
|
1429
1380
|
/**
|
|
1430
|
-
* Get
|
|
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.
|
|
1381
|
+
* Get environment variable hierarchy for a device
|
|
1432
1382
|
* @param {String} projectOrProductUID
|
|
1433
1383
|
* @param {String} fleetUID
|
|
1434
1384
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1442,8 +1392,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1442
1392
|
}
|
|
1443
1393
|
|
|
1444
1394
|
/**
|
|
1445
|
-
* Get
|
|
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.
|
|
1395
|
+
* Get environment variables of a fleet
|
|
1447
1396
|
* @param {String} projectOrProductUID
|
|
1448
1397
|
* @param {String} fleetUID
|
|
1449
1398
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1475,8 +1424,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1475
1424
|
}
|
|
1476
1425
|
|
|
1477
1426
|
/**
|
|
1478
|
-
* Get
|
|
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.
|
|
1427
|
+
* Get environment variables of a fleet
|
|
1480
1428
|
* @param {String} projectOrProductUID
|
|
1481
1429
|
* @param {String} fleetUID
|
|
1482
1430
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1490,8 +1438,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1490
1438
|
}
|
|
1491
1439
|
|
|
1492
1440
|
/**
|
|
1493
|
-
*
|
|
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.
|
|
1441
|
+
* Get Project Fleets
|
|
1495
1442
|
* @param {String} projectOrProductUID
|
|
1496
1443
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1497
1444
|
*/
|
|
@@ -1517,8 +1464,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1517
1464
|
}
|
|
1518
1465
|
|
|
1519
1466
|
/**
|
|
1520
|
-
*
|
|
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.
|
|
1467
|
+
* Get Project Fleets
|
|
1522
1468
|
* @param {String} projectOrProductUID
|
|
1523
1469
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1524
1470
|
*/
|
|
@@ -1531,8 +1477,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1531
1477
|
}
|
|
1532
1478
|
|
|
1533
1479
|
/**
|
|
1534
|
-
*
|
|
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.
|
|
1480
|
+
* Get variable format for a notefile
|
|
1536
1481
|
* @param {String} projectOrProductUID
|
|
1537
1482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1538
1483
|
*/
|
|
@@ -1558,8 +1503,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1558
1503
|
}
|
|
1559
1504
|
|
|
1560
1505
|
/**
|
|
1561
|
-
*
|
|
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.
|
|
1506
|
+
* Get variable format for a notefile
|
|
1563
1507
|
* @param {String} projectOrProductUID
|
|
1564
1508
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1565
1509
|
*/
|
|
@@ -1572,8 +1516,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1572
1516
|
}
|
|
1573
1517
|
|
|
1574
1518
|
/**
|
|
1575
|
-
*
|
|
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.
|
|
1519
|
+
* Get Products within a Project
|
|
1577
1520
|
* @param {String} projectOrProductUID
|
|
1578
1521
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1579
1522
|
*/
|
|
@@ -1599,8 +1542,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1599
1542
|
}
|
|
1600
1543
|
|
|
1601
1544
|
/**
|
|
1602
|
-
*
|
|
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.
|
|
1545
|
+
* Get Products within a Project
|
|
1604
1546
|
* @param {String} projectOrProductUID
|
|
1605
1547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1606
1548
|
*/
|
|
@@ -1613,8 +1555,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1613
1555
|
}
|
|
1614
1556
|
|
|
1615
1557
|
/**
|
|
1616
|
-
* Get a
|
|
1617
|
-
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1558
|
+
* Get a Project by ProjectUID
|
|
1618
1559
|
* @param {String} projectOrProductUID
|
|
1619
1560
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1620
1561
|
*/
|
|
@@ -1640,8 +1581,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1640
1581
|
}
|
|
1641
1582
|
|
|
1642
1583
|
/**
|
|
1643
|
-
* Get a
|
|
1644
|
-
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1584
|
+
* Get a Project by ProjectUID
|
|
1645
1585
|
* @param {String} projectOrProductUID
|
|
1646
1586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1647
1587
|
*/
|
|
@@ -1654,9 +1594,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1654
1594
|
}
|
|
1655
1595
|
|
|
1656
1596
|
/**
|
|
1657
|
-
* Get
|
|
1658
|
-
*
|
|
1659
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1597
|
+
* Get a Project by ProductUID
|
|
1598
|
+
* @param {String} productUID
|
|
1660
1599
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1661
1600
|
*/
|
|
1662
1601
|
}, {
|
|
@@ -1681,9 +1620,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1681
1620
|
}
|
|
1682
1621
|
|
|
1683
1622
|
/**
|
|
1684
|
-
* Get
|
|
1685
|
-
*
|
|
1686
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1623
|
+
* Get a Project by ProductUID
|
|
1624
|
+
* @param {String} productUID
|
|
1687
1625
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1688
1626
|
*/
|
|
1689
1627
|
}, {
|
|
@@ -1695,8 +1633,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1695
1633
|
}
|
|
1696
1634
|
|
|
1697
1635
|
/**
|
|
1698
|
-
* Get
|
|
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`.
|
|
1636
|
+
* Get environment variable hierarchy for a device
|
|
1700
1637
|
* @param {String} projectOrProductUID
|
|
1701
1638
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1702
1639
|
*/
|
|
@@ -1722,8 +1659,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1722
1659
|
}
|
|
1723
1660
|
|
|
1724
1661
|
/**
|
|
1725
|
-
* Get
|
|
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`.
|
|
1662
|
+
* Get environment variable hierarchy for a device
|
|
1727
1663
|
* @param {String} projectOrProductUID
|
|
1728
1664
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1729
1665
|
*/
|
|
@@ -1736,8 +1672,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1736
1672
|
}
|
|
1737
1673
|
|
|
1738
1674
|
/**
|
|
1739
|
-
* Get
|
|
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`.
|
|
1675
|
+
* Get environment variables of a project
|
|
1741
1676
|
* @param {String} projectOrProductUID
|
|
1742
1677
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1743
1678
|
*/
|
|
@@ -1763,8 +1698,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1763
1698
|
}
|
|
1764
1699
|
|
|
1765
1700
|
/**
|
|
1766
|
-
* Get
|
|
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`.
|
|
1701
|
+
* Get environment variables of a project
|
|
1768
1702
|
* @param {String} projectOrProductUID
|
|
1769
1703
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1770
1704
|
*/
|
|
@@ -1777,8 +1711,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1777
1711
|
}
|
|
1778
1712
|
|
|
1779
1713
|
/**
|
|
1780
|
-
*
|
|
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.
|
|
1714
|
+
* Get Project Members
|
|
1782
1715
|
* @param {String} projectOrProductUID
|
|
1783
1716
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1784
1717
|
*/
|
|
@@ -1804,8 +1737,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1804
1737
|
}
|
|
1805
1738
|
|
|
1806
1739
|
/**
|
|
1807
|
-
*
|
|
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.
|
|
1740
|
+
* Get Project Members
|
|
1809
1741
|
* @param {String} projectOrProductUID
|
|
1810
1742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1811
1743
|
*/
|
|
@@ -1818,8 +1750,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1818
1750
|
}
|
|
1819
1751
|
|
|
1820
1752
|
/**
|
|
1821
|
-
*
|
|
1822
|
-
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1753
|
+
* Get all secrets for a project (metadata only, values are never returned)
|
|
1823
1754
|
* @param {String} projectOrProductUID
|
|
1824
1755
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1825
1756
|
*/
|
|
@@ -1845,8 +1776,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1845
1776
|
}
|
|
1846
1777
|
|
|
1847
1778
|
/**
|
|
1848
|
-
*
|
|
1849
|
-
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1779
|
+
* Get all secrets for a project (metadata only, values are never returned)
|
|
1850
1780
|
* @param {String} projectOrProductUID
|
|
1851
1781
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1852
1782
|
*/
|
|
@@ -1859,8 +1789,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1859
1789
|
}
|
|
1860
1790
|
|
|
1861
1791
|
/**
|
|
1862
|
-
*
|
|
1863
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1792
|
+
* Get Projects accessible by the api_key
|
|
1864
1793
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1865
1794
|
*/
|
|
1866
1795
|
}, {
|
|
@@ -1879,8 +1808,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1879
1808
|
}
|
|
1880
1809
|
|
|
1881
1810
|
/**
|
|
1882
|
-
*
|
|
1883
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1811
|
+
* Get Projects accessible by the api_key
|
|
1884
1812
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1885
1813
|
*/
|
|
1886
1814
|
}, {
|
|
@@ -1892,11 +1820,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1892
1820
|
}
|
|
1893
1821
|
|
|
1894
1822
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1823
|
+
* Update/cancel host or notecard firmware updates
|
|
1897
1824
|
* @param {String} projectOrProductUID
|
|
1898
|
-
* @param {module:model/String} firmwareType
|
|
1899
|
-
* @param {module:model/String} action
|
|
1825
|
+
* @param {module:model/String} firmwareType
|
|
1826
|
+
* @param {module:model/String} action
|
|
1900
1827
|
* @param {Object} opts Optional parameters
|
|
1901
1828
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1902
1829
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1953,11 +1880,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1953
1880
|
}
|
|
1954
1881
|
|
|
1955
1882
|
/**
|
|
1956
|
-
*
|
|
1957
|
-
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1883
|
+
* Update/cancel host or notecard firmware updates
|
|
1958
1884
|
* @param {String} projectOrProductUID
|
|
1959
|
-
* @param {module:model/String} firmwareType
|
|
1960
|
-
* @param {module:model/String} action
|
|
1885
|
+
* @param {module:model/String} firmwareType
|
|
1886
|
+
* @param {module:model/String} action
|
|
1961
1887
|
* @param {Object} opts Optional parameters
|
|
1962
1888
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1963
1889
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1980,11 +1906,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1980
1906
|
}
|
|
1981
1907
|
|
|
1982
1908
|
/**
|
|
1983
|
-
* Set
|
|
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.
|
|
1909
|
+
* Set environment variables of a fleet
|
|
1985
1910
|
* @param {String} projectOrProductUID
|
|
1986
1911
|
* @param {String} fleetUID
|
|
1987
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1912
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1988
1913
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1989
1914
|
*/
|
|
1990
1915
|
}, {
|
|
@@ -2018,11 +1943,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2018
1943
|
}
|
|
2019
1944
|
|
|
2020
1945
|
/**
|
|
2021
|
-
* Set
|
|
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.
|
|
1946
|
+
* Set environment variables of a fleet
|
|
2023
1947
|
* @param {String} projectOrProductUID
|
|
2024
1948
|
* @param {String} fleetUID
|
|
2025
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1949
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
2026
1950
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
2027
1951
|
*/
|
|
2028
1952
|
}, {
|
|
@@ -2034,10 +1958,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2034
1958
|
}
|
|
2035
1959
|
|
|
2036
1960
|
/**
|
|
2037
|
-
* Set the
|
|
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.
|
|
1961
|
+
* Set the project-level event JSONata transformation
|
|
2039
1962
|
* @param {String} projectOrProductUID
|
|
2040
|
-
* @param {String} body JSONata expression
|
|
1963
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
2041
1964
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
2042
1965
|
*/
|
|
2043
1966
|
}, {
|
|
@@ -2066,10 +1989,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2066
1989
|
}
|
|
2067
1990
|
|
|
2068
1991
|
/**
|
|
2069
|
-
* Set the
|
|
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.
|
|
1992
|
+
* Set the project-level event JSONata transformation
|
|
2071
1993
|
* @param {String} projectOrProductUID
|
|
2072
|
-
* @param {String} body JSONata expression
|
|
1994
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
2073
1995
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
2074
1996
|
*/
|
|
2075
1997
|
}, {
|
|
@@ -2081,8 +2003,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2081
2003
|
}
|
|
2082
2004
|
|
|
2083
2005
|
/**
|
|
2084
|
-
* Set
|
|
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.
|
|
2006
|
+
* Set environment variables of a project
|
|
2086
2007
|
* @param {String} projectOrProductUID
|
|
2087
2008
|
* @param {Object} opts Optional parameters
|
|
2088
2009
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2111,8 +2032,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2111
2032
|
}
|
|
2112
2033
|
|
|
2113
2034
|
/**
|
|
2114
|
-
* Set
|
|
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.
|
|
2035
|
+
* Set environment variables of a project
|
|
2116
2036
|
* @param {String} projectOrProductUID
|
|
2117
2037
|
* @param {Object} opts Optional parameters
|
|
2118
2038
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2127,8 +2047,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2127
2047
|
}
|
|
2128
2048
|
|
|
2129
2049
|
/**
|
|
2130
|
-
* Update host firmware
|
|
2131
|
-
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2050
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2132
2051
|
* @param {String} projectOrProductUID
|
|
2133
2052
|
* @param {module:model/String} firmwareType
|
|
2134
2053
|
* @param {String} filename
|
|
@@ -2171,8 +2090,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2171
2090
|
}
|
|
2172
2091
|
|
|
2173
2092
|
/**
|
|
2174
|
-
* Update host firmware
|
|
2175
|
-
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2093
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2176
2094
|
* @param {String} projectOrProductUID
|
|
2177
2095
|
* @param {module:model/String} firmwareType
|
|
2178
2096
|
* @param {String} filename
|
|
@@ -2188,11 +2106,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2188
2106
|
}
|
|
2189
2107
|
|
|
2190
2108
|
/**
|
|
2191
|
-
* Update
|
|
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.
|
|
2109
|
+
* Update Fleet
|
|
2193
2110
|
* @param {String} projectOrProductUID
|
|
2194
2111
|
* @param {String} fleetUID
|
|
2195
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2112
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2196
2113
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2197
2114
|
*/
|
|
2198
2115
|
}, {
|
|
@@ -2226,11 +2143,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2226
2143
|
}
|
|
2227
2144
|
|
|
2228
2145
|
/**
|
|
2229
|
-
* Update
|
|
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.
|
|
2146
|
+
* Update Fleet
|
|
2231
2147
|
* @param {String} projectOrProductUID
|
|
2232
2148
|
* @param {String} fleetUID
|
|
2233
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2149
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2234
2150
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2235
2151
|
*/
|
|
2236
2152
|
}, {
|
|
@@ -2242,10 +2158,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2242
2158
|
}
|
|
2243
2159
|
|
|
2244
2160
|
/**
|
|
2245
|
-
* Update
|
|
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.
|
|
2161
|
+
* Update the value of an existing project secret
|
|
2247
2162
|
* @param {String} projectOrProductUID
|
|
2248
|
-
* @param {String} secretName
|
|
2163
|
+
* @param {String} secretName The name of the secret.
|
|
2249
2164
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2250
2165
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2251
2166
|
*/
|
|
@@ -2280,10 +2195,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2280
2195
|
}
|
|
2281
2196
|
|
|
2282
2197
|
/**
|
|
2283
|
-
* Update
|
|
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.
|
|
2198
|
+
* Update the value of an existing project secret
|
|
2285
2199
|
* @param {String} projectOrProductUID
|
|
2286
|
-
* @param {String} secretName
|
|
2200
|
+
* @param {String} secretName The name of the secret.
|
|
2287
2201
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2288
2202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2289
2203
|
*/
|
|
@@ -2296,11 +2210,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2296
2210
|
}
|
|
2297
2211
|
|
|
2298
2212
|
/**
|
|
2299
|
-
* Upload firmware
|
|
2300
|
-
* Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
|
|
2213
|
+
* Upload firmware binary
|
|
2301
2214
|
* @param {String} projectOrProductUID
|
|
2302
|
-
* @param {module:model/String} firmwareType
|
|
2303
|
-
* @param {String} filename
|
|
2215
|
+
* @param {module:model/String} firmwareType
|
|
2216
|
+
* @param {String} filename
|
|
2304
2217
|
* @param {File} body contents of the firmware binary
|
|
2305
2218
|
* @param {Object} opts Optional parameters
|
|
2306
2219
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2347,11 +2260,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2347
2260
|
}
|
|
2348
2261
|
|
|
2349
2262
|
/**
|
|
2350
|
-
* Upload firmware
|
|
2351
|
-
* Upload a host or Notecard firmware binary. Notehub usually adds a timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it, and 500 for a wrong file type or a file over the limit: 1.5 MB for host firmware, 2 MB for `notecard-s3-*` and 1 MB for other Notecard firmware.
|
|
2263
|
+
* Upload firmware binary
|
|
2352
2264
|
* @param {String} projectOrProductUID
|
|
2353
|
-
* @param {module:model/String} firmwareType
|
|
2354
|
-
* @param {String} filename
|
|
2265
|
+
* @param {module:model/String} firmwareType
|
|
2266
|
+
* @param {String} filename
|
|
2355
2267
|
* @param {File} body contents of the firmware binary
|
|
2356
2268
|
* @param {Object} opts Optional parameters
|
|
2357
2269
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|