@fiado/type-kit 3.99.2 → 3.100.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.
Files changed (85) hide show
  1. package/bin/index.d.ts +0 -1
  2. package/bin/index.js +1 -2
  3. package/bin/walletFunding/dtos/GetWalletFundingLimitRequest.d.ts +14 -0
  4. package/bin/{emailVerification/dtos/EmailConfirmRequest.js → walletFunding/dtos/GetWalletFundingLimitRequest.js} +19 -13
  5. package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.d.ts +22 -0
  6. package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.js +22 -0
  7. package/bin/walletFunding/dtos/index.d.ts +2 -0
  8. package/bin/walletFunding/dtos/index.js +2 -0
  9. package/package.json +1 -1
  10. package/src/index.ts +0 -1
  11. package/src/walletFunding/dtos/GetWalletFundingLimitRequest.ts +16 -0
  12. package/src/walletFunding/dtos/GetWalletFundingLimitResponse.ts +22 -0
  13. package/src/walletFunding/dtos/index.ts +2 -0
  14. package/_test_/unit/emailVerification/dtos/EmailConfirmRequest.test.ts +0 -38
  15. package/_test_/unit/emailVerification/dtos/EmailVerificationStartRequest.test.ts +0 -44
  16. package/_test_/unit/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.test.ts +0 -22
  17. package/_test_/unit/emailVerification/enums/EmailVerificationStatusEnum.test.ts +0 -17
  18. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
  19. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +0 -36
  20. package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +0 -20
  21. package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +0 -11
  22. package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +0 -4
  23. package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +0 -6
  24. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
  25. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
  26. package/bin/emailVerification/dtos/EmailConfirmRequest.d.ts +0 -9
  27. package/bin/emailVerification/dtos/EmailDeleteRequest.d.ts +0 -7
  28. package/bin/emailVerification/dtos/EmailDeleteRequest.js +0 -30
  29. package/bin/emailVerification/dtos/EmailDeleteResponse.d.ts +0 -7
  30. package/bin/emailVerification/dtos/EmailDeleteResponse.js +0 -27
  31. package/bin/emailVerification/dtos/EmailItem.d.ts +0 -12
  32. package/bin/emailVerification/dtos/EmailItem.js +0 -41
  33. package/bin/emailVerification/dtos/EmailListResponse.d.ts +0 -7
  34. package/bin/emailVerification/dtos/EmailListResponse.js +0 -23
  35. package/bin/emailVerification/dtos/EmailSetPrincipalRequest.d.ts +0 -7
  36. package/bin/emailVerification/dtos/EmailSetPrincipalRequest.js +0 -30
  37. package/bin/emailVerification/dtos/EmailSetPrincipalResponse.d.ts +0 -7
  38. package/bin/emailVerification/dtos/EmailSetPrincipalResponse.js +0 -27
  39. package/bin/emailVerification/dtos/EmailVerificationResendRequest.d.ts +0 -7
  40. package/bin/emailVerification/dtos/EmailVerificationResendRequest.js +0 -30
  41. package/bin/emailVerification/dtos/EmailVerificationResendResponse.d.ts +0 -8
  42. package/bin/emailVerification/dtos/EmailVerificationResendResponse.js +0 -28
  43. package/bin/emailVerification/dtos/EmailVerificationStartRequest.d.ts +0 -9
  44. package/bin/emailVerification/dtos/EmailVerificationStartRequest.js +0 -32
  45. package/bin/emailVerification/dtos/EmailVerificationStartResponse.d.ts +0 -9
  46. package/bin/emailVerification/dtos/EmailVerificationStartResponse.js +0 -32
  47. package/bin/emailVerification/dtos/EmailVerificationStatusRequest.d.ts +0 -7
  48. package/bin/emailVerification/dtos/EmailVerificationStatusRequest.js +0 -30
  49. package/bin/emailVerification/dtos/EmailVerificationStatusResponse.d.ts +0 -10
  50. package/bin/emailVerification/dtos/EmailVerificationStatusResponse.js +0 -36
  51. package/bin/emailVerification/dtos/internal/EmailsByDirectoryRequest.d.ts +0 -6
  52. package/bin/emailVerification/dtos/internal/EmailsByDirectoryRequest.js +0 -25
  53. package/bin/emailVerification/dtos/internal/EmailsByDirectoryResponse.d.ts +0 -7
  54. package/bin/emailVerification/dtos/internal/EmailsByDirectoryResponse.js +0 -23
  55. package/bin/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.d.ts +0 -7
  56. package/bin/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.js +0 -26
  57. package/bin/emailVerification/dtos/internal/PrimaryEmailResponse.d.ts +0 -9
  58. package/bin/emailVerification/dtos/internal/PrimaryEmailResponse.js +0 -32
  59. package/bin/emailVerification/enums/EmailVerificationStatusEnum.d.ts +0 -15
  60. package/bin/emailVerification/enums/EmailVerificationStatusEnum.js +0 -19
  61. package/bin/emailVerification/index.d.ts +0 -18
  62. package/bin/emailVerification/index.js +0 -34
  63. package/bin/rbac/enums/PoolKind.d.ts +0 -16
  64. package/bin/rbac/enums/PoolKind.js +0 -20
  65. package/bin/rbac/index.d.ts +0 -1
  66. package/bin/rbac/index.js +0 -17
  67. package/src/emailVerification/dtos/EmailConfirmRequest.ts +0 -19
  68. package/src/emailVerification/dtos/EmailDeleteRequest.ts +0 -15
  69. package/src/emailVerification/dtos/EmailDeleteResponse.ts +0 -12
  70. package/src/emailVerification/dtos/EmailItem.ts +0 -23
  71. package/src/emailVerification/dtos/EmailListResponse.ts +0 -10
  72. package/src/emailVerification/dtos/EmailSetPrincipalRequest.ts +0 -15
  73. package/src/emailVerification/dtos/EmailSetPrincipalResponse.ts +0 -12
  74. package/src/emailVerification/dtos/EmailVerificationResendRequest.ts +0 -15
  75. package/src/emailVerification/dtos/EmailVerificationResendResponse.ts +0 -13
  76. package/src/emailVerification/dtos/EmailVerificationStartRequest.ts +0 -17
  77. package/src/emailVerification/dtos/EmailVerificationStartResponse.ts +0 -16
  78. package/src/emailVerification/dtos/EmailVerificationStatusRequest.ts +0 -15
  79. package/src/emailVerification/dtos/EmailVerificationStatusResponse.ts +0 -19
  80. package/src/emailVerification/dtos/internal/EmailsByDirectoryRequest.ts +0 -11
  81. package/src/emailVerification/dtos/internal/EmailsByDirectoryResponse.ts +0 -10
  82. package/src/emailVerification/dtos/internal/PrimaryEmailByDirectoryRequest.ts +0 -12
  83. package/src/emailVerification/dtos/internal/PrimaryEmailResponse.ts +0 -16
  84. package/src/emailVerification/enums/EmailVerificationStatusEnum.ts +0 -15
  85. package/src/emailVerification/index.ts +0 -18
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums/EmailVerificationStatusEnum"), exports);
18
- __exportStar(require("./dtos/EmailVerificationStartRequest"), exports);
19
- __exportStar(require("./dtos/EmailVerificationStartResponse"), exports);
20
- __exportStar(require("./dtos/EmailVerificationResendRequest"), exports);
21
- __exportStar(require("./dtos/EmailVerificationResendResponse"), exports);
22
- __exportStar(require("./dtos/EmailVerificationStatusRequest"), exports);
23
- __exportStar(require("./dtos/EmailVerificationStatusResponse"), exports);
24
- __exportStar(require("./dtos/EmailItem"), exports);
25
- __exportStar(require("./dtos/EmailListResponse"), exports);
26
- __exportStar(require("./dtos/EmailSetPrincipalRequest"), exports);
27
- __exportStar(require("./dtos/EmailSetPrincipalResponse"), exports);
28
- __exportStar(require("./dtos/EmailDeleteRequest"), exports);
29
- __exportStar(require("./dtos/EmailDeleteResponse"), exports);
30
- __exportStar(require("./dtos/EmailConfirmRequest"), exports);
31
- __exportStar(require("./dtos/internal/PrimaryEmailByDirectoryRequest"), exports);
32
- __exportStar(require("./dtos/internal/PrimaryEmailResponse"), exports);
33
- __exportStar(require("./dtos/internal/EmailsByDirectoryRequest"), exports);
34
- __exportStar(require("./dtos/internal/EmailsByDirectoryResponse"), exports);
@@ -1,16 +0,0 @@
1
- /**
2
- * Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
3
- *
4
- * Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
5
- * documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
6
- *
7
- * Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
8
- * lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
9
- * decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
10
- * - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
11
- * - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
12
- */
13
- export declare enum PoolKind {
14
- BACKOFFICE_PLATFORM = "BACKOFFICE_PLATFORM",
15
- BACKOFFICE_TENANT = "BACKOFFICE_TENANT"
16
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PoolKind = void 0;
4
- /**
5
- * Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
6
- *
7
- * Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
8
- * documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
9
- *
10
- * Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
11
- * lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
12
- * decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
13
- * - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
14
- * - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
15
- */
16
- var PoolKind;
17
- (function (PoolKind) {
18
- PoolKind["BACKOFFICE_PLATFORM"] = "BACKOFFICE_PLATFORM";
19
- PoolKind["BACKOFFICE_TENANT"] = "BACKOFFICE_TENANT";
20
- })(PoolKind || (exports.PoolKind = PoolKind = {}));
@@ -1 +0,0 @@
1
- export * from './enums/PoolKind';
package/bin/rbac/index.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums/PoolKind"), exports);
@@ -1,19 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsNotEmpty, IsString } from 'class-validator';
3
-
4
- /**
5
- * Datos de confirmación que llegan desde el link del correo de verificación.
6
- * `vid` = verificationId; `t` = token opaco de un solo uso.
7
- * Ambos son opacos para el cliente: @IsString + @IsNotEmpty (no se parsean).
8
- */
9
- export class EmailConfirmRequest {
10
- @Expose()
11
- @IsString()
12
- @IsNotEmpty()
13
- vid!: string;
14
-
15
- @Expose()
16
- @IsString()
17
- @IsNotEmpty()
18
- t!: string;
19
- }
@@ -1,15 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsEmail, IsString } from 'class-validator';
3
-
4
- /**
5
- * Body para eliminar un email asociado a un directorio.
6
- */
7
- export class EmailDeleteRequest {
8
- @Expose()
9
- @IsString()
10
- directoryId!: string;
11
-
12
- @Expose()
13
- @IsEmail()
14
- email!: string;
15
- }
@@ -1,12 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
-
3
- /**
4
- * Respuesta al eliminar un email.
5
- */
6
- export class EmailDeleteResponse {
7
- @Expose()
8
- email!: string;
9
-
10
- @Expose()
11
- deleted!: boolean;
12
- }
@@ -1,23 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
-
4
- /**
5
- * Item de email asociado a un directorio. Se reutiliza en EmailListResponse
6
- * (público) y en EmailsByDirectoryResponse (interno).
7
- */
8
- export class EmailItem {
9
- @Expose()
10
- email!: string;
11
-
12
- @Expose()
13
- isVerified!: boolean;
14
-
15
- @Expose()
16
- isPrincipal!: boolean;
17
-
18
- @Expose()
19
- status!: EmailVerificationStatusEnum;
20
-
21
- @Expose()
22
- verifiedAt?: number;
23
- }
@@ -1,10 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailItem } from './EmailItem';
3
-
4
- /**
5
- * Lista de emails asociados a un directorio (endpoint público de listado).
6
- */
7
- export class EmailListResponse {
8
- @Expose()
9
- items!: EmailItem[];
10
- }
@@ -1,15 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsEmail, IsString } from 'class-validator';
3
-
4
- /**
5
- * Body para marcar un email como principal del directorio.
6
- */
7
- export class EmailSetPrincipalRequest {
8
- @Expose()
9
- @IsString()
10
- directoryId!: string;
11
-
12
- @Expose()
13
- @IsEmail()
14
- email!: string;
15
- }
@@ -1,12 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
-
3
- /**
4
- * Respuesta al marcar un email como principal.
5
- */
6
- export class EmailSetPrincipalResponse {
7
- @Expose()
8
- email!: string;
9
-
10
- @Expose()
11
- isPrincipal!: boolean;
12
- }
@@ -1,15 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsEmail, IsString } from 'class-validator';
3
-
4
- /**
5
- * Body para reenviar el correo de verificación de un email ya iniciado.
6
- */
7
- export class EmailVerificationResendRequest {
8
- @Expose()
9
- @IsString()
10
- directoryId!: string;
11
-
12
- @Expose()
13
- @IsEmail()
14
- email!: string;
15
- }
@@ -1,13 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
-
4
- /**
5
- * Respuesta al reenviar el correo de verificación.
6
- */
7
- export class EmailVerificationResendResponse {
8
- @Expose()
9
- verificationId!: string;
10
-
11
- @Expose()
12
- status!: EmailVerificationStatusEnum;
13
- }
@@ -1,17 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsEmail, IsString } from 'class-validator';
3
-
4
- /**
5
- * Body para iniciar la verificación de un email asociado a un directorio.
6
- * `directoryId` es @IsString (NO @IsUUID): el cognitoSub de backoffice es UUID v7
7
- * y rompe la validación @IsUUID de class-validator.
8
- */
9
- export class EmailVerificationStartRequest {
10
- @Expose()
11
- @IsString()
12
- directoryId!: string;
13
-
14
- @Expose()
15
- @IsEmail()
16
- email!: string;
17
- }
@@ -1,16 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
-
4
- /**
5
- * Respuesta al iniciar la verificación de un email.
6
- */
7
- export class EmailVerificationStartResponse {
8
- @Expose()
9
- verificationId!: string;
10
-
11
- @Expose()
12
- email!: string;
13
-
14
- @Expose()
15
- status!: EmailVerificationStatusEnum;
16
- }
@@ -1,15 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsEmail, IsString } from 'class-validator';
3
-
4
- /**
5
- * Body para consultar el estado de verificación de un email.
6
- */
7
- export class EmailVerificationStatusRequest {
8
- @Expose()
9
- @IsString()
10
- directoryId!: string;
11
-
12
- @Expose()
13
- @IsEmail()
14
- email!: string;
15
- }
@@ -1,19 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
-
4
- /**
5
- * Estado de verificación de un email puntual de un directorio.
6
- */
7
- export class EmailVerificationStatusResponse {
8
- @Expose()
9
- email!: string;
10
-
11
- @Expose()
12
- status!: EmailVerificationStatusEnum;
13
-
14
- @Expose()
15
- isVerified!: boolean;
16
-
17
- @Expose()
18
- isPrincipal!: boolean;
19
- }
@@ -1,11 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsString } from 'class-validator';
3
-
4
- /**
5
- * Request interno (api-invoker) para listar todos los emails de un directorio.
6
- */
7
- export class EmailsByDirectoryRequest {
8
- @Expose()
9
- @IsString()
10
- directoryId!: string;
11
- }
@@ -1,10 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { EmailItem } from '../EmailItem';
3
-
4
- /**
5
- * Lista interna de emails de un directorio. Reutiliza el EmailItem público.
6
- */
7
- export class EmailsByDirectoryResponse {
8
- @Expose()
9
- items!: EmailItem[];
10
- }
@@ -1,12 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
- import { IsString } from 'class-validator';
3
-
4
- /**
5
- * Request interno (api-invoker) para obtener el email principal de un directorio.
6
- * `directoryId` es @IsString (cognitoSub UUID v7 — no usar @IsUUID).
7
- */
8
- export class PrimaryEmailByDirectoryRequest {
9
- @Expose()
10
- @IsString()
11
- directoryId!: string;
12
- }
@@ -1,16 +0,0 @@
1
- import { Expose } from 'class-transformer';
2
-
3
- /**
4
- * Email principal de un directorio. `email` es null si el directorio todavía
5
- * no tiene un email principal definido.
6
- */
7
- export class PrimaryEmailResponse {
8
- @Expose()
9
- directoryId!: string;
10
-
11
- @Expose()
12
- email!: string | null;
13
-
14
- @Expose()
15
- isVerified!: boolean;
16
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Estado del flujo de verificación de un email asociado a un directorio.
3
- * PENDING: creado, todavía no se envió el correo.
4
- * SENT: correo de verificación enviado.
5
- * VERIFIED: el usuario confirmó el email vía el link.
6
- * EXPIRED: el token de verificación venció sin confirmarse.
7
- * FAILED: el envío o la verificación falló de forma terminal.
8
- */
9
- export enum EmailVerificationStatusEnum {
10
- PENDING = 'PENDING',
11
- SENT = 'SENT',
12
- VERIFIED = 'VERIFIED',
13
- EXPIRED = 'EXPIRED',
14
- FAILED = 'FAILED',
15
- }
@@ -1,18 +0,0 @@
1
- export * from './enums/EmailVerificationStatusEnum';
2
- export * from './dtos/EmailVerificationStartRequest';
3
- export * from './dtos/EmailVerificationStartResponse';
4
- export * from './dtos/EmailVerificationResendRequest';
5
- export * from './dtos/EmailVerificationResendResponse';
6
- export * from './dtos/EmailVerificationStatusRequest';
7
- export * from './dtos/EmailVerificationStatusResponse';
8
- export * from './dtos/EmailItem';
9
- export * from './dtos/EmailListResponse';
10
- export * from './dtos/EmailSetPrincipalRequest';
11
- export * from './dtos/EmailSetPrincipalResponse';
12
- export * from './dtos/EmailDeleteRequest';
13
- export * from './dtos/EmailDeleteResponse';
14
- export * from './dtos/EmailConfirmRequest';
15
- export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
16
- export * from './dtos/internal/PrimaryEmailResponse';
17
- export * from './dtos/internal/EmailsByDirectoryRequest';
18
- export * from './dtos/internal/EmailsByDirectoryResponse';