@aws-sdk/client-repostspace 3.934.0 → 3.936.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/dist-cjs/index.js CHANGED
@@ -130,12 +130,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends RepostspaceSer
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  }
132
132
  };
133
- const ChannelRole = {
134
- ASKER: "ASKER",
135
- EXPERT: "EXPERT",
136
- MODERATOR: "MODERATOR",
137
- SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
138
- };
139
133
  let InternalServerException$1 = class InternalServerException extends RepostspaceServiceException$1 {
140
134
  name = "InternalServerException";
141
135
  $fault = "server";
@@ -188,12 +182,6 @@ let ThrottlingException$1 = class ThrottlingException extends RepostspaceService
188
182
  this.retryAfterSeconds = opts.retryAfterSeconds;
189
183
  }
190
184
  };
191
- const ValidationExceptionReason = {
192
- CANNOT_PARSE: "cannotParse",
193
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
194
- OTHER: "other",
195
- UNKNOWN_OPERATION: "unknownOperation",
196
- };
197
185
  let ValidationException$1 = class ValidationException extends RepostspaceServiceException$1 {
198
186
  name = "ValidationException";
199
187
  $fault = "client";
@@ -210,24 +198,6 @@ let ValidationException$1 = class ValidationException extends RepostspaceService
210
198
  this.fieldList = opts.fieldList;
211
199
  }
212
200
  };
213
- const Role = {
214
- ADMINISTRATOR: "ADMINISTRATOR",
215
- EXPERT: "EXPERT",
216
- MODERATOR: "MODERATOR",
217
- SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
218
- };
219
- const ChannelStatus = {
220
- CREATED: "CREATED",
221
- CREATE_FAILED: "CREATE_FAILED",
222
- CREATING: "CREATING",
223
- DELETED: "DELETED",
224
- DELETE_FAILED: "DELETE_FAILED",
225
- DELETING: "DELETING",
226
- };
227
- const ConfigurationStatus = {
228
- CONFIGURED: "CONFIGURED",
229
- UNCONFIGURED: "UNCONFIGURED",
230
- };
231
201
  let ConflictException$1 = class ConflictException extends RepostspaceServiceException$1 {
232
202
  name = "ConflictException";
233
203
  $fault = "client";
@@ -264,24 +234,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
264
234
  this.quotaCode = opts.quotaCode;
265
235
  }
266
236
  };
267
- const FeatureEnableParameter = {
268
- DISABLED: "DISABLED",
269
- ENABLED: "ENABLED",
270
- };
271
- const TierLevel = {
272
- BASIC: "BASIC",
273
- STANDARD: "STANDARD",
274
- };
275
- const FeatureEnableStatus = {
276
- DISABLED: "DISABLED",
277
- ENABLED: "ENABLED",
278
- NOT_ALLOWED: "NOT_ALLOWED",
279
- };
280
- const VanityDomainStatus = {
281
- APPROVED: "APPROVED",
282
- PENDING: "PENDING",
283
- UNAPPROVED: "UNAPPROVED",
284
- };
285
237
 
286
238
  const _ADE = "AccessDeniedException";
287
239
  const _ADL = "AllowedDomainsList";
@@ -1529,6 +1481,55 @@ const waitUntilSpaceDeleted = async (params, input) => {
1529
1481
  return utilWaiter.checkExceptions(result);
1530
1482
  };
1531
1483
 
1484
+ const ChannelRole = {
1485
+ ASKER: "ASKER",
1486
+ EXPERT: "EXPERT",
1487
+ MODERATOR: "MODERATOR",
1488
+ SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
1489
+ };
1490
+ const ValidationExceptionReason = {
1491
+ CANNOT_PARSE: "cannotParse",
1492
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
1493
+ OTHER: "other",
1494
+ UNKNOWN_OPERATION: "unknownOperation",
1495
+ };
1496
+ const Role = {
1497
+ ADMINISTRATOR: "ADMINISTRATOR",
1498
+ EXPERT: "EXPERT",
1499
+ MODERATOR: "MODERATOR",
1500
+ SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
1501
+ };
1502
+ const ChannelStatus = {
1503
+ CREATED: "CREATED",
1504
+ CREATE_FAILED: "CREATE_FAILED",
1505
+ CREATING: "CREATING",
1506
+ DELETED: "DELETED",
1507
+ DELETE_FAILED: "DELETE_FAILED",
1508
+ DELETING: "DELETING",
1509
+ };
1510
+ const ConfigurationStatus = {
1511
+ CONFIGURED: "CONFIGURED",
1512
+ UNCONFIGURED: "UNCONFIGURED",
1513
+ };
1514
+ const FeatureEnableParameter = {
1515
+ DISABLED: "DISABLED",
1516
+ ENABLED: "ENABLED",
1517
+ };
1518
+ const TierLevel = {
1519
+ BASIC: "BASIC",
1520
+ STANDARD: "STANDARD",
1521
+ };
1522
+ const FeatureEnableStatus = {
1523
+ DISABLED: "DISABLED",
1524
+ ENABLED: "ENABLED",
1525
+ NOT_ALLOWED: "NOT_ALLOWED",
1526
+ };
1527
+ const VanityDomainStatus = {
1528
+ APPROVED: "APPROVED",
1529
+ PENDING: "PENDING",
1530
+ UNAPPROVED: "UNAPPROVED",
1531
+ };
1532
+
1532
1533
  Object.defineProperty(exports, "$Command", {
1533
1534
  enumerable: true,
1534
1535
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -3,5 +3,6 @@ export * from "./Repostspace";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
- export * from "./models";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
7
8
  export { RepostspaceServiceException } from "./models/RepostspaceServiceException";
@@ -0,0 +1,48 @@
1
+ export const ChannelRole = {
2
+ ASKER: "ASKER",
3
+ EXPERT: "EXPERT",
4
+ MODERATOR: "MODERATOR",
5
+ SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
6
+ };
7
+ export const ValidationExceptionReason = {
8
+ CANNOT_PARSE: "cannotParse",
9
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
10
+ OTHER: "other",
11
+ UNKNOWN_OPERATION: "unknownOperation",
12
+ };
13
+ export const Role = {
14
+ ADMINISTRATOR: "ADMINISTRATOR",
15
+ EXPERT: "EXPERT",
16
+ MODERATOR: "MODERATOR",
17
+ SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
18
+ };
19
+ export const ChannelStatus = {
20
+ CREATED: "CREATED",
21
+ CREATE_FAILED: "CREATE_FAILED",
22
+ CREATING: "CREATING",
23
+ DELETED: "DELETED",
24
+ DELETE_FAILED: "DELETE_FAILED",
25
+ DELETING: "DELETING",
26
+ };
27
+ export const ConfigurationStatus = {
28
+ CONFIGURED: "CONFIGURED",
29
+ UNCONFIGURED: "UNCONFIGURED",
30
+ };
31
+ export const FeatureEnableParameter = {
32
+ DISABLED: "DISABLED",
33
+ ENABLED: "ENABLED",
34
+ };
35
+ export const TierLevel = {
36
+ BASIC: "BASIC",
37
+ STANDARD: "STANDARD",
38
+ };
39
+ export const FeatureEnableStatus = {
40
+ DISABLED: "DISABLED",
41
+ ENABLED: "ENABLED",
42
+ NOT_ALLOWED: "NOT_ALLOWED",
43
+ };
44
+ export const VanityDomainStatus = {
45
+ APPROVED: "APPROVED",
46
+ PENDING: "PENDING",
47
+ UNAPPROVED: "UNAPPROVED",
48
+ };
@@ -0,0 +1,117 @@
1
+ import { RepostspaceServiceException as __BaseException } from "./RepostspaceServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ name = "InternalServerException";
16
+ $fault = "server";
17
+ $retryable = {};
18
+ retryAfterSeconds;
19
+ constructor(opts) {
20
+ super({
21
+ name: "InternalServerException",
22
+ $fault: "server",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, InternalServerException.prototype);
26
+ this.retryAfterSeconds = opts.retryAfterSeconds;
27
+ }
28
+ }
29
+ export class ResourceNotFoundException extends __BaseException {
30
+ name = "ResourceNotFoundException";
31
+ $fault = "client";
32
+ resourceId;
33
+ resourceType;
34
+ constructor(opts) {
35
+ super({
36
+ name: "ResourceNotFoundException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
41
+ this.resourceId = opts.resourceId;
42
+ this.resourceType = opts.resourceType;
43
+ }
44
+ }
45
+ export class ThrottlingException extends __BaseException {
46
+ name = "ThrottlingException";
47
+ $fault = "client";
48
+ $retryable = {
49
+ throttling: true,
50
+ };
51
+ serviceCode;
52
+ quotaCode;
53
+ retryAfterSeconds;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ThrottlingException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
61
+ this.serviceCode = opts.serviceCode;
62
+ this.quotaCode = opts.quotaCode;
63
+ this.retryAfterSeconds = opts.retryAfterSeconds;
64
+ }
65
+ }
66
+ export class ValidationException extends __BaseException {
67
+ name = "ValidationException";
68
+ $fault = "client";
69
+ reason;
70
+ fieldList;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ValidationException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ValidationException.prototype);
78
+ this.reason = opts.reason;
79
+ this.fieldList = opts.fieldList;
80
+ }
81
+ }
82
+ export class ConflictException extends __BaseException {
83
+ name = "ConflictException";
84
+ $fault = "client";
85
+ resourceId;
86
+ resourceType;
87
+ constructor(opts) {
88
+ super({
89
+ name: "ConflictException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, ConflictException.prototype);
94
+ this.resourceId = opts.resourceId;
95
+ this.resourceType = opts.resourceType;
96
+ }
97
+ }
98
+ export class ServiceQuotaExceededException extends __BaseException {
99
+ name = "ServiceQuotaExceededException";
100
+ $fault = "client";
101
+ resourceId;
102
+ resourceType;
103
+ serviceCode;
104
+ quotaCode;
105
+ constructor(opts) {
106
+ super({
107
+ name: "ServiceQuotaExceededException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
112
+ this.resourceId = opts.resourceId;
113
+ this.resourceType = opts.resourceType;
114
+ this.serviceCode = opts.serviceCode;
115
+ this.quotaCode = opts.quotaCode;
116
+ }
117
+ }
@@ -1,165 +1 @@
1
- import { RepostspaceServiceException as __BaseException } from "./RepostspaceServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export const ChannelRole = {
15
- ASKER: "ASKER",
16
- EXPERT: "EXPERT",
17
- MODERATOR: "MODERATOR",
18
- SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
19
- };
20
- export class InternalServerException extends __BaseException {
21
- name = "InternalServerException";
22
- $fault = "server";
23
- $retryable = {};
24
- retryAfterSeconds;
25
- constructor(opts) {
26
- super({
27
- name: "InternalServerException",
28
- $fault: "server",
29
- ...opts,
30
- });
31
- Object.setPrototypeOf(this, InternalServerException.prototype);
32
- this.retryAfterSeconds = opts.retryAfterSeconds;
33
- }
34
- }
35
- export class ResourceNotFoundException extends __BaseException {
36
- name = "ResourceNotFoundException";
37
- $fault = "client";
38
- resourceId;
39
- resourceType;
40
- constructor(opts) {
41
- super({
42
- name: "ResourceNotFoundException",
43
- $fault: "client",
44
- ...opts,
45
- });
46
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
47
- this.resourceId = opts.resourceId;
48
- this.resourceType = opts.resourceType;
49
- }
50
- }
51
- export class ThrottlingException extends __BaseException {
52
- name = "ThrottlingException";
53
- $fault = "client";
54
- $retryable = {
55
- throttling: true,
56
- };
57
- serviceCode;
58
- quotaCode;
59
- retryAfterSeconds;
60
- constructor(opts) {
61
- super({
62
- name: "ThrottlingException",
63
- $fault: "client",
64
- ...opts,
65
- });
66
- Object.setPrototypeOf(this, ThrottlingException.prototype);
67
- this.serviceCode = opts.serviceCode;
68
- this.quotaCode = opts.quotaCode;
69
- this.retryAfterSeconds = opts.retryAfterSeconds;
70
- }
71
- }
72
- export const ValidationExceptionReason = {
73
- CANNOT_PARSE: "cannotParse",
74
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
75
- OTHER: "other",
76
- UNKNOWN_OPERATION: "unknownOperation",
77
- };
78
- export class ValidationException extends __BaseException {
79
- name = "ValidationException";
80
- $fault = "client";
81
- reason;
82
- fieldList;
83
- constructor(opts) {
84
- super({
85
- name: "ValidationException",
86
- $fault: "client",
87
- ...opts,
88
- });
89
- Object.setPrototypeOf(this, ValidationException.prototype);
90
- this.reason = opts.reason;
91
- this.fieldList = opts.fieldList;
92
- }
93
- }
94
- export const Role = {
95
- ADMINISTRATOR: "ADMINISTRATOR",
96
- EXPERT: "EXPERT",
97
- MODERATOR: "MODERATOR",
98
- SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
99
- };
100
- export const ChannelStatus = {
101
- CREATED: "CREATED",
102
- CREATE_FAILED: "CREATE_FAILED",
103
- CREATING: "CREATING",
104
- DELETED: "DELETED",
105
- DELETE_FAILED: "DELETE_FAILED",
106
- DELETING: "DELETING",
107
- };
108
- export const ConfigurationStatus = {
109
- CONFIGURED: "CONFIGURED",
110
- UNCONFIGURED: "UNCONFIGURED",
111
- };
112
- export class ConflictException extends __BaseException {
113
- name = "ConflictException";
114
- $fault = "client";
115
- resourceId;
116
- resourceType;
117
- constructor(opts) {
118
- super({
119
- name: "ConflictException",
120
- $fault: "client",
121
- ...opts,
122
- });
123
- Object.setPrototypeOf(this, ConflictException.prototype);
124
- this.resourceId = opts.resourceId;
125
- this.resourceType = opts.resourceType;
126
- }
127
- }
128
- export class ServiceQuotaExceededException extends __BaseException {
129
- name = "ServiceQuotaExceededException";
130
- $fault = "client";
131
- resourceId;
132
- resourceType;
133
- serviceCode;
134
- quotaCode;
135
- constructor(opts) {
136
- super({
137
- name: "ServiceQuotaExceededException",
138
- $fault: "client",
139
- ...opts,
140
- });
141
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
142
- this.resourceId = opts.resourceId;
143
- this.resourceType = opts.resourceType;
144
- this.serviceCode = opts.serviceCode;
145
- this.quotaCode = opts.quotaCode;
146
- }
147
- }
148
- export const FeatureEnableParameter = {
149
- DISABLED: "DISABLED",
150
- ENABLED: "ENABLED",
151
- };
152
- export const TierLevel = {
153
- BASIC: "BASIC",
154
- STANDARD: "STANDARD",
155
- };
156
- export const FeatureEnableStatus = {
157
- DISABLED: "DISABLED",
158
- ENABLED: "ENABLED",
159
- NOT_ALLOWED: "NOT_ALLOWED",
160
- };
161
- export const VanityDomainStatus = {
162
- APPROVED: "APPROVED",
163
- PENDING: "PENDING",
164
- UNAPPROVED: "UNAPPROVED",
165
- };
1
+ export {};
@@ -148,7 +148,7 @@ const _vD = "vanityDomain";
148
148
  const _vDS = "vanityDomainStatus";
149
149
  const n0 = "com.amazonaws.repostspace";
150
150
  import { TypeRegistry } from "@smithy/core/schema";
151
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
151
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
152
152
  import { RepostspaceServiceException as __RepostspaceServiceException } from "../models/RepostspaceServiceException";
153
153
  export var ChannelDescription = [0, n0, _CD, 8, 0];
154
154
  export var ChannelName = [0, n0, _CN, 8, 0];
@@ -11,5 +11,7 @@ export type { RepostspaceExtensionConfiguration } from "./extensionConfiguration
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
13
  export * from "./waiters";
14
- export * from "./models";
14
+ export * from "./models/enums";
15
+ export * from "./models/errors";
16
+ export type * from "./models/models_0";
15
17
  export { RepostspaceServiceException } from "./models/RepostspaceServiceException";
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ChannelRole: {
6
+ readonly ASKER: "ASKER";
7
+ readonly EXPERT: "EXPERT";
8
+ readonly MODERATOR: "MODERATOR";
9
+ readonly SUPPORTREQUESTOR: "SUPPORTREQUESTOR";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type ChannelRole = (typeof ChannelRole)[keyof typeof ChannelRole];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const ValidationExceptionReason: {
20
+ readonly CANNOT_PARSE: "cannotParse";
21
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
22
+ readonly OTHER: "other";
23
+ readonly UNKNOWN_OPERATION: "unknownOperation";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
29
+ /**
30
+ * @public
31
+ * @enum
32
+ */
33
+ export declare const Role: {
34
+ readonly ADMINISTRATOR: "ADMINISTRATOR";
35
+ readonly EXPERT: "EXPERT";
36
+ readonly MODERATOR: "MODERATOR";
37
+ readonly SUPPORTREQUESTOR: "SUPPORTREQUESTOR";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type Role = (typeof Role)[keyof typeof Role];
43
+ /**
44
+ * @public
45
+ * @enum
46
+ */
47
+ export declare const ChannelStatus: {
48
+ readonly CREATED: "CREATED";
49
+ readonly CREATE_FAILED: "CREATE_FAILED";
50
+ readonly CREATING: "CREATING";
51
+ readonly DELETED: "DELETED";
52
+ readonly DELETE_FAILED: "DELETE_FAILED";
53
+ readonly DELETING: "DELETING";
54
+ };
55
+ /**
56
+ * @public
57
+ */
58
+ export type ChannelStatus = (typeof ChannelStatus)[keyof typeof ChannelStatus];
59
+ /**
60
+ * @public
61
+ * @enum
62
+ */
63
+ export declare const ConfigurationStatus: {
64
+ readonly CONFIGURED: "CONFIGURED";
65
+ readonly UNCONFIGURED: "UNCONFIGURED";
66
+ };
67
+ /**
68
+ * @public
69
+ */
70
+ export type ConfigurationStatus = (typeof ConfigurationStatus)[keyof typeof ConfigurationStatus];
71
+ /**
72
+ * @public
73
+ * @enum
74
+ */
75
+ export declare const FeatureEnableParameter: {
76
+ readonly DISABLED: "DISABLED";
77
+ readonly ENABLED: "ENABLED";
78
+ };
79
+ /**
80
+ * @public
81
+ */
82
+ export type FeatureEnableParameter = (typeof FeatureEnableParameter)[keyof typeof FeatureEnableParameter];
83
+ /**
84
+ * @public
85
+ * @enum
86
+ */
87
+ export declare const TierLevel: {
88
+ readonly BASIC: "BASIC";
89
+ readonly STANDARD: "STANDARD";
90
+ };
91
+ /**
92
+ * @public
93
+ */
94
+ export type TierLevel = (typeof TierLevel)[keyof typeof TierLevel];
95
+ /**
96
+ * @public
97
+ * @enum
98
+ */
99
+ export declare const FeatureEnableStatus: {
100
+ readonly DISABLED: "DISABLED";
101
+ readonly ENABLED: "ENABLED";
102
+ readonly NOT_ALLOWED: "NOT_ALLOWED";
103
+ };
104
+ /**
105
+ * @public
106
+ */
107
+ export type FeatureEnableStatus = (typeof FeatureEnableStatus)[keyof typeof FeatureEnableStatus];
108
+ /**
109
+ * @public
110
+ * @enum
111
+ */
112
+ export declare const VanityDomainStatus: {
113
+ readonly APPROVED: "APPROVED";
114
+ readonly PENDING: "PENDING";
115
+ readonly UNAPPROVED: "UNAPPROVED";
116
+ };
117
+ /**
118
+ * @public
119
+ */
120
+ export type VanityDomainStatus = (typeof VanityDomainStatus)[keyof typeof VanityDomainStatus];