@fiado/type-kit 3.38.0 → 3.40.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/_test_/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.test.ts +77 -0
- package/bin/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.d.ts +12 -0
- package/bin/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.js +29 -0
- package/bin/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.d.ts +10 -0
- package/bin/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.js +27 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlRequest.js +36 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlResponse.d.ts +13 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlResponse.js +12 -0
- package/bin/benefitCenter/dtos/ProductItem.d.ts +12 -0
- package/bin/benefitCenter/enums/LeafAssetKindEnum.d.ts +12 -0
- package/bin/benefitCenter/enums/LeafAssetKindEnum.js +16 -0
- package/bin/benefitCenter/index.d.ts +8 -0
- package/bin/benefitCenter/index.js +9 -0
- package/bin/cognitoBackofficeConnector/dtos/AppClientConfig.d.ts +19 -0
- package/bin/cognitoBackofficeConnector/dtos/AppClientConfig.js +74 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolRequest.d.ts +19 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolRequest.js +63 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolResponse.d.ts +13 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolResponse.js +13 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/CustomAttributeSpec.d.ts +9 -0
- package/bin/cognitoBackofficeConnector/dtos/CustomAttributeSpec.js +38 -0
- package/bin/cognitoBackofficeConnector/dtos/DeletePoolRequest.d.ts +13 -0
- package/bin/{messagesConnector/dtos/VerifyOtpRequest.js → cognitoBackofficeConnector/dtos/DeletePoolRequest.js} +14 -12
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +7 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +31 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaResetRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaResetRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.js +51 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/index.d.ts +8 -2
- package/bin/cognitoBackofficeConnector/index.js +8 -2
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +17 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +39 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +7 -1
- package/bin/platformRbac/dtos/AuthContext.d.ts +21 -0
- package/bin/platformRbac/dtos/AuthContext.js +2 -0
- package/bin/platformRbac/dtos/PermissionMeta.d.ts +19 -0
- package/bin/platformRbac/dtos/PermissionMeta.js +2 -0
- package/bin/platformRbac/dtos/RoleAssignmentInfo.d.ts +11 -0
- package/bin/platformRbac/dtos/RoleAssignmentInfo.js +2 -0
- package/bin/platformRbac/enums/Permission.d.ts +93 -0
- package/bin/platformRbac/enums/Permission.js +118 -0
- package/bin/platformRbac/enums/PermissionCategory.d.ts +14 -0
- package/bin/platformRbac/enums/PermissionCategory.js +18 -0
- package/bin/platformRbac/enums/PermissionScope.d.ts +10 -0
- package/bin/platformRbac/enums/PermissionScope.js +14 -0
- package/bin/platformRbac/index.d.ts +6 -0
- package/bin/platformRbac/index.js +18 -0
- package/package.json +6 -3
- package/src/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.ts +16 -0
- package/src/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.ts +13 -0
- package/src/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.ts +12 -0
- package/src/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.ts +13 -0
- package/src/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.ts +14 -0
- package/src/benefitCenter/dtos/LeafAssetUploadUrlRequest.ts +23 -0
- package/src/benefitCenter/dtos/LeafAssetUploadUrlResponse.ts +13 -0
- package/src/benefitCenter/dtos/ProductItem.ts +14 -0
- package/src/benefitCenter/enums/LeafAssetKindEnum.ts +12 -0
- package/src/benefitCenter/index.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/AppClientConfig.ts +22 -0
- package/src/cognitoBackofficeConnector/dtos/AuthEventsRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ChangePasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolRequest.ts +30 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolResponse.ts +13 -0
- package/src/cognitoBackofficeConnector/dtos/CreateUserRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/CustomAttributeSpec.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/DeletePoolRequest.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/DeleteUserRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/InitiateAuthRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/MfaPoolConfig.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/MfaResetRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/RefreshTokensRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ResendInvitationRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/TotpBeginRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/TotpVerifyRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateEmailRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateProfileRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UserActionRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/VerifyEmailRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/index.ts +8 -2
- package/src/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.ts +29 -0
- package/src/index.ts +6 -0
- package/src/platformRbac/dtos/AuthContext.ts +22 -0
- package/src/platformRbac/dtos/PermissionMeta.ts +20 -0
- package/src/platformRbac/dtos/RoleAssignmentInfo.ts +12 -0
- package/src/platformRbac/enums/Permission.ts +120 -0
- package/src/platformRbac/enums/PermissionCategory.ts +14 -0
- package/src/platformRbac/enums/PermissionScope.ts +10 -0
- package/src/platformRbac/index.ts +17 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +0 -20
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +0 -11
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +0 -4
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +0 -6
- package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +0 -20
- package/bin/messagesConnector/dtos/SendMessageRequest.js +0 -118
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +0 -5
- package/src/cognitoBackofficeConnector/dtos/PoolConfigResponse.ts +0 -18
- package/src/cognitoBackofficeConnector/dtos/PoolsListResponse.ts +0 -5
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatePoolRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const MfaPoolConfig_1 = require("./MfaPoolConfig");
|
|
16
|
+
const PasswordPolicyConfig_1 = require("./PasswordPolicyConfig");
|
|
17
|
+
const CustomAttributeSpec_1 = require("./CustomAttributeSpec");
|
|
18
|
+
const AppClientConfig_1 = require("./AppClientConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Request del endpoint POST /pools (pivote v1.4.1 stateless).
|
|
21
|
+
* Consumido por la saga `TenantOnboardingManager` del `platform-rbac-business`
|
|
22
|
+
* (Flujo 2 v1.2, PASO 4 de la saga). El connector ejecuta CreateUserPool +
|
|
23
|
+
* CreateUserPoolClient en secuencia. Si CreateUserPoolClient falla DESPUÉS de
|
|
24
|
+
* CreateUserPool exitoso, el connector hace DeleteUserPool de cleanup.
|
|
25
|
+
*/
|
|
26
|
+
class CreatePoolRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.CreatePoolRequest = CreatePoolRequest;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreatePoolRequest.prototype, "region", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreatePoolRequest.prototype, "displayName", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.ValidateNested)(),
|
|
42
|
+
(0, class_transformer_1.Type)(() => MfaPoolConfig_1.MfaPoolConfig),
|
|
43
|
+
__metadata("design:type", MfaPoolConfig_1.MfaPoolConfig)
|
|
44
|
+
], CreatePoolRequest.prototype, "mfaConfig", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.ValidateNested)(),
|
|
48
|
+
(0, class_transformer_1.Type)(() => PasswordPolicyConfig_1.PasswordPolicyConfig),
|
|
49
|
+
__metadata("design:type", PasswordPolicyConfig_1.PasswordPolicyConfig)
|
|
50
|
+
], CreatePoolRequest.prototype, "passwordPolicy", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_validator_1.IsArray)(),
|
|
54
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
55
|
+
(0, class_transformer_1.Type)(() => CustomAttributeSpec_1.CustomAttributeSpec),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], CreatePoolRequest.prototype, "customAttributes", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_validator_1.ValidateNested)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => AppClientConfig_1.AppClientConfig),
|
|
62
|
+
__metadata("design:type", AppClientConfig_1.AppClientConfig)
|
|
63
|
+
], CreatePoolRequest.prototype, "appClientConfig", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response del endpoint POST /pools (pivote v1.4.1 stateless).
|
|
3
|
+
*
|
|
4
|
+
* NO expone `clientSecret` — el SDK Cognito no lo devuelve cuando
|
|
5
|
+
* `GenerateSecret: false` (BFF pattern A21). Si aparece consumer B2B/M2M
|
|
6
|
+
* que requiera client secret, evaluar con líder + bump major del connector.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CreatePoolResponse {
|
|
9
|
+
userPoolId: string;
|
|
10
|
+
userPoolArn: string;
|
|
11
|
+
appClientId: string;
|
|
12
|
+
region: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePoolResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response del endpoint POST /pools (pivote v1.4.1 stateless).
|
|
6
|
+
*
|
|
7
|
+
* NO expone `clientSecret` — el SDK Cognito no lo devuelve cuando
|
|
8
|
+
* `GenerateSecret: false` (BFF pattern A21). Si aparece consumer B2B/M2M
|
|
9
|
+
* que requiera client secret, evaluar con líder + bump major del connector.
|
|
10
|
+
*/
|
|
11
|
+
class CreatePoolResponse {
|
|
12
|
+
}
|
|
13
|
+
exports.CreatePoolResponse = CreatePoolResponse;
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateUserRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateUserRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const ALLOWED_ATTR_TYPES: readonly ["String", "Number", "Boolean", "DateTime"];
|
|
2
|
+
export type AllowedAttrType = (typeof ALLOWED_ATTR_TYPES)[number];
|
|
3
|
+
export declare class CustomAttributeSpec {
|
|
4
|
+
name: string;
|
|
5
|
+
type: AllowedAttrType;
|
|
6
|
+
mutable: boolean;
|
|
7
|
+
required: boolean;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CustomAttributeSpec = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const ALLOWED_ATTR_TYPES = ['String', 'Number', 'Boolean', 'DateTime'];
|
|
16
|
+
class CustomAttributeSpec {
|
|
17
|
+
}
|
|
18
|
+
exports.CustomAttributeSpec = CustomAttributeSpec;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CustomAttributeSpec.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsIn)(ALLOWED_ATTR_TYPES),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CustomAttributeSpec.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], CustomAttributeSpec.prototype, "mutable", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], CustomAttributeSpec.prototype, "required", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint DELETE /pools/:userPoolId?region=X (pivote v1.4.1 stateless).
|
|
3
|
+
* Consumido por compensation chain de la saga `TenantOnboardingManager` del
|
|
4
|
+
* `platform-rbac-business` cuando falla el paso 5 (CreateUser) o paso 6
|
|
5
|
+
* (TransactWriteItems) — ver Flujo 2 v1.2 del rbac.
|
|
6
|
+
*
|
|
7
|
+
* Requiere pool VACÍO (sin users). Si tiene users, AWS rechaza con
|
|
8
|
+
* ResourceInUseException → CognitoPoolNotEmptyError 409.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DeletePoolRequest {
|
|
11
|
+
userPoolId: string;
|
|
12
|
+
region: string;
|
|
13
|
+
}
|
|
@@ -9,26 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.DeletePoolRequest = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Request del endpoint DELETE /pools/:userPoolId?region=X (pivote v1.4.1 stateless).
|
|
17
|
+
* Consumido por compensation chain de la saga `TenantOnboardingManager` del
|
|
18
|
+
* `platform-rbac-business` cuando falla el paso 5 (CreateUser) o paso 6
|
|
19
|
+
* (TransactWriteItems) — ver Flujo 2 v1.2 del rbac.
|
|
20
|
+
*
|
|
21
|
+
* Requiere pool VACÍO (sin users). Si tiene users, AWS rechaza con
|
|
22
|
+
* ResourceInUseException → CognitoPoolNotEmptyError 409.
|
|
23
|
+
*/
|
|
24
|
+
class DeletePoolRequest {
|
|
16
25
|
}
|
|
17
|
-
exports.
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_transformer_1.Expose)(),
|
|
20
|
-
(0, class_validator_1.IsUUID)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], VerifyOtpRequest.prototype, "directoryId", void 0);
|
|
26
|
+
exports.DeletePoolRequest = DeletePoolRequest;
|
|
23
27
|
__decorate([
|
|
24
28
|
(0, class_transformer_1.Expose)(),
|
|
25
29
|
(0, class_validator_1.IsString)(),
|
|
26
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
27
30
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
31
|
+
], DeletePoolRequest.prototype, "userPoolId", void 0);
|
|
29
32
|
__decorate([
|
|
30
33
|
(0, class_transformer_1.Expose)(),
|
|
31
34
|
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
35
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
36
|
+
], DeletePoolRequest.prototype, "region", void 0);
|
|
@@ -21,3 +21,9 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], DeleteUserRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DeleteUserRequest.prototype, "region", void 0);
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], ForgotPasswordRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ForgotPasswordRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], InitiateAuthRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], InitiateAuthRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MfaPoolConfig = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const MfaTypesRequiresOne_1 = require("../validators/MfaTypesRequiresOne");
|
|
16
|
+
const ALLOWED_MFA_TYPES = ['SOFTWARE_TOKEN_MFA', 'EMAIL_OTP'];
|
|
17
|
+
class MfaPoolConfig {
|
|
18
|
+
}
|
|
19
|
+
exports.MfaPoolConfig = MfaPoolConfig;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsBoolean)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], MfaPoolConfig.prototype, "requireMfa", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
(0, class_validator_1.IsIn)(ALLOWED_MFA_TYPES, { each: true }),
|
|
29
|
+
(0, class_validator_1.Validate)(MfaTypesRequiresOne_1.MfaTypesRequiresOne),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], MfaPoolConfig.prototype, "mfaTypes", void 0);
|
|
@@ -21,3 +21,9 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], MfaResetRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], MfaResetRequest.prototype, "region", void 0);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PasswordPolicyConfig = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class PasswordPolicyConfig {
|
|
16
|
+
}
|
|
17
|
+
exports.PasswordPolicyConfig = PasswordPolicyConfig;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNumber)(),
|
|
21
|
+
(0, class_validator_1.Min)(6),
|
|
22
|
+
(0, class_validator_1.Max)(99),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PasswordPolicyConfig.prototype, "minLength", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsBoolean)(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], PasswordPolicyConfig.prototype, "requireUppercase", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], PasswordPolicyConfig.prototype, "requireLowercase", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsBoolean)(),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], PasswordPolicyConfig.prototype, "requireNumbers", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], PasswordPolicyConfig.prototype, "requireSymbols", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsNumber)(),
|
|
48
|
+
(0, class_validator_1.Min)(1),
|
|
49
|
+
(0, class_validator_1.Max)(365),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], PasswordPolicyConfig.prototype, "temporaryPasswordValidityDays", void 0);
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], RefreshTokensRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RefreshTokensRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], ResendConfirmationRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ResendConfirmationRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,3 +21,9 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], ResendInvitationRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ResendInvitationRequest.prototype, "region", void 0);
|
|
@@ -22,6 +22,12 @@ __decorate([
|
|
|
22
22
|
(0, class_validator_1.IsNotEmpty)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], RespondToChallengeRequest.prototype, "userPoolId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], RespondToChallengeRequest.prototype, "region", void 0);
|
|
25
31
|
__decorate([
|
|
26
32
|
(0, class_transformer_1.Expose)(),
|
|
27
33
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SetMfaPreferenceRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SetMfaPreferenceRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,6 +21,12 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], TotpBeginRequest.prototype, "userPoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TotpBeginRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -15,6 +15,12 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
class TotpVerifyRequest {
|
|
16
16
|
}
|
|
17
17
|
exports.TotpVerifyRequest = TotpVerifyRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], TotpVerifyRequest.prototype, "region", void 0);
|
|
18
24
|
__decorate([
|
|
19
25
|
(0, class_transformer_1.Expose)(),
|
|
20
26
|
(0, class_validator_1.IsString)(),
|
|
@@ -15,6 +15,12 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
class UpdateEmailRequest {
|
|
16
16
|
}
|
|
17
17
|
exports.UpdateEmailRequest = UpdateEmailRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UpdateEmailRequest.prototype, "region", void 0);
|
|
18
24
|
__decorate([
|
|
19
25
|
(0, class_transformer_1.Expose)(),
|
|
20
26
|
(0, class_validator_1.IsString)(),
|
|
@@ -21,6 +21,12 @@ const class_validator_1 = require("class-validator");
|
|
|
21
21
|
class UpdateProfileRequest {
|
|
22
22
|
}
|
|
23
23
|
exports.UpdateProfileRequest = UpdateProfileRequest;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpdateProfileRequest.prototype, "region", void 0);
|
|
24
30
|
__decorate([
|
|
25
31
|
(0, class_transformer_1.Expose)(),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
@@ -22,6 +22,12 @@ __decorate([
|
|
|
22
22
|
(0, class_validator_1.IsNotEmpty)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], UpdateUserAttributesRequest.prototype, "userPoolId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UpdateUserAttributesRequest.prototype, "region", void 0);
|
|
25
31
|
__decorate([
|
|
26
32
|
(0, class_transformer_1.Expose)(),
|
|
27
33
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -26,3 +26,9 @@ __decorate([
|
|
|
26
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], UserActionRequest.prototype, "userPoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UserActionRequest.prototype, "region", void 0);
|