iii-browser-sdk 0.11.4-next.3 → 0.11.4-next.4
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 +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/state.cjs.map +1 -1
- package/dist/state.d.cts +6 -1
- package/dist/state.d.cts.map +1 -1
- package/dist/state.d.mts +6 -1
- package/dist/state.d.mts.map +1 -1
- package/dist/state.mjs.map +1 -1
- package/dist/{stream-CWBlORL-.d.mts → stream-B-ntbFGR.d.cts} +40 -5
- package/dist/stream-B-ntbFGR.d.cts.map +1 -0
- package/dist/{stream-Dx27w5zt.d.cts → stream-ChlMkAz6.d.mts} +40 -5
- package/dist/stream-ChlMkAz6.d.mts.map +1 -0
- package/dist/stream.d.cts +2 -2
- package/dist/stream.d.mts +2 -2
- package/package.json +1 -1
- package/dist/stream-CWBlORL-.d.mts.map +0 -1
- package/dist/stream-Dx27w5zt.d.cts.map +0 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/state.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.cjs","names":[],"sources":["../src/state.ts"],"sourcesContent":["import type { UpdateOp } from './stream'\n\n/** Input for retrieving a state value. */\nexport type StateGetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Input for setting a state value. */\nexport type StateSetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Value to store. */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n value: any\n}\n\n/** Input for deleting a state value. */\nexport type StateDeleteInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Result of a state delete operation. */\nexport type StateDeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for listing all values in a state scope. */\nexport type StateListInput = {\n /** State scope (namespace). */\n scope: string\n}\n\n/** Result of a state set operation. */\nexport type StateSetResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value that was stored. */\n new_value: TData\n}\n\n/** Result of a state update operation. */\nexport type StateUpdateResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value after the update. */\n new_value: TData\n}\n\n/** Result of a state delete operation. */\nexport type DeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for atomically updating a state value. */\nexport type StateUpdateInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Ordered list of update operations to apply atomically. */\n ops: UpdateOp[]\n}\n\n/** Types of state change events. */\nexport enum StateEventType {\n Created = 'state:created',\n Updated = 'state:updated',\n Deleted = 'state:deleted',\n}\n\n/** Payload for state change events. */\n// biome-ignore lint/suspicious/noExplicitAny: any is fine here\nexport interface StateEventData<TData = any> {\n type: 'state'\n /** Type of state change. */\n event_type: StateEventType\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Previous value (for update/delete events). */\n old_value?: TData\n /** New value (for create/update events). */\n new_value?: TData\n}\n\n/**\n * Interface for state management operations. Available via the `iii-sdk/state`\n * subpath export.\n */\nexport interface IState {\n /** Retrieve a value by scope and key. */\n get<TData>(input: StateGetInput): Promise<TData | null>\n /** Set (create or overwrite) a state value. */\n set<TData>(input: StateSetInput): Promise<StateSetResult<TData> | null>\n /** Delete a state value. */\n delete(input: StateDeleteInput): Promise<DeleteResult>\n /** List all values in a scope. */\n list<TData>(input: StateListInput): Promise<TData[]>\n /** Apply atomic update operations to a state value. */\n update<TData>(input: StateUpdateInput): Promise<StateUpdateResult<TData> | null>\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"state.cjs","names":[],"sources":["../src/state.ts"],"sourcesContent":["import type { UpdateOp, UpdateOpError } from './stream'\n\n/** Input for retrieving a state value. */\nexport type StateGetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Input for setting a state value. */\nexport type StateSetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Value to store. */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n value: any\n}\n\n/** Input for deleting a state value. */\nexport type StateDeleteInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Result of a state delete operation. */\nexport type StateDeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for listing all values in a state scope. */\nexport type StateListInput = {\n /** State scope (namespace). */\n scope: string\n}\n\n/** Result of a state set operation. */\nexport type StateSetResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value that was stored. */\n new_value: TData\n}\n\n/** Result of a state update operation. */\nexport type StateUpdateResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value after the update. */\n new_value: TData\n /**\n * Per-op errors. Currently emitted only by the `merge` op when\n * input violates validation bounds. Field omitted when empty.\n */\n errors?: UpdateOpError[]\n}\n\n/** Result of a state delete operation. */\nexport type DeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for atomically updating a state value. */\nexport type StateUpdateInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Ordered list of update operations to apply atomically. */\n ops: UpdateOp[]\n}\n\n/** Types of state change events. */\nexport enum StateEventType {\n Created = 'state:created',\n Updated = 'state:updated',\n Deleted = 'state:deleted',\n}\n\n/** Payload for state change events. */\n// biome-ignore lint/suspicious/noExplicitAny: any is fine here\nexport interface StateEventData<TData = any> {\n type: 'state'\n /** Type of state change. */\n event_type: StateEventType\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Previous value (for update/delete events). */\n old_value?: TData\n /** New value (for create/update events). */\n new_value?: TData\n}\n\n/**\n * Interface for state management operations. Available via the `iii-sdk/state`\n * subpath export.\n */\nexport interface IState {\n /** Retrieve a value by scope and key. */\n get<TData>(input: StateGetInput): Promise<TData | null>\n /** Set (create or overwrite) a state value. */\n set<TData>(input: StateSetInput): Promise<StateSetResult<TData> | null>\n /** Delete a state value. */\n delete(input: StateDeleteInput): Promise<DeleteResult>\n /** List all values in a scope. */\n list<TData>(input: StateListInput): Promise<TData[]>\n /** Apply atomic update operations to a state value. */\n update<TData>(input: StateUpdateInput): Promise<StateUpdateResult<TData> | null>\n}\n"],"mappings":";;;;AAiFA,IAAY,iBAAL;AACL;AACA;AACA;;KACD"}
|
package/dist/state.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as UpdateOpError, w as UpdateOp } from "./stream-B-ntbFGR.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/state.d.ts
|
|
4
4
|
/** Input for retrieving a state value. */
|
|
@@ -34,6 +34,11 @@ type StateSetResult<TData> = {
|
|
|
34
34
|
type StateUpdateResult<TData> = {
|
|
35
35
|
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
36
36
|
new_value: TData;
|
|
37
|
+
/**
|
|
38
|
+
* Per-op errors. Currently emitted only by the `merge` op when
|
|
39
|
+
* input violates validation bounds. Field omitted when empty.
|
|
40
|
+
*/
|
|
41
|
+
errors?: UpdateOpError[];
|
|
37
42
|
};
|
|
38
43
|
/** Result of a state delete operation. */
|
|
39
44
|
type DeleteResult = {
|
package/dist/state.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.cts","names":[],"sources":["../src/state.ts"],"mappings":";;;;KAGY,aAAA;EAAA,+BAEV,KAAA;EAEA,GAAA;AAAA;AAIF;AAAA,KAAY,aAAA;iCAEV,KAAA;EAEA,GAAA,UAGA;EAAA,KAAA;AAAA;AAIF;AAAA,KAAY,gBAAA;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;EAmBA,GAAA,QAAW,KAAA,EAAO,aAAA,GAAgB,OAAA,CAAQ,cAAA,CAAe,KAAA;EAjBzD;EAmBA,MAAA,CAAO,KAAA,EAAO,gBAAA,GAAmB,OAAA,CAAQ,YAAA;EAfzC;EAiBA,IAAA,QAAY,KAAA,EAAO,cAAA,GAAiB,OAAA,CAAQ,KAAA;EAf5C;EAiBA,MAAA,QAAc,KAAA,EAAO,gBAAA,GAAmB,OAAA,CAAQ,iBAAA,CAAkB,KAAA;AAAA"}
|
package/dist/state.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as UpdateOpError, w as UpdateOp } from "./stream-ChlMkAz6.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/state.d.ts
|
|
4
4
|
/** Input for retrieving a state value. */
|
|
@@ -34,6 +34,11 @@ type StateSetResult<TData> = {
|
|
|
34
34
|
type StateUpdateResult<TData> = {
|
|
35
35
|
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
36
36
|
new_value: TData;
|
|
37
|
+
/**
|
|
38
|
+
* Per-op errors. Currently emitted only by the `merge` op when
|
|
39
|
+
* input violates validation bounds. Field omitted when empty.
|
|
40
|
+
*/
|
|
41
|
+
errors?: UpdateOpError[];
|
|
37
42
|
};
|
|
38
43
|
/** Result of a state delete operation. */
|
|
39
44
|
type DeleteResult = {
|
package/dist/state.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.mts","names":[],"sources":["../src/state.ts"],"mappings":";;;;KAGY,aAAA;EAAA,+BAEV,KAAA;EAEA,GAAA;AAAA;AAIF;AAAA,KAAY,aAAA;iCAEV,KAAA;EAEA,GAAA,UAGA;EAAA,KAAA;AAAA;AAIF;AAAA,KAAY,gBAAA;iCAEV,KAAA,UAEG;EAAH,GAAA;AAAA;;KAIU,iBAAA;EAGD,sCAAT,SAAA;AAAA;;KAIU,cAAA;EAEL,+BAAL,KAAA;AAA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AO,gBAAA,GAAmB,OAAA,CAAQ,YAAA;EAfzC;EAiBA,IAAA,QAAY,KAAA,EAAO,cAAA,GAAiB,OAAA,CAAQ,KAAA;EAf5C;EAiBA,MAAA,QAAc,KAAA,EAAO,gBAAA,GAAmB,OAAA,CAAQ,iBAAA,CAAkB,KAAA;AAAA"}
|
package/dist/state.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.mjs","names":[],"sources":["../src/state.ts"],"sourcesContent":["import type { UpdateOp } from './stream'\n\n/** Input for retrieving a state value. */\nexport type StateGetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Input for setting a state value. */\nexport type StateSetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Value to store. */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n value: any\n}\n\n/** Input for deleting a state value. */\nexport type StateDeleteInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Result of a state delete operation. */\nexport type StateDeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for listing all values in a state scope. */\nexport type StateListInput = {\n /** State scope (namespace). */\n scope: string\n}\n\n/** Result of a state set operation. */\nexport type StateSetResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value that was stored. */\n new_value: TData\n}\n\n/** Result of a state update operation. */\nexport type StateUpdateResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value after the update. */\n new_value: TData\n}\n\n/** Result of a state delete operation. */\nexport type DeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for atomically updating a state value. */\nexport type StateUpdateInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Ordered list of update operations to apply atomically. */\n ops: UpdateOp[]\n}\n\n/** Types of state change events. */\nexport enum StateEventType {\n Created = 'state:created',\n Updated = 'state:updated',\n Deleted = 'state:deleted',\n}\n\n/** Payload for state change events. */\n// biome-ignore lint/suspicious/noExplicitAny: any is fine here\nexport interface StateEventData<TData = any> {\n type: 'state'\n /** Type of state change. */\n event_type: StateEventType\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Previous value (for update/delete events). */\n old_value?: TData\n /** New value (for create/update events). */\n new_value?: TData\n}\n\n/**\n * Interface for state management operations. Available via the `iii-sdk/state`\n * subpath export.\n */\nexport interface IState {\n /** Retrieve a value by scope and key. */\n get<TData>(input: StateGetInput): Promise<TData | null>\n /** Set (create or overwrite) a state value. */\n set<TData>(input: StateSetInput): Promise<StateSetResult<TData> | null>\n /** Delete a state value. */\n delete(input: StateDeleteInput): Promise<DeleteResult>\n /** List all values in a scope. */\n list<TData>(input: StateListInput): Promise<TData[]>\n /** Apply atomic update operations to a state value. */\n update<TData>(input: StateUpdateInput): Promise<StateUpdateResult<TData> | null>\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"state.mjs","names":[],"sources":["../src/state.ts"],"sourcesContent":["import type { UpdateOp, UpdateOpError } from './stream'\n\n/** Input for retrieving a state value. */\nexport type StateGetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Input for setting a state value. */\nexport type StateSetInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Value to store. */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n value: any\n}\n\n/** Input for deleting a state value. */\nexport type StateDeleteInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n}\n\n/** Result of a state delete operation. */\nexport type StateDeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for listing all values in a state scope. */\nexport type StateListInput = {\n /** State scope (namespace). */\n scope: string\n}\n\n/** Result of a state set operation. */\nexport type StateSetResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value that was stored. */\n new_value: TData\n}\n\n/** Result of a state update operation. */\nexport type StateUpdateResult<TData> = {\n /** Previous value (if it existed). */\n old_value?: TData\n /** New value after the update. */\n new_value: TData\n /**\n * Per-op errors. Currently emitted only by the `merge` op when\n * input violates validation bounds. Field omitted when empty.\n */\n errors?: UpdateOpError[]\n}\n\n/** Result of a state delete operation. */\nexport type DeleteResult = {\n /** Previous value (if it existed). */\n // biome-ignore lint/suspicious/noExplicitAny: any is fine here\n old_value?: any\n}\n\n/** Input for atomically updating a state value. */\nexport type StateUpdateInput = {\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Ordered list of update operations to apply atomically. */\n ops: UpdateOp[]\n}\n\n/** Types of state change events. */\nexport enum StateEventType {\n Created = 'state:created',\n Updated = 'state:updated',\n Deleted = 'state:deleted',\n}\n\n/** Payload for state change events. */\n// biome-ignore lint/suspicious/noExplicitAny: any is fine here\nexport interface StateEventData<TData = any> {\n type: 'state'\n /** Type of state change. */\n event_type: StateEventType\n /** State scope (namespace). */\n scope: string\n /** Key within the scope. */\n key: string\n /** Previous value (for update/delete events). */\n old_value?: TData\n /** New value (for create/update events). */\n new_value?: TData\n}\n\n/**\n * Interface for state management operations. Available via the `iii-sdk/state`\n * subpath export.\n */\nexport interface IState {\n /** Retrieve a value by scope and key. */\n get<TData>(input: StateGetInput): Promise<TData | null>\n /** Set (create or overwrite) a state value. */\n set<TData>(input: StateSetInput): Promise<StateSetResult<TData> | null>\n /** Delete a state value. */\n delete(input: StateDeleteInput): Promise<DeleteResult>\n /** List all values in a scope. */\n list<TData>(input: StateListInput): Promise<TData[]>\n /** Apply atomic update operations to a state value. */\n update<TData>(input: StateUpdateInput): Promise<StateUpdateResult<TData> | null>\n}\n"],"mappings":";;AAiFA,IAAY,iBAAL;AACL;AACA;AACA;;KACD"}
|
|
@@ -72,6 +72,11 @@ type StreamSetResult<TData> = {
|
|
|
72
72
|
type StreamUpdateResult<TData> = {
|
|
73
73
|
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
74
74
|
new_value: TData;
|
|
75
|
+
/**
|
|
76
|
+
* Per-op errors. Currently emitted only by the `merge` op when
|
|
77
|
+
* input violates validation bounds. Field omitted when empty.
|
|
78
|
+
*/
|
|
79
|
+
errors?: UpdateOpError[];
|
|
75
80
|
};
|
|
76
81
|
/** Set a field at the given path to a value. */
|
|
77
82
|
type UpdateSet = {
|
|
@@ -102,12 +107,42 @@ type UpdateRemove = {
|
|
|
102
107
|
type: 'remove'; /** First-level field path. */
|
|
103
108
|
path: string;
|
|
104
109
|
};
|
|
105
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Path target for a {@link UpdateMerge} op. Accepts:
|
|
112
|
+
* - a single string (legacy / first-level field)
|
|
113
|
+
* - an array of literal segments (nested path; each element is one
|
|
114
|
+
* literal key, dots are NOT interpreted as separators)
|
|
115
|
+
*
|
|
116
|
+
* Omit `path`, pass `""`, or pass `[]` to target the root value.
|
|
117
|
+
*
|
|
118
|
+
* @example single first-level field
|
|
119
|
+
* { type: 'merge', path: 'session-abc', value: { author: 'alice' } }
|
|
120
|
+
* @example nested path
|
|
121
|
+
* { type: 'merge', path: ['sessions', 'abc'], value: { ts: chunk } }
|
|
122
|
+
*/
|
|
123
|
+
type MergePath = string | string[];
|
|
124
|
+
/**
|
|
125
|
+
* Shallow-merge an object into the target. The target is the root
|
|
126
|
+
* (when `path` is omitted/empty) or an arbitrary nested location
|
|
127
|
+
* specified by an array of literal segments. See {@link MergePath}.
|
|
128
|
+
*
|
|
129
|
+
* Validation: invalid paths/values (depth > 32, segment > 256 bytes,
|
|
130
|
+
* value depth > 16, > 1024 top-level keys, or any
|
|
131
|
+
* `__proto__`/`constructor`/`prototype` segment or top-level key) are
|
|
132
|
+
* rejected with a structured error in the response's `errors` array.
|
|
133
|
+
*/
|
|
106
134
|
type UpdateMerge = {
|
|
107
|
-
type: 'merge'; /**
|
|
108
|
-
path
|
|
135
|
+
type: 'merge'; /** Optional path to the merge target. See {@link MergePath}. */
|
|
136
|
+
path?: MergePath; /** Object to merge. Must be a JSON object. */
|
|
109
137
|
value: any;
|
|
110
138
|
};
|
|
139
|
+
/** Per-op error returned by `state::update` / `stream::update`. */
|
|
140
|
+
type UpdateOpError = {
|
|
141
|
+
/** Index of the offending op within the original `ops` array. */op_index: number; /** Stable error code, e.g. `"merge.path.too_deep"`. */
|
|
142
|
+
code: string; /** Human-readable description with concrete numbers when applicable. */
|
|
143
|
+
message: string; /** Optional documentation URL. */
|
|
144
|
+
doc_url?: string;
|
|
145
|
+
};
|
|
111
146
|
/** Result of a stream delete operation. */
|
|
112
147
|
type DeleteResult = {
|
|
113
148
|
/** Previous value (if it existed). */old_value?: any;
|
|
@@ -181,5 +216,5 @@ interface IStream<TData> {
|
|
|
181
216
|
update(input: StreamUpdateInput): Promise<StreamUpdateResult<TData> | null>;
|
|
182
217
|
}
|
|
183
218
|
//#endregion
|
|
184
|
-
export {
|
|
185
|
-
//# sourceMappingURL=stream-
|
|
219
|
+
export { UpdateMerge as C, UpdateSet as D, UpdateRemove as E, UpdateIncrement as S, UpdateOpError as T, StreamTriggerConfig as _, StreamAuthResult as a, UpdateAppend as b, StreamDeleteInput as c, StreamJoinLeaveTriggerConfig as d, StreamJoinResult as f, StreamSetResult as g, StreamSetInput as h, StreamAuthInput as i, StreamGetInput as l, StreamListInput as m, IStream as n, StreamChangeEvent as o, StreamListGroupsInput as p, MergePath as r, StreamContext as s, DeleteResult as t, StreamJoinLeaveEvent as u, StreamUpdateInput as v, UpdateOp as w, UpdateDecrement as x, StreamUpdateResult as y };
|
|
220
|
+
//# sourceMappingURL=stream-B-ntbFGR.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-B-ntbFGR.d.cts","names":[],"sources":["../src/stream.ts"],"mappings":";;UACiB,eAAA;EAAe;EAE9B,OAAA,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
|
|
73
73
|
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
74
74
|
new_value: TData;
|
|
75
|
+
/**
|
|
76
|
+
* Per-op errors. Currently emitted only by the `merge` op when
|
|
77
|
+
* input violates validation bounds. Field omitted when empty.
|
|
78
|
+
*/
|
|
79
|
+
errors?: UpdateOpError[];
|
|
75
80
|
};
|
|
76
81
|
/** Set a field at the given path to a value. */
|
|
77
82
|
type UpdateSet = {
|
|
@@ -102,12 +107,42 @@ type UpdateRemove = {
|
|
|
102
107
|
type: 'remove'; /** First-level field path. */
|
|
103
108
|
path: string;
|
|
104
109
|
};
|
|
105
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Path target for a {@link UpdateMerge} op. Accepts:
|
|
112
|
+
* - a single string (legacy / first-level field)
|
|
113
|
+
* - an array of literal segments (nested path; each element is one
|
|
114
|
+
* literal key, dots are NOT interpreted as separators)
|
|
115
|
+
*
|
|
116
|
+
* Omit `path`, pass `""`, or pass `[]` to target the root value.
|
|
117
|
+
*
|
|
118
|
+
* @example single first-level field
|
|
119
|
+
* { type: 'merge', path: 'session-abc', value: { author: 'alice' } }
|
|
120
|
+
* @example nested path
|
|
121
|
+
* { type: 'merge', path: ['sessions', 'abc'], value: { ts: chunk } }
|
|
122
|
+
*/
|
|
123
|
+
type MergePath = string | string[];
|
|
124
|
+
/**
|
|
125
|
+
* Shallow-merge an object into the target. The target is the root
|
|
126
|
+
* (when `path` is omitted/empty) or an arbitrary nested location
|
|
127
|
+
* specified by an array of literal segments. See {@link MergePath}.
|
|
128
|
+
*
|
|
129
|
+
* Validation: invalid paths/values (depth > 32, segment > 256 bytes,
|
|
130
|
+
* value depth > 16, > 1024 top-level keys, or any
|
|
131
|
+
* `__proto__`/`constructor`/`prototype` segment or top-level key) are
|
|
132
|
+
* rejected with a structured error in the response's `errors` array.
|
|
133
|
+
*/
|
|
106
134
|
type UpdateMerge = {
|
|
107
|
-
type: 'merge'; /**
|
|
108
|
-
path
|
|
135
|
+
type: 'merge'; /** Optional path to the merge target. See {@link MergePath}. */
|
|
136
|
+
path?: MergePath; /** Object to merge. Must be a JSON object. */
|
|
109
137
|
value: any;
|
|
110
138
|
};
|
|
139
|
+
/** Per-op error returned by `state::update` / `stream::update`. */
|
|
140
|
+
type UpdateOpError = {
|
|
141
|
+
/** Index of the offending op within the original `ops` array. */op_index: number; /** Stable error code, e.g. `"merge.path.too_deep"`. */
|
|
142
|
+
code: string; /** Human-readable description with concrete numbers when applicable. */
|
|
143
|
+
message: string; /** Optional documentation URL. */
|
|
144
|
+
doc_url?: string;
|
|
145
|
+
};
|
|
111
146
|
/** Result of a stream delete operation. */
|
|
112
147
|
type DeleteResult = {
|
|
113
148
|
/** Previous value (if it existed). */old_value?: any;
|
|
@@ -181,5 +216,5 @@ interface IStream<TData> {
|
|
|
181
216
|
update(input: StreamUpdateInput): Promise<StreamUpdateResult<TData> | null>;
|
|
182
217
|
}
|
|
183
218
|
//#endregion
|
|
184
|
-
export {
|
|
185
|
-
//# sourceMappingURL=stream-
|
|
219
|
+
export { UpdateMerge as C, UpdateSet as D, UpdateRemove as E, UpdateIncrement as S, UpdateOpError as T, StreamTriggerConfig as _, StreamAuthResult as a, UpdateAppend as b, StreamDeleteInput as c, StreamJoinLeaveTriggerConfig as d, StreamJoinResult as f, StreamSetResult as g, StreamSetInput as h, StreamAuthInput as i, StreamGetInput as l, StreamListInput as m, IStream as n, StreamChangeEvent as o, StreamListGroupsInput as p, MergePath as r, StreamContext as s, DeleteResult as t, StreamJoinLeaveEvent as u, StreamUpdateInput as v, UpdateOp as w, UpdateDecrement as x, StreamUpdateResult as y };
|
|
220
|
+
//# sourceMappingURL=stream-ChlMkAz6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-ChlMkAz6.d.mts","names":[],"sources":["../src/stream.ts"],"mappings":";;UACiB,eAAA;EAAe;EAE9B,OAAA,EAAS,MAAA;EAIW;EAFpB,IAAA;EAFS;EAIT,YA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angeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, UpdateAppend, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateRemove, UpdateSet };
|
|
1
|
+
import { C as UpdateMerge, D as UpdateSet, E as UpdateRemove, S as UpdateIncrement, T as UpdateOpError, _ as StreamTriggerConfig, a as StreamAuthResult, b as UpdateAppend, c as StreamDeleteInput, d as StreamJoinLeaveTriggerConfig, f as StreamJoinResult, g as StreamSetResult, h as StreamSetInput, i as StreamAuthInput, l as StreamGetInput, m as StreamListInput, n as IStream, o as StreamChangeEvent, p as StreamListGroupsInput, r as MergePath, s as StreamContext, t as DeleteResult, u as StreamJoinLeaveEvent, v as StreamUpdateInput, w as UpdateOp, x as UpdateDecrement, y as StreamUpdateResult } from "./stream-B-ntbFGR.cjs";
|
|
2
|
+
export { DeleteResult, IStream, MergePath, StreamAuthInput, StreamAuthResult, StreamChangeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, UpdateAppend, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateOpError, UpdateRemove, UpdateSet };
|
package/dist/stream.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { DeleteResult, IStream, StreamAuthInput, StreamAuthResult, StreamChangeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, UpdateAppend, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateRemove, UpdateSet };
|
|
1
|
+
import { C as UpdateMerge, D as UpdateSet, E as UpdateRemove, S as UpdateIncrement, T as UpdateOpError, _ as StreamTriggerConfig, a as StreamAuthResult, b as UpdateAppend, c as StreamDeleteInput, d as StreamJoinLeaveTriggerConfig, f as StreamJoinResult, g as StreamSetResult, h as StreamSetInput, i as StreamAuthInput, l as StreamGetInput, m as StreamListInput, n as IStream, o as StreamChangeEvent, p as StreamListGroupsInput, r as MergePath, s as StreamContext, t as DeleteResult, u as StreamJoinLeaveEvent, v as StreamUpdateInput, w as UpdateOp, x as UpdateDecrement, y as StreamUpdateResult } from "./stream-ChlMkAz6.mjs";
|
|
2
|
+
export { DeleteResult, IStream, MergePath, StreamAuthInput, StreamAuthResult, StreamChangeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, UpdateAppend, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateOpError, UpdateRemove, UpdateSet };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-CWBlORL-.d.mts","names":[],"sources":["../src/stream.ts"],"mappings":";;UACiB,eAAA;EAAe;EAE9B,OAAA,EAAS,MAAA;EAIW;EAFpB,IAAA;EAFS;EAIT,YAAA,EAAc,MAAA;EAAd;EAEA,IAAA;AAAA;;UAIe,gBAAA;EAAA;EAGf,OAAA;AAAA;;KAIU,aAAA,GAAgB,gBAAA;AAA5B;AAAA,UAGiB,oBAAA;;EAEf,eAAA;EAL0C;EAO1C,WAAA;EAJmC;EAMnC,QAAA;EAIuB;EAFvB,EAAA;EAJA;EAMA,OAAA,GAAU,aAAA;AAAA;;UAIK,gBAAA;EAJQ;EAMvB,YAAA;AAAA;;KAIU,cAAA;EAJ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