@memberjunction/encryption 0.0.1 → 2.129.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 (46) hide show
  1. package/README.md +391 -28
  2. package/dist/EncryptionEngine.d.ts +351 -0
  3. package/dist/EncryptionEngine.d.ts.map +1 -0
  4. package/dist/EncryptionEngine.js +683 -0
  5. package/dist/EncryptionEngine.js.map +1 -0
  6. package/dist/EncryptionKeySourceBase.d.ts +203 -0
  7. package/dist/EncryptionKeySourceBase.d.ts.map +1 -0
  8. package/dist/EncryptionKeySourceBase.js +133 -0
  9. package/dist/EncryptionKeySourceBase.js.map +1 -0
  10. package/dist/actions/EnableFieldEncryptionAction.d.ts +87 -0
  11. package/dist/actions/EnableFieldEncryptionAction.d.ts.map +1 -0
  12. package/dist/actions/EnableFieldEncryptionAction.js +308 -0
  13. package/dist/actions/EnableFieldEncryptionAction.js.map +1 -0
  14. package/dist/actions/RotateEncryptionKeyAction.d.ts +79 -0
  15. package/dist/actions/RotateEncryptionKeyAction.d.ts.map +1 -0
  16. package/dist/actions/RotateEncryptionKeyAction.js +343 -0
  17. package/dist/actions/RotateEncryptionKeyAction.js.map +1 -0
  18. package/dist/actions/index.d.ts +12 -0
  19. package/dist/actions/index.d.ts.map +1 -0
  20. package/dist/actions/index.js +17 -0
  21. package/dist/actions/index.js.map +1 -0
  22. package/dist/index.d.ts +66 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +81 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/interfaces.d.ts +216 -0
  27. package/dist/interfaces.d.ts.map +1 -0
  28. package/dist/interfaces.js +15 -0
  29. package/dist/interfaces.js.map +1 -0
  30. package/dist/providers/AWSKMSKeySource.d.ts +110 -0
  31. package/dist/providers/AWSKMSKeySource.d.ts.map +1 -0
  32. package/dist/providers/AWSKMSKeySource.js +245 -0
  33. package/dist/providers/AWSKMSKeySource.js.map +1 -0
  34. package/dist/providers/AzureKeyVaultKeySource.d.ts +109 -0
  35. package/dist/providers/AzureKeyVaultKeySource.d.ts.map +1 -0
  36. package/dist/providers/AzureKeyVaultKeySource.js +268 -0
  37. package/dist/providers/AzureKeyVaultKeySource.js.map +1 -0
  38. package/dist/providers/ConfigFileKeySource.d.ts +173 -0
  39. package/dist/providers/ConfigFileKeySource.d.ts.map +1 -0
  40. package/dist/providers/ConfigFileKeySource.js +310 -0
  41. package/dist/providers/ConfigFileKeySource.js.map +1 -0
  42. package/dist/providers/EnvVarKeySource.d.ts +152 -0
  43. package/dist/providers/EnvVarKeySource.d.ts.map +1 -0
  44. package/dist/providers/EnvVarKeySource.js +251 -0
  45. package/dist/providers/EnvVarKeySource.js.map +1 -0
  46. package/package.json +65 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncryptionEngine.js","sourceRoot":"","sources":["../src/EncryptionEngine.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAiC;AACjC,mDAAuF;AACvF,+CAA6E;AAC7E,iEAAqE;AACrE,uEAAoE;AAgBpE;;;GAGG;AACH,MAAM,iCAAiC,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,gBAAiB,SAAQ,oCAAoB;IACtD;;;;;;;OAOG;IACK,iBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;IAEvE;;;;;OAKG;IACK,eAAe,GAAyC,IAAI,GAAG,EAAE,CAAC;IAE1E;;;;;OAKG;IACc,sBAAsB,GAAW,iCAAiC,CAAC;IAEpF;;;;;;;;;;;OAWG;IACI,MAAM,KAAc,QAAQ;QAC/B,OAAO,KAAK,CAAC,WAAW,EAAoB,CAAC;IACjD,CAAC;IAED;;;;;;;;;OASG;IACa,KAAK,CAAC,MAAM,CAAC,YAAsB,EAAE,WAAsB,EA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,UAAU;gBACpE,qDAAqD,aAAa,EAAE,CACvE,CAAC;QACN,CAAC;IACL,CAAC;IAED;;;;OAIG;IACK,WAAW,CAAC,KAAa;QAC7B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACtC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,uBAAuB;QACvB,MAAM,WAAW,GAAG,iEAAiE,CAAC;QACtF,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACJ;AA1uBD,4CA0uBC"}
