@aws-sdk/client-iot-data-plane 3.687.0 → 3.692.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.
@@ -26,7 +26,7 @@ export interface DeleteThingShadowRequest {
26
26
  * <p>The name of the shadow.</p>
27
27
  * @public
28
28
  */
29
- shadowName?: string;
29
+ shadowName?: string | undefined;
30
30
  }
31
31
  /**
32
32
  * <p>The output from the DeleteThingShadow operation.</p>
@@ -155,22 +155,22 @@ export interface GetRetainedMessageResponse {
155
155
  * <p>The topic name to which the retained message was published.</p>
156
156
  * @public
157
157
  */
158
- topic?: string;
158
+ topic?: string | undefined;
159
159
  /**
160
160
  * <p>The Base64-encoded message payload of the retained message body.</p>
161
161
  * @public
162
162
  */
163
- payload?: Uint8Array;
163
+ payload?: Uint8Array | undefined;
164
164
  /**
165
165
  * <p>The quality of service (QoS) level used to publish the retained message.</p>
166
166
  * @public
167
167
  */
168
- qos?: number;
168
+ qos?: number | undefined;
169
169
  /**
170
170
  * <p>The Epoch date and time, in milliseconds, when the retained message was stored by IoT.</p>
171
171
  * @public
172
172
  */
173
- lastModifiedTime?: number;
173
+ lastModifiedTime?: number | undefined;
174
174
  /**
175
175
  * <p>A base64-encoded JSON string that includes an array of JSON objects, or null if the
176
176
  * retained message doesn't include any user properties.</p>
@@ -181,7 +181,7 @@ export interface GetRetainedMessageResponse {
181
181
  * </p>
182
182
  * @public
183
183
  */
184
- userProperties?: Uint8Array;
184
+ userProperties?: Uint8Array | undefined;
185
185
  }
186
186
  /**
187
187
  * <p>The input for the GetThingShadow operation.</p>
@@ -197,7 +197,7 @@ export interface GetThingShadowRequest {
197
197
  * <p>The name of the shadow.</p>
198
198
  * @public
199
199
  */
200
- shadowName?: string;
200
+ shadowName?: string | undefined;
201
201
  }
202
202
  /**
203
203
  * <p>The output from the GetThingShadow operation.</p>
@@ -208,7 +208,7 @@ export interface GetThingShadowResponse {
208
208
  * <p>The state information, in JSON format.</p>
209
209
  * @public
210
210
  */
211
- payload?: Uint8Array;
211
+ payload?: Uint8Array | undefined;
212
212
  }
213
213
  /**
214
214
  * @public
@@ -223,12 +223,12 @@ export interface ListNamedShadowsForThingRequest {
223
223
  * <p>The token to retrieve the next set of results.</p>
224
224
  * @public
225
225
  */
226
- nextToken?: string;
226
+ nextToken?: string | undefined;
227
227
  /**
228
228
  * <p>The result page size.</p>
229
229
  * @public
230
230
  */
231
- pageSize?: number;
231
+ pageSize?: number | undefined;
232
232
  }
233
233
  /**
234
234
  * @public
@@ -238,17 +238,17 @@ export interface ListNamedShadowsForThingResponse {
238
238
  * <p>The list of shadows for the specified thing.</p>
239
239
  * @public
240
240
  */
241
- results?: string[];
241
+ results?: string[] | undefined;
242
242
  /**
243
243
  * <p>The token to use to get the next set of results, or <b>null</b> if there are no additional results.</p>
244
244
  * @public
245
245
  */
246
- nextToken?: string;
246
+ nextToken?: string | undefined;
247
247
  /**
248
248
  * <p>The Epoch date and time the response was generated by IoT.</p>
249
249
  * @public
250
250
  */
251
- timestamp?: number;
251
+ timestamp?: number | undefined;
252
252
  }
253
253
  /**
254
254
  * @public
@@ -260,12 +260,12 @@ export interface ListRetainedMessagesRequest {
260
260
  * the first set of results.</p>
261
261
  * @public
262
262
  */
263
- nextToken?: string;
263
+ nextToken?: string | undefined;
264
264
  /**
265
265
  * <p>The maximum number of results to return at one time.</p>
266
266
  * @public
267
267
  */
268
- maxResults?: number;
268
+ maxResults?: number | undefined;
269
269
  }
270
270
  /**
271
271
  * <p>Information about a single retained message.</p>
@@ -276,22 +276,22 @@ export interface RetainedMessageSummary {
276
276
  * <p>The topic name to which the retained message was published.</p>
277
277
  * @public
278
278
  */
279
- topic?: string;
279
+ topic?: string | undefined;
280
280
  /**
281
281
  * <p>The size of the retained message's payload in bytes.</p>
282
282
  * @public
283
283
  */
284
- payloadSize?: number;
284
+ payloadSize?: number | undefined;
285
285
  /**
286
286
  * <p>The quality of service (QoS) level used to publish the retained message.</p>
287
287
  * @public
288
288
  */
289
- qos?: number;
289
+ qos?: number | undefined;
290
290
  /**
291
291
  * <p>The Epoch date and time, in milliseconds, when the retained message was stored by IoT.</p>
292
292
  * @public
293
293
  */
294
- lastModifiedTime?: number;
294
+ lastModifiedTime?: number | undefined;
295
295
  }
296
296
  /**
297
297
  * @public
@@ -302,12 +302,12 @@ export interface ListRetainedMessagesResponse {
302
302
  * the message payloads of the retained messages.</p>
303
303
  * @public
304
304
  */
305
- retainedTopics?: RetainedMessageSummary[];
305
+ retainedTopics?: RetainedMessageSummary[] | undefined;
306
306
  /**
307
307
  * <p>The token for the next set of results, or null if there are no additional results.</p>
308
308
  * @public
309
309
  */
310
- nextToken?: string;
310
+ nextToken?: string | undefined;
311
311
  }
312
312
  /**
313
313
  * @public
@@ -335,7 +335,7 @@ export interface PublishRequest {
335
335
  * <p>The Quality of Service (QoS) level. The default QoS level is 0.</p>
336
336
  * @public
337
337
  */
338
- qos?: number;
338
+ qos?: number | undefined;
339
339
  /**
340
340
  * <p>A Boolean value that determines whether to set the RETAIN flag when the message is published.</p>
341
341
  * <p>Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.</p>
@@ -345,14 +345,14 @@ export interface PublishRequest {
345
345
  * </p>
346
346
  * @public
347
347
  */
348
- retain?: boolean;
348
+ retain?: boolean | undefined;
349
349
  /**
350
350
  * <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
351
351
  * <p>Publishing an empty (null) payload with <b>retain</b> =
352
352
  * <code>true</code> deletes the retained message identified by <b>topic</b> from Amazon Web Services IoT Core.</p>
353
353
  * @public
354
354
  */
355
- payload?: Uint8Array;
355
+ payload?: Uint8Array | undefined;
356
356
  /**
357
357
  * <p>A JSON string that contains an array of JSON objects. If you don’t use Amazon Web Services SDK or CLI,
358
358
  * you must encode the JSON string to base64 format before adding it to the HTTP header.
@@ -364,32 +364,32 @@ export interface PublishRequest {
364
364
  * </p>
365
365
  * @public
366
366
  */
367
- userProperties?: __LazyJsonString | string;
367
+ userProperties?: __LazyJsonString | string | undefined;
368
368
  /**
369
369
  * <p>An <code>Enum</code> string value that indicates whether the payload is formatted as
370
370
  * UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
371
371
  * @public
372
372
  */
373
- payloadFormatIndicator?: PayloadFormatIndicator;
373
+ payloadFormatIndicator?: PayloadFormatIndicator | undefined;
374
374
  /**
375
375
  * <p>A UTF-8 encoded string that describes the content of the publishing message.</p>
376
376
  * @public
377
377
  */
378
- contentType?: string;
378
+ contentType?: string | undefined;
379
379
  /**
380
380
  * <p>A UTF-8 encoded string that's used as the topic name for a response message. The response
381
381
  * topic is used to describe the topic which the receiver should publish to as part of the
382
382
  * request-response flow. The topic must not contain wildcard characters.</p>
383
383
  * @public
384
384
  */
385
- responseTopic?: string;
385
+ responseTopic?: string | undefined;
386
386
  /**
387
387
  * <p>The base64-encoded binary data used by the sender of the request message to identify which
388
388
  * request the response message is for when it's received. <code>correlationData</code> is an
389
389
  * HTTP header value in the API.</p>
390
390
  * @public
391
391
  */
392
- correlationData?: string;
392
+ correlationData?: string | undefined;
393
393
  /**
394
394
  * <p>A user-defined integer value that represents the message expiry interval in seconds. If
395
395
  * absent, the message doesn't expire. For more information about the limits of
@@ -397,7 +397,7 @@ export interface PublishRequest {
397
397
  * protocol limits and quotas </a> from the Amazon Web Services Reference Guide.</p>
398
398
  * @public
399
399
  */
400
- messageExpiry?: number;
400
+ messageExpiry?: number | undefined;
401
401
  }
402
402
  /**
403
403
  * <p>The payload exceeds the maximum size allowed.</p>
@@ -425,7 +425,7 @@ export interface UpdateThingShadowRequest {
425
425
  * <p>The name of the shadow.</p>
426
426
  * @public
427
427
  */
428
- shadowName?: string;
428
+ shadowName?: string | undefined;
429
429
  /**
430
430
  * <p>The state information, in JSON format.</p>
431
431
  * @public
@@ -441,5 +441,5 @@ export interface UpdateThingShadowResponse {
441
441
  * <p>The state information, in JSON format.</p>
442
442
  * @public
443
443
  */
444
- payload?: Uint8Array;
444
+ payload?: Uint8Array | undefined;
445
445
  }
@@ -10,7 +10,7 @@ export declare class ConflictException extends __BaseException {
10
10
  }
11
11
  export interface DeleteThingShadowRequest {
12
12
  thingName: string | undefined;
13
- shadowName?: string;
13
+ shadowName?: string | undefined;
14
14
  }
15
15
  export interface DeleteThingShadowResponse {
16
16
  payload: Uint8Array | undefined;
@@ -78,42 +78,42 @@ export interface GetRetainedMessageRequest {
78
78
  topic: string | undefined;
79
79
  }
80
80
  export interface GetRetainedMessageResponse {
81
- topic?: string;
82
- payload?: Uint8Array;
83
- qos?: number;
84
- lastModifiedTime?: number;
85
- userProperties?: Uint8Array;
81
+ topic?: string | undefined;
82
+ payload?: Uint8Array | undefined;
83
+ qos?: number | undefined;
84
+ lastModifiedTime?: number | undefined;
85
+ userProperties?: Uint8Array | undefined;
86
86
  }
87
87
  export interface GetThingShadowRequest {
88
88
  thingName: string | undefined;
89
- shadowName?: string;
89
+ shadowName?: string | undefined;
90
90
  }
91
91
  export interface GetThingShadowResponse {
92
- payload?: Uint8Array;
92
+ payload?: Uint8Array | undefined;
93
93
  }
94
94
  export interface ListNamedShadowsForThingRequest {
95
95
  thingName: string | undefined;
96
- nextToken?: string;
97
- pageSize?: number;
96
+ nextToken?: string | undefined;
97
+ pageSize?: number | undefined;
98
98
  }
99
99
  export interface ListNamedShadowsForThingResponse {
100
- results?: string[];
101
- nextToken?: string;
102
- timestamp?: number;
100
+ results?: string[] | undefined;
101
+ nextToken?: string | undefined;
102
+ timestamp?: number | undefined;
103
103
  }
104
104
  export interface ListRetainedMessagesRequest {
105
- nextToken?: string;
106
- maxResults?: number;
105
+ nextToken?: string | undefined;
106
+ maxResults?: number | undefined;
107
107
  }
108
108
  export interface RetainedMessageSummary {
109
- topic?: string;
110
- payloadSize?: number;
111
- qos?: number;
112
- lastModifiedTime?: number;
109
+ topic?: string | undefined;
110
+ payloadSize?: number | undefined;
111
+ qos?: number | undefined;
112
+ lastModifiedTime?: number | undefined;
113
113
  }
114
114
  export interface ListRetainedMessagesResponse {
115
- retainedTopics?: RetainedMessageSummary[];
116
- nextToken?: string;
115
+ retainedTopics?: RetainedMessageSummary[] | undefined;
116
+ nextToken?: string | undefined;
117
117
  }
118
118
  export declare const PayloadFormatIndicator: {
119
119
  readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
@@ -123,15 +123,15 @@ export type PayloadFormatIndicator =
123
123
  (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
124
124
  export interface PublishRequest {
125
125
  topic: string | undefined;
126
- qos?: number;
127
- retain?: boolean;
128
- payload?: Uint8Array;
129
- userProperties?: __LazyJsonString | string;
130
- payloadFormatIndicator?: PayloadFormatIndicator;
131
- contentType?: string;
132
- responseTopic?: string;
133
- correlationData?: string;
134
- messageExpiry?: number;
126
+ qos?: number | undefined;
127
+ retain?: boolean | undefined;
128
+ payload?: Uint8Array | undefined;
129
+ userProperties?: __LazyJsonString | string | undefined;
130
+ payloadFormatIndicator?: PayloadFormatIndicator | undefined;
131
+ contentType?: string | undefined;
132
+ responseTopic?: string | undefined;
133
+ correlationData?: string | undefined;
134
+ messageExpiry?: number | undefined;
135
135
  }
136
136
  export declare class RequestEntityTooLargeException extends __BaseException {
137
137
  readonly name: "RequestEntityTooLargeException";
@@ -142,9 +142,9 @@ export declare class RequestEntityTooLargeException extends __BaseException {
142
142
  }
143
143
  export interface UpdateThingShadowRequest {
144
144
  thingName: string | undefined;
145
- shadowName?: string;
145
+ shadowName?: string | undefined;
146
146
  payload: Uint8Array | undefined;
147
147
  }
148
148
  export interface UpdateThingShadowResponse {
149
- payload?: Uint8Array;
149
+ payload?: Uint8Array | undefined;
150
150
  }
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.687.0",
4
+ "version": "3.692.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,44 +20,44 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.687.0",
24
- "@aws-sdk/client-sts": "3.687.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.687.0",
27
- "@aws-sdk/middleware-host-header": "3.686.0",
28
- "@aws-sdk/middleware-logger": "3.686.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.687.0",
31
- "@aws-sdk/region-config-resolver": "3.686.0",
32
- "@aws-sdk/types": "3.686.0",
33
- "@aws-sdk/util-endpoints": "3.686.0",
34
- "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.687.0",
36
- "@smithy/config-resolver": "^3.0.10",
37
- "@smithy/core": "^2.5.1",
38
- "@smithy/fetch-http-handler": "^4.0.0",
39
- "@smithy/hash-node": "^3.0.8",
40
- "@smithy/invalid-dependency": "^3.0.8",
41
- "@smithy/middleware-content-length": "^3.0.10",
42
- "@smithy/middleware-endpoint": "^3.2.1",
43
- "@smithy/middleware-retry": "^3.0.25",
44
- "@smithy/middleware-serde": "^3.0.8",
45
- "@smithy/middleware-stack": "^3.0.8",
46
- "@smithy/node-config-provider": "^3.1.9",
47
- "@smithy/node-http-handler": "^3.2.5",
48
- "@smithy/protocol-http": "^4.1.5",
49
- "@smithy/smithy-client": "^3.4.2",
50
- "@smithy/types": "^3.6.0",
51
- "@smithy/url-parser": "^3.0.8",
23
+ "@aws-sdk/client-sso-oidc": "3.692.0",
24
+ "@aws-sdk/client-sts": "3.692.0",
25
+ "@aws-sdk/core": "3.692.0",
26
+ "@aws-sdk/credential-provider-node": "3.692.0",
27
+ "@aws-sdk/middleware-host-header": "3.692.0",
28
+ "@aws-sdk/middleware-logger": "3.692.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.692.0",
30
+ "@aws-sdk/middleware-user-agent": "3.692.0",
31
+ "@aws-sdk/region-config-resolver": "3.692.0",
32
+ "@aws-sdk/types": "3.692.0",
33
+ "@aws-sdk/util-endpoints": "3.692.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.692.0",
35
+ "@aws-sdk/util-user-agent-node": "3.692.0",
36
+ "@smithy/config-resolver": "^3.0.11",
37
+ "@smithy/core": "^2.5.2",
38
+ "@smithy/fetch-http-handler": "^4.1.0",
39
+ "@smithy/hash-node": "^3.0.9",
40
+ "@smithy/invalid-dependency": "^3.0.9",
41
+ "@smithy/middleware-content-length": "^3.0.11",
42
+ "@smithy/middleware-endpoint": "^3.2.2",
43
+ "@smithy/middleware-retry": "^3.0.26",
44
+ "@smithy/middleware-serde": "^3.0.9",
45
+ "@smithy/middleware-stack": "^3.0.9",
46
+ "@smithy/node-config-provider": "^3.1.10",
47
+ "@smithy/node-http-handler": "^3.3.0",
48
+ "@smithy/protocol-http": "^4.1.6",
49
+ "@smithy/smithy-client": "^3.4.3",
50
+ "@smithy/types": "^3.7.0",
51
+ "@smithy/url-parser": "^3.0.9",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.25",
56
- "@smithy/util-defaults-mode-node": "^3.0.25",
57
- "@smithy/util-endpoints": "^2.1.4",
58
- "@smithy/util-middleware": "^3.0.8",
59
- "@smithy/util-retry": "^3.0.8",
60
- "@smithy/util-stream": "^3.2.1",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.26",
56
+ "@smithy/util-defaults-mode-node": "^3.0.26",
57
+ "@smithy/util-endpoints": "^2.1.5",
58
+ "@smithy/util-middleware": "^3.0.9",
59
+ "@smithy/util-retry": "^3.0.9",
60
+ "@smithy/util-stream": "^3.3.0",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },