@ttoss/cloud-auth 0.12.2 → 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 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?: false | ("email" | "phone_number")[] | null | undefined;
7
+ autoVerifiedAttributes?: Array<'email' | 'phone_number'> | null | false;
8
8
  identityPool?: {
9
- enabled?: boolean | undefined;
10
- name?: string | undefined;
11
- allowUnauthenticatedIdentities?: boolean | undefined;
12
- authenticatedRoleArn?: string | undefined;
13
- authenticatedPolicies?: Policy[] | undefined;
14
- unauthenticatedRoleArn?: string | undefined;
15
- unauthenticatedPolicies?: Policy[] | undefined;
16
- principalTags?: boolean | Record<string, string> | undefined;
17
- } | undefined;
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?: "Boolean" | "DateTime" | "Number" | "String" | undefined;
23
- developerOnlyAttribute?: boolean | undefined;
24
- mutable?: boolean | undefined;
25
- name?: string | undefined;
22
+ attributeDataType?: 'Boolean' | 'DateTime' | 'Number' | 'String';
23
+ developerOnlyAttribute?: boolean;
24
+ mutable?: boolean;
25
+ name?: string;
26
26
  numberAttributeConstraints?: {
27
- maxValue?: string | undefined;
28
- minValue?: string | undefined;
29
- } | undefined;
30
- required?: boolean | undefined;
27
+ maxValue?: string;
28
+ minValue?: string;
29
+ };
30
+ required?: boolean;
31
31
  stringAttributeConstraints?: {
32
32
  maxLength: string;
33
33
  minLength: string;
34
- } | undefined;
35
- }[] | undefined;
36
- usernameAttributes?: ("email" | "phone_number")[] | null | undefined;
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?: false | ("email" | "phone_number")[] | null | undefined;
7
+ autoVerifiedAttributes?: Array<'email' | 'phone_number'> | null | false;
8
8
  identityPool?: {
9
- enabled?: boolean | undefined;
10
- name?: string | undefined;
11
- allowUnauthenticatedIdentities?: boolean | undefined;
12
- authenticatedRoleArn?: string | undefined;
13
- authenticatedPolicies?: Policy[] | undefined;
14
- unauthenticatedRoleArn?: string | undefined;
15
- unauthenticatedPolicies?: Policy[] | undefined;
16
- principalTags?: boolean | Record<string, string> | undefined;
17
- } | undefined;
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?: "Boolean" | "DateTime" | "Number" | "String" | undefined;
23
- developerOnlyAttribute?: boolean | undefined;
24
- mutable?: boolean | undefined;
25
- name?: string | undefined;
22
+ attributeDataType?: 'Boolean' | 'DateTime' | 'Number' | 'String';
23
+ developerOnlyAttribute?: boolean;
24
+ mutable?: boolean;
25
+ name?: string;
26
26
  numberAttributeConstraints?: {
27
- maxValue?: string | undefined;
28
- minValue?: string | undefined;
29
- } | undefined;
30
- required?: boolean | undefined;
27
+ maxValue?: string;
28
+ minValue?: string;
29
+ };
30
+ required?: boolean;
31
31
  stringAttributeConstraints?: {
32
32
  maxLength: string;
33
33
  minLength: string;
34
- } | undefined;
35
- }[] | undefined;
36
- usernameAttributes?: ("email" | "phone_number")[] | null | undefined;
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.2",
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.1"
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.2.2",
29
- "@ttoss/config": "^1.31.5"
28
+ "typescript": "~5.4.5",
29
+ "@ttoss/config": "^1.32.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",