@aws-sdk/client-amplifybackend 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
@@ -117,12 +117,6 @@ let AmplifyBackendServiceException$1 = class AmplifyBackendServiceException exte
117
117
  }
118
118
  };
119
119
 
120
- const AdditionalConstraintsElement = {
121
- REQUIRE_DIGIT: "REQUIRE_DIGIT",
122
- REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
123
- REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
124
- REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
125
- };
126
120
  let BadRequestException$1 = class BadRequestException extends AmplifyBackendServiceException$1 {
127
121
  name = "BadRequestException";
128
122
  $fault = "client";
@@ -183,91 +177,6 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends AmplifyB
183
177
  this.Message = opts.Message;
184
178
  }
185
179
  };
186
- const Mode = {
187
- AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
188
- API_KEY: "API_KEY",
189
- AWS_IAM: "AWS_IAM",
190
- OPENID_CONNECT: "OPENID_CONNECT",
191
- };
192
- const ResolutionStrategy = {
193
- AUTOMERGE: "AUTOMERGE",
194
- LAMBDA: "LAMBDA",
195
- NONE: "NONE",
196
- OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
197
- };
198
- const AuthResources = {
199
- IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
200
- USER_POOL_ONLY: "USER_POOL_ONLY",
201
- };
202
- const Service = {
203
- COGNITO: "COGNITO",
204
- };
205
- const DeliveryMethod = {
206
- EMAIL: "EMAIL",
207
- SMS: "SMS",
208
- };
209
- const MFAMode = {
210
- OFF: "OFF",
211
- ON: "ON",
212
- OPTIONAL: "OPTIONAL",
213
- };
214
- const MfaTypesElement = {
215
- SMS: "SMS",
216
- TOTP: "TOTP",
217
- };
218
- const OAuthGrantType = {
219
- CODE: "CODE",
220
- IMPLICIT: "IMPLICIT",
221
- };
222
- const OAuthScopesElement = {
223
- AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
224
- EMAIL: "EMAIL",
225
- OPENID: "OPENID",
226
- PHONE: "PHONE",
227
- PROFILE: "PROFILE",
228
- };
229
- const RequiredSignUpAttributesElement = {
230
- ADDRESS: "ADDRESS",
231
- BIRTHDATE: "BIRTHDATE",
232
- EMAIL: "EMAIL",
233
- FAMILY_NAME: "FAMILY_NAME",
234
- GENDER: "GENDER",
235
- GIVEN_NAME: "GIVEN_NAME",
236
- LOCALE: "LOCALE",
237
- MIDDLE_NAME: "MIDDLE_NAME",
238
- NAME: "NAME",
239
- NICKNAME: "NICKNAME",
240
- PHONE_NUMBER: "PHONE_NUMBER",
241
- PICTURE: "PICTURE",
242
- PREFERRED_USERNAME: "PREFERRED_USERNAME",
243
- PROFILE: "PROFILE",
244
- UPDATED_AT: "UPDATED_AT",
245
- WEBSITE: "WEBSITE",
246
- ZONE_INFO: "ZONE_INFO",
247
- };
248
- const SignInMethod = {
249
- EMAIL: "EMAIL",
250
- EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
251
- PHONE_NUMBER: "PHONE_NUMBER",
252
- USERNAME: "USERNAME",
253
- };
254
- const AuthenticatedElement = {
255
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
256
- DELETE: "DELETE",
257
- READ: "READ",
258
- };
259
- const UnAuthenticatedElement = {
260
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
261
- DELETE: "DELETE",
262
- READ: "READ",
263
- };
264
- const ServiceName = {
265
- S3: "S3",
266
- };
267
- const Status = {
268
- LATEST: "LATEST",
269
- STALE: "STALE",
270
- };
271
180
 
272
181
  const _A = "Authenticated";
273
182
  const _AAT = "AdditionalAuthTypes";
@@ -4148,6 +4057,98 @@ class AmplifyBackend extends AmplifyBackendClient {
4148
4057
  }
4149
4058
  smithyClient.createAggregatedClient(commands, AmplifyBackend);
4150
4059
 
