iii-browser-sdk 0.11.4-next.2 → 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-CFNksphp.d.cts → stream-B-ntbFGR.d.cts} +52 -11
- package/dist/stream-B-ntbFGR.d.cts.map +1 -0
- package/dist/{stream-CvySXdfI.d.mts → stream-ChlMkAz6.d.mts} +52 -11
- 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-CFNksphp.d.cts.map +0 -1
- package/dist/stream-CvySXdfI.d.mts.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;iCAE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BA,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;AAAA;;K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BAAA,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,36 +72,77 @@ 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 = {
|
|
78
|
-
type: 'set'; /**
|
|
83
|
+
type: 'set'; /** First-level field path. Use an empty string to target the root value. */
|
|
79
84
|
path: string; /** Value to set. */
|
|
80
85
|
value: any;
|
|
81
86
|
};
|
|
82
87
|
/** Increment a numeric field by a given amount. */
|
|
83
88
|
type UpdateIncrement = {
|
|
84
|
-
type: 'increment'; /**
|
|
89
|
+
type: 'increment'; /** First-level field path. */
|
|
85
90
|
path: string; /** Amount to increment by. */
|
|
86
91
|
by: number;
|
|
87
92
|
};
|
|
88
93
|
/** Decrement a numeric field by a given amount. */
|
|
89
94
|
type UpdateDecrement = {
|
|
90
|
-
type: 'decrement'; /**
|
|
95
|
+
type: 'decrement'; /** First-level field path. */
|
|
91
96
|
path: string; /** Amount to decrement by. */
|
|
92
97
|
by: number;
|
|
93
98
|
};
|
|
99
|
+
/** Append an element to an array or concatenate a string. */
|
|
100
|
+
type UpdateAppend = {
|
|
101
|
+
type: 'append'; /** First-level field path. Use an empty string to target the root value. */
|
|
102
|
+
path: string; /** Value to append. String targets only accept string values. */
|
|
103
|
+
value: any;
|
|
104
|
+
};
|
|
94
105
|
/** Remove a field at the given path. */
|
|
95
106
|
type UpdateRemove = {
|
|
96
|
-
type: 'remove'; /**
|
|
107
|
+
type: 'remove'; /** First-level field path. */
|
|
97
108
|
path: string;
|
|
98
109
|
};
|
|
99
|
-
/**
|
|
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
|
+
*/
|
|
100
134
|
type UpdateMerge = {
|
|
101
|
-
type: 'merge'; /**
|
|
102
|
-
path
|
|
135
|
+
type: 'merge'; /** Optional path to the merge target. See {@link MergePath}. */
|
|
136
|
+
path?: MergePath; /** Object to merge. Must be a JSON object. */
|
|
103
137
|
value: any;
|
|
104
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
|
+
};
|
|
105
146
|
/** Result of a stream delete operation. */
|
|
106
147
|
type DeleteResult = {
|
|
107
148
|
/** Previous value (if it existed). */old_value?: any;
|
|
@@ -110,9 +151,9 @@ type DeleteResult = {
|
|
|
110
151
|
* Union of all atomic update operations supported by streams.
|
|
111
152
|
*
|
|
112
153
|
* @see {@link UpdateSet}, {@link UpdateIncrement}, {@link UpdateDecrement},
|
|
113
|
-
* {@link UpdateRemove}, {@link UpdateMerge}
|
|
154
|
+
* {@link UpdateAppend}, {@link UpdateRemove}, {@link UpdateMerge}
|
|
114
155
|
*/
|
|
115
|
-
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateRemove | UpdateMerge;
|
|
156
|
+
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateAppend | UpdateRemove | UpdateMerge;
|
|
116
157
|
/** Input for atomically updating a stream item. */
|
|
117
158
|
type StreamUpdateInput = {
|
|
118
159
|
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
@@ -175,5 +216,5 @@ interface IStream<TData> {
|
|
|
175
216
|
update(input: StreamUpdateInput): Promise<StreamUpdateResult<TData> | null>;
|
|
176
217
|
}
|
|
177
218
|
//#endregion
|
|
178
|
-
export {
|
|
179
|
-
//# 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,OAA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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 = {
|
|
78
|
-
type: 'set'; /**
|
|
83
|
+
type: 'set'; /** First-level field path. Use an empty string to target the root value. */
|
|
79
84
|
path: string; /** Value to set. */
|
|
80
85
|
value: any;
|
|
81
86
|
};
|
|
82
87
|
/** Increment a numeric field by a given amount. */
|
|
83
88
|
type UpdateIncrement = {
|
|
84
|
-
type: 'increment'; /**
|
|
89
|
+
type: 'increment'; /** First-level field path. */
|
|
85
90
|
path: string; /** Amount to increment by. */
|
|
86
91
|
by: number;
|
|
87
92
|
};
|
|
88
93
|
/** Decrement a numeric field by a given amount. */
|
|
89
94
|
type UpdateDecrement = {
|
|
90
|
-
type: 'decrement'; /**
|
|
95
|
+
type: 'decrement'; /** First-level field path. */
|
|
91
96
|
path: string; /** Amount to decrement by. */
|
|
92
97
|
by: number;
|
|
93
98
|
};
|
|
99
|
+
/** Append an element to an array or concatenate a string. */
|
|
100
|
+
type UpdateAppend = {
|
|
101
|
+
type: 'append'; /** First-level field path. Use an empty string to target the root value. */
|
|
102
|
+
path: string; /** Value to append. String targets only accept string values. */
|
|
103
|
+
value: any;
|
|
104
|
+
};
|
|
94
105
|
/** Remove a field at the given path. */
|
|
95
106
|
type UpdateRemove = {
|
|
96
|
-
type: 'remove'; /**
|
|
107
|
+
type: 'remove'; /** First-level field path. */
|
|
97
108
|
path: string;
|
|
98
109
|
};
|
|
99
|
-
/**
|
|
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
|
+
*/
|
|
100
134
|
type UpdateMerge = {
|
|
101
|
-
type: 'merge'; /**
|
|
102
|
-
path
|
|
135
|
+
type: 'merge'; /** Optional path to the merge target. See {@link MergePath}. */
|
|
136
|
+
path?: MergePath; /** Object to merge. Must be a JSON object. */
|
|
103
137
|
value: any;
|
|
104
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
|
+
};
|
|
105
146
|
/** Result of a stream delete operation. */
|
|
106
147
|
type DeleteResult = {
|
|
107
148
|
/** Previous value (if it existed). */old_value?: any;
|
|
@@ -110,9 +151,9 @@ type DeleteResult = {
|
|
|
110
151
|
* Union of all atomic update operations supported by streams.
|
|
111
152
|
*
|
|
112
153
|
* @see {@link UpdateSet}, {@link UpdateIncrement}, {@link UpdateDecrement},
|
|
113
|
-
* {@link UpdateRemove}, {@link UpdateMerge}
|
|
154
|
+
* {@link UpdateAppend}, {@link UpdateRemove}, {@link UpdateMerge}
|
|
114
155
|
*/
|
|
115
|
-
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateRemove | UpdateMerge;
|
|
156
|
+
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateAppend | UpdateRemove | UpdateMerge;
|
|
116
157
|
/** Input for atomically updating a stream item. */
|
|
117
158
|
type StreamUpdateInput = {
|
|
118
159
|
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
@@ -175,5 +216,5 @@ interface IStream<TData> {
|
|
|
175
216
|
update(input: StreamUpdateInput): Promise<StreamUpdateResult<TData> | null>;
|
|
176
217
|
}
|
|
177
218
|
//#endregion
|
|
178
|
-
export {
|
|
179
|
-
//# 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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uthInput, StreamAuthResult, StreamChangeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, 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 UpdateRemove, S as
|
|
2
|
-
export { DeleteResult, IStream, StreamAuthInput, StreamAuthResult, StreamChangeEvent, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinLeaveTriggerConfig, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamTriggerConfig, StreamUpdateInput, StreamUpdateResult, 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-CFNksphp.d.cts","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;;KA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