@kosdev-code/kos-ui-sdk 2.0.31 → 2.0.33
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/common/events/eventBus.d.ts +16 -0
- package/common/events/eventBus.d.ts.map +1 -1
- package/common/events/eventBus.functional.d.ts +150 -0
- package/common/events/eventBus.functional.d.ts.map +1 -0
- package/common/events/eventBus.state.d.ts +118 -0
- package/common/events/eventBus.state.d.ts.map +1 -0
- package/common/events/index.d.ts +5 -2
- package/common/events/index.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts +61 -14
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/log/log.d.ts +1 -1
- package/core/core/services/app-startup-service.d.ts +74 -0
- package/core/core/services/app-startup-service.d.ts.map +1 -0
- package/core/core/services/index.d.ts +1 -0
- package/core/core/services/index.d.ts.map +1 -1
- package/core/types/utils/kos-fetch.d.ts +10 -2
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/binary-utils.d.ts +44 -0
- package/core/util/binary-utils.d.ts.map +1 -0
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/index.cjs +76 -76
- package/index.cjs.map +1 -1
- package/index.js +6434 -5370
- package/index.js.map +1 -1
- package/models/decorators/future-service.d.ts +7 -0
- package/models/decorators/future-service.d.ts.map +1 -1
- package/models/index.d.ts +1 -0
- package/models/index.d.ts.map +1 -1
- package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts +3 -1
- package/models/models/canvas-dispatcher/utils/renderers/base/video-base-renderer.d.ts.map +1 -1
- package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts +3 -1
- package/models/models/canvas-dispatcher/utils/renderers/image-renderer.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts +23 -1
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/types/cancellable-promise.d.ts +49 -0
- package/models/types/cancellable-promise.d.ts.map +1 -0
- package/models/types/future-interfaces.d.ts +55 -0
- package/models/types/future-interfaces.d.ts.map +1 -0
- package/models/types/index.d.ts +3 -0
- package/models/types/index.d.ts.map +1 -0
- package/models/utils/cancellable-future-call.d.ts +54 -0
- package/models/utils/cancellable-future-call.d.ts.map +1 -0
- package/models/utils/cancellable-service.d.ts +79 -0
- package/models/utils/cancellable-service.d.ts.map +1 -0
- package/models/utils/client.d.ts +15 -7
- package/models/utils/client.d.ts.map +1 -1
- package/models/utils/index.d.ts +2 -0
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/kosmodel-compatible-future-mixin.d.ts +142 -0
- package/models/utils/kosmodel-compatible-future-mixin.d.ts.map +1 -0
- package/models/utils/kosmodel-interface-companion-mixin.d.ts +83 -0
- package/models/utils/kosmodel-interface-companion-mixin.d.ts.map +1 -0
- package/models/utils/openapi.d.ts +9304 -3999
- package/models/utils/service.d.ts +20 -12
- package/models/utils/service.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -58,4 +58,20 @@ export declare function publish(eventType: string, msg: unknown, headers?: Recor
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
export declare function reset(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Subscribe to an event that will automatically unsubscribe after the first occurrence
|
|
63
|
+
*
|
|
64
|
+
* @param eventType - The event type to listen for
|
|
65
|
+
* @param callback - The callback to execute once
|
|
66
|
+
* @returns Unsubscribe function
|
|
67
|
+
*/
|
|
68
|
+
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Wait for a specific event to occur, returning a Promise
|
|
71
|
+
*
|
|
72
|
+
* @param eventType - The event type to wait for
|
|
73
|
+
* @param timeout - Optional timeout in milliseconds
|
|
74
|
+
* @returns Promise that resolves with the event data
|
|
75
|
+
*/
|
|
76
|
+
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
61
77
|
//# sourceMappingURL=eventBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,SAGpB"}
|
|
1
|
+
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ApiCallback, EventCallback } from './eventBus';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Subscribe to an event that will automatically unsubscribe after the first occurrence
|
|
5
|
+
*
|
|
6
|
+
* @param eventType - The event type to listen for
|
|
7
|
+
* @param callback - The callback to execute once
|
|
8
|
+
* @returns Unsubscribe function
|
|
9
|
+
*/
|
|
10
|
+
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Wait for a specific event to occur, returning a Promise
|
|
13
|
+
*
|
|
14
|
+
* @param eventType - The event type to wait for
|
|
15
|
+
* @param timeout - Optional timeout in milliseconds
|
|
16
|
+
* @returns Promise that resolves with the event data
|
|
17
|
+
*/
|
|
18
|
+
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Wait for multiple events to occur (Promise.all pattern)
|
|
21
|
+
*
|
|
22
|
+
* @param eventTypes - Array of event types to wait for
|
|
23
|
+
* @param timeout - Optional timeout in milliseconds
|
|
24
|
+
* @returns Promise that resolves when all events have occurred
|
|
25
|
+
*/
|
|
26
|
+
export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<T[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Wait for the first event to occur from a list (Promise.race pattern)
|
|
29
|
+
*
|
|
30
|
+
* @param eventTypes - Array of event types to race
|
|
31
|
+
* @param timeout - Optional timeout in milliseconds
|
|
32
|
+
* @returns Promise that resolves with the first event
|
|
33
|
+
*/
|
|
34
|
+
export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<{
|
|
35
|
+
eventType: string;
|
|
36
|
+
data: T;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Filter events based on a predicate function
|
|
40
|
+
*
|
|
41
|
+
* @param eventType - The event type to filter
|
|
42
|
+
* @param predicate - Function to test each event
|
|
43
|
+
* @param callback - Callback for events that pass the filter
|
|
44
|
+
* @returns Unsubscribe function
|
|
45
|
+
*/
|
|
46
|
+
export declare function filter<T = ApiCallback>(eventType: string, predicate: (msg: T) => boolean, callback: EventCallback<T>): () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Transform events using a map function
|
|
49
|
+
*
|
|
50
|
+
* @param eventType - The event type to transform
|
|
51
|
+
* @param transform - Function to transform the event data
|
|
52
|
+
* @param callback - Callback for transformed events
|
|
53
|
+
* @returns Unsubscribe function
|
|
54
|
+
*/
|
|
55
|
+
export declare function map<T = ApiCallback, R = any>(eventType: string, transform: (msg: T) => R, callback: (msg: R) => void): () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Debounce events - only emit after a period of inactivity
|
|
58
|
+
*
|
|
59
|
+
* @param eventType - The event type to debounce
|
|
60
|
+
* @param delay - Delay in milliseconds
|
|
61
|
+
* @param callback - Callback for debounced events
|
|
62
|
+
* @returns Unsubscribe function
|
|
63
|
+
*/
|
|
64
|
+
export declare function debounce<T = ApiCallback>(eventType: string, delay: number, callback: EventCallback<T>): () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Throttle events - limit emissions to once per interval
|
|
67
|
+
*
|
|
68
|
+
* @param eventType - The event type to throttle
|
|
69
|
+
* @param interval - Minimum interval between emissions in milliseconds
|
|
70
|
+
* @param callback - Callback for throttled events
|
|
71
|
+
* @returns Unsubscribe function
|
|
72
|
+
*/
|
|
73
|
+
export declare function throttle<T = ApiCallback>(eventType: string, interval: number, callback: EventCallback<T>): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Buffer events and emit them as an array
|
|
76
|
+
*
|
|
77
|
+
* @param eventType - The event type to buffer
|
|
78
|
+
* @param bufferTime - Time window to collect events in milliseconds
|
|
79
|
+
* @param callback - Callback for buffered events
|
|
80
|
+
* @returns Unsubscribe function
|
|
81
|
+
*/
|
|
82
|
+
export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: number, callback: (events: T[]) => void): () => void;
|
|
83
|
+
/**
|
|
84
|
+
* Create a replay subject that remembers the last N events
|
|
85
|
+
*
|
|
86
|
+
* @param eventType - The event type to replay
|
|
87
|
+
* @param bufferSize - Number of events to remember
|
|
88
|
+
* @returns Object with subscribe method that replays buffered events
|
|
89
|
+
*/
|
|
90
|
+
export declare function replay<T = ApiCallback>(eventType: string, bufferSize?: number): {
|
|
91
|
+
subscribe: (callback: EventCallback<T>) => {
|
|
92
|
+
count: number;
|
|
93
|
+
unsubscribe: () => {
|
|
94
|
+
count: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Merge multiple event streams into one
|
|
100
|
+
*
|
|
101
|
+
* @param eventTypes - Array of event types to merge
|
|
102
|
+
* @param callback - Callback for all merged events
|
|
103
|
+
* @returns Unsubscribe function for all subscriptions
|
|
104
|
+
*/
|
|
105
|
+
export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (eventType: string, msg: T) => void): () => void;
|
|
106
|
+
/**
|
|
107
|
+
* Create a state machine that transitions based on events
|
|
108
|
+
*
|
|
109
|
+
* @param initialState - The initial state
|
|
110
|
+
* @param transitions - Object mapping states to event handlers
|
|
111
|
+
* @returns Object with current state and unsubscribe function
|
|
112
|
+
*/
|
|
113
|
+
export declare function stateMachine<TState extends string, T = ApiCallback>(initialState: TState, transitions: Record<TState, Record<string, (msg: T) => TState>>): {
|
|
114
|
+
readonly state: TState;
|
|
115
|
+
unsubscribe: () => void;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Utility to create a promise that can be resolved by publishing an event
|
|
119
|
+
*
|
|
120
|
+
* @param requestEvent - Event type to publish the request
|
|
121
|
+
* @param responseEvent - Event type to wait for the response
|
|
122
|
+
* @param request - The request data to publish
|
|
123
|
+
* @param timeout - Optional timeout in milliseconds
|
|
124
|
+
* @returns Promise that resolves with the response
|
|
125
|
+
*/
|
|
126
|
+
export declare function request<TRequest = any, TResponse = ApiCallback>(requestEvent: string, responseEvent: string, request: TRequest, timeout?: number): Promise<TResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Create an async iterator for events
|
|
129
|
+
*
|
|
130
|
+
* @param eventType - The event type to iterate
|
|
131
|
+
* @returns Async iterator for use with for-await-of
|
|
132
|
+
*/
|
|
133
|
+
export declare function eventIterator<T = ApiCallback>(eventType: string): AsyncIterableIterator<T>;
|
|
134
|
+
export declare const EventBusFunctional: {
|
|
135
|
+
once: typeof once;
|
|
136
|
+
waitFor: typeof waitFor;
|
|
137
|
+
waitForAll: typeof waitForAll;
|
|
138
|
+
race: typeof race;
|
|
139
|
+
filter: typeof filter;
|
|
140
|
+
map: typeof map;
|
|
141
|
+
debounce: typeof debounce;
|
|
142
|
+
throttle: typeof throttle;
|
|
143
|
+
buffer: typeof buffer;
|
|
144
|
+
replay: typeof replay;
|
|
145
|
+
merge: typeof merge;
|
|
146
|
+
stateMachine: typeof stateMachine;
|
|
147
|
+
request: typeof request;
|
|
148
|
+
eventIterator: typeof eventIterator;
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=eventBus.functional.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,WAAW,EACxC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,EAAE,CAAC,CAKd;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,CAoCzC;AAED;;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,EAAE,EACpB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,GAC5C,MAAM,IAAI,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,SAAS,MAAM,EAAE,CAAC,GAAG,WAAW,EACjE,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;;;EAgChE;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,QAAQ,GAAG,GAAG,EAAE,SAAS,GAAG,WAAW,EAC7D,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,SAAS,CAAC,CAIpB;AAED;;;;;GAKG;AACH,wBAAuB,aAAa,CAAC,CAAC,GAAG,WAAW,EAClD,SAAS,EAAE,MAAM,GAChB,qBAAqB,CAAC,CAAC,CAAC,CA4B1B;AAGD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ApiCallback, EventCallback } from './eventBus';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Options for state-aware event subscriptions
|
|
5
|
+
*/
|
|
6
|
+
export interface StateAwareOptions<T> {
|
|
7
|
+
/** Function to fetch the current state */
|
|
8
|
+
getCurrentState: () => Promise<T> | T;
|
|
9
|
+
/** Optional transform function to normalize API response to event format */
|
|
10
|
+
transformState?: (state: any) => T;
|
|
11
|
+
/** Optional function to determine if we should use the fetched state */
|
|
12
|
+
shouldUseFetchedState?: (state: T) => boolean;
|
|
13
|
+
/** Timeout for waiting for events (ms) */
|
|
14
|
+
timeout?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Wait for an event OR get the current state if the event already happened
|
|
18
|
+
* This prevents race conditions where events fire before subscription
|
|
19
|
+
*
|
|
20
|
+
* @param eventType - The event type to wait for
|
|
21
|
+
* @param options - Options for state fetching and transformation
|
|
22
|
+
* @returns Promise that resolves with either the event data or current state
|
|
23
|
+
*/
|
|
24
|
+
export declare function waitForOrGetState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to events with initial state, ensuring no events are missed
|
|
27
|
+
*
|
|
28
|
+
* @param eventType - The event type to subscribe to
|
|
29
|
+
* @param callback - Callback for state updates
|
|
30
|
+
* @param options - Options for initial state fetching
|
|
31
|
+
* @returns Unsubscribe function
|
|
32
|
+
*/
|
|
33
|
+
export declare function subscribeWithInitialState<T = ApiCallback>(eventType: string, callback: EventCallback<T>, options: StateAwareOptions<T>): () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Create a state-synchronized event stream that combines initial state with events
|
|
36
|
+
*
|
|
37
|
+
* @param eventType - The event type for updates
|
|
38
|
+
* @param stateApi - API endpoint or function to fetch current state
|
|
39
|
+
* @returns Object with subscribe method and current state getter
|
|
40
|
+
*/
|
|
41
|
+
export declare function createStatefulEventStream<T = any>(eventType: string, stateApi: string | (() => Promise<T>)): {
|
|
42
|
+
/** Get current state synchronously (may be undefined if not loaded) */
|
|
43
|
+
readonly state: T | undefined;
|
|
44
|
+
/** Get current state asynchronously (waits for initial load) */
|
|
45
|
+
getState(): Promise<T>;
|
|
46
|
+
/** Subscribe to state changes (includes initial state) */
|
|
47
|
+
subscribe(callback: (state: T) => void): () => void;
|
|
48
|
+
/** Refresh state from API */
|
|
49
|
+
refresh(): Promise<T>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Wait for multiple events with shared state checking
|
|
53
|
+
* Checks global state once to see if all conditions are already met
|
|
54
|
+
*
|
|
55
|
+
* @param eventTypes - Array of event types to wait for
|
|
56
|
+
* @param options - Shared state checking options
|
|
57
|
+
* @returns Promise that resolves when all events have occurred or state is ready
|
|
58
|
+
*/
|
|
59
|
+
export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[], options: StateAwareOptions<T>): Promise<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Wait for a single event with state checking (convenience overload)
|
|
62
|
+
*
|
|
63
|
+
* @param eventType - Single event type to wait for
|
|
64
|
+
* @param options - State checking options
|
|
65
|
+
* @returns Promise that resolves when event occurs or state is ready
|
|
66
|
+
*/
|
|
67
|
+
export declare function waitForAllWithState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a resilient event handler that can recover from missed events
|
|
70
|
+
*
|
|
71
|
+
* @param eventType - Event type to handle
|
|
72
|
+
* @param handler - Event handler function
|
|
73
|
+
* @param recoveryStrategy - Strategy for recovering missed events
|
|
74
|
+
*/
|
|
75
|
+
export declare function createResilientEventHandler<T = ApiCallback>(eventType: string, handler: (data: T) => void | Promise<void>, recoveryStrategy: {
|
|
76
|
+
/** API to fetch missed events or current state */
|
|
77
|
+
fetchMissedEvents: () => Promise<T[]> | Promise<T>;
|
|
78
|
+
/** How often to check for missed events (ms) */
|
|
79
|
+
checkInterval?: number;
|
|
80
|
+
/** Whether to deduplicate events by ID */
|
|
81
|
+
deduplicateById?: (event: T) => string;
|
|
82
|
+
}): () => void;
|
|
83
|
+
/**
|
|
84
|
+
* Pattern for handling connection state with events
|
|
85
|
+
* Useful for WebSocket connections, plugin loading, etc.
|
|
86
|
+
*/
|
|
87
|
+
export interface ConnectionStateManager<T = any> {
|
|
88
|
+
/** Current connection state */
|
|
89
|
+
state: "disconnected" | "connecting" | "connected" | "error";
|
|
90
|
+
/** Current data (if connected) */
|
|
91
|
+
data?: T;
|
|
92
|
+
/** Wait for connection to be established */
|
|
93
|
+
waitForConnection(timeout?: number): Promise<T>;
|
|
94
|
+
/** Subscribe to state changes */
|
|
95
|
+
subscribe(callback: (state: ConnectionStateManager<T>) => void): () => void;
|
|
96
|
+
/** Manually trigger reconnection */
|
|
97
|
+
reconnect(): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Create a connection state manager that handles online/offline scenarios
|
|
101
|
+
*/
|
|
102
|
+
export declare function createConnectionStateManager<T = any>(config: {
|
|
103
|
+
connectEvent: string;
|
|
104
|
+
disconnectEvent: string;
|
|
105
|
+
errorEvent?: string;
|
|
106
|
+
dataEvent?: string;
|
|
107
|
+
fetchInitialState: () => Promise<T>;
|
|
108
|
+
reconnectDelay?: number;
|
|
109
|
+
}): ConnectionStateManager<T>;
|
|
110
|
+
export declare const EventBusState: {
|
|
111
|
+
waitForOrGetState: typeof waitForOrGetState;
|
|
112
|
+
subscribeWithInitialState: typeof subscribeWithInitialState;
|
|
113
|
+
createStatefulEventStream: typeof createStatefulEventStream;
|
|
114
|
+
waitForAllWithState: typeof waitForAllWithState;
|
|
115
|
+
createResilientEventHandler: typeof createResilientEventHandler;
|
|
116
|
+
createConnectionStateManager: typeof createConnectionStateManager;
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=eventBus.state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,0CAA0C;IAC1C,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC;IACnC,wEAAwE;IACxE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;IAC9C,0CAA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.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as EventBus from "./eventBus";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import * as EventBusFunctional from "./eventBus.functional";
|
|
3
|
+
import * as EventBusState from "./eventBus.state";
|
|
4
|
+
export type { ApiCallback, EventCallback } from './eventBus';
|
|
5
|
+
export type { ConnectionStateManager, StateAwareOptions, } from './eventBus.state';
|
|
6
|
+
export { EventBus, EventBusFunctional, EventBusState };
|
|
4
7
|
declare global {
|
|
5
8
|
interface Window {
|
|
6
9
|
kosUtils: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7D,YAAY,EACV,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,EAAE;YACR,QAAQ,EAAE,OAAO,QAAQ,CAAC;SAC3B,CAAC;QACF,sBAAsB,EAAE,MAAM,IAAI,CAAC;QACnC,sBAAsB,EAAE,CACtB,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,GAAG,eAAe,KACpD,IAAI,CAAC;QACV,sBAAsB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;KAC/B;CACF"}
|
|
@@ -50,6 +50,41 @@ export interface IKosTopicHandlerParams<Response = any, Model extends IKosDataMo
|
|
|
50
50
|
*/
|
|
51
51
|
skipParse?: boolean;
|
|
52
52
|
destinationAddress?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Debounce events - only emit after a period of inactivity
|
|
55
|
+
* @example debounce: 1000 // Wait 1 second after last event
|
|
56
|
+
*/
|
|
57
|
+
debounce?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Throttle events - limit emissions to once per interval
|
|
60
|
+
* @example throttle: 500 // At most once every 500ms
|
|
61
|
+
*/
|
|
62
|
+
throttle?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Buffer events and emit them as an array after time window or max size
|
|
65
|
+
*/
|
|
66
|
+
buffer?: {
|
|
67
|
+
/** Time window to collect events (ms) */
|
|
68
|
+
time: number;
|
|
69
|
+
/** Maximum number of events to buffer */
|
|
70
|
+
maxSize?: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Filter events based on a predicate function
|
|
74
|
+
* Note: This operates on the raw payload before transformation
|
|
75
|
+
*/
|
|
76
|
+
filter?: (payload: Response) => boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Only handle the event once, then automatically unsubscribe
|
|
79
|
+
*/
|
|
80
|
+
once?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Replay the last N events to new handlers
|
|
83
|
+
*/
|
|
84
|
+
replay?: {
|
|
85
|
+
/** Number of events to remember and replay */
|
|
86
|
+
bufferSize: number;
|
|
87
|
+
};
|
|
53
88
|
}
|
|
54
89
|
/**
|
|
55
90
|
* Decorator for defining a Kos topic handler function within a Kos Data Model class.
|
|
@@ -57,23 +92,35 @@ export interface IKosTopicHandlerParams<Response = any, Model extends IKosDataMo
|
|
|
57
92
|
* @param params - An object containing configuration parameters for the topic handler.
|
|
58
93
|
* @returns A decorator function.
|
|
59
94
|
*
|
|
60
|
-
* @example
|
|
95
|
+
* @example Basic usage:
|
|
96
|
+
* ```typescript
|
|
97
|
+
* @kosTopicHandler({
|
|
98
|
+
* topic: 'temperature/update',
|
|
99
|
+
* websocket: true
|
|
100
|
+
* })
|
|
101
|
+
* handleTemperature(payload: TemperatureData) { }
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @example Debounced handling:
|
|
61
105
|
* ```typescript
|
|
62
|
-
*
|
|
63
|
-
*
|
|
106
|
+
* @kosTopicHandler({
|
|
107
|
+
* topic: 'rapid/updates',
|
|
108
|
+
* websocket: true,
|
|
109
|
+
* debounce: 1000 // Wait 1 second after last event
|
|
110
|
+
* })
|
|
111
|
+
* handleRapidUpdates(payload: UpdateData) { }
|
|
112
|
+
* ```
|
|
64
113
|
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* }
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* }
|
|
74
|
-
* }
|
|
114
|
+
* @example Buffered batch processing:
|
|
115
|
+
* ```typescript
|
|
116
|
+
* @kosTopicHandler({
|
|
117
|
+
* topic: 'log/entry',
|
|
118
|
+
* websocket: true,
|
|
119
|
+
* buffer: { time: 5000, maxSize: 100 }
|
|
120
|
+
* })
|
|
121
|
+
* handleLogBatch(entries: LogEntry[]) { }
|
|
75
122
|
* ```
|
|
76
123
|
* @category KOS Model Decorator
|
|
77
124
|
*/
|
|
78
|
-
export declare function kosTopicHandler<Response = any, Model extends IKosDataModel = any, TransformedResponse = Response>({ topic, condition, transform, websocket, fos, bridge, skipParse, lifecycle, destinationAddress, }: IKosTopicHandlerParams<Response, Model, TransformedResponse>): (target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
125
|
+
export declare function kosTopicHandler<Response = any, Model extends IKosDataModel = any, TransformedResponse = Response>({ topic, condition, transform, websocket, fos, bridge, skipParse, lifecycle, destinationAddress, debounce, throttle, buffer, filter, once, replay, }: IKosTopicHandlerParams<Response, Model, TransformedResponse>): (target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
79
126
|
//# sourceMappingURL=kosTopicHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kosTopicHandler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kosTopicHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kosTopicHandler.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kosTopicHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB,CACrC,QAAQ,GAAG,GAAG,EACd,KAAK,SAAS,aAAa,GAAG,GAAG,EACjC,mBAAmB,GAAG,QAAQ;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,KACV,OAAO,CAAC;IAEb;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,mBAAmB,CAAC;IAEvD;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,yCAAyC;QACzC,IAAI,EAAE,MAAM,CAAC;QACb,yCAAyC;QACzC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC;IAExC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,8CAA8C;QAC9C,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,GAAG,GAAG,EACd,KAAK,SAAS,aAAa,GAAG,GAAG,EACjC,mBAAmB,GAAG,QAAQ,EAC9B,EACA,KAAK,EACL,SAAsC,EACtC,SAAyC,EACzC,SAAiB,EACjB,GAAW,EACX,MAAc,EACd,SAAiB,EACjB,SAAS,EACT,kBAAkB,EAElB,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,GACP,EAAE,sBAAsB,CAAC,QAAQ,EAAE,KAAK,EAAE,mBAAmB,CAAC,YAEnD,GAAG,gBACG,MAAM,cACR,kBAAkB,UAiEjC"}
|
package/core/core/log/log.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const KosLog: {
|
|
|
26
26
|
warn(...msg: any[]): void;
|
|
27
27
|
error(...msg: any[]): void;
|
|
28
28
|
setLevel(level: log.LogLevelDesc, persist?: boolean | undefined): void;
|
|
29
|
-
getLevel(): 0 | 1 |
|
|
29
|
+
getLevel(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
30
30
|
setDefaultLevel(level: log.LogLevelDesc): void;
|
|
31
31
|
resetLevel(): void;
|
|
32
32
|
enableAll(persist?: boolean | undefined): void;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service for waiting for KOS applications to start
|
|
3
|
+
* Provides utilities to wait for specific apps before proceeding with initialization
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Interface representing a started KOS application
|
|
7
|
+
*/
|
|
8
|
+
export interface KosStartedApp {
|
|
9
|
+
stopped: boolean;
|
|
10
|
+
appId: string;
|
|
11
|
+
started: boolean;
|
|
12
|
+
sectionName: string;
|
|
13
|
+
postStarted: boolean;
|
|
14
|
+
parentAppId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Options for waiting for app startup
|
|
18
|
+
*/
|
|
19
|
+
export interface WaitForAppsOptions {
|
|
20
|
+
/** Timeout in milliseconds (default: 30000) */
|
|
21
|
+
timeout?: number;
|
|
22
|
+
/** Whether to throw error if apps don't start (default: true) */
|
|
23
|
+
throwOnTimeout?: boolean;
|
|
24
|
+
/** Whether apps must be fully post-started (default: false) */
|
|
25
|
+
requirePostStarted?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Wait for specific KOS applications to be started
|
|
29
|
+
*
|
|
30
|
+
* @param appIds - Array of application IDs to wait for
|
|
31
|
+
* @param options - Configuration options
|
|
32
|
+
* @returns Promise that resolves when all apps are started
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* // Wait for single app
|
|
37
|
+
* await waitForAppsToStart(['kosdev.ddk']);
|
|
38
|
+
*
|
|
39
|
+
* // Wait for multiple apps with custom timeout
|
|
40
|
+
* await waitForAppsToStart([
|
|
41
|
+
* 'kosdev.ddk',
|
|
42
|
+
* 'com.kondra.summer.2025.controlledPourPlugin'
|
|
43
|
+
* ], { timeout: 60000 });
|
|
44
|
+
*
|
|
45
|
+
* // Wait without throwing on timeout
|
|
46
|
+
* const success = await waitForAppsToStart(['kosdev.ddk'], {
|
|
47
|
+
* throwOnTimeout: false
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function waitForAppsToStart(appIds: string[], options?: WaitForAppsOptions): Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Wait for a single KOS application to start (convenience function)
|
|
54
|
+
*
|
|
55
|
+
* @param appId - Application ID to wait for
|
|
56
|
+
* @param options - Configuration options
|
|
57
|
+
* @returns Promise that resolves when app is started
|
|
58
|
+
*/
|
|
59
|
+
export declare function waitForAppToStart(appId: string, options?: WaitForAppsOptions): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Check if specific apps are currently started (no waiting)
|
|
62
|
+
*
|
|
63
|
+
* @param appIds - Array of application IDs to check
|
|
64
|
+
* @param requirePostStarted - Whether to require post-started status
|
|
65
|
+
* @returns Promise resolving to status of each app
|
|
66
|
+
*/
|
|
67
|
+
export declare function checkAppsStarted(appIds: string[], requirePostStarted?: boolean): Promise<Record<string, boolean>>;
|
|
68
|
+
/**
|
|
69
|
+
* Get all currently started apps
|
|
70
|
+
*
|
|
71
|
+
* @returns Promise resolving to array of started apps
|
|
72
|
+
*/
|
|
73
|
+
export declare function getStartedApps(): Promise<KosStartedApp[]>;
|
|
74
|
+
//# sourceMappingURL=app-startup-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-startup-service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/services/app-startup-service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,CA6FlB;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,CAElB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EAAE,EAChB,kBAAkB,UAAQ,GACzB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA0BlC;AAED;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAc/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
@@ -41,9 +41,9 @@ export interface KosFetchOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
method: FetchMethodStrings;
|
|
43
43
|
/**
|
|
44
|
-
* The request body
|
|
44
|
+
* The request body - can be string, ArrayBuffer, Blob, or FormData.
|
|
45
45
|
*/
|
|
46
|
-
body?: string;
|
|
46
|
+
body?: string | ArrayBuffer | Blob | FormData | Uint8Array;
|
|
47
47
|
/**
|
|
48
48
|
* Indicates whether the request should be ordered.
|
|
49
49
|
*/
|
|
@@ -74,6 +74,14 @@ export interface KosFetchOptions {
|
|
|
74
74
|
bridge?: boolean;
|
|
75
75
|
timeout?: number;
|
|
76
76
|
headers?: Record<string, string>;
|
|
77
|
+
/**
|
|
78
|
+
* Enable streaming mode for large responses
|
|
79
|
+
*/
|
|
80
|
+
stream?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Response type hint for binary data handling
|
|
83
|
+
*/
|
|
84
|
+
responseType?: "text" | "json" | "arraybuffer" | "blob";
|
|
77
85
|
}
|
|
78
86
|
export interface KosFetchResponse {
|
|
79
87
|
headers: Headers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/types/utils/kos-fetch.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,KAAK,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAC;AAEvD,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,OAAO,CACL,UAAU,EAAE,CAAC,KA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AE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for handling binary data in KOS WebSocket transport
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Convert ArrayBuffer to base64 string for WebSocket transport
|
|
6
|
+
*/
|
|
7
|
+
export declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
|
|
8
|
+
/**
|
|
9
|
+
* Convert base64 string back to ArrayBuffer
|
|
10
|
+
*/
|
|
11
|
+
export declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
12
|
+
/**
|
|
13
|
+
* Convert Blob to ArrayBuffer
|
|
14
|
+
*/
|
|
15
|
+
export declare function blobToArrayBuffer(blob: Blob): Promise<ArrayBuffer>;
|
|
16
|
+
/**
|
|
17
|
+
* Convert ArrayBuffer to Blob
|
|
18
|
+
*/
|
|
19
|
+
export declare function arrayBufferToBlob(buffer: ArrayBuffer, type?: string): Blob;
|
|
20
|
+
/**
|
|
21
|
+
* Convert FormData to a serializable format
|
|
22
|
+
*/
|
|
23
|
+
export declare function serializeFormData(formData: FormData): Promise<{
|
|
24
|
+
fields: Record<string, string>;
|
|
25
|
+
files: Array<{
|
|
26
|
+
name: string;
|
|
27
|
+
filename: string;
|
|
28
|
+
type: string;
|
|
29
|
+
data: string;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a ReadableStream from chunks
|
|
34
|
+
*/
|
|
35
|
+
export declare function createChunkedStream(onPull: (controller: ReadableStreamDefaultController<Uint8Array>) => Promise<void>): ReadableStream<Uint8Array>;
|
|
36
|
+
/**
|
|
37
|
+
* Process body for WebSocket transport
|
|
38
|
+
*/
|
|
39
|
+
export declare function processRequestBody(body: string | ArrayBuffer | Blob | FormData | Uint8Array | undefined): Promise<{
|
|
40
|
+
data: string;
|
|
41
|
+
contentType: string;
|
|
42
|
+
encoding?: string;
|
|
43
|
+
}>;
|
|
44
|
+
//# sourceMappingURL=binary-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/binary-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAO/D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAO/D;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAExE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAE1E;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC;IACnE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9E,CAAC,CA8BD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CACN,UAAU,EAAE,+BAA+B,CAAC,UAAU,CAAC,KACpD,OAAO,CAAC,IAAI,CAAC,GACjB,cAAc,CAAC,UAAU,CAAC,CAY5B;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GACpE,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA4CnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAmBrE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAmUD;;GAEG;AACH,QAAA,IAAI,QAAQ,QAAS,CAAC;AACtB,QAAA,IAAI,QAAQ,QAzRL,MAAM,YACD,eAAe,KACxB,QAAQ,QAAQ,CAuRM,CAAC;AAS1B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
|