4060
+ const AdditionalConstraintsElement = {
4061
+ REQUIRE_DIGIT: "REQUIRE_DIGIT",
4062
+ REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
4063
+ REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
4064
+ REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
4065
+ };
4066
+ const Mode = {
4067
+ AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
4068
+ API_KEY: "API_KEY",
4069
+ AWS_IAM: "AWS_IAM",
4070
+ OPENID_CONNECT: "OPENID_CONNECT",
4071
+ };
4072
+ const ResolutionStrategy = {
4073
+ AUTOMERGE: "AUTOMERGE",
4074
+ LAMBDA: "LAMBDA",
4075
+ NONE: "NONE",
4076
+ OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
4077
+ };
4078
+ const AuthResources = {
4079
+ IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
4080
+ USER_POOL_ONLY: "USER_POOL_ONLY",
4081
+ };
4082
+ const Service = {
4083
+ COGNITO: "COGNITO",
4084
+ };
4085
+ const DeliveryMethod = {
4086
+ EMAIL: "EMAIL",
4087
+ SMS: "SMS",
4088
+ };
4089
+ const MFAMode = {
4090
+ OFF: "OFF",
4091
+ ON: "ON",
4092
+ OPTIONAL: "OPTIONAL",
4093
+ };
4094
+ const MfaTypesElement = {
4095
+ SMS: "SMS",
4096
+ TOTP: "TOTP",
4097
+ };
4098
+ const OAuthGrantType = {
4099
+ CODE: "CODE",
4100
+ IMPLICIT: "IMPLICIT",
4101
+ };
4102
+ const OAuthScopesElement = {
4103
+ AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
4104
+ EMAIL: "EMAIL",
4105
+ OPENID: "OPENID",
4106
+ PHONE: "PHONE",
4107
+ PROFILE: "PROFILE",
4108
+ };
4109
+ const RequiredSignUpAttributesElement = {
4110
+ ADDRESS: "ADDRESS",
4111
+ BIRTHDATE: "BIRTHDATE",
4112
+ EMAIL: "EMAIL",
4113
+ FAMILY_NAME: "FAMILY_NAME",
4114
+ GENDER: "GENDER",
4115
+ GIVEN_NAME: "GIVEN_NAME",
4116
+ LOCALE: "LOCALE",
4117
+ MIDDLE_NAME: "MIDDLE_NAME",
4118
+ NAME: "NAME",
4119
+ NICKNAME: "NICKNAME",
4120
+ PHONE_NUMBER: "PHONE_NUMBER",
4121
+ PICTURE: "PICTURE",
4122
+ PREFERRED_USERNAME: "PREFERRED_USERNAME",
4123
+ PROFILE: "PROFILE",
4124
+ UPDATED_AT: "UPDATED_AT",
4125
+ WEBSITE: "WEBSITE",
4126
+ ZONE_INFO: "ZONE_INFO",
4127
+ };
4128
+ const SignInMethod = {
4129
+ EMAIL: "EMAIL",
4130
+ EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
4131
+ PHONE_NUMBER: "PHONE_NUMBER",
4132
+ USERNAME: "USERNAME",
4133
+ };
4134
+ const AuthenticatedElement = {
4135
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
4136
+ DELETE: "DELETE",
4137
+ READ: "READ",
4138
+ };
4139
+ const UnAuthenticatedElement = {
4140
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
4141
+ DELETE: "DELETE",
4142
+ READ: "READ",
4143
+ };
4144
+ const ServiceName = {
4145
+ S3: "S3",
4146
+ };
4147
+ const Status = {
4148
+ LATEST: "LATEST",
4149
+ STALE: "STALE",
4150
+ };
4151
+
4151
4152
  Object.defineProperty(exports, "$Command", {
4152
4153
  enumerable: true,
4153
4154
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./AmplifyBackendClient";
2
2
  export * from "./AmplifyBackend";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { AmplifyBackendServiceException } from "./models/AmplifyBackendServiceException";
@@ -0,0 +1,91 @@
1
+ export const AdditionalConstraintsElement = {
2
+ REQUIRE_DIGIT: "REQUIRE_DIGIT",
3
+ REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
4
+ REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
5
+ REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
6
+ };
7
+ export const Mode = {
8
+ AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
9
+ API_KEY: "API_KEY",
10
+ AWS_IAM: "AWS_IAM",
11
+ OPENID_CONNECT: "OPENID_CONNECT",
12
+ };
13
+ export const ResolutionStrategy = {
14
+ AUTOMERGE: "AUTOMERGE",
15
+ LAMBDA: "LAMBDA",
16
+ NONE: "NONE",
17
+ OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
18
+ };
19
+ export const AuthResources = {
20
+ IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
21
+ USER_POOL_ONLY: "USER_POOL_ONLY",
22
+ };
23
+ export const Service = {
24
+ COGNITO: "COGNITO",
25
+ };
26
+ export const DeliveryMethod = {
27
+ EMAIL: "EMAIL",
28
+ SMS: "SMS",
29
+ };
30
+ export const MFAMode = {
31
+ OFF: "OFF",
32
+ ON: "ON",
33
+ OPTIONAL: "OPTIONAL",
34
+ };
35
+ export const MfaTypesElement = {
36
+ SMS: "SMS",
37
+ TOTP: "TOTP",
38
+ };
39
+ export const OAuthGrantType = {
40
+ CODE: "CODE",
41
+ IMPLICIT: "IMPLICIT",
42
+ };
43
+ export const OAuthScopesElement = {
44
+ AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
45
+ EMAIL: "EMAIL",
46
+ OPENID: "OPENID",
47
+ PHONE: "PHONE",
48
+ PROFILE: "PROFILE",
49
+ };
50
+ export const RequiredSignUpAttributesElement = {
51
+ ADDRESS: "ADDRESS",
52
+ BIRTHDATE: "BIRTHDATE",
53
+ EMAIL: "EMAIL",
54
+ FAMILY_NAME: "FAMILY_NAME",
55
+ GENDER: "GENDER",
56
+ GIVEN_NAME: "GIVEN_NAME",
57
+ LOCALE: "LOCALE",
58
+ MIDDLE_NAME: "MIDDLE_NAME",
59
+ NAME: "NAME",
60
+ NICKNAME: "NICKNAME",
61
+ PHONE_NUMBER: "PHONE_NUMBER",
62
+ PICTURE: "PICTURE",
63
+ PREFERRED_USERNAME: "PREFERRED_USERNAME",
64
+ PROFILE: "PROFILE",
65
+ UPDATED_AT: "UPDATED_AT",
66
+ WEBSITE: "WEBSITE",
67
+ ZONE_INFO: "ZONE_INFO",
68
+ };
69
+ export const SignInMethod = {
70
+ EMAIL: "EMAIL",
71
+ EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
72
+ PHONE_NUMBER: "PHONE_NUMBER",
73
+ USERNAME: "USERNAME",
74
+ };
75
+ export const AuthenticatedElement = {
76
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
77
+ DELETE: "DELETE",
78
+ READ: "READ",
79
+ };
80
+ export const UnAuthenticatedElement = {
81
+ CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
82
+ DELETE: "DELETE",
83
+ READ: "READ",
84
+ };
85
+ export const ServiceName = {
86
+ S3: "S3",
87
+ };
88
+ export const Status = {
89
+ LATEST: "LATEST",
90
+ STALE: "STALE",
91
+ };
@@ -0,0 +1,61 @@
1
+ import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
2
+ export class BadRequestException extends __BaseException {
3
+ name = "BadRequestException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "BadRequestException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, BadRequestException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class GatewayTimeoutException extends __BaseException {
17
+ name = "GatewayTimeoutException";
18
+ $fault = "server";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "GatewayTimeoutException",
23
+ $fault: "server",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class NotFoundException extends __BaseException {
31
+ name = "NotFoundException";
32
+ $fault = "client";
33
+ Message;
34
+ ResourceType;
35
+ constructor(opts) {
36
+ super({
37
+ name: "NotFoundException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, NotFoundException.prototype);
42
+ this.Message = opts.Message;
43
+ this.ResourceType = opts.ResourceType;
44
+ }
45
+ }
46
+ export class TooManyRequestsException extends __BaseException {
47
+ name = "TooManyRequestsException";
48
+ $fault = "client";
49
+ LimitType;
50
+ Message;
51
+ constructor(opts) {
52
+ super({
53
+ name: "TooManyRequestsException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
58
+ this.LimitType = opts.LimitType;
59
+ this.Message = opts.Message;
60
+ }
61
+ }
@@ -1,152 +1 @@
1
- import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
2
- export const AdditionalConstraintsElement = {
3
- REQUIRE_DIGIT: "REQUIRE_DIGIT",
4
- REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
5
- REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
6
- REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
7
- };
8
- export class BadRequestException extends __BaseException {
9
- name = "BadRequestException";
10
- $fault = "client";
11
- Message;
12
- constructor(opts) {
13
- super({
14
- name: "BadRequestException",
15
- $fault: "client",
16
- ...opts,
17
- });
18
- Object.setPrototypeOf(this, BadRequestException.prototype);
19
- this.Message = opts.Message;
20
- }
21
- }
22
- export class GatewayTimeoutException extends __BaseException {
23
- name = "GatewayTimeoutException";
24
- $fault = "server";
25
- Message;
26
- constructor(opts) {
27
- super({
28
- name: "GatewayTimeoutException",
29
- $fault: "server",
30
- ...opts,
31
- });
32
- Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
33
- this.Message = opts.Message;
34
- }
35
- }
36
- export class NotFoundException extends __BaseException {
37
- name = "NotFoundException";
38
- $fault = "client";
39
- Message;
40
- ResourceType;
41
- constructor(opts) {
42
- super({
43
- name: "NotFoundException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, NotFoundException.prototype);
48
- this.Message = opts.Message;
49
- this.ResourceType = opts.ResourceType;
50
- }
51
- }
52
- export class TooManyRequestsException extends __BaseException {
53
- name = "TooManyRequestsException";
54
- $fault = "client";
55
- LimitType;
56
- Message;
57
- constructor(opts) {
58
- super({
59
- name: "TooManyRequestsException",
60
- $fault: "client",
61
- ...opts,
62
- });
63
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
64
- this.LimitType = opts.LimitType;
65
- this.Message = opts.Message;
66
- }
67
- }
68
- export const Mode = {
69
- AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
70
- API_KEY: "API_KEY",
71
- AWS_IAM: "AWS_IAM",
72
- OPENID_CONNECT: "OPENID_CONNECT",
73
- };
74
- export const ResolutionStrategy = {
75
- AUTOMERGE: "AUTOMERGE",
76
- LAMBDA: "LAMBDA",
77
- NONE: "NONE",
78
- OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
79
- };
80
- export const AuthResources = {
81
- IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
82
- USER_POOL_ONLY: "USER_POOL_ONLY",
83
- };
84
- export const Service = {
85
- COGNITO: "COGNITO",
86
- };
87
- export const DeliveryMethod = {
88
- EMAIL: "EMAIL",
89
- SMS: "SMS",
90
- };
91
- export const MFAMode = {
92
- OFF: "OFF",
93
- ON: "ON",
94
- OPTIONAL: "OPTIONAL",
95
- };
96
- export const MfaTypesElement = {
97
- SMS: "SMS",
98
- TOTP: "TOTP",
99
- };
100
- export const OAuthGrantType = {
101
- CODE: "CODE",
102
- IMPLICIT: "IMPLICIT",
103
- };
104
- export const OAuthScopesElement = {
105
- AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
106
- EMAIL: "EMAIL",
107
- OPENID: "OPENID",
108
- PHONE: "PHONE",
109
- PROFILE: "PROFILE",
110
- };
111
- export const RequiredSignUpAttributesElement = {
112
- ADDRESS: "ADDRESS",
113
- BIRTHDATE: "BIRTHDATE",
114
- EMAIL: "EMAIL",
115
- FAMILY_NAME: "FAMILY_NAME",
116
- GENDER: "GENDER",
117
- GIVEN_NAME: "GIVEN_NAME",
118
- LOCALE: "LOCALE",
119
- MIDDLE_NAME: "MIDDLE_NAME",
120
- NAME: "NAME",
121
- NICKNAME: "NICKNAME",
122
- PHONE_NUMBER: "PHONE_NUMBER",
123
- PICTURE: "PICTURE",
124
- PREFERRED_USERNAME: "PREFERRED_USERNAME",
125
- PROFILE: "PROFILE",
126
- UPDATED_AT: "UPDATED_AT",
127
- WEBSITE: "WEBSITE",
128
- ZONE_INFO: "ZONE_INFO",
129
- };
130
- export const SignInMethod = {
131
- EMAIL: "EMAIL",
132
- EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
133
- PHONE_NUMBER: "PHONE_NUMBER",
134
- USERNAME: "USERNAME",
135
- };
136
- export const AuthenticatedElement = {
137
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
138
- DELETE: "DELETE",
139
- READ: "READ",
140
- };
141
- export const UnAuthenticatedElement = {
142
- CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
143
- DELETE: "DELETE",
144
- READ: "READ",
145
- };
146
- export const ServiceName = {
147
- S3: "S3",
148
- };
149
- export const Status = {
150
- LATEST: "LATEST",
151
- STALE: "STALE",
152
- };
1
+ export {};
@@ -335,7 +335,7 @@ const _wCI = "webClientId";
335
335
  const n0 = "com.amazonaws.amplifybackend";
336
336
  import { TypeRegistry } from "@smithy/core/schema";
337
337
  import { AmplifyBackendServiceException as __AmplifyBackendServiceException } from "../models/AmplifyBackendServiceException";
338
- import { BadRequestException as __BadRequestException, GatewayTimeoutException as __GatewayTimeoutException, NotFoundException as __NotFoundException, TooManyRequestsException as __TooManyRequestsException, } from "../models/index";
338
+ import { BadRequestException as __BadRequestException, GatewayTimeoutException as __GatewayTimeoutException, NotFoundException as __NotFoundException, TooManyRequestsException as __TooManyRequestsException, } from "../models/errors";
339
339
  export var BackendAPIAppSyncAuthSettings = [
340
340
  3,
341
341
  n0,
@@ -9,5 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { AmplifyBackendExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
- export * from "./models";
12
+ export * from "./models/enums";
13
+ export * from "./models/errors";
14
+ export type * from "./models/models_0";
13
15
  export { AmplifyBackendServiceException } from "./models/AmplifyBackendServiceException";