@blues-inc/notehub-js 6.2.0-beta.55 → 6.2.0-beta.56

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.
Files changed (179) hide show
  1. package/README.md +318 -308
  2. package/dist/ApiClient.js +150 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +28 -28
  6. package/dist/api/DeviceApi.js +385 -385
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/JobsApi.js +78 -78
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +619 -433
  12. package/dist/api/RouteApi.js +83 -83
  13. package/dist/api/UsageApi.js +67 -67
  14. package/dist/api/WebhookApi.js +108 -108
  15. package/dist/index.js +28 -0
  16. package/dist/model/AWSRoleConfig.js +14 -14
  17. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  18. package/dist/model/Alert.js +76 -74
  19. package/dist/model/AlertDataInner.js +36 -36
  20. package/dist/model/AlertNotificationsInner.js +18 -18
  21. package/dist/model/AwsRoute.js +70 -70
  22. package/dist/model/AzureRoute.js +43 -43
  23. package/dist/model/BatchJobRequests.js +57 -57
  24. package/dist/model/BillingAccount.js +21 -21
  25. package/dist/model/BillingAccountRole.js +9 -9
  26. package/dist/model/BlynkRoute.js +28 -28
  27. package/dist/model/Body.js +5 -5
  28. package/dist/model/CancelJobRun200Response.js +6 -6
  29. package/dist/model/CellularPlan.js +34 -34
  30. package/dist/model/CloneProjectRequest.js +20 -20
  31. package/dist/model/Contact.js +22 -22
  32. package/dist/model/CreateFleetRequest.js +20 -20
  33. package/dist/model/CreateJob201Response.js +8 -8
  34. package/dist/model/CreateLegacyWebhookEventRequest.js +17 -17
  35. package/dist/model/CreateMonitor.js +144 -143
  36. package/dist/model/CreateProductRequest.js +22 -22
  37. package/dist/model/CreateProjectRequest.js +16 -16
  38. package/dist/model/CreateProjectSecretRequest.js +130 -0
  39. package/dist/model/CreateUpdateRepository.js +17 -17
  40. package/dist/model/CurrentFirmware.js +12 -12
  41. package/dist/model/DFUEnv.js +12 -12
  42. package/dist/model/DFUState.js +65 -65
  43. package/dist/model/DataField.js +7 -7
  44. package/dist/model/DataSetField.js +19 -19
  45. package/dist/model/DataUsage.js +14 -14
  46. package/dist/model/DatacakeRoute.js +35 -35
  47. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  48. package/dist/model/DeleteJob200Response.js +6 -6
  49. package/dist/model/DeleteNotefilesRequest.js +7 -7
  50. package/dist/model/Device.js +107 -106
  51. package/dist/model/DeviceDfuHistory.js +20 -19
  52. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  53. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  54. package/dist/model/DeviceDfuStateMachine.js +25 -24
  55. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  56. package/dist/model/DeviceDfuStatus.js +20 -20
  57. package/dist/model/DeviceDfuStatusPage.js +13 -12
  58. package/dist/model/DeviceSession.js +221 -221
  59. package/dist/model/DeviceTowerInfo.js +14 -14
  60. package/dist/model/DeviceUsage.js +32 -32
  61. package/dist/model/DfuActionRequest.js +7 -7
  62. package/dist/model/EmailNotification.js +7 -7
  63. package/dist/model/EnvTreeJsonNode.js +69 -67
  64. package/dist/model/EnvVar.js +18 -18
  65. package/dist/model/EnvironmentVariables.js +8 -8
  66. package/dist/model/Error.js +31 -31
  67. package/dist/model/Event.js +248 -248
  68. package/dist/model/Filter.js +16 -16
  69. package/dist/model/Firmware.js +49 -49
  70. package/dist/model/FirmwareInfo.js +68 -68
  71. package/dist/model/Fleet.js +38 -38
  72. package/dist/model/FleetConnectivityAssurance.js +5 -5
  73. package/dist/model/GetAlerts200Response.js +15 -14
  74. package/dist/model/GetBillingAccount200Response.js +25 -25
  75. package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
  76. package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
  77. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
  78. package/dist/model/GetBillingAccounts200Response.js +10 -9
  79. package/dist/model/GetDataUsage200Response.js +13 -12
  80. package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
  81. package/dist/model/GetDbNote200Response.js +13 -13
  82. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  83. package/dist/model/GetDeviceFleets200Response.js +12 -11
  84. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  85. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  86. package/dist/model/GetDeviceJourney200Response.js +21 -21
  87. package/dist/model/GetDeviceJourney200ResponseJourney.js +17 -16
  88. package/dist/model/GetDeviceJourneys200Response.js +17 -16
  89. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +20 -20
  90. package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
  91. package/dist/model/GetDevicePlans200Response.js +10 -9
  92. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  93. package/dist/model/GetDevicePublicKeys200Response.js +17 -16
  94. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  95. package/dist/model/GetDeviceSessions200Response.js +17 -16
  96. package/dist/model/GetDevices200Response.js +17 -16
  97. package/dist/model/GetEvents200Response.js +21 -20
  98. package/dist/model/GetEventsByCursor200Response.js +24 -23
  99. package/dist/model/GetJobRuns200Response.js +12 -11
  100. package/dist/model/GetJobs200Response.js +12 -11
  101. package/dist/model/GetNotefile200Response.js +11 -11
  102. package/dist/model/GetProducts200Response.js +10 -9
  103. package/dist/model/GetProjectMembers200Response.js +12 -11
  104. package/dist/model/GetProjectSecretsResponse.js +132 -0
  105. package/dist/model/GetProjects200Response.js +10 -9
  106. package/dist/model/GetRouteLogsUsage200Response.js +15 -14
  107. package/dist/model/GetSessionsUsage200Response.js +16 -15
  108. package/dist/model/GetWebhooks200Response.js +10 -9
  109. package/dist/model/GoogleRoute.js +33 -33
  110. package/dist/model/HttpRoute.js +35 -35
  111. package/dist/model/Job.js +35 -35
  112. package/dist/model/JobDefinition.js +26 -26
  113. package/dist/model/JobDefinitionReportOptions.js +28 -28
  114. package/dist/model/JobDefinitionSelect.js +25 -25
  115. package/dist/model/JobDetail.js +48 -48
  116. package/dist/model/JobDetailAllOf.js +7 -7
  117. package/dist/model/JobRun.js +57 -57
  118. package/dist/model/Location.js +40 -40
  119. package/dist/model/Login200Response.js +7 -7
  120. package/dist/model/LoginRequest.js +12 -12
  121. package/dist/model/Monitor.js +115 -114
  122. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  123. package/dist/model/MqttRoute.js +68 -68
  124. package/dist/model/Note.js +31 -31
  125. package/dist/model/NoteInput.js +9 -9
  126. package/dist/model/Notefile.js +23 -22
  127. package/dist/model/NotefileSchema.js +19 -18
  128. package/dist/model/NotehubRoute.js +103 -103
  129. package/dist/model/NotehubRouteSummary.js +23 -23
  130. package/dist/model/OAuth2Error.js +20 -20
  131. package/dist/model/OAuth2TokenResponse.js +23 -23
  132. package/dist/model/PersonalAccessToken.js +34 -34
  133. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  134. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  135. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  136. package/dist/model/Product.js +26 -26
  137. package/dist/model/Project.js +34 -34
  138. package/dist/model/ProjectMember.js +22 -22
  139. package/dist/model/ProjectSecret.js +164 -0
  140. package/dist/model/ProvisionDeviceRequest.js +18 -18
  141. package/dist/model/ProxyRoute.js +29 -29
  142. package/dist/model/QubitroRoute.js +33 -33
  143. package/dist/model/RadRoute.js +31 -31
  144. package/dist/model/Repository.js +22 -22
  145. package/dist/model/RepositoryListResponse.js +12 -11
  146. package/dist/model/RepositoryTokenRequest.js +14 -14
  147. package/dist/model/RepositoryTokenResponse.js +38 -38
  148. package/dist/model/Role.js +9 -9
  149. package/dist/model/RouteLog.js +38 -38
  150. package/dist/model/RouteTransformSettings.js +18 -18
  151. package/dist/model/RunJob200Response.js +8 -8
  152. package/dist/model/S3ArchiveRoute.js +79 -79
  153. package/dist/model/SatelliteDataUsage.js +18 -18
  154. package/dist/model/SatellitePlan.js +29 -29
  155. package/dist/model/SchemaProperty.js +38 -36
  156. package/dist/model/SignalDevice200Response.js +5 -5
  157. package/dist/model/SimUsage.js +19 -19
  158. package/dist/model/SlackBearerNotification.js +25 -25
  159. package/dist/model/SlackRoute.js +48 -48
  160. package/dist/model/SlackWebHookNotification.js +20 -20
  161. package/dist/model/SnowflakeRoute.js +45 -45
  162. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  163. package/dist/model/ThingworxRoute.js +33 -33
  164. package/dist/model/TowerLocation.js +54 -54
  165. package/dist/model/TwilioRoute.js +43 -43
  166. package/dist/model/UpdateFleetRequest.js +33 -33
  167. package/dist/model/UpdateHostFirmwareRequest.js +17 -17
  168. package/dist/model/UpdateProjectSecretRequest.js +115 -0
  169. package/dist/model/UploadMetadata.js +64 -64
  170. package/dist/model/UsageData.js +33 -33
  171. package/dist/model/UsageEventsData.js +49 -49
  172. package/dist/model/UsageEventsResponse.js +15 -14
  173. package/dist/model/UsageRouteLogsData.js +30 -30
  174. package/dist/model/UsageSessionsData.js +43 -43
  175. package/dist/model/UserDfuStateMachine.js +20 -20
  176. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  177. package/dist/model/UserFirmwareInfo.js +12 -12
  178. package/dist/model/WebhookSettings.js +15 -15
  179. package/package.json +3 -3
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  *
29
29
  */
