@aidc-toolkit/utility 1.0.24-beta → 1.0.26-beta

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 (72) hide show
  1. package/dist/character-set.d.ts +308 -0
  2. package/dist/character-set.d.ts.map +1 -0
  3. package/dist/character-set.js +564 -0
  4. package/dist/character-set.js.map +1 -0
  5. package/dist/exclusion.d.ts +26 -0
  6. package/dist/exclusion.d.ts.map +1 -0
  7. package/dist/exclusion.js +18 -0
  8. package/dist/exclusion.js.map +1 -0
  9. package/dist/index.d.ts +26 -947
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +8 -3504
  12. package/dist/index.js.map +1 -1
  13. package/dist/iterable-utility.d.ts +39 -0
  14. package/dist/iterable-utility.d.ts.map +1 -0
  15. package/dist/iterable-utility.js +35 -0
  16. package/dist/iterable-utility.js.map +1 -0
  17. package/dist/locale/en/locale-resources.d.ts +33 -0
  18. package/dist/locale/en/locale-resources.d.ts.map +1 -0
  19. package/dist/locale/en/locale-resources.js +32 -0
  20. package/dist/locale/en/locale-resources.js.map +1 -0
  21. package/dist/locale/fr/locale-resources.d.ts +33 -0
  22. package/dist/locale/fr/locale-resources.d.ts.map +1 -0
  23. package/dist/locale/fr/locale-resources.js +32 -0
  24. package/dist/locale/fr/locale-resources.js.map +1 -0
  25. package/dist/locale/i18n.d.ts +27 -0
  26. package/dist/locale/i18n.d.ts.map +1 -0
  27. package/dist/locale/i18n.js +34 -0
  28. package/dist/locale/i18n.js.map +1 -0
  29. package/dist/record.d.ts +44 -0
  30. package/dist/record.d.ts.map +1 -0
  31. package/dist/record.js +58 -0
  32. package/dist/record.js.map +1 -0
  33. package/dist/reg-exp.d.ts +43 -0
  34. package/dist/reg-exp.d.ts.map +1 -0
  35. package/dist/reg-exp.js +55 -0
  36. package/dist/reg-exp.js.map +1 -0
  37. package/dist/sequence.d.ts +68 -0
  38. package/dist/sequence.d.ts.map +1 -0
  39. package/dist/sequence.js +96 -0
  40. package/dist/sequence.js.map +1 -0
  41. package/dist/string.d.ts +25 -0
  42. package/dist/string.d.ts.map +1 -0
  43. package/dist/string.js +2 -0
  44. package/dist/string.js.map +1 -0
  45. package/dist/transformer.d.ts +347 -0
  46. package/dist/transformer.d.ts.map +1 -0
  47. package/dist/transformer.js +457 -0
  48. package/dist/transformer.js.map +1 -0
  49. package/package.json +11 -7
  50. package/src/character-set.ts +20 -19
  51. package/src/exclusion.ts +6 -1
  52. package/src/index.ts +9 -9
  53. package/src/locale/i18n.ts +3 -3
  54. package/src/locale/i18next.d.ts +1 -1
  55. package/src/record.ts +2 -2
  56. package/src/reg-exp.ts +7 -7
  57. package/src/string.ts +3 -3
  58. package/src/transformer.ts +19 -18
  59. package/test/character-set.test.ts +1 -1
  60. package/test/record.test.ts +4 -2
  61. package/test/reg-exp.test.ts +1 -1
  62. package/test/sequence.test.ts +1 -1
  63. package/test/setup.ts +1 -1
  64. package/test/transformer.test.ts +1 -1
  65. package/tsconfig-config.json +4 -0
  66. package/tsconfig-src.json +8 -0
  67. package/tsconfig-test.json +9 -0
  68. package/tsconfig.json +12 -1
  69. package/tsup.config.ts +3 -2
  70. package/dist/index.cjs +0 -3569
  71. package/dist/index.cjs.map +0 -1
  72. package/dist/index.d.cts +0 -947
