@aws-sdk/client-iot-data-plane 3.1055.0 → 3.1057.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.
- package/README.md +21 -0
- package/dist-cjs/index.js +46 -0
- package/dist-cjs/models/errors.js +14 -1
- package/dist-cjs/schemas/schemas_0.js +83 -1
- package/dist-es/IoTDataPlane.js +8 -0
- package/dist-es/commands/GetConnectionCommand.js +16 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
- package/dist-es/commands/SendDirectMessageCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +83 -1
- package/dist-types/IoTDataPlane.d.ts +28 -0
- package/dist-types/IoTDataPlaneClient.d.ts +5 -2
- package/dist-types/commands/DeleteConnectionCommand.d.ts +1 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +106 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +100 -0
- package/dist-types/commands/SendDirectMessageCommand.d.ts +122 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +259 -2
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +11 -0
- package/dist-types/ts3.4/IoTDataPlane.d.ts +58 -0
- package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/SendDirectMessageCommand.d.ts +62 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +49 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
- package/package.json +6 -6
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./DeleteConnectionCommand";
|
|
2
2
|
export * from "./DeleteThingShadowCommand";
|
|
3
|
+
export * from "./GetConnectionCommand";
|
|
3
4
|
export * from "./GetRetainedMessageCommand";
|
|
4
5
|
export * from "./GetThingShadowCommand";
|
|
5
6
|
export * from "./ListNamedShadowsForThingCommand";
|
|
6
7
|
export * from "./ListRetainedMessagesCommand";
|
|
8
|
+
export * from "./ListSubscriptionsCommand";
|
|
7
9
|
export * from "./PublishCommand";
|
|
10
|
+
export * from "./SendDirectMessageCommand";
|
|
8
11
|
export * from "./UpdateThingShadowCommand";
|
|
@@ -69,6 +69,13 @@ export declare class UnsupportedDocumentEncodingException extends __BaseExceptio
|
|
|
69
69
|
>
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
+
export declare class GatewayTimeoutException extends __BaseException {
|
|
73
|
+
readonly name: "GatewayTimeoutException";
|
|
74
|
+
readonly $fault: "server";
|
|
75
|
+
constructor(
|
|
76
|
+
opts: __ExceptionOptionType<GatewayTimeoutException, __BaseException>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
72
79
|
export declare class RequestEntityTooLargeException extends __BaseException {
|
|
73
80
|
readonly name: "RequestEntityTooLargeException";
|
|
74
81
|
readonly $fault: "client";
|
|
@@ -12,6 +12,26 @@ export interface DeleteThingShadowRequest {
|
|
|
12
12
|
export interface DeleteThingShadowResponse {
|
|
13
13
|
payload: Uint8Array | undefined;
|
|
14
14
|
}
|
|
15
|
+
export interface GetConnectionRequest {
|
|
16
|
+
clientId: string | undefined;
|
|
17
|
+
includeSocketInformation?: boolean | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface GetConnectionResponse {
|
|
20
|
+
connected?: boolean | undefined;
|
|
21
|
+
thingName?: string | undefined;
|
|
22
|
+
cleanSession?: boolean | undefined;
|
|
23
|
+
sourceIp?: string | undefined;
|
|
24
|
+
sourcePort?: number | undefined;
|
|
25
|
+
targetIp?: string | undefined;
|
|
26
|
+
targetPort?: number | undefined;
|
|
27
|
+
keepAliveDuration?: number | undefined;
|
|
28
|
+
connectedSince?: number | undefined;
|
|
29
|
+
disconnectedSince?: number | undefined;
|
|
30
|
+
disconnectReason?: string | undefined;
|
|
31
|
+
sessionExpiry?: number | undefined;
|
|
32
|
+
clientId?: string | undefined;
|
|
33
|
+
vpcEndpointId?: string | undefined;
|
|
34
|
+
}
|
|
15
35
|
export interface GetRetainedMessageRequest {
|
|
16
36
|
topic: string | undefined;
|
|
17
37
|
}
|
|
@@ -53,6 +73,19 @@ export interface ListRetainedMessagesResponse {
|
|
|
53
73
|
retainedTopics?: RetainedMessageSummary[] | undefined;
|
|
54
74
|
nextToken?: string | undefined;
|
|
55
75
|
}
|
|
76
|
+
export interface ListSubscriptionsRequest {
|
|
77
|
+
clientId: string | undefined;
|
|
78
|
+
nextToken?: string | undefined;
|
|
79
|
+
maxResults?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export interface SubscriptionSummary {
|
|
82
|
+
topicFilter: string | undefined;
|
|
83
|
+
qos: number | undefined;
|
|
84
|
+
}
|
|
85
|
+
export interface ListSubscriptionsResponse {
|
|
86
|
+
subscriptions?: SubscriptionSummary[] | undefined;
|
|
87
|
+
nextToken?: string | undefined;
|
|
88
|
+
}
|
|
56
89
|
export interface PublishRequest {
|
|
57
90
|
topic: string | undefined;
|
|
58
91
|
qos?: number | undefined;
|
|
@@ -65,6 +98,22 @@ export interface PublishRequest {
|
|
|
65
98
|
correlationData?: string | undefined;
|
|
66
99
|
messageExpiry?: number | undefined;
|
|
67
100
|
}
|
|
101
|
+
export interface SendDirectMessageRequest {
|
|
102
|
+
clientId: string | undefined;
|
|
103
|
+
topic: string | undefined;
|
|
104
|
+
contentType?: string | undefined;
|
|
105
|
+
responseTopic?: string | undefined;
|
|
106
|
+
confirmation?: boolean | undefined;
|
|
107
|
+
timeout?: number | undefined;
|
|
108
|
+
payload?: Uint8Array | undefined;
|
|
109
|
+
userProperties?: __AutomaticJsonStringConversion | string | undefined;
|
|
110
|
+
payloadFormatIndicator?: PayloadFormatIndicator | undefined;
|
|
111
|
+
correlationData?: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
export interface SendDirectMessageResponse {
|
|
114
|
+
message?: string | undefined;
|
|
115
|
+
traceId?: string | undefined;
|
|
116
|
+
}
|
|
68
117
|
export interface UpdateThingShadowRequest {
|
|
69
118
|
thingName: string | undefined;
|
|
70
119
|
shadowName?: string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListSubscriptionsCommandInput,
|
|
4
|
+
ListSubscriptionsCommandOutput,
|
|
5
|
+
} from "../commands/ListSubscriptionsCommand";
|
|
6
|
+
import { IoTDataPlanePaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListSubscriptions: (
|
|
8
|
+
config: IoTDataPlanePaginationConfiguration,
|
|
9
|
+
input: ListSubscriptionsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListSubscriptionsCommandOutput>;
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
|
|
8
8
|
export declare var ConflictException$: StaticErrorSchema;
|
|
9
9
|
export declare var ForbiddenException$: StaticErrorSchema;
|
|
10
|
+
export declare var GatewayTimeoutException$: StaticErrorSchema;
|
|
10
11
|
export declare var InternalFailureException$: StaticErrorSchema;
|
|
11
12
|
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
12
13
|
export declare var MethodNotAllowedException$: StaticErrorSchema;
|
|
@@ -20,6 +21,8 @@ export declare const errorTypeRegistries: TypeRegistry[];
|
|
|
20
21
|
export declare var DeleteConnectionRequest$: StaticStructureSchema;
|
|
21
22
|
export declare var DeleteThingShadowRequest$: StaticStructureSchema;
|
|
22
23
|
export declare var DeleteThingShadowResponse$: StaticStructureSchema;
|
|
24
|
+
export declare var GetConnectionRequest$: StaticStructureSchema;
|
|
25
|
+
export declare var GetConnectionResponse$: StaticStructureSchema;
|
|
23
26
|
export declare var GetRetainedMessageRequest$: StaticStructureSchema;
|
|
24
27
|
export declare var GetRetainedMessageResponse$: StaticStructureSchema;
|
|
25
28
|
export declare var GetThingShadowRequest$: StaticStructureSchema;
|
|
@@ -28,15 +31,23 @@ export declare var ListNamedShadowsForThingRequest$: StaticStructureSchema;
|
|
|
28
31
|
export declare var ListNamedShadowsForThingResponse$: StaticStructureSchema;
|
|
29
32
|
export declare var ListRetainedMessagesRequest$: StaticStructureSchema;
|
|
30
33
|
export declare var ListRetainedMessagesResponse$: StaticStructureSchema;
|
|
34
|
+
export declare var ListSubscriptionsRequest$: StaticStructureSchema;
|
|
35
|
+
export declare var ListSubscriptionsResponse$: StaticStructureSchema;
|
|
31
36
|
export declare var PublishRequest$: StaticStructureSchema;
|
|
32
37
|
export declare var RetainedMessageSummary$: StaticStructureSchema;
|
|
38
|
+
export declare var SendDirectMessageRequest$: StaticStructureSchema;
|
|
39
|
+
export declare var SendDirectMessageResponse$: StaticStructureSchema;
|
|
40
|
+
export declare var SubscriptionSummary$: StaticStructureSchema;
|
|
33
41
|
export declare var UpdateThingShadowRequest$: StaticStructureSchema;
|
|
34
42
|
export declare var UpdateThingShadowResponse$: StaticStructureSchema;
|
|
35
43
|
export declare var DeleteConnection$: StaticOperationSchema;
|
|
36
44
|
export declare var DeleteThingShadow$: StaticOperationSchema;
|
|
45
|
+
export declare var GetConnection$: StaticOperationSchema;
|
|
37
46
|
export declare var GetRetainedMessage$: StaticOperationSchema;
|
|
38
47
|
export declare var GetThingShadow$: StaticOperationSchema;
|
|
39
48
|
export declare var ListNamedShadowsForThing$: StaticOperationSchema;
|
|
40
49
|
export declare var ListRetainedMessages$: StaticOperationSchema;
|
|
50
|
+
export declare var ListSubscriptions$: StaticOperationSchema;
|
|
41
51
|
export declare var Publish$: StaticOperationSchema;
|
|
52
|
+
export declare var SendDirectMessage$: StaticOperationSchema;
|
|
42
53
|
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.
|
|
4
|
+
"version": "3.1057.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iot-data-plane",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.974.15",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.47",
|
|
26
26
|
"@aws-sdk/types": "^3.973.9",
|
|
27
|
-
"@smithy/core": "^3.24.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.4.
|
|
29
|
-
"@smithy/node-http-handler": "^4.7.
|
|
27
|
+
"@smithy/core": "^3.24.5",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.4.5",
|
|
29
|
+
"@smithy/node-http-handler": "^4.7.5",
|
|
30
30
|
"@smithy/types": "^4.14.2",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|