@blues-inc/notehub-js 6.7.0-beta.47 → 6.7.0-beta.48
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 +31 -31
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +129 -149
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/SkillsApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- 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 +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- 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 +2 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +10 -11
- 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 +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- 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 +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 +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.48
|
|
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
|
}, {
|
|
@@ -171,10 +169,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
/**
|
|
174
|
-
* Create
|
|
175
|
-
* 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.
|
|
172
|
+
* Create Fleet
|
|
176
173
|
* @param {String} projectOrProductUID
|
|
177
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
174
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
178
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
179
176
|
*/
|
|
180
177
|
}, {
|
|
@@ -203,10 +200,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
200
|
}
|
|
204
201
|
|
|
205
202
|
/**
|
|
206
|
-
* Create
|
|
207
|
-
* 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.
|
|
203
|
+
* Create Fleet
|
|
208
204
|
* @param {String} projectOrProductUID
|
|
209
|
-
* @param {module:model/CreateFleetRequest} createFleetRequest
|
|
205
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
210
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
211
207
|
*/
|
|
212
208
|
}, {
|
|
@@ -300,8 +296,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
300
296
|
}
|
|
301
297
|
|
|
302
298
|
/**
|
|
303
|
-
* Create a project secret
|
|
304
|
-
* 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
|
|
305
300
|
* @param {String} projectOrProductUID
|
|
306
301
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
307
302
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
@@ -332,8 +327,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
327
|
}
|
|
333
328
|
|
|
334
329
|
/**
|
|
335
|
-
* Create a project secret
|
|
336
|
-
* 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
|
|
337
331
|
* @param {String} projectOrProductUID
|
|
338
332
|
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
339
333
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
@@ -347,11 +341,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
341
|
}
|
|
348
342
|
|
|
349
343
|
/**
|
|
350
|
-
* Remove
|
|
351
|
-
* 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
|
|
352
345
|
* @param {String} projectOrProductUID
|
|
353
346
|
* @param {String} deviceUID
|
|
354
|
-
* @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.
|
|
355
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
356
349
|
*/
|
|
357
350
|
}, {
|
|
@@ -385,11 +378,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
385
378
|
}
|
|
386
379
|
|
|
387
380
|
/**
|
|
388
|
-
* Remove
|
|
389
|
-
* 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
|
|
390
382
|
* @param {String} projectOrProductUID
|
|
391
383
|
* @param {String} deviceUID
|
|
392
|
-
* @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.
|
|
393
385
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
394
386
|
*/
|
|
395
387
|
}, {
|
|
@@ -401,7 +393,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
401
393
|
}
|
|
402
394
|
|
|
403
395
|
/**
|
|
404
|
-
* Delete
|
|
396
|
+
* Delete host firmware
|
|
397
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
405
398
|
* @param {String} projectOrProductUID
|
|
406
399
|
* @param {module:model/String} firmwareType
|
|
407
400
|
* @param {String} filename
|
|
@@ -439,7 +432,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
439
432
|
}
|
|
440
433
|
|
|
441
434
|
/**
|
|
442
|
-
* Delete
|
|
435
|
+
* Delete host firmware
|
|
436
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
443
437
|
* @param {String} projectOrProductUID
|
|
444
438
|
* @param {module:model/String} firmwareType
|
|
445
439
|
* @param {String} filename
|
|
@@ -454,8 +448,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
454
448
|
}
|
|
455
449
|
|
|
456
450
|
/**
|
|
457
|
-
* Delete
|
|
458
|
-
* 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.
|
|
451
|
+
* Delete Fleet
|
|
459
452
|
* @param {String} projectOrProductUID
|
|
460
453
|
* @param {String} fleetUID
|
|
461
454
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -487,8 +480,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
487
480
|
}
|
|
488
481
|
|
|
489
482
|
/**
|
|
490
|
-
* Delete
|
|
491
|
-
* 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.
|
|
483
|
+
* Delete Fleet
|
|
492
484
|
* @param {String} projectOrProductUID
|
|
493
485
|
* @param {String} fleetUID
|
|
494
486
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -502,11 +494,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
502
494
|
}
|
|
503
495
|
|
|
504
496
|
/**
|
|
505
|
-
* Delete a fleet
|
|
506
|
-
* 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.
|
|
497
|
+
* Delete environment variables of a fleet
|
|
507
498
|
* @param {String} projectOrProductUID
|
|
508
499
|
* @param {String} fleetUID
|
|
509
|
-
* @param {String} key
|
|
500
|
+
* @param {String} key The environment variable key to delete.
|
|
510
501
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
511
502
|
*/
|
|
512
503
|
}, {
|
|
@@ -541,11 +532,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
541
532
|
}
|
|
542
533
|
|
|
543
534
|
/**
|
|
544
|
-
* Delete a fleet
|
|
545
|
-
* 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.
|
|
535
|
+
* Delete environment variables of a fleet
|
|
546
536
|
* @param {String} projectOrProductUID
|
|
547
537
|
* @param {String} fleetUID
|
|
548
|
-
* @param {String} key
|
|
538
|
+
* @param {String} key The environment variable key to delete.
|
|
549
539
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
550
540
|
*/
|
|
551
541
|
}, {
|
|
@@ -642,10 +632,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
642
632
|
}
|
|
643
633
|
|
|
644
634
|
/**
|
|
645
|
-
* Delete a project
|
|
646
|
-
* 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.
|
|
635
|
+
* Delete an environment variable of a project by key
|
|
647
636
|
* @param {String} projectOrProductUID
|
|
648
|
-
* @param {String} key
|
|
637
|
+
* @param {String} key The environment variable key to delete.
|
|
649
638
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
650
639
|
*/
|
|
651
640
|
}, {
|
|
@@ -675,10 +664,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
664
|
}
|
|
676
665
|
|
|
677
666
|
/**
|
|
678
|
-
* Delete a project
|
|
679
|
-
* 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.
|
|
667
|
+
* Delete an environment variable of a project by key
|
|
680
668
|
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} key
|
|
669
|
+
* @param {String} key The environment variable key to delete.
|
|
682
670
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
683
671
|
*/
|
|
684
672
|
}, {
|
|
@@ -690,10 +678,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
690
678
|
}
|
|
691
679
|
|
|
692
680
|
/**
|
|
693
|
-
* Delete a project secret
|
|
694
|
-
* 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.
|
|
681
|
+
* Delete a project secret by name
|
|
695
682
|
* @param {String} projectOrProductUID
|
|
696
|
-
* @param {String} secretName
|
|
683
|
+
* @param {String} secretName The name of the secret.
|
|
697
684
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
698
685
|
*/
|
|
699
686
|
}, {
|
|
@@ -723,10 +710,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
723
710
|
}
|
|
724
711
|
|
|
725
712
|
/**
|
|
726
|
-
* Delete a project secret
|
|
727
|
-
* 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.
|
|
713
|
+
* Delete a project secret by name
|
|
728
714
|
* @param {String} projectOrProductUID
|
|
729
|
-
* @param {String} secretName
|
|
715
|
+
* @param {String} secretName The name of the secret.
|
|
730
716
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
731
717
|
*/
|
|
732
718
|
}, {
|
|
@@ -777,9 +763,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
777
763
|
}
|
|
778
764
|
|
|
779
765
|
/**
|
|
780
|
-
* Download firmware
|
|
766
|
+
* Download host firmware
|
|
767
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
781
768
|
* @param {String} projectOrProductUID
|
|
782
|
-
* @param {module:model/String} firmwareType
|
|
769
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
783
770
|
* @param {String} filename
|
|
784
771
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
785
772
|
*/
|
|
@@ -815,9 +802,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
802
|
}
|
|
816
803
|
|
|
817
804
|
/**
|
|
818
|
-
* Download firmware
|
|
805
|
+
* Download host firmware
|
|
806
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
819
807
|
* @param {String} projectOrProductUID
|
|
820
|
-
* @param {module:model/String} firmwareType
|
|
808
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
821
809
|
* @param {String} filename
|
|
822
810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
823
811
|
*/
|
|
@@ -910,10 +898,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
910
898
|
}
|
|
911
899
|
|
|
912
900
|
/**
|
|
913
|
-
* Get device
|
|
901
|
+
* Get a device's firmware update history
|
|
902
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
914
903
|
* @param {String} projectOrProductUID
|
|
915
904
|
* @param {String} deviceUID
|
|
916
|
-
* @param {module:model/String} firmwareType
|
|
905
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
917
906
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
918
907
|
*/
|
|
919
908
|
}, {
|
|
@@ -948,10 +937,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
948
937
|
}
|
|
949
938
|
|
|
950
939
|
/**
|
|
951
|
-
* Get device
|
|
940
|
+
* Get a device's firmware update history
|
|
941
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
952
942
|
* @param {String} projectOrProductUID
|
|
953
943
|
* @param {String} deviceUID
|
|
954
|
-
* @param {module:model/String} firmwareType
|
|
944
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
955
945
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
956
946
|
*/
|
|
957
947
|
}, {
|
|
@@ -963,10 +953,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
963
953
|
}
|
|
964
954
|
|
|
965
955
|
/**
|
|
966
|
-
* Get device
|
|
956
|
+
* Get a device's firmware update status
|
|
957
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
967
958
|
* @param {String} projectOrProductUID
|
|
968
959
|
* @param {String} deviceUID
|
|
969
|
-
* @param {module:model/String} firmwareType
|
|
960
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
970
961
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
971
962
|
*/
|
|
972
963
|
}, {
|
|
@@ -1001,10 +992,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1001
992
|
}
|
|
1002
993
|
|
|
1003
994
|
/**
|
|
1004
|
-
* Get device
|
|
995
|
+
* Get a device's firmware update status
|
|
996
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
1005
997
|
* @param {String} projectOrProductUID
|
|
1006
998
|
* @param {String} deviceUID
|
|
1007
|
-
* @param {module:model/String} firmwareType
|
|
999
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1008
1000
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
1009
1001
|
*/
|
|
1010
1002
|
}, {
|
|
@@ -1016,8 +1008,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1016
1008
|
}
|
|
1017
1009
|
|
|
1018
1010
|
/**
|
|
1019
|
-
*
|
|
1020
|
-
* 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.
|
|
1011
|
+
* Get Device Fleets
|
|
1021
1012
|
* @param {String} projectOrProductUID
|
|
1022
1013
|
* @param {String} deviceUID
|
|
1023
1014
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
@@ -1049,8 +1040,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1049
1040
|
}
|
|
1050
1041
|
|
|
1051
1042
|
/**
|
|
1052
|
-
*
|
|
1053
|
-
* List the fleets a device belongs to, with only each fleet's UID, label and creation time. For a fleet's full details use `GetFleet`. Returns 404 if the device isn't in the project.
|
|
1043
|
+
* Get Device Fleets
|
|
1054
1044
|
* @param {String} projectOrProductUID
|
|
1055
1045
|
* @param {String} deviceUID
|
|
1056
1046
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
@@ -1064,9 +1054,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1064
1054
|
}
|
|
1065
1055
|
|
|
1066
1056
|
/**
|
|
1067
|
-
*
|
|
1057
|
+
* List devices' firmware update history
|
|
1058
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1068
1059
|
* @param {String} projectOrProductUID
|
|
1069
|
-
* @param {module:model/String} firmwareType
|
|
1060
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1070
1061
|
* @param {Object} opts Optional parameters
|
|
1071
1062
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1072
1063
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1127,9 +1118,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1127
1118
|
}
|
|
1128
1119
|
|
|
1129
1120
|
/**
|
|
1130
|
-
*
|
|
1121
|
+
* List devices' firmware update history
|
|
1122
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1131
1123
|
* @param {String} projectOrProductUID
|
|
1132
|
-
* @param {module:model/String} firmwareType
|
|
1124
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1133
1125
|
* @param {Object} opts Optional parameters
|
|
1134
1126
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1135
1127
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1156,9 +1148,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1156
1148
|
}
|
|
1157
1149
|
|
|
1158
1150
|
/**
|
|
1159
|
-
*
|
|
1151
|
+
* List devices' firmware status
|
|
1152
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1160
1153
|
* @param {String} projectOrProductUID
|
|
1161
|
-
* @param {module:model/String} firmwareType
|
|
1154
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1162
1155
|
* @param {Object} opts Optional parameters
|
|
1163
1156
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1164
1157
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1219,9 +1212,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1219
1212
|
}
|
|
1220
1213
|
|
|
1221
1214
|
/**
|
|
1222
|
-
*
|
|
1215
|
+
* List devices' firmware status
|
|
1216
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1223
1217
|
* @param {String} projectOrProductUID
|
|
1224
|
-
* @param {module:model/String} firmwareType
|
|
1218
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1225
1219
|
* @param {Object} opts Optional parameters
|
|
1226
1220
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1227
1221
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1248,16 +1242,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1248
1242
|
}
|
|
1249
1243
|
|
|
1250
1244
|
/**
|
|
1251
|
-
*
|
|
1245
|
+
* List firmware
|
|
1246
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1252
1247
|
* @param {String} projectOrProductUID
|
|
1253
1248
|
* @param {Object} opts Optional parameters
|
|
1254
|
-
* @param {String} opts.product
|
|
1255
|
-
* @param {String} opts.firmwareType
|
|
1256
|
-
* @param {String} opts.version
|
|
1257
|
-
* @param {String} opts.target
|
|
1258
|
-
* @param {String} opts.filename
|
|
1259
|
-
* @param {String} opts.md5
|
|
1260
|
-
* @param {Boolean} opts.unpublished
|
|
1249
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1250
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1251
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1252
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1253
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1254
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1255
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1261
1256
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1262
1257
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1263
1258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1295,16 +1290,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1290
|
}
|
|
1296
1291
|
|
|
1297
1292
|
/**
|
|
1298
|
-
*
|
|
1293
|
+
* List firmware
|
|
1294
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1299
1295
|
* @param {String} projectOrProductUID
|
|
1300
1296
|
* @param {Object} opts Optional parameters
|
|
1301
|
-
* @param {String} opts.product
|
|
1302
|
-
* @param {String} opts.firmwareType
|
|
1303
|
-
* @param {String} opts.version
|
|
1304
|
-
* @param {String} opts.target
|
|
1305
|
-
* @param {String} opts.filename
|
|
1306
|
-
* @param {String} opts.md5
|
|
1307
|
-
* @param {Boolean} opts.unpublished
|
|
1297
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1298
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1299
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1300
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1301
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1302
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1303
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1308
1304
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1309
1305
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1310
1306
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1318,8 +1314,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1318
1314
|
}
|
|
1319
1315
|
|
|
1320
1316
|
/**
|
|
1321
|
-
* Get
|
|
1322
|
-
* 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.
|
|
1317
|
+
* Get Fleet
|
|
1323
1318
|
* @param {String} projectOrProductUID
|
|
1324
1319
|
* @param {String} fleetUID
|
|
1325
1320
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
@@ -1351,8 +1346,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1351
1346
|
}
|
|
1352
1347
|
|
|
1353
1348
|
/**
|
|
1354
|
-
* Get
|
|
1355
|
-
* 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.
|
|
1349
|
+
* Get Fleet
|
|
1356
1350
|
* @param {String} projectOrProductUID
|
|
1357
1351
|
* @param {String} fleetUID
|
|
1358
1352
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
@@ -1366,8 +1360,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1366
1360
|
}
|
|
1367
1361
|
|
|
1368
1362
|
/**
|
|
1369
|
-
* Get
|
|
1370
|
-
* 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.
|
|
1363
|
+
* Get environment variable hierarchy for a device
|
|
1371
1364
|
* @param {String} projectOrProductUID
|
|
1372
1365
|
* @param {String} fleetUID
|
|
1373
1366
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -1399,8 +1392,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1399
1392
|
}
|
|
1400
1393
|
|
|
1401
1394
|
/**
|
|
1402
|
-
* Get
|
|
1403
|
-
* 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.
|
|
1395
|
+
* Get environment variable hierarchy for a device
|
|
1404
1396
|
* @param {String} projectOrProductUID
|
|
1405
1397
|
* @param {String} fleetUID
|
|
1406
1398
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -1414,8 +1406,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1414
1406
|
}
|
|
1415
1407
|
|
|
1416
1408
|
/**
|
|
1417
|
-
* Get
|
|
1418
|
-
* 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.
|
|
1409
|
+
* Get environment variables of a fleet
|
|
1419
1410
|
* @param {String} projectOrProductUID
|
|
1420
1411
|
* @param {String} fleetUID
|
|
1421
1412
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1447,8 +1438,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1447
1438
|
}
|
|
1448
1439
|
|
|
1449
1440
|
/**
|
|
1450
|
-
* Get
|
|
1451
|
-
* 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.
|
|
1441
|
+
* Get environment variables of a fleet
|
|
1452
1442
|
* @param {String} projectOrProductUID
|
|
1453
1443
|
* @param {String} fleetUID
|
|
1454
1444
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1462,8 +1452,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1462
1452
|
}
|
|
1463
1453
|
|
|
1464
1454
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1455
|
+
* Get Project Fleets
|
|
1467
1456
|
* @param {String} projectOrProductUID
|
|
1468
1457
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1469
1458
|
*/
|
|
@@ -1489,8 +1478,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1489
1478
|
}
|
|
1490
1479
|
|
|
1491
1480
|
/**
|
|
1492
|
-
*
|
|
1493
|
-
* List the project's fleets with each one's label, smart rule, watchdog and environment variables. Doesn't include `smart_rule_enabled`. Not paginated.
|
|
1481
|
+
* Get Project Fleets
|
|
1494
1482
|
* @param {String} projectOrProductUID
|
|
1495
1483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1496
1484
|
*/
|
|
@@ -1659,8 +1647,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1659
1647
|
}
|
|
1660
1648
|
|
|
1661
1649
|
/**
|
|
1662
|
-
* Get
|
|
1663
|
-
* 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`.
|
|
1650
|
+
* Get environment variable hierarchy for a device
|
|
1664
1651
|
* @param {String} projectOrProductUID
|
|
1665
1652
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1666
1653
|
*/
|
|
@@ -1686,8 +1673,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1686
1673
|
}
|
|
1687
1674
|
|
|
1688
1675
|
/**
|
|
1689
|
-
* Get
|
|
1690
|
-
* 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`.
|
|
1676
|
+
* Get environment variable hierarchy for a device
|
|
1691
1677
|
* @param {String} projectOrProductUID
|
|
1692
1678
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1693
1679
|
*/
|
|
@@ -1700,8 +1686,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1700
1686
|
}
|
|
1701
1687
|
|
|
1702
1688
|
/**
|
|
1703
|
-
* Get
|
|
1704
|
-
* 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`.
|
|
1689
|
+
* Get environment variables of a project
|
|
1705
1690
|
* @param {String} projectOrProductUID
|
|
1706
1691
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1707
1692
|
*/
|
|
@@ -1727,8 +1712,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1727
1712
|
}
|
|
1728
1713
|
|
|
1729
1714
|
/**
|
|
1730
|
-
* Get
|
|
1731
|
-
* 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`.
|
|
1715
|
+
* Get environment variables of a project
|
|
1732
1716
|
* @param {String} projectOrProductUID
|
|
1733
1717
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1734
1718
|
*/
|
|
@@ -1780,8 +1764,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1780
1764
|
}
|
|
1781
1765
|
|
|
1782
1766
|
/**
|
|
1783
|
-
*
|
|
1784
|
-
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1767
|
+
* Get all secrets for a project (metadata only, values are never returned)
|
|
1785
1768
|
* @param {String} projectOrProductUID
|
|
1786
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1787
1770
|
*/
|
|
@@ -1807,8 +1790,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1807
1790
|
}
|
|
1808
1791
|
|
|
1809
1792
|
/**
|
|
1810
|
-
*
|
|
1811
|
-
* List the project's secrets by name, with who created and last changed each one and when. Values are never returned.
|
|
1793
|
+
* Get all secrets for a project (metadata only, values are never returned)
|
|
1812
1794
|
* @param {String} projectOrProductUID
|
|
1813
1795
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1814
1796
|
*/
|
|
@@ -1852,10 +1834,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1852
1834
|
}
|
|
1853
1835
|
|
|
1854
1836
|
/**
|
|
1855
|
-
*
|
|
1837
|
+
* Start or cancel firmware updates
|
|
1838
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1856
1839
|
* @param {String} projectOrProductUID
|
|
1857
|
-
* @param {module:model/String} firmwareType
|
|
1858
|
-
* @param {module:model/String} action
|
|
1840
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1841
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1859
1842
|
* @param {Object} opts Optional parameters
|
|
1860
1843
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1861
1844
|
* @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`.
|
|
@@ -1912,10 +1895,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1912
1895
|
}
|
|
1913
1896
|
|
|
1914
1897
|
/**
|
|
1915
|
-
*
|
|
1898
|
+
* Start or cancel firmware updates
|
|
1899
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1916
1900
|
* @param {String} projectOrProductUID
|
|
1917
|
-
* @param {module:model/String} firmwareType
|
|
1918
|
-
* @param {module:model/String} action
|
|
1901
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1902
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1919
1903
|
* @param {Object} opts Optional parameters
|
|
1920
1904
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1921
1905
|
* @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`.
|
|
@@ -1938,11 +1922,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1938
1922
|
}
|
|
1939
1923
|
|
|
1940
1924
|
/**
|
|
1941
|
-
* Set
|
|
1942
|
-
* 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.
|
|
1925
|
+
* Set environment variables of a fleet
|
|
1943
1926
|
* @param {String} projectOrProductUID
|
|
1944
1927
|
* @param {String} fleetUID
|
|
1945
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1928
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1946
1929
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1947
1930
|
*/
|
|
1948
1931
|
}, {
|
|
@@ -1976,11 +1959,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1976
1959
|
}
|
|
1977
1960
|
|
|
1978
1961
|
/**
|
|
1979
|
-
* Set
|
|
1980
|
-
* 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.
|
|
1962
|
+
* Set environment variables of a fleet
|
|
1981
1963
|
* @param {String} projectOrProductUID
|
|
1982
1964
|
* @param {String} fleetUID
|
|
1983
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1965
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1984
1966
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1985
1967
|
*/
|
|
1986
1968
|
}, {
|
|
@@ -2037,8 +2019,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2037
2019
|
}
|
|
2038
2020
|
|
|
2039
2021
|
/**
|
|
2040
|
-
* Set
|
|
2041
|
-
* 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.
|
|
2022
|
+
* Set environment variables of a project
|
|
2042
2023
|
* @param {String} projectOrProductUID
|
|
2043
2024
|
* @param {Object} opts Optional parameters
|
|
2044
2025
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2067,8 +2048,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2067
2048
|
}
|
|
2068
2049
|
|
|
2069
2050
|
/**
|
|
2070
|
-
* Set
|
|
2071
|
-
* 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.
|
|
2051
|
+
* Set environment variables of a project
|
|
2072
2052
|
* @param {String} projectOrProductUID
|
|
2073
2053
|
* @param {Object} opts Optional parameters
|
|
2074
2054
|
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
@@ -2083,7 +2063,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2083
2063
|
}
|
|
2084
2064
|
|
|
2085
2065
|
/**
|
|
2086
|
-
* Update
|
|
2066
|
+
* Update host firmware metadata
|
|
2067
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2087
2068
|
* @param {String} projectOrProductUID
|
|
2088
2069
|
* @param {module:model/String} firmwareType
|
|
2089
2070
|
* @param {String} filename
|
|
@@ -2126,7 +2107,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2126
2107
|
}
|
|
2127
2108
|
|
|
2128
2109
|
/**
|
|
2129
|
-
* Update
|
|
2110
|
+
* Update host firmware metadata
|
|
2111
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2130
2112
|
* @param {String} projectOrProductUID
|
|
2131
2113
|
* @param {module:model/String} firmwareType
|
|
2132
2114
|
* @param {String} filename
|
|
@@ -2142,11 +2124,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2142
2124
|
}
|
|
2143
2125
|
|
|
2144
2126
|
/**
|
|
2145
|
-
* Update
|
|
2146
|
-
* 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. An empty `label` or `smart_rule` keeps the current value; `-` clears it. Requires the Owner or Developer role. Returns 400 for an unknown fleet or DeviceUID.
|
|
2127
|
+
* Update Fleet
|
|
2147
2128
|
* @param {String} projectOrProductUID
|
|
2148
2129
|
* @param {String} fleetUID
|
|
2149
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2130
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2150
2131
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2151
2132
|
*/
|
|
2152
2133
|
}, {
|
|
@@ -2180,11 +2161,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2180
2161
|
}
|
|
2181
2162
|
|
|
2182
2163
|
/**
|
|
2183
|
-
* Update
|
|
2184
|
-
* 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. An empty `label` or `smart_rule` keeps the current value; `-` clears it. Requires the Owner or Developer role. Returns 400 for an unknown fleet or DeviceUID.
|
|
2164
|
+
* Update Fleet
|
|
2185
2165
|
* @param {String} projectOrProductUID
|
|
2186
2166
|
* @param {String} fleetUID
|
|
2187
|
-
* @param {module:model/UpdateFleetRequest} updateFleetRequest
|
|
2167
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2188
2168
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2189
2169
|
*/
|
|
2190
2170
|
}, {
|
|
@@ -2196,10 +2176,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2196
2176
|
}
|
|
2197
2177
|
|
|
2198
2178
|
/**
|
|
2199
|
-
* Update
|
|
2200
|
-
* 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.
|
|
2179
|
+
* Update the value of an existing project secret
|
|
2201
2180
|
* @param {String} projectOrProductUID
|
|
2202
|
-
* @param {String} secretName
|
|
2181
|
+
* @param {String} secretName The name of the secret.
|
|
2203
2182
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2204
2183
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2205
2184
|
*/
|
|
@@ -2234,10 +2213,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2234
2213
|
}
|
|
2235
2214
|
|
|
2236
2215
|
/**
|
|
2237
|
-
* Update
|
|
2238
|
-
* 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.
|
|
2216
|
+
* Update the value of an existing project secret
|
|
2239
2217
|
* @param {String} projectOrProductUID
|
|
2240
|
-
* @param {String} secretName
|
|
2218
|
+
* @param {String} secretName The name of the secret.
|
|
2241
2219
|
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2242
2220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2243
2221
|
*/
|
|
@@ -2250,9 +2228,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2250
2228
|
}
|
|
2251
2229
|
|
|
2252
2230
|
/**
|
|
2253
|
-
* Upload firmware
|
|
2231
|
+
* Upload firmware
|
|
2232
|
+
* Upload a host or Notecard firmware binary. Notehub adds a `$YYYYMMDDHHMMSS` 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. A file that's too large (host 1.5 MB, Notecard 1 MB) or of the wrong type returns 500.
|
|
2254
2233
|
* @param {String} projectOrProductUID
|
|
2255
|
-
* @param {module:model/String} firmwareType
|
|
2234
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2256
2235
|
* @param {String} filename
|
|
2257
2236
|
* @param {File} body contents of the firmware binary
|
|
2258
2237
|
* @param {Object} opts Optional parameters
|
|
@@ -2300,9 +2279,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2300
2279
|
}
|
|
2301
2280
|
|
|
2302
2281
|
/**
|
|
2303
|
-
* Upload firmware
|
|
2282
|
+
* Upload firmware
|
|
2283
|
+
* Upload a host or Notecard firmware binary. Notehub adds a `$YYYYMMDDHHMMSS` 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. A file that's too large (host 1.5 MB, Notecard 1 MB) or of the wrong type returns 500.
|
|
2304
2284
|
* @param {String} projectOrProductUID
|
|
2305
|
-
* @param {module:model/String} firmwareType
|
|
2285
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2306
2286
|
* @param {String} filename
|
|
2307
2287
|
* @param {File} body contents of the firmware binary
|
|
2308
2288
|
* @param {Object} opts Optional parameters
|