@aws-sdk/client-amplifybackend 3.301.0 → 3.306.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/models/models_0.js +91 -107
- package/dist-es/models/models_0.js +91 -107
- package/dist-types/models/models_0.d.ts +171 -91
- package/dist-types/ts3.4/models/models_0.d.ts +116 -91
- package/package.json +34 -34
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Status = exports.ServiceName = exports.UnAuthenticatedElement = exports.AuthenticatedElement = exports.SignInMethod = exports.RequiredSignUpAttributesElement = exports.OAuthScopesElement = exports.OAuthGrantType = exports.MfaTypesElement = exports.MFAMode = exports.DeliveryMethod = exports.Service = exports.AuthResources = exports.ResolutionStrategy = exports.Mode = exports.TooManyRequestsException = exports.NotFoundException = exports.GatewayTimeoutException = exports.BadRequestException = exports.AdditionalConstraintsElement = void 0;
|
|
4
4
|
const AmplifyBackendServiceException_1 = require("./AmplifyBackendServiceException");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(AdditionalConstraintsElement = exports.AdditionalConstraintsElement || (exports.AdditionalConstraintsElement = {}));
|
|
5
|
+
exports.AdditionalConstraintsElement = {
|
|
6
|
+
REQUIRE_DIGIT: "REQUIRE_DIGIT",
|
|
7
|
+
REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
|
|
8
|
+
REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
|
|
9
|
+
REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
|
|
10
|
+
};
|
|
12
11
|
class BadRequestException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
|
|
13
12
|
constructor(opts) {
|
|
14
13
|
super({
|
|
@@ -67,103 +66,88 @@ class TooManyRequestsException extends AmplifyBackendServiceException_1.AmplifyB
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
exports.TooManyRequestsException = TooManyRequestsException;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
var UnAuthenticatedElement;
|
|
156
|
-
(function (UnAuthenticatedElement) {
|
|
157
|
-
UnAuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
|
|
158
|
-
UnAuthenticatedElement["DELETE"] = "DELETE";
|
|
159
|
-
UnAuthenticatedElement["READ"] = "READ";
|
|
160
|
-
})(UnAuthenticatedElement = exports.UnAuthenticatedElement || (exports.UnAuthenticatedElement = {}));
|
|
161
|
-
var ServiceName;
|
|
162
|
-
(function (ServiceName) {
|
|
163
|
-
ServiceName["S3"] = "S3";
|
|
164
|
-
})(ServiceName = exports.ServiceName || (exports.ServiceName = {}));
|
|
165
|
-
var Status;
|
|
166
|
-
(function (Status) {
|
|
167
|
-
Status["LATEST"] = "LATEST";
|
|
168
|
-
Status["STALE"] = "STALE";
|
|
169
|
-
})(Status = exports.Status || (exports.Status = {}));
|
|
69
|
+
exports.Mode = {
|
|
70
|
+
AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
|
|
71
|
+
API_KEY: "API_KEY",
|
|
72
|
+
AWS_IAM: "AWS_IAM",
|
|
73
|
+
OPENID_CONNECT: "OPENID_CONNECT",
|
|
74
|
+
};
|
|
75
|
+
exports.ResolutionStrategy = {
|
|
76
|
+
AUTOMERGE: "AUTOMERGE",
|
|
77
|
+
LAMBDA: "LAMBDA",
|
|
78
|
+
NONE: "NONE",
|
|
79
|
+
OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
|
|
80
|
+
};
|
|
81
|
+
exports.AuthResources = {
|
|
82
|
+
IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
|
|
83
|
+
USER_POOL_ONLY: "USER_POOL_ONLY",
|
|
84
|
+
};
|
|
85
|
+
exports.Service = {
|
|
86
|
+
COGNITO: "COGNITO",
|
|
87
|
+
};
|
|
88
|
+
exports.DeliveryMethod = {
|
|
89
|
+
EMAIL: "EMAIL",
|
|
90
|
+
SMS: "SMS",
|
|
91
|
+
};
|
|
92
|
+
exports.MFAMode = {
|
|
93
|
+
OFF: "OFF",
|
|
94
|
+
ON: "ON",
|
|
95
|
+
OPTIONAL: "OPTIONAL",
|
|
96
|
+
};
|
|
97
|
+
exports.MfaTypesElement = {
|
|
98
|
+
SMS: "SMS",
|
|
99
|
+
TOTP: "TOTP",
|
|
100
|
+
};
|
|
101
|
+
exports.OAuthGrantType = {
|
|
102
|
+
CODE: "CODE",
|
|
103
|
+
IMPLICIT: "IMPLICIT",
|
|
104
|
+
};
|
|
105
|
+
exports.OAuthScopesElement = {
|
|
106
|
+
AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
|
|
107
|
+
EMAIL: "EMAIL",
|
|
108
|
+
OPENID: "OPENID",
|
|
109
|
+
PHONE: "PHONE",
|
|
110
|
+
PROFILE: "PROFILE",
|
|
111
|
+
};
|
|
112
|
+
exports.RequiredSignUpAttributesElement = {
|
|
113
|
+
ADDRESS: "ADDRESS",
|
|
114
|
+
BIRTHDATE: "BIRTHDATE",
|
|
115
|
+
EMAIL: "EMAIL",
|
|
116
|
+
FAMILY_NAME: "FAMILY_NAME",
|
|
117
|
+
GENDER: "GENDER",
|
|
118
|
+
GIVEN_NAME: "GIVEN_NAME",
|
|
119
|
+
LOCALE: "LOCALE",
|
|
120
|
+
MIDDLE_NAME: "MIDDLE_NAME",
|
|
121
|
+
NAME: "NAME",
|
|
122
|
+
NICKNAME: "NICKNAME",
|
|
123
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
124
|
+
PICTURE: "PICTURE",
|
|
125
|
+
PREFERRED_USERNAME: "PREFERRED_USERNAME",
|
|
126
|
+
PROFILE: "PROFILE",
|
|
127
|
+
UPDATED_AT: "UPDATED_AT",
|
|
128
|
+
WEBSITE: "WEBSITE",
|
|
129
|
+
ZONE_INFO: "ZONE_INFO",
|
|
130
|
+
};
|
|
131
|
+
exports.SignInMethod = {
|
|
132
|
+
EMAIL: "EMAIL",
|
|
133
|
+
EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
|
|
134
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
135
|
+
USERNAME: "USERNAME",
|
|
136
|
+
};
|
|
137
|
+
exports.AuthenticatedElement = {
|
|
138
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
139
|
+
DELETE: "DELETE",
|
|
140
|
+
READ: "READ",
|
|
141
|
+
};
|
|
142
|
+
exports.UnAuthenticatedElement = {
|
|
143
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
144
|
+
DELETE: "DELETE",
|
|
145
|
+
READ: "READ",
|
|
146
|
+
};
|
|
147
|
+
exports.ServiceName = {
|
|
148
|
+
S3: "S3",
|
|
149
|
+
};
|
|
150
|
+
exports.Status = {
|
|
151
|
+
LATEST: "LATEST",
|
|
152
|
+
STALE: "STALE",
|
|
153
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(AdditionalConstraintsElement || (AdditionalConstraintsElement = {}));
|
|
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
|
+
};
|
|
9
8
|
export class BadRequestException extends __BaseException {
|
|
10
9
|
constructor(opts) {
|
|
11
10
|
super({
|
|
@@ -60,103 +59,88 @@ export class TooManyRequestsException extends __BaseException {
|
|
|
60
59
|
this.Message = opts.Message;
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
export
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
export var UnAuthenticatedElement;
|
|
149
|
-
(function (UnAuthenticatedElement) {
|
|
150
|
-
UnAuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
|
|
151
|
-
UnAuthenticatedElement["DELETE"] = "DELETE";
|
|
152
|
-
UnAuthenticatedElement["READ"] = "READ";
|
|
153
|
-
})(UnAuthenticatedElement || (UnAuthenticatedElement = {}));
|
|
154
|
-
export var ServiceName;
|
|
155
|
-
(function (ServiceName) {
|
|
156
|
-
ServiceName["S3"] = "S3";
|
|
157
|
-
})(ServiceName || (ServiceName = {}));
|
|
158
|
-
export var Status;
|
|
159
|
-
(function (Status) {
|
|
160
|
-
Status["LATEST"] = "LATEST";
|
|
161
|
-
Status["STALE"] = "STALE";
|
|
162
|
-
})(Status || (Status = {}));
|
|
62
|
+
export const Mode = {
|
|
63
|
+
AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
|
|
64
|
+
API_KEY: "API_KEY",
|
|
65
|
+
AWS_IAM: "AWS_IAM",
|
|
66
|
+
OPENID_CONNECT: "OPENID_CONNECT",
|
|
67
|
+
};
|
|
68
|
+
export const ResolutionStrategy = {
|
|
69
|
+
AUTOMERGE: "AUTOMERGE",
|
|
70
|
+
LAMBDA: "LAMBDA",
|
|
71
|
+
NONE: "NONE",
|
|
72
|
+
OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
|
|
73
|
+
};
|
|
74
|
+
export const AuthResources = {
|
|
75
|
+
IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
|
|
76
|
+
USER_POOL_ONLY: "USER_POOL_ONLY",
|
|
77
|
+
};
|
|
78
|
+
export const Service = {
|
|
79
|
+
COGNITO: "COGNITO",
|
|
80
|
+
};
|
|
81
|
+
export const DeliveryMethod = {
|
|
82
|
+
EMAIL: "EMAIL",
|
|
83
|
+
SMS: "SMS",
|
|
84
|
+
};
|
|
85
|
+
export const MFAMode = {
|
|
86
|
+
OFF: "OFF",
|
|
87
|
+
ON: "ON",
|
|
88
|
+
OPTIONAL: "OPTIONAL",
|
|
89
|
+
};
|
|
90
|
+
export const MfaTypesElement = {
|
|
91
|
+
SMS: "SMS",
|
|
92
|
+
TOTP: "TOTP",
|
|
93
|
+
};
|
|
94
|
+
export const OAuthGrantType = {
|
|
95
|
+
CODE: "CODE",
|
|
96
|
+
IMPLICIT: "IMPLICIT",
|
|
97
|
+
};
|
|
98
|
+
export const OAuthScopesElement = {
|
|
99
|
+
AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
|
|
100
|
+
EMAIL: "EMAIL",
|
|
101
|
+
OPENID: "OPENID",
|
|
102
|
+
PHONE: "PHONE",
|
|
103
|
+
PROFILE: "PROFILE",
|
|
104
|
+
};
|
|
105
|
+
export const RequiredSignUpAttributesElement = {
|
|
106
|
+
ADDRESS: "ADDRESS",
|
|
107
|
+
BIRTHDATE: "BIRTHDATE",
|
|
108
|
+
EMAIL: "EMAIL",
|
|
109
|
+
FAMILY_NAME: "FAMILY_NAME",
|
|
110
|
+
GENDER: "GENDER",
|
|
111
|
+
GIVEN_NAME: "GIVEN_NAME",
|
|
112
|
+
LOCALE: "LOCALE",
|
|
113
|
+
MIDDLE_NAME: "MIDDLE_NAME",
|
|
114
|
+
NAME: "NAME",
|
|
115
|
+
NICKNAME: "NICKNAME",
|
|
116
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
117
|
+
PICTURE: "PICTURE",
|
|
118
|
+
PREFERRED_USERNAME: "PREFERRED_USERNAME",
|
|
119
|
+
PROFILE: "PROFILE",
|
|
120
|
+
UPDATED_AT: "UPDATED_AT",
|
|
121
|
+
WEBSITE: "WEBSITE",
|
|
122
|
+
ZONE_INFO: "ZONE_INFO",
|
|
123
|
+
};
|
|
124
|
+
export const SignInMethod = {
|
|
125
|
+
EMAIL: "EMAIL",
|
|
126
|
+
EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
|
|
127
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
128
|
+
USERNAME: "USERNAME",
|
|
129
|
+
};
|
|
130
|
+
export const AuthenticatedElement = {
|
|
131
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
132
|
+
DELETE: "DELETE",
|
|
133
|
+
READ: "READ",
|
|
134
|
+
};
|
|
135
|
+
export const UnAuthenticatedElement = {
|
|
136
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
137
|
+
DELETE: "DELETE",
|
|
138
|
+
READ: "READ",
|
|
139
|
+
};
|
|
140
|
+
export const ServiceName = {
|
|
141
|
+
S3: "S3",
|
|
142
|
+
};
|
|
143
|
+
export const Status = {
|
|
144
|
+
LATEST: "LATEST",
|
|
145
|
+
STALE: "STALE",
|
|
146
|
+
};
|
|
@@ -2,13 +2,18 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
2
2
|
import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
|
+
* @enum
|
|
5
6
|
*/
|
|
6
|
-
export declare
|
|
7
|
-
REQUIRE_DIGIT
|
|
8
|
-
REQUIRE_LOWERCASE
|
|
9
|
-
REQUIRE_SYMBOL
|
|
10
|
-
REQUIRE_UPPERCASE
|
|
11
|
-
}
|
|
7
|
+
export declare const AdditionalConstraintsElement: {
|
|
8
|
+
readonly REQUIRE_DIGIT: "REQUIRE_DIGIT";
|
|
9
|
+
readonly REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE";
|
|
10
|
+
readonly REQUIRE_SYMBOL: "REQUIRE_SYMBOL";
|
|
11
|
+
readonly REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export type AdditionalConstraintsElement = (typeof AdditionalConstraintsElement)[keyof typeof AdditionalConstraintsElement];
|
|
12
17
|
/**
|
|
13
18
|
* @public
|
|
14
19
|
* <p>An error returned if a request is not formed properly.</p>
|
|
@@ -191,13 +196,18 @@ export interface CreateBackendResponse {
|
|
|
191
196
|
}
|
|
192
197
|
/**
|
|
193
198
|
* @public
|
|
199
|
+
* @enum
|
|
194
200
|
*/
|
|
195
|
-
export declare
|
|
196
|
-
AMAZON_COGNITO_USER_POOLS
|
|
197
|
-
API_KEY
|
|
198
|
-
AWS_IAM
|
|
199
|
-
OPENID_CONNECT
|
|
200
|
-
}
|
|
201
|
+
export declare const Mode: {
|
|
202
|
+
readonly AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS";
|
|
203
|
+
readonly API_KEY: "API_KEY";
|
|
204
|
+
readonly AWS_IAM: "AWS_IAM";
|
|
205
|
+
readonly OPENID_CONNECT: "OPENID_CONNECT";
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
export type Mode = (typeof Mode)[keyof typeof Mode];
|
|
201
211
|
/**
|
|
202
212
|
* @public
|
|
203
213
|
* <p>The authentication settings for accessing provisioned data models in your Amplify project.</p>
|
|
@@ -252,13 +262,18 @@ export interface BackendAPIAuthType {
|
|
|
252
262
|
}
|
|
253
263
|
/**
|
|
254
264
|
* @public
|
|
265
|
+
* @enum
|
|
255
266
|
*/
|
|
256
|
-
export declare
|
|
257
|
-
AUTOMERGE
|
|
258
|
-
LAMBDA
|
|
259
|
-
NONE
|
|
260
|
-
OPTIMISTIC_CONCURRENCY
|
|
261
|
-
}
|
|
267
|
+
export declare const ResolutionStrategy: {
|
|
268
|
+
readonly AUTOMERGE: "AUTOMERGE";
|
|
269
|
+
readonly LAMBDA: "LAMBDA";
|
|
270
|
+
readonly NONE: "NONE";
|
|
271
|
+
readonly OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY";
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* @public
|
|
275
|
+
*/
|
|
276
|
+
export type ResolutionStrategy = (typeof ResolutionStrategy)[keyof typeof ResolutionStrategy];
|
|
262
277
|
/**
|
|
263
278
|
* @public
|
|
264
279
|
* <p>Describes the conflict resolution configuration for your data model configured in your Amplify project.</p>
|
|
@@ -352,11 +367,16 @@ export interface CreateBackendAPIResponse {
|
|
|
352
367
|
}
|
|
353
368
|
/**
|
|
354
369
|
* @public
|
|
370
|
+
* @enum
|
|
355
371
|
*/
|
|
356
|
-
export declare
|
|
357
|
-
IDENTITY_POOL_AND_USER_POOL
|
|
358
|
-
USER_POOL_ONLY
|
|
359
|
-
}
|
|
372
|
+
export declare const AuthResources: {
|
|
373
|
+
readonly IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL";
|
|
374
|
+
readonly USER_POOL_ONLY: "USER_POOL_ONLY";
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* @public
|
|
378
|
+
*/
|
|
379
|
+
export type AuthResources = (typeof AuthResources)[keyof typeof AuthResources];
|
|
360
380
|
/**
|
|
361
381
|
* @public
|
|
362
382
|
* <p>Describes authorization configurations for the auth resources, configured as a part of your Amplify project.</p>
|
|
@@ -373,17 +393,27 @@ export interface CreateBackendAuthIdentityPoolConfig {
|
|
|
373
393
|
}
|
|
374
394
|
/**
|
|
375
395
|
* @public
|
|
396
|
+
* @enum
|
|
376
397
|
*/
|
|
377
|
-
export declare
|
|
378
|
-
COGNITO
|
|
379
|
-
}
|
|
398
|
+
export declare const Service: {
|
|
399
|
+
readonly COGNITO: "COGNITO";
|
|
400
|
+
};
|
|
380
401
|
/**
|
|
381
402
|
* @public
|
|
382
403
|
*/
|
|
383
|
-
export
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
404
|
+
export type Service = (typeof Service)[keyof typeof Service];
|
|
405
|
+
/**
|
|
406
|
+
* @public
|
|
407
|
+
* @enum
|
|
408
|
+
*/
|
|
409
|
+
export declare const DeliveryMethod: {
|
|
410
|
+
readonly EMAIL: "EMAIL";
|
|
411
|
+
readonly SMS: "SMS";
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
416
|
+
export type DeliveryMethod = (typeof DeliveryMethod)[keyof typeof DeliveryMethod];
|
|
387
417
|
/**
|
|
388
418
|
* @public
|
|
389
419
|
* <p>The configuration for the email sent when an app user forgets their password.</p>
|
|
@@ -428,19 +458,29 @@ export interface CreateBackendAuthForgotPasswordConfig {
|
|
|
428
458
|
}
|
|
429
459
|
/**
|
|
430
460
|
* @public
|
|
461
|
+
* @enum
|
|
431
462
|
*/
|
|
432
|
-
export declare
|
|
433
|
-
OFF
|
|
434
|
-
ON
|
|
435
|
-
OPTIONAL
|
|
436
|
-
}
|
|
463
|
+
export declare const MFAMode: {
|
|
464
|
+
readonly OFF: "OFF";
|
|
465
|
+
readonly ON: "ON";
|
|
466
|
+
readonly OPTIONAL: "OPTIONAL";
|
|
467
|
+
};
|
|
437
468
|
/**
|
|
438
469
|
* @public
|
|
439
470
|
*/
|
|
440
|
-
export
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
471
|
+
export type MFAMode = (typeof MFAMode)[keyof typeof MFAMode];
|
|
472
|
+
/**
|
|
473
|
+
* @public
|
|
474
|
+
* @enum
|
|
475
|
+
*/
|
|
476
|
+
export declare const MfaTypesElement: {
|
|
477
|
+
readonly SMS: "SMS";
|
|
478
|
+
readonly TOTP: "TOTP";
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
export type MfaTypesElement = (typeof MfaTypesElement)[keyof typeof MfaTypesElement];
|
|
444
484
|
/**
|
|
445
485
|
* @public
|
|
446
486
|
* <p>The settings of your MFA configuration for the backend of your Amplify project.</p>
|
|
@@ -471,21 +511,31 @@ export interface CreateBackendAuthMFAConfig {
|
|
|
471
511
|
}
|
|
472
512
|
/**
|
|
473
513
|
* @public
|
|
514
|
+
* @enum
|
|
474
515
|
*/
|
|
475
|
-
export declare
|
|
476
|
-
CODE
|
|
477
|
-
IMPLICIT
|
|
478
|
-
}
|
|
516
|
+
export declare const OAuthGrantType: {
|
|
517
|
+
readonly CODE: "CODE";
|
|
518
|
+
readonly IMPLICIT: "IMPLICIT";
|
|
519
|
+
};
|
|
479
520
|
/**
|
|
480
521
|
* @public
|
|
481
522
|
*/
|
|
482
|
-
export
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
523
|
+
export type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
* @enum
|
|
527
|
+
*/
|
|
528
|
+
export declare const OAuthScopesElement: {
|
|
529
|
+
readonly AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN";
|
|
530
|
+
readonly EMAIL: "EMAIL";
|
|
531
|
+
readonly OPENID: "OPENID";
|
|
532
|
+
readonly PHONE: "PHONE";
|
|
533
|
+
readonly PROFILE: "PROFILE";
|
|
534
|
+
};
|
|
535
|
+
/**
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
export type OAuthScopesElement = (typeof OAuthScopesElement)[keyof typeof OAuthScopesElement];
|
|
489
539
|
/**
|
|
490
540
|
* @public
|
|
491
541
|
* <p>Describes third-party social federation configurations for allowing your app users to sign in using OAuth.</p>
|
|
@@ -590,35 +640,45 @@ export interface CreateBackendAuthPasswordPolicyConfig {
|
|
|
590
640
|
}
|
|
591
641
|
/**
|
|
592
642
|
* @public
|
|
643
|
+
* @enum
|
|
593
644
|
*/
|
|
594
|
-
export declare
|
|
595
|
-
ADDRESS
|
|
596
|
-
BIRTHDATE
|
|
597
|
-
EMAIL
|
|
598
|
-
FAMILY_NAME
|
|
599
|
-
GENDER
|
|
600
|
-
GIVEN_NAME
|
|
601
|
-
LOCALE
|
|
602
|
-
MIDDLE_NAME
|
|
603
|
-
NAME
|
|
604
|
-
NICKNAME
|
|
605
|
-
PHONE_NUMBER
|
|
606
|
-
PICTURE
|
|
607
|
-
PREFERRED_USERNAME
|
|
608
|
-
PROFILE
|
|
609
|
-
UPDATED_AT
|
|
610
|
-
WEBSITE
|
|
611
|
-
ZONE_INFO
|
|
612
|
-
}
|
|
645
|
+
export declare const RequiredSignUpAttributesElement: {
|
|
646
|
+
readonly ADDRESS: "ADDRESS";
|
|
647
|
+
readonly BIRTHDATE: "BIRTHDATE";
|
|
648
|
+
readonly EMAIL: "EMAIL";
|
|
649
|
+
readonly FAMILY_NAME: "FAMILY_NAME";
|
|
650
|
+
readonly GENDER: "GENDER";
|
|
651
|
+
readonly GIVEN_NAME: "GIVEN_NAME";
|
|
652
|
+
readonly LOCALE: "LOCALE";
|
|
653
|
+
readonly MIDDLE_NAME: "MIDDLE_NAME";
|
|
654
|
+
readonly NAME: "NAME";
|
|
655
|
+
readonly NICKNAME: "NICKNAME";
|
|
656
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
|
657
|
+
readonly PICTURE: "PICTURE";
|
|
658
|
+
readonly PREFERRED_USERNAME: "PREFERRED_USERNAME";
|
|
659
|
+
readonly PROFILE: "PROFILE";
|
|
660
|
+
readonly UPDATED_AT: "UPDATED_AT";
|
|
661
|
+
readonly WEBSITE: "WEBSITE";
|
|
662
|
+
readonly ZONE_INFO: "ZONE_INFO";
|
|
663
|
+
};
|
|
613
664
|
/**
|
|
614
665
|
* @public
|
|
615
666
|
*/
|
|
616
|
-
export
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
667
|
+
export type RequiredSignUpAttributesElement = (typeof RequiredSignUpAttributesElement)[keyof typeof RequiredSignUpAttributesElement];
|
|
668
|
+
/**
|
|
669
|
+
* @public
|
|
670
|
+
* @enum
|
|
671
|
+
*/
|
|
672
|
+
export declare const SignInMethod: {
|
|
673
|
+
readonly EMAIL: "EMAIL";
|
|
674
|
+
readonly EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER";
|
|
675
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
|
676
|
+
readonly USERNAME: "USERNAME";
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* @public
|
|
680
|
+
*/
|
|
681
|
+
export type SignInMethod = (typeof SignInMethod)[keyof typeof SignInMethod];
|
|
622
682
|
/**
|
|
623
683
|
* @public
|
|
624
684
|
* <p>Creates an email or SMS verification message for the auth resource configured for your Amplify project.</p>
|
|
@@ -785,20 +845,30 @@ export interface CreateBackendConfigResponse {
|
|
|
785
845
|
}
|
|
786
846
|
/**
|
|
787
847
|
* @public
|
|
848
|
+
* @enum
|
|
788
849
|
*/
|
|
789
|
-
export declare
|
|
790
|
-
CREATE_AND_UPDATE
|
|
791
|
-
DELETE
|
|
792
|
-
READ
|
|
793
|
-
}
|
|
850
|
+
export declare const AuthenticatedElement: {
|
|
851
|
+
readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
|
|
852
|
+
readonly DELETE: "DELETE";
|
|
853
|
+
readonly READ: "READ";
|
|
854
|
+
};
|
|
794
855
|
/**
|
|
795
856
|
* @public
|
|
796
857
|
*/
|
|
797
|
-
export
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
858
|
+
export type AuthenticatedElement = (typeof AuthenticatedElement)[keyof typeof AuthenticatedElement];
|
|
859
|
+
/**
|
|
860
|
+
* @public
|
|
861
|
+
* @enum
|
|
862
|
+
*/
|
|
863
|
+
export declare const UnAuthenticatedElement: {
|
|
864
|
+
readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
|
|
865
|
+
readonly DELETE: "DELETE";
|
|
866
|
+
readonly READ: "READ";
|
|
867
|
+
};
|
|
868
|
+
/**
|
|
869
|
+
* @public
|
|
870
|
+
*/
|
|
871
|
+
export type UnAuthenticatedElement = (typeof UnAuthenticatedElement)[keyof typeof UnAuthenticatedElement];
|
|
802
872
|
/**
|
|
803
873
|
* @public
|
|
804
874
|
* <p>Describes the read, write, and delete permissions users have against your storage S3 bucket.</p>
|
|
@@ -815,10 +885,15 @@ export interface BackendStoragePermissions {
|
|
|
815
885
|
}
|
|
816
886
|
/**
|
|
817
887
|
* @public
|
|
888
|
+
* @enum
|
|
818
889
|
*/
|
|
819
|
-
export declare
|
|
820
|
-
S3
|
|
821
|
-
}
|
|
890
|
+
export declare const ServiceName: {
|
|
891
|
+
readonly S3: "S3";
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* @public
|
|
895
|
+
*/
|
|
896
|
+
export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
|
|
822
897
|
/**
|
|
823
898
|
* @public
|
|
824
899
|
* <p>The resource configuration for creating backend storage.</p>
|
|
@@ -1276,11 +1351,16 @@ export interface GetBackendAPIModelsRequest {
|
|
|
1276
1351
|
}
|
|
1277
1352
|
/**
|
|
1278
1353
|
* @public
|
|
1354
|
+
* @enum
|
|
1279
1355
|
*/
|
|
1280
|
-
export declare
|
|
1281
|
-
LATEST
|
|
1282
|
-
STALE
|
|
1283
|
-
}
|
|
1356
|
+
export declare const Status: {
|
|
1357
|
+
readonly LATEST: "LATEST";
|
|
1358
|
+
readonly STALE: "STALE";
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* @public
|
|
1362
|
+
*/
|
|
1363
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
1284
1364
|
/**
|
|
1285
1365
|
* @public
|
|
1286
1366
|
*/
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
|
|
3
|
-
export declare
|
|
4
|
-
REQUIRE_DIGIT
|
|
5
|
-
REQUIRE_LOWERCASE
|
|
6
|
-
REQUIRE_SYMBOL
|
|
7
|
-
REQUIRE_UPPERCASE
|
|
8
|
-
}
|
|
3
|
+
export declare const AdditionalConstraintsElement: {
|
|
4
|
+
readonly REQUIRE_DIGIT: "REQUIRE_DIGIT";
|
|
5
|
+
readonly REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE";
|
|
6
|
+
readonly REQUIRE_SYMBOL: "REQUIRE_SYMBOL";
|
|
7
|
+
readonly REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE";
|
|
8
|
+
};
|
|
9
|
+
export type AdditionalConstraintsElement =
|
|
10
|
+
(typeof AdditionalConstraintsElement)[keyof typeof AdditionalConstraintsElement];
|
|
9
11
|
export declare class BadRequestException extends __BaseException {
|
|
10
12
|
readonly name: "BadRequestException";
|
|
11
13
|
readonly $fault: "client";
|
|
@@ -67,12 +69,13 @@ export interface CreateBackendResponse {
|
|
|
67
69
|
Operation?: string;
|
|
68
70
|
Status?: string;
|
|
69
71
|
}
|
|
70
|
-
export declare
|
|
71
|
-
AMAZON_COGNITO_USER_POOLS
|
|
72
|
-
API_KEY
|
|
73
|
-
AWS_IAM
|
|
74
|
-
OPENID_CONNECT
|
|
75
|
-
}
|
|
72
|
+
export declare const Mode: {
|
|
73
|
+
readonly AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS";
|
|
74
|
+
readonly API_KEY: "API_KEY";
|
|
75
|
+
readonly AWS_IAM: "AWS_IAM";
|
|
76
|
+
readonly OPENID_CONNECT: "OPENID_CONNECT";
|
|
77
|
+
};
|
|
78
|
+
export type Mode = (typeof Mode)[keyof typeof Mode];
|
|
76
79
|
export interface BackendAPIAppSyncAuthSettings {
|
|
77
80
|
CognitoUserPoolId?: string;
|
|
78
81
|
Description?: string;
|
|
@@ -87,12 +90,14 @@ export interface BackendAPIAuthType {
|
|
|
87
90
|
Mode?: Mode | string;
|
|
88
91
|
Settings?: BackendAPIAppSyncAuthSettings;
|
|
89
92
|
}
|
|
90
|
-
export declare
|
|
91
|
-
AUTOMERGE
|
|
92
|
-
LAMBDA
|
|
93
|
-
NONE
|
|
94
|
-
OPTIMISTIC_CONCURRENCY
|
|
95
|
-
}
|
|
93
|
+
export declare const ResolutionStrategy: {
|
|
94
|
+
readonly AUTOMERGE: "AUTOMERGE";
|
|
95
|
+
readonly LAMBDA: "LAMBDA";
|
|
96
|
+
readonly NONE: "NONE";
|
|
97
|
+
readonly OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY";
|
|
98
|
+
};
|
|
99
|
+
export type ResolutionStrategy =
|
|
100
|
+
(typeof ResolutionStrategy)[keyof typeof ResolutionStrategy];
|
|
96
101
|
export interface BackendAPIConflictResolution {
|
|
97
102
|
ResolutionStrategy?: ResolutionStrategy | string;
|
|
98
103
|
}
|
|
@@ -118,21 +123,25 @@ export interface CreateBackendAPIResponse {
|
|
|
118
123
|
Operation?: string;
|
|
119
124
|
Status?: string;
|
|
120
125
|
}
|
|
121
|
-
export declare
|
|
122
|
-
IDENTITY_POOL_AND_USER_POOL
|
|
123
|
-
USER_POOL_ONLY
|
|
124
|
-
}
|
|
126
|
+
export declare const AuthResources: {
|
|
127
|
+
readonly IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL";
|
|
128
|
+
readonly USER_POOL_ONLY: "USER_POOL_ONLY";
|
|
129
|
+
};
|
|
130
|
+
export type AuthResources = (typeof AuthResources)[keyof typeof AuthResources];
|
|
125
131
|
export interface CreateBackendAuthIdentityPoolConfig {
|
|
126
132
|
IdentityPoolName: string | undefined;
|
|
127
133
|
UnauthenticatedLogin: boolean | undefined;
|
|
128
134
|
}
|
|
129
|
-
export declare
|
|
130
|
-
COGNITO
|
|
131
|
-
}
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
export declare const Service: {
|
|
136
|
+
readonly COGNITO: "COGNITO";
|
|
137
|
+
};
|
|
138
|
+
export type Service = (typeof Service)[keyof typeof Service];
|
|
139
|
+
export declare const DeliveryMethod: {
|
|
140
|
+
readonly EMAIL: "EMAIL";
|
|
141
|
+
readonly SMS: "SMS";
|
|
142
|
+
};
|
|
143
|
+
export type DeliveryMethod =
|
|
144
|
+
(typeof DeliveryMethod)[keyof typeof DeliveryMethod];
|
|
136
145
|
export interface EmailSettings {
|
|
137
146
|
EmailMessage?: string;
|
|
138
147
|
EmailSubject?: string;
|
|
@@ -145,15 +154,18 @@ export interface CreateBackendAuthForgotPasswordConfig {
|
|
|
145
154
|
EmailSettings?: EmailSettings;
|
|
146
155
|
SmsSettings?: SmsSettings;
|
|
147
156
|
}
|
|
148
|
-
export declare
|
|
149
|
-
OFF
|
|
150
|
-
ON
|
|
151
|
-
OPTIONAL
|
|
152
|
-
}
|
|
153
|
-
export
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
export declare const MFAMode: {
|
|
158
|
+
readonly OFF: "OFF";
|
|
159
|
+
readonly ON: "ON";
|
|
160
|
+
readonly OPTIONAL: "OPTIONAL";
|
|
161
|
+
};
|
|
162
|
+
export type MFAMode = (typeof MFAMode)[keyof typeof MFAMode];
|
|
163
|
+
export declare const MfaTypesElement: {
|
|
164
|
+
readonly SMS: "SMS";
|
|
165
|
+
readonly TOTP: "TOTP";
|
|
166
|
+
};
|
|
167
|
+
export type MfaTypesElement =
|
|
168
|
+
(typeof MfaTypesElement)[keyof typeof MfaTypesElement];
|
|
157
169
|
export interface Settings {
|
|
158
170
|
MfaTypes?: (MfaTypesElement | string)[];
|
|
159
171
|
SmsMessage?: string;
|
|
@@ -162,17 +174,21 @@ export interface CreateBackendAuthMFAConfig {
|
|
|
162
174
|
MFAMode: MFAMode | string | undefined;
|
|
163
175
|
Settings?: Settings;
|
|
164
176
|
}
|
|
165
|
-
export declare
|
|
166
|
-
CODE
|
|
167
|
-
IMPLICIT
|
|
168
|
-
}
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
177
|
+
export declare const OAuthGrantType: {
|
|
178
|
+
readonly CODE: "CODE";
|
|
179
|
+
readonly IMPLICIT: "IMPLICIT";
|
|
180
|
+
};
|
|
181
|
+
export type OAuthGrantType =
|
|
182
|
+
(typeof OAuthGrantType)[keyof typeof OAuthGrantType];
|
|
183
|
+
export declare const OAuthScopesElement: {
|
|
184
|
+
readonly AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN";
|
|
185
|
+
readonly EMAIL: "EMAIL";
|
|
186
|
+
readonly OPENID: "OPENID";
|
|
187
|
+
readonly PHONE: "PHONE";
|
|
188
|
+
readonly PROFILE: "PROFILE";
|
|
189
|
+
};
|
|
190
|
+
export type OAuthScopesElement =
|
|
191
|
+
(typeof OAuthScopesElement)[keyof typeof OAuthScopesElement];
|
|
176
192
|
export interface BackendAuthSocialProviderConfig {
|
|
177
193
|
ClientId?: string;
|
|
178
194
|
ClientSecret?: string;
|
|
@@ -201,31 +217,34 @@ export interface CreateBackendAuthPasswordPolicyConfig {
|
|
|
201
217
|
AdditionalConstraints?: (AdditionalConstraintsElement | string)[];
|
|
202
218
|
MinimumLength: number | undefined;
|
|
203
219
|
}
|
|
204
|
-
export declare
|
|
205
|
-
ADDRESS
|
|
206
|
-
BIRTHDATE
|
|
207
|
-
EMAIL
|
|
208
|
-
FAMILY_NAME
|
|
209
|
-
GENDER
|
|
210
|
-
GIVEN_NAME
|
|
211
|
-
LOCALE
|
|
212
|
-
MIDDLE_NAME
|
|
213
|
-
NAME
|
|
214
|
-
NICKNAME
|
|
215
|
-
PHONE_NUMBER
|
|
216
|
-
PICTURE
|
|
217
|
-
PREFERRED_USERNAME
|
|
218
|
-
PROFILE
|
|
219
|
-
UPDATED_AT
|
|
220
|
-
WEBSITE
|
|
221
|
-
ZONE_INFO
|
|
222
|
-
}
|
|
223
|
-
export
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
220
|
+
export declare const RequiredSignUpAttributesElement: {
|
|
221
|
+
readonly ADDRESS: "ADDRESS";
|
|
222
|
+
readonly BIRTHDATE: "BIRTHDATE";
|
|
223
|
+
readonly EMAIL: "EMAIL";
|
|
224
|
+
readonly FAMILY_NAME: "FAMILY_NAME";
|
|
225
|
+
readonly GENDER: "GENDER";
|
|
226
|
+
readonly GIVEN_NAME: "GIVEN_NAME";
|
|
227
|
+
readonly LOCALE: "LOCALE";
|
|
228
|
+
readonly MIDDLE_NAME: "MIDDLE_NAME";
|
|
229
|
+
readonly NAME: "NAME";
|
|
230
|
+
readonly NICKNAME: "NICKNAME";
|
|
231
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
|
232
|
+
readonly PICTURE: "PICTURE";
|
|
233
|
+
readonly PREFERRED_USERNAME: "PREFERRED_USERNAME";
|
|
234
|
+
readonly PROFILE: "PROFILE";
|
|
235
|
+
readonly UPDATED_AT: "UPDATED_AT";
|
|
236
|
+
readonly WEBSITE: "WEBSITE";
|
|
237
|
+
readonly ZONE_INFO: "ZONE_INFO";
|
|
238
|
+
};
|
|
239
|
+
export type RequiredSignUpAttributesElement =
|
|
240
|
+
(typeof RequiredSignUpAttributesElement)[keyof typeof RequiredSignUpAttributesElement];
|
|
241
|
+
export declare const SignInMethod: {
|
|
242
|
+
readonly EMAIL: "EMAIL";
|
|
243
|
+
readonly EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER";
|
|
244
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
|
245
|
+
readonly USERNAME: "USERNAME";
|
|
246
|
+
};
|
|
247
|
+
export type SignInMethod = (typeof SignInMethod)[keyof typeof SignInMethod];
|
|
229
248
|
export interface CreateBackendAuthVerificationMessageConfig {
|
|
230
249
|
DeliveryMethod: DeliveryMethod | string | undefined;
|
|
231
250
|
EmailSettings?: EmailSettings;
|
|
@@ -273,23 +292,28 @@ export interface CreateBackendConfigResponse {
|
|
|
273
292
|
JobId?: string;
|
|
274
293
|
Status?: string;
|
|
275
294
|
}
|
|
276
|
-
export declare
|
|
277
|
-
CREATE_AND_UPDATE
|
|
278
|
-
DELETE
|
|
279
|
-
READ
|
|
280
|
-
}
|
|
281
|
-
export
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
295
|
+
export declare const AuthenticatedElement: {
|
|
296
|
+
readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
|
|
297
|
+
readonly DELETE: "DELETE";
|
|
298
|
+
readonly READ: "READ";
|
|
299
|
+
};
|
|
300
|
+
export type AuthenticatedElement =
|
|
301
|
+
(typeof AuthenticatedElement)[keyof typeof AuthenticatedElement];
|
|
302
|
+
export declare const UnAuthenticatedElement: {
|
|
303
|
+
readonly CREATE_AND_UPDATE: "CREATE_AND_UPDATE";
|
|
304
|
+
readonly DELETE: "DELETE";
|
|
305
|
+
readonly READ: "READ";
|
|
306
|
+
};
|
|
307
|
+
export type UnAuthenticatedElement =
|
|
308
|
+
(typeof UnAuthenticatedElement)[keyof typeof UnAuthenticatedElement];
|
|
286
309
|
export interface BackendStoragePermissions {
|
|
287
310
|
Authenticated: (AuthenticatedElement | string)[] | undefined;
|
|
288
311
|
UnAuthenticated?: (UnAuthenticatedElement | string)[];
|
|
289
312
|
}
|
|
290
|
-
export declare
|
|
291
|
-
S3
|
|
292
|
-
}
|
|
313
|
+
export declare const ServiceName: {
|
|
314
|
+
readonly S3: "S3";
|
|
315
|
+
};
|
|
316
|
+
export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
|
|
293
317
|
export interface CreateBackendStorageResourceConfig {
|
|
294
318
|
BucketName?: string;
|
|
295
319
|
Permissions: BackendStoragePermissions | undefined;
|
|
@@ -418,10 +442,11 @@ export interface GetBackendAPIModelsRequest {
|
|
|
418
442
|
BackendEnvironmentName: string | undefined;
|
|
419
443
|
ResourceName: string | undefined;
|
|
420
444
|
}
|
|
421
|
-
export declare
|
|
422
|
-
LATEST
|
|
423
|
-
STALE
|
|
424
|
-
}
|
|
445
|
+
export declare const Status: {
|
|
446
|
+
readonly LATEST: "LATEST";
|
|
447
|
+
readonly STALE: "STALE";
|
|
448
|
+
};
|
|
449
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
425
450
|
export interface GetBackendAPIModelsResponse {
|
|
426
451
|
Models?: string;
|
|
427
452
|
Status?: Status | string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplifybackend",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplifybackend Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.306.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.306.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.306.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|