@aws-sdk/client-iot-data-plane 3.927.0 → 3.929.0

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 (29) hide show
  1. package/dist-cjs/index.js +540 -512
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/IoTDataPlaneClient.js +2 -0
  4. package/dist-es/commands/DeleteConnectionCommand.js +3 -9
  5. package/dist-es/commands/DeleteThingShadowCommand.js +3 -9
  6. package/dist-es/commands/GetRetainedMessageCommand.js +3 -9
  7. package/dist-es/commands/GetThingShadowCommand.js +3 -9
  8. package/dist-es/commands/ListNamedShadowsForThingCommand.js +3 -9
  9. package/dist-es/commands/ListRetainedMessagesCommand.js +3 -9
  10. package/dist-es/commands/PublishCommand.js +3 -9
  11. package/dist-es/commands/UpdateThingShadowCommand.js +3 -9
  12. package/dist-es/runtimeConfig.shared.js +2 -0
  13. package/dist-es/schemas/schemas_0.js +506 -0
  14. package/dist-types/IoTDataPlaneClient.d.ts +10 -1
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +40 -0
  20. package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +4 -0
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
  26. package/package.json +5 -5
  27. package/dist-es/protocols/Aws_restJson1.js +0 -440
  28. package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -101
@@ -0,0 +1,46 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticOperationSchema,
5
+ StaticSimpleSchema,
6
+ StaticStructureSchema,
7
+ } from "@smithy/types";
8
+ export declare var SynthesizedJsonUserProperties: StaticSimpleSchema;
9
+ export declare var ConflictException: StaticErrorSchema;
10
+ export declare var DeleteConnectionRequest: StaticStructureSchema;
11
+ export declare var DeleteThingShadowRequest: StaticStructureSchema;
12
+ export declare var DeleteThingShadowResponse: StaticStructureSchema;
13
+ export declare var ForbiddenException: StaticErrorSchema;
14
+ export declare var GetRetainedMessageRequest: StaticStructureSchema;
15
+ export declare var GetRetainedMessageResponse: StaticStructureSchema;
16
+ export declare var GetThingShadowRequest: StaticStructureSchema;
17
+ export declare var GetThingShadowResponse: StaticStructureSchema;
18
+ export declare var InternalFailureException: StaticErrorSchema;
19
+ export declare var InvalidRequestException: StaticErrorSchema;
20
+ export declare var ListNamedShadowsForThingRequest: StaticStructureSchema;
21
+ export declare var ListNamedShadowsForThingResponse: StaticStructureSchema;
22
+ export declare var ListRetainedMessagesRequest: StaticStructureSchema;
23
+ export declare var ListRetainedMessagesResponse: StaticStructureSchema;
24
+ export declare var MethodNotAllowedException: StaticErrorSchema;
25
+ export declare var PublishRequest: StaticStructureSchema;
26
+ export declare var RequestEntityTooLargeException: StaticErrorSchema;
27
+ export declare var ResourceNotFoundException: StaticErrorSchema;
28
+ export declare var RetainedMessageSummary: StaticStructureSchema;
29
+ export declare var ServiceUnavailableException: StaticErrorSchema;
30
+ export declare var ThrottlingException: StaticErrorSchema;
31
+ export declare var UnauthorizedException: StaticErrorSchema;
32
+ export declare var UnsupportedDocumentEncodingException: StaticErrorSchema;
33
+ export declare var UpdateThingShadowRequest: StaticStructureSchema;
34
+ export declare var UpdateThingShadowResponse: StaticStructureSchema;
35
+ export declare var __Unit: "unit";
36
+ export declare var IoTDataPlaneServiceException: StaticErrorSchema;
37
+ export declare var NamedShadowList: number;
38
+ export declare var RetainedMessageList: StaticListSchema;
39
+ export declare var DeleteConnection: StaticOperationSchema;
40
+ export declare var DeleteThingShadow: StaticOperationSchema;
41
+ export declare var GetRetainedMessage: StaticOperationSchema;
42
+ export declare var GetThingShadow: StaticOperationSchema;
43
+ export declare var ListNamedShadowsForThing: StaticOperationSchema;
44
+ export declare var ListRetainedMessages: StaticOperationSchema;
45
+ export declare var Publish: StaticOperationSchema;
46
+ export declare var UpdateThingShadow: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.927.0",
4
+ "version": "3.929.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iot-data-plane",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.927.0",
24
- "@aws-sdk/credential-provider-node": "3.927.0",
23
+ "@aws-sdk/core": "3.928.0",
24
+ "@aws-sdk/credential-provider-node": "3.929.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.927.0",
28
+ "@aws-sdk/middleware-user-agent": "3.928.0",
29
29
  "@aws-sdk/region-config-resolver": "3.925.0",