30
30
  /**
31
- * Webhook service.
32
- * @module api/WebhookApi
33
- * @version 6.2.0-beta.55
34
- */
31
+ * Webhook service.
32
+ * @module api/WebhookApi
33
+ * @version 6.2.0-beta.56
34
+ */
35
35
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
37
- * Constructs a new WebhookApi.
38
- * @alias module:api/WebhookApi
39
- * @class
40
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
- * default to {@link module:ApiClient#instance} if unspecified.
42
- */
37
+ * Constructs a new WebhookApi.
38
+ * @alias module:api/WebhookApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
43
  function WebhookApi(apiClient) {
44
44
  _classCallCheck(this, WebhookApi);
45
45
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -47,8 +47,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
50
- * @param {String} productUID
51
- * @param {String} deviceUID
50
+ * @param {String} productUID
51
+ * @param {String} deviceUID
52
52
  * @param {Object.<String, {String: Object}>} requestBody A Note-shaped event with notefile name, JSON body, and optional base64-encoded payload.
53
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
54
54
  */
@@ -69,23 +69,23 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
69
69
  throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createLegacyWebhookEvent");
70
70
  }
71
71
  var pathParams = {
72
- productUID: productUID,
73
- deviceUID: deviceUID
72
+ 'productUID': productUID,
73
+ 'deviceUID': deviceUID
74
74
  };
75
75
  var queryParams = {};
76
76
  var headerParams = {};
77
77
  var formParams = {};
78
- var authNames = ["personalAccessToken"];
79
- var contentTypes = ["application/json"];
80
- var accepts = ["application/json"];
78
+ var authNames = ['personalAccessToken'];
79
+ var contentTypes = ['application/json'];
80
+ var accepts = ['application/json'];
81
81
  var returnType = null;
82
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/webhook-event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
82
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/webhook-event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
83
83
  }
