@opengeni/core 0.20.16 → 0.21.2
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/dependencies.d.ts +3 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/transcription.d.ts +35 -0
- package/package.json +9 -9
- package/src/dependencies.ts +3 -1
- package/src/transcription.ts +40 -0
package/dist/dependencies.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { Observability } from "@opengeni/observability";
|
|
|
7
7
|
import type { createObjectStorage } from "@opengeni/storage";
|
|
8
8
|
import type { ManagedAuth } from "./managed-auth-type";
|
|
9
9
|
import type { ApiSandboxClient, ResumeBoxByIdInput, ResumedSandboxSession } from "./sandbox-types";
|
|
10
|
-
import type { TranscriptionService } from "./transcription";
|
|
10
|
+
import type { TranscriptionSegmenter, TranscriptionService } from "./transcription";
|
|
11
11
|
export type SessionWorkflowClient = {
|
|
12
12
|
signalUserMessage: (input: {
|
|
13
13
|
sessionId: string;
|
|
@@ -113,6 +113,8 @@ export type AppDependencies = {
|
|
|
113
113
|
oauthCallbackDeadlineMs?: number;
|
|
114
114
|
/** Optional host-owned voice-input transcription service. */
|
|
115
115
|
transcription?: TranscriptionService | null;
|
|
116
|
+
/** Optional host-owned long-form audio normalization/segmentation service. */
|
|
117
|
+
transcriptionSegmenter?: TranscriptionSegmenter | null;
|
|
116
118
|
sandboxClient?: ApiSandboxClient;
|
|
117
119
|
/**
|
|
118
120
|
* Resume a box by id from a serialized resume_state envelope (the lease's
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ var SESSION_WORKFLOW_WAKE_DISPATCHER_WORKFLOW_TYPE = "sessionWorkflowWakeDispatc
|
|
|
4
4
|
var SESSION_WORKFLOW_WAKE_DISPATCHER_PERIOD_MS = 1e4;
|
|
5
5
|
|
|
6
6
|
// src/transcription.ts
|
|
7
|
+
var TRANSCRIPTION_PROVIDER_REQUEST_TIMEOUT_MILLISECONDS = 10 * 60 * 1e3;
|
|
7
8
|
var TranscriptionServiceError = class extends Error {
|
|
8
9
|
code;
|
|
9
10
|
status;
|
|
@@ -7122,6 +7123,7 @@ export {
|
|
|
7122
7123
|
SessionAuthorizationDeniedError,
|
|
7123
7124
|
SessionAuthorizationUnavailableError,
|
|
7124
7125
|
SessionSpawnDeniedError,
|
|
7126
|
+
TRANSCRIPTION_PROVIDER_REQUEST_TIMEOUT_MILLISECONDS,
|
|
7125
7127
|
TranscriptionServiceError,
|
|
7126
7128
|
acceptSessionUserMessage,
|
|
7127
7129
|
accessGrantAuthorizationFromContext,
|