@aws-sdk/client-wickr 3.956.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/LICENSE +201 -0
- package/README.md +541 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +2520 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +55 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-es/Wickr.js +91 -0
- package/dist-es/WickrClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/BatchCreateUserCommand.js +16 -0
- package/dist-es/commands/BatchDeleteUserCommand.js +16 -0
- package/dist-es/commands/BatchLookupUserUnameCommand.js +16 -0
- package/dist-es/commands/BatchReinviteUserCommand.js +16 -0
- package/dist-es/commands/BatchResetDevicesForUserCommand.js +16 -0
- package/dist-es/commands/BatchToggleUserSuspendStatusCommand.js +16 -0
- package/dist-es/commands/CreateBotCommand.js +16 -0
- package/dist-es/commands/CreateDataRetentionBotChallengeCommand.js +16 -0
- package/dist-es/commands/CreateDataRetentionBotCommand.js +16 -0
- package/dist-es/commands/CreateNetworkCommand.js +16 -0
- package/dist-es/commands/CreateSecurityGroupCommand.js +16 -0
- package/dist-es/commands/DeleteBotCommand.js +16 -0
- package/dist-es/commands/DeleteDataRetentionBotCommand.js +16 -0
- package/dist-es/commands/DeleteNetworkCommand.js +16 -0
- package/dist-es/commands/DeleteSecurityGroupCommand.js +16 -0
- package/dist-es/commands/GetBotCommand.js +16 -0
- package/dist-es/commands/GetBotsCountCommand.js +16 -0
- package/dist-es/commands/GetDataRetentionBotCommand.js +16 -0
- package/dist-es/commands/GetGuestUserHistoryCountCommand.js +16 -0
- package/dist-es/commands/GetNetworkCommand.js +16 -0
- package/dist-es/commands/GetNetworkSettingsCommand.js +16 -0
- package/dist-es/commands/GetOidcInfoCommand.js +16 -0
- package/dist-es/commands/GetSecurityGroupCommand.js +16 -0
- package/dist-es/commands/GetUserCommand.js +16 -0
- package/dist-es/commands/GetUsersCountCommand.js +16 -0
- package/dist-es/commands/ListBlockedGuestUsersCommand.js +16 -0
- package/dist-es/commands/ListBotsCommand.js +16 -0
- package/dist-es/commands/ListDevicesForUserCommand.js +16 -0
- package/dist-es/commands/ListGuestUsersCommand.js +16 -0
- package/dist-es/commands/ListNetworksCommand.js +16 -0
- package/dist-es/commands/ListSecurityGroupUsersCommand.js +16 -0
- package/dist-es/commands/ListSecurityGroupsCommand.js +16 -0
- package/dist-es/commands/ListUsersCommand.js +16 -0
- package/dist-es/commands/RegisterOidcConfigCommand.js +16 -0
- package/dist-es/commands/RegisterOidcConfigTestCommand.js +16 -0
- package/dist-es/commands/UpdateBotCommand.js +16 -0
- package/dist-es/commands/UpdateDataRetentionCommand.js +16 -0
- package/dist-es/commands/UpdateGuestUserCommand.js +16 -0
- package/dist-es/commands/UpdateNetworkCommand.js +16 -0
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +16 -0
- package/dist-es/commands/UpdateSecurityGroupCommand.js +16 -0
- package/dist-es/commands/UpdateUserCommand.js +16 -0
- package/dist-es/commands/index.js +42 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/WickrServiceException.js +8 -0
- package/dist-es/models/enums.js +28 -0
- package/dist-es/models/errors.js +87 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListBlockedGuestUsersPaginator.js +4 -0
- package/dist-es/pagination/ListBotsPaginator.js +4 -0
- package/dist-es/pagination/ListDevicesForUserPaginator.js +4 -0
- package/dist-es/pagination/ListGuestUsersPaginator.js +4 -0
- package/dist-es/pagination/ListNetworksPaginator.js +4 -0
- package/dist-es/pagination/ListSecurityGroupUsersPaginator.js +4 -0
- package/dist-es/pagination/ListSecurityGroupsPaginator.js +4 -0
- package/dist-es/pagination/ListUsersPaginator.js +4 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +50 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1491 -0
- package/dist-types/Wickr.d.ts +305 -0
- package/dist-types/WickrClient.d.ts +229 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/BatchCreateUserCommand.d.ts +251 -0
- package/dist-types/commands/BatchDeleteUserCommand.d.ts +171 -0
- package/dist-types/commands/BatchLookupUserUnameCommand.d.ts +175 -0
- package/dist-types/commands/BatchReinviteUserCommand.d.ts +191 -0
- package/dist-types/commands/BatchResetDevicesForUserCommand.d.ts +190 -0
- package/dist-types/commands/BatchToggleUserSuspendStatusCommand.d.ts +174 -0
- package/dist-types/commands/CreateBotCommand.d.ts +161 -0
- package/dist-types/commands/CreateDataRetentionBotChallengeCommand.d.ts +110 -0
- package/dist-types/commands/CreateDataRetentionBotCommand.d.ts +123 -0
- package/dist-types/commands/CreateNetworkCommand.d.ts +150 -0
- package/dist-types/commands/CreateSecurityGroupCommand.d.ts +241 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +126 -0
- package/dist-types/commands/DeleteDataRetentionBotCommand.d.ts +110 -0
- package/dist-types/commands/DeleteNetworkCommand.d.ts +124 -0
- package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +130 -0
- package/dist-types/commands/GetBotCommand.d.ts +144 -0
- package/dist-types/commands/GetBotsCountCommand.d.ts +131 -0
- package/dist-types/commands/GetDataRetentionBotCommand.d.ts +140 -0
- package/dist-types/commands/GetGuestUserHistoryCountCommand.d.ts +155 -0
- package/dist-types/commands/GetNetworkCommand.d.ts +137 -0
- package/dist-types/commands/GetNetworkSettingsCommand.d.ts +166 -0
- package/dist-types/commands/GetOidcInfoCommand.d.ts +169 -0
- package/dist-types/commands/GetSecurityGroupCommand.d.ts +211 -0
- package/dist-types/commands/GetUserCommand.d.ts +194 -0
- package/dist-types/commands/GetUsersCountCommand.d.ts +137 -0
- package/dist-types/commands/ListBlockedGuestUsersCommand.d.ts +185 -0
- package/dist-types/commands/ListBotsCommand.d.ts +192 -0
- package/dist-types/commands/ListDevicesForUserCommand.d.ts +197 -0
- package/dist-types/commands/ListGuestUsersCommand.d.ts +192 -0
- package/dist-types/commands/ListNetworksCommand.d.ts +167 -0
- package/dist-types/commands/ListSecurityGroupUsersCommand.d.ts +156 -0
- package/dist-types/commands/ListSecurityGroupsCommand.d.ts +246 -0
- package/dist-types/commands/ListUsersCommand.d.ts +221 -0
- package/dist-types/commands/RegisterOidcConfigCommand.d.ts +174 -0
- package/dist-types/commands/RegisterOidcConfigTestCommand.d.ts +168 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +133 -0
- package/dist-types/commands/UpdateDataRetentionCommand.d.ts +144 -0
- package/dist-types/commands/UpdateGuestUserCommand.d.ts +146 -0
- package/dist-types/commands/UpdateNetworkCommand.d.ts +142 -0
- package/dist-types/commands/UpdateNetworkSettingsCommand.d.ts +234 -0
- package/dist-types/commands/UpdateSecurityGroupCommand.d.ts +282 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +229 -0
- package/dist-types/commands/index.d.ts +42 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/WickrServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +58 -0
- package/dist-types/models/errors.d.ts +92 -0
- package/dist-types/models/models_0.d.ts +2975 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListBlockedGuestUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDevicesForUserPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGuestUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNetworksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSecurityGroupUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSecurityGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +164 -0
- package/dist-types/ts3.4/Wickr.d.ts +720 -0
- package/dist-types/ts3.4/WickrClient.d.ts +371 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchCreateUserCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/BatchDeleteUserCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/BatchLookupUserUnameCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchReinviteUserCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchResetDevicesForUserCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchToggleUserSuspendStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateBotCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateDataRetentionBotChallengeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateDataRetentionBotCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateSecurityGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteBotCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteDataRetentionBotCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteNetworkCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetBotsCountCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetDataRetentionBotCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetGuestUserHistoryCountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetNetworkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetNetworkSettingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetOidcInfoCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetSecurityGroupCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetUsersCountCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListBlockedGuestUsersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListDevicesForUserCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListGuestUsersCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListSecurityGroupUsersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSecurityGroupsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RegisterOidcConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterOidcConfigTestCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateDataRetentionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGuestUserCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateNetworkCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateNetworkSettingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateSecurityGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +42 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/WickrServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +31 -0
- package/dist-types/ts3.4/models/errors.d.ts +43 -0
- package/dist-types/ts3.4/models/models_0.d.ts +714 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListBlockedGuestUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDevicesForUserPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGuestUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNetworksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityGroupUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +168 -0
- package/package.json +100 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchReinviteUserRequest, BatchReinviteUserResponse } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WickrClientResolvedConfig } from "../WickrClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchReinviteUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchReinviteUserCommandInput extends BatchReinviteUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchReinviteUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchReinviteUserCommandOutput extends BatchReinviteUserResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchReinviteUserCommand_base: {
|
|
25
|
+
new (input: BatchReinviteUserCommandInput): import("@smithy/smithy-client").CommandImpl<BatchReinviteUserCommandInput, BatchReinviteUserCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchReinviteUserCommandInput): import("@smithy/smithy-client").CommandImpl<BatchReinviteUserCommandInput, BatchReinviteUserCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Resends invitation codes to multiple users who have pending invitations in a Wickr network. This operation is useful when users haven't accepted their initial invitations or when invitations have expired.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WickrClient, BatchReinviteUserCommand } from "@aws-sdk/client-wickr"; // ES Modules import
|
|
35
|
+
* // const { WickrClient, BatchReinviteUserCommand } = require("@aws-sdk/client-wickr"); // CommonJS import
|
|
36
|
+
* // import type { WickrClientConfig } from "@aws-sdk/client-wickr";
|
|
37
|
+
* const config = {}; // type is WickrClientConfig
|
|
38
|
+
* const client = new WickrClient(config);
|
|
39
|
+
* const input = { // BatchReinviteUserRequest
|
|
40
|
+
* networkId: "STRING_VALUE", // required
|
|
41
|
+
* userIds: [ // UserIds // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* clientToken: "STRING_VALUE",
|
|
45
|
+
* };
|
|
46
|
+
* const command = new BatchReinviteUserCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // BatchReinviteUserResponse
|
|
49
|
+
* // message: "STRING_VALUE",
|
|
50
|
+
* // successful: [ // BatchUserSuccessResponseItems
|
|
51
|
+
* // { // BatchUserSuccessResponseItem
|
|
52
|
+
* // userId: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // failed: [ // BatchUserErrorResponseItems
|
|
56
|
+
* // { // BatchUserErrorResponseItem
|
|
57
|
+
* // field: "STRING_VALUE",
|
|
58
|
+
* // reason: "STRING_VALUE",
|
|
59
|
+
* // userId: "STRING_VALUE", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param BatchReinviteUserCommandInput - {@link BatchReinviteUserCommandInput}
|
|
67
|
+
* @returns {@link BatchReinviteUserCommandOutput}
|
|
68
|
+
* @see {@link BatchReinviteUserCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link BatchReinviteUserCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link WickrClientResolvedConfig | config} for WickrClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BadRequestError} (client fault)
|
|
73
|
+
* <p>The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
76
|
+
* <p>Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerError} (server fault)
|
|
79
|
+
* <p>An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link RateLimitError} (client fault)
|
|
82
|
+
* <p>The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundError} (client fault)
|
|
85
|
+
* <p>The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
88
|
+
* <p>The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationError} (client fault)
|
|
91
|
+
* <p>One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link WickrServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from Wickr service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @example Batch reinvite users successfully
|
|
98
|
+
* ```javascript
|
|
99
|
+
* //
|
|
100
|
+
* const input = {
|
|
101
|
+
* networkId: "12345678",
|
|
102
|
+
* userIds: [
|
|
103
|
+
* "12345",
|
|
104
|
+
* "67890"
|
|
105
|
+
* ]
|
|
106
|
+
* };
|
|
107
|
+
* const command = new BatchReinviteUserCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response is
|
|
110
|
+
* {
|
|
111
|
+
* failed: [],
|
|
112
|
+
* successful: [
|
|
113
|
+
* {
|
|
114
|
+
* userId: "12345"
|
|
115
|
+
* },
|
|
116
|
+
* {
|
|
117
|
+
* userId: "67890"
|
|
118
|
+
* }
|
|
119
|
+
* ]
|
|
120
|
+
* }
|
|
121
|
+
* *\/
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* @example Batch reinvite users - partial success
|
|
125
|
+
* ```javascript
|
|
126
|
+
* //
|
|
127
|
+
* const input = {
|
|
128
|
+
* networkId: "12345678",
|
|
129
|
+
* userIds: [
|
|
130
|
+
* "12345",
|
|
131
|
+
* "99999"
|
|
132
|
+
* ]
|
|
133
|
+
* };
|
|
134
|
+
* const command = new BatchReinviteUserCommand(input);
|
|
135
|
+
* const response = await client.send(command);
|
|
136
|
+
* /* response is
|
|
137
|
+
* {
|
|
138
|
+
* failed: [
|
|
139
|
+
* {
|
|
140
|
+
* reason: "user not found in current network",
|
|
141
|
+
* userId: "99999"
|
|
142
|
+
* }
|
|
143
|
+
* ],
|
|
144
|
+
* successful: [
|
|
145
|
+
* {
|
|
146
|
+
* userId: "12345"
|
|
147
|
+
* }
|
|
148
|
+
* ]
|
|
149
|
+
* }
|
|
150
|
+
* *\/
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* @example Batch reinvite users - cannot reinvite
|
|
154
|
+
* ```javascript
|
|
155
|
+
* //
|
|
156
|
+
* const input = {
|
|
157
|
+
* networkId: "12345678",
|
|
158
|
+
* userIds: [
|
|
159
|
+
* "54321"
|
|
160
|
+
* ]
|
|
161
|
+
* };
|
|
162
|
+
* const command = new BatchReinviteUserCommand(input);
|
|
163
|
+
* const response = await client.send(command);
|
|
164
|
+
* /* response is
|
|
165
|
+
* {
|
|
166
|
+
* failed: [
|
|
167
|
+
* {
|
|
168
|
+
* reason: "user cannot be reinvited",
|
|
169
|
+
* userId: "54321"
|
|
170
|
+
* }
|
|
171
|
+
* ],
|
|
172
|
+
* successful: []
|
|
173
|
+
* }
|
|
174
|
+
* *\/
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export declare class BatchReinviteUserCommand extends BatchReinviteUserCommand_base {
|
|
180
|
+
/** @internal type navigation helper, not in runtime. */
|
|
181
|
+
protected static __types: {
|
|
182
|
+
api: {
|
|
183
|
+
input: BatchReinviteUserRequest;
|
|
184
|
+
output: BatchReinviteUserResponse;
|
|
185
|
+
};
|
|
186
|
+
sdk: {
|
|
187
|
+
input: BatchReinviteUserCommandInput;
|
|
188
|
+
output: BatchReinviteUserCommandOutput;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchResetDevicesForUserRequest, BatchResetDevicesForUserResponse } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WickrClientResolvedConfig } from "../WickrClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchResetDevicesForUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchResetDevicesForUserCommandInput extends BatchResetDevicesForUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchResetDevicesForUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchResetDevicesForUserCommandOutput extends BatchResetDevicesForUserResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchResetDevicesForUserCommand_base: {
|
|
25
|
+
new (input: BatchResetDevicesForUserCommandInput): import("@smithy/smithy-client").CommandImpl<BatchResetDevicesForUserCommandInput, BatchResetDevicesForUserCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchResetDevicesForUserCommandInput): import("@smithy/smithy-client").CommandImpl<BatchResetDevicesForUserCommandInput, BatchResetDevicesForUserCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Resets multiple devices for a specific user in a Wickr network. This operation forces the selected devices to log out and requires users to re-authenticate, which is useful for security purposes or when devices need to be revoked.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WickrClient, BatchResetDevicesForUserCommand } from "@aws-sdk/client-wickr"; // ES Modules import
|
|
35
|
+
* // const { WickrClient, BatchResetDevicesForUserCommand } = require("@aws-sdk/client-wickr"); // CommonJS import
|
|
36
|
+
* // import type { WickrClientConfig } from "@aws-sdk/client-wickr";
|
|
37
|
+
* const config = {}; // type is WickrClientConfig
|
|
38
|
+
* const client = new WickrClient(config);
|
|
39
|
+
* const input = { // BatchResetDevicesForUserRequest
|
|
40
|
+
* networkId: "STRING_VALUE", // required
|
|
41
|
+
* userId: "STRING_VALUE", // required
|
|
42
|
+
* appIds: [ // AppIds // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* clientToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchResetDevicesForUserCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchResetDevicesForUserResponse
|
|
50
|
+
* // message: "STRING_VALUE",
|
|
51
|
+
* // successful: [ // BatchDeviceSuccessResponseItems
|
|
52
|
+
* // { // BatchDeviceSuccessResponseItem
|
|
53
|
+
* // appId: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // failed: [ // BatchDeviceErrorResponseItems
|
|
57
|
+
* // { // BatchDeviceErrorResponseItem
|
|
58
|
+
* // field: "STRING_VALUE",
|
|
59
|
+
* // reason: "STRING_VALUE",
|
|
60
|
+
* // appId: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param BatchResetDevicesForUserCommandInput - {@link BatchResetDevicesForUserCommandInput}
|
|
68
|
+
* @returns {@link BatchResetDevicesForUserCommandOutput}
|
|
69
|
+
* @see {@link BatchResetDevicesForUserCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link BatchResetDevicesForUserCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link WickrClientResolvedConfig | config} for WickrClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link BadRequestError} (client fault)
|
|
74
|
+
* <p>The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
77
|
+
* <p>Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerError} (server fault)
|
|
80
|
+
* <p>An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link RateLimitError} (client fault)
|
|
83
|
+
* <p>The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundError} (client fault)
|
|
86
|
+
* <p>The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
89
|
+
* <p>The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationError} (client fault)
|
|
92
|
+
* <p>One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link WickrServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Wickr service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @example Successful device reset
|
|
99
|
+
* ```javascript
|
|
100
|
+
* //
|
|
101
|
+
* const input = {
|
|
102
|
+
* appIds: [
|
|
103
|
+
* "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6",
|
|
104
|
+
* "e4246b53edc7548891c27d4da0692fe75f7933884de7c076e36gca030d90bdb7"
|
|
105
|
+
* ],
|
|
106
|
+
* networkId: "12345678",
|
|
107
|
+
* userId: "12345"
|
|
108
|
+
* };
|
|
109
|
+
* const command = new BatchResetDevicesForUserCommand(input);
|
|
110
|
+
* const response = await client.send(command);
|
|
111
|
+
* /* response is
|
|
112
|
+
* {
|
|
113
|
+
* failed: [],
|
|
114
|
+
* message: "success",
|
|
115
|
+
* successful: [
|
|
116
|
+
* {
|
|
117
|
+
* appId: "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6"
|
|
118
|
+
* },
|
|
119
|
+
* {
|
|
120
|
+
* appId: "e4246b53edc7548891c27d4da0692fe75f7933884de7c076e36gca030d90bdb7"
|
|
121
|
+
* }
|
|
122
|
+
* ]
|
|
123
|
+
* }
|
|
124
|
+
* *\/
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @example Partial failure device reset
|
|
128
|
+
* ```javascript
|
|
129
|
+
* //
|
|
130
|
+
* const input = {
|
|
131
|
+
* appIds: [
|
|
132
|
+
* "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6",
|
|
133
|
+
* "invalid-app-id"
|
|
134
|
+
* ],
|
|
135
|
+
* networkId: "12345678",
|
|
136
|
+
* userId: "12345"
|
|
137
|
+
* };
|
|
138
|
+
* const command = new BatchResetDevicesForUserCommand(input);
|
|
139
|
+
* const response = await client.send(command);
|
|
140
|
+
* /* response is
|
|
141
|
+
* {
|
|
142
|
+
* failed: [
|
|
143
|
+
* {
|
|
144
|
+
* appId: "invalid-app-id",
|
|
145
|
+
* field: "appId",
|
|
146
|
+
* reason: "Invalid app ID."
|
|
147
|
+
* }
|
|
148
|
+
* ],
|
|
149
|
+
* message: "partial success",
|
|
150
|
+
* successful: [
|
|
151
|
+
* {
|
|
152
|
+
* appId: "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6"
|
|
153
|
+
* }
|
|
154
|
+
* ]
|
|
155
|
+
* }
|
|
156
|
+
* *\/
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @example Invalid network ID error
|
|
160
|
+
* ```javascript
|
|
161
|
+
* //
|
|
162
|
+
* const input = {
|
|
163
|
+
* appIds: [
|
|
164
|
+
* "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6"
|
|
165
|
+
* ],
|
|
166
|
+
* networkId: "00000000",
|
|
167
|
+
* userId: "12345"
|
|
168
|
+
* };
|
|
169
|
+
* const command = new BatchResetDevicesForUserCommand(input);
|
|
170
|
+
* const response = await client.send(command);
|
|
171
|
+
* /* response is
|
|
172
|
+
* { /* metadata only *\/ }
|
|
173
|
+
* *\/
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export declare class BatchResetDevicesForUserCommand extends BatchResetDevicesForUserCommand_base {
|
|
179
|
+
/** @internal type navigation helper, not in runtime. */
|
|
180
|
+
protected static __types: {
|
|
181
|
+
api: {
|
|
182
|
+
input: BatchResetDevicesForUserRequest;
|
|
183
|
+
output: BatchResetDevicesForUserResponse;
|
|
184
|
+
};
|
|
185
|
+
sdk: {
|
|
186
|
+
input: BatchResetDevicesForUserCommandInput;
|
|
187
|
+
output: BatchResetDevicesForUserCommandOutput;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchToggleUserSuspendStatusRequest, BatchToggleUserSuspendStatusResponse } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WickrClientResolvedConfig } from "../WickrClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchToggleUserSuspendStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchToggleUserSuspendStatusCommandInput extends BatchToggleUserSuspendStatusRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchToggleUserSuspendStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchToggleUserSuspendStatusCommandOutput extends BatchToggleUserSuspendStatusResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchToggleUserSuspendStatusCommand_base: {
|
|
25
|
+
new (input: BatchToggleUserSuspendStatusCommandInput): import("@smithy/smithy-client").CommandImpl<BatchToggleUserSuspendStatusCommandInput, BatchToggleUserSuspendStatusCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchToggleUserSuspendStatusCommandInput): import("@smithy/smithy-client").CommandImpl<BatchToggleUserSuspendStatusCommandInput, BatchToggleUserSuspendStatusCommandOutput, WickrClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Suspends or unsuspends multiple users in a Wickr network. Suspended users cannot access the network until they are unsuspended. This operation is useful for temporarily restricting access without deleting user accounts.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WickrClient, BatchToggleUserSuspendStatusCommand } from "@aws-sdk/client-wickr"; // ES Modules import
|
|
35
|
+
* // const { WickrClient, BatchToggleUserSuspendStatusCommand } = require("@aws-sdk/client-wickr"); // CommonJS import
|
|
36
|
+
* // import type { WickrClientConfig } from "@aws-sdk/client-wickr";
|
|
37
|
+
* const config = {}; // type is WickrClientConfig
|
|
38
|
+
* const client = new WickrClient(config);
|
|
39
|
+
* const input = { // BatchToggleUserSuspendStatusRequest
|
|
40
|
+
* networkId: "STRING_VALUE", // required
|
|
41
|
+
* suspend: true || false, // required
|
|
42
|
+
* userIds: [ // UserIds // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* clientToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new BatchToggleUserSuspendStatusCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // BatchToggleUserSuspendStatusResponse
|
|
50
|
+
* // message: "STRING_VALUE",
|
|
51
|
+
* // successful: [ // BatchUserSuccessResponseItems
|
|
52
|
+
* // { // BatchUserSuccessResponseItem
|
|
53
|
+
* // userId: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // failed: [ // BatchUserErrorResponseItems
|
|
57
|
+
* // { // BatchUserErrorResponseItem
|
|
58
|
+
* // field: "STRING_VALUE",
|
|
59
|
+
* // reason: "STRING_VALUE",
|
|
60
|
+
* // userId: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param BatchToggleUserSuspendStatusCommandInput - {@link BatchToggleUserSuspendStatusCommandInput}
|
|
68
|
+
* @returns {@link BatchToggleUserSuspendStatusCommandOutput}
|
|
69
|
+
* @see {@link BatchToggleUserSuspendStatusCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link BatchToggleUserSuspendStatusCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link WickrClientResolvedConfig | config} for WickrClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link BadRequestError} (client fault)
|
|
74
|
+
* <p>The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
77
|
+
* <p>Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerError} (server fault)
|
|
80
|
+
* <p>An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link RateLimitError} (client fault)
|
|
83
|
+
* <p>The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundError} (client fault)
|
|
86
|
+
* <p>The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link UnauthorizedError} (client fault)
|
|
89
|
+
* <p>The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationError} (client fault)
|
|
92
|
+
* <p>One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link WickrServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Wickr service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @example Suspend multiple users
|
|
99
|
+
* ```javascript
|
|
100
|
+
* //
|
|
101
|
+
* const input = {
|
|
102
|
+
* clientToken: "6ba7b815-9dad-11d1-80b4-00c04fd430c8",
|
|
103
|
+
* networkId: "12345678",
|
|
104
|
+
* suspend: true,
|
|
105
|
+
* userIds: [
|
|
106
|
+
* "123",
|
|
107
|
+
* "456"
|
|
108
|
+
* ]
|
|
109
|
+
* };
|
|
110
|
+
* const command = new BatchToggleUserSuspendStatusCommand(input);
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response is
|
|
113
|
+
* {
|
|
114
|
+
* failed: [],
|
|
115
|
+
* message: "success",
|
|
116
|
+
* successful: [
|
|
117
|
+
* {
|
|
118
|
+
* userId: "123"
|
|
119
|
+
* },
|
|
120
|
+
* {
|
|
121
|
+
* userId: "456"
|
|
122
|
+
* }
|
|
123
|
+
* ]
|
|
124
|
+
* }
|
|
125
|
+
* *\/
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* @example Unsuspend users with partial failure
|
|
129
|
+
* ```javascript
|
|
130
|
+
* //
|
|
131
|
+
* const input = {
|
|
132
|
+
* networkId: "12345678",
|
|
133
|
+
* suspend: false,
|
|
134
|
+
* userIds: [
|
|
135
|
+
* "123",
|
|
136
|
+
* "456"
|
|
137
|
+
* ]
|
|
138
|
+
* };
|
|
139
|
+
* const command = new BatchToggleUserSuspendStatusCommand(input);
|
|
140
|
+
* const response = await client.send(command);
|
|
141
|
+
* /* response is
|
|
142
|
+
* {
|
|
143
|
+
* failed: [
|
|
144
|
+
* {
|
|
145
|
+
* field: "username",
|
|
146
|
+
* reason: "User not found",
|
|
147
|
+
* userId: "456"
|
|
148
|
+
* }
|
|
149
|
+
* ],
|
|
150
|
+
* message: "partial success",
|
|
151
|
+
* successful: [
|
|
152
|
+
* {
|
|
153
|
+
* userId: "123"
|
|
154
|
+
* }
|
|
155
|
+
* ]
|
|
156
|
+
* }
|
|
157
|
+
* *\/
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export declare class BatchToggleUserSuspendStatusCommand extends BatchToggleUserSuspendStatusCommand_base {
|
|
163
|
+
/** @internal type navigation helper, not in runtime. */
|
|
164
|
+
protected static __types: {
|
|
165
|
+
api: {
|
|
166
|
+
input: BatchToggleUserSuspendStatusRequest;
|
|
167
|
+
output: BatchToggleUserSuspendStatusResponse;
|
|
168
|
+
};
|
|
169
|
+
sdk: {
|
|
170
|
+
input: BatchToggleUserSuspendStatusCommandInput;
|
|
171
|
+
output: BatchToggleUserSuspendStatusCommandOutput;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}
|