@aws-sdk/client-repostspace 3.840.0 → 3.845.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 +48 -0
- package/dist-cjs/index.js +644 -14
- package/dist-es/Repostspace.js +12 -0
- package/dist-es/commands/BatchAddChannelRoleToAccessorsCommand.js +22 -0
- package/dist-es/commands/BatchRemoveChannelRoleFromAccessorsCommand.js +22 -0
- package/dist-es/commands/CreateChannelCommand.js +23 -0
- package/dist-es/commands/GetChannelCommand.js +23 -0
- package/dist-es/commands/ListChannelsCommand.js +23 -0
- package/dist-es/commands/UpdateChannelCommand.js +23 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +73 -6
- package/dist-es/pagination/ListChannelsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +203 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-es/waiters/waitForChannelCreated.js +49 -0
- package/dist-es/waiters/waitForChannelDeleted.js +52 -0
- package/dist-es/waiters/waitForSpaceCreated.js +49 -0
- package/dist-es/waiters/waitForSpaceDeleted.js +52 -0
- package/dist-types/Repostspace.d.ts +42 -0
- package/dist-types/RepostspaceClient.d.ts +8 -2
- package/dist-types/commands/BatchAddChannelRoleToAccessorsCommand.d.ts +124 -0
- package/dist-types/commands/BatchAddRoleCommand.d.ts +23 -1
- package/dist-types/commands/BatchRemoveChannelRoleFromAccessorsCommand.d.ts +124 -0
- package/dist-types/commands/BatchRemoveRoleCommand.d.ts +23 -1
- package/dist-types/commands/CreateChannelCommand.d.ts +112 -0
- package/dist-types/commands/CreateSpaceCommand.d.ts +6 -0
- package/dist-types/commands/GetChannelCommand.d.ts +125 -0
- package/dist-types/commands/GetSpaceCommand.d.ts +8 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +135 -0
- package/dist-types/commands/ListSpacesCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +107 -0
- package/dist-types/commands/UpdateSpaceCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +464 -33
- package/dist-types/pagination/ListChannelsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/Repostspace.d.ts +108 -0
- package/dist-types/ts3.4/RepostspaceClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/BatchAddChannelRoleToAccessorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchRemoveChannelRoleFromAccessorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +148 -17
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForChannelCreated.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForChannelDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForSpaceCreated.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForSpaceDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +4 -0
- package/dist-types/waiters/waitForChannelCreated.d.ts +14 -0
- package/dist-types/waiters/waitForChannelDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForSpaceCreated.d.ts +14 -0
- package/dist-types/waiters/waitForSpaceDeleted.d.ts +14 -0
- package/package.json +15 -14
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListChannelsInput, ListChannelsOutput } from "../models/models_0";
|
|
4
|
+
import { RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RepostspaceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListChannelsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListChannelsCommandInput extends ListChannelsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListChannelsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListChannelsCommandOutput extends ListChannelsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListChannelsCommand_base: {
|
|
25
|
+
new (input: ListChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelsCommandInput, ListChannelsCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelsCommandInput, ListChannelsCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns the list of channel within a private re:Post with some information about each channel.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RepostspaceClient, ListChannelsCommand } from "@aws-sdk/client-repostspace"; // ES Modules import
|
|
35
|
+
* // const { RepostspaceClient, ListChannelsCommand } = require("@aws-sdk/client-repostspace"); // CommonJS import
|
|
36
|
+
* const client = new RepostspaceClient(config);
|
|
37
|
+
* const input = { // ListChannelsInput
|
|
38
|
+
* spaceId: "STRING_VALUE", // required
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListChannelsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListChannelsOutput
|
|
45
|
+
* // channels: [ // ChannelsList // required
|
|
46
|
+
* // { // ChannelData
|
|
47
|
+
* // spaceId: "STRING_VALUE", // required
|
|
48
|
+
* // channelId: "STRING_VALUE", // required
|
|
49
|
+
* // channelName: "STRING_VALUE", // required
|
|
50
|
+
* // channelDescription: "STRING_VALUE",
|
|
51
|
+
* // createDateTime: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // deleteDateTime: new Date("TIMESTAMP"),
|
|
53
|
+
* // channelStatus: "CREATED" || "CREATING" || "CREATE_FAILED" || "DELETED" || "DELETING" || "DELETE_FAILED", // required
|
|
54
|
+
* // userCount: Number("int"), // required
|
|
55
|
+
* // groupCount: Number("int"), // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // nextToken: "STRING_VALUE",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param ListChannelsCommandInput - {@link ListChannelsCommandInput}
|
|
64
|
+
* @returns {@link ListChannelsCommandOutput}
|
|
65
|
+
* @see {@link ListChannelsCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link ListChannelsCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link RepostspaceClientResolvedConfig | config} for RepostspaceClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>Unexpected error during processing of request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
76
|
+
* <p>Request was denied due to request throttling.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link RepostspaceServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Repostspace service.</p>
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
* @example ListChannels
|
|
86
|
+
* ```javascript
|
|
87
|
+
* //
|
|
88
|
+
* const input = {
|
|
89
|
+
* spaceId: "SP1234567890abcdefghijkl"
|
|
90
|
+
* };
|
|
91
|
+
* const command = new ListChannelsCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response is
|
|
94
|
+
* {
|
|
95
|
+
* channels: [
|
|
96
|
+
* {
|
|
97
|
+
* channelDescription: "Useful channel description",
|
|
98
|
+
* channelId: "WS1234567890abcdefghijkl",
|
|
99
|
+
* channelName: "My First Channel",
|
|
100
|
+
* channelStatus: "CREATED",
|
|
101
|
+
* createDateTime: "2020-02-20T20:20:20.420Z",
|
|
102
|
+
* groupCount: 1,
|
|
103
|
+
* spaceId: "SP1234567890abcdefghijkl",
|
|
104
|
+
* userCount: 5
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* channelDescription: "Better channel description",
|
|
108
|
+
* channelId: "WSabcdefghijkl1234567890",
|
|
109
|
+
* channelName: "Better Channel",
|
|
110
|
+
* channelStatus: "CREATED",
|
|
111
|
+
* createDateTime: "2025-06-20T14:43:34.201Z",
|
|
112
|
+
* groupCount: 0,
|
|
113
|
+
* spaceId: "SP1234567890abcdefghijkl",
|
|
114
|
+
* userCount: 1
|
|
115
|
+
* }
|
|
116
|
+
* ]
|
|
117
|
+
* }
|
|
118
|
+
* *\/
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare class ListChannelsCommand extends ListChannelsCommand_base {
|
|
124
|
+
/** @internal type navigation helper, not in runtime. */
|
|
125
|
+
protected static __types: {
|
|
126
|
+
api: {
|
|
127
|
+
input: ListChannelsInput;
|
|
128
|
+
output: ListChannelsOutput;
|
|
129
|
+
};
|
|
130
|
+
sdk: {
|
|
131
|
+
input: ListChannelsCommandInput;
|
|
132
|
+
output: ListChannelsCommandOutput;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -59,6 +59,12 @@ declare const ListSpacesCommand_base: {
|
|
|
59
59
|
* // userKMSKey: "STRING_VALUE",
|
|
60
60
|
* // userCount: Number("int"),
|
|
61
61
|
* // contentSize: Number("long"),
|
|
62
|
+
* // supportedEmailDomains: { // SupportedEmailDomainsStatus
|
|
63
|
+
* // enabled: "ENABLED" || "DISABLED" || "NOT_ALLOWED",
|
|
64
|
+
* // allowedDomains: [ // AllowedDomainsList
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // },
|
|
62
68
|
* // },
|
|
63
69
|
* // ],
|
|
64
70
|
* // nextToken: "STRING_VALUE",
|
|
@@ -27,7 +27,7 @@ declare const TagResourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post.
|
|
30
|
+
* <p>Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateChannelInput, UpdateChannelOutput } from "../models/models_0";
|
|
4
|
+
import { RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RepostspaceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateChannelCommandInput extends UpdateChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateChannelCommandOutput extends UpdateChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateChannelCommand_base: {
|
|
25
|
+
new (input: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, RepostspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modifies an existing channel.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { RepostspaceClient, UpdateChannelCommand } from "@aws-sdk/client-repostspace"; // ES Modules import
|
|
35
|
+
* // const { RepostspaceClient, UpdateChannelCommand } = require("@aws-sdk/client-repostspace"); // CommonJS import
|
|
36
|
+
* const client = new RepostspaceClient(config);
|
|
37
|
+
* const input = { // UpdateChannelInput
|
|
38
|
+
* spaceId: "STRING_VALUE", // required
|
|
39
|
+
* channelId: "STRING_VALUE", // required
|
|
40
|
+
* channelName: "STRING_VALUE", // required
|
|
41
|
+
* channelDescription: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateChannelCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UpdateChannelCommandInput - {@link UpdateChannelCommandInput}
|
|
50
|
+
* @returns {@link UpdateChannelCommandOutput}
|
|
51
|
+
* @see {@link UpdateChannelCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UpdateChannelCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link RepostspaceClientResolvedConfig | config} for RepostspaceClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>Unexpected error during processing of request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>Request references a resource which does not exist.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>Request was denied due to request throttling.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link RepostspaceServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Repostspace service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @example UpdateChannel
|
|
78
|
+
* ```javascript
|
|
79
|
+
* //
|
|
80
|
+
* const input = {
|
|
81
|
+
* channelDescription: "Better channel description",
|
|
82
|
+
* channelId: "WS1234567890abcdefghijkl",
|
|
83
|
+
* channelName: "Better Channel",
|
|
84
|
+
* spaceId: "SP1234567890abcdefghijkl"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new UpdateChannelCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response is
|
|
89
|
+
* { /* metadata only *\/ }
|
|
90
|
+
* *\/
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class UpdateChannelCommand extends UpdateChannelCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: UpdateChannelInput;
|
|
100
|
+
output: {};
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: UpdateChannelCommandInput;
|
|
104
|
+
output: UpdateChannelCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -39,6 +39,12 @@ declare const UpdateSpaceCommand_base: {
|
|
|
39
39
|
* description: "STRING_VALUE",
|
|
40
40
|
* tier: "BASIC" || "STANDARD",
|
|
41
41
|
* roleArn: "STRING_VALUE",
|
|
42
|
+
* supportedEmailDomains: { // SupportedEmailDomainsParameters
|
|
43
|
+
* enabled: "ENABLED" || "DISABLED",
|
|
44
|
+
* allowedDomains: [ // AllowedDomainsList
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
42
48
|
* };
|
|
43
49
|
* const command = new UpdateSpaceCommand(input);
|
|
44
50
|
* const response = await client.send(command);
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
export * from "./BatchAddChannelRoleToAccessorsCommand";
|
|
1
2
|
export * from "./BatchAddRoleCommand";
|
|
3
|
+
export * from "./BatchRemoveChannelRoleFromAccessorsCommand";
|
|
2
4
|
export * from "./BatchRemoveRoleCommand";
|
|
5
|
+
export * from "./CreateChannelCommand";
|
|
3
6
|
export * from "./CreateSpaceCommand";
|
|
4
7
|
export * from "./DeleteSpaceCommand";
|
|
5
8
|
export * from "./DeregisterAdminCommand";
|
|
9
|
+
export * from "./GetChannelCommand";
|
|
6
10
|
export * from "./GetSpaceCommand";
|
|
11
|
+
export * from "./ListChannelsCommand";
|
|
7
12
|
export * from "./ListSpacesCommand";
|
|
8
13
|
export * from "./ListTagsForResourceCommand";
|
|
9
14
|
export * from "./RegisterAdminCommand";
|
|
10
15
|
export * from "./SendInvitesCommand";
|
|
11
16
|
export * from "./TagResourceCommand";
|
|
12
17
|
export * from "./UntagResourceCommand";
|
|
18
|
+
export * from "./UpdateChannelCommand";
|
|
13
19
|
export * from "./UpdateSpaceCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { RepostspaceExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
+
export * from "./waiters";
|
|
13
14
|
export * from "./models";
|
|
14
15
|
export { RepostspaceServiceException } from "./models/RepostspaceServiceException";
|