iii-sdk 0.9.0 → 0.10.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/index.cjs +46 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +30 -24
- package/dist/index.mjs.map +1 -1
- package/dist/state.cjs +6 -5
- package/dist/state.cjs.map +1 -1
- package/dist/state.d.cts +13 -30
- package/dist/state.d.cts.map +1 -1
- package/dist/state.d.mts +13 -30
- package/dist/state.d.mts.map +1 -1
- package/dist/state.mjs +5 -5
- package/dist/state.mjs.map +1 -1
- package/dist/{stream-BAjVneSg.d.mts → stream-C1zUjhzk.d.mts} +25 -56
- package/dist/stream-C1zUjhzk.d.mts.map +1 -0
- package/dist/{stream-DUNsytJU.d.cts → stream-lxenNA3s.d.cts} +25 -56
- package/dist/stream-lxenNA3s.d.cts.map +1 -0
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.mts +1 -1
- package/dist/telemetry.cjs +6 -5
- package/dist/telemetry.d.cts +1 -1
- package/dist/telemetry.d.cts.map +1 -1
- package/dist/telemetry.d.mts +1 -1
- package/dist/telemetry.d.mts.map +1 -1
- package/dist/telemetry.mjs +1 -1
- package/dist/{utils-D6RPYBhs.d.cts → utils-BvWlFlLq.d.cts} +60 -121
- package/dist/utils-BvWlFlLq.d.cts.map +1 -0
- package/dist/{utils-bsZVduQi.cjs → utils-C6yTT4Js.cjs} +95 -95
- package/dist/utils-C6yTT4Js.cjs.map +1 -0
- package/dist/{utils-BRn3Iff5.d.mts → utils-_zSeatp1.d.mts} +60 -121
- package/dist/utils-_zSeatp1.d.mts.map +1 -0
- package/dist/{utils-5jD8F3OE.mjs → utils-xBUm8n1P.mjs} +28 -28
- package/dist/utils-xBUm8n1P.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/stream-BAjVneSg.d.mts.map +0 -1
- package/dist/stream-DUNsytJU.d.cts.map +0 -1
- package/dist/utils-5jD8F3OE.mjs.map +0 -1
- package/dist/utils-BRn3Iff5.d.mts.map +0 -1
- package/dist/utils-D6RPYBhs.d.cts.map +0 -1
- package/dist/utils-bsZVduQi.cjs.map +0 -1
package/dist/state.d.cts
CHANGED
|
@@ -1,72 +1,55 @@
|
|
|
1
|
-
import { y as UpdateOp } from "./stream-
|
|
1
|
+
import { y as UpdateOp } from "./stream-lxenNA3s.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/state.d.ts
|
|
4
4
|
/** Input for retrieving a state value. */
|
|
5
5
|
type StateGetInput = {
|
|
6
|
-
/** State scope (namespace). */
|
|
7
|
-
scope: string;
|
|
8
|
-
/** Key within the scope. */
|
|
6
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
9
7
|
key: string;
|
|
10
8
|
};
|
|
11
9
|
/** Input for setting a state value. */
|
|
12
10
|
type StateSetInput = {
|
|
13
|
-
/** State scope (namespace). */
|
|
14
|
-
|
|
15
|
-
/** Key within the scope. */
|
|
16
|
-
key: string;
|
|
17
|
-
/** Value to store. */
|
|
11
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
12
|
+
key: string; /** Value to store. */
|
|
18
13
|
value: any;
|
|
19
14
|
};
|
|
20
15
|
/** Input for deleting a state value. */
|
|
21
16
|
type StateDeleteInput = {
|
|
22
|
-
/** State scope (namespace). */
|
|
23
|
-
scope: string;
|
|
24
|
-
/** Key within the scope. */
|
|
17
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
25
18
|
key: string;
|
|
26
19
|
};
|
|
27
20
|
/** Result of a state delete operation. */
|
|
28
21
|
type StateDeleteResult = {
|
|
29
|
-
/** Previous value (if it existed). */
|
|
30
|
-
old_value?: any;
|
|
22
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
31
23
|
};
|
|
32
24
|
/** Input for listing all values in a state scope. */
|
|
33
25
|
type StateListInput = {
|
|
34
|
-
/** State scope (namespace). */
|
|
35
|
-
scope: string;
|
|
26
|
+
/** State scope (namespace). */scope: string;
|
|
36
27
|
};
|
|
37
28
|
/** Result of a state set operation. */
|
|
38
29
|
type StateSetResult<TData> = {
|
|
39
|
-
/** Previous value (if it existed). */
|
|
40
|
-
old_value?: TData;
|
|
41
|
-
/** New value that was stored. */
|
|
30
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value that was stored. */
|
|
42
31
|
new_value: TData;
|
|
43
32
|
};
|
|
44
33
|
/** Result of a state update operation. */
|
|
45
34
|
type StateUpdateResult<TData> = {
|
|
46
|
-
/** Previous value (if it existed). */
|
|
47
|
-
old_value?: TData;
|
|
48
|
-
/** New value after the update. */
|
|
35
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
49
36
|
new_value: TData;
|
|
50
37
|
};
|
|
51
38
|
/** Result of a state delete operation. */
|
|
52
39
|
type DeleteResult = {
|
|
53
|
-
/** Previous value (if it existed). */
|
|
54
|
-
old_value?: any;
|
|
40
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
55
41
|
};
|
|
56
42
|
/** Input for atomically updating a state value. */
|
|
57
43
|
type StateUpdateInput = {
|
|
58
|
-
/** State scope (namespace). */
|
|
59
|
-
|
|
60
|
-
/** Key within the scope. */
|
|
61
|
-
key: string;
|
|
62
|
-
/** Ordered list of update operations to apply atomically. */
|
|
44
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
45
|
+
key: string; /** Ordered list of update operations to apply atomically. */
|
|
63
46
|
ops: UpdateOp[];
|
|
64
47
|
};
|
|
65
48
|
/** Types of state change events. */
|
|
66
49
|
declare enum StateEventType {
|
|
67
50
|
Created = "state:created",
|
|
68
51
|
Updated = "state:updated",
|
|
69
|
-
Deleted = "state:deleted"
|
|
52
|
+
Deleted = "state:deleted"
|
|
70
53
|
}
|
|
71
54
|
/** Payload for state change events. */
|
|
72
55
|
interface StateEventData<TData = any> {
|
package/d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AAA;EAfhC;EAiBZ,MAAA,QAAc,KAAA,EAAO,gBAAA,GAAmB,OAAA,CAAQ,iBAAA,CAAkB,KAAA;AAAA"}
|
package/dist/state.d.mts
CHANGED
|
@@ -1,72 +1,55 @@
|
|
|
1
|
-
import { y as UpdateOp } from "./stream-
|
|
1
|
+
import { y as UpdateOp } from "./stream-C1zUjhzk.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/state.d.ts
|
|
4
4
|
/** Input for retrieving a state value. */
|
|
5
5
|
type StateGetInput = {
|
|
6
|
-
/** State scope (namespace). */
|
|
7
|
-
scope: string;
|
|
8
|
-
/** Key within the scope. */
|
|
6
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
9
7
|
key: string;
|
|
10
8
|
};
|
|
11
9
|
/** Input for setting a state value. */
|
|
12
10
|
type StateSetInput = {
|
|
13
|
-
/** State scope (namespace). */
|
|
14
|
-
|
|
15
|
-
/** Key within the scope. */
|
|
16
|
-
key: string;
|
|
17
|
-
/** Value to store. */
|
|
11
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
12
|
+
key: string; /** Value to store. */
|
|
18
13
|
value: any;
|
|
19
14
|
};
|
|
20
15
|
/** Input for deleting a state value. */
|
|
21
16
|
type StateDeleteInput = {
|
|
22
|
-
/** State scope (namespace). */
|
|
23
|
-
scope: string;
|
|
24
|
-
/** Key within the scope. */
|
|
17
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
25
18
|
key: string;
|
|
26
19
|
};
|
|
27
20
|
/** Result of a state delete operation. */
|
|
28
21
|
type StateDeleteResult = {
|
|
29
|
-
/** Previous value (if it existed). */
|
|
30
|
-
old_value?: any;
|
|
22
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
31
23
|
};
|
|
32
24
|
/** Input for listing all values in a state scope. */
|
|
33
25
|
type StateListInput = {
|
|
34
|
-
/** State scope (namespace). */
|
|
35
|
-
scope: string;
|
|
26
|
+
/** State scope (namespace). */scope: string;
|
|
36
27
|
};
|
|
37
28
|
/** Result of a state set operation. */
|
|
38
29
|
type StateSetResult<TData> = {
|
|
39
|
-
/** Previous value (if it existed). */
|
|
40
|
-
old_value?: TData;
|
|
41
|
-
/** New value that was stored. */
|
|
30
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value that was stored. */
|
|
42
31
|
new_value: TData;
|
|
43
32
|
};
|
|
44
33
|
/** Result of a state update operation. */
|
|
45
34
|
type StateUpdateResult<TData> = {
|
|
46
|
-
/** Previous value (if it existed). */
|
|
47
|
-
old_value?: TData;
|
|
48
|
-
/** New value after the update. */
|
|
35
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
49
36
|
new_value: TData;
|
|
50
37
|
};
|
|
51
38
|
/** Result of a state delete operation. */
|
|
52
39
|
type DeleteResult = {
|
|
53
|
-
/** Previous value (if it existed). */
|
|
54
|
-
old_value?: any;
|
|
40
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
55
41
|
};
|
|
56
42
|
/** Input for atomically updating a state value. */
|
|
57
43
|
type StateUpdateInput = {
|
|
58
|
-
/** State scope (namespace). */
|
|
59
|
-
|
|
60
|
-
/** Key within the scope. */
|
|
61
|
-
key: string;
|
|
62
|
-
/** Ordered list of update operations to apply atomically. */
|
|
44
|
+
/** State scope (namespace). */scope: string; /** Key within the scope. */
|
|
45
|
+
key: string; /** Ordered list of update operations to apply atomically. */
|
|
63
46
|
ops: UpdateOp[];
|
|
64
47
|
};
|
|
65
48
|
/** Types of state change events. */
|
|
66
49
|
declare enum StateEventType {
|
|
67
50
|
Created = "state:created",
|
|
68
51
|
Updated = "state:updated",
|
|
69
|
-
Deleted = "state:deleted"
|
|
52
|
+
Deleted = "state:deleted"
|
|
70
53
|
}
|
|
71
54
|
/** Payload for state change events. */
|
|
72
55
|
interface StateEventData<TData = any> {
|
package/dist/state.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.mts","names":[],"sources":["../src/state.ts"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AAAA"}
|
package/dist/state.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/state.ts
|
|
2
2
|
/** Types of state change events. */
|
|
3
|
-
let StateEventType = /* @__PURE__ */ function(StateEventType
|
|
4
|
-
StateEventType
|
|
5
|
-
StateEventType
|
|
6
|
-
StateEventType
|
|
7
|
-
return StateEventType
|
|
3
|
+
let StateEventType = /* @__PURE__ */ function(StateEventType) {
|
|
4
|
+
StateEventType["Created"] = "state:created";
|
|
5
|
+
StateEventType["Updated"] = "state:updated";
|
|
6
|
+
StateEventType["Deleted"] = "state:deleted";
|
|
7
|
+
return StateEventType;
|
|
8
8
|
}({});
|
|
9
9
|
|
|
10
10
|
//#endregion
|
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":";;AA4EA,IAAY,
|
|
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":";;AA4EA,IAAY,iBAAL;AACL;AACA;AACA;;KACD"}
|
|
@@ -37,101 +37,74 @@ interface StreamJoinResult {
|
|
|
37
37
|
}
|
|
38
38
|
/** Input for retrieving a single stream item. */
|
|
39
39
|
type StreamGetInput = {
|
|
40
|
-
/** Name of the stream. */
|
|
41
|
-
|
|
42
|
-
/** Group identifier. */
|
|
43
|
-
group_id: string;
|
|
44
|
-
/** Item identifier. */
|
|
40
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
41
|
+
group_id: string; /** Item identifier. */
|
|
45
42
|
item_id: string;
|
|
46
43
|
};
|
|
47
44
|
/** Input for setting a stream item. */
|
|
48
45
|
type StreamSetInput = {
|
|
49
|
-
/** Name of the stream. */
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
group_id: string;
|
|
53
|
-
/** Item identifier. */
|
|
54
|
-
item_id: string;
|
|
55
|
-
/** Data to store. */
|
|
46
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
47
|
+
group_id: string; /** Item identifier. */
|
|
48
|
+
item_id: string; /** Data to store. */
|
|
56
49
|
data: any;
|
|
57
50
|
};
|
|
58
51
|
/** Input for deleting a stream item. */
|
|
59
52
|
type StreamDeleteInput = {
|
|
60
|
-
/** Name of the stream. */
|
|
61
|
-
|
|
62
|
-
/** Group identifier. */
|
|
63
|
-
group_id: string;
|
|
64
|
-
/** Item identifier. */
|
|
53
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
54
|
+
group_id: string; /** Item identifier. */
|
|
65
55
|
item_id: string;
|
|
66
56
|
};
|
|
67
57
|
/** Input for listing all items in a stream group. */
|
|
68
58
|
type StreamListInput = {
|
|
69
|
-
/** Name of the stream. */
|
|
70
|
-
stream_name: string;
|
|
71
|
-
/** Group identifier. */
|
|
59
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
72
60
|
group_id: string;
|
|
73
61
|
};
|
|
74
62
|
/** Input for listing all groups in a stream. */
|
|
75
63
|
type StreamListGroupsInput = {
|
|
76
|
-
/** Name of the stream. */
|
|
77
|
-
stream_name: string;
|
|
64
|
+
/** Name of the stream. */stream_name: string;
|
|
78
65
|
};
|
|
79
66
|
/** Result of a stream set operation. */
|
|
80
67
|
type StreamSetResult<TData> = {
|
|
81
|
-
/** Previous value (if it existed). */
|
|
82
|
-
old_value?: TData;
|
|
83
|
-
/** New value that was stored. */
|
|
68
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value that was stored. */
|
|
84
69
|
new_value: TData;
|
|
85
70
|
};
|
|
86
71
|
/** Result of a stream update operation. */
|
|
87
72
|
type StreamUpdateResult<TData> = {
|
|
88
|
-
/** Previous value (if it existed). */
|
|
89
|
-
old_value?: TData;
|
|
90
|
-
/** New value after the update. */
|
|
73
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
91
74
|
new_value: TData;
|
|
92
75
|
};
|
|
93
76
|
/** Set a field at the given path to a value. */
|
|
94
77
|
type UpdateSet = {
|
|
95
|
-
type: 'set';
|
|
96
|
-
|
|
97
|
-
path: string;
|
|
98
|
-
/** Value to set. */
|
|
78
|
+
type: 'set'; /** Dot-separated field path (e.g. `user.name`). */
|
|
79
|
+
path: string; /** Value to set. */
|
|
99
80
|
value: any;
|
|
100
81
|
};
|
|
101
82
|
/** Increment a numeric field by a given amount. */
|
|
102
83
|
type UpdateIncrement = {
|
|
103
|
-
type: 'increment';
|
|
104
|
-
/**
|
|
105
|
-
path: string;
|
|
106
|
-
/** Amount to increment by. */
|
|
84
|
+
type: 'increment'; /** Dot-separated field path. */
|
|
85
|
+
path: string; /** Amount to increment by. */
|
|
107
86
|
by: number;
|
|
108
87
|
};
|
|
109
88
|
/** Decrement a numeric field by a given amount. */
|
|
110
89
|
type UpdateDecrement = {
|
|
111
|
-
type: 'decrement';
|
|
112
|
-
/**
|
|
113
|
-
path: string;
|
|
114
|
-
/** Amount to decrement by. */
|
|
90
|
+
type: 'decrement'; /** Dot-separated field path. */
|
|
91
|
+
path: string; /** Amount to decrement by. */
|
|
115
92
|
by: number;
|
|
116
93
|
};
|
|
117
94
|
/** Remove a field at the given path. */
|
|
118
95
|
type UpdateRemove = {
|
|
119
|
-
type: 'remove';
|
|
120
|
-
/** Dot-separated field path. */
|
|
96
|
+
type: 'remove'; /** Dot-separated field path. */
|
|
121
97
|
path: string;
|
|
122
98
|
};
|
|
123
99
|
/** Deep-merge an object into the field at the given path. */
|
|
124
100
|
type UpdateMerge = {
|
|
125
|
-
type: 'merge';
|
|
126
|
-
/**
|
|
127
|
-
path: string;
|
|
128
|
-
/** Object to merge. */
|
|
101
|
+
type: 'merge'; /** Dot-separated field path. */
|
|
102
|
+
path: string; /** Object to merge. */
|
|
129
103
|
value: any;
|
|
130
104
|
};
|
|
131
105
|
/** Result of a stream delete operation. */
|
|
132
106
|
type DeleteResult = {
|
|
133
|
-
/** Previous value (if it existed). */
|
|
134
|
-
old_value?: any;
|
|
107
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
135
108
|
};
|
|
136
109
|
/**
|
|
137
110
|
* Union of all atomic update operations supported by streams.
|
|
@@ -142,13 +115,9 @@ type DeleteResult = {
|
|
|
142
115
|
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateRemove | UpdateMerge;
|
|
143
116
|
/** Input for atomically updating a stream item. */
|
|
144
117
|
type StreamUpdateInput = {
|
|
145
|
-
/** Name of the stream. */
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
group_id: string;
|
|
149
|
-
/** Item identifier. */
|
|
150
|
-
item_id: string;
|
|
151
|
-
/** Ordered list of update operations to apply atomically. */
|
|
118
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
119
|
+
group_id: string; /** Item identifier. */
|
|
120
|
+
item_id: string; /** Ordered list of update operations to apply atomically. */
|
|
152
121
|
ops: UpdateOp[];
|
|
153
122
|
};
|
|
154
123
|
/**
|
|
@@ -173,4 +142,4 @@ interface IStream<TData> {
|
|
|
173
142
|
}
|
|
174
143
|
//#endregion
|
|
175
144
|
export { UpdateIncrement as _, StreamContext as a, UpdateRemove as b, StreamJoinLeaveEvent as c, StreamListInput as d, StreamSetInput as f, UpdateDecrement as g, StreamUpdateResult as h, StreamAuthResult as i, StreamJoinResult as l, StreamUpdateInput as m, IStream as n, StreamDeleteInput as o, StreamSetResult as p, StreamAuthInput as r, StreamGetInput as s, DeleteResult as t, StreamListGroupsInput as u, UpdateMerge as v, UpdateSet as x, UpdateOp as y };
|
|
176
|
-
//# sourceMappingURL=stream-
|
|
145
|
+
//# sourceMappingURL=stream-C1zUjhzk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-C1zUjhzk.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;EAJV,0BAMA,WAAA,UAFU;EAIV,QAAA;EAEA,OAAA;AAAA;;KAIU,cAAA;EAJH,0BAMP,WAAA,UAFU;EAIV,QAAA;EAEA,OAAA,UAJA;EAOA,IAAA;AAAA;;KAIU,iBAAA;EAJN,0BAMJ,WAAA,UAF2B;EAI3B,QAAA,UAJ2B;EAM3B,OAAA;AAAA;;KAIU,eAAA;EAJH,0BAMP,WAAA,UAFyB;EAIzB,QAAA;AAAA;;KAIU,q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 @@ interface StreamJoinResult {
|
|
|
37
37
|
}
|
|
38
38
|
/** Input for retrieving a single stream item. */
|
|
39
39
|
type StreamGetInput = {
|
|
40
|
-
/** Name of the stream. */
|
|
41
|
-
|
|
42
|
-
/** Group identifier. */
|
|
43
|
-
group_id: string;
|
|
44
|
-
/** Item identifier. */
|
|
40
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
41
|
+
group_id: string; /** Item identifier. */
|
|
45
42
|
item_id: string;
|
|
46
43
|
};
|
|
47
44
|
/** Input for setting a stream item. */
|
|
48
45
|
type StreamSetInput = {
|
|
49
|
-
/** Name of the stream. */
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
group_id: string;
|
|
53
|
-
/** Item identifier. */
|
|
54
|
-
item_id: string;
|
|
55
|
-
/** Data to store. */
|
|
46
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
47
|
+
group_id: string; /** Item identifier. */
|
|
48
|
+
item_id: string; /** Data to store. */
|
|
56
49
|
data: any;
|
|
57
50
|
};
|
|
58
51
|
/** Input for deleting a stream item. */
|
|
59
52
|
type StreamDeleteInput = {
|
|
60
|
-
/** Name of the stream. */
|
|
61
|
-
|
|
62
|
-
/** Group identifier. */
|
|
63
|
-
group_id: string;
|
|
64
|
-
/** Item identifier. */
|
|
53
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
54
|
+
group_id: string; /** Item identifier. */
|
|
65
55
|
item_id: string;
|
|
66
56
|
};
|
|
67
57
|
/** Input for listing all items in a stream group. */
|
|
68
58
|
type StreamListInput = {
|
|
69
|
-
/** Name of the stream. */
|
|
70
|
-
stream_name: string;
|
|
71
|
-
/** Group identifier. */
|
|
59
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
72
60
|
group_id: string;
|
|
73
61
|
};
|
|
74
62
|
/** Input for listing all groups in a stream. */
|
|
75
63
|
type StreamListGroupsInput = {
|
|
76
|
-
/** Name of the stream. */
|
|
77
|
-
stream_name: string;
|
|
64
|
+
/** Name of the stream. */stream_name: string;
|
|
78
65
|
};
|
|
79
66
|
/** Result of a stream set operation. */
|
|
80
67
|
type StreamSetResult<TData> = {
|
|
81
|
-
/** Previous value (if it existed). */
|
|
82
|
-
old_value?: TData;
|
|
83
|
-
/** New value that was stored. */
|
|
68
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value that was stored. */
|
|
84
69
|
new_value: TData;
|
|
85
70
|
};
|
|
86
71
|
/** Result of a stream update operation. */
|
|
87
72
|
type StreamUpdateResult<TData> = {
|
|
88
|
-
/** Previous value (if it existed). */
|
|
89
|
-
old_value?: TData;
|
|
90
|
-
/** New value after the update. */
|
|
73
|
+
/** Previous value (if it existed). */old_value?: TData; /** New value after the update. */
|
|
91
74
|
new_value: TData;
|
|
92
75
|
};
|
|
93
76
|
/** Set a field at the given path to a value. */
|
|
94
77
|
type UpdateSet = {
|
|
95
|
-
type: 'set';
|
|
96
|
-
|
|
97
|
-
path: string;
|
|
98
|
-
/** Value to set. */
|
|
78
|
+
type: 'set'; /** Dot-separated field path (e.g. `user.name`). */
|
|
79
|
+
path: string; /** Value to set. */
|
|
99
80
|
value: any;
|
|
100
81
|
};
|
|
101
82
|
/** Increment a numeric field by a given amount. */
|
|
102
83
|
type UpdateIncrement = {
|
|
103
|
-
type: 'increment';
|
|
104
|
-
/**
|
|
105
|
-
path: string;
|
|
106
|
-
/** Amount to increment by. */
|
|
84
|
+
type: 'increment'; /** Dot-separated field path. */
|
|
85
|
+
path: string; /** Amount to increment by. */
|
|
107
86
|
by: number;
|
|
108
87
|
};
|
|
109
88
|
/** Decrement a numeric field by a given amount. */
|
|
110
89
|
type UpdateDecrement = {
|
|
111
|
-
type: 'decrement';
|
|
112
|
-
/**
|
|
113
|
-
path: string;
|
|
114
|
-
/** Amount to decrement by. */
|
|
90
|
+
type: 'decrement'; /** Dot-separated field path. */
|
|
91
|
+
path: string; /** Amount to decrement by. */
|
|
115
92
|
by: number;
|
|
116
93
|
};
|
|
117
94
|
/** Remove a field at the given path. */
|
|
118
95
|
type UpdateRemove = {
|
|
119
|
-
type: 'remove';
|
|
120
|
-
/** Dot-separated field path. */
|
|
96
|
+
type: 'remove'; /** Dot-separated field path. */
|
|
121
97
|
path: string;
|
|
122
98
|
};
|
|
123
99
|
/** Deep-merge an object into the field at the given path. */
|
|
124
100
|
type UpdateMerge = {
|
|
125
|
-
type: 'merge';
|
|
126
|
-
/**
|
|
127
|
-
path: string;
|
|
128
|
-
/** Object to merge. */
|
|
101
|
+
type: 'merge'; /** Dot-separated field path. */
|
|
102
|
+
path: string; /** Object to merge. */
|
|
129
103
|
value: any;
|
|
130
104
|
};
|
|
131
105
|
/** Result of a stream delete operation. */
|
|
132
106
|
type DeleteResult = {
|
|
133
|
-
/** Previous value (if it existed). */
|
|
134
|
-
old_value?: any;
|
|
107
|
+
/** Previous value (if it existed). */old_value?: any;
|
|
135
108
|
};
|
|
136
109
|
/**
|
|
137
110
|
* Union of all atomic update operations supported by streams.
|
|
@@ -142,13 +115,9 @@ type DeleteResult = {
|
|
|
142
115
|
type UpdateOp = UpdateSet | UpdateIncrement | UpdateDecrement | UpdateRemove | UpdateMerge;
|
|
143
116
|
/** Input for atomically updating a stream item. */
|
|
144
117
|
type StreamUpdateInput = {
|
|
145
|
-
/** Name of the stream. */
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
group_id: string;
|
|
149
|
-
/** Item identifier. */
|
|
150
|
-
item_id: string;
|
|
151
|
-
/** Ordered list of update operations to apply atomically. */
|
|
118
|
+
/** Name of the stream. */stream_name: string; /** Group identifier. */
|
|
119
|
+
group_id: string; /** Item identifier. */
|
|
120
|
+
item_id: string; /** Ordered list of update operations to apply atomically. */
|
|
152
121
|
ops: UpdateOp[];
|
|
153
122
|
};
|
|
154
123
|
/**
|
|
@@ -173,4 +142,4 @@ interface IStream<TData> {
|
|
|
173
142
|
}
|
|
174
143
|
//#endregion
|
|
175
144
|
export { UpdateIncrement as _, StreamContext as a, UpdateRemove as b, StreamJoinLeaveEvent as c, StreamListInput as d, StreamSetInput as f, UpdateDecrement as g, StreamUpdateResult as h, StreamAuthResult as i, StreamJoinResult as l, StreamUpdateInput as m, IStream as n, StreamDeleteInput as o, StreamSetResult as p, StreamAuthInput as r, StreamGetInput as s, DeleteResult as t, StreamListGroupsInput as u, UpdateMerge as v, UpdateSet as x, UpdateOp as y };
|
|
176
|
-
//# sourceMappingURL=stream-
|
|
145
|
+
//# sourceMappingURL=stream-lxenNA3s.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-lxenNA3s.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;;KAIU,cAAA;EAJV,0BAMA,WAAA,UAFU;EAIV,QAAA;EAEA,OAAA;AAAA;;KAIU,cAAA;EAJH,0BAMP,WAAA,UAFU;EAIV,QAAA;EAEA,OAAA,UAJA;EAOA,IAAA;AAAA;;KAIU,iBAAA;EAJN,0BAMJ,WAAA,UAF2B;EAI3B,QAAA,UAJ2B;EAM3B,OAAA;AAAA;;KAIU,eAAA;EAJH,0BAMP,WAAA,UAFyB;EAIzB,QAAA;AAAA;;KAIU,qBAAA;EAAqB,0BAE/B,WAAA;AAAA;;KAIU,eAAA;EAAe,sCAEzB,SAAA,GAAY,KAAA,EAEI;EAAhB,SAAA,EAAW,KAAA;AAAA;;KAID,kBAAA;EAJC,sCAMX,SAAA,GAAY,KAAA,EANI;EAQhB,SAAA,EAAW,KAAA;AAAA;;KAID,SAAA;EACV,IAAA,SAPA;EASA,IAAA,UAPA;EAUA,KAAA;AAAA;;KAIU,eAAA;EACV,IAAA;EAEA,IAAA,UAZA;EAcA,EAAA;AAAA;;KAIU,eAAA;EACV,IAAA,eAVyB;EAYzB,IAAA,UAZyB;EAczB,EAAA;AAAA;;KAIU,YAAA;EACV,IAAA,YAVU;EAYV,IAAA;AAAA;;KAIU,WAAA;EACV,IAAA,WAZA;EAcA,IAAA,UAdE;EAiBF,KAAA;AAAA;;KAIU,YAAA;EAdN,sCAiBJ,SAAA;AAAA;;;;;;;KASU,QAAA,GAAW,SAAA,GAAY,eAAA,GAAkB,eAAA,GAAkB,YAAA,GAAe,WAAA;AAZtF;AAAA,KAeY,iBAAA;4BAEV,WAAA,UAdS;EAgBT,QAAA,UAPkB;EASlB,OAAA,UATqB;EAWrB,GAAA,EAAK,QAAA;AAAA;;;;;;;UASU,OAAA;EApBsD;EAsBrE,GAAA,CAAI,KAAA,EAAO,cAAA,GAAiB,OAAA,CAAQ,KAAA;EAtB2D;EAwB/F,GAAA,CAAI,KAAA,EAAO,cAAA,GAAiB,OAAA,CAAQ,eAAA,CAAgB,KAAA;EArB1C;EAuBV,MAAA,CAAO,KAAA,EAAO,iBAAA,GAAoB,OAAA,CAAQ,YAAA;;EAE1C,IAAA,CAAK,KAAA,EAAO,eAAA,GAAkB,OAAA,CAAQ,KAAA;EAvBtC;EAyBA,UAAA,CAAW,KAAA,EAAO,qBAAA,GAAwB,OAAA;EArB1C;EAuBA,MAAA,CAAO,KAAA,EAAO,iBAAA,GAAoB,OAAA,CAAQ,kBAAA,CAAmB,KAAA;AAAA"}
|
package/dist/stream.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as UpdateIncrement, a as StreamContext, b as UpdateRemove, c as StreamJoinLeaveEvent, d as StreamListInput, f as StreamSetInput, g as UpdateDecrement, h as StreamUpdateResult, i as StreamAuthResult, l as StreamJoinResult, m as StreamUpdateInput, n as IStream, o as StreamDeleteInput, p as StreamSetResult, r as StreamAuthInput, s as StreamGetInput, t as DeleteResult, u as StreamListGroupsInput, v as UpdateMerge, x as UpdateSet, y as UpdateOp } from "./stream-
|
|
1
|
+
import { _ as UpdateIncrement, a as StreamContext, b as UpdateRemove, c as StreamJoinLeaveEvent, d as StreamListInput, f as StreamSetInput, g as UpdateDecrement, h as StreamUpdateResult, i as StreamAuthResult, l as StreamJoinResult, m as StreamUpdateInput, n as IStream, o as StreamDeleteInput, p as StreamSetResult, r as StreamAuthInput, s as StreamGetInput, t as DeleteResult, u as StreamListGroupsInput, v as UpdateMerge, x as UpdateSet, y as UpdateOp } from "./stream-lxenNA3s.cjs";
|
|
2
2
|
export { DeleteResult, IStream, StreamAuthInput, StreamAuthResult, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamUpdateInput, StreamUpdateResult, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateRemove, UpdateSet };
|
package/dist/stream.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as UpdateIncrement, a as StreamContext, b as UpdateRemove, c as StreamJoinLeaveEvent, d as StreamListInput, f as StreamSetInput, g as UpdateDecrement, h as StreamUpdateResult, i as StreamAuthResult, l as StreamJoinResult, m as StreamUpdateInput, n as IStream, o as StreamDeleteInput, p as StreamSetResult, r as StreamAuthInput, s as StreamGetInput, t as DeleteResult, u as StreamListGroupsInput, v as UpdateMerge, x as UpdateSet, y as UpdateOp } from "./stream-
|
|
1
|
+
import { _ as UpdateIncrement, a as StreamContext, b as UpdateRemove, c as StreamJoinLeaveEvent, d as StreamListInput, f as StreamSetInput, g as UpdateDecrement, h as StreamUpdateResult, i as StreamAuthResult, l as StreamJoinResult, m as StreamUpdateInput, n as IStream, o as StreamDeleteInput, p as StreamSetResult, r as StreamAuthInput, s as StreamGetInput, t as DeleteResult, u as StreamListGroupsInput, v as UpdateMerge, x as UpdateSet, y as UpdateOp } from "./stream-C1zUjhzk.mjs";
|
|
2
2
|
export { DeleteResult, IStream, StreamAuthInput, StreamAuthResult, StreamContext, StreamDeleteInput, StreamGetInput, StreamJoinLeaveEvent, StreamJoinResult, StreamListGroupsInput, StreamListInput, StreamSetInput, StreamSetResult, StreamUpdateInput, StreamUpdateResult, UpdateDecrement, UpdateIncrement, UpdateMerge, UpdateOp, UpdateRemove, UpdateSet };
|
package/dist/telemetry.cjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_utils = require('./utils-C6yTT4Js.cjs');
|
|
2
3
|
const require_index = require('./index.cjs');
|
|
3
|
-
let
|
|
4
|
-
let
|
|
4
|
+
let _opentelemetry_api_logs = require("@opentelemetry/api-logs");
|
|
5
|
+
let _opentelemetry_api = require("@opentelemetry/api");
|
|
5
6
|
|
|
6
7
|
exports.DEFAULT_BRIDGE_RECONNECTION_CONFIG = require_utils.DEFAULT_BRIDGE_RECONNECTION_CONFIG;
|
|
7
8
|
exports.DEFAULT_INVOCATION_TIMEOUT_MS = require_utils.DEFAULT_INVOCATION_TIMEOUT_MS;
|
|
8
9
|
exports.EngineFunctions = require_utils.EngineFunctions;
|
|
9
10
|
exports.EngineTriggers = require_utils.EngineTriggers;
|
|
10
11
|
exports.LogFunctions = require_utils.LogFunctions;
|
|
11
|
-
exports.SeverityNumber =
|
|
12
|
-
exports.SpanStatusCode =
|
|
12
|
+
exports.SeverityNumber = _opentelemetry_api_logs.SeverityNumber;
|
|
13
|
+
exports.SpanStatusCode = _opentelemetry_api.SpanStatusCode;
|
|
13
14
|
exports.WorkerMetricsCollector = require_utils.WorkerMetricsCollector;
|
|
14
15
|
exports.currentSpanId = require_utils.currentSpanId;
|
|
15
16
|
exports.currentTraceId = require_utils.currentTraceId;
|
package/dist/telemetry.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as shutdownOtel, B as injectTraceparent, C as SeverityNumber, D as getMeter, E as getLogger, F as extractContext, G as DEFAULT_BRIDGE_RECONNECTION_CONFIG, H as setBaggageEntry, I as extractTraceparent, J as EngineTriggers, K as DEFAULT_INVOCATION_TIMEOUT_MS, L as getAllBaggage, M as currentSpanId, N as currentTraceId, O as getTracer, P as extractBaggage, R as getBaggageEntry, S as Meter, T as SpanStatusCode, U as OtelConfig, V as removeBaggageEntry, W as ReconnectionConfig, X as IIIReconnectionConfig, Y as IIIConnectionState, Z as LogFunctions, at as RegisterFunctionFormat, f as OtelLogEvent, j as withSpan, k as initOtel, mt as WorkerStatus, n as safeStringify, pt as WorkerInfo, q as EngineFunctions, s as FunctionsAvailableCallback, tt as FunctionInfo, w as Span, x as Logger, z as injectBaggage } from "./utils-
|
|
1
|
+
import { A as shutdownOtel, B as injectTraceparent, C as SeverityNumber, D as getMeter, E as getLogger, F as extractContext, G as DEFAULT_BRIDGE_RECONNECTION_CONFIG, H as setBaggageEntry, I as extractTraceparent, J as EngineTriggers, K as DEFAULT_INVOCATION_TIMEOUT_MS, L as getAllBaggage, M as currentSpanId, N as currentTraceId, O as getTracer, P as extractBaggage, R as getBaggageEntry, S as Meter, T as SpanStatusCode, U as OtelConfig, V as removeBaggageEntry, W as ReconnectionConfig, X as IIIReconnectionConfig, Y as IIIConnectionState, Z as LogFunctions, at as RegisterFunctionFormat, f as OtelLogEvent, j as withSpan, k as initOtel, mt as WorkerStatus, n as safeStringify, pt as WorkerInfo, q as EngineFunctions, s as FunctionsAvailableCallback, tt as FunctionInfo, w as Span, x as Logger, z as injectBaggage } from "./utils-BvWlFlLq.cjs";
|
|
2
2
|
import { Meter as Meter$1 } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/otel-worker-gauges.d.ts
|
package/dist/telemetry.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.cts","names":[],"sources":["../src/otel-worker-gauges.ts","../src/worker-metrics.ts"],"
|
|
1
|
+
{"version":3,"file":"telemetry.d.cts","names":[],"sources":["../src/otel-worker-gauges.ts","../src/worker-metrics.ts"],"mappings":";;;;UAGiB,mBAAA;EACf,QAAA;EACA,UAAA;AAAA;AAAA,iBASc,oBAAA,CAAqB,KAAA,EAAO,OAAA,EAAO,OAAA,EAAS,mBAAA;AAAA,iBAyH5C,gBAAA,CAAA;;;;;;;AApIhB;;;;;AAWA;KCDY,aAAA;EACV,gBAAA;EACA,iBAAA;EACA,UAAA;EACA,eAAA;EACA,eAAA;EACA,iBAAA;EACA,WAAA;EACA,iBAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;AAAA;;;;UAMe,6BAAA;EAjBL;;;;;EAuBV,qBAAA;AAAA;;;;;;;;;;;AANF;;;;;AA8BA;;;;;;cAAa,sBAAA;EAAA,iBACM,SAAA;EAAA,QACT,YAAA;EAAA,QACA,WAAA;EAAA,QACA,kBAAA;EAmBA;;;;;cAZI,OAAA,GAAS,6BAAA;;;;;;UAYb,wBAAA;;;;;EAaD,cAAA,CAAA;;;;;;;;;;;EAiBP,OAAA,CAAA,GAAW,aAAA;AAAA"}
|
package/dist/telemetry.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as shutdownOtel, B as injectTraceparent, C as SeverityNumber, D as getMeter, E as getLogger, F as extractContext, G as DEFAULT_BRIDGE_RECONNECTION_CONFIG, H as setBaggageEntry, I as extractTraceparent, J as EngineTriggers, K as DEFAULT_INVOCATION_TIMEOUT_MS, L as getAllBaggage, M as currentSpanId, N as currentTraceId, O as getTracer, P as extractBaggage, R as getBaggageEntry, S as Meter, T as SpanStatusCode, U as OtelConfig, V as removeBaggageEntry, W as ReconnectionConfig, X as IIIReconnectionConfig, Y as IIIConnectionState, Z as LogFunctions, at as RegisterFunctionFormat, f as OtelLogEvent, j as withSpan, k as initOtel, mt as WorkerStatus, n as safeStringify, pt as WorkerInfo, q as EngineFunctions, s as FunctionsAvailableCallback, tt as FunctionInfo, w as Span, x as Logger, z as injectBaggage } from "./utils-
|
|
1
|
+
import { A as shutdownOtel, B as injectTraceparent, C as SeverityNumber, D as getMeter, E as getLogger, F as extractContext, G as DEFAULT_BRIDGE_RECONNECTION_CONFIG, H as setBaggageEntry, I as extractTraceparent, J as EngineTriggers, K as DEFAULT_INVOCATION_TIMEOUT_MS, L as getAllBaggage, M as currentSpanId, N as currentTraceId, O as getTracer, P as extractBaggage, R as getBaggageEntry, S as Meter, T as SpanStatusCode, U as OtelConfig, V as removeBaggageEntry, W as ReconnectionConfig, X as IIIReconnectionConfig, Y as IIIConnectionState, Z as LogFunctions, at as RegisterFunctionFormat, f as OtelLogEvent, j as withSpan, k as initOtel, mt as WorkerStatus, n as safeStringify, pt as WorkerInfo, q as EngineFunctions, s as FunctionsAvailableCallback, tt as FunctionInfo, w as Span, x as Logger, z as injectBaggage } from "./utils-_zSeatp1.mjs";
|
|
2
2
|
import { Meter as Meter$1 } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/otel-worker-gauges.d.ts
|
package/dist/telemetry.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.mts","names":[],"sources":["../src/otel-worker-gauges.ts","../src/worker-metrics.ts"],"
|
|
1
|
+
{"version":3,"file":"telemetry.d.mts","names":[],"sources":["../src/otel-worker-gauges.ts","../src/worker-metrics.ts"],"mappings":";;;;UAGiB,mBAAA;EACf,QAAA;EACA,UAAA;AAAA;AAAA,iBASc,oBAAA,CAAqB,KAAA,EAAO,OAAA,EAAO,OAAA,EAAS,mBAAA;AAAA,iBAyH5C,gBAAA,CAAA;;;;;;;AApIhB;;;;;AAWA;KCDY,aAAA;EACV,gBAAA;EACA,iBAAA;EACA,UAAA;EACA,eAAA;EACA,eAAA;EACA,iBAAA;EACA,WAAA;EACA,iBAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;AAAA;;;;UAMe,6BAAA;EAjBL;;;;;EAuBV,qBAAA;AAAA;;;;;;;;;;;AANF;;;;;AA8BA;;;;;;cAAa,sBAAA;EAAA,iBACM,SAAA;EAAA,QACT,YAAA;EAAA,QACA,WAAA;EAAA,QACA,kBAAA;EAmBA;;;;;cAZI,OAAA,GAAS,6BAAA;;;;;;UAYb,wBAAA;;;;;EAaD,cAAA,CAAA;;;;;;;;;;;EAiBP,OAAA,CAAA,GAAW,aAAA;AAAA"}
|
package/dist/telemetry.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as EngineTriggers, C as setBaggageEntry, D as DEFAULT_BRIDGE_RECONNECTION_CONFIG, E as WorkerMetricsCollector, O as DEFAULT_INVOCATION_TIMEOUT_MS, S as removeBaggageEntry, T as stopWorkerGauges, _ as extractTraceparent, b as injectBaggage, c as getMeter, d as shutdownOtel, f as withSpan, g as extractContext, h as extractBaggage, i as SeverityNumber, j as LogFunctions, k as EngineFunctions, l as getTracer, m as currentTraceId, o as SpanStatusCode, p as currentSpanId, r as safeStringify, s as getLogger, u as initOtel, v as getAllBaggage, w as registerWorkerGauges, x as injectTraceparent, y as getBaggageEntry } from "./utils-
|
|
1
|
+
import { A as EngineTriggers, C as setBaggageEntry, D as DEFAULT_BRIDGE_RECONNECTION_CONFIG, E as WorkerMetricsCollector, O as DEFAULT_INVOCATION_TIMEOUT_MS, S as removeBaggageEntry, T as stopWorkerGauges, _ as extractTraceparent, b as injectBaggage, c as getMeter, d as shutdownOtel, f as withSpan, g as extractContext, h as extractBaggage, i as SeverityNumber, j as LogFunctions, k as EngineFunctions, l as getTracer, m as currentTraceId, o as SpanStatusCode, p as currentSpanId, r as safeStringify, s as getLogger, u as initOtel, v as getAllBaggage, w as registerWorkerGauges, x as injectTraceparent, y as getBaggageEntry } from "./utils-xBUm8n1P.mjs";
|
|
2
2
|
|
|
3
3
|
export { DEFAULT_BRIDGE_RECONNECTION_CONFIG, DEFAULT_INVOCATION_TIMEOUT_MS, EngineFunctions, EngineTriggers, LogFunctions, SeverityNumber, SpanStatusCode, WorkerMetricsCollector, currentSpanId, currentTraceId, extractBaggage, extractContext, extractTraceparent, getAllBaggage, getBaggageEntry, getLogger, getMeter, getTracer, initOtel, injectBaggage, injectTraceparent, registerWorkerGauges, removeBaggageEntry, safeStringify, setBaggageEntry, shutdownOtel, stopWorkerGauges, withSpan };
|