@ttoss/cloud-auth 0.12.3 → 0.12.4
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/index.d.mts +21 -21
- package/dist/index.d.ts +21 -21
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -4,36 +4,36 @@ declare const PASSWORD_MINIMUM_LENGTH = 8;
|
|
|
4
4
|
|
|
5
5
|
declare const createAuthTemplate: {
|
|
6
6
|
({ autoVerifiedAttributes, identityPool, schema, usernameAttributes, }?: {
|
|
7
|
-
autoVerifiedAttributes?:
|
|
7
|
+
autoVerifiedAttributes?: Array<'email' | 'phone_number'> | null | false;
|
|
8
8
|
identityPool?: {
|
|
9
|
-
enabled?: boolean
|
|
10
|
-
name?: string
|
|
11
|
-
allowUnauthenticatedIdentities?: boolean
|
|
12
|
-
authenticatedRoleArn?: string
|
|
13
|
-
authenticatedPolicies?: Policy[]
|
|
14
|
-
unauthenticatedRoleArn?: string
|
|
15
|
-
unauthenticatedPolicies?: Policy[]
|
|
16
|
-
principalTags?:
|
|
17
|
-
}
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
allowUnauthenticatedIdentities?: boolean;
|
|
12
|
+
authenticatedRoleArn?: string;
|
|
13
|
+
authenticatedPolicies?: Policy[];
|
|
14
|
+
unauthenticatedRoleArn?: string;
|
|
15
|
+
unauthenticatedPolicies?: Policy[];
|
|
16
|
+
principalTags?: Record<string, string> | boolean;
|
|
17
|
+
};
|
|
18
18
|
/**
|
|
19
19
|
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html
|
|
20
20
|
*/
|
|
21
21
|
schema?: {
|
|
22
|
-
attributeDataType?:
|
|
23
|
-
developerOnlyAttribute?: boolean
|
|
24
|
-
mutable?: boolean
|
|
25
|
-
name?: string
|
|
22
|
+
attributeDataType?: 'Boolean' | 'DateTime' | 'Number' | 'String';
|
|
23
|
+
developerOnlyAttribute?: boolean;
|
|
24
|
+
mutable?: boolean;
|
|
25
|
+
name?: string;
|
|
26
26
|
numberAttributeConstraints?: {
|
|
27
|
-
maxValue?: string
|
|
28
|
-
minValue?: string
|
|
29
|
-
}
|
|
30
|
-
required?: boolean
|
|
27
|
+
maxValue?: string;
|
|
28
|
+
minValue?: string;
|
|
29
|
+
};
|
|
30
|
+
required?: boolean;
|
|
31
31
|
stringAttributeConstraints?: {
|
|
32
32
|
maxLength: string;
|
|
33
33
|
minLength: string;
|
|
34
|
-
}
|
|
35
|
-
}[]
|
|
36
|
-
usernameAttributes?:
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
usernameAttributes?: Array<'email' | 'phone_number'> | null;
|
|
37
37
|
}): any;
|
|
38
38
|
CognitoUserPoolLogicalId: string;
|
|
39
39
|
CognitoUserPoolClientLogicalId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,36 +4,36 @@ declare const PASSWORD_MINIMUM_LENGTH = 8;
|
|
|
4
4
|
|
|
5
5
|
declare const createAuthTemplate: {
|
|
6
6
|
({ autoVerifiedAttributes, identityPool, schema, usernameAttributes, }?: {
|
|
7
|
-
autoVerifiedAttributes?:
|
|
7
|
+
autoVerifiedAttributes?: Array<'email' | 'phone_number'> | null | false;
|
|
8
8
|
identityPool?: {
|
|
9
|
-
enabled?: boolean
|
|
10
|
-
name?: string
|
|
11
|
-
allowUnauthenticatedIdentities?: boolean
|
|
12
|
-
authenticatedRoleArn?: string
|
|
13
|
-
authenticatedPolicies?: Policy[]
|
|
14
|
-
unauthenticatedRoleArn?: string
|
|
15
|
-
unauthenticatedPolicies?: Policy[]
|
|
16
|
-
principalTags?:
|
|
17
|
-
}
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
allowUnauthenticatedIdentities?: boolean;
|
|
12
|
+
authenticatedRoleArn?: string;
|
|
13
|
+
authenticatedPolicies?: Policy[];
|
|
14
|
+
unauthenticatedRoleArn?: string;
|
|
15
|
+
unauthenticatedPolicies?: Policy[];
|
|
16
|
+
principalTags?: Record<string, string> | boolean;
|
|
17
|
+
};
|
|
18
18
|
/**
|
|
19
19
|
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html
|
|
20
20
|
*/
|
|
21
21
|
schema?: {
|
|
22
|
-
attributeDataType?:
|
|
23
|
-
developerOnlyAttribute?: boolean
|
|
24
|
-
mutable?: boolean
|
|
25
|
-
name?: string
|
|
22
|
+
attributeDataType?: 'Boolean' | 'DateTime' | 'Number' | 'String';
|
|
23
|
+
developerOnlyAttribute?: boolean;
|
|
24
|
+
mutable?: boolean;
|
|
25
|
+
name?: string;
|
|
26
26
|
numberAttributeConstraints?: {
|
|
27
|
-
maxValue?: string
|
|
28
|
-
minValue?: string
|
|
29
|
-
}
|
|
30
|
-
required?: boolean
|
|
27
|
+
maxValue?: string;
|
|
28
|
+
minValue?: string;
|
|
29
|
+
};
|
|
30
|
+
required?: boolean;
|
|
31
31
|
stringAttributeConstraints?: {
|
|
32
32
|
maxLength: string;
|
|
33
33
|
minLength: string;
|
|
34
|
-
}
|
|
35
|
-
}[]
|
|
36
|
-
usernameAttributes?:
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
usernameAttributes?: Array<'email' | 'phone_number'> | null;
|
|
37
37
|
}): any;
|
|
38
38
|
CognitoUserPoolLogicalId: string;
|
|
39
39
|
CognitoUserPoolClientLogicalId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/cloud-auth",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/ttoss/ttoss.git",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@ttoss/cloudformation": "^0.9.
|
|
22
|
+
"@ttoss/cloudformation": "^0.9.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/jest": "^29.5.12",
|
|
26
26
|
"jest": "^29.7.0",
|
|
27
27
|
"tsup": "^8.0.2",
|
|
28
|
-
"typescript": "~5.
|
|
29
|
-
"@ttoss/config": "^1.
|
|
28
|
+
"typescript": "~5.4.5",
|
|
29
|
+
"@ttoss/config": "^1.32.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public",
|