30
30
  "@aws-sdk/types": "3.922.0",
31
31
  "@aws-sdk/util-endpoints": "3.922.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.927.0",
33
+ "@aws-sdk/util-user-agent-node": "3.928.0",
34
34
  "@smithy/config-resolver": "^4.4.2",
35
35
  "@smithy/core": "^3.17.2",
36
36
  "@smithy/fetch-http-handler": "^5.3.5",
@@ -1,440 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, LazyJsonString as __LazyJsonString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { IoTDataPlaneServiceException as __BaseException } from "../models/IoTDataPlaneServiceException";
5
- import { ConflictException, ForbiddenException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, } from "../models/models_0";
6
- export const se_DeleteConnectionCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {};
9
- b.bp("/connections/{clientId}");
10
- b.p("clientId", () => input.clientId, "{clientId}", false);
11
- const query = map({
12
- [_cS]: [() => input.cleanSession !== void 0, () => input[_cS].toString()],
13
- [_pWM]: [() => input.preventWillMessage !== void 0, () => input[_pWM].toString()],
14
- });
15
- let body;
16
- b.m("DELETE").h(headers).q(query).b(body);
17
- return b.build();
18
- };
19
- export const se_DeleteThingShadowCommand = async (input, context) => {
20
- const b = rb(input, context);
21
- const headers = {};
22
- b.bp("/things/{thingName}/shadow");
23
- b.p("thingName", () => input.thingName, "{thingName}", false);
24
- const query = map({
25
- [_n]: [, input[_sN]],
26
- });
27
- let body;
28
- b.m("DELETE").h(headers).q(query).b(body);
29
- return b.build();
30
- };
31
- export const se_GetRetainedMessageCommand = async (input, context) => {
32
- const b = rb(input, context);
33
- const headers = {};
34
- b.bp("/retainedMessage/{topic}");
35
- b.p("topic", () => input.topic, "{topic}", false);
36
- let body;
37
- b.m("GET").h(headers).b(body);
38
- return b.build();
39
- };
40
- export const se_GetThingShadowCommand = async (input, context) => {
41
- const b = rb(input, context);
42
- const headers = {};
43
- b.bp("/things/{thingName}/shadow");
44
- b.p("thingName", () => input.thingName, "{thingName}", false);
45
- const query = map({
46
- [_n]: [, input[_sN]],
47
- });
48
- let body;
49
- b.m("GET").h(headers).q(query).b(body);
50
- return b.build();
51
- };
52
- export const se_ListNamedShadowsForThingCommand = async (input, context) => {
53
- const b = rb(input, context);
54
- const headers = {};
55
- b.bp("/api/things/shadow/ListNamedShadowsForThing/{thingName}");
56
- b.p("thingName", () => input.thingName, "{thingName}", false);
57
- const query = map({
58
- [_nT]: [, input[_nT]],
59
- [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
60
- });
61
- let body;
62
- b.m("GET").h(headers).q(query).b(body);
63
- return b.build();
64
- };
65
- export const se_ListRetainedMessagesCommand = async (input, context) => {
66
- const b = rb(input, context);
67
- const headers = {};
68
- b.bp("/retainedMessage");
69
- const query = map({
70
- [_nT]: [, input[_nT]],
71
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
72
- });
73
- let body;
74
- b.m("GET").h(headers).q(query).b(body);
75
- return b.build();
76
- };
77
- export const se_PublishCommand = async (input, context) => {
78
- const b = rb(input, context);
79
- const headers = map({}, isSerializableHeaderValue, {
80
- "content-type": "application/octet-stream",
81
- [_xamup]: [
82
- () => isSerializableHeaderValue(input[_uP]),
83
- () => context.base64Encoder(Buffer.from(__LazyJsonString.from(input[_uP]))),
84
- ],
85
- [_xampfi]: input[_pFI],
86
- [_xamcd]: input[_cD],
87
- });
88
- b.bp("/topics/{topic}");
89
- b.p("topic", () => input.topic, "{topic}", false);
90
- const query = map({
91
- [_q]: [() => input.qos !== void 0, () => input[_q].toString()],
92
- [_r]: [() => input.retain !== void 0, () => input[_r].toString()],
93
- [_cT]: [, input[_cT]],
94
- [_rT]: [, input[_rT]],
95
- [_mE]: [() => input.messageExpiry !== void 0, () => input[_mE].toString()],
96
- });
97
- let body;
98
- if (input.payload !== undefined) {
99
- body = input.payload;
100
- }
101
- b.m("POST").h(headers).q(query).b(body);
102
- return b.build();
103
- };
104
- export const se_UpdateThingShadowCommand = async (input, context) => {
105
- const b = rb(input, context);
106
- const headers = {
107
- "content-type": "application/octet-stream",
108
- };
109
- b.bp("/things/{thingName}/shadow");
110
- b.p("thingName", () => input.thingName, "{thingName}", false);
111
- const query = map({
112
- [_n]: [, input[_sN]],
113
- });
114
- let body;
115
- if (input.payload !== undefined) {
116
- body = input.payload;
117
- }
118
- b.m("POST").h(headers).q(query).b(body);
119
- return b.build();
120
- };
121
- export const de_DeleteConnectionCommand = async (output, context) => {
122
- if (output.statusCode !== 200 && output.statusCode >= 300) {
123
- return de_CommandError(output, context);
124
- }
125
- const contents = map({
126
- $metadata: deserializeMetadata(output),
127
- });
128
- await collectBody(output.body, context);
129
- return contents;
130
- };
131
- export const de_DeleteThingShadowCommand = async (output, context) => {
132
- if (output.statusCode !== 200 && output.statusCode >= 300) {
133
- return de_CommandError(output, context);
134
- }
135
- const contents = map({
136
- $metadata: deserializeMetadata(output),
137
- });
138
- const data = await collectBody(output.body, context);
139
- contents.payload = data;
140
- return contents;
141
- };
142
- export const de_GetRetainedMessageCommand = async (output, context) => {
143
- if (output.statusCode !== 200 && output.statusCode >= 300) {
144
- return de_CommandError(output, context);
145
- }
146
- const contents = map({
147
- $metadata: deserializeMetadata(output),
148
- });
149
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
150
- const doc = take(data, {
151
- lastModifiedTime: __expectLong,
152
- payload: context.base64Decoder,
153
- qos: __expectInt32,
154
- topic: __expectString,
155
- userProperties: context.base64Decoder,
156
- });
157
- Object.assign(contents, doc);
158
- return contents;
159
- };
160
- export const de_GetThingShadowCommand = async (output, context) => {
161
- if (output.statusCode !== 200 && output.statusCode >= 300) {
162
- return de_CommandError(output, context);
163
- }
164
- const contents = map({
165
- $metadata: deserializeMetadata(output),
166
- });
167
- const data = await collectBody(output.body, context);
168
- contents.payload = data;
169
- return contents;
170
- };
171
- export const de_ListNamedShadowsForThingCommand = async (output, context) => {
172
- if (output.statusCode !== 200 && output.statusCode >= 300) {
173
- return de_CommandError(output, context);
174
- }
175
- const contents = map({
176
- $metadata: deserializeMetadata(output),
177
- });
178
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
179
- const doc = take(data, {
180
- nextToken: __expectString,
181
- results: _json,
182
- timestamp: __expectLong,
183
- });
184
- Object.assign(contents, doc);
185
- return contents;
186
- };
187
- export const de_ListRetainedMessagesCommand = async (output, context) => {
188
- if (output.statusCode !== 200 && output.statusCode >= 300) {
189
- return de_CommandError(output, context);
190
- }
191
- const contents = map({
192
- $metadata: deserializeMetadata(output),
193
- });
194
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
195
- const doc = take(data, {
196
- nextToken: __expectString,
197
- retainedTopics: _json,
198
- });
199
- Object.assign(contents, doc);
200
- return contents;
201
- };
202
- export const de_PublishCommand = async (output, context) => {
203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
204
- return de_CommandError(output, context);
205
- }
206
- const contents = map({
207
- $metadata: deserializeMetadata(output),
208
- });
209
- await collectBody(output.body, context);
210
- return contents;
211
- };
212
- export const de_UpdateThingShadowCommand = async (output, context) => {
213
- if (output.statusCode !== 200 && output.statusCode >= 300) {
214
- return de_CommandError(output, context);
215
- }
216
- const contents = map({
217
- $metadata: deserializeMetadata(output),
218
- });
219
- const data = await collectBody(output.body, context);
220
- contents.payload = data;
221
- return contents;
222
- };
223
- const de_CommandError = async (output, context) => {
224
- const parsedOutput = {
225
- ...output,
226
- body: await parseErrorBody(output.body, context),
227
- };
228
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
229
- switch (errorCode) {
230
- case "ForbiddenException":
231
- case "com.amazonaws.iotdataplane#ForbiddenException":
232
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
233
- case "InternalFailureException":
234
- case "com.amazonaws.iotdataplane#InternalFailureException":
235
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
236
- case "InvalidRequestException":
237
- case "com.amazonaws.iotdataplane#InvalidRequestException":
238
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
239
- case "ResourceNotFoundException":
240
- case "com.amazonaws.iotdataplane#ResourceNotFoundException":
241
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
242
- case "ThrottlingException":
243
- case "com.amazonaws.iotdataplane#ThrottlingException":
244
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
245
- case "MethodNotAllowedException":
246
- case "com.amazonaws.iotdataplane#MethodNotAllowedException":
247
- throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
248
- case "ServiceUnavailableException":
249
- case "com.amazonaws.iotdataplane#ServiceUnavailableException":
250
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
251
- case "UnauthorizedException":
252
- case "com.amazonaws.iotdataplane#UnauthorizedException":
253
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
254
- case "UnsupportedDocumentEncodingException":
255
- case "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException":
256
- throw await de_UnsupportedDocumentEncodingExceptionRes(parsedOutput, context);
257
- case "ConflictException":
258
- case "com.amazonaws.iotdataplane#ConflictException":
259
- throw await de_ConflictExceptionRes(parsedOutput, context);
260
- case "RequestEntityTooLargeException":
261
- case "com.amazonaws.iotdataplane#RequestEntityTooLargeException":
262
- throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
263
- default:
264
- const parsedBody = parsedOutput.body;
265
- return throwDefaultError({
266
- output,
267
- parsedBody,
268
- errorCode,
269
- });
270
- }
271
- };
272
- const throwDefaultError = withBaseException(__BaseException);
273
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
274
- const contents = map({});
275
- const data = parsedOutput.body;
276
- const doc = take(data, {
277
- message: __expectString,
278
- });
279
- Object.assign(contents, doc);
280
- const exception = new ConflictException({
281
- $metadata: deserializeMetadata(parsedOutput),
282
- ...contents,
283
- });
284
- return __decorateServiceException(exception, parsedOutput.body);
285
- };
286
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
287
- const contents = map({});
288
- const data = parsedOutput.body;
289
- const doc = take(data, {
290
- message: __expectString,
291
- });
292
- Object.assign(contents, doc);
293
- const exception = new ForbiddenException({
294
- $metadata: deserializeMetadata(parsedOutput),
295
- ...contents,
296
- });
297
- return __decorateServiceException(exception, parsedOutput.body);
298
- };
299
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
300
- const contents = map({});
301
- const data = parsedOutput.body;
302
- const doc = take(data, {
303
- message: __expectString,
304
- });
305
- Object.assign(contents, doc);
306
- const exception = new InternalFailureException({
307
- $metadata: deserializeMetadata(parsedOutput),
308
- ...contents,
309
- });
310
- return __decorateServiceException(exception, parsedOutput.body);
311
- };
312
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
313
- const contents = map({});
314
- const data = parsedOutput.body;
315
- const doc = take(data, {
316
- message: __expectString,
317
- });
318
- Object.assign(contents, doc);
319
- const exception = new InvalidRequestException({
320
- $metadata: deserializeMetadata(parsedOutput),
321
- ...contents,
322
- });
323
- return __decorateServiceException(exception, parsedOutput.body);
324
- };
325
- const de_MethodNotAllowedExceptionRes = async (parsedOutput, context) => {
326
- const contents = map({});
327
- const data = parsedOutput.body;
328
- const doc = take(data, {
329
- message: __expectString,
330
- });
331
- Object.assign(contents, doc);
332
- const exception = new MethodNotAllowedException({
333
- $metadata: deserializeMetadata(parsedOutput),
334
- ...contents,
335
- });
336
- return __decorateServiceException(exception, parsedOutput.body);
337
- };
338
- const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
339
- const contents = map({});
340
- const data = parsedOutput.body;
341
- const doc = take(data, {
342
- message: __expectString,
343
- });
344
- Object.assign(contents, doc);
345
- const exception = new RequestEntityTooLargeException({
346
- $metadata: deserializeMetadata(parsedOutput),
347
- ...contents,
348
- });
349
- return __decorateServiceException(exception, parsedOutput.body);
350
- };
351
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
352
- const contents = map({});
353
- const data = parsedOutput.body;
354
- const doc = take(data, {
355
- message: __expectString,
356
- });
357
- Object.assign(contents, doc);
358
- const exception = new ResourceNotFoundException({
359
- $metadata: deserializeMetadata(parsedOutput),
360
- ...contents,
361
- });
362
- return __decorateServiceException(exception, parsedOutput.body);
363
- };
364
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
365
- const contents = map({});
366
- const data = parsedOutput.body;
367
- const doc = take(data, {
368
- message: __expectString,
369
- });
370
- Object.assign(contents, doc);
371
- const exception = new ServiceUnavailableException({
372
- $metadata: deserializeMetadata(parsedOutput),
373
- ...contents,
374
- });
375
- return __decorateServiceException(exception, parsedOutput.body);
376
- };
377
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
378
- const contents = map({});
379
- const data = parsedOutput.body;
380
- const doc = take(data, {
381
- message: __expectString,
382
- });
383
- Object.assign(contents, doc);
384
- const exception = new ThrottlingException({
385
- $metadata: deserializeMetadata(parsedOutput),
386
- ...contents,
387
- });
388
- return __decorateServiceException(exception, parsedOutput.body);
389
- };
390
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
391
- const contents = map({});
392
- const data = parsedOutput.body;
393
- const doc = take(data, {
394
- message: __expectString,
395
- });
396
- Object.assign(contents, doc);
397
- const exception = new UnauthorizedException({
398
- $metadata: deserializeMetadata(parsedOutput),
399
- ...contents,
400
- });
401
- return __decorateServiceException(exception, parsedOutput.body);
402
- };
403
- const de_UnsupportedDocumentEncodingExceptionRes = async (parsedOutput, context) => {
404
- const contents = map({});
405
- const data = parsedOutput.body;
406
- const doc = take(data, {
407
- message: __expectString,
408
- });
409
- Object.assign(contents, doc);
410
- const exception = new UnsupportedDocumentEncodingException({
411
- $metadata: deserializeMetadata(parsedOutput),
412
- ...contents,
413
- });
414
- return __decorateServiceException(exception, parsedOutput.body);
415
- };
416
- const deserializeMetadata = (output) => ({
417
- httpStatusCode: output.statusCode,
418
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
419
- extendedRequestId: output.headers["x-amz-id-2"],
420
- cfId: output.headers["x-amz-cf-id"],
421
- });
422
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
423
- const _cD = "correlationData";
424
- const _cS = "cleanSession";
425
- const _cT = "contentType";
426
- const _mE = "messageExpiry";
427
- const _mR = "maxResults";
428
- const _n = "name";
429
- const _nT = "nextToken";
430
- const _pFI = "payloadFormatIndicator";
431
- const _pS = "pageSize";
432
- const _pWM = "preventWillMessage";
433
- const _q = "qos";
434
- const _r = "retain";
435
- const _rT = "responseTopic";
436
- const _sN = "shadowName";
437
- const _uP = "userProperties";
438
- const _xamcd = "x-amz-mqtt5-correlation-data";
439
- const _xampfi = "x-amz-mqtt5-payload-format-indicator";
440
- const _xamup = "x-amz-mqtt5-user-properties";
@@ -1,74 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "../commands/DeleteConnectionCommand";
4
- import { DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput } from "../commands/DeleteThingShadowCommand";
5
- import { GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput } from "../commands/GetRetainedMessageCommand";
6
- import { GetThingShadowCommandInput, GetThingShadowCommandOutput } from "../commands/GetThingShadowCommand";
7
- import { ListNamedShadowsForThingCommandInput, ListNamedShadowsForThingCommandOutput } from "../commands/ListNamedShadowsForThingCommand";
8
- import { ListRetainedMessagesCommandInput, ListRetainedMessagesCommandOutput } from "../commands/ListRetainedMessagesCommand";
9
- import { PublishCommandInput, PublishCommandOutput } from "../commands/PublishCommand";
10
- import { UpdateThingShadowCommandInput, UpdateThingShadowCommandOutput } from "../commands/UpdateThingShadowCommand";
11
- /**
12
- * serializeAws_restJson1DeleteConnectionCommand
13
- */
14
- export declare const se_DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
- /**
16
- * serializeAws_restJson1DeleteThingShadowCommand
17
- */
18
- export declare const se_DeleteThingShadowCommand: (input: DeleteThingShadowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
- /**
20
- * serializeAws_restJson1GetRetainedMessageCommand
21
- */
22
- export declare const se_GetRetainedMessageCommand: (input: GetRetainedMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
- /**
24
- * serializeAws_restJson1GetThingShadowCommand
25
- */
26
- export declare const se_GetThingShadowCommand: (input: GetThingShadowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
- /**
28
- * serializeAws_restJson1ListNamedShadowsForThingCommand
29
- */
30
- export declare const se_ListNamedShadowsForThingCommand: (input: ListNamedShadowsForThingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
- /**
32
- * serializeAws_restJson1ListRetainedMessagesCommand
33
- */
34
- export declare const se_ListRetainedMessagesCommand: (input: ListRetainedMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
- /**
36
- * serializeAws_restJson1PublishCommand
37
- */
38
- export declare const se_PublishCommand: (input: PublishCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
- /**
40
- * serializeAws_restJson1UpdateThingShadowCommand
41
- */
42
- export declare const se_UpdateThingShadowCommand: (input: UpdateThingShadowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
- /**
44
- * deserializeAws_restJson1DeleteConnectionCommand
45
- */
46
- export declare const de_DeleteConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectionCommandOutput>;
47
- /**
48
- * deserializeAws_restJson1DeleteThingShadowCommand
49
- */
50
- export declare const de_DeleteThingShadowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteThingShadowCommandOutput>;
51
- /**
52
- * deserializeAws_restJson1GetRetainedMessageCommand
53
- */
54
- export declare const de_GetRetainedMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRetainedMessageCommandOutput>;
55
- /**
56
- * deserializeAws_restJson1GetThingShadowCommand
57
- */
58
- export declare const de_GetThingShadowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThingShadowCommandOutput>;
59
- /**
60
- * deserializeAws_restJson1ListNamedShadowsForThingCommand
61
- */
62
- export declare const de_ListNamedShadowsForThingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListNamedShadowsForThingCommandOutput>;
63
- /**
64
- * deserializeAws_restJson1ListRetainedMessagesCommand
65
- */
66
- export declare const de_ListRetainedMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRetainedMessagesCommandOutput>;
67
- /**
68
- * deserializeAws_restJson1PublishCommand
69
- */
70
- export declare const de_PublishCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PublishCommandOutput>;
71
- /**
72
- * deserializeAws_restJson1UpdateThingShadowCommand
73
- */
74
- export declare const de_UpdateThingShadowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateThingShadowCommandOutput>;