@glassly/miniapp 0.3.2-beta.572 → 0.3.2-beta.602
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.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/cloud.d.ts +10 -0
- package/dist/modules/cloud.d.ts.map +1 -1
- package/dist/modules/cloud.js +20 -5
- package/dist/modules/cloud.js.map +1 -1
- package/dist/modules/events.d.ts +45 -10
- package/dist/modules/events.d.ts.map +1 -1
- package/dist/modules/events.js +55 -42
- package/dist/modules/events.js.map +1 -1
- package/dist/modules/input.d.ts +9 -1
- package/dist/modules/input.d.ts.map +1 -1
- package/dist/modules/input.js +10 -0
- package/dist/modules/input.js.map +1 -1
- package/dist/modules/transcription.d.ts +7 -0
- package/dist/modules/transcription.d.ts.map +1 -1
- package/dist/modules/transcription.js.map +1 -1
- package/dist/protocol.d.ts +7 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +7 -1
- package/dist/protocol.js.map +1 -1
- package/dist/session.d.ts +2 -4
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -1
- package/src/modules/cloud.ts +33 -5
- package/src/modules/events.ts +96 -47
- package/src/modules/input.ts +12 -1
- package/src/modules/transcription.ts +7 -0
- package/src/protocol.ts +7 -1
- package/src/session.ts +2 -2
package/src/session.ts
CHANGED
|
@@ -24,7 +24,7 @@ import {AuthModule} from "./modules/auth"
|
|
|
24
24
|
import {CloudModule} from "./modules/cloud"
|
|
25
25
|
import {DashboardAPI} from "./modules/dashboard"
|
|
26
26
|
import {DisplayManager} from "./modules/display"
|
|
27
|
-
import {EventManager, type TranscriptionEventRoute, type UnsubscribeFn} from "./modules/events"
|
|
27
|
+
import {EventManager, type StreamRouteOptions, type TranscriptionEventRoute, type UnsubscribeFn} from "./modules/events"
|
|
28
28
|
import {GlassesModule} from "./modules/glasses"
|
|
29
29
|
import {AiModule} from "./modules/ai"
|
|
30
30
|
import {ImuModule} from "./modules/imu"
|
|
@@ -553,7 +553,7 @@ export class MiniappSession<TChannels extends object = any> {
|
|
|
553
553
|
_subscribe(
|
|
554
554
|
streamType: string,
|
|
555
555
|
handler: (data: unknown) => void,
|
|
556
|
-
options:
|
|
556
|
+
options: StreamRouteOptions = {},
|
|
557
557
|
): UnsubscribeFn {
|
|
558
558
|
return this.events.subscribe(streamType, handler, options)
|
|
559
559
|
}
|