@effect-dynamodb/schema 1.38.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Aggregate.d.ts +11 -4
- package/dist/Aggregate.d.ts.map +1 -1
- package/dist/Aggregate.js +21 -2
- package/dist/Aggregate.js.map +1 -1
- package/dist/DynamoModel.d.ts +13 -0
- package/dist/DynamoModel.d.ts.map +1 -1
- package/dist/DynamoModel.js.map +1 -1
- package/dist/DynamoSchema.d.ts +33 -17
- package/dist/DynamoSchema.d.ts.map +1 -1
- package/dist/DynamoSchema.js +19 -13
- package/dist/DynamoSchema.js.map +1 -1
- package/dist/Entity.d.ts +121 -18
- package/dist/Entity.d.ts.map +1 -1
- package/dist/Entity.js +238 -2
- package/dist/Entity.js.map +1 -1
- package/dist/Errors.d.ts +0 -27
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +0 -24
- package/dist/Errors.js.map +1 -1
- package/dist/KeyComposer.d.ts +368 -14
- package/dist/KeyComposer.d.ts.map +1 -1
- package/dist/KeyComposer.js +835 -87
- package/dist/KeyComposer.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/AggregateEdges.d.ts +3 -3
- package/dist/internal/AggregateSchemas.d.ts +181 -14
- package/dist/internal/AggregateSchemas.d.ts.map +1 -1
- package/dist/internal/AggregateSchemas.js +505 -45
- package/dist/internal/AggregateSchemas.js.map +1 -1
- package/dist/internal/AggregateTypes.d.ts +396 -36
- package/dist/internal/AggregateTypes.d.ts.map +1 -1
- package/dist/internal/CompositeCodec.d.ts +274 -6
- package/dist/internal/CompositeCodec.d.ts.map +1 -1
- package/dist/internal/CompositeCodec.js +829 -25
- package/dist/internal/CompositeCodec.js.map +1 -1
- package/dist/internal/EffectInstances.d.ts +81 -0
- package/dist/internal/EffectInstances.d.ts.map +1 -0
- package/dist/internal/EffectInstances.js +656 -0
- package/dist/internal/EffectInstances.js.map +1 -0
- package/dist/internal/EntitySchemas.d.ts +103 -27
- package/dist/internal/EntitySchemas.d.ts.map +1 -1
- package/dist/internal/EntitySchemas.js +778 -131
- package/dist/internal/EntitySchemas.js.map +1 -1
- package/dist/internal/EntityTypes.d.ts +67 -11
- package/dist/internal/EntityTypes.d.ts.map +1 -1
- package/dist/internal/FailingAsBefore.d.ts +25 -0
- package/dist/internal/FailingAsBefore.d.ts.map +1 -0
- package/dist/internal/FailingAsBefore.js +42 -0
- package/dist/internal/FailingAsBefore.js.map +1 -0
- package/dist/internal/InstanceReads.d.ts +33 -0
- package/dist/internal/InstanceReads.d.ts.map +1 -0
- package/dist/internal/InstanceReads.js +165 -0
- package/dist/internal/InstanceReads.js.map +1 -0
- package/dist/internal/KeyText136.d.ts +58 -131
- package/dist/internal/KeyText136.d.ts.map +1 -1
- package/dist/internal/KeyText136.js +154 -264
- package/dist/internal/KeyText136.js.map +1 -1
- package/dist/internal/NumericKey.d.ts +29 -2
- package/dist/internal/NumericKey.d.ts.map +1 -1
- package/dist/internal/NumericKey.js +64 -1
- package/dist/internal/NumericKey.js.map +1 -1
- package/dist/internal/PackedCodec.d.ts +8 -1
- package/dist/internal/PackedCodec.d.ts.map +1 -1
- package/dist/internal/PackedCodec.js +49 -13
- package/dist/internal/PackedCodec.js.map +1 -1
- package/dist/internal/SchemaAccessors.d.ts +160 -1
- package/dist/internal/SchemaAccessors.d.ts.map +1 -1
- package/dist/internal/SchemaAccessors.js +994 -1
- package/dist/internal/SchemaAccessors.js.map +1 -1
- package/dist/internal/Shards.d.ts +47 -0
- package/dist/internal/Shards.d.ts.map +1 -0
- package/dist/internal/Shards.js +60 -0
- package/dist/internal/Shards.js.map +1 -0
- package/dist/internal/SharedKeyAttribute.d.ts +102 -0
- package/dist/internal/SharedKeyAttribute.d.ts.map +1 -0
- package/dist/internal/SharedKeyAttribute.js +288 -0
- package/dist/internal/SharedKeyAttribute.js.map +1 -0
- package/dist/internal/SparseKey.d.ts +46 -0
- package/dist/internal/SparseKey.d.ts.map +1 -0
- package/dist/internal/SparseKey.js +69 -0
- package/dist/internal/SparseKey.js.map +1 -0
- package/package.json +2 -1
package/dist/KeyComposer.d.ts
CHANGED
|
@@ -93,8 +93,9 @@ export type KeyValue = string | Uint8Array;
|
|
|
93
93
|
* - `"preserve"` — noop (leave the stored key for this half untouched). The
|
|
94
94
|
* stored value may go stale until either (a) the next write that touches
|
|
95
95
|
* this half supplies enough composites to recompose, or (b) a composite of
|
|
96
|
-
* this half is named in `Entity.remove([...])`
|
|
97
|
-
*
|
|
96
|
+
* this half is named in `Entity.remove([...])` (`.set({ f: undefined })`
|
|
97
|
+
* reaches this composer as the same thing) — the cascade override then
|
|
98
|
+
* REMOVEs this half's key.
|
|
98
99
|
*
|
|
99
100
|
* Halves not declared in `indexPolicy` default to `"preserve"`. See
|
|
100
101
|
* `DESIGN.md §7 Policy-Aware GSI Composition` for the full decision rules
|
|
@@ -116,6 +117,36 @@ export interface IndexPolicy {
|
|
|
116
117
|
readonly pk?: IndexPolicyKey;
|
|
117
118
|
readonly sk?: IndexPolicyKey;
|
|
118
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Write sharding as declared on a secondary index (#183): one logical partition
|
|
122
|
+
* spread over `count` physical ones.
|
|
123
|
+
*/
|
|
124
|
+
export interface ShardsConfig<F extends string = string> {
|
|
125
|
+
/** How many physical partitions. An integer from 2 to 256. */
|
|
126
|
+
readonly count: number;
|
|
127
|
+
/**
|
|
128
|
+
* The attributes to hash instead of the item's primary key: sort key
|
|
129
|
+
* composites of this index. A query pinning all of them reads one shard. A
|
|
130
|
+
* value that dominates a logical partition brings its hot key back.
|
|
131
|
+
*/
|
|
132
|
+
readonly by?: ReadonlyArray<F>;
|
|
133
|
+
/**
|
|
134
|
+
* Migration only: also read the old layout, `1` for the unsharded key or the
|
|
135
|
+
* old `count`. Deploy with it, run `rekey`, then remove it.
|
|
136
|
+
*/
|
|
137
|
+
readonly previous?: number;
|
|
138
|
+
}
|
|
139
|
+
/** A normalised {@link ShardsConfig}. Built only by {@link normalizeGsiConfig}. */
|
|
140
|
+
export interface IndexShards {
|
|
141
|
+
readonly count: number;
|
|
142
|
+
readonly by: ReadonlyArray<string> | undefined;
|
|
143
|
+
readonly previous: number | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* The attributes hashed: `by`, or the primary key composites. `undefined`
|
|
146
|
+
* until `Entity.make` binds it; such an index can't compose a key.
|
|
147
|
+
*/
|
|
148
|
+
readonly source: ReadonlyArray<string> | undefined;
|
|
149
|
+
}
|
|
119
150
|
/** Index definition for primary or secondary index (internal format) */
|
|
120
151
|
export interface IndexDefinition {
|
|
121
152
|
readonly index?: string | undefined;
|
|
@@ -131,6 +162,8 @@ export interface IndexDefinition {
|
|
|
131
162
|
* missing.
|
|
132
163
|
*/
|
|
133
164
|
readonly indexPolicy?: IndexPolicy;
|
|
165
|
+
/** Write sharding (#183). Secondary indexes only. */
|
|
166
|
+
readonly shards?: IndexShards;
|
|
134
167
|
}
|
|
135
168
|
/** GSI definition as specified on Entity.make() indexes config.
|
|
136
169
|
* Mirrors the primaryKey structure with an added `name` for the physical GSI.
|
|
@@ -163,6 +196,13 @@ export interface GsiConfig<TFields = globalThis.Record<string, unknown>> {
|
|
|
163
196
|
* applied on `put()`. See `DESIGN.md §7 Policy-Aware GSI Composition`.
|
|
164
197
|
*/
|
|
165
198
|
readonly indexPolicy?: IndexPolicy;
|
|
199
|
+
/**
|
|
200
|
+
* Spread each logical partition over several physical ones, for a key too hot
|
|
201
|
+
* for one partition's write limit. `20` is short for `{ count: 20 }`. Writes
|
|
202
|
+
* hash the shard source; a query reads every shard and merges them, so callers
|
|
203
|
+
* don't change.
|
|
204
|
+
*/
|
|
205
|
+
readonly shards?: number | ShardsConfig<keyof TFields & string>;
|
|
166
206
|
}
|
|
167
207
|
/** The casing an index's keys are composed with: its own, else the schema's. */
|
|
168
208
|
export declare const effectiveCasing: (schema: DynamoSchema.DynamoSchema, index: IndexDefinition) => DynamoSchema.Casing;
|
|
@@ -176,6 +216,16 @@ export declare const assertCollectionCasingAgreement: (collectionName: string, m
|
|
|
176
216
|
readonly schema: DynamoSchema.DynamoSchema;
|
|
177
217
|
readonly index: IndexDefinition;
|
|
178
218
|
}>) => void;
|
|
219
|
+
/**
|
|
220
|
+
* Fail when a collection's members would read different partitions (#183). They
|
|
221
|
+
* share one physical index and one logical key, so they must agree on how many
|
|
222
|
+
* partitions it is spread over and on the layout being migrated from. `by` may
|
|
223
|
+
* differ: each member hashes its own source, into the same partitions.
|
|
224
|
+
*/
|
|
225
|
+
export declare const assertCollectionShardsAgreement: (collectionName: string, members: ReadonlyArray<{
|
|
226
|
+
readonly key: string;
|
|
227
|
+
readonly index: IndexDefinition;
|
|
228
|
+
}>) => void;
|
|
179
229
|
/** Normalize a GsiConfig (entity input) to an IndexDefinition (internal format). */
|
|
180
230
|
export declare const normalizeGsiConfig: (config: GsiConfig) => IndexDefinition;
|
|
181
231
|
/**
|
|
@@ -192,7 +242,8 @@ export declare const extractComposites: (composite: ReadonlyArray<string>, recor
|
|
|
192
242
|
*/
|
|
193
243
|
export declare const tryExtractComposites: (composite: ReadonlyArray<string>, record: Record<string, unknown>) => ReadonlyArray<string> | undefined;
|
|
194
244
|
/**
|
|
195
|
-
* Serialize a value for
|
|
245
|
+
* Serialize a value for a composite key under `escapeKeys: true`. {@link compositeText} is the
|
|
246
|
+
* text under a schema's setting.
|
|
196
247
|
*
|
|
197
248
|
* Numeric values are encoded so their key text sorts in numeric order
|
|
198
249
|
* (`internal/NumericKey.ts` has the format):
|
|
@@ -211,12 +262,30 @@ export declare const tryExtractComposites: (composite: ReadonlyArray<string>, re
|
|
|
211
262
|
*/
|
|
212
263
|
export declare const serializeValue: (value: unknown) => string;
|
|
213
264
|
/**
|
|
214
|
-
* A composite value's
|
|
265
|
+
* A composite value's text with `escapeKeys` off, the text 1.36 composed: a number zero-padded to
|
|
266
|
+
* 16 characters and a bigint to 38 (`String(n)` padded, so `-3` is `00000000000000-3` and `2.5` is
|
|
267
|
+
* `00000000000002.5`). Never throws: `NaN` is `0000000000000NaN`.
|
|
268
|
+
*/
|
|
269
|
+
export declare const serializeValue136: (value: unknown) => string;
|
|
270
|
+
/**
|
|
271
|
+
* A composite value's serialized text under the schema's setting, before casing and escaping. A
|
|
272
|
+
* `number`'s `NaN` has no place in key order under any setting, and no stored form: `[EDD-9096]`.
|
|
273
|
+
* With `escapeKeys` off every other value keeps the text 1.36 gave it. That includes the `NaN` of a
|
|
274
|
+
* number its field stores as a string (`NumericKey.STORED_NAN`, which the composite key form hands
|
|
275
|
+
* on for a `Schema.NumberFromString`): a row holds it under `0000000000000NaN`, as 1.39.0 wrote
|
|
276
|
+
* it, and is read, updated and deleted by that key. With `escapeKeys` on it's refused like any
|
|
277
|
+
* `NaN`. {@link DynamoSchema.DynamoSchema.text136} composes 1.36's text for a `number`'s `NaN` too,
|
|
278
|
+
* for `rekey` to find a row stored under it.
|
|
279
|
+
*/
|
|
280
|
+
export declare const compositeText: (schema: DynamoSchema.DynamoSchema, value: unknown) => string;
|
|
281
|
+
/**
|
|
282
|
+
* A composite value's serialized text as a key holds it (#171, #183): cased,
|
|
215
283
|
* then each code point U+0000–U+0025 — control characters, space, `!`, `"`,
|
|
216
284
|
* `#`, `$` and `%` — escaped as `%` and two hex digits (space → `%20`, `#` →
|
|
217
285
|
* `%23`, `%` → `%25`), the hex digits in upper case, or lower case under
|
|
218
286
|
* `"lowercase"` casing. Any other text is unchanged, so a value without such a
|
|
219
|
-
* character keeps its 1.36 key text.
|
|
287
|
+
* character keeps its 1.36 key text. The same rule holds in a partition key and
|
|
288
|
+
* a sort key, so the two build identical text from identical values.
|
|
220
289
|
*
|
|
221
290
|
* Every escaped value sorts as its cased value and starts with its cased
|
|
222
291
|
* prefixes' text: an unescaped character sorts above `%`, and an escape starts
|
|
@@ -228,9 +297,30 @@ export declare const serializeValue: (value: unknown) => string;
|
|
|
228
297
|
* Casing comes first so the hex digits are the only text it can't reach: the
|
|
229
298
|
* composer cases the key again, which leaves cased text as it is.
|
|
230
299
|
*/
|
|
300
|
+
export declare const escapeKeyText: (text: string, casing: DynamoSchema.Casing) => string;
|
|
301
|
+
/** The text {@link escapeKeyText} escaped back, cased: for `rekey`, reading a value out of a key. */
|
|
302
|
+
export declare const unescapeKeyText: (text: string) => string;
|
|
303
|
+
/**
|
|
304
|
+
* @deprecated since 1.39.0: escaping is `escapeKeys: true`'s, in every key. Use {@link keyText},
|
|
305
|
+
* which follows the setting, or {@link escapeKeyText}, the same function under its new name.
|
|
306
|
+
*/
|
|
231
307
|
export declare const sortKeyText: (text: string, casing: DynamoSchema.Casing) => string;
|
|
232
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* @deprecated since 1.39.0: escaping is `escapeKeys: true`'s, in every key. Use
|
|
310
|
+
* {@link keyValueText}, which follows the setting.
|
|
311
|
+
*/
|
|
233
312
|
export declare const serializeSortKeyValue: (value: unknown, casing: DynamoSchema.Casing) => string;
|
|
313
|
+
/**
|
|
314
|
+
* A composite's serialized text in a key: cased, and with `escapeKeys: true`
|
|
315
|
+
* {@link escapeKeyText}. Every key composite passes through here, in every key.
|
|
316
|
+
*/
|
|
317
|
+
export declare const keyText: (schema: DynamoSchema.DynamoSchema, text: string, casing: DynamoSchema.Casing) => string;
|
|
318
|
+
/** A composite value's text in a key: {@link compositeText}, then {@link keyText}. */
|
|
319
|
+
export declare const keyValueText: (schema: DynamoSchema.DynamoSchema, value: unknown, casing: DynamoSchema.Casing) => string;
|
|
320
|
+
/** {@link extractComposites} under the schema's setting, each value's {@link keyValueText}. */
|
|
321
|
+
export declare const extractKeyComposites: (schema: DynamoSchema.DynamoSchema, index: {
|
|
322
|
+
readonly casing?: DynamoSchema.Casing | undefined;
|
|
323
|
+
}, composite: ReadonlyArray<string>, record: Record<string, unknown>) => ReadonlyArray<string>;
|
|
234
324
|
/**
|
|
235
325
|
* Compose a partition key for an entity index.
|
|
236
326
|
*
|
|
@@ -238,6 +328,69 @@ export declare const serializeSortKeyValue: (value: unknown, casing: DynamoSchem
|
|
|
238
328
|
* For collection indexes: `$schema#v<version>#collectionName#attr1#attr2`
|
|
239
329
|
*/
|
|
240
330
|
export declare const composePk: (schema: DynamoSchema.DynamoSchema, entityType: string, index: IndexDefinition, record: Record<string, unknown>) => string;
|
|
331
|
+
/**
|
|
332
|
+
* `index` as its unsharded layout: what a `previous: 1` migration reads, and the
|
|
333
|
+
* only layout rows under another setting's key text can be in. Reads only.
|
|
334
|
+
*/
|
|
335
|
+
export declare const unshardedView: (index: IndexDefinition) => IndexDefinition;
|
|
336
|
+
/**
|
|
337
|
+
* The partition key a stored row's values compose now, for `rekey` (#183): by the
|
|
338
|
+
* structural rule an update composes with, truncated included. `undefined` when
|
|
339
|
+
* they can't compose one: a hole, no leading composite, or the source missing.
|
|
340
|
+
*/
|
|
341
|
+
export declare const composeStoredPk: (schema: DynamoSchema.DynamoSchema, entityType: string, index: IndexDefinition, record: Record<string, unknown>) => string | undefined;
|
|
342
|
+
/**
|
|
343
|
+
* The index key a row's values compose now, truncating a half whose trailing
|
|
344
|
+
* composites are absent as the structural rule does (`DESIGN.md §7`). `undefined`
|
|
345
|
+
* when a half can't compose (a hole, or no leading value) or the sort key is a
|
|
346
|
+
* binary Z-order address.
|
|
347
|
+
*/
|
|
348
|
+
export declare const tryComposeStructuralKeys: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>) => {
|
|
349
|
+
readonly pk: string;
|
|
350
|
+
readonly sk: string;
|
|
351
|
+
} | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* Does stored partition key text lie in `index`'s current layout (#183): shard
|
|
354
|
+
* marker with this count, whatever shard? A row whose values can't compose its key
|
|
355
|
+
* can only be left alone when this holds.
|
|
356
|
+
*/
|
|
357
|
+
export declare const isCurrentShardLayout: (schema: DynamoSchema.DynamoSchema, entityType: string, index: IndexDefinition, stored: string) => boolean;
|
|
358
|
+
/**
|
|
359
|
+
* What a query of an index reads (#183): the partition key text of each physical
|
|
360
|
+
* partition, and on a sharded index, what the fan-out needs to know.
|
|
361
|
+
*/
|
|
362
|
+
export interface ReadPartitions {
|
|
363
|
+
/** The one partition of an unsharded index; else the current shards, then `previous`'s. */
|
|
364
|
+
readonly partitions: ReadonlyArray<string>;
|
|
365
|
+
readonly fanOut: ReadFanOut | undefined;
|
|
366
|
+
}
|
|
367
|
+
/** The layout a sharded query reads: what its cursor's fingerprint covers. */
|
|
368
|
+
export interface ReadFanOut {
|
|
369
|
+
readonly count: number;
|
|
370
|
+
readonly source: ReadonlyArray<string>;
|
|
371
|
+
readonly previous: number | undefined;
|
|
372
|
+
/** Every attribute of the shard source was pinned, so one current shard is read. */
|
|
373
|
+
readonly pruned: boolean;
|
|
374
|
+
/**
|
|
375
|
+
* When pruned, what the query would read without those pins: a condition that
|
|
376
|
+
* replaces them (`Query.where`) has to read it, since a row it selects can be in
|
|
377
|
+
* any shard.
|
|
378
|
+
*/
|
|
379
|
+
readonly everyPartition: ReadonlyArray<string> | undefined;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* The partitions a query of `index` reads for the pinned composites in `record`,
|
|
383
|
+
* in merge order: the current layout's by shard number (one, when every attribute
|
|
384
|
+
* of the shard source is pinned, whether that source is `by` or the primary key),
|
|
385
|
+
* then the `previous` layout's, which are never pruned: the old source isn't
|
|
386
|
+
* recorded. Every read path uses this; {@link composePk} composes the one key a
|
|
387
|
+
* write stores.
|
|
388
|
+
*/
|
|
389
|
+
export declare const composeReadPartitions: (schema: DynamoSchema.DynamoSchema, entityType: string, index: IndexDefinition, record: Record<string, unknown>,
|
|
390
|
+
/** `false`: read every shard, whatever is pinned (a collection's members may differ). */
|
|
391
|
+
options?: {
|
|
392
|
+
readonly prune?: boolean;
|
|
393
|
+
}) => ReadPartitions;
|
|
241
394
|
/**
|
|
242
395
|
* Compose a sort key for an entity index.
|
|
243
396
|
*
|
|
@@ -285,6 +438,12 @@ export declare const composeIndexKeys: (schema: DynamoSchema.DynamoSchema, entit
|
|
|
285
438
|
* as text first — a Z-order half's `composite` lists its dimension fields.
|
|
286
439
|
*/
|
|
287
440
|
export declare const tryComposeIndexKeys: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>) => Record<string, KeyValue> | undefined;
|
|
441
|
+
/**
|
|
442
|
+
* The halves of a secondary index `record` holds every value of, for a write that leaves what it
|
|
443
|
+
* doesn't name as it's stored (an upsert). A half missing a value is left out, never truncated; a
|
|
444
|
+
* sharded index's partition half also needs what it hashes.
|
|
445
|
+
*/
|
|
446
|
+
export declare const composeKnownHalves: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>) => Record<string, KeyValue>;
|
|
288
447
|
/**
|
|
289
448
|
* Compose keys for all indexes of an entity.
|
|
290
449
|
* Returns a flat record of all key field -> value mappings.
|
|
@@ -317,6 +476,78 @@ export interface GsiUpdateResult {
|
|
|
317
476
|
* See `DESIGN.md §7 Policy-Aware GSI Composition`.
|
|
318
477
|
*/
|
|
319
478
|
export declare const composeSkPrefixUpTo: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>, stopBefore: number) => string;
|
|
479
|
+
/**
|
|
480
|
+
* How a stored index key differs from what its row's values compose (`rekey-repair.md`):
|
|
481
|
+
*
|
|
482
|
+
* - `missing` — every composite is on the row, and no key.
|
|
483
|
+
* - `truncated` — every composite is on the row, and the key stops at a leading run of them.
|
|
484
|
+
* - `lagging` — the key holds anything else: other values, or values the row no longer has.
|
|
485
|
+
*/
|
|
486
|
+
export type IndexKeyDrift = "missing" | "truncated" | "lagging";
|
|
487
|
+
/**
|
|
488
|
+
* What {@link judgeIndexHalf} says of one half of a stored row:
|
|
489
|
+
*
|
|
490
|
+
* - `fine` — nothing to do, or nothing can be said.
|
|
491
|
+
* - `ambiguous` — a `sparse` half with no key and two or more composites outside the primary key
|
|
492
|
+
* on the row. A writer naming only a later composite drops the row on purpose (`DESIGN.md` §7),
|
|
493
|
+
* and that leaves exactly these bytes, so it can't be told from damage. Reported, never written.
|
|
494
|
+
* - `set` — the key to write. `remove` — a `sparse` half whose values compose no key, holding one.
|
|
495
|
+
*/
|
|
496
|
+
export type IndexKeyVerdict = {
|
|
497
|
+
readonly kind: "fine";
|
|
498
|
+
} | {
|
|
499
|
+
readonly kind: "ambiguous";
|
|
500
|
+
} | {
|
|
501
|
+
readonly kind: "set";
|
|
502
|
+
readonly drift: IndexKeyDrift;
|
|
503
|
+
readonly value: KeyValue;
|
|
504
|
+
} | {
|
|
505
|
+
readonly kind: "remove";
|
|
506
|
+
};
|
|
507
|
+
/** What judging a row's index keys needs of its entity. */
|
|
508
|
+
export interface IndexKeyJudging {
|
|
509
|
+
readonly schema: DynamoSchema.DynamoSchema;
|
|
510
|
+
readonly entityType: string;
|
|
511
|
+
readonly entityVersion: number;
|
|
512
|
+
/** Every text a key can be under, for telling a truncated key from any other. */
|
|
513
|
+
readonly forms: ReadonlyArray<{
|
|
514
|
+
readonly pk: DynamoSchema.DynamoSchema;
|
|
515
|
+
readonly sk: DynamoSchema.DynamoSchema;
|
|
516
|
+
}>;
|
|
517
|
+
/** The primary key's composites. */
|
|
518
|
+
readonly primaryComposites: ReadonlySet<string>;
|
|
519
|
+
/**
|
|
520
|
+
* Composites the library writes itself (`createdAt`, `updatedAt`, `version`). No writer leaves one
|
|
521
|
+
* out, so none makes a half with no key ambiguous.
|
|
522
|
+
*/
|
|
523
|
+
readonly stamped: ReadonlySet<string>;
|
|
524
|
+
/**
|
|
525
|
+
* `timestamps.updated`: a key holding it may lag the row's value, and that's no difference
|
|
526
|
+
* (`DESIGN.md` §7, "Composites the library stamps").
|
|
527
|
+
*/
|
|
528
|
+
readonly lagTolerated: string | null;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Judge one half of a stored row's index against what its values compose, for `rekey`'s report and
|
|
532
|
+
* `repairIndexKeys` (`rekey-repair.md`). Reads nothing and writes nothing. `stored` is what the
|
|
533
|
+
* half's attribute holds as read; `record` is the row's key form.
|
|
534
|
+
*
|
|
535
|
+
* A half with every composite on the row should hold what a `put` of them writes: the same
|
|
536
|
+
* composers, so a Z-order half is all or nothing and compares bytes, and a value within one
|
|
537
|
+
* quantization level is no difference. A half with one missing is the update path's business: under
|
|
538
|
+
* `preserve` it's left whatever it holds, which is what the policy promises; under `sparse` it holds
|
|
539
|
+
* what the structural rule composes (a trailing composite absent is a truncation, shape 3), or
|
|
540
|
+
* nothing. A half with no key whose index a `put` wouldn't have written whole has nothing missing.
|
|
541
|
+
*
|
|
542
|
+
* A half holding `updatedAt` is compared without that composite's text, so a key that only lags
|
|
543
|
+
* stays `fine` and a key that holds anything else is rewritten once, from the row's value, and is
|
|
544
|
+
* `fine` from then on, whatever later writes do to `updatedAt`.
|
|
545
|
+
*
|
|
546
|
+
* Not judged, so `fine`: values that compose no key (`NaN`, a Z-order value a dimension can't place,
|
|
547
|
+
* a shard it can't compute), which a `put` refuses too; and a sharded partition key that's stored,
|
|
548
|
+
* since `rekey` already rewrites or reports those.
|
|
549
|
+
*/
|
|
550
|
+
export declare const judgeIndexHalf: (judging: IndexKeyJudging, index: IndexDefinition, half: "pk" | "sk", stored: KeyValue | undefined, record: Record<string, unknown>) => IndexKeyVerdict;
|
|
320
551
|
/**
|
|
321
552
|
* Policy-aware GSI key composition for `Entity.update` and time-series
|
|
322
553
|
* `.append` — v1.7.1 per-half structural composition with per-half evaluation
|
|
@@ -328,10 +559,11 @@ export declare const composeSkPrefixUpTo: (schema: DynamoSchema.DynamoSchema, en
|
|
|
328
559
|
* protection: prevent writer A from clobbering keys for halves it doesn't
|
|
329
560
|
* own when writer B does own them. The skip-predicate states that purpose
|
|
330
561
|
* directly: skip iff multi-writer protection actually applies (the half has
|
|
331
|
-
* composites, no composite was explicitly removed,
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* cannot be safely skipped, it is evaluated
|
|
562
|
+
* composites, no composite was explicitly removed, none is in `updatePayload`,
|
|
563
|
+
* and at least one is unknown to `keyRecord` — so this writer is genuinely not
|
|
564
|
+
* claiming ownership of this half on this call, and can't recompose it to the
|
|
565
|
+
* value it already holds). If the half cannot be safely skipped, it is evaluated
|
|
566
|
+
* by the structural rule.
|
|
335
567
|
*
|
|
336
568
|
* Pre-v1.7.3 the predicate was inverted ("list cases for which to evaluate"
|
|
337
569
|
* as a chain of `||` clauses) and had to enumerate every shape: payload
|
|
@@ -341,7 +573,9 @@ export declare const composeSkPrefixUpTo: (schema: DynamoSchema.DynamoSchema, en
|
|
|
341
573
|
* PK-composites-only case (#43), v1.7.2 then missed the empty-composite-half
|
|
342
574
|
* case (#46) because every `.some(...)` clause trivially returned `false`
|
|
343
575
|
* for an empty composite array. The skip-predicate closes the entire class
|
|
344
|
-
* of degenerate-case bugs structurally.
|
|
576
|
+
* of degenerate-case bugs structurally. Through v1.37 its `keyRecord` arm asked
|
|
577
|
+
* whether *every* composite was absent, so one entity-PK composite woke a half
|
|
578
|
+
* that mixes it with a mutable composite (#183: `DESIGN.md §7`, shape 10).
|
|
345
579
|
*
|
|
346
580
|
* **Two-way payload classification.**
|
|
347
581
|
* - **present** (`attr: <value>` in payload, or inherited from `keyRecord`)
|
|
@@ -379,6 +613,18 @@ export declare const composeSkPrefixUpTo: (schema: DynamoSchema.DynamoSchema, en
|
|
|
379
613
|
*/
|
|
380
614
|
export declare const composeGsiKeysForUpdatePolicyAware: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, indexes: Record<string, IndexDefinition>, updatePayload: Record<string, unknown>, keyRecord: Record<string, unknown>, options?: {
|
|
381
615
|
readonly removedSet?: ReadonlySet<string>;
|
|
616
|
+
/**
|
|
617
|
+
* What a sharded half does when the update can't compute its new shard:
|
|
618
|
+
* `"fail"` (the default) throws `[EDD-9100]`; `"keep"` leaves the stored key,
|
|
619
|
+
* for a caller composing from partial knowledge whose result is not the
|
|
620
|
+
* write (see `docs/designs/gsi-write-sharding.md` §5).
|
|
621
|
+
*/
|
|
622
|
+
readonly onMissingShardSource?: "fail" | "keep";
|
|
623
|
+
/**
|
|
624
|
+
* What this write stamps, in key form: `timestamps.updated` and, on a `retain` entity, the
|
|
625
|
+
* version. A half holding one follows {@link writerLeavesStampedHalf}, not the skip-predicate.
|
|
626
|
+
*/
|
|
627
|
+
readonly stamped?: Record<string, unknown>;
|
|
382
628
|
}) => GsiUpdateResult;
|
|
383
629
|
/**
|
|
384
630
|
* Compose the HASH partition value for a vector index:
|
|
@@ -444,6 +690,94 @@ export type { CompositeKeyHoleError };
|
|
|
444
690
|
* prefix. Two call sites disagreeing about where a segment ends is the bug.
|
|
445
691
|
*/
|
|
446
692
|
export declare const composeSortKeyBeginsWith: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>) => string;
|
|
693
|
+
/**
|
|
694
|
+
* Above every key below a complete sort key prefix: the delimiter is followed by
|
|
695
|
+
* a composite's label, and no label reaches U+FFFF.
|
|
696
|
+
*/
|
|
697
|
+
export declare const SORT_KEY_MAX = "\uFFFF";
|
|
698
|
+
/**
|
|
699
|
+
* @internal What a composite's values can be in a key, for {@link composeKeySpace}: `"open"`, any
|
|
700
|
+
* text, the key delimiter included (the walk stops there); `"text"`, any text without the
|
|
701
|
+
* delimiter; `"number"`, a number's or a bigint's key text; or exactly the key text of `values`
|
|
702
|
+
* (a literal union, `true` and `false`).
|
|
703
|
+
*/
|
|
704
|
+
export type CompositeValues = "open" | "text" | "number" | {
|
|
705
|
+
readonly values: ReadonlyArray<unknown>;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* @internal A walked composite's value in a {@link KeySpace}: any text without the delimiter, the
|
|
709
|
+
* empty text included (`text`); a number's or a bigint's key text under any setting (`number`:
|
|
710
|
+
* digits and `-+.:;)*`, never the delimiter, and of letters only `e` and those of `Infinity`, as
|
|
711
|
+
* 1.36's text spells them, in any casing; it starts with a digit, `-`, `:` or `;`); or one of
|
|
712
|
+
* `texts`.
|
|
713
|
+
*/
|
|
714
|
+
export type KeyValueText = {
|
|
715
|
+
readonly kind: "text";
|
|
716
|
+
} | {
|
|
717
|
+
readonly kind: "number";
|
|
718
|
+
} | {
|
|
719
|
+
readonly kind: "oneOf";
|
|
720
|
+
readonly texts: ReadonlyArray<string>;
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* @internal The keys of one half of an index, as text: `text`, what the composer writes before the
|
|
724
|
+
* first composite's value, that composite's label included, or the whole key of a half with no
|
|
725
|
+
* composite. Then, for each leading composite whose value can't hold the key delimiter, what that
|
|
726
|
+
* value can be (`values`, one per entry of `after`; `text` when absent) and the text written after
|
|
727
|
+
* it (`after`): the next composite's label, or the end of the key. `open` says any text follows:
|
|
728
|
+
* the value of the first composite that can hold the delimiter, and everything after it.
|
|
729
|
+
*/
|
|
730
|
+
export interface KeySpace {
|
|
731
|
+
readonly text: string;
|
|
732
|
+
readonly after: ReadonlyArray<string>;
|
|
733
|
+
readonly values?: ReadonlyArray<KeyValueText>;
|
|
734
|
+
readonly open: boolean;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @internal The key spaces of an index's partition and sort keys ({@link KeySpace}), as {@link composePk} and
|
|
738
|
+
* {@link composeSk} write them. Each walked composite's value is composed as U+FFFF, which no
|
|
739
|
+
* casing or escaping changes and no label holds, and the text is cut there. The walk goes on past a
|
|
740
|
+
* composite whose values `valuesOf` says can't hold the delimiter: its value ends where the next
|
|
741
|
+
* label starts. It stops at the first that can (`"open"`): a partition key's values aren't
|
|
742
|
+
* escaped, so text after one can always match another key's. Without `valuesOf`, at the first
|
|
743
|
+
* composite. A composite limited to `values` is their key text under the schema's setting, or
|
|
744
|
+
* with `everyForm` under every setting a row can have been written under (`escapeKeys` on, off,
|
|
745
|
+
* and the 1.37 numeric text): the fixed text is the same under all of them.
|
|
746
|
+
*/
|
|
747
|
+
export declare const composeKeySpace: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, valuesOf?: (composite: string) => CompositeValues, options?: {
|
|
748
|
+
readonly everyForm?: boolean | undefined;
|
|
749
|
+
} | undefined) => {
|
|
750
|
+
readonly pk: KeySpace;
|
|
751
|
+
readonly sk: KeySpace;
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* @internal Whether a key of one {@link KeySpace} can be a key of the other. Each is literal text
|
|
755
|
+
* with values between, each value what its {@link KeyValueText} allows, and an open space ends in
|
|
756
|
+
* any text at all. The two are read character against character, together, until both can end.
|
|
757
|
+
*/
|
|
758
|
+
export declare const keySpacesMeet: (a: KeySpace, b: KeySpace) => boolean;
|
|
759
|
+
/**
|
|
760
|
+
* The condition selecting a complete sort key prefix on a secondary index, with
|
|
761
|
+
* `escapeKeys: true`: the key itself, where the structural rule truncates a row whose
|
|
762
|
+
* trailing composites are absent (`DESIGN.md §7`), and every key below it. A longer sibling
|
|
763
|
+
* value stays out: its text extends the prefix with a character above the delimiter (escaping
|
|
764
|
+
* puts everything up to `%` out of reach of a value).
|
|
765
|
+
*
|
|
766
|
+
* With `escapeKeys` off that range would hold `new york` for `new`, so a pin sends 1.36's
|
|
767
|
+
* `begins_with` on the prefix and the delimiter, and a row truncated at the prefix isn't among
|
|
768
|
+
* what it reads, as in 1.36.
|
|
769
|
+
*/
|
|
770
|
+
export declare const pinCondition: (schema: DynamoSchema.DynamoSchema, prefix: string) => {
|
|
771
|
+
readonly beginsWith: string;
|
|
772
|
+
} | {
|
|
773
|
+
readonly between: readonly [string, string];
|
|
774
|
+
};
|
|
775
|
+
/** The range {@link pinCondition} sends with `escapeKeys: true`. */
|
|
776
|
+
export declare const subtreeCondition: (prefix: string) => {
|
|
777
|
+
readonly between: readonly [string, string];
|
|
778
|
+
};
|
|
779
|
+
/** The prefix a {@link subtreeCondition} selects; `undefined` for any other condition. */
|
|
780
|
+
export declare const subtreePrefix: (condition: object) => string | undefined;
|
|
447
781
|
/**
|
|
448
782
|
* The sort key condition a query accessor sends for the leading SK composites
|
|
449
783
|
* present in `record` (the caller has checked at least one is):
|
|
@@ -454,13 +788,19 @@ export declare const composeSortKeyBeginsWith: (schema: DynamoSchema.DynamoSchem
|
|
|
454
788
|
* matching `"ab"`, and `seq: 3` matching 3.14 and 3.5, whose key text
|
|
455
789
|
* extends 3's. On the primary index `=` also leaves out the item's history
|
|
456
790
|
* rows, whose keys extend the current one.
|
|
457
|
-
* - **Partial prefix** —
|
|
458
|
-
*
|
|
791
|
+
* - **Partial prefix, secondary index** — {@link pinCondition}: with `escapeKeys: true` a row
|
|
792
|
+
* truncated at this prefix belongs to these pins, and `begins_with` on the
|
|
793
|
+
* prefix and delimiter can't reach it (the key ends where the operand goes on).
|
|
794
|
+
* - **Partial prefix, primary index** — `{ beginsWith }` on
|
|
795
|
+
* {@link composeSortKeyBeginsWith}: the prefix and the delimiter, so it stops on
|
|
796
|
+
* a segment boundary. Primary keys are never truncated.
|
|
459
797
|
*/
|
|
460
798
|
export declare const composeSortKeyCondition: (schema: DynamoSchema.DynamoSchema, entityType: string, entityVersion: number, index: IndexDefinition, record: Record<string, unknown>) => {
|
|
461
799
|
readonly eq: string;
|
|
462
800
|
} | {
|
|
463
801
|
readonly beginsWith: string;
|
|
802
|
+
} | {
|
|
803
|
+
readonly between: readonly [string, string];
|
|
464
804
|
};
|
|
465
805
|
/**
|
|
466
806
|
* Compose a partial sort key prefix for query operations.
|
|
@@ -479,8 +819,22 @@ export declare const composeSortKeyPrefix: (schema: DynamoSchema.DynamoSchema, e
|
|
|
479
819
|
*
|
|
480
820
|
* Given `currentSk = "$app#v1#telemetry_1"` and `orderByValue = 42`, returns
|
|
481
821
|
* `"$app#v1#telemetry_1#e#0000000000000042"` (with default lowercase casing).
|
|
822
|
+
* `orderByValue` is what {@link eventOrderByValue} picks for the schema's setting.
|
|
823
|
+
*/
|
|
824
|
+
export declare const composeEventSk: {
|
|
825
|
+
(schema: DynamoSchema.DynamoSchema, currentSk: string, orderByValue: unknown, casing?: DynamoSchema.Casing): string;
|
|
826
|
+
/**
|
|
827
|
+
* @deprecated since 1.39.0: pass the schema first, so `escapeKeys` is followed. Without it, the
|
|
828
|
+
* value is escaped and `casing` defaults to `"lowercase"`, as in 1.37.0 and 1.38.0.
|
|
829
|
+
*/
|
|
830
|
+
(currentSk: string, orderByValue: unknown, casing?: DynamoSchema.Casing): string;
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* The value of the `orderBy` attribute an event's sort key holds: its key form with numeric key
|
|
834
|
+
* text, its encoded value (a `NumberFromString` `"10"` as the string `10`) with `escapeKeys` off,
|
|
835
|
+
* as 1.36 composed it.
|
|
482
836
|
*/
|
|
483
|
-
export declare const
|
|
837
|
+
export declare const eventOrderByValue: (schema: DynamoSchema.DynamoSchema, encoded: unknown, keyForm: unknown) => unknown;
|
|
484
838
|
/**
|
|
485
839
|
* Compose the prefix used to scope `.history()` queries to event items only.
|
|
486
840
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyComposer.d.ts","sourceRoot":"","sources":["../src/KeyComposer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAStD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,EAGL,KAAK,MAAM,EAGZ,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,iBAAiB,EAAoB,MAAM,+BAA+B,CAAA;AACxF,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;IACpC,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