@opencx/widget-core 4.0.62 → 5.0.0-beta.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 +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4422 -772
- package/dist/index.js.map +1 -1
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts +2 -0
- package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts.map +1 -0
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts +2 -0
- package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts.map +1 -0
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts +2 -0
- package/dist/src/__tests__/api/widget-api-wire.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts +2 -0
- package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts +1 -0
- package/dist/src/__tests__/context/dictation-ctx.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts +1 -0
- package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts +1 -0
- package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts +2 -0
- package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts +1 -0
- package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts +2 -0
- package/dist/src/__tests__/context/restore-last-session.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts +2 -0
- package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts +2 -0
- package/dist/src/__tests__/context/storage-ctx.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts +1 -0
- package/dist/src/__tests__/context/streaming-engine.spec.d.ts.map +1 -0
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts +1 -0
- package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts.map +1 -0
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts +2 -0
- package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts.map +1 -0
- package/dist/src/__tests__/test-utils.d.ts +28 -0
- package/dist/src/__tests__/test-utils.d.ts.map +1 -1
- package/dist/src/__tests__/translation.spec.d.ts +2 -0
- package/dist/src/__tests__/translation.spec.d.ts.map +1 -0
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts +2 -0
- package/dist/src/__tests__/utils/companion-layout.spec.d.ts.map +1 -0
- package/dist/src/api/agent-stream-parts.d.ts +24 -0
- package/dist/src/api/agent-stream-parts.d.ts.map +1 -0
- package/dist/src/api/api-caller.d.ts +50 -1
- package/dist/src/api/api-caller.d.ts.map +1 -1
- package/dist/src/api/client.d.ts.map +1 -1
- package/dist/src/api/schema.d.ts +355 -78
- package/dist/src/api/schema.d.ts.map +1 -1
- package/dist/src/context/active-session-polling.ctx.d.ts +10 -0
- package/dist/src/context/active-session-polling.ctx.d.ts.map +1 -1
- package/dist/src/context/contact.ctx.d.ts +9 -0
- package/dist/src/context/contact.ctx.d.ts.map +1 -1
- package/dist/src/context/csat.ctx.d.ts +2 -5
- package/dist/src/context/csat.ctx.d.ts.map +1 -1
- package/dist/src/context/dictation.ctx.d.ts +67 -0
- package/dist/src/context/dictation.ctx.d.ts.map +1 -0
- package/dist/src/context/message.ctx.d.ts +209 -9
- package/dist/src/context/message.ctx.d.ts.map +1 -1
- package/dist/src/context/router.ctx.d.ts +22 -0
- package/dist/src/context/router.ctx.d.ts.map +1 -1
- package/dist/src/context/session.ctx.d.ts +22 -32
- package/dist/src/context/session.ctx.d.ts.map +1 -1
- package/dist/src/context/storage.ctx.d.ts +40 -1
- package/dist/src/context/storage.ctx.d.ts.map +1 -1
- package/dist/src/context/widget-agent.d.ts +60 -0
- package/dist/src/context/widget-agent.d.ts.map +1 -0
- package/dist/src/context/widget.ctx.d.ts +33 -0
- package/dist/src/context/widget.ctx.d.ts.map +1 -1
- package/dist/src/dictation/dictation-commands.utils.d.ts +76 -0
- package/dist/src/dictation/dictation-commands.utils.d.ts.map +1 -0
- package/dist/src/dictation/dictation-drip.utils.d.ts +21 -0
- package/dist/src/dictation/dictation-drip.utils.d.ts.map +1 -0
- package/dist/src/dictation/dictation-level-smoother.d.ts +18 -0
- package/dist/src/dictation/dictation-level-smoother.d.ts.map +1 -0
- package/dist/src/dictation/dictation-mint-cache.d.ts +25 -0
- package/dist/src/dictation/dictation-mint-cache.d.ts.map +1 -0
- package/dist/src/dictation/dictation-session.d.ts +55 -0
- package/dist/src/dictation/dictation-session.d.ts.map +1 -0
- package/dist/src/index.d.ts +17 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/translation/ar.d.ts.map +1 -1
- package/dist/src/translation/bg.d.ts.map +1 -1
- package/dist/src/translation/bn.d.ts.map +1 -1
- package/dist/src/translation/cs.d.ts.map +1 -1
- package/dist/src/translation/da.d.ts.map +1 -1
- package/dist/src/translation/de.d.ts.map +1 -1
- package/dist/src/translation/el.d.ts.map +1 -1
- package/dist/src/translation/en.d.ts.map +1 -1
- package/dist/src/translation/es.d.ts.map +1 -1
- package/dist/src/translation/et.d.ts.map +1 -1
- package/dist/src/translation/fi.d.ts.map +1 -1
- package/dist/src/translation/fil.d.ts.map +1 -1
- package/dist/src/translation/fr.d.ts.map +1 -1
- package/dist/src/translation/hi.d.ts.map +1 -1
- package/dist/src/translation/hr.d.ts.map +1 -1
- package/dist/src/translation/hu.d.ts.map +1 -1
- package/dist/src/translation/index.d.ts +87 -1
- package/dist/src/translation/index.d.ts.map +1 -1
- package/dist/src/translation/is.d.ts.map +1 -1
- package/dist/src/translation/it.d.ts.map +1 -1
- package/dist/src/translation/ja.d.ts.map +1 -1
- package/dist/src/translation/ko.d.ts.map +1 -1
- package/dist/src/translation/lb.d.ts.map +1 -1
- package/dist/src/translation/lt.d.ts.map +1 -1
- package/dist/src/translation/lv.d.ts.map +1 -1
- package/dist/src/translation/mt.d.ts.map +1 -1
- package/dist/src/translation/nb.d.ts.map +1 -1
- package/dist/src/translation/nl.d.ts.map +1 -1
- package/dist/src/translation/no.d.ts.map +1 -1
- package/dist/src/translation/pl.d.ts.map +1 -1
- package/dist/src/translation/pt.d.ts.map +1 -1
- package/dist/src/translation/ro.d.ts.map +1 -1
- package/dist/src/translation/ru.d.ts.map +1 -1
- package/dist/src/translation/sk.d.ts.map +1 -1
- package/dist/src/translation/sv.d.ts.map +1 -1
- package/dist/src/translation/th.d.ts.map +1 -1
- package/dist/src/translation/tr.d.ts.map +1 -1
- package/dist/src/translation/ur.d.ts.map +1 -1
- package/dist/src/translation/vi.d.ts.map +1 -1
- package/dist/src/translation/zh-cn.d.ts.map +1 -1
- package/dist/src/types/component-name.d.ts +1 -1
- package/dist/src/types/component-name.d.ts.map +1 -1
- package/dist/src/types/dtos.d.ts +2 -0
- package/dist/src/types/dtos.d.ts.map +1 -1
- package/dist/src/types/icons.d.ts +1 -1
- package/dist/src/types/icons.d.ts.map +1 -1
- package/dist/src/types/messages.d.ts +36 -2
- package/dist/src/types/messages.d.ts.map +1 -1
- package/dist/src/types/widget-config.d.ts +402 -4
- package/dist/src/types/widget-config.d.ts.map +1 -1
- package/dist/src/utils/Poller.d.ts.map +1 -1
- package/dist/src/utils/PrimitiveState.d.ts.map +1 -1
- package/dist/src/utils/companion-layout.d.ts +23 -0
- package/dist/src/utils/companion-layout.d.ts.map +1 -0
- package/dist/src/utils/is-exhaustive.d.ts.map +1 -1
- package/dist/src/utils/is-record.d.ts +3 -0
- package/dist/src/utils/is-record.d.ts.map +1 -0
- package/dist/src/utils/log.d.ts +5 -0
- package/dist/src/utils/log.d.ts.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Dto } from '../api/client';
|
|
2
|
+
import { WidgetConfig } from '../types/widget-config';
|
|
3
|
+
/**
|
|
4
|
+
* The org's agent as the embed sees it: branding, which engine serves the
|
|
5
|
+
* web channel, and the features the CLIENT acts on. Features the server
|
|
6
|
+
* applies on its own (preamble, inline UI) are not mirrored here — the embed
|
|
7
|
+
* only forwards its toggles for those (see `resolveSendFeatures`).
|
|
8
|
+
*/
|
|
9
|
+
export type WidgetAgent = {
|
|
10
|
+
name: string;
|
|
11
|
+
avatarUrl: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* The org's web channel runs the streaming engine (widget v5). `false`
|
|
14
|
+
* means the classic blocking send.
|
|
15
|
+
*/
|
|
16
|
+
streaming: boolean;
|
|
17
|
+
/** The org's EFFECTIVE features (entitlements already applied). */
|
|
18
|
+
features: {
|
|
19
|
+
dictation: boolean;
|
|
20
|
+
attachments: boolean;
|
|
21
|
+
pageContext: boolean;
|
|
22
|
+
clientTools: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type ServerAgent = Dto['WidgetAgentDto'];
|
|
26
|
+
/**
|
|
27
|
+
* snake_case (backend DTO) → camelCase (widget types) at the boundary.
|
|
28
|
+
*
|
|
29
|
+
* A backend that predates widget v5 — OpenCX main today, until the companion
|
|
30
|
+
* service lands there — returns no `agent` block at all. That is the classic
|
|
31
|
+
* widget: blocking send, attachments on, nothing page-aware — the exact v4
|
|
32
|
+
* behavior, so an embed upgraded ahead of its backend keeps working.
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveWidgetAgent({ org, agent, }: {
|
|
35
|
+
org: {
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
agent?: ServerAgent | null;
|
|
39
|
+
}): WidgetAgent;
|
|
40
|
+
/** The client-side feature answers the UI asks for, narrowed by the embed. */
|
|
41
|
+
export declare function resolveClientFeatures(agent: WidgetAgent, config: WidgetConfig): {
|
|
42
|
+
/** The composer offers voice dictation. */
|
|
43
|
+
dictation: boolean;
|
|
44
|
+
/** The composer offers the attachment/upload affordance. */
|
|
45
|
+
attachments: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The visitor can mark the page (the composer's page-mark button) and the
|
|
48
|
+
* widget's own page context rides along with each message. The host's
|
|
49
|
+
* `config.context` is unaffected — it always rides along, as it did in v4.
|
|
50
|
+
*/
|
|
51
|
+
pageContext: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The widget performs the agent's client tools (highlight an element on
|
|
54
|
+
* the host page).
|
|
55
|
+
*/
|
|
56
|
+
clientTools: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type WidgetClientFeatures = ReturnType<typeof resolveClientFeatures>;
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=widget-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-agent.d.ts","sourceRoot":"","sources":["../../../src/context/widget-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,QAAQ,EAAE;QACR,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,KAAK,WAAW,GAAG,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAEzC;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,KAAK,GACN,EAAE;IACD,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B,GAAG,WAAW,CAyBd;AAaD,8EAA8E;AAC9E,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,GACnB;IACD,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB,CAcA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -4,10 +4,20 @@ import { ExternalStorage } from '../types/external-storage';
|
|
|
4
4
|
import { WidgetConfig } from '../types/widget-config';
|
|
5
5
|
import { ContactCtx } from './contact.ctx';
|
|
6
6
|
import { CsatCtx } from './csat.ctx';
|
|
7
|
+
import { DictationCtx } from './dictation.ctx';
|
|
7
8
|
import { MessageCtx } from './message.ctx';
|
|
8
9
|
import { RouterCtx } from './router.ctx';
|
|
9
10
|
import { SessionCtx } from './session.ctx';
|
|
10
11
|
import { StorageCtx } from './storage.ctx';
|
|
12
|
+
import { WidgetAgent, WidgetClientFeatures } from './widget-agent';
|
|
13
|
+
/** A configuration failure that prevents the widget from choosing a safe
|
|
14
|
+
* runtime. The code is stable so headless consumers can render their own
|
|
15
|
+
* recovery UI without matching error-message text. */
|
|
16
|
+
export declare class WidgetInitializationError extends Error {
|
|
17
|
+
readonly code: 'config-fetch-failed';
|
|
18
|
+
readonly details: unknown;
|
|
19
|
+
constructor(code: 'config-fetch-failed', message: string, details?: unknown);
|
|
20
|
+
}
|
|
11
21
|
export declare class WidgetCtx {
|
|
12
22
|
config: WidgetConfig;
|
|
13
23
|
api: ApiCaller;
|
|
@@ -15,6 +25,7 @@ export declare class WidgetCtx {
|
|
|
15
25
|
sessionCtx: SessionCtx;
|
|
16
26
|
messageCtx: MessageCtx;
|
|
17
27
|
csatCtx: CsatCtx;
|
|
28
|
+
dictationCtx: DictationCtx;
|
|
18
29
|
routerCtx: RouterCtx;
|
|
19
30
|
storageCtx?: StorageCtx;
|
|
20
31
|
modes: ModeDto[];
|
|
@@ -22,6 +33,22 @@ export declare class WidgetCtx {
|
|
|
22
33
|
id: string;
|
|
23
34
|
name: string;
|
|
24
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* The org's agent — branding plus which engine serves it — resolved by the
|
|
38
|
+
* backend at init. The `bot` option overrides the branding at render time.
|
|
39
|
+
*/
|
|
40
|
+
readonly agent: WidgetAgent;
|
|
41
|
+
/**
|
|
42
|
+
* Whether turns stream (the v5 agent-chat engine) or use the blocking
|
|
43
|
+
* bot-chat send. Decided by the SERVER per org; the single source for every
|
|
44
|
+
* "which engine?" decision in the widget.
|
|
45
|
+
*/
|
|
46
|
+
get streaming(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The org's features narrowed by this embed's `config.features` — the
|
|
49
|
+
* answers the UI asks for, resolved once for the ctx lifetime.
|
|
50
|
+
*/
|
|
51
|
+
readonly features: WidgetClientFeatures;
|
|
25
52
|
private static pollingIntervalsSeconds;
|
|
26
53
|
private activeSessionPollingCtx;
|
|
27
54
|
private constructor();
|
|
@@ -30,5 +57,11 @@ export declare class WidgetCtx {
|
|
|
30
57
|
storage?: ExternalStorage;
|
|
31
58
|
}) => Promise<WidgetCtx>;
|
|
32
59
|
resetChat: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Ingest the canonical rows the backend persisted for a streamed turn.
|
|
62
|
+
* Called by the agent-chat surface when a turn finishes; the polling
|
|
63
|
+
* context owns history mapping/dedupe, so this delegates to it.
|
|
64
|
+
*/
|
|
65
|
+
reconcileAfterStream: (sessionId: string) => Promise<void>;
|
|
33
66
|
}
|
|
34
67
|
//# sourceMappingURL=widget.ctx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.ctx.d.ts","sourceRoot":"","sources":["../../../src/context/widget.ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,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AE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,EAAE,OAAO,EAAE,CAAM;IAEtB,GAAG,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF;;;OAGG;IACH,SAAgB,KAAK,EAAE,WAAW,CAAC;IAEnC;;;;OAIG;IACH,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED;;;OAGG;IACH,SAAgB,QAAQ,EAAE,oBAAoB,CAAC;IAE/C,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAGtB;IAChB,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO;IAoFP,MAAM,CAAC,UAAU,GAAU,sBAGxB;QACD,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,eAAe,CAAC;KAC3B,wBA8BC;IAEF,SAAS,aAGP;IAEF;;;;OAIG;IACH,oBAAoB,GAAI,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CACM;CAChE"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spoken-command grammar for voice dictation.
|
|
3
|
+
*
|
|
4
|
+
* The transcription model already auto-punctuates and capitalizes, so spoken
|
|
5
|
+
* punctuation ("comma", "period") is deliberately NOT converted — saying
|
|
6
|
+
* punctuation aloud is optional and the words stay literal unless they form a
|
|
7
|
+
* standalone command sentence. What IS recognized (Dragon-style) are
|
|
8
|
+
* structural and control commands spoken as their own utterance:
|
|
9
|
+
*
|
|
10
|
+
* "new line" → line break
|
|
11
|
+
* "new paragraph" → paragraph break
|
|
12
|
+
* "bullet point"/"next item" → start a list item ("- …")
|
|
13
|
+
* "scratch that"/"delete that"→ remove the previous sentence
|
|
14
|
+
* "stop dictation"/"stop listening" → end the session
|
|
15
|
+
* "send message"/"send it" → end the session and submit (composers)
|
|
16
|
+
*
|
|
17
|
+
* Precision guards:
|
|
18
|
+
* - A phrase only counts as a command when the model rendered it as its own
|
|
19
|
+
* sentence: preceded by start-of-text or sentence-ending punctuation, and
|
|
20
|
+
* FOLLOWED by punctuation (the model punctuates a spoken pause — the pause
|
|
21
|
+
* IS the signal, exactly like Dragon). ". Send it to the team" never fires.
|
|
22
|
+
* - A completed phrase at stream end with no punctuation yet stays PENDING
|
|
23
|
+
* until the next delta disambiguates it — except in `final` mode (the user
|
|
24
|
+
* stopped: stopping is the pause, so the phrase resolves as a command).
|
|
25
|
+
* - Command phrases are scoped to English + the session's UI language, so an
|
|
26
|
+
* Italian speaker's ordinary "Cancella." can't fire scratch-that in an
|
|
27
|
+
* English session and vice versa.
|
|
28
|
+
*/
|
|
29
|
+
export type DictationControlAction = 'stop' | 'send';
|
|
30
|
+
export interface ProcessedDictation {
|
|
31
|
+
/** Text ready for insertion, with commands applied. */
|
|
32
|
+
text: string;
|
|
33
|
+
/**
|
|
34
|
+
* Trailing raw characters withheld from insertion because they could still
|
|
35
|
+
* grow into a command phrase ("New paragr…"), or ARE a completed phrase
|
|
36
|
+
* awaiting its terminator ("Send it"). Empty in `final` mode.
|
|
37
|
+
*/
|
|
38
|
+
pendingTail: string;
|
|
39
|
+
/** Control command encountered (processing stops at that point). */
|
|
40
|
+
control: DictationControlAction | null;
|
|
41
|
+
}
|
|
42
|
+
export interface ProcessOptions {
|
|
43
|
+
/** ISO language hint (same value sent to the transcription session). */
|
|
44
|
+
language?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* End-of-stream semantics: the user stopped, so a completed command phrase
|
|
47
|
+
* at the very end fires without waiting for punctuation, and no text is
|
|
48
|
+
* withheld — partial phrases are released as literal words.
|
|
49
|
+
*/
|
|
50
|
+
final?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare class DictationCommandUtils {
|
|
53
|
+
/**
|
|
54
|
+
* Process the full raw transcript accumulated so far into insertable text.
|
|
55
|
+
* Pure and deterministic: always called with the entire raw string so the
|
|
56
|
+
* result never depends on delta chunking.
|
|
57
|
+
*/
|
|
58
|
+
static process(raw: string, options?: ProcessOptions): ProcessedDictation;
|
|
59
|
+
/**
|
|
60
|
+
* Longest suffix of `raw` that could still become a command — a proper
|
|
61
|
+
* prefix of a phrase ("New paragr…") OR a COMPLETED phrase with no
|
|
62
|
+
* terminator yet ("…Send it"). Both are withheld from insertion: the next
|
|
63
|
+
* delta either brings punctuation (the phrase was a spoken command) or more
|
|
64
|
+
* words ("Send it to the team" — released as ordinary text). Firing a
|
|
65
|
+
* control command from an intermediate delta would stop or submit
|
|
66
|
+
* mid-sentence.
|
|
67
|
+
*/
|
|
68
|
+
static commandPrefixTail(raw: string, language?: string | undefined): string;
|
|
69
|
+
/**
|
|
70
|
+
* True when the current pending tail is a COMPLETED phrase (not a partial
|
|
71
|
+
* prefix) — i.e. a silence pause would resolve it into a command. Used by
|
|
72
|
+
* the manager's silence timer.
|
|
73
|
+
*/
|
|
74
|
+
static pendingTailIsCompletePhrase(raw: string, language?: string | undefined): boolean;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=dictation-commands.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictation-commands.utils.d.ts","sourceRoot":"","sources":["../../../src/dictation/dictation-commands.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAqND,qBAAa,qBAAqB;IAChC;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,kBAAkB;IAuDzE;;;;;;;;OAQG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAoB5E;;;;OAIG;IACH,MAAM,CAAC,2BAA2B,CAChC,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAC5B,OAAO;CAOX"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure helpers for the dictation hook: paced text reveal ("drip") and the
|
|
3
|
+
* transcription language hint.
|
|
4
|
+
*/
|
|
5
|
+
/** Cadence of the word-drip renderer (ms per step). */
|
|
6
|
+
export declare const DRIP_INTERVAL_MS = 55;
|
|
7
|
+
export declare class DictationDripUtils {
|
|
8
|
+
/**
|
|
9
|
+
* Next paced step toward `processed`: normally one word per tick so text
|
|
10
|
+
* flows evenly instead of landing in bursty chunks; proportionally larger
|
|
11
|
+
* steps when a burst put us far behind. Assumes `processed` extends
|
|
12
|
+
* `displayed` (callers reconcile immediately otherwise).
|
|
13
|
+
*/
|
|
14
|
+
static nextDripText({ displayed, processed, }: {
|
|
15
|
+
displayed: string;
|
|
16
|
+
processed: string;
|
|
17
|
+
}): string;
|
|
18
|
+
/** Normalize a BCP-47 browser locale into the hint OpenAI accepts. */
|
|
19
|
+
static languageHint(locale: string | undefined): string | undefined;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=dictation-drip.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictation-drip.utils.d.ts","sourceRoot":"","sources":["../../../src/dictation/dictation-drip.utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,uDAAuD;AACvD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAInC,qBAAa,kBAAkB;IAC7B;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,EAClB,SAAS,EACT,SAAS,GACV,EAAE;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,MAAM;IAeV,sEAAsE;IACtE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;CASpE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asymmetric level smoother shared by every voice meter: fast attack so the
|
|
3
|
+
* UI kicks with speech, slow release so it settles instead of twitching.
|
|
4
|
+
* One implementation so the mic bars, edge glow, and width swell can never
|
|
5
|
+
* drift apart in feel — only in their chosen constants.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DictationLevelSmoother {
|
|
8
|
+
private readonly attack;
|
|
9
|
+
private readonly release;
|
|
10
|
+
private value;
|
|
11
|
+
constructor({ attack, release }: {
|
|
12
|
+
attack: number;
|
|
13
|
+
release: number;
|
|
14
|
+
});
|
|
15
|
+
next(target: number): number;
|
|
16
|
+
current(): number;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=dictation-level-smoother.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictation-level-smoother.d.ts","sourceRoot":"","sources":["../../../src/dictation/dictation-level-smoother.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,KAAK,CAAK;gBAEN,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAKpE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAO5B,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DictationMint } from './dictation-session';
|
|
2
|
+
/**
|
|
3
|
+
* Session-token reuse: an ephemeral client secret can open multiple realtime
|
|
4
|
+
* sessions until it expires (120s TTL), so re-minting on every activation
|
|
5
|
+
* wastes a full backend round trip. The cache holds the latest mint and
|
|
6
|
+
* hands it back while comfortably inside its TTL; hovering the mic
|
|
7
|
+
* pre-warms it so the first click starts instantly too.
|
|
8
|
+
*
|
|
9
|
+
* One instance per widget (owned by DictationCtx), never module state — two
|
|
10
|
+
* widgets on one page must not share a mint across orgs.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DictationMintCache {
|
|
13
|
+
private cached;
|
|
14
|
+
private inflight;
|
|
15
|
+
/** Valid cached mint, or null. */
|
|
16
|
+
get(): DictationMint | null;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve a mint, deduping concurrent requests (hover-prewarm racing a
|
|
19
|
+
* click reuses the same in-flight promise instead of double-minting).
|
|
20
|
+
*/
|
|
21
|
+
resolve(mintFresh: () => Promise<DictationMint>): Promise<DictationMint>;
|
|
22
|
+
/** Drop the cache (e.g. after a failed handshake — token may be stale). */
|
|
23
|
+
clear(): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=dictation-mint-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictation-mint-cache.d.ts","sourceRoot":"","sources":["../../../src/dictation/dictation-mint-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKzD;;;;;;;;;GASG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,QAAQ,CAAuC;IAEvD,kCAAkC;IAClC,GAAG,IAAI,aAAa,GAAG,IAAI;IAa3B;;;OAGG;IACG,OAAO,CACX,SAAS,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,GACtC,OAAO,CAAC,aAAa,CAAC;IAgBzB,2EAA2E;IAC3E,KAAK;CAGN"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One live dictation session: microphone → WebRTC → realtime transcription.
|
|
3
|
+
* The browser talks to the transcription service directly with a short-lived
|
|
4
|
+
* ephemeral token minted by the backend — audio and transcripts never touch
|
|
5
|
+
* OpenCX servers, and the real API key never reaches the browser.
|
|
6
|
+
*
|
|
7
|
+
* WebRTC (not WebSocket) because the browser stack handles Opus encoding,
|
|
8
|
+
* jitter buffering and echo cancellation natively — no PCM plumbing, lowest
|
|
9
|
+
* practical latency.
|
|
10
|
+
*
|
|
11
|
+
* Errors are CODES (the widget renders them through its translation table).
|
|
12
|
+
*/
|
|
13
|
+
export type DictationSessionState = 'idle' | 'connecting' | 'listening' | 'stopped' | 'error';
|
|
14
|
+
export type DictationErrorCode =
|
|
15
|
+
/** No getUserMedia, permission denied, or no device. */
|
|
16
|
+
'microphone'
|
|
17
|
+
/** Mint, handshake, or transport failure. */
|
|
18
|
+
| 'unavailable';
|
|
19
|
+
export interface DictationMint {
|
|
20
|
+
token: string;
|
|
21
|
+
expiresAt: string;
|
|
22
|
+
model: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class DictationSession {
|
|
25
|
+
private readonly mintToken;
|
|
26
|
+
private readonly onDelta;
|
|
27
|
+
private readonly onState;
|
|
28
|
+
private readonly onError;
|
|
29
|
+
private readonly onLevel;
|
|
30
|
+
private state;
|
|
31
|
+
private pc;
|
|
32
|
+
private dc;
|
|
33
|
+
private stream;
|
|
34
|
+
private audioContext;
|
|
35
|
+
private levelRaf;
|
|
36
|
+
private timers;
|
|
37
|
+
private loggedParseFailure;
|
|
38
|
+
constructor({ mintToken, onDelta, onState, onError, onLevel, }: {
|
|
39
|
+
mintToken: () => Promise<DictationMint>;
|
|
40
|
+
onDelta: (delta: string) => void;
|
|
41
|
+
onState: (state: DictationSessionState) => void;
|
|
42
|
+
onError: (code: DictationErrorCode) => void;
|
|
43
|
+
onLevel?: (level: number) => void;
|
|
44
|
+
});
|
|
45
|
+
start(): Promise<void>;
|
|
46
|
+
stop(): void;
|
|
47
|
+
private requestMicrophone;
|
|
48
|
+
private handleServerEvent;
|
|
49
|
+
private startLevelMeter;
|
|
50
|
+
private isTornDown;
|
|
51
|
+
private fail;
|
|
52
|
+
private teardown;
|
|
53
|
+
private setState;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=dictation-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictation-session.d.ts","sourceRoot":"","sources":["../../../src/dictation/dictation-session.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN,YAAY,GACZ,WAAW,GACX,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,MAAM,kBAAkB;AAC5B,wDAAwD;AACtD,YAAY;AACd,6CAA6C;GAC3C,aAAa,CAAC;AAElB,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAgCD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyC;IACjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqC;IAC7D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;IAEhE,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,EAAE,CAAkC;IAC5C,OAAO,CAAC,EAAE,CAA+B;IACzC,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,MAAM,CAAuC;IACrD,OAAO,CAAC,kBAAkB,CAAS;gBAEvB,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE;QACD,SAAS,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;QACxC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;QAChD,OAAO,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;QAC5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;KACnC;IAQK,KAAK;IAiGX,IAAI;YAMU,iBAAiB;IAmB/B,OAAO,CAAC,iBAAiB;IAuCzB,OAAO,CAAC,eAAe;IA8BvB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,QAAQ;IAmBhB,OAAO,CAAC,QAAQ;CAKjB"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
export type { Agent } from './types/agent';
|
|
2
2
|
export type { SafeExtract, SafeOmit, StringOrLiteral } from './types/helpers';
|
|
3
|
-
export type { LiteralWidgetComponentKey, WidgetComponentKey, WidgetUserMessage, WidgetAgentMessage, WidgetAiMessage, WidgetSystemMessage__StateCheckpoint, WidgetSystemMessage__CsatRequested, WidgetSystemMessage__CsatSubmitted, WidgetSystemMessageU, WidgetMessageU, } from './types/messages';
|
|
4
|
-
export type { MessageAttachmentType, MessageDto, SendMessageDto, SendMessageOutputDto, ResolveSessionDto, SessionDto, VoteInputDto, VoteOutputDto, ActionCallDto, ModeDto, } from './types/dtos';
|
|
5
|
-
export type { WidgetConfig, HeaderButtonU, ComponentContext, ModeComponent, ModeComponentProps, CustomComponent, CustomComponentProps, } from './types/widget-config';
|
|
3
|
+
export type { LiteralWidgetComponentKey, MarkedElementRef, WidgetComponentKey, WidgetUserMessage, WidgetAgentMessage, WidgetAiMessage, WidgetSystemMessage__StateCheckpoint, WidgetSystemMessage__CsatRequested, WidgetSystemMessage__CsatSubmitted, WidgetSystemMessageU, WidgetMessageU, } from './types/messages';
|
|
4
|
+
export type { MessageAttachmentType, MessageDto, SendMessageDto, SendMessageOutputDto, ResolveSessionDto, SessionDto, VoteInputDto, VoteOutputDto, ActionCallDto, ModeDto, AgentTurnMessagesDto, } from './types/dtos';
|
|
5
|
+
export type { WidgetConfig, WidgetDisplayModeU, WidgetCompanionLayoutU, WidgetCompanionDefaultLayoutU, WidgetSidebarSideU, WidgetSidebarModeU, HeaderButtonU, ComponentContext, ModeComponent, ModeComponentProps, CustomComponent, CustomComponentProps, WidgetUiAction, WidgetContext, WidgetMention, WidgetMentionsOptions, WidgetPageContext, } from './types/widget-config';
|
|
6
6
|
export type { ExternalStorage } from './types/external-storage';
|
|
7
7
|
export type { OpenCxComponentNameU } from './types/component-name';
|
|
8
8
|
export type { IconNameU } from './types/icons';
|
|
9
|
-
export {
|
|
9
|
+
export { isAgentStreamKeepalive, isTurnSteeredPart, } from './api/agent-stream-parts';
|
|
10
|
+
export { WidgetCtx, WidgetInitializationError } from './context/widget.ctx';
|
|
11
|
+
export type { WidgetAgent, WidgetClientFeatures } from './context/widget-agent';
|
|
10
12
|
export type { ContactCtx } from './context/contact.ctx';
|
|
11
13
|
export type { SessionCtx } from './context/session.ctx';
|
|
12
|
-
export type { MessageCtx } from './context/message.ctx';
|
|
14
|
+
export type { MessageCtx, SendMessageInput, StagedUserTurn, } from './context/message.ctx';
|
|
15
|
+
export { buildSendMessageBody, resolveConfigContext, } from './context/message.ctx';
|
|
13
16
|
export type { RouterCtx, ScreenU } from './context/router.ctx';
|
|
14
17
|
export type { CsatCtx } from './context/csat.ctx';
|
|
18
|
+
export type { DictationCtx, DictationCtxState, DictationStatus, DictationTarget, } from './context/dictation.ctx';
|
|
19
|
+
export type { DictationErrorCode } from './dictation/dictation-session';
|
|
20
|
+
export { DictationLevelSmoother } from './dictation/dictation-level-smoother';
|
|
15
21
|
export { PrimitiveState } from './utils/PrimitiveState';
|
|
22
|
+
export { genUuid } from './utils/uuid';
|
|
23
|
+
export { log } from './utils/log';
|
|
24
|
+
export { isRecord } from './utils/is-record';
|
|
25
|
+
export { normalizeCompanionLayouts, resolveCompanionDefaultLayout, resolveSidebarMode, resolveSidebarSide, } from './utils/companion-layout';
|
|
26
|
+
export type { WidgetSidebarSideResolvedU } from './utils/companion-layout';
|
|
16
27
|
export { isExhaustive } from './utils/is-exhaustive';
|
|
17
|
-
export { type Language, type TranslationInterface, type TranslationKeyU, getTranslation, isSupportedLanguage, } from './translation';
|
|
28
|
+
export { type Language, type TranslationInterface, type TranslationKeyU, getTranslation, isRtlLanguage, isSupportedLanguage, resolveLanguage, translate, } from './translation';
|
|
18
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC9E,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,oBAAoB,EACpB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,WAAW,EA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AoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,SAAS,GACV,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/translation/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/translation/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,oBA0F5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bg.d.ts","sourceRoot":"","sources":["../../../src/translation/bg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"bg.d.ts","sourceRoot":"","sources":["../../../src/translation/bg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,oBA2F/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../src/translation/bn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../src/translation/bn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,oBA2F7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cs.d.ts","sourceRoot":"","sources":["../../../src/translation/cs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"cs.d.ts","sourceRoot":"","sources":["../../../src/translation/cs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,oBA2F3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"da.d.ts","sourceRoot":"","sources":["../../../src/translation/da.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"da.d.ts","sourceRoot":"","sources":["../../../src/translation/da.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,oBA2F5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/translation/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/translation/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,oBA6F5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../../src/translation/el.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../../src/translation/el.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,oBA4F3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translation/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translation/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,oBA0F7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/translation/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/translation/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,oBA4F7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"et.d.ts","sourceRoot":"","sources":["../../../src/translation/et.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"et.d.ts","sourceRoot":"","sources":["../../../src/translation/et.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,oBA2F9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fi.d.ts","sourceRoot":"","sources":["../../../src/translation/fi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"fi.d.ts","sourceRoot":"","sources":["../../../src/translation/fi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,oBA2F7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fil.d.ts","sourceRoot":"","sources":["../../../src/translation/fil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"fil.d.ts","sourceRoot":"","sources":["../../../src/translation/fil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,oBA2F9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/translation/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/translation/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,oBA8F5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../src/translation/hi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../src/translation/hi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,oBA2F3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../../src/translation/hr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../../src/translation/hr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,oBA2F9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hu.d.ts","sourceRoot":"","sources":["../../../src/translation/hu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"hu.d.ts","sourceRoot":"","sources":["../../../src/translation/hu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,oBA2F/B,CAAC"}
|
|
@@ -42,7 +42,12 @@ declare const languages: {
|
|
|
42
42
|
export declare const LANGUAGES: (keyof typeof languages)[];
|
|
43
43
|
export type Language = (typeof LANGUAGES)[number];
|
|
44
44
|
export declare function isSupportedLanguage(lang: string | null | undefined): lang is Language;
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function isRtlLanguage(lang: Language): boolean;
|
|
46
|
+
/** The language the widget renders in: `config.language` when supported, else English. */
|
|
47
|
+
export declare function resolveLanguage(lang: string | null | undefined): Language;
|
|
48
|
+
export declare function getTranslation(key: TranslationKeyU, lang: Language, overrides: WidgetConfig['translationOverrides'], params?: Record<string, string | number>): string;
|
|
49
|
+
/** `getTranslation` for code that holds the config rather than a language. */
|
|
50
|
+
export declare function translate(config: Pick<WidgetConfig, 'language' | 'translationOverrides'>, key: TranslationKeyU, params?: Record<string, string | number>): string;
|
|
46
51
|
export type TranslationInterface = {
|
|
47
52
|
i_need_more_help: string;
|
|
48
53
|
this_was_helpful: string;
|
|
@@ -62,6 +67,87 @@ export type TranslationInterface = {
|
|
|
62
67
|
csat_title: string;
|
|
63
68
|
csat_submitted_title: string;
|
|
64
69
|
csat_feedback_placeholder: string;
|
|
70
|
+
follow_up_placeholder: string;
|
|
71
|
+
companion_layout_label: string;
|
|
72
|
+
companion_layout_floating: string;
|
|
73
|
+
companion_layout_sidebar: string;
|
|
74
|
+
companion_layout_fullscreen: string;
|
|
75
|
+
companion_close: string;
|
|
76
|
+
companion_history: string;
|
|
77
|
+
companion_expand_chat: string;
|
|
78
|
+
companion_sidebar_dock_label: string;
|
|
79
|
+
companion_sidebar_side_label: string;
|
|
80
|
+
companion_sidebar_left: string;
|
|
81
|
+
companion_sidebar_right: string;
|
|
82
|
+
companion_resize_chat: string;
|
|
83
|
+
scroll_to_bottom: string;
|
|
84
|
+
thinking: string;
|
|
85
|
+
running: string;
|
|
86
|
+
steps: string;
|
|
87
|
+
step_arguments: string;
|
|
88
|
+
step_result: string;
|
|
89
|
+
attach_files: string;
|
|
90
|
+
mark_page_active: string;
|
|
91
|
+
mark_page: string;
|
|
92
|
+
stop_response: string;
|
|
93
|
+
copy_reply: string;
|
|
94
|
+
mentions_empty: string;
|
|
95
|
+
copied: string;
|
|
96
|
+
dictate: string;
|
|
97
|
+
stop_dictation: string;
|
|
98
|
+
dictation_mic_blocked: string;
|
|
99
|
+
dictation_unavailable: string;
|
|
100
|
+
send_message: string;
|
|
101
|
+
upload_failed: string;
|
|
102
|
+
file_rejected: string;
|
|
103
|
+
remove_attachment: string;
|
|
104
|
+
json_no_items: string;
|
|
105
|
+
json_no_data: string;
|
|
106
|
+
json_no_chart_data: string;
|
|
107
|
+
json_unsupported: string;
|
|
108
|
+
json_see_less: string;
|
|
109
|
+
/** Subtitle of a tool-built phone-agent card. */
|
|
110
|
+
json_phone_agent: string;
|
|
111
|
+
/** The phone-agent card's action, completed by the host page. */
|
|
112
|
+
json_phone_agent_test: string;
|
|
113
|
+
/** Dismisses the composer's page-context (entity) pill for one message. */
|
|
114
|
+
page_context_remove: string;
|
|
115
|
+
json_see_more: string;
|
|
116
|
+
page_mark_hint: string;
|
|
117
|
+
page_mark_escape: string;
|
|
118
|
+
page_mark_shape_box: string;
|
|
119
|
+
page_mark_shape_circle: string;
|
|
120
|
+
page_mark_shape_arrow: string;
|
|
121
|
+
page_mark_shape_bracket: string;
|
|
122
|
+
page_mark_shape_underline: string;
|
|
123
|
+
page_mark_shape_highlight: string;
|
|
124
|
+
page_mark_shape_strike_through: string;
|
|
125
|
+
page_mark_shape_crossed_off: string;
|
|
126
|
+
page_mark_shape_aria: string;
|
|
127
|
+
page_mark_note_placeholder: string;
|
|
128
|
+
page_mark_attach: string;
|
|
129
|
+
page_mark_remove: string;
|
|
130
|
+
page_mark_region: string;
|
|
131
|
+
page_mark_default_message: string;
|
|
132
|
+
/** Header of the multi-send queue pill above the composer. */
|
|
133
|
+
queued_label: string;
|
|
134
|
+
/** Accessible label of the per-message remove button in the queue pill. */
|
|
135
|
+
remove_queued_message: string;
|
|
136
|
+
send_queued_now: string;
|
|
137
|
+
/** Body of the error row shown when an agent turn failed to arrive. */
|
|
138
|
+
turn_failed_message: string;
|
|
139
|
+
/** Retry action in the failed-turn error row. */
|
|
140
|
+
turn_failed_retry: string;
|
|
141
|
+
/** Previous question in the agent's clarification card. */
|
|
142
|
+
questions_back: string;
|
|
143
|
+
/** Next question in the agent's clarification card. */
|
|
144
|
+
questions_next: string;
|
|
145
|
+
/** Submits every answer of the clarification card as one message. */
|
|
146
|
+
questions_send: string;
|
|
147
|
+
/** Escape from the offered chips into a free-text answer. */
|
|
148
|
+
questions_type_answer: string;
|
|
149
|
+
/** Placeholder of that free-text answer box. */
|
|
150
|
+
questions_answer_placeholder: string;
|
|
65
151
|
};
|
|
66
152
|
export type TranslationKeyU = keyof TranslationInterface;
|
|
67
153
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAwC3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCL,CAAC;AAEX,eAAO,MAAM,SAAS,EAA6B,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAC9E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,IAAI,IAAI,QAAQ,CAElB;AAED,wBAAgB,cAAc,CAC5B,GAAG,EAAE,eAAe,EACpB,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,YAAY,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAwC3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCL,CAAC;AAEX,eAAO,MAAM,SAAS,EAA6B,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAC9E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,IAAI,IAAI,QAAQ,CAElB;AAKD,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAErD;AAED,0FAA0F;AAC1F,w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AAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../../src/translation/is.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,oBA2F/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/translation/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/translation/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,oBA6F7B,CAAC"}
|