@aws-sdk/client-iot-data-plane 3.1074.0 → 3.1076.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.
@@ -1,374 +0,0 @@
1
- const _CE = "ConflictException";
2
- const _DC = "DeleteConnection";
3
- const _DCR = "DeleteConnectionRequest";
4
- const _DTS = "DeleteThingShadow";
5
- const _DTSR = "DeleteThingShadowRequest";
6
- const _DTSRe = "DeleteThingShadowResponse";
7
- const _FE = "ForbiddenException";
8
- const _GC = "GetConnection";
9
- const _GCR = "GetConnectionRequest";
10
- const _GCRe = "GetConnectionResponse";
11
- const _GRM = "GetRetainedMessage";
12
- const _GRMR = "GetRetainedMessageRequest";
13
- const _GRMRe = "GetRetainedMessageResponse";
14
- const _GTE = "GatewayTimeoutException";
15
- const _GTS = "GetThingShadow";
16
- const _GTSR = "GetThingShadowRequest";
17
- const _GTSRe = "GetThingShadowResponse";
18
- const _IFE = "InternalFailureException";
19
- const _IRE = "InvalidRequestException";
20
- const _LNSFT = "ListNamedShadowsForThing";
21
- const _LNSFTR = "ListNamedShadowsForThingRequest";
22
- const _LNSFTRi = "ListNamedShadowsForThingResponse";
23
- const _LRM = "ListRetainedMessages";
24
- const _LRMR = "ListRetainedMessagesRequest";
25
- const _LRMRi = "ListRetainedMessagesResponse";
26
- const _LS = "ListSubscriptions";
27
- const _LSR = "ListSubscriptionsRequest";
28
- const _LSRi = "ListSubscriptionsResponse";
29
- const _MNAE = "MethodNotAllowedException";
30
- const _P = "Publish";
31
- const _PR = "PublishRequest";
32
- const _RETLE = "RequestEntityTooLargeException";
33
- const _RML = "RetainedMessageList";
34
- const _RMS = "RetainedMessageSummary";
35
- const _RNFE = "ResourceNotFoundException";
36
- const _SDM = "SendDirectMessage";
37
- const _SDMR = "SendDirectMessageRequest";
38
- const _SDMRe = "SendDirectMessageResponse";
39
- const _SJUP = "SynthesizedJsonUserProperties";
40
- const _SL = "SubscriptionList";
41
- const _SS = "SubscriptionSummary";
42
- const _SUE = "ServiceUnavailableException";
43
- const _TE = "ThrottlingException";
44
- const _UDEE = "UnsupportedDocumentEncodingException";
45
- const _UE = "UnauthorizedException";
46
- const _UTS = "UpdateThingShadow";
47
- const _UTSR = "UpdateThingShadowRequest";
48
- const _UTSRp = "UpdateThingShadowResponse";
49
- const _a = "application/json";
50
- const _c = "client";
51
- const _cD = "correlationData";
52
- const _cI = "clientId";
53
- const _cS = "cleanSession";
54
- const _cSo = "connectedSince";
55
- const _cT = "contentType";
56
- const _co = "connected";
57
- const _con = "confirmation";
58
- const _dR = "disconnectReason";
59
- const _dS = "disconnectedSince";
60
- const _e = "error";
61
- const _h = "http";
62
- const _hE = "httpError";
63
- const _hH = "httpHeader";
64
- const _hQ = "httpQuery";
65
- const _iSI = "includeSocketInformation";
66
- const _kAD = "keepAliveDuration";
67
- const _lMT = "lastModifiedTime";
68
- const _m = "message";
69
- const _mE = "messageExpiry";
70
- const _mR = "maxResults";
71
- const _mT = "mediaType";
72
- const _n = "name";
73
- const _nT = "nextToken";
74
- const _p = "payload";
75
- const _pFI = "payloadFormatIndicator";
76
- const _pS = "pageSize";
77
- const _pSa = "payloadSize";
78
- const _pWM = "preventWillMessage";
79
- const _q = "qos";
80
- const _r = "results";
81
- const _rT = "retainedTopics";
82
- const _rTe = "responseTopic";
83
- const _re = "retain";
84
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
85
- const _sE = "sessionExpiry";
86
- const _sI = "sourceIp";
87
- const _sN = "shadowName";
88
- const _sP = "sourcePort";
89
- const _se = "server";
90
- const _su = "subscriptions";
91
- const _t = "topic";
92
- const _tF = "topicFilter";
93
- const _tI = "targetIp";
94
- const _tIr = "traceId";
95
- const _tN = "thingName";
96
- const _tP = "targetPort";
97
- const _ti = "timestamp";
98
- const _tim = "timeout";
99
- const _uP = "userProperties";
100
- const _vEI = "vpcEndpointId";
101
- const _xamcd = "x-amz-mqtt5-correlation-data";
102
- const _xampfi = "x-amz-mqtt5-payload-format-indicator";
103
- const _xamup = "x-amz-mqtt5-user-properties";
104
- const n0 = "com.amazonaws.iotdataplane";
105
- const { TypeRegistry } = require("@smithy/core/schema");
106
- const { ConflictException, ForbiddenException, GatewayTimeoutException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException } = require("../models/errors");
107
- const { IoTDataPlaneServiceException } = require("../models/IoTDataPlaneServiceException");
108
- const _s_registry = TypeRegistry.for(_s);
109
- const IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []];
110
- exports.IoTDataPlaneServiceException$ = IoTDataPlaneServiceException$;
111
- _s_registry.registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
112
- const n0_registry = TypeRegistry.for(n0);
113
- const ConflictException$ = [-3, n0, _CE,
114
- { [_e]: _c, [_hE]: 409 },
115
- [_m],
116
- [0]
117
- ];
118
- exports.ConflictException$ = ConflictException$;
119
- n0_registry.registerError(ConflictException$, ConflictException);
120
- const ForbiddenException$ = [-3, n0, _FE,
121
- { [_e]: _c, [_hE]: 403 },
122
- [_m],
123
- [0]
124
- ];
125
- exports.ForbiddenException$ = ForbiddenException$;
126
- n0_registry.registerError(ForbiddenException$, ForbiddenException);
127
- const GatewayTimeoutException$ = [-3, n0, _GTE,
128
- { [_e]: _se, [_hE]: 504 },
129
- [_m],
130
- [0]
131
- ];
132
- exports.GatewayTimeoutException$ = GatewayTimeoutException$;
133
- n0_registry.registerError(GatewayTimeoutException$, GatewayTimeoutException);
134
- const InternalFailureException$ = [-3, n0, _IFE,
135
- { [_e]: _se, [_hE]: 500 },
136
- [_m],
137
- [0]
138
- ];
139
- exports.InternalFailureException$ = InternalFailureException$;
140
- n0_registry.registerError(InternalFailureException$, InternalFailureException);
141
- const InvalidRequestException$ = [-3, n0, _IRE,
142
- { [_e]: _c, [_hE]: 400 },
143
- [_m],
144
- [0]
145
- ];
146
- exports.InvalidRequestException$ = InvalidRequestException$;
147
- n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
148
- const MethodNotAllowedException$ = [-3, n0, _MNAE,
149
- { [_e]: _c, [_hE]: 405 },
150
- [_m],
151
- [0]
152
- ];
153
- exports.MethodNotAllowedException$ = MethodNotAllowedException$;
154
- n0_registry.registerError(MethodNotAllowedException$, MethodNotAllowedException);
155
- const RequestEntityTooLargeException$ = [-3, n0, _RETLE,
156
- { [_e]: _c, [_hE]: 413 },
157
- [_m],
158
- [0]
159
- ];
160
- exports.RequestEntityTooLargeException$ = RequestEntityTooLargeException$;
161
- n0_registry.registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
162
- const ResourceNotFoundException$ = [-3, n0, _RNFE,
163
- { [_e]: _c, [_hE]: 404 },
164
- [_m],
165
- [0]
166
- ];
167
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
168
- n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
169
- const ServiceUnavailableException$ = [-3, n0, _SUE,
170
- { [_e]: _se, [_hE]: 503 },
171
- [_m],
172
- [0]
173
- ];
174
- exports.ServiceUnavailableException$ = ServiceUnavailableException$;
175
- n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
176
- const ThrottlingException$ = [-3, n0, _TE,
177
- { [_e]: _c, [_hE]: 429 },
178
- [_m],
179
- [0]
180
- ];
181
- exports.ThrottlingException$ = ThrottlingException$;
182
- n0_registry.registerError(ThrottlingException$, ThrottlingException);
183
- const UnauthorizedException$ = [-3, n0, _UE,
184
- { [_e]: _c, [_hE]: 401 },
185
- [_m],
186
- [0]
187
- ];
188
- exports.UnauthorizedException$ = UnauthorizedException$;
189
- n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
190
- const UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
191
- { [_e]: _c, [_hE]: 415 },
192
- [_m],
193
- [0]
194
- ];
195
- exports.UnsupportedDocumentEncodingException$ = UnsupportedDocumentEncodingException$;
196
- n0_registry.registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
197
- exports.errorTypeRegistries = [
198
- _s_registry,
199
- n0_registry,
200
- ];
201
- var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
202
- const DeleteConnectionRequest$ = [3, n0, _DCR,
203
- 0,
204
- [_cI, _cS, _pWM],
205
- [[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1
206
- ];
207
- exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;
208
- const DeleteThingShadowRequest$ = [3, n0, _DTSR,
209
- 0,
210
- [_tN, _sN],
211
- [[0, 1], [0, { [_hQ]: _n }]], 1
212
- ];
213
- exports.DeleteThingShadowRequest$ = DeleteThingShadowRequest$;
214
- const DeleteThingShadowResponse$ = [3, n0, _DTSRe,
215
- 0,
216
- [_p],
217
- [[21, 16]], 1
218
- ];
219
- exports.DeleteThingShadowResponse$ = DeleteThingShadowResponse$;
220
- const GetConnectionRequest$ = [3, n0, _GCR,
221
- 0,
222
- [_cI, _iSI],
223
- [[0, 1], [2, { [_hQ]: _iSI }]], 1
224
- ];
225
- exports.GetConnectionRequest$ = GetConnectionRequest$;
226
- const GetConnectionResponse$ = [3, n0, _GCRe,
227
- 0,
228
- [_co, _tN, _cS, _sI, _sP, _tI, _tP, _kAD, _cSo, _dS, _dR, _sE, _cI, _vEI],
229
- [2, 0, 2, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0]
230
- ];
231
- exports.GetConnectionResponse$ = GetConnectionResponse$;
232
- const GetRetainedMessageRequest$ = [3, n0, _GRMR,
233
- 0,
234
- [_t],
235
- [[0, 1]], 1
236
- ];
237
- exports.GetRetainedMessageRequest$ = GetRetainedMessageRequest$;
238
- const GetRetainedMessageResponse$ = [3, n0, _GRMRe,
239
- 0,
240
- [_t, _p, _q, _lMT, _uP],
241
- [0, 21, 1, 1, 21]
242
- ];
243
- exports.GetRetainedMessageResponse$ = GetRetainedMessageResponse$;
244
- const GetThingShadowRequest$ = [3, n0, _GTSR,
245
- 0,
246
- [_tN, _sN],
247
- [[0, 1], [0, { [_hQ]: _n }]], 1
248
- ];
249
- exports.GetThingShadowRequest$ = GetThingShadowRequest$;
250
- const GetThingShadowResponse$ = [3, n0, _GTSRe,
251
- 0,
252
- [_p],
253
- [[21, 16]]
254
- ];
255
- exports.GetThingShadowResponse$ = GetThingShadowResponse$;
256
- const ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
257
- 0,
258
- [_tN, _nT, _pS],
259
- [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1
260
- ];
261
- exports.ListNamedShadowsForThingRequest$ = ListNamedShadowsForThingRequest$;
262
- const ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi,
263
- 0,
264
- [_r, _nT, _ti],
265
- [64 | 0, 0, 1]
266
- ];
267
- exports.ListNamedShadowsForThingResponse$ = ListNamedShadowsForThingResponse$;
268
- const ListRetainedMessagesRequest$ = [3, n0, _LRMR,
269
- 0,
270
- [_nT, _mR],
271
- [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
272
- ];
273
- exports.ListRetainedMessagesRequest$ = ListRetainedMessagesRequest$;
274
- const ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
275
- 0,
276
- [_rT, _nT],
277
- [() => RetainedMessageList, 0]
278
- ];
279
- exports.ListRetainedMessagesResponse$ = ListRetainedMessagesResponse$;
280
- const ListSubscriptionsRequest$ = [3, n0, _LSR,
281
- 0,
282
- [_cI, _nT, _mR],
283
- [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
284
- ];
285
- exports.ListSubscriptionsRequest$ = ListSubscriptionsRequest$;
286
- const ListSubscriptionsResponse$ = [3, n0, _LSRi,
287
- 0,
288
- [_su, _nT],
289
- [() => SubscriptionList, 0]
290
- ];
291
- exports.ListSubscriptionsResponse$ = ListSubscriptionsResponse$;
292
- const PublishRequest$ = [3, n0, _PR,
293
- 0,
294
- [_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
295
- [[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
296
- ];
297
- exports.PublishRequest$ = PublishRequest$;
298
- const RetainedMessageSummary$ = [3, n0, _RMS,
299
- 0,
300
- [_t, _pSa, _q, _lMT],
301
- [0, 1, 1, 1]
302
- ];
303
- exports.RetainedMessageSummary$ = RetainedMessageSummary$;
304
- const SendDirectMessageRequest$ = [3, n0, _SDMR,
305
- 0,
306
- [_cI, _t, _cT, _rTe, _con, _tim, _p, _uP, _pFI, _cD],
307
- [[0, 1], [0, { [_hQ]: _t }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [2, { [_hQ]: _con }], [1, { [_hQ]: _tim }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hH]: _xamcd }]], 2
308
- ];
309
- exports.SendDirectMessageRequest$ = SendDirectMessageRequest$;
310
- const SendDirectMessageResponse$ = [3, n0, _SDMRe,
311
- 0,
312
- [_m, _tIr],
313
- [0, 0]
314
- ];
315
- exports.SendDirectMessageResponse$ = SendDirectMessageResponse$;
316
- const SubscriptionSummary$ = [3, n0, _SS,
317
- 0,
318
- [_tF, _q],
319
- [0, 1], 2
320
- ];
321
- exports.SubscriptionSummary$ = SubscriptionSummary$;
322
- const UpdateThingShadowRequest$ = [3, n0, _UTSR,
323
- 0,
324
- [_tN, _p, _sN],
325
- [[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2
326
- ];
327
- exports.UpdateThingShadowRequest$ = UpdateThingShadowRequest$;
328
- const UpdateThingShadowResponse$ = [3, n0, _UTSRp,
329
- 0,
330
- [_p],
331
- [[21, 16]]
332
- ];
333
- exports.UpdateThingShadowResponse$ = UpdateThingShadowResponse$;
334
- var __Unit = "unit";
335
- var NamedShadowList = 64 | 0;
336
- var RetainedMessageList = [1, n0, _RML,
337
- 0, () => RetainedMessageSummary$
338
- ];
339
- var SubscriptionList = [1, n0, _SL,
340
- 0, () => SubscriptionSummary$
341
- ];
342
- exports.DeleteConnection$ = [9, n0, _DC,
343
- { [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => DeleteConnectionRequest$, () => __Unit
344
- ];
345
- exports.DeleteThingShadow$ = [9, n0, _DTS,
346
- { [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => DeleteThingShadowRequest$, () => DeleteThingShadowResponse$
347
- ];
348
- exports.GetConnection$ = [9, n0, _GC,
349
- { [_h]: ["GET", "/connections/{clientId}", 200] }, () => GetConnectionRequest$, () => GetConnectionResponse$
350
- ];
351
- exports.GetRetainedMessage$ = [9, n0, _GRM,
352
- { [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => GetRetainedMessageRequest$, () => GetRetainedMessageResponse$
353
- ];
354
- exports.GetThingShadow$ = [9, n0, _GTS,
355
- { [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => GetThingShadowRequest$, () => GetThingShadowResponse$
356
- ];
357
- exports.ListNamedShadowsForThing$ = [9, n0, _LNSFT,
358
- { [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => ListNamedShadowsForThingRequest$, () => ListNamedShadowsForThingResponse$
359
- ];
360
- exports.ListRetainedMessages$ = [9, n0, _LRM,
361
- { [_h]: ["GET", "/retainedMessage", 200] }, () => ListRetainedMessagesRequest$, () => ListRetainedMessagesResponse$
362
- ];
363
- exports.ListSubscriptions$ = [9, n0, _LS,
364
- { [_h]: ["GET", "/connections/{clientId}/subscriptions", 200] }, () => ListSubscriptionsRequest$, () => ListSubscriptionsResponse$
365
- ];
366
- exports.Publish$ = [9, n0, _P,
367
- { [_h]: ["POST", "/topics/{topic}", 200] }, () => PublishRequest$, () => __Unit
368
- ];
369
- exports.SendDirectMessage$ = [9, n0, _SDM,
370
- { [_h]: ["POST", "/connections/{clientId}/messages", 200] }, () => SendDirectMessageRequest$, () => SendDirectMessageResponse$
371
- ];
372
- exports.UpdateThingShadow$ = [9, n0, _UTS,
373
- { [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => UpdateThingShadowRequest$, () => UpdateThingShadowResponse$
374
- ];