@fiado/type-kit 3.37.0 → 3.39.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/_test_/unit/cognitoBackofficeConnector/validators/NoTenantIdInCustomAttrs.test.ts +43 -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/AuthEventResponse.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventResponse.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.d.ts +5 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.js +37 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthTokensResponse.d.ts +12 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthTokensResponse.js +11 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.d.ts +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.js +41 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.js +53 -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 +9 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.js +57 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserResponse.d.ts +10 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserResponse.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/cognitoBackofficeConnector/dtos/DeletePoolRequest.js +36 -0
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.js +29 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.d.ts +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.js +41 -0
- package/bin/cognitoBackofficeConnector/dtos/HealthcheckResponse.d.ts +12 -0
- package/bin/cognitoBackofficeConnector/dtos/HealthcheckResponse.js +13 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.js +53 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthResponse.d.ts +16 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthResponse.js +14 -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 +4 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaResetRequest.js +29 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaVerifyResponse.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaVerifyResponse.js +11 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.js +51 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +20 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +11 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.d.ts +6 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.js +41 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensResponse.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensResponse.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.d.ts +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.js +41 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.js +29 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.d.ts +9 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.js +52 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeResponse.d.ts +13 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeResponse.js +11 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.js +51 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.d.ts +5 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.js +35 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginResponse.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginResponse.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.d.ts +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.js +41 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.d.ts +5 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.js +34 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.d.ts +12 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.js +47 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.d.ts +7 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.js +49 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.d.ts +9 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.js +34 -0
- package/bin/cognitoBackofficeConnector/dtos/UserDetailResponse.d.ts +13 -0
- package/bin/cognitoBackofficeConnector/dtos/UserDetailResponse.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.d.ts +5 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.js +35 -0
- package/bin/cognitoBackofficeConnector/enums/CognitoChallengeType.d.ts +26 -0
- package/bin/cognitoBackofficeConnector/enums/CognitoChallengeType.js +30 -0
- package/bin/cognitoBackofficeConnector/enums/CognitoUserStatus.d.ts +29 -0
- package/bin/cognitoBackofficeConnector/enums/CognitoUserStatus.js +33 -0
- package/bin/cognitoBackofficeConnector/index.d.ts +50 -0
- package/bin/cognitoBackofficeConnector/index.js +66 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +17 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +39 -0
- package/bin/cognitoBackofficeConnector/validators/NoTenantIdInCustomAttrs.d.ts +27 -0
- package/bin/cognitoBackofficeConnector/validators/NoTenantIdInCustomAttrs.js +48 -0
- package/bin/index.d.ts +3 -0
- package/bin/index.js +9 -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/bin/rbac/enums/PoolKind.d.ts +16 -0
- package/bin/rbac/enums/PoolKind.js +20 -0
- package/bin/rbac/index.d.ts +1 -0
- package/bin/rbac/index.js +17 -0
- package/jest.config.js +8 -0
- package/package.json +5 -1
- 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/AuthEventResponse.ts +8 -0
- package/src/cognitoBackofficeConnector/dtos/AuthEventsRequest.ts +8 -0
- package/src/cognitoBackofficeConnector/dtos/AuthTokensResponse.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/ChangePasswordRequest.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolRequest.ts +30 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolResponse.ts +13 -0
- package/src/cognitoBackofficeConnector/dtos/CreateUserRequest.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/CreateUserResponse.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/CustomAttributeSpec.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/DeletePoolRequest.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/DeleteUserRequest.ts +7 -0
- package/src/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/HealthcheckResponse.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/InitiateAuthRequest.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/InitiateAuthResponse.ts +17 -0
- package/src/cognitoBackofficeConnector/dtos/MfaPoolConfig.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/MfaResetRequest.ts +7 -0
- package/src/cognitoBackofficeConnector/dtos/MfaVerifyResponse.ts +8 -0
- package/src/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/RefreshTokensRequest.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/RefreshTokensResponse.ts +5 -0
- package/src/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/ResendInvitationRequest.ts +7 -0
- package/src/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/RespondToChallengeResponse.ts +14 -0
- package/src/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/TotpBeginRequest.ts +8 -0
- package/src/cognitoBackofficeConnector/dtos/TotpBeginResponse.ts +4 -0
- package/src/cognitoBackofficeConnector/dtos/TotpVerifyRequest.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateEmailRequest.ts +8 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateProfileRequest.ts +15 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/UserActionRequest.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/UserDetailResponse.ts +14 -0
- package/src/cognitoBackofficeConnector/dtos/VerifyEmailRequest.ts +8 -0
- package/src/cognitoBackofficeConnector/enums/CognitoChallengeType.ts +26 -0
- package/src/cognitoBackofficeConnector/enums/CognitoUserStatus.ts +29 -0
- package/src/cognitoBackofficeConnector/index.ts +50 -0
- package/src/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.ts +29 -0
- package/src/cognitoBackofficeConnector/validators/NoTenantIdInCustomAttrs.ts +36 -0
- package/src/index.ts +8 -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/src/rbac/enums/PoolKind.ts +16 -0
- package/src/rbac/index.ts +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
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.AuthEventsRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AuthEventsRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.AuthEventsRequest = AuthEventsRequest;
|
|
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
|
+
], AuthEventsRequest.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
|
+
], AuthEventsRequest.prototype, "region", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsInt)(),
|
|
34
|
+
(0, class_validator_1.Min)(1),
|
|
35
|
+
(0, class_validator_1.Max)(60),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], AuthEventsRequest.prototype, "maxResults", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tokens devueltos por Cognito tras un login exitoso o un refresh. Shared
|
|
3
|
+
* entre `InitiateAuthResponse`, `RespondToChallengeResponse` y
|
|
4
|
+
* `RefreshTokensResponse`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AuthTokensResponse {
|
|
7
|
+
accessToken: string;
|
|
8
|
+
idToken: string;
|
|
9
|
+
refreshToken: string;
|
|
10
|
+
expiresIn: number;
|
|
11
|
+
tokenType: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthTokensResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tokens devueltos por Cognito tras un login exitoso o un refresh. Shared
|
|
6
|
+
* entre `InitiateAuthResponse`, `RespondToChallengeResponse` y
|
|
7
|
+
* `RefreshTokensResponse`.
|
|
8
|
+
*/
|
|
9
|
+
class AuthTokensResponse {
|
|
10
|
+
}
|
|
11
|
+
exports.AuthTokensResponse = AuthTokensResponse;
|
|
@@ -0,0 +1,41 @@
|
|
|
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.ChangePasswordRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ChangePasswordRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.ChangePasswordRequest = ChangePasswordRequest;
|
|
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
|
+
], ChangePasswordRequest.prototype, "region", 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
|
+
], ChangePasswordRequest.prototype, "accessToken", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ChangePasswordRequest.prototype, "previousPassword", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ChangePasswordRequest.prototype, "proposedPassword", void 0);
|
|
@@ -0,0 +1,53 @@
|
|
|
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.ConfirmForgotPasswordRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ConfirmForgotPasswordRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.ConfirmForgotPasswordRequest = ConfirmForgotPasswordRequest;
|
|
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
|
+
], ConfirmForgotPasswordRequest.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
|
+
], ConfirmForgotPasswordRequest.prototype, "region", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ConfirmForgotPasswordRequest.prototype, "clientId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ConfirmForgotPasswordRequest.prototype, "username", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ConfirmForgotPasswordRequest.prototype, "confirmationCode", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ConfirmForgotPasswordRequest.prototype, "newPassword", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MfaPoolConfig } from './MfaPoolConfig';
|
|
2
|
+
import { PasswordPolicyConfig } from './PasswordPolicyConfig';
|
|
3
|
+
import { CustomAttributeSpec } from './CustomAttributeSpec';
|
|
4
|
+
import { AppClientConfig } from './AppClientConfig';
|
|
5
|
+
/**
|
|
6
|
+
* Request del endpoint POST /pools (pivote v1.4.1 stateless).
|
|
7
|
+
* Consumido por la saga `TenantOnboardingManager` del `platform-rbac-business`
|
|
8
|
+
* (Flujo 2 v1.2, PASO 4 de la saga). El connector ejecuta CreateUserPool +
|
|
9
|
+
* CreateUserPoolClient en secuencia. Si CreateUserPoolClient falla DESPUÉS de
|
|
10
|
+
* CreateUserPool exitoso, el connector hace DeleteUserPool de cleanup.
|
|
11
|
+
*/
|
|
12
|
+
export declare class CreatePoolRequest {
|
|
13
|
+
region: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
mfaConfig: MfaPoolConfig;
|
|
16
|
+
passwordPolicy: PasswordPolicyConfig;
|
|
17
|
+
customAttributes: CustomAttributeSpec[];
|
|
18
|
+
appClientConfig: AppClientConfig;
|
|
19
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CreateUserRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateUserRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateUserRequest = CreateUserRequest;
|
|
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
|
+
], 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);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsEmail)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateUserRequest.prototype, "email", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateUserRequest.prototype, "displayName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsUUID)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CreateUserRequest.prototype, "tenantId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateUserRequest.prototype, "temporaryPassword", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CreateUserRequest.prototype, "suppressInvitationEmail", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CognitoUserStatus } from '../enums/CognitoUserStatus';
|
|
2
|
+
export declare class CreateUserResponse {
|
|
3
|
+
cognitoSub: string;
|
|
4
|
+
email: string;
|
|
5
|
+
emailVerified: boolean;
|
|
6
|
+
status: CognitoUserStatus;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
temporaryPassword?: string;
|
|
9
|
+
createdAt: number;
|
|
10
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.DeletePoolRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
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 {
|
|
25
|
+
}
|
|
26
|
+
exports.DeletePoolRequest = DeletePoolRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DeletePoolRequest.prototype, "userPoolId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], DeletePoolRequest.prototype, "region", void 0);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.DeleteUserRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DeleteUserRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.DeleteUserRequest = DeleteUserRequest;
|
|
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
|
+
], 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);
|
|
@@ -0,0 +1,41 @@
|
|
|
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.ForgotPasswordRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ForgotPasswordRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.ForgotPasswordRequest = ForgotPasswordRequest;
|
|
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
|
+
], 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);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ForgotPasswordRequest.prototype, "clientId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ForgotPasswordRequest.prototype, "username", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decisión D4: contrato literal del healthcheck.
|
|
3
|
+
* - `service`: nombre del lambda.
|
|
4
|
+
* - `status`: literal `'OK'` (cualquier desviación de health = 5xx, no
|
|
5
|
+
* status diferente).
|
|
6
|
+
* - `timestamp`: ISO 8601.
|
|
7
|
+
*/
|
|
8
|
+
export declare class HealthcheckResponse {
|
|
9
|
+
service: string;
|
|
10
|
+
status: 'OK';
|
|
11
|
+
timestamp: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthcheckResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Decisión D4: contrato literal del healthcheck.
|
|
6
|
+
* - `service`: nombre del lambda.
|
|
7
|
+
* - `status`: literal `'OK'` (cualquier desviación de health = 5xx, no
|
|
8
|
+
* status diferente).
|
|
9
|
+
* - `timestamp`: ISO 8601.
|
|
10
|
+
*/
|
|
11
|
+
class HealthcheckResponse {
|
|
12
|
+
}
|
|
13
|
+
exports.HealthcheckResponse = HealthcheckResponse;
|