84
84
 
85
85
  /**
86
86
  * Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
87
- * @param {String} productUID
88
- * @param {String} deviceUID
87
+ * @param {String} productUID
88
+ * @param {String} deviceUID
89
89
  * @param {Object.<String, {String: Object}>} requestBody A Note-shaped event with notefile name, JSON body, and optional base64-encoded payload.
90
90
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
91
91
  */
@@ -99,9 +99,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
99
99
 
100
100
  /**
101
101
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
102
- * @param {String} projectOrProductUID
102
+ * @param {String} projectOrProductUID
103
103
  * @param {String} webhookUID Webhook UID
104
- * @param {module:model/WebhookSettings} webhookSettings
104
+ * @param {module:model/WebhookSettings} webhookSettings
105
105
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
106
106
  */
107
107
  }, {
@@ -121,24 +121,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
121
121
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
122
122
  }
123
123
  var pathParams = {
124
- projectOrProductUID: projectOrProductUID,
125
- webhookUID: webhookUID
124
+ 'projectOrProductUID': projectOrProductUID,
125
+ 'webhookUID': webhookUID
126
126
  };
127
127
  var queryParams = {};
128
128
  var headerParams = {};
129
129
  var formParams = {};
130
- var authNames = ["personalAccessToken"];
131
- var contentTypes = ["application/json"];
132
- var accepts = ["application/json"];
130
+ var authNames = ['personalAccessToken'];
131
+ var contentTypes = ['application/json'];
132
+ var accepts = ['application/json'];
133
133
  var returnType = null;