@@ -0,0 +1,25 @@
1
+ /**
2
+ * String validation interface. To ensure signature compatibility in implementing classes, string validation is
3
+ * controlled by validation interfaces specific to each validator type.
4
+ */
5
+ export interface StringValidation {
6
+ }
7
+ /**
8
+ * String validator interface.
9
+ *
10
+ * @template TStringValidation
11
+ * String validation type.
12
+ */
13
+ export interface StringValidator<TStringValidation extends StringValidation = StringValidation> {
14
+ /**
15
+ * Validate a string and throw an error if validation fails.
16
+ *
17
+ * @param s
18
+ * String.
19
+ *
20
+ * @param validation
21
+ * String validation parameters.
22
+ */
23
+ validate: (s: string, validation?: TStringValidation) => void;
24
+ }
25
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../src/string.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;CAChC;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe,CAAC,iBAAiB,SAAS,gBAAgB,GAAG,gBAAgB;IAC1F;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACjE"}
package/dist/string.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../src/string.ts"],"names":[],"mappings":""}
@@ -0,0 +1,347 @@
1
+ import { type IndexedCallback } from "./iterable-utility.js";
2
+ /**
3
+ * Transformer primitive type.
4
+ */
5
+ export type TransformerPrimitive = string | number | bigint | boolean;
6
+ /**
7
+ * Transformer input type, one of:
8
+ *
9
+ * - TInput (primitive type)
10
+ * - Iterable\<TInput\>
11
+ *
12
+ * @template TInput
13
+ * Transformer input primitive type.
14
+ */
15
+ export type TransformerInput<TInput extends TransformerPrimitive> = TInput | Iterable<TInput>;
16
+ /**
17
+ * Transformer output, based on transformer input:
18
+ *
19
+ * - If type TTransformerInput is primitive, result is type TOutput.
20
+ * - If type TTransformerInput is Iterable, result is type Iterable\<TOutput\>.
21
+ *
22
+ * @template TTransformerInput
23
+ * Transformer input type.
24
+ *
25
+ * @template TOutput
26
+ * Output base type.
27
+ */
28
+ export type TransformerOutput<TTransformerInput extends TransformerInput<TransformerPrimitive>, TOutput> = TTransformerInput extends (TTransformerInput extends TransformerInput<infer TInput> ? TInput : never) ? TOutput : Iterable<TOutput>;
29
+ /**
30
+ * Transformer that transforms values in a numeric domain to values in a range equal to the domain or to another range
31
+ * defined by a callback function. In other words, the domain determines valid input values and, without a callback, the
32
+ * range of valid output values.
33
+ *
34
+ * The concept is similar to {@link https://en.wikipedia.org/wiki/Format-preserving_encryption | format-preserving
35
+ * encryption}, where input values within a specified domain (e.g., {@link
36
+ * https://en.wikipedia.org/wiki/Payment_card_number | payment card numbers} ranging from 8-19 digits) are transformed
37
+ * into values in the same domain, typically for storage in a database where the data type and length are already fixed
38
+ * and exfiltration of the data can have significant repercussions.
39
+ *
40
+ * Two subclasses are supported directly by this class: {@linkcode IdentityTransformer} (which operates based on a
41
+ * domain only) and {@linkcode EncryptionTransformer} (which operates based on a domain and a tweak). If an application
42
+ * is expected to make repeated use of a transformer with the same domain and (optional) tweak and can't manage the
43
+ * transformer object, an in-memory cache is available via the {@linkcode get | get()} method. Properties in {@linkcode
44
+ * IdentityTransformer} and {@linkcode EncryptionTransformer} are read-only once constructed, so there is no issue with
45
+ * their shared use.
46
+ */
47
+ export declare abstract class Transformer {
48
+ /**
49
+ * Transformers cache, mapping a domain to another map, which maps an optional tweak to a transformer.
50
+ */
51
+ private static readonly TRANSFORMER_MAPS_MAP;
52
+ /**
53
+ * Domain.
54
+ */
55
+ private readonly _domain;
56
+ /**
57
+ * Constructor.
58
+ *
59
+ * @param domain
60
+ * Domain.
61
+ */
62
+ constructor(domain: number | bigint);
63
+ /**
64
+ * Get a transformer, constructing it if necessary. The type returned is {@linkcode IdentityTransformer} if tweak is
65
+ * undefined, {@linkcode EncryptionTransformer} if tweak is defined. Note that although an {@linkcode
66
+ * EncryptionTransformer} with a zero tweak operates as an {@linkcode IdentityTransformer}, {@linkcode
67
+ * EncryptionTransformer} is still the type returned if a zero tweak is explicitly specified.
68
+ *
69
+ * @param domain
70
+ * Domain.
71
+ *
72
+ * @param tweak
73
+ * Tweak.
74
+ *
75
+ * @returns
76
+ * {@linkcode IdentityTransformer} if tweak is undefined, {@linkcode EncryptionTransformer} if tweak is defined.
77
+ */
78
+ static get(domain: number | bigint, tweak?: number | bigint): Transformer;
79
+ /**
80
+ * Get the domain.
81
+ */
82
+ get domain(): bigint;
83
+ /**
84
+ * Validate that a value is within the domain.
85
+ *
86
+ * @param value
87
+ * Value.
88
+ */
89
+ private validate;
90
+ /**
91
+ * Do the work of transforming a value forward.
92
+ *
93
+ * @param value
94
+ * Value.
95
+ *
96
+ * @returns
97
+ * Transformed value.
98
+ */
99
+ protected abstract doForward(value: bigint): bigint;
100
+ /**
101
+ * Validate that a value is within the domain and do the work of transforming it forward.
102
+ *
103
+ * @param value
104
+ * Value.
105
+ *
106
+ * @returns
107
+ * Transformed value.
108
+ */
109
+ private validateDoForward;
110
+ /**
111
+ * Validate that a value is within the domain, do the work of transforming it forward, and apply a callback.
112
+ *
113
+ * @param transformerCallback
114
+ * Called after each value is transformed to convert it to its final value.
115
+ *
116
+ * @param value
117
+ * Value.
118
+ *
119
+ * @param index
120
+ * Index in sequence (0 for single transformation).
121
+ *
122
+ * @returns
123
+ * Transformed value.
124
+ */
125
+ private validateDoForwardCallback;
126
+ /**
127
+ * Transform value(s) forward.
128
+ *
129
+ * @template TTransformerInput
130
+ * Value(s) input type.
131
+ *
132
+ * @param valueOrValues
133
+ * Value(s). If this is an instance of {@linkcode Sequence}, the minimum and maximum values are validated prior to
134
+ * transformation. Otherwise, the individual value(s) is/are validated at the time of transformation.
135
+ *
136
+ * @returns
137
+ * Transformed value(s).
138
+ */
139
+ forward<TTransformerInput extends TransformerInput<number | bigint>>(valueOrValues: TTransformerInput): TransformerOutput<TTransformerInput, bigint>;
140
+ /**
141
+ * Transform value(s) forward, optionally applying a transformation.
142
+ *
143
+ * @template TTransformerInput
144
+ * Value(s) input type.
145
+ *
146
+ * @template TOutput
147
+ * Transformation callback output type.
148
+ *
149
+ * @param valueOrValues
150
+ * Value(s). If this is an instance of {@linkcode Sequence}, the minimum and maximum values are validated prior to
151
+ * transformation. Otherwise, the individual value(s) is/are validated at the time of transformation.
152
+ *
153
+ * @param transformerCallback
154
+ * Called after each value is transformed to convert it to its final value.
155
+ *
156
+ * @returns
157
+ * Transformed value(s).
158
+ */
159
+ forward<TTransformerInput extends TransformerInput<number | bigint>, TOutput>(valueOrValues: TTransformerInput, transformerCallback: IndexedCallback<bigint, TOutput>): TransformerOutput<TTransformerInput, TOutput>;
160
+ /**
161
+ * Do the work of transforming a value in reverse.
162
+ *
163
+ * @param transformedValue
164
+ * Transformed value.
165
+ *
166
+ * @returns
167
+ * Value.
168
+ */
169
+ protected abstract doReverse(transformedValue: bigint): bigint;
170
+ /**
171
+ * Transform a value in reverse.
172
+ *
173
+ * @param transformedValue
174
+ * Transformed value.
175
+ *
176
+ * @returns
177
+ * Value.
178
+ */
179
+ reverse(transformedValue: number | bigint): bigint;
180
+ }
181
+ /**
182
+ * Identity transformer. Values are transformed to themselves.
183
+ */
184
+ export declare class IdentityTransformer extends Transformer {
185
+ /**
186
+ * @inheritDoc
187
+ */
188
+ protected doForward(value: bigint): bigint;
189
+ /**
190
+ * @inheritDoc
191
+ */
192
+ protected doReverse(transformedValue: bigint): bigint;
193
+ }
194
+ /**
195
+ * Encryption transformer. Values are transformed using repeated shuffle and xor operations, similar to those found in
196
+ * many cryptography algorithms, particularly AES. While sufficient for obfuscation of numeric sequences (e.g., serial
197
+ * number generation, below), if true format-preserving encryption is required, a more robust algorithm such as {@link
198
+ * https://doi.org/10.6028/NIST.SP.800-38Gr1.2pd | FF1} is recommended. Furthermore, no work has been done to mitigate
199
+ * {@link https://timing.attacks.cr.yp.to/index.html | timing attacks} for key detection.
200
+ *
201
+ * The purpose of the encryption transformer is to generate pseudo-random values in a deterministic manner to obscure
202
+ * the sequence of values generated over time. A typical example is for serial number generation, where knowledge of the
203
+ * sequence can infer production volumes (e.g., serial number 1000 implies that at least 1,000 units have been
204
+ * manufactured) or can be used in counterfeiting (e.g., a counterfeiter can generate serial numbers 1001, 1002, ...
205
+ * with reasonable confidence that they would be valid if queried).
206
+ *
207
+ * The domain and the tweak together determine the encryption key, which in turn determines the number of rounds of
208
+ * shuffle and xor operations. The minimum number of rounds is 4, except where the domain is less than or equal to 256,
209
+ * which results in single-byte operations. To ensure that the operations are effective for single-byte domains, the
210
+ * number of rounds is 1 and only the xor operation is applied (shuffling a single byte is an identity operation).
211
+ *
212
+ * Another exception is when there is a tweak value of 0; this results in identity operations where the output value is
213
+ * identical to the input value, as no shuffle or xor takes place.
214
+ */
215
+ export declare class EncryptionTransformer extends Transformer {
216
+ /**
217
+ * Individual bits, pre-calculated for performance.
218
+ */
219
+ private static readonly BITS;
220
+ /**
221
+ * Inverse individual bits, pre-calculated for performance.
222
+ */
223
+ private static readonly INVERSE_BITS;
224
+ /**
225
+ * Number of bytes covered by the domain.
226
+ */
227
+ private readonly _domainBytes;
228
+ /**
229
+ * Xor bytes array generated from the domain and tweak.
230
+ */
231
+ private readonly _xorBytes;
232
+ /**
233
+ * Bits array generated from the domain and tweak.
234
+ */
235
+ private readonly _bits;
236
+ /**
237
+ * Inverse bits array generated from the domain and tweak.
238
+ */
239
+ private readonly _inverseBits;
240
+ /**
241
+ * Number of rounds (length of arrays) generated from the domain and tweak.
242
+ */
243
+ private readonly _rounds;
244
+ /**
245
+ * Constructor.
246
+ *
247
+ * @param domain
248
+ * Domain.
249
+ *
250
+ * @param tweak
251
+ * Tweak.
252
+ */
253
+ constructor(domain: number | bigint, tweak: number | bigint);
254
+ /**
255
+ * Convert a value to a byte array big enough to handle the entire domain.
256
+ *
257
+ * @param value
258
+ * Value.
259
+ *
260
+ * @returns
261
+ * Big-endian byte array equivalent to the value.
262
+ */
263
+ private valueToBytes;
264
+ /**
265
+ * Convert a byte array to a value.
266
+ *
267
+ * @param bytes
268
+ * Big-endian byte array equivalent to the value.
269
+ *
270
+ * @returns
271
+ * Value.
272
+ */
273
+ private static bytesToValue;
274
+ /**
275
+ * Shuffle a byte array.
276
+ *
277
+ * The input array to the forward operation (output from the reverse operation) is `bytes` and the output array from
278
+ * the forward operation (input to the reverse operation) is `bytes'`.
279
+ *
280
+ * The shuffle operation starts by testing the bit at `bits[round]` for each `byte` in `bytes`. The indexes for all
281
+ * bytes with that bit set are put into one array (`shuffleIndexes1`) and the rest are put into another
282
+ * (`shuffleIndexes0`). The two arrays are concatenated and used to shuffle the input array, using their values
283
+ * (`shuffleIndex`) and the indexes of those values (`index`) in the concatenated array.
284
+ *
285
+ * Forward shuffling moves the entry at `shuffleIndex` to the `index` position.
286
+ *
287
+ * Reverse shuffling moves the entry at `index` to the `shuffleIndex` position.
288
+ *
289
+ * As each byte is moved, the bit at `bits[round]` is preserved in its original position. This ensures that the
290
+ * process is reversible.
291
+ *
292
+ * @param bytes
293
+ * Byte array.
294
+ *
295
+ * @param round
296
+ * Round number.
297
+ *
298
+ * @param forward
299
+ * True if operating forward (encrypting), false if operating in reverse (decrypting).
300
+ *
301
+ * @returns
302
+ * Shuffled byte array.
303
+ */
304
+ private shuffle;
305
+ /**
306
+ * Xor a byte array.
307
+ *
308
+ * The input array to the forward operation (output from the reverse operation) is `bytes` and the output array from
309
+ * the forward operation (input to the reverse operation) is `bytes'`.
310
+ *
311
+ * Forward:
312
+ * - `bytes'[0] = bytes[0] ^ xorBytes[round]`
313
+ * - `bytes'[1] = bytes[1] ^ bytes'[0]`
314
+ * - `bytes'[2] = bytes[2] ^ bytes'[1]`
315
+ * - `...`
316
+ * - `bytes'[domainBytes - 1] = bytes[domainBytes - 1] ^ bytes'[domainBytes - 2]`
317
+ *
318
+ * Reverse:
319
+ * - `bytes[0] = bytes'[0] ^ xorBytes[round]`
320
+ * - `bytes[1] = bytes'[1] ^ bytes'[0]`
321
+ * - `bytes[2] = bytes'[2] ^ bytes'[1]`
322
+ * - `...`
323
+ * - `bytes[domainBytes - 1] = bytes'[domainBytes - 1] ^ bytes'[domainBytes - 2]`
324
+ *
325
+ * @param bytes
326
+ * Byte array.
327
+ *
328
+ * @param round
329
+ * Round number.
330
+ *
331
+ * @param forward
332
+ * True if operating forward (encrypting), false if operating in reverse (decrypting).
333
+ *
334
+ * @returns
335
+ * Xored byte array.
336
+ */
337
+ private xor;
338
+ /**
339
+ * @inheritDoc
340
+ */
341
+ protected doForward(value: bigint): bigint;
342
+ /**
343
+ * @inheritDoc
344
+ */
345
+ protected doReverse(transformedValue: bigint): bigint;
346
+ }
347
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,uBAAuB,CAAC;AAI1E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtE;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,oBAAoB,IAAI,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAE9F;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,iBAAiB,CAAC,iBAAiB,SAAS,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,OAAO,IAAI,iBAAiB,SAAS,CAAC,iBAAiB,SAAS,gBAAgB,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AAE/O;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,WAAW;IAC7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAA2D;IAEvG;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAEjC;;;;;OAKG;gBACS,MAAM,EAAE,MAAM,GAAG,MAAM;IAUnC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW;IAsBzE;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAehB;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,K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