@sovereignbase/sequencer 0.0.2 → 1.0.1

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/index.d.cts CHANGED
@@ -1,22 +1,37 @@
1
1
 
2
2
  //#region src/typescript/types/type.d.ts
3
- /** Structural words may be typed views or numeric arrays received as JSON. */
3
+ /** Unsigned 32-bit structural words, accepted as a typed view or JSON numeric array. */
4
4
  type U32List = Uint32Array | ReadonlyArray<number>;
5
5
  /**
6
6
  * Exactly six words, in the replication order:
7
7
  * `[anchorSession, anchorStart, anchorDiff,
8
8
  * insertionSession, insertionStart, insertionDiff]`.
9
- * Signed coordinates use their 32-bit bit pattern; WASM interprets those lanes
10
- * as signed.
9
+ * The anchor triple names a logical point in an existing Insertion; the Session
10
+ * and start pair identifies the authored Insertion. A positive diff adds Frames;
11
+ * a negative diff masks original Frames. Signed values use uint32 bit patterns.
11
12
  */
12
13
  type InsertionWords = U32List;
13
- /** Insertion coordinates plus optional JS-owned content. Only words enter WASM. */
14
- type Insertion<T> = Readonly<[words: InsertionWords, footage?: ReadonlyArray<T | undefined>]>;
15
- /** `[actorID, sessionID, sessionEnd, ...]`. */
14
+ /**
15
+ * Canonical replication operation and optional JavaScript-owned Footage.
16
+ * Positive Insertions may omit Footage; their Frames then read as `undefined`.
17
+ * Reducing Insertions carry no content into native state.
18
+ */
19
+ type Insertion<T> = Readonly<[
20
+ /** Stable anchor, identity and signed Frame effect. */
21
+ words: InsertionWords,
22
+ /** Values of a positive Insertion, in original Frame order. */
23
+ footage?: ReadonlyArray<T | undefined>]>;
24
+ /**
25
+ * Describes one Actor's acknowledgement frontier.
26
+ * `[actorID, sessionID, sessionEnd, ...]` contains removal Session/frontier pairs.
27
+ * The application is responsible for acknowledging complete received Session prefixes.
28
+ */
16
29
  type Acknowledgement = U32List;
30
+ /** Ordered replication batch; delivery may be duplicated or causally reordered. */
17
31
  type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
18
32
  /**
19
- * One structural array and one JS-owned content array.
33
+ * Retained state required to hydrate the same visible Projection.
34
+ * One structural array and one JavaScript-owned content array.
20
35
  * Small snapshots use six-word insertion records after length-prefixed ACKs;
21
36
  * `words[0]` locates those records. Large snapshots begin with
22
37
  * `[0, frontiersEnd, insertionCount]` and omit predictable coordinate fields.
@@ -24,29 +39,146 @@ type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
24
39
  * Positive insertion diffs consume successive spans of `footage`.
25
40
  * `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
26
41
  */
27
- type Sequence<T> = Readonly<[words: U32List, footage: ReadonlyArray<T | undefined>]>;
28
- type Splice<T> = Readonly<[startAt: number, endWith: number, values?: ReadonlyArray<T | undefined>]>;
42
+ type Sequence<T> = Readonly<[
43
+ /** Acknowledgements followed by canonical Insertions in Structural Order. */
44
+ words: U32List,
45
+ /** Consecutive positive Insertion spans, including missing Footage slots. */
46
+ footage: ReadonlyArray<T | undefined>]>;
47
+ /** Visible mutation: insertion uses `[at, at, values]`; removal ends exclusively. */
48
+ type Splice<T> = Readonly<[
49
+ /** First affected position in the Projection after preceding Splices. */
50
+ startAt: number,
51
+ /** Exclusive removal boundary; equal to `startAt` for insertion. */
52
+ endWith: number,
53
+ /** Inserted Footage; omitted for removal. */
54
+ values?: ReadonlyArray<T | undefined>]>;
55
+ /** Splices applied in order to reproduce the remote operation's visible effect. */
29
56
  type Change<T> = ReadonlyArray<Splice<T>>;
57
+ /** Visible changes and optional Gossip returned by `apply()` or `merge()`. */
30
58
  type Result<T> = Readonly<[change: Change<T>, gossip?: Gossip<T>]>;
31
59
  //#endregion
60
+ //#region src/typescript/errors/class.d.ts
61
+ /** Semantic error codes reported by the Sequencer public API. */
62
+ type SequencerErrorCode = 'PROJECTION_DESTROYED' | 'NATIVE_OPERATION_FAILED';
63
+ /** Error reported by Sequencer with a stable code and package-prefixed message. */
64
+ export declare class SequencerError extends Error {
65
+ /** Machine-readable code identifying the failure condition. */
66
+ readonly code: SequencerErrorCode;
67
+ /**
68
+ * Creates a Sequencer error.
69
+ *
70
+ * @param code Stable code identifying the failure condition.
71
+ * @param message Human-readable detail; defaults to `code`.
72
+ * @param options Standard error options; `cause` retains an underlying error.
73
+ */
74
+ constructor(code: SequencerErrorCode, message?: string, options?: ErrorOptions);
75
+ }
76
+ //#endregion
32
77
  //#region src/typescript/class.d.ts
33
- /** Public API; algorithms execute synchronously in one WASM instance. */
78
+ /** Visible Projection of a replicated Sequence. */
34
79
  export declare class Projection<T> {
35
80
  readonly actorID: number;
81
+ /** Native instance handle; a negative value marks explicit destruction. */
36
82
  private id;
83
+ /**
84
+ * Prepares to sequence a projection, optionally hydrating from a trusted sequence stored by the application.
85
+ *
86
+ * @param actorID Actor identifier used in acknowledgements.
87
+ * @param trustedSequence Optional trusted Sequence in Structural Order, stored by the application.
88
+ * @throws {@link SequencerError} if native initialization fails.
89
+ */
37
90
  constructor(actorID: number, trustedSequence?: unknown);
91
+ /**
92
+ * Applies gossiped Insertions and Acknowledgements.
93
+ *
94
+ * @param gossip Batch of Insertion and Acknowledgement tuples.
95
+ * @returns Visible changes and optional acknowledgement Gossip, or
96
+ * `undefined` for invalid input. Earlier entries may already have been applied.
97
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
98
+ */
38
99
  apply(gossip: unknown): Result<T> | undefined;
100
+ /**
101
+ * Inserts values at a Projection position.
102
+ *
103
+ * @param values Nonempty array of values to insert.
104
+ * @param at Insertion position in `0..length()`, inclusive.
105
+ * @returns Gossip describing the insertion.
106
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
107
+ */
39
108
  insert(values: Array<T>, at: number): Gossip<T>;
109
+ /**
110
+ * Returns the length, A.K.A. amount of entries of this projection.
111
+ *
112
+ * @returns Current Projection length.
113
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
114
+ */
40
115
  length(): number;
116
+ /**
117
+ * Applies relevant acknowledgements and nonduplicate insertions from a replica of the sequence.
118
+ *
119
+ * @param sequence Sequence to merge.
120
+ * @returns Visible changes and optional acknowledgement Gossip, or
121
+ * `undefined` if the Sequence has an invalid runtime shape.
122
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
123
+ */
41
124
  merge(sequence: unknown): Result<T> | undefined;
125
+ /**
126
+ * Removes an inclusive range of Projection positions.
127
+ *
128
+ * @param startAt First position to remove; defaults to 0.
129
+ * @param endWith Last position to remove; defaults to `length() - 1`.
130
+ * @returns Reducing Insertions and their acknowledgement as Gossip.
131
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
132
+ */
42
133
  remove(startAt?: number, endWith?: number): Gossip<T>;
134
+ /**
135
+ * Replaces an inclusive range of Projection positions.
136
+ *
137
+ * @param withValues Replacement values; an empty array only removes the range.
138
+ * @param startAt First position to replace; defaults to 0.
139
+ * @param endWith Last position to replace; defaults to `length() - 1`.
140
+ * @returns Removal and insertion Gossip, in that order.
141
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
142
+ */
43
143
  replace(withValues: Array<T>, startAt?: number, endWith?: number): Gossip<T>;
144
+ /**
145
+ * Retires an Actor from future compaction requirements.
146
+ *
147
+ * @remarks
148
+ * The application is responsible for deciding which Actors are retired and
149
+ * for propagating that decision to the relevant replicas.
150
+ *
151
+ * @param actorID Actor whose Acknowledgements are no longer required for compaction.
152
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
153
+ */
44
154
  retire(actorID: number): void;
155
+ /**
156
+ * Sequences state into a compact serializable format.
157
+ *
158
+ * @returns A Sequence with acknowledged removals compacted in the exported state.
159
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
160
+ */
45
161
  sequence(): Sequence<T>;
162
+ /**
163
+ * Returns the value at a Projection position.
164
+ *
165
+ * @param at Valid visible position in `0..length() - 1`.
166
+ * @returns The corresponding Footage value.
167
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
168
+ */
46
169
  value(at: number): T | undefined;
170
+ /**
171
+ * Returns values from an inclusive range of Projection positions.
172
+ *
173
+ * @param startAt First included position; defaults to 0.
174
+ * @param endWith Last included position; defaults to `length() - 1`.
175
+ * @returns A new array of values, or an empty array for an empty range.
176
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
177
+ */
47
178
  values(startAt?: number, endWith?: number): Array<T>;
179
+ /** Destroys the Projection. Repeated calls have no effect. */
48
180
  destroy(): void;
49
181
  }
50
182
  //#endregion
51
- export type { Acknowledgement, Change, Gossip, Insertion, InsertionWords, Result, Sequence, Splice, U32List };
183
+ export type { Acknowledgement, Change, Gossip, Insertion, InsertionWords, Result, Sequence, SequencerErrorCode, Splice, U32List };
52
184
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;KAWtD,SAAS,KAAK,UACvB,OAAO,SAAS,SAAS,cAAc;KAG9B,OAAO,KAAK,UACrB,iBAAiB,iBAAiB,SAAS,cAAc;KAGhD,OAAO,KAAK,cAAc,OAAO;KACjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;qBCnCxD,WAAW;WAIJ;UAHV;EAGU,YAAA,iBAChB;EAKF,MAAM,kBAAkB,OAAO;EAI/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;EAI7C;EAIA,MAAM,oBAAoB,OAAO;EAIjC,OAAO,kBAAkB,mBAAmB,OAAO;EAInD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;EAU1E,OAAO;EAIP,YAAY,SAAS;EAIrB,MAAM,aAAa;EAInB,OAAO,kBAAkB,mBAAmB,MAAM;EAIlD"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/errors/class.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;;KAUxB,iBAAiB;;;;;;KAOjB,UAAU,KAAK;;AAGvB,OAAO;;AAEP,UAAU,cAAc;;;;;;KAShB,kBAAkB;;KAGlB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;;KAYtD,SAAS,KAAK;;AAGtB,OAAO;;AAEP,SAAS,cAAc;;KAKf,OAAO,KAAK;;AAGpB;;AAEA;;AAEA,SAAS,cAAc;;KAKf,OAAO,KAAK,cAAc,OAAO;;KAEjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;KCtEzD;;qBAIC,uBAAuB;;WAEzB,MAAM;;;;;;;;EAUb,YAAA,MAAM,oBACN,kBACA,UAAU;;;;;qBCdD,WAAW;WAYJ;;UAVV;;;;;;;;EAUU,YAAA,iBAChB;;;;;;;;;EAaF,MAAM,kBAAkB,OAAO;;;;;;;;;EAY/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;;;;;;;EAU7C;;;;;;;;;EAYA,MAAM,oBAAoB,OAAO;;;;;;;;;EAYjC,OAAO,kBAAkB,mBAAmB,OAAO;;;;;;;;;;EAanD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;;;;;;;;;;;EAoB1E,OAAO;;;;;;;EAUP,YAAY,SAAS;;;;;;;;EAWrB,MAAM,aAAa;;;;;;;;;EAYnB,OAAO,kBAAkB,mBAAmB,MAAM;;EAKlD"}
package/dist/index.d.ts CHANGED
@@ -1,22 +1,37 @@
1
1
 
2
2
  //#region src/typescript/types/type.d.ts
3
- /** Structural words may be typed views or numeric arrays received as JSON. */
3
+ /** Unsigned 32-bit structural words, accepted as a typed view or JSON numeric array. */
4
4
  type U32List = Uint32Array | ReadonlyArray<number>;
5
5
  /**
6
6
  * Exactly six words, in the replication order:
7
7
  * `[anchorSession, anchorStart, anchorDiff,
8
8
  * insertionSession, insertionStart, insertionDiff]`.
9
- * Signed coordinates use their 32-bit bit pattern; WASM interprets those lanes
10
- * as signed.
9
+ * The anchor triple names a logical point in an existing Insertion; the Session
10
+ * and start pair identifies the authored Insertion. A positive diff adds Frames;
11
+ * a negative diff masks original Frames. Signed values use uint32 bit patterns.
11
12
  */
12
13
  type InsertionWords = U32List;
13
- /** Insertion coordinates plus optional JS-owned content. Only words enter WASM. */
14
- type Insertion<T> = Readonly<[words: InsertionWords, footage?: ReadonlyArray<T | undefined>]>;
15
- /** `[actorID, sessionID, sessionEnd, ...]`. */
14
+ /**
15
+ * Canonical replication operation and optional JavaScript-owned Footage.
16
+ * Positive Insertions may omit Footage; their Frames then read as `undefined`.
17
+ * Reducing Insertions carry no content into native state.
18
+ */
19
+ type Insertion<T> = Readonly<[
20
+ /** Stable anchor, identity and signed Frame effect. */
21
+ words: InsertionWords,
22
+ /** Values of a positive Insertion, in original Frame order. */
23
+ footage?: ReadonlyArray<T | undefined>]>;
24
+ /**
25
+ * Describes one Actor's acknowledgement frontier.
26
+ * `[actorID, sessionID, sessionEnd, ...]` contains removal Session/frontier pairs.
27
+ * The application is responsible for acknowledging complete received Session prefixes.
28
+ */
16
29
  type Acknowledgement = U32List;
30
+ /** Ordered replication batch; delivery may be duplicated or causally reordered. */
17
31
  type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
18
32
  /**
19
- * One structural array and one JS-owned content array.
33
+ * Retained state required to hydrate the same visible Projection.
34
+ * One structural array and one JavaScript-owned content array.
20
35
  * Small snapshots use six-word insertion records after length-prefixed ACKs;
21
36
  * `words[0]` locates those records. Large snapshots begin with
22
37
  * `[0, frontiersEnd, insertionCount]` and omit predictable coordinate fields.
@@ -24,29 +39,146 @@ type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
24
39
  * Positive insertion diffs consume successive spans of `footage`.
25
40
  * `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
26
41
  */
27
- type Sequence<T> = Readonly<[words: U32List, footage: ReadonlyArray<T | undefined>]>;
28
- type Splice<T> = Readonly<[startAt: number, endWith: number, values?: ReadonlyArray<T | undefined>]>;
42
+ type Sequence<T> = Readonly<[
43
+ /** Acknowledgements followed by canonical Insertions in Structural Order. */
44
+ words: U32List,
45
+ /** Consecutive positive Insertion spans, including missing Footage slots. */
46
+ footage: ReadonlyArray<T | undefined>]>;
47
+ /** Visible mutation: insertion uses `[at, at, values]`; removal ends exclusively. */
48
+ type Splice<T> = Readonly<[
49
+ /** First affected position in the Projection after preceding Splices. */
50
+ startAt: number,
51
+ /** Exclusive removal boundary; equal to `startAt` for insertion. */
52
+ endWith: number,
53
+ /** Inserted Footage; omitted for removal. */
54
+ values?: ReadonlyArray<T | undefined>]>;
55
+ /** Splices applied in order to reproduce the remote operation's visible effect. */
29
56
  type Change<T> = ReadonlyArray<Splice<T>>;
57
+ /** Visible changes and optional Gossip returned by `apply()` or `merge()`. */
30
58
  type Result<T> = Readonly<[change: Change<T>, gossip?: Gossip<T>]>;
31
59
  //#endregion
60
+ //#region src/typescript/errors/class.d.ts
61
+ /** Semantic error codes reported by the Sequencer public API. */
62
+ type SequencerErrorCode = 'PROJECTION_DESTROYED' | 'NATIVE_OPERATION_FAILED';
63
+ /** Error reported by Sequencer with a stable code and package-prefixed message. */
64
+ export declare class SequencerError extends Error {
65
+ /** Machine-readable code identifying the failure condition. */
66
+ readonly code: SequencerErrorCode;
67
+ /**
68
+ * Creates a Sequencer error.
69
+ *
70
+ * @param code Stable code identifying the failure condition.
71
+ * @param message Human-readable detail; defaults to `code`.
72
+ * @param options Standard error options; `cause` retains an underlying error.
73
+ */
74
+ constructor(code: SequencerErrorCode, message?: string, options?: ErrorOptions);
75
+ }
76
+ //#endregion
32
77
  //#region src/typescript/class.d.ts
33
- /** Public API; algorithms execute synchronously in one WASM instance. */
78
+ /** Visible Projection of a replicated Sequence. */
34
79
  export declare class Projection<T> {
35
80
  readonly actorID: number;
81
+ /** Native instance handle; a negative value marks explicit destruction. */
36
82
  private id;
83
+ /**
84
+ * Prepares to sequence a projection, optionally hydrating from a trusted sequence stored by the application.
85
+ *
86
+ * @param actorID Actor identifier used in acknowledgements.
87
+ * @param trustedSequence Optional trusted Sequence in Structural Order, stored by the application.
88
+ * @throws {@link SequencerError} if native initialization fails.
89
+ */
37
90
  constructor(actorID: number, trustedSequence?: unknown);
91
+ /**
92
+ * Applies gossiped Insertions and Acknowledgements.
93
+ *
94
+ * @param gossip Batch of Insertion and Acknowledgement tuples.
95
+ * @returns Visible changes and optional acknowledgement Gossip, or
96
+ * `undefined` for invalid input. Earlier entries may already have been applied.
97
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
98
+ */
38
99
  apply(gossip: unknown): Result<T> | undefined;
100
+ /**
101
+ * Inserts values at a Projection position.
102
+ *
103
+ * @param values Nonempty array of values to insert.
104
+ * @param at Insertion position in `0..length()`, inclusive.
105
+ * @returns Gossip describing the insertion.
106
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
107
+ */
39
108
  insert(values: Array<T>, at: number): Gossip<T>;
109
+ /**
110
+ * Returns the length, A.K.A. amount of entries of this projection.
111
+ *
112
+ * @returns Current Projection length.
113
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
114
+ */
40
115
  length(): number;
116
+ /**
117
+ * Applies relevant acknowledgements and nonduplicate insertions from a replica of the sequence.
118
+ *
119
+ * @param sequence Sequence to merge.
120
+ * @returns Visible changes and optional acknowledgement Gossip, or
121
+ * `undefined` if the Sequence has an invalid runtime shape.
122
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
123
+ */
41
124
  merge(sequence: unknown): Result<T> | undefined;
125
+ /**
126
+ * Removes an inclusive range of Projection positions.
127
+ *
128
+ * @param startAt First position to remove; defaults to 0.
129
+ * @param endWith Last position to remove; defaults to `length() - 1`.
130
+ * @returns Reducing Insertions and their acknowledgement as Gossip.
131
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
132
+ */
42
133
  remove(startAt?: number, endWith?: number): Gossip<T>;
134
+ /**
135
+ * Replaces an inclusive range of Projection positions.
136
+ *
137
+ * @param withValues Replacement values; an empty array only removes the range.
138
+ * @param startAt First position to replace; defaults to 0.
139
+ * @param endWith Last position to replace; defaults to `length() - 1`.
140
+ * @returns Removal and insertion Gossip, in that order.
141
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
142
+ */
43
143
  replace(withValues: Array<T>, startAt?: number, endWith?: number): Gossip<T>;
144
+ /**
145
+ * Retires an Actor from future compaction requirements.
146
+ *
147
+ * @remarks
148
+ * The application is responsible for deciding which Actors are retired and
149
+ * for propagating that decision to the relevant replicas.
150
+ *
151
+ * @param actorID Actor whose Acknowledgements are no longer required for compaction.
152
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
153
+ */
44
154
  retire(actorID: number): void;
155
+ /**
156
+ * Sequences state into a compact serializable format.
157
+ *
158
+ * @returns A Sequence with acknowledged removals compacted in the exported state.
159
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
160
+ */
45
161
  sequence(): Sequence<T>;
162
+ /**
163
+ * Returns the value at a Projection position.
164
+ *
165
+ * @param at Valid visible position in `0..length() - 1`.
166
+ * @returns The corresponding Footage value.
167
+ * @throws {@link SequencerError} with code `PROJECTION_DESTROYED` after destruction.
168
+ */
46
169
  value(at: number): T | undefined;
170
+ /**
171
+ * Returns values from an inclusive range of Projection positions.
172
+ *
173
+ * @param startAt First included position; defaults to 0.
174
+ * @param endWith Last included position; defaults to `length() - 1`.
175
+ * @returns A new array of values, or an empty array for an empty range.
176
+ * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
177
+ */
47
178
  values(startAt?: number, endWith?: number): Array<T>;
179
+ /** Destroys the Projection. Repeated calls have no effect. */
48
180
  destroy(): void;
49
181
  }
50
182
  //#endregion
51
- export type { Acknowledgement, Change, Gossip, Insertion, InsertionWords, Result, Sequence, Splice, U32List };
183
+ export type { Acknowledgement, Change, Gossip, Insertion, InsertionWords, Result, Sequence, SequencerErrorCode, Splice, U32List };
52
184
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;KAWtD,SAAS,KAAK,UACvB,OAAO,SAAS,SAAS,cAAc;KAG9B,OAAO,KAAK,UACrB,iBAAiB,iBAAiB,SAAS,cAAc;KAGhD,OAAO,KAAK,cAAc,OAAO;KACjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;qBCnCxD,WAAW;WAIJ;UAHV;EAGU,YAAA,iBAChB;EAKF,MAAM,kBAAkB,OAAO;EAI/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;EAI7C;EAIA,MAAM,oBAAoB,OAAO;EAIjC,OAAO,kBAAkB,mBAAmB,OAAO;EAInD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;EAU1E,OAAO;EAIP,YAAY,SAAS;EAIrB,MAAM,aAAa;EAInB,OAAO,kBAAkB,mBAAmB,MAAM;EAIlD"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/errors/class.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;;KAUxB,iBAAiB;;;;;;KAOjB,UAAU,KAAK;;AAGvB,OAAO;;AAEP,UAAU,cAAc;;;;;;KAShB,kBAAkB;;KAGlB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;;KAYtD,SAAS,KAAK;;AAGtB,OAAO;;AAEP,SAAS,cAAc;;KAKf,OAAO,KAAK;;AAGpB;;AAEA;;AAEA,SAAS,cAAc;;KAKf,OAAO,KAAK,cAAc,OAAO;;KAEjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;KCtEzD;;qBAIC,uBAAuB;;WAEzB,MAAM;;;;;;;;EAUb,YAAA,MAAM,oBACN,kBACA,UAAU;;;;;qBCdD,WAAW;WAYJ;;UAVV;;;;;;;;EAUU,YAAA,iBAChB;;;;;;;;;EAaF,MAAM,kBAAkB,OAAO;;;;;;;;;EAY/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;;;;;;;EAU7C;;;;;;;;;EAYA,MAAM,oBAAoB,OAAO;;;;;;;;;EAYjC,OAAO,kBAAkB,mBAAmB,OAAO;;;;;;;;;;EAanD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;;;;;;;;;;;EAoB1E,OAAO;;;;;;;EAUP,YAAY,SAAS;;;;;;;;EAWrB,MAAM,aAAa;;;;;;;;;EAYnB,OAAO,kBAAkB,mBAAmB,MAAM;;EAKlD"}