134
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
134
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
135
135
  }
136
136
 
137
137
  /**
138
138
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
139
- * @param {String} projectOrProductUID
139
+ * @param {String} projectOrProductUID
140
140
  * @param {String} webhookUID Webhook UID
141
- * @param {module:model/WebhookSettings} webhookSettings
141
+ * @param {module:model/WebhookSettings} webhookSettings
142
142
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
143
143
  */
144
144
  }, {
@@ -151,9 +151,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
151
151
 
152
152
  /**
153
153
  * Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
154
- * @param {String} productUID
154
+ * @param {String} productUID
155
155
  * @param {String} webhookUID Webhook UID
156
- * @param {String} deviceUID
156
+ * @param {String} deviceUID
157
157
  * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
158
158
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
159
159
  */
@@ -178,25 +178,25 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
178
178
  throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookDeviceEventByProduct");
179
179
  }
180
180
  var pathParams = {
181
- productUID: productUID,
182
- webhookUID: webhookUID,
183
- deviceUID: deviceUID
181
+ 'productUID': productUID,
182
+ 'webhookUID': webhookUID,
183
+ 'deviceUID': deviceUID
184
184
  };
185
185
  var queryParams = {};
186
186
  var headerParams = {};
187
187
  var formParams = {};
188
- var authNames = ["personalAccessToken"];
189
- var contentTypes = ["application/json"];
190
- var accepts = ["application/json"];
188
+ var authNames = ['personalAccessToken'];
189
+ var contentTypes = ['application/json'];
190
+ var accepts = ['application/json'];
191
191
  var returnType = null;
192
- return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/devices/{deviceUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
192
+ return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}/devices/{deviceUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
193
193
  }
194
194
 
195
195
  /**
196
196
  * Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
197
- * @param {String} productUID
197
+ * @param {String} productUID
198
198
  * @param {String} webhookUID Webhook UID
199
- * @param {String} deviceUID
199
+ * @param {String} deviceUID
200
200
  * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
201
201
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
202
202
  */
@@ -210,7 +210,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
210
210
 
211
211
  /**
212
212
  * Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
213
- * @param {String} productUID
213
+ * @param {String} productUID
214
214
  * @param {String} webhookUID Webhook UID
215
215
  * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
216
216
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -232,22 +232,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
232
232
  throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookEventByProduct");
233
233
  }
234
234
  var pathParams = {
235
- productUID: productUID,
236
- webhookUID: webhookUID
235
+ 'productUID': productUID,
236
+ 'webhookUID': webhookUID
237
237
  };
238
238
  var queryParams = {};
239
239
  var headerParams = {};
240
240
  var formParams = {};
241
- var authNames = ["personalAccessToken"];
242
- var contentTypes = ["application/json"];
243
- var accepts = ["application/json"];
241
+ var authNames = ['personalAccessToken'];
242
+ var contentTypes = ['application/json'];
243
+ var accepts = ['application/json'];
244
244
  var returnType = null;
245
- return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
245
+ return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
246
246
  }
247
247
 
248
248
  /**
249
249
  * Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
250
- * @param {String} productUID
250
+ * @param {String} productUID
251
251
  * @param {String} webhookUID Webhook UID
252
252
  * @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
253
253
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -262,7 +262,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
262
262
 
263
263
  /**
264
264
  * Deletes the specified webhook
265
- * @param {String} projectOrProductUID
265
+ * @param {String} projectOrProductUID
266
266
  * @param {String} webhookUID Webhook UID
267
267
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
268
268
  */
@@ -279,22 +279,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
279
279
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
280
280
  }
281
281
  var pathParams = {
282
- projectOrProductUID: projectOrProductUID,
283
- webhookUID: webhookUID
282
+ 'projectOrProductUID': projectOrProductUID,
283
+ 'webhookUID': webhookUID
284
284
  };
285
285
  var queryParams = {};
286
286
  var headerParams = {};
287
287
  var formParams = {};
288
- var authNames = ["personalAccessToken"];
288
+ var authNames = ['personalAccessToken'];
289
289
  var contentTypes = [];
290
- var accepts = ["application/json"];
290
+ var accepts = ['application/json'];
291
291
  var returnType = null;
292
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
292
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
293
293
  }
294
294
 
295
295
  /**
296
296
  * Deletes the specified webhook
297
- * @param {String} projectOrProductUID
297
+ * @param {String} projectOrProductUID
298
298
  * @param {String} webhookUID Webhook UID
299
299
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
300
300
  */
@@ -308,7 +308,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
308
308
 
309
309
  /**
310
310
  * Retrieves the configuration settings for the specified webhook
311
- * @param {String} projectOrProductUID
311
+ * @param {String} projectOrProductUID
312
312
  * @param {String} webhookUID Webhook UID
313
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
314
314
  */
@@ -325,22 +325,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
325
325
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
326
326
  }
327
327
  var pathParams = {
328
- projectOrProductUID: projectOrProductUID,
329
- webhookUID: webhookUID
328
+ 'projectOrProductUID': projectOrProductUID,
329
+ 'webhookUID': webhookUID
330
330
  };
331
331
  var queryParams = {};
332
332
  var headerParams = {};
333
333
  var formParams = {};
334
- var authNames = ["personalAccessToken"];
334
+ var authNames = ['personalAccessToken'];
335
335
  var contentTypes = [];
336
- var accepts = ["application/json"];
336
+ var accepts = ['application/json'];
337
337
  var returnType = _WebhookSettings["default"];
338
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
339
339
  }
340
340
 
341
341
  /**
342
342
  * Retrieves the configuration settings for the specified webhook
343
- * @param {String} projectOrProductUID
343
+ * @param {String} projectOrProductUID
344
344
  * @param {String} webhookUID Webhook UID
345
345
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
346
346
  */
@@ -354,7 +354,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
354
354
 
355
355
  /**
356
356
  * Retrieves the configuration settings for the specified webhook, addressed by productUID.
357
- * @param {String} productUID
357
+ * @param {String} productUID
358
358
  * @param {String} webhookUID Webhook UID
359
359
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
360
360
  */
@@ -371,22 +371,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
371
371
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhookSettingsByProduct");
372
372
  }
373
373
  var pathParams = {
374
- productUID: productUID,
375
- webhookUID: webhookUID
374
+ 'productUID': productUID,
375
+ 'webhookUID': webhookUID
376
376
  };
377
377
  var queryParams = {};
378
378
  var headerParams = {};
379
379
  var formParams = {};
380
- var authNames = ["personalAccessToken"];
380
+ var authNames = ['personalAccessToken'];
381
381
  var contentTypes = [];
382
- var accepts = ["application/json"];
382
+ var accepts = ['application/json'];
383
383
  var returnType = _WebhookSettings["default"];
384
- return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
384
+ return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
385
385
  }
386
386
 
387
387
  /**
388
388
  * Retrieves the configuration settings for the specified webhook, addressed by productUID.
389
- * @param {String} productUID
389
+ * @param {String} productUID
390
390
  * @param {String} webhookUID Webhook UID
391
391
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
392
392
  */
@@ -400,7 +400,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
400
400
 
401
401
  /**
402
402
  * Retrieves all webhooks for the specified project
403
- * @param {String} projectOrProductUID
403
+ * @param {String} projectOrProductUID
404
404
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
405
405
  */
406
406
  }, {
@@ -412,21 +412,21 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
412
412
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhooks");
413
413
  }
414
414
  var pathParams = {
415
- projectOrProductUID: projectOrProductUID
415
+ 'projectOrProductUID': projectOrProductUID
416
416
  };
417
417
  var queryParams = {};
418
418
  var headerParams = {};
419
419
  var formParams = {};
420
- var authNames = ["personalAccessToken"];
420
+ var authNames = ['personalAccessToken'];
421
421
  var contentTypes = [];
422
- var accepts = ["application/json"];
422
+ var accepts = ['application/json'];
423
423
  var returnType = _GetWebhooks200Response["default"];
424
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
424
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
425
425
  }
426
426
 
427
427
  /**
428
428
  * Retrieves all webhooks for the specified project
429
- * @param {String} projectOrProductUID
429
+ * @param {String} projectOrProductUID
430
430
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
431
431
  */
432
432
  }, {
@@ -439,8 +439,8 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
439
439
 
440
440
  /**
441
441
  * Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
442
- * @param {String} productUID
443
- * @param {String} deviceUID
442
+ * @param {String} productUID
443
+ * @param {String} deviceUID
444
444
  * @param {Object} opts Optional parameters
445
445
  * @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
446
446
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -449,7 +449,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
449
449
  key: "updateLegacyWebhookSessionWithHttpInfo",
450
450
  value: function updateLegacyWebhookSessionWithHttpInfo(productUID, deviceUID, opts) {
451
451
  opts = opts || {};
452
- var postBody = opts["requestBody"];
452
+ var postBody = opts['requestBody'];
453
453
  // verify the required parameter 'productUID' is set
454
454
  if (productUID === undefined || productUID === null) {
455
455
  throw new _Error["default"]("Missing the required parameter 'productUID' when calling updateLegacyWebhookSession");
@@ -459,23 +459,23 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
459
459
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling updateLegacyWebhookSession");
460
460
  }
461
461
  var pathParams = {
462
- productUID: productUID,
463
- deviceUID: deviceUID
462
+ 'productUID': productUID,
463
+ 'deviceUID': deviceUID
464
464
  };
465
465
  var queryParams = {};
466
466
  var headerParams = {};
467
467
  var formParams = {};
468
- var authNames = ["personalAccessToken"];
469
- var contentTypes = ["application/json"];
470
- var accepts = ["application/json"];
468
+ var authNames = ['personalAccessToken'];
469
+ var contentTypes = ['application/json'];
470
+ var accepts = ['application/json'];
471
471
  var returnType = null;
472
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/webhook-session", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
472
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/webhook-session', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
473
473
  }
474
474
 
475
475
  /**
476
476
  * Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
477
- * @param {String} productUID
478
- * @param {String} deviceUID
477
+ * @param {String} productUID
478
+ * @param {String} deviceUID
479
479
  * @param {Object} opts Optional parameters
480
480
  * @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
481
481
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
@@ -490,9 +490,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
490
490
 
491
491
  /**
492
492
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
493
- * @param {String} projectOrProductUID
493
+ * @param {String} projectOrProductUID
494
494
  * @param {String} webhookUID Webhook UID
495
- * @param {module:model/WebhookSettings} webhookSettings
495
+ * @param {module:model/WebhookSettings} webhookSettings
496
496
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
497
497
  */
498
498
  }, {
@@ -512,24 +512,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
512
512
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
513
513
  }
514
514
  var pathParams = {
515
- projectOrProductUID: projectOrProductUID,
516
- webhookUID: webhookUID
515
+ 'projectOrProductUID': projectOrProductUID,
516
+ 'webhookUID': webhookUID
517
517
  };
518
518
  var queryParams = {};
519
519
  var headerParams = {};
520
520
  var formParams = {};
521
- var authNames = ["personalAccessToken"];
522
- var contentTypes = ["application/json"];
523
- var accepts = ["application/json"];
521
+ var authNames = ['personalAccessToken'];
522
+ var contentTypes = ['application/json'];
523
+ var accepts = ['application/json'];
524
524
  var returnType = null;
525
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
525
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
526
526
  }
527
527
 
528
528
  /**
529
529
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
530
- * @param {String} projectOrProductUID
530
+ * @param {String} projectOrProductUID
531
531
  * @param {String} webhookUID Webhook UID
532
- * @param {module:model/WebhookSettings} webhookSettings
532
+ * @param {module:model/WebhookSettings} webhookSettings
533
533
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
534
534
  */
535
535
  }, {
@@ -542,9 +542,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
542
542
 
543
543
  /**
544
544
  * Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
545
- * @param {String} productUID
545
+ * @param {String} productUID
546
546
  * @param {String} webhookUID Webhook UID
547
- * @param {module:model/WebhookSettings} webhookSettings
547
+ * @param {module:model/WebhookSettings} webhookSettings
548
548
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
549
549
  */
550
550
  }, {
@@ -564,24 +564,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
564
564
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhookSettingsByProduct");
565
565
  }
566
566
  var pathParams = {
567
- productUID: productUID,
568
- webhookUID: webhookUID
567
+ 'productUID': productUID,
568
+ 'webhookUID': webhookUID
569
569
  };
570
570
  var queryParams = {};
571
571
  var headerParams = {};
572
572
  var formParams = {};
573
- var authNames = ["personalAccessToken"];
574
- var contentTypes = ["application/json"];
575
- var accepts = ["application/json"];
573
+ var authNames = ['personalAccessToken'];
574
+ var contentTypes = ['application/json'];
575
+ var accepts = ['application/json'];
576
576
  var returnType = null;
577
- return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
577
+ return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}/settings', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
578
578
  }
579
579
 
580
580
  /**
581
581
  * Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
582
- * @param {String} productUID
582
+ * @param {String} productUID
583
583
  * @param {String} webhookUID Webhook UID
584
- * @param {module:model/WebhookSettings} webhookSettings
584
+ * @param {module:model/WebhookSettings} webhookSettings
585
585
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
586
586
  */
587
587
  }, {
package/dist/index.js CHANGED
@@ -159,6 +159,12 @@ Object.defineProperty(exports, "CreateProjectRequest", {
159
159
  return _CreateProjectRequest["default"];
160
160
  }
161
161
  });
162
+ Object.defineProperty(exports, "CreateProjectSecretRequest", {
163
+ enumerable: true,
164
+ get: function get() {
165
+ return _CreateProjectSecretRequest["default"];
166
+ }
167
+ });
162
168
  Object.defineProperty(exports, "CreateUpdateRepository", {
163
169
  enumerable: true,
164
170
  get: function get() {
@@ -567,6 +573,12 @@ Object.defineProperty(exports, "GetProjectMembers200Response", {
567
573
  return _GetProjectMembers200Response["default"];
568
574
  }
569
575
  });
576
+ Object.defineProperty(exports, "GetProjectSecretsResponse", {
577
+ enumerable: true,
578
+ get: function get() {
579
+ return _GetProjectSecretsResponse["default"];
580
+ }
581
+ });
570
582
  Object.defineProperty(exports, "GetProjects200Response", {
571
583
  enumerable: true,
572
584
  get: function get() {
@@ -789,6 +801,12 @@ Object.defineProperty(exports, "ProjectMember", {
789
801
  return _ProjectMember["default"];
790
802
  }
791
803
  });
804
+ Object.defineProperty(exports, "ProjectSecret", {
805
+ enumerable: true,
806
+ get: function get() {
807
+ return _ProjectSecret["default"];
808
+ }
809
+ });
792
810
  Object.defineProperty(exports, "ProvisionDeviceRequest", {
793
811
  enumerable: true,
794
812
  get: function get() {
@@ -963,6 +981,12 @@ Object.defineProperty(exports, "UpdateHostFirmwareRequest", {
963
981
  return _UpdateHostFirmwareRequest["default"];
964
982
  }
965
983
  });
984
+ Object.defineProperty(exports, "UpdateProjectSecretRequest", {
985
+ enumerable: true,
986
+ get: function get() {
987
+ return _UpdateProjectSecretRequest["default"];
988
+ }
989
+ });
966
990
  Object.defineProperty(exports, "UploadMetadata", {
967
991
  enumerable: true,
968
992
  get: function get() {
@@ -1058,6 +1082,7 @@ var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("./model/C
1058
1082
  var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
1059
1083
  var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
1060
1084
  var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
1085
+ var _CreateProjectSecretRequest = _interopRequireDefault(require("./model/CreateProjectSecretRequest"));
1061
1086
  var _CreateUpdateRepository = _interopRequireDefault(require("./model/CreateUpdateRepository"));
1062
1087
  var _CurrentFirmware = _interopRequireDefault(require("./model/CurrentFirmware"));
1063
1088
  var _DFUEnv = _interopRequireDefault(require("./model/DFUEnv"));
@@ -1123,6 +1148,7 @@ var _GetJobs200Response = _interopRequireDefault(require("./model/GetJobs200Resp
1123
1148
  var _GetNotefile200Response = _interopRequireDefault(require("./model/GetNotefile200Response"));
1124
1149
  var _GetProducts200Response = _interopRequireDefault(require("./model/GetProducts200Response"));
1125
1150
  var _GetProjectMembers200Response = _interopRequireDefault(require("./model/GetProjectMembers200Response"));
1151
+ var _GetProjectSecretsResponse = _interopRequireDefault(require("./model/GetProjectSecretsResponse"));
1126
1152
  var _GetProjects200Response = _interopRequireDefault(require("./model/GetProjects200Response"));
1127
1153
  var _GetRouteLogsUsage200Response = _interopRequireDefault(require("./model/GetRouteLogsUsage200Response"));
1128
1154
  var _GetSessionsUsage200Response = _interopRequireDefault(require("./model/GetSessionsUsage200Response"));
@@ -1157,6 +1183,7 @@ var _PersonalAccessTokenSecret = _interopRequireDefault(require("./model/Persona
1157
1183
  var _Product = _interopRequireDefault(require("./model/Product"));
1158
1184
  var _Project = _interopRequireDefault(require("./model/Project"));
1159
1185
  var _ProjectMember = _interopRequireDefault(require("./model/ProjectMember"));
1186
+ var _ProjectSecret = _interopRequireDefault(require("./model/ProjectSecret"));
1160
1187
  var _ProvisionDeviceRequest = _interopRequireDefault(require("./model/ProvisionDeviceRequest"));
1161
1188
  var _ProxyRoute = _interopRequireDefault(require("./model/ProxyRoute"));
1162
1189
  var _QubitroRoute = _interopRequireDefault(require("./model/QubitroRoute"));
@@ -1185,6 +1212,7 @@ var _TowerLocation = _interopRequireDefault(require("./model/TowerLocation"));
1185
1212
  var _TwilioRoute = _interopRequireDefault(require("./model/TwilioRoute"));
1186
1213
  var _UpdateFleetRequest = _interopRequireDefault(require("./model/UpdateFleetRequest"));
1187
1214
  var _UpdateHostFirmwareRequest = _interopRequireDefault(require("./model/UpdateHostFirmwareRequest"));
1215
+ var _UpdateProjectSecretRequest = _interopRequireDefault(require("./model/UpdateProjectSecretRequest"));
1188
1216
  var _UploadMetadata = _interopRequireDefault(require("./model/UploadMetadata"));
1189
1217
  var _UsageData = _interopRequireDefault(require("./model/UsageData"));
1190
1218
  var _UsageEventsData = _interopRequireDefault(require("./model/UsageEventsData"));