@@ -0,0 +1,203 @@
1
+ /**
2
+ * @fileoverview Abstract base class for encryption key source providers.
3
+ *
4
+ * This module defines the extensible provider pattern for retrieving encryption
5
+ * key material from various sources (environment variables, vault services,
6
+ * configuration files, etc.).
7
+ *
8
+ * ## Implementing a Custom Key Source
9
+ *
10
+ * To add a new key source:
11
+ *
12
+ * 1. Create a class extending `EncryptionKeySourceBase`
13
+ * 2. Decorate with `@RegisterClass(EncryptionKeySourceBase, 'YourSourceName')`
14
+ * 3. Implement all abstract methods
15
+ * 4. Register in the database `EncryptionKeySource` table
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * import { RegisterClass } from '@memberjunction/global';
20
+ * import { EncryptionKeySourceBase } from '@memberjunction/encryption';
21
+ *
22
+ * @RegisterClass(EncryptionKeySourceBase, 'CustomVaultKeySource')
23
+ * export class CustomVaultKeySource extends EncryptionKeySourceBase {
24
+ * get SourceName(): string { return 'Custom Vault'; }
25
+ *
26
+ * ValidateConfiguration(): boolean {
27
+ * return !!this._config.additionalConfig?.vaultUrl;
28
+ * }
29
+ *
30
+ * async GetKey(lookupValue: string): Promise<Buffer> {
31
+ * // Retrieve key from vault...
32
+ * }
33
+ *
34
+ * async KeyExists(lookupValue: string): Promise<boolean> {
35
+ * // Check if key exists in vault...
36
+ * }
37
+ * }
38
+ * ```
39
+ *
40
+ * @module @memberjunction/encryption
41
+ */
42
+ /// <reference types="node" />
43
+ import { EncryptionKeySourceConfig } from './interfaces';
44
+ /**
45
+ * Abstract base class for encryption key source providers.
46
+ *
47
+ * Key sources are responsible for securely retrieving encryption key material
48
+ * from various backends. The MemberJunction encryption system uses the
49
+ * ClassFactory pattern to instantiate the appropriate provider based on
50
+ * database configuration.
51
+ *
52
+ * ## Security Considerations
53
+ *
54
+ * - **Never log or expose key material** - Key bytes should only be returned
55
+ * via the GetKey() method and immediately used for crypto operations.
56
+ *
57
+ * - **Validate inputs** - Always validate lookupValue parameters to prevent
58
+ * injection attacks against your backend.
59
+ *
60
+ * - **Use secure connections** - For network-based sources (vaults, KMS),
61
+ * always use TLS and verify certificates.
62
+ *
63
+ * - **Handle errors securely** - Don't expose internal details in error
64
+ * messages that could help attackers.
65
+ *
66
+ * ## Lifecycle
67
+ *
68
+ * 1. **Construction** - Provider is instantiated with config
69
+ * 2. **Initialize()** - Called once before first use (async setup)
70
+ * 3. **GetKey()/KeyExists()** - Called for each operation
71
+ * 4. **Dispose()** - Called during cleanup (close connections)
72
+ *
73
+ * @abstract
74
+ */
75
+ export declare abstract class EncryptionKeySourceBase {
76
+ /**
77
+ * Configuration passed during instantiation.
78
+ * Contains lookupValue and any source-specific additional config.
79
+ *
80
+ * @protected
81
+ */
82
+ protected _config: EncryptionKeySourceConfig;
83
+ /**
84
+ * Creates a new key source instance.
85
+ *
86
+ * Note: The config may be empty/undefined when using ClassFactory.
87
+ * Configuration is typically loaded from the database and passed
88
+ * when retrieving keys.
89
+ *
90
+ * @param config - Optional configuration for the key source
91
+ */
92
+ constructor(config?: EncryptionKeySourceConfig);
93
+ /**
94
+ * Human-readable name of this key source.
95
+ *
96
+ * Used for logging, error messages, and UI display.
97
+ * Should be concise but descriptive.
98
+ *
99
+ * @example 'Environment Variable', 'AWS KMS', 'HashiCorp Vault'
100
+ */
101
+ abstract get SourceName(): string;
102
+ /**
103
+ * Validates that the source is properly configured.
104
+ *
105
+ * Called before attempting key operations to fail fast on
106
+ * misconfiguration. Check for:
107
+ * - Required config values are present
108
+ * - Config values are in expected format
109
+ * - Connectivity to backend (for network sources)
110
+ *
111
+ * @returns `true` if configuration is valid, `false` otherwise
112
+ */
113
+ abstract ValidateConfiguration(): boolean;
114
+ /**
115
+ * Retrieves the raw key material for the given lookup value.
116
+ *
117
+ * ## Security Requirements
118
+ *
119
+ * - Return key bytes directly, don't cache them in the provider
120
+ * - Never log the key material
121
+ * - Throw descriptive errors on failure (without exposing secrets)
122
+ * - Validate lookupValue format before using it
123
+ *
124
+ * ## Key Format
125
+ *
126
+ * Keys should be base64-encoded in the source storage.
127
+ * The provider decodes and returns raw bytes.
128
+ *
129
+ * @param lookupValue - Identifier for the key in this source
130
+ * - Env vars: the variable name (e.g., 'MJ_ENCRYPTION_KEY_PII')
131
+ * - Config files: the key name (e.g., 'pii_master_key')
132
+ * - Vaults: the secret path (e.g., '/secrets/encryption/pii')
133
+ *
134
+ * @param keyVersion - Optional version for versioned key stores.
135
+ * Some sources (like vaults) maintain multiple versions.
136
+ * If not specified, returns the current/latest version.
137
+ *
138
+ * @returns Promise resolving to raw key bytes as a Buffer.
139
+ * The buffer length must match the algorithm's KeyLengthBits/8.
140
+ *
141
+ * @throws Error if the key cannot be retrieved with a descriptive message
142
+ *
143
+ * @example
144
+ * ```typescript
145
+ * // Simple retrieval
146
+ * const key = await source.GetKey('MJ_ENCRYPTION_KEY_PII');
147
+ *
148
+ * // With version for rotation
149
+ * const oldKey = await source.GetKey('MJ_ENCRYPTION_KEY_PII', '1');
150
+ * const newKey = await source.GetKey('MJ_ENCRYPTION_KEY_PII', '2');
151
+ * ```
152
+ */
153
+ abstract GetKey(lookupValue: string, keyVersion?: string): Promise<Buffer>;
154
+ /**
155
+ * Checks if a key exists without retrieving it.
156
+ *
157
+ * Used for validation before operations that would fail on missing keys.
158
+ * More efficient than GetKey() when you only need existence check.
159
+ *
160
+ * @param lookupValue - Identifier for the key in this source
161
+ * @returns Promise resolving to `true` if key exists, `false` otherwise
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * if (await source.KeyExists('NEW_ROTATION_KEY')) {
166
+ * // Safe to proceed with key rotation
167
+ * } else {
168
+ * throw new Error('New key must be set before rotation');
169
+ * }
170
+ * ```
171
+ */
172
+ abstract KeyExists(lookupValue: string): Promise<boolean>;
173
+ /**
174
+ * Optional async initialization for sources that need setup.
175
+ *
176
+ * Called once by the encryption engine before first use.
177
+ * Use this for:
178
+ * - Loading config files
179
+ * - Establishing connections to vault services
180
+ * - Authenticating with cloud key management
181
+ * - Caching frequently-accessed metadata
182
+ *
183
+ * The default implementation is a no-op for simple sources.
184
+ *
185
+ * @virtual Override in subclasses that need async initialization
186
+ */
187
+ Initialize(): Promise<void>;
188
+ /**
189
+ * Optional cleanup for sources with connections or resources.
190
+ *
191
+ * Called during graceful shutdown to release resources.
192
+ * Use this for:
193
+ * - Closing vault connections
194
+ * - Releasing pooled resources
195
+ * - Flushing any pending operations
196
+ *
197
+ * The default implementation is a no-op for stateless sources.
198
+ *
199
+ * @virtual Override in subclasses that hold resources
200
+ */
201
+ Dispose(): Promise<void>;
202
+ }
203
+ //# sourceMappingURL=EncryptionKeySourceBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncryptionKeySourceBase.d.ts","sourceRoot":"","sources":["../src/EncryptionKeySourceBase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,8BAAsB,uBAAuB;IACzC;;;;;OAKG;IACH,SAAS,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAE7C;;;;;;;;OAQG;gBACS,MAAM,CAAC,EAAE,yBAAyB;IAI9C;;;;;;;OAOG;IACH,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAC;IAElC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,qBAAqB,IAAI,OAAO;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAE1E;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAEzD;;;;;;;;;;;;;OAaG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC;;;;;;;;;;;;OAYG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAIjC"}
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ /**
3
+ * @fileoverview Abstract base class for encryption key source providers.
4
+ *
5
+ * This module defines the extensible provider pattern for retrieving encryption
6
+ * key material from various sources (environment variables, vault services,
7
+ * configuration files, etc.).
8
+ *
9
+ * ## Implementing a Custom Key Source
10
+ *
11
+ * To add a new key source:
12
+ *
13
+ * 1. Create a class extending `EncryptionKeySourceBase`
14
+ * 2. Decorate with `@RegisterClass(EncryptionKeySourceBase, 'YourSourceName')`
15
+ * 3. Implement all abstract methods
16
+ * 4. Register in the database `EncryptionKeySource` table
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { RegisterClass } from '@memberjunction/global';
21
+ * import { EncryptionKeySourceBase } from '@memberjunction/encryption';
22
+ *
23
+ * @RegisterClass(EncryptionKeySourceBase, 'CustomVaultKeySource')
24
+ * export class CustomVaultKeySource extends EncryptionKeySourceBase {
25
+ * get SourceName(): string { return 'Custom Vault'; }
26
+ *
27
+ * ValidateConfiguration(): boolean {
28
+ * return !!this._config.additionalConfig?.vaultUrl;
29
+ * }
30
+ *
31
+ * async GetKey(lookupValue: string): Promise<Buffer> {
32
+ * // Retrieve key from vault...
33
+ * }
34
+ *
35
+ * async KeyExists(lookupValue: string): Promise<boolean> {
36
+ * // Check if key exists in vault...
37
+ * }
38
+ * }
39
+ * ```
40
+ *
41
+ * @module @memberjunction/encryption
42
+ */
43
+ Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.EncryptionKeySourceBase = void 0;
45
+ /**
46
+ * Abstract base class for encryption key source providers.
47
+ *
48
+ * Key sources are responsible for securely retrieving encryption key material
49
+ * from various backends. The MemberJunction encryption system uses the
50
+ * ClassFactory pattern to instantiate the appropriate provider based on
51
+ * database configuration.
52
+ *
53
+ * ## Security Considerations
54
+ *
55
+ * - **Never log or expose key material** - Key bytes should only be returned
56
+ * via the GetKey() method and immediately used for crypto operations.
57
+ *
58
+ * - **Validate inputs** - Always validate lookupValue parameters to prevent
59
+ * injection attacks against your backend.
60
+ *
61
+ * - **Use secure connections** - For network-based sources (vaults, KMS),
62
+ * always use TLS and verify certificates.
63
+ *
64
+ * - **Handle errors securely** - Don't expose internal details in error
65
+ * messages that could help attackers.
66
+ *
67
+ * ## Lifecycle
68
+ *
69
+ * 1. **Construction** - Provider is instantiated with config
70
+ * 2. **Initialize()** - Called once before first use (async setup)
71
+ * 3. **GetKey()/KeyExists()** - Called for each operation
72
+ * 4. **Dispose()** - Called during cleanup (close connections)
73
+ *
74
+ * @abstract
75
+ */
76
+ class EncryptionKeySourceBase {
77
+ /**
78
+ * Configuration passed during instantiation.
79
+ * Contains lookupValue and any source-specific additional config.
80
+ *
81
+ * @protected
82
+ */
83
+ _config;
84
+ /**
85
+ * Creates a new key source instance.
86
+ *
87
+ * Note: The config may be empty/undefined when using ClassFactory.
88
+ * Configuration is typically loaded from the database and passed
89
+ * when retrieving keys.
90
+ *
91
+ * @param config - Optional configuration for the key source
92
+ */
93
+ constructor(config) {
94
+ this._config = config || {};
95
+ }
96
+ /**
97
+ * Optional async initialization for sources that need setup.
98
+ *
99
+ * Called once by the encryption engine before first use.
100
+ * Use this for:
101
+ * - Loading config files
102
+ * - Establishing connections to vault services
103
+ * - Authenticating with cloud key management
104
+ * - Caching frequently-accessed metadata
105
+ *
106
+ * The default implementation is a no-op for simple sources.
107
+ *
108
+ * @virtual Override in subclasses that need async initialization
109
+ */
110
+ async Initialize() {
111
+ // Default implementation - no initialization needed
112
+ // Subclasses can override for async setup
113
+ }
114
+ /**
115
+ * Optional cleanup for sources with connections or resources.
116
+ *
117
+ * Called during graceful shutdown to release resources.
118
+ * Use this for:
119
+ * - Closing vault connections
120
+ * - Releasing pooled resources
121
+ * - Flushing any pending operations
122
+ *
123
+ * The default implementation is a no-op for stateless sources.
124
+ *
125
+ * @virtual Override in subclasses that hold resources
126
+ */
127
+ async Dispose() {
128
+ // Default implementation - no cleanup needed
129
+ // Subclasses can override for resource cleanup
130
+ }
131
+ }
132
+ exports.EncryptionKeySourceBase = EncryptionKeySourceBase;
133
+ //# sourceMappingURL=EncryptionKeySourceBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncryptionKeySourceBase.js","sourceRoot":"","sources":["../src/EncryptionKeySourceBase.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;;;AAIH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAsB,uBAAuB;IACzC;;;;;OAKG;IACO,OAAO,CAA4B;IAE7C;;;;;;;;OAQG;IACH,YAAY,MAAkC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,EAAE,CAAC;IAChC,CAAC;IAsFD;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,UAAU;QACZ,oDAAoD;QACpD,0CAA0C;IAC9C,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,OAAO;QACT,6CAA6C;QAC7C,+CAA+C;IACnD,CAAC;CACJ;AA9ID,0DA8IC"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @fileoverview Action for enabling encryption on an existing entity field.
3
+ *
4
+ * When encryption is enabled on a field that already has data, this action:
5
+ * 1. Verifies the encryption key is valid and accessible
6
+ * 2. Loads existing records in batches
7
+ * 3. Encrypts all non-null values
8
+ * 4. Saves the encrypted values back to the database
9
+ *
10
+ * ## Usage
11
+ *
12
+ * This action is typically invoked after updating the EntityField metadata
13
+ * to enable encryption:
14
+ *
15
+ * ```typescript
16
+ * // First, update the EntityField to enable encryption
17
+ * entityField.Encrypt = true;
18
+ * entityField.EncryptionKeyID = 'key-uuid';
19
+ * await entityField.Save();
20
+ *
21
+ * // Then, encrypt existing data
22
+ * const result = await actionEngine.RunAction({
23
+ * ActionName: 'Enable Field Encryption',
24
+ * Params: [
25
+ * { Name: 'EntityFieldID', Value: entityField.ID },
26
+ * { Name: 'BatchSize', Value: 100 }
27
+ * ],
28
+ * ContextUser: currentUser
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Security Considerations
33
+ *
34
+ * - This is a one-way operation - plaintext is replaced with ciphertext
35
+ * - Ensure backups exist before running
36
+ * - Values that are already encrypted are skipped
37
+ * - Empty/null values are not encrypted
38
+ *
39
+ * @module @memberjunction/encryption
40
+ */
41
+ import { ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
42
+ /**
43
+ * Action for encrypting existing data when encryption is enabled on a field.
44
+ *
45
+ * This action handles the initial encryption of existing plaintext data
46
+ * after the Encrypt flag is set on an EntityField.
47
+ *
48
+ * ## Process
49
+ *
50
+ * 1. Loads the EntityField metadata to get encryption settings
51
+ * 2. Validates the encryption key is accessible
52
+ * 3. Queries for all records where the field is not null
53
+ * 4. For each record:
54
+ * - Skip if already encrypted
55
+ * - Encrypt the plaintext value
56
+ * - Save the encrypted value
57
+ * 5. Returns statistics on encrypted/skipped records
58
+ *
59
+ * ## Batch Processing
60
+ *
61
+ * Records are processed in configurable batches to manage memory
62
+ * and allow for progress tracking.
63
+ *
64
+ * @security This is a privileged operation that modifies data.
65
+ * Should be restricted to administrators.
66
+ */
67
+ export declare class EnableFieldEncryptionAction {
68
+ /**
69
+ * Executes the field encryption operation.
70
+ *
71
+ * @param params - Action parameters including EntityFieldID and optional BatchSize
72
+ * @returns Result with counts of encrypted and skipped records
73
+ */
74
+ Run(params: RunActionParams): Promise<ActionResultSimple>;
75
+ /**
76
+ * Performs the actual field encryption operation.
77
+ *
78
+ * @private
79
+ */
80
+ private enableFieldEncryption;
81
+ /**
82
+ * Helper to extract parameter value by name.
83
+ * @private
84
+ */
85
+ private getParamValue;
86
+ }
87
+ //# sourceMappingURL=EnableFieldEncryptionAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnableFieldEncryptionAction.d.ts","sourceRoot":"","sources":["../../src/actions/EnableFieldEncryptionAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAIH,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAe,MAAM,8BAA8B,CAAC;AAIhG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBACa,2BAA2B;IACpC;;;;;OAKG;IACU,GAAG,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0DtE;;;;OAIG;YACW,qBAAqB;IA6LnC;;;OAGG;IACH,OAAO,CAAC,aAAa;CAIxB"}