@blues-inc/notehub-js 1.0.9 → 1.0.11

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 (82) hide show
  1. package/README.md +181 -178
  2. package/dist/ApiClient.js +157 -154
  3. package/dist/api/AuthorizationApi.js +63 -18
  4. package/dist/api/BillingAccountApi.js +15 -15
  5. package/dist/api/DeviceApi.js +159 -159
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +139 -139
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +7 -0
  16. package/dist/model/Aws.js +65 -64
  17. package/dist/model/Azure.js +51 -37
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/EnvironmentVariables.js +7 -7
  32. package/dist/model/Error.js +30 -30
  33. package/dist/model/Event.js +222 -222
  34. package/dist/model/Fleet.js +20 -20
  35. package/dist/model/GenerateAuthToken200Response.js +114 -0
  36. package/dist/model/GetBillingAccounts200Response.js +8 -9
  37. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  38. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  39. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  40. package/dist/model/GetDeviceLatest200Response.js +8 -9
  41. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  42. package/dist/model/GetDeviceSessions200Response.js +15 -16
  43. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  45. package/dist/model/GetProjectDevices200Response.js +15 -16
  46. package/dist/model/GetProjectEvents200Response.js +20 -21
  47. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  48. package/dist/model/GetProjectFleets200Response.js +10 -11
  49. package/dist/model/GetProjectMembers200Response.js +10 -11
  50. package/dist/model/GetProjectProducts200Response.js +8 -9
  51. package/dist/model/GetProjects200Response.js +8 -9
  52. package/dist/model/Google.js +27 -27
  53. package/dist/model/HandleNoteChanges200Response.js +10 -10
  54. package/dist/model/HandleNoteGet200Response.js +12 -12
  55. package/dist/model/HandleNoteSignal200Response.js +4 -4
  56. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  57. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  58. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  59. package/dist/model/Http.js +34 -34
  60. package/dist/model/HttpFilter.js +18 -18
  61. package/dist/model/HttpTransform.js +19 -19
  62. package/dist/model/Location.js +39 -39
  63. package/dist/model/Login200Response.js +6 -6
  64. package/dist/model/LoginRequest.js +11 -11
  65. package/dist/model/Mqtt.js +70 -71
  66. package/dist/model/Note.js +9 -9
  67. package/dist/model/Product.js +25 -25
  68. package/dist/model/Project.js +33 -33
  69. package/dist/model/ProjectMember.js +21 -21
  70. package/dist/model/Proxy.js +23 -23
  71. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  72. package/dist/model/Radresponder.js +25 -25
  73. package/dist/model/Route.js +35 -35
  74. package/dist/model/RouteSchema.js +53 -43
  75. package/dist/model/Snowflake.js +45 -45
  76. package/dist/model/SnowflakeTransform.js +11 -11
  77. package/dist/model/Thingworx.js +33 -32
  78. package/dist/model/TowerLocation.js +51 -51
  79. package/dist/model/Twilio.js +43 -43
  80. package/dist/model/UpdateFleetRequest.js +16 -16
  81. package/dist/model/UserDbRoute.js +24 -24
  82. package/package.json +3 -3
@@ -16,18 +16,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
16
16
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
17
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
18
  /**
19
- * Route service.
20
- * @module api/RouteApi
21
- * @version 1.0.9
22
- */
19
+ * Route service.
20
+ * @module api/RouteApi
21
+ * @version 1.0.11
22
+ */
23
23
  var RouteApi = /*#__PURE__*/function () {
24
24
  /**
25
- * Constructs a new RouteApi.
26
- * @alias module:api/RouteApi
27
- * @class
28
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
29
- * default to {@link module:ApiClient#instance} if unspecified.
30
- */
25
+ * Constructs a new RouteApi.
26
+ * @alias module:api/RouteApi
27
+ * @class
28
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
29
+ * default to {@link module:ApiClient#instance} if unspecified.
30
+ */
31
31
  function RouteApi(apiClient) {
32
32
  _classCallCheck(this, RouteApi);
33
33
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -35,7 +35,7 @@ var RouteApi = /*#__PURE__*/function () {
35
35
 
36
36
  /**
37
37
  * Create Route within a Project
38
- * @param {String} projectUID
38
+ * @param {String} projectUID
39
39
  * @param {module:model/Route} route Route to be Created
40
40
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
41
41
  */
@@ -52,21 +52,21 @@ var RouteApi = /*#__PURE__*/function () {
52
52
  throw new _Error["default"]("Missing the required parameter 'route' when calling createRoute");
53
53
  }
54
54
  var pathParams = {
55
- 'projectUID': projectUID
55
+ projectUID: projectUID
56
56
  };
57
57
  var queryParams = {};
58
58
  var headerParams = {};
59
59
  var formParams = {};
60
- var authNames = ['api_key'];
61
- var contentTypes = ['application/json'];
62
- var accepts = ['application/json'];
60
+ var authNames = ["bearer_access_token"];
61
+ var contentTypes = ["application/json"];
62
+ var accepts = ["application/json"];
63
63
  var returnType = _Route["default"];
64
- return this.apiClient.callApi('/v1/projects/{projectUID}/routes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
64
+ return this.apiClient.callApi("/v1/projects/{projectUID}/routes", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
65
65
  }
66
66
 
67
67
  /**
68
68
  * Create Route within a Project
69
- * @param {String} projectUID
69
+ * @param {String} projectUID
70
70
  * @param {module:model/Route} route Route to be Created
71
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
72
72
  */
@@ -80,8 +80,8 @@ var RouteApi = /*#__PURE__*/function () {
80
80
 
81
81
  /**
82
82
  * Delete single route within a project
83
- * @param {String} projectUID
84
- * @param {String} routeUID
83
+ * @param {String} projectUID
84
+ * @param {String} routeUID
85
85
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
86
86
  */
87
87
  }, {
@@ -97,23 +97,23 @@ var RouteApi = /*#__PURE__*/function () {
97
97
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
98
98
  }
99
99
  var pathParams = {
100
- 'projectUID': projectUID,
101
- 'routeUID': routeUID
100
+ projectUID: projectUID,
101
+ routeUID: routeUID
102
102
  };
103
103
  var queryParams = {};
104
104
  var headerParams = {};
105
105
  var formParams = {};
106
- var authNames = ['api_key'];
106
+ var authNames = ["bearer_access_token"];
107
107
  var contentTypes = [];
108
- var accepts = ['application/json'];
108
+ var accepts = ["application/json"];
109
109
  var returnType = Object;
110
- return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
110
+ return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
111
111
  }
112
112
 
113
113
  /**
114
114
  * Delete single route within a project
115
- * @param {String} projectUID
116
- * @param {String} routeUID
115
+ * @param {String} projectUID
116
+ * @param {String} routeUID
117
117
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
118
118
  */
119
119
  }, {
@@ -126,8 +126,8 @@ var RouteApi = /*#__PURE__*/function () {
126
126
 
127
127
  /**
128
128
  * Get single route within a project
129
- * @param {String} projectUID
130
- * @param {String} routeUID
129
+ * @param {String} projectUID
130
+ * @param {String} routeUID
131
131
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
132
132
  */
133
133
  }, {
@@ -143,23 +143,23 @@ var RouteApi = /*#__PURE__*/function () {
143
143
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
144
144
  }
145
145
  var pathParams = {
146
- 'projectUID': projectUID,
147
- 'routeUID': routeUID
146
+ projectUID: projectUID,
147
+ routeUID: routeUID
148
148
  };
149
149
  var queryParams = {};
150
150
  var headerParams = {};
151
151
  var formParams = {};
152
- var authNames = ['api_key'];
152
+ var authNames = ["bearer_access_token"];
153
153
  var contentTypes = [];
154
- var accepts = ['application/json'];
154
+ var accepts = ["application/json"];
155
155
  var returnType = _Route["default"];
156
- return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
156
+ return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
157
157
  }
158
158
 
159
159
  /**
160
160
  * Get single route within a project
161
- * @param {String} projectUID
162
- * @param {String} routeUID
161
+ * @param {String} projectUID
162
+ * @param {String} routeUID
163
163
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
164
164
  */
165
165
  }, {
@@ -172,7 +172,7 @@ var RouteApi = /*#__PURE__*/function () {
172
172
 
173
173
  /**
174
174
  * Get all Routes within a Project
175
- * @param {String} projectUID
175
+ * @param {String} projectUID
176
176
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
177
177
  */
178
178
  }, {
@@ -184,21 +184,21 @@ var RouteApi = /*#__PURE__*/function () {
184
184
  throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getRoutes");
185
185
  }
186
186
  var pathParams = {
187
- 'projectUID': projectUID
187
+ projectUID: projectUID
188
188
  };
189
189
  var queryParams = {};
190
190
  var headerParams = {};
191
191
  var formParams = {};
192
- var authNames = ['api_key'];
192
+ var authNames = ["bearer_access_token"];
193
193
  var contentTypes = [];
194
- var accepts = ['application/json'];
194
+ var accepts = ["application/json"];
195
195
  var returnType = [_UserDbRoute["default"]];
196
- return this.apiClient.callApi('/v1/projects/{projectUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
196
+ return this.apiClient.callApi("/v1/projects/{projectUID}/routes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
197
197
  }
198
198
 
199
199
  /**
200
200
  * Get all Routes within a Project
201
- * @param {String} projectUID
201
+ * @param {String} projectUID
202
202
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
203
203
  */
204
204
  }, {
@@ -211,8 +211,8 @@ var RouteApi = /*#__PURE__*/function () {
211
211
 
212
212
  /**
213
213
  * Update route by UID
214
- * @param {String} projectUID
215
- * @param {String} routeUID
214
+ * @param {String} projectUID
215
+ * @param {String} routeUID
216
216
  * @param {module:model/Route} route Route settings to be updated
217
217
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
218
218
  */
@@ -233,23 +233,23 @@ var RouteApi = /*#__PURE__*/function () {
233
233
  throw new _Error["default"]("Missing the required parameter 'route' when calling updateRoute");
234
234
  }
235
235
  var pathParams = {
236
- 'projectUID': projectUID,
237
- 'routeUID': routeUID
236
+ projectUID: projectUID,
237
+ routeUID: routeUID
238
238
  };
239
239
  var queryParams = {};
240
240
  var headerParams = {};
241
241
  var formParams = {};
242
- var authNames = ['api_key'];
243
- var contentTypes = ['application/json'];
244
- var accepts = ['application/json'];
242
+ var authNames = ["bearer_access_token"];
243
+ var contentTypes = ["application/json"];
244
+ var accepts = ["application/json"];
245
245
  var returnType = _Route["default"];
246
- return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
246
+ return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
247
247
  }
248
248
 
249
249
  /**
250
250
  * Update route by UID
251
- * @param {String} projectUID
252
- * @param {String} routeUID
251
+ * @param {String} projectUID
252
+ * @param {String} routeUID
253
253
  * @param {module:model/Route} route Route settings to be updated
254
254
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
255
255
  */
package/dist/index.js CHANGED
@@ -177,6 +177,12 @@ Object.defineProperty(exports, "FleetApi", {
177
177
  return _FleetApi["default"];
178
178
  }
179
179
  });
180
+ Object.defineProperty(exports, "GenerateAuthToken200Response", {
181
+ enumerable: true,
182
+ get: function get() {
183
+ return _GenerateAuthToken200Response["default"];
184
+ }
185
+ });
180
186
  Object.defineProperty(exports, "GetBillingAccounts200Response", {
181
187
  enumerable: true,
182
188
  get: function get() {
@@ -504,6 +510,7 @@ var _EnvironmentVariables = _interopRequireDefault(require("./model/EnvironmentV
504
510
  var _Error = _interopRequireDefault(require("./model/Error"));
505
511
  var _Event = _interopRequireDefault(require("./model/Event"));
506
512
  var _Fleet = _interopRequireDefault(require("./model/Fleet"));
513
+ var _GenerateAuthToken200Response = _interopRequireDefault(require("./model/GenerateAuthToken200Response"));
507
514
  var _GetBillingAccounts200Response = _interopRequireDefault(require("./model/GetBillingAccounts200Response"));
508
515
  var _GetDeviceEnvironmentVariables200Response = _interopRequireDefault(require("./model/GetDeviceEnvironmentVariables200Response"));
509
516
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
package/dist/model/Aws.js CHANGED
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The Aws model module.
19
19
  * @module model/Aws
20
- * @version 1.0.9
20
+ * @version 1.0.11
21
21
  */
22
22
  var Aws = /*#__PURE__*/function () {
23
23
  /**
@@ -51,49 +51,49 @@ var Aws = /*#__PURE__*/function () {
51
51
  value: function constructFromObject(data, obj) {
52
52
  if (data) {
53
53
  obj = obj || new Aws();
54
- if (data.hasOwnProperty('fleets')) {
55
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
54
+ if (data.hasOwnProperty("fleets")) {
55
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
56
56
  }
57
- if (data.hasOwnProperty('filter')) {
58
- obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
57
+ if (data.hasOwnProperty("filter")) {
58
+ obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
59
59
  }
60
- if (data.hasOwnProperty('transform')) {
61
- obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
60
+ if (data.hasOwnProperty("transform")) {
61
+ obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
62
62
  }
63
- if (data.hasOwnProperty('throttle_ms')) {
64
- obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
63
+ if (data.hasOwnProperty("throttle_ms")) {
64
+ obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
65
65
  }
66
- if (data.hasOwnProperty('url')) {
67
- obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
66
+ if (data.hasOwnProperty("url")) {
67
+ obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
68
68
  }
69
- if (data.hasOwnProperty('http_headers')) {
70
- obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
71
- 'String': 'String'
69
+ if (data.hasOwnProperty("http_headers")) {
70
+ obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
71
+ String: "String"
72
72
  });
73
73
  }
74
- if (data.hasOwnProperty('disable_http_headers')) {
75
- obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
74
+ if (data.hasOwnProperty("disable_http_headers")) {
75
+ obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
76
76
  }
77
- if (data.hasOwnProperty('timeout')) {
78
- obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
77
+ if (data.hasOwnProperty("timeout")) {
78
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
79
79
  }
80
- if (data.hasOwnProperty('region')) {
81
- obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
80
+ if (data.hasOwnProperty("region")) {
81
+ obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
82
82
  }
83
- if (data.hasOwnProperty('access_key_id')) {
84
- obj['access_key_id'] = _ApiClient["default"].convertToType(data['access_key_id'], 'String');
83
+ if (data.hasOwnProperty("access_key_id")) {
84
+ obj["access_key_id"] = _ApiClient["default"].convertToType(data["access_key_id"], "String");
85
85
  }
86
- if (data.hasOwnProperty('access_key_secret')) {
87
- obj['access_key_secret'] = _ApiClient["default"].convertToType(data['access_key_secret'], 'String');
86
+ if (data.hasOwnProperty("access_key_secret")) {
87
+ obj["access_key_secret"] = _ApiClient["default"].convertToType(data["access_key_secret"], "String");
88
88
  }
89
- if (data.hasOwnProperty('message_group_id')) {
90
- obj['message_group_id'] = _ApiClient["default"].convertToType(data['message_group_id'], 'String');
89
+ if (data.hasOwnProperty("message_group_id")) {
90
+ obj["message_group_id"] = _ApiClient["default"].convertToType(data["message_group_id"], "String");
91
91
  }
92
- if (data.hasOwnProperty('message_deduplication_id')) {
93
- obj['message_deduplication_id'] = _ApiClient["default"].convertToType(data['message_deduplication_id'], 'String');
92
+ if (data.hasOwnProperty("message_deduplication_id")) {
93
+ obj["message_deduplication_id"] = _ApiClient["default"].convertToType(data["message_deduplication_id"], "String");
94
94
  }
95
- if (data.hasOwnProperty('channel')) {
96
- obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String');
95
+ if (data.hasOwnProperty("channel")) {
96
+ obj["channel"] = _ApiClient["default"].convertToType(data["channel"], "String");
97
97
  }
98
98
  } else if (data === null) {
99
99
  return null;
@@ -110,46 +110,46 @@ var Aws = /*#__PURE__*/function () {
110
110
  key: "validateJSON",
111
111
  value: function validateJSON(data) {
112
112
  // ensure the json data is an array
113
- if (!Array.isArray(data['fleets'])) {
114
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
113
+ if (!Array.isArray(data["fleets"])) {
114
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
115
115
  }
116
116
  // validate the optional field `filter`
117
- if (data['filter']) {
117
+ if (data["filter"]) {
118
118
  // data not null
119
- _HttpFilter["default"].validateJSON(data['filter']);
119
+ _HttpFilter["default"].validateJSON(data["filter"]);
120
120
  }
121
121
  // validate the optional field `transform`
122
- if (data['transform']) {
122
+ if (data["transform"]) {
123
123
  // data not null
124
- _HttpTransform["default"].validateJSON(data['transform']);
124
+ _HttpTransform["default"].validateJSON(data["transform"]);
125
125
  }
126
126
  // ensure the json data is a string
127
- if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
128
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
127
+ if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
128
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
129
129
  }
130
130
  // ensure the json data is a string
131
- if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
132
- throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
131
+ if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
132
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
133
133
  }
134
134
  // ensure the json data is a string
135
- if (data['access_key_id'] && !(typeof data['access_key_id'] === 'string' || data['access_key_id'] instanceof String)) {
136
- throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data['access_key_id']);
135
+ if (data["access_key_id"] && !(typeof data["access_key_id"] === "string" || data["access_key_id"] instanceof String)) {
136
+ throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data["access_key_id"]);
137
137
  }
138
138
  // ensure the json data is a string
139
- if (data['access_key_secret'] && !(typeof data['access_key_secret'] === 'string' || data['access_key_secret'] instanceof String)) {
140
- throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data['access_key_secret']);
139
+ if (data["access_key_secret"] && !(typeof data["access_key_secret"] === "string" || data["access_key_secret"] instanceof String)) {
140
+ throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data["access_key_secret"]);
141
141
  }
142
142
  // ensure the json data is a string
143
- if (data['message_group_id'] && !(typeof data['message_group_id'] === 'string' || data['message_group_id'] instanceof String)) {
144
- throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data['message_group_id']);
143
+ if (data["message_group_id"] && !(typeof data["message_group_id"] === "string" || data["message_group_id"] instanceof String)) {
144
+ throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data["message_group_id"]);
145
145
  }
146
146
  // ensure the json data is a string
147
- if (data['message_deduplication_id'] && !(typeof data['message_deduplication_id'] === 'string' || data['message_deduplication_id'] instanceof String)) {
148
- throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data['message_deduplication_id']);
147
+ if (data["message_deduplication_id"] && !(typeof data["message_deduplication_id"] === "string" || data["message_deduplication_id"] instanceof String)) {
148
+ throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data["message_deduplication_id"]);
149
149
  }
150
150
  // ensure the json data is a string
151
- if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
152
- throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
151
+ if (data["channel"] && !(typeof data["channel"] === "string" || data["channel"] instanceof String)) {
152
+ throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data["channel"]);
153
153
  }
154
154
  return true;
155
155
  }
@@ -160,74 +160,75 @@ var Aws = /*#__PURE__*/function () {
160
160
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
161
161
  * @member {Array.<String>} fleets
162
162
  */
163
- Aws.prototype['fleets'] = undefined;
163
+ Aws.prototype["fleets"] = undefined;
164
164
 
165
165
  /**
166
166
  * @member {module:model/HttpFilter} filter
167
167
  */
168
- Aws.prototype['filter'] = undefined;
168
+ Aws.prototype["filter"] = undefined;
169
169
 
170
170
  /**
171
171
  * @member {module:model/HttpTransform} transform
172
172
  */
173
- Aws.prototype['transform'] = undefined;
173
+ Aws.prototype["transform"] = undefined;
174
174
 
175
175
  /**
176
176
  * @member {Number} throttle_ms
177
177
  */
178
- Aws.prototype['throttle_ms'] = undefined;
178
+ Aws.prototype["throttle_ms"] = undefined;
179
179
 
180
180
  /**
181
181
  * @member {String} url
182
182
  */
183
- Aws.prototype['url'] = undefined;
183
+ Aws.prototype["url"] = undefined;
184
184
 
185
185
  /**
186
186
  * @member {Object.<String, String>} http_headers
187
187
  */
188
- Aws.prototype['http_headers'] = undefined;
188
+ Aws.prototype["http_headers"] = undefined;
189
189
 
190
190
  /**
191
191
  * @member {Boolean} disable_http_headers
192
192
  * @default false
193
193
  */
194
- Aws.prototype['disable_http_headers'] = false;
194
+ Aws.prototype["disable_http_headers"] = false;
195
195
 
196
196
  /**
197
197
  * Timeout in seconds for each request
198
198
  * @member {Number} timeout
199
199
  * @default 15
200
200
  */
201
- Aws.prototype['timeout'] = 15;
201
+ Aws.prototype["timeout"] = 15;
202
202
 
203
203
  /**
204
204
  * @member {String} region
205
205
  */
206
- Aws.prototype['region'] = undefined;
206
+ Aws.prototype["region"] = undefined;
207
207
 
208
208
  /**
209
209
  * @member {String} access_key_id
210
210
  */
211
- Aws.prototype['access_key_id'] = undefined;
211
+ Aws.prototype["access_key_id"] = undefined;
212
212
 
213
213
  /**
214
+ * This value is input-only and will be omitted from the response and replaced with a placeholder
214
215
  * @member {String} access_key_secret
215
216
  */
216
- Aws.prototype['access_key_secret'] = undefined;
217
+ Aws.prototype["access_key_secret"] = undefined;
217
218
 
218
219
  /**
219
220
  * @member {String} message_group_id
220
221
  */
221
- Aws.prototype['message_group_id'] = undefined;
222
+ Aws.prototype["message_group_id"] = undefined;
222
223
 
223
224
  /**
224
225
  * @member {String} message_deduplication_id
225
226
  */
226
- Aws.prototype['message_deduplication_id'] = undefined;
227
+ Aws.prototype["message_deduplication_id"] = undefined;
227
228
 
228
229
  /**
229
230
  * @member {String} channel
230
231
  */
231
- Aws.prototype['channel'] = undefined;
232
+ Aws.prototype["channel"] = undefined;
232
233
  var _default = Aws;
233
234
  exports["default"] = _default;