@aws-sdk/client-repostspace 3.670.0 → 3.677.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.
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: RepostspaceClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -1,4 +1,12 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ BatchAddRoleCommandInput,
4
+ BatchAddRoleCommandOutput,
5
+ } from "./commands/BatchAddRoleCommand";
6
+ import {
7
+ BatchRemoveRoleCommandInput,
8
+ BatchRemoveRoleCommandOutput,
9
+ } from "./commands/BatchRemoveRoleCommand";
2
10
  import {
3
11
  CreateSpaceCommandInput,
4
12
  CreateSpaceCommandOutput,
@@ -45,6 +53,32 @@ import {
45
53
  } from "./commands/UpdateSpaceCommand";
46
54
  import { RepostspaceClient } from "./RepostspaceClient";
47
55
  export interface Repostspace {
56
+ batchAddRole(
57
+ args: BatchAddRoleCommandInput,
58
+ options?: __HttpHandlerOptions
59
+ ): Promise<BatchAddRoleCommandOutput>;
60
+ batchAddRole(
61
+ args: BatchAddRoleCommandInput,
62
+ cb: (err: any, data?: BatchAddRoleCommandOutput) => void
63
+ ): void;
64
+ batchAddRole(
65
+ args: BatchAddRoleCommandInput,
66
+ options: __HttpHandlerOptions,
67
+ cb: (err: any, data?: BatchAddRoleCommandOutput) => void
68
+ ): void;
69
+ batchRemoveRole(
70
+ args: BatchRemoveRoleCommandInput,
71
+ options?: __HttpHandlerOptions
72
+ ): Promise<BatchRemoveRoleCommandOutput>;
73
+ batchRemoveRole(
74
+ args: BatchRemoveRoleCommandInput,
75
+ cb: (err: any, data?: BatchRemoveRoleCommandOutput) => void
76
+ ): void;
77
+ batchRemoveRole(
78
+ args: BatchRemoveRoleCommandInput,
79
+ options: __HttpHandlerOptions,
80
+ cb: (err: any, data?: BatchRemoveRoleCommandOutput) => void
81
+ ): void;
48
82
  createSpace(
49
83
  args: CreateSpaceCommandInput,
50
84
  options?: __HttpHandlerOptions
@@ -45,6 +45,14 @@ import {
45
45
  HttpAuthSchemeInputConfig,
46
46
  HttpAuthSchemeResolvedConfig,
47
47
  } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ BatchAddRoleCommandInput,
50
+ BatchAddRoleCommandOutput,
51
+ } from "./commands/BatchAddRoleCommand";
52
+ import {
53
+ BatchRemoveRoleCommandInput,
54
+ BatchRemoveRoleCommandOutput,
55
+ } from "./commands/BatchRemoveRoleCommand";
48
56
  import {
49
57
  CreateSpaceCommandInput,
50
58
  CreateSpaceCommandOutput,
@@ -97,6 +105,8 @@ import {
97
105
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
98
106
  export { __Client };
99
107
  export type ServiceInputTypes =
108
+ | BatchAddRoleCommandInput
109
+ | BatchRemoveRoleCommandInput
100
110
  | CreateSpaceCommandInput
101
111
  | DeleteSpaceCommandInput
102
112
  | DeregisterAdminCommandInput
@@ -109,6 +119,8 @@ export type ServiceInputTypes =
109
119
  | UntagResourceCommandInput
110
120
  | UpdateSpaceCommandInput;
111
121
  export type ServiceOutputTypes =
122
+ | BatchAddRoleCommandOutput
123
+ | BatchRemoveRoleCommandOutput
112
124
  | CreateSpaceCommandOutput
113
125
  | DeleteSpaceCommandOutput
114
126
  | DeregisterAdminCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchAddRoleInput, BatchAddRoleOutput } from "../models/models_0";
4
+ import {
5
+ RepostspaceClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../RepostspaceClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface BatchAddRoleCommandInput extends BatchAddRoleInput {}
12
+ export interface BatchAddRoleCommandOutput
13
+ extends BatchAddRoleOutput,
14
+ __MetadataBearer {}
15
+ declare const BatchAddRoleCommand_base: {
16
+ new (
17
+ input: BatchAddRoleCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ BatchAddRoleCommandInput,
20
+ BatchAddRoleCommandOutput,
21
+ RepostspaceClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: BatchAddRoleCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ BatchAddRoleCommandInput,
29
+ BatchAddRoleCommandOutput,
30
+ RepostspaceClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class BatchAddRoleCommand extends BatchAddRoleCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: BatchAddRoleInput;
40
+ output: BatchAddRoleOutput;
41
+ };
42
+ sdk: {
43
+ input: BatchAddRoleCommandInput;
44
+ output: BatchAddRoleCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BatchRemoveRoleInput,
5
+ BatchRemoveRoleOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ RepostspaceClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../RepostspaceClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface BatchRemoveRoleCommandInput extends BatchRemoveRoleInput {}
15
+ export interface BatchRemoveRoleCommandOutput
16
+ extends BatchRemoveRoleOutput,
17
+ __MetadataBearer {}
18
+ declare const BatchRemoveRoleCommand_base: {
19
+ new (
20
+ input: BatchRemoveRoleCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ BatchRemoveRoleCommandInput,
23
+ BatchRemoveRoleCommandOutput,
24
+ RepostspaceClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: BatchRemoveRoleCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ BatchRemoveRoleCommandInput,
32
+ BatchRemoveRoleCommandOutput,
33
+ RepostspaceClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class BatchRemoveRoleCommand extends BatchRemoveRoleCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: BatchRemoveRoleInput;
43
+ output: BatchRemoveRoleOutput;
44
+ };
45
+ sdk: {
46
+ input: BatchRemoveRoleCommandInput;
47
+ output: BatchRemoveRoleCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./BatchAddRoleCommand";
2
+ export * from "./BatchRemoveRoleCommand";
1
3
  export * from "./CreateSpaceCommand";
2
4
  export * from "./DeleteSpaceCommand";
3
5
  export * from "./DeregisterAdminCommand";
@@ -7,35 +7,26 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
- export declare const ConfigurationStatus: {
11
- readonly CONFIGURED: "CONFIGURED";
12
- readonly UNCONFIGURED: "UNCONFIGURED";
10
+ export declare const Role: {
11
+ readonly ADMINISTRATOR: "ADMINISTRATOR";
12
+ readonly EXPERT: "EXPERT";
13
+ readonly MODERATOR: "MODERATOR";
14
+ readonly SUPPORTREQUESTOR: "SUPPORTREQUESTOR";
13
15
  };
14
- export type ConfigurationStatus =
15
- (typeof ConfigurationStatus)[keyof typeof ConfigurationStatus];
16
- export declare class ConflictException extends __BaseException {
17
- readonly name: "ConflictException";
18
- readonly $fault: "client";
19
- resourceId: string | undefined;
20
- resourceType: string | undefined;
21
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
16
+ export type Role = (typeof Role)[keyof typeof Role];
17
+ export interface BatchAddRoleInput {
18
+ spaceId: string | undefined;
19
+ accessorIds: string[] | undefined;
20
+ role: Role | undefined;
22
21
  }
23
- export declare const TierLevel: {
24
- readonly BASIC: "BASIC";
25
- readonly STANDARD: "STANDARD";
26
- };
27
- export type TierLevel = (typeof TierLevel)[keyof typeof TierLevel];
28
- export interface CreateSpaceInput {
29
- name: string | undefined;
30
- subdomain: string | undefined;
31
- tier: TierLevel | undefined;
32
- description?: string;
33
- userKMSKey?: string;
34
- tags?: Record<string, string>;
35
- roleArn?: string;
22
+ export interface BatchError {
23
+ accessorId: string | undefined;
24
+ error: number | undefined;
25
+ message: string | undefined;
36
26
  }
37
- export interface CreateSpaceOutput {
38
- spaceId: string | undefined;
27
+ export interface BatchAddRoleOutput {
28
+ addedAccessorIds: string[] | undefined;
29
+ errors: BatchError[] | undefined;
39
30
  }
40
31
  export declare class InternalServerException extends __BaseException {
41
32
  readonly name: "InternalServerException";
@@ -55,17 +46,6 @@ export declare class ResourceNotFoundException extends __BaseException {
55
46
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
56
47
  );
57
48
  }
58
- export declare class ServiceQuotaExceededException extends __BaseException {
59
- readonly name: "ServiceQuotaExceededException";
60
- readonly $fault: "client";
61
- resourceId: string | undefined;
62
- resourceType: string | undefined;
63
- serviceCode: string | undefined;
64
- quotaCode: string | undefined;
65
- constructor(
66
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
67
- );
68
- }
69
49
  export declare class ThrottlingException extends __BaseException {
70
50
  readonly name: "ThrottlingException";
71
51
  readonly $fault: "client";
@@ -100,6 +80,56 @@ export declare class ValidationException extends __BaseException {
100
80
  opts: __ExceptionOptionType<ValidationException, __BaseException>
101
81
  );
102
82
  }
83
+ export interface BatchRemoveRoleInput {
84
+ spaceId: string | undefined;
85
+ accessorIds: string[] | undefined;
86
+ role: Role | undefined;
87
+ }
88
+ export interface BatchRemoveRoleOutput {
89
+ removedAccessorIds: string[] | undefined;
90
+ errors: BatchError[] | undefined;
91
+ }
92
+ export declare const ConfigurationStatus: {
93
+ readonly CONFIGURED: "CONFIGURED";
94
+ readonly UNCONFIGURED: "UNCONFIGURED";
95
+ };
96
+ export type ConfigurationStatus =
97
+ (typeof ConfigurationStatus)[keyof typeof ConfigurationStatus];
98
+ export declare class ConflictException extends __BaseException {
99
+ readonly name: "ConflictException";
100
+ readonly $fault: "client";
101
+ resourceId: string | undefined;
102
+ resourceType: string | undefined;
103
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
104
+ }
105
+ export declare const TierLevel: {
106
+ readonly BASIC: "BASIC";
107
+ readonly STANDARD: "STANDARD";
108
+ };
109
+ export type TierLevel = (typeof TierLevel)[keyof typeof TierLevel];
110
+ export interface CreateSpaceInput {
111
+ name: string | undefined;
112
+ subdomain: string | undefined;
113
+ tier: TierLevel | undefined;
114
+ description?: string;
115
+ userKMSKey?: string;
116
+ tags?: Record<string, string>;
117
+ roleArn?: string;
118
+ }
119
+ export interface CreateSpaceOutput {
120
+ spaceId: string | undefined;
121
+ }
122
+ export declare class ServiceQuotaExceededException extends __BaseException {
123
+ readonly name: "ServiceQuotaExceededException";
124
+ readonly $fault: "client";
125
+ resourceId: string | undefined;
126
+ resourceType: string | undefined;
127
+ serviceCode: string | undefined;
128
+ quotaCode: string | undefined;
129
+ constructor(
130
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
131
+ );
132
+ }
103
133
  export interface DeleteSpaceInput {
104
134
  spaceId: string | undefined;
105
135
  }
@@ -135,6 +165,7 @@ export interface GetSpaceOutput {
135
165
  storageLimit: number | undefined;
136
166
  userAdmins?: string[];
137
167
  groupAdmins?: string[];
168
+ roles?: Record<string, Role[]>;
138
169
  userKMSKey?: string;
139
170
  userCount?: number;
140
171
  contentSize?: number;
@@ -3,6 +3,14 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ BatchAddRoleCommandInput,
8
+ BatchAddRoleCommandOutput,
9
+ } from "../commands/BatchAddRoleCommand";
10
+ import {
11
+ BatchRemoveRoleCommandInput,
12
+ BatchRemoveRoleCommandOutput,
13
+ } from "../commands/BatchRemoveRoleCommand";
6
14
  import {
7
15
  CreateSpaceCommandInput,
8
16
  CreateSpaceCommandOutput,
@@ -47,6 +55,14 @@ import {
47
55
  UpdateSpaceCommandInput,
48
56
  UpdateSpaceCommandOutput,
49
57
  } from "../commands/UpdateSpaceCommand";
58
+ export declare const se_BatchAddRoleCommand: (
59
+ input: BatchAddRoleCommandInput,
60
+ context: __SerdeContext
61
+ ) => Promise<__HttpRequest>;
62
+ export declare const se_BatchRemoveRoleCommand: (
63
+ input: BatchRemoveRoleCommandInput,
64
+ context: __SerdeContext
65
+ ) => Promise<__HttpRequest>;
50
66
  export declare const se_CreateSpaceCommand: (
51
67
  input: CreateSpaceCommandInput,
52
68
  context: __SerdeContext
@@ -91,6 +107,14 @@ export declare const se_UpdateSpaceCommand: (
91
107
  input: UpdateSpaceCommandInput,
92
108
  context: __SerdeContext
93
109
  ) => Promise<__HttpRequest>;
110
+ export declare const de_BatchAddRoleCommand: (
111
+ output: __HttpResponse,
112
+ context: __SerdeContext
113
+ ) => Promise<BatchAddRoleCommandOutput>;
114
+ export declare const de_BatchRemoveRoleCommand: (
115
+ output: __HttpResponse,
116
+ context: __SerdeContext
117
+ ) => Promise<BatchRemoveRoleCommandOutput>;
94
118
  export declare const de_CreateSpaceCommand: (
95
119
  output: __HttpResponse,
96
120
  context: __SerdeContext
@@ -10,7 +10,9 @@ export declare const getRuntimeConfig: (config: RepostspaceClientConfig) => {
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
12
  defaultUserAgentProvider: (
13
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
13
+ config?:
14
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
15
+ | undefined
14
16
  ) => Promise<import("@smithy/types").UserAgent>;
15
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
16
18
  region: string | import("@smithy/types").Provider<any>;
@@ -23,7 +23,9 @@ export declare const getRuntimeConfig: (config: RepostspaceClientConfig) => {
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
25
  defaultUserAgentProvider: (
26
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
26
+ config?:
27
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
28
+ | undefined
27
29
  ) => Promise<import("@smithy/types").UserAgent>;
28
30
  credentialDefaultProvider: (
29
31
  input: any
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-repostspace",
3
3
  "description": "AWS SDK for JavaScript Repostspace Client for Node.js, Browser and React Native",
4
- "version": "3.670.0",
4
+ "version": "3.677.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-repostspace",
@@ -20,19 +20,19 @@
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.670.0",
24
- "@aws-sdk/client-sts": "3.670.0",
25
- "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.670.0",
23
+ "@aws-sdk/client-sso-oidc": "3.677.0",
24
+ "@aws-sdk/client-sts": "3.677.0",
25
+ "@aws-sdk/core": "3.677.0",
26
+ "@aws-sdk/credential-provider-node": "3.677.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
30
- "@aws-sdk/middleware-user-agent": "3.669.0",
30
+ "@aws-sdk/middleware-user-agent": "3.677.0",
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
- "@aws-sdk/util-user-agent-browser": "3.670.0",
35
- "@aws-sdk/util-user-agent-node": "3.669.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.675.0",
35
+ "@aws-sdk/util-user-agent-node": "3.677.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",
38
38
  "@smithy/fetch-http-handler": "^3.2.9",