@absolutejs/voice 0.0.22-beta.189 → 0.0.22-beta.190

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.
@@ -0,0 +1,22 @@
1
+ import type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult } from '../liveOps';
2
+ export type VoiceLiveOpsClientOptions = {
3
+ actionPath?: string;
4
+ fetch?: typeof fetch;
5
+ onControl?: (result: VoiceLiveOpsActionResult) => Promise<void> | void;
6
+ };
7
+ export type VoiceLiveOpsSnapshot = {
8
+ error: string | null;
9
+ isRunning: boolean;
10
+ lastResult?: VoiceLiveOpsActionResult;
11
+ runningAction?: VoiceLiveOpsAction;
12
+ updatedAt?: number;
13
+ };
14
+ export declare const postVoiceLiveOpsAction: (input: VoiceLiveOpsActionInput, options?: VoiceLiveOpsClientOptions) => Promise<VoiceLiveOpsActionResult>;
15
+ export declare const createVoiceLiveOpsStore: (options?: VoiceLiveOpsClientOptions) => {
16
+ close: () => void;
17
+ getServerSnapshot: () => VoiceLiveOpsSnapshot;
18
+ getSnapshot: () => VoiceLiveOpsSnapshot;
19
+ run: (input: VoiceLiveOpsActionInput) => Promise<VoiceLiveOpsActionResult | undefined>;
20
+ subscribe: (listener: () => void) => () => void;
21
+ };
22
+ export type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult };
@@ -0,0 +1,23 @@
1
+ import { type VoiceLiveOpsAction, type VoiceLiveOpsActionInput } from '../liveOps';
2
+ import { type VoiceLiveOpsClientOptions, type VoiceLiveOpsSnapshot } from './liveOps';
3
+ export type VoiceLiveOpsWidgetOptions = VoiceLiveOpsClientOptions & {
4
+ defaultAssignee?: string;
5
+ defaultDetail?: string;
6
+ defaultTag?: string;
7
+ description?: string;
8
+ getSessionId?: () => string | null | undefined;
9
+ title?: string;
10
+ };
11
+ export declare const createVoiceLiveOpsInput: (action: VoiceLiveOpsAction, input: {
12
+ assignee?: string;
13
+ detail?: string;
14
+ sessionId?: string | null;
15
+ tag?: string;
16
+ }) => VoiceLiveOpsActionInput;
17
+ export declare const renderVoiceLiveOpsHTML: (snapshot: VoiceLiveOpsSnapshot, options?: VoiceLiveOpsWidgetOptions) => string;
18
+ export declare const getVoiceLiveOpsCSS: () => string;
19
+ export declare const mountVoiceLiveOps: (element: Element, options?: VoiceLiveOpsWidgetOptions) => {
20
+ close: () => void;
21
+ run: (input: VoiceLiveOpsActionInput) => Promise<import("..").VoiceLiveOpsActionResult | undefined>;
22
+ };
23
+ export declare const defineVoiceLiveOpsElement: (tagName?: string, options?: VoiceLiveOpsWidgetOptions) => void;
package/dist/index.d.ts CHANGED
@@ -14,6 +14,8 @@ export { buildVoiceDiagnosticsMarkdown, createVoiceDiagnosticsRoutes, resolveVoi
14
14
  export { buildVoiceDemoReadyReport, createVoiceDemoReadyRoutes, renderVoiceDemoReadyHTML } from './demoReadyRoutes';
15
15
  export { buildVoiceDeliverySinkReport, createVoiceDeliverySinkDescriptor, createVoiceDeliverySinkPair, createVoiceDeliverySinkRoutes, createVoiceFileDeliverySink, createVoicePostgresDeliverySink, createVoiceS3DeliverySink, createVoiceSQLiteDeliverySink, createVoiceWebhookDeliverySink, renderVoiceDeliverySinkHTML } from './deliverySinkRoutes';
16
16
  export { buildVoiceOpsActionHistoryReport, createVoiceOpsActionAuditRoutes, recordVoiceOpsActionAudit, renderVoiceOpsActionHistoryHTML } from './opsActionAuditRoutes';
17
+ export { buildVoiceLiveOpsControlState, createVoiceLiveOpsController, createVoiceLiveOpsRoutes, createVoiceMemoryLiveOpsControlStore, getVoiceLiveOpsControlStatus, VOICE_LIVE_OPS_ACTIONS } from './liveOps';
18
+ export type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult, VoiceLiveOpsControllerOptions, VoiceLiveOpsControlState, VoiceLiveOpsControlStatus, VoiceLiveOpsControlStore, VoiceLiveOpsRoutesOptions } from './liveOps';
17
19
  export { buildVoiceDeliveryRuntimeReport, createVoiceDeliveryRuntime, createVoiceDeliveryRuntimePresetConfig, createVoiceDeliveryRuntimeRoutes, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntime';
18
20
  export { applyVoiceDataRetentionPolicy, buildVoiceDataRetentionPlan } from './dataControl';
19
21
  export type { VoiceDataRetentionPolicy, VoiceDataRetentionReport, VoiceDataRetentionScope, VoiceDataRetentionScopeReport, VoiceDataRetentionStores } from './dataControl';