@absolutejs/voice 0.0.22-beta.110 → 0.0.22-beta.111
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.js +27 -0
- package/dist/postgresStore.d.ts +3 -0
- package/dist/sqliteStore.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export { createVoiceResilienceRoutes, createVoiceRoutingDecisionSummary, listVoi
|
|
|
31
31
|
export { createVoiceSTTProviderRouter, createVoiceTTSProviderRouter } from './providerAdapters';
|
|
32
32
|
export { buildVoiceTraceReplay, createVoiceMemoryTraceSinkDeliveryStore, createVoiceTraceHTTPSink, createVoiceMemoryTraceEventStore, createVoiceTraceSinkDeliveryId, createVoiceTraceSinkDeliveryRecord, createVoiceTraceSinkStore, createVoiceTraceEvent, createVoiceTraceEventId, deliverVoiceTraceEventsToSinks, evaluateVoiceTrace, exportVoiceTrace, filterVoiceTraceEvents, pruneVoiceTraceEvents, redactVoiceTraceEvent, redactVoiceTraceEvents, redactVoiceTraceText, renderVoiceTraceHTML, renderVoiceTraceMarkdown, resolveVoiceTraceRedactionOptions, selectVoiceTraceEventsForPrune, summarizeVoiceTrace } from './trace';
|
|
33
33
|
export { createVoiceTraceTimelineRoutes, renderVoiceTraceTimelineHTML, renderVoiceTraceTimelineSessionHTML, summarizeVoiceTraceTimeline } from './traceTimeline';
|
|
34
|
-
export { createVoiceSQLiteExternalObjectMapStore, createVoiceSQLiteIntegrationEventStore, createVoiceSQLiteReviewStore, createVoiceSQLiteRuntimeStorage, createVoiceSQLiteSessionStore, createVoiceSQLiteTaskStore, createVoiceSQLiteTelephonyWebhookIdempotencyStore, createVoiceSQLiteTraceSinkDeliveryStore, createVoiceSQLiteTraceEventStore } from './sqliteStore';
|
|
35
|
-
export { createVoicePostgresExternalObjectMapStore, createVoicePostgresIntegrationEventStore, createVoicePostgresReviewStore, createVoicePostgresRuntimeStorage, createVoicePostgresSessionStore, createVoicePostgresTaskStore, createVoicePostgresTelephonyWebhookIdempotencyStore, createVoicePostgresTraceSinkDeliveryStore, createVoicePostgresTraceEventStore } from './postgresStore';
|
|
34
|
+
export { createVoiceSQLiteCampaignStore, createVoiceSQLiteExternalObjectMapStore, createVoiceSQLiteIntegrationEventStore, createVoiceSQLiteReviewStore, createVoiceSQLiteRuntimeStorage, createVoiceSQLiteSessionStore, createVoiceSQLiteTaskStore, createVoiceSQLiteTelephonyWebhookIdempotencyStore, createVoiceSQLiteTraceSinkDeliveryStore, createVoiceSQLiteTraceEventStore } from './sqliteStore';
|
|
35
|
+
export { createVoicePostgresCampaignStore, createVoicePostgresExternalObjectMapStore, createVoicePostgresIntegrationEventStore, createVoicePostgresReviewStore, createVoicePostgresRuntimeStorage, createVoicePostgresSessionStore, createVoicePostgresTaskStore, createVoicePostgresTelephonyWebhookIdempotencyStore, createVoicePostgresTraceSinkDeliveryStore, createVoicePostgresTraceEventStore } from './postgresStore';
|
|
36
36
|
export { createVoiceS3ReviewStore } from './s3Store';
|
|
37
37
|
export { createVoiceMemoryStore } from './memoryStore';
|
|
38
38
|
export { createVoiceCRMActivitySink, createVoiceHelpdeskTicketSink, createVoiceIntegrationHTTPSink, createVoiceHubSpotTaskSink, createVoiceHubSpotTaskSyncSinks, createVoiceHubSpotTaskUpdateSink, createVoiceLinearIssueSink, createVoiceLinearIssueSyncSinks, createVoiceLinearIssueUpdateSink, createVoiceZendeskTicketSink, createVoiceZendeskTicketSyncSinks, createVoiceZendeskTicketUpdateSink, deliverVoiceIntegrationEventToSinks } from './opsSinks';
|
package/dist/index.js
CHANGED
|
@@ -16571,6 +16571,12 @@ var createSQLiteTelephonyWebhookIdempotencyStoreWithDatabase = (database, tableN
|
|
|
16571
16571
|
getSortAt: (value) => value.updatedAt,
|
|
16572
16572
|
tableName
|
|
16573
16573
|
});
|
|
16574
|
+
var createSQLiteCampaignStoreWithDatabase = (database, tableName) => createSQLiteRecordStore({
|
|
16575
|
+
database,
|
|
16576
|
+
decorate: (_id, value) => value,
|
|
16577
|
+
getSortAt: (value) => value.campaign.createdAt,
|
|
16578
|
+
tableName
|
|
16579
|
+
});
|
|
16574
16580
|
var createVoiceSQLiteSessionStore = (options) => createSQLiteSessionStoreWithDatabase(openVoiceSQLiteDatabase(options.path), resolveTableName({
|
|
16575
16581
|
fallback: "sessions",
|
|
16576
16582
|
options
|
|
@@ -16603,9 +16609,17 @@ var createVoiceSQLiteTelephonyWebhookIdempotencyStore = (options) => createSQLit
|
|
|
16603
16609
|
fallback: "telephony_webhook_idempotency",
|
|
16604
16610
|
options
|
|
16605
16611
|
}));
|
|
16612
|
+
var createVoiceSQLiteCampaignStore = (options) => createSQLiteCampaignStoreWithDatabase(openVoiceSQLiteDatabase(options.path), resolveTableName({
|
|
16613
|
+
fallback: "campaigns",
|
|
16614
|
+
options
|
|
16615
|
+
}));
|
|
16606
16616
|
var createVoiceSQLiteRuntimeStorage = (options) => {
|
|
16607
16617
|
const database = openVoiceSQLiteDatabase(options.path);
|
|
16608
16618
|
return {
|
|
16619
|
+
campaigns: createSQLiteCampaignStoreWithDatabase(database, resolveTableName({
|
|
16620
|
+
fallback: "campaigns",
|
|
16621
|
+
options
|
|
16622
|
+
})),
|
|
16609
16623
|
events: createSQLiteEventStoreWithDatabase(database, resolveTableName({
|
|
16610
16624
|
fallback: "events",
|
|
16611
16625
|
options
|
|
@@ -16827,6 +16841,15 @@ var createPostgresTelephonyWebhookIdempotencyStoreWithClient = (client, options)
|
|
|
16827
16841
|
}),
|
|
16828
16842
|
sql: client
|
|
16829
16843
|
});
|
|
16844
|
+
var createPostgresCampaignStoreWithClient = (client, options) => createPostgresRecordStore({
|
|
16845
|
+
decorate: (_id, value) => value,
|
|
16846
|
+
getSortAt: (value) => value.campaign.createdAt,
|
|
16847
|
+
qualifiedTableName: resolveQualifiedTableName({
|
|
16848
|
+
fallback: "campaigns",
|
|
16849
|
+
options
|
|
16850
|
+
}),
|
|
16851
|
+
sql: client
|
|
16852
|
+
});
|
|
16830
16853
|
var createVoicePostgresSessionStore = (options) => createPostgresSessionStoreWithClient(createVoicePostgresClient(options), options);
|
|
16831
16854
|
var createVoicePostgresReviewStore = (options) => createPostgresReviewStoreWithClient(createVoicePostgresClient(options), options);
|
|
16832
16855
|
var createVoicePostgresTaskStore = (options) => createPostgresTaskStoreWithClient(createVoicePostgresClient(options), options);
|
|
@@ -16835,9 +16858,11 @@ var createVoicePostgresExternalObjectMapStore = (options) => createPostgresExter
|
|
|
16835
16858
|
var createVoicePostgresTraceEventStore = (options) => createPostgresTraceEventStoreWithClient(createVoicePostgresClient(options), options);
|
|
16836
16859
|
var createVoicePostgresTraceSinkDeliveryStore = (options) => createPostgresTraceSinkDeliveryStoreWithClient(createVoicePostgresClient(options), options);
|
|
16837
16860
|
var createVoicePostgresTelephonyWebhookIdempotencyStore = (options) => createPostgresTelephonyWebhookIdempotencyStoreWithClient(createVoicePostgresClient(options), options);
|
|
16861
|
+
var createVoicePostgresCampaignStore = (options) => createPostgresCampaignStoreWithClient(createVoicePostgresClient(options), options);
|
|
16838
16862
|
var createVoicePostgresRuntimeStorage = (options) => {
|
|
16839
16863
|
const client = createVoicePostgresClient(options);
|
|
16840
16864
|
return {
|
|
16865
|
+
campaigns: createPostgresCampaignStoreWithClient(client, options),
|
|
16841
16866
|
events: createPostgresEventStoreWithClient(client, options),
|
|
16842
16867
|
externalObjects: createPostgresExternalObjectMapStoreWithClient(client, options),
|
|
16843
16868
|
reviews: createPostgresReviewStoreWithClient(client, options),
|
|
@@ -19018,6 +19043,7 @@ export {
|
|
|
19018
19043
|
createVoiceSQLiteReviewStore,
|
|
19019
19044
|
createVoiceSQLiteIntegrationEventStore,
|
|
19020
19045
|
createVoiceSQLiteExternalObjectMapStore,
|
|
19046
|
+
createVoiceSQLiteCampaignStore,
|
|
19021
19047
|
createVoiceS3ReviewStore,
|
|
19022
19048
|
createVoiceRoutingDecisionSummary,
|
|
19023
19049
|
createVoiceReviewSavedEvent,
|
|
@@ -19043,6 +19069,7 @@ export {
|
|
|
19043
19069
|
createVoicePostgresReviewStore,
|
|
19044
19070
|
createVoicePostgresIntegrationEventStore,
|
|
19045
19071
|
createVoicePostgresExternalObjectMapStore,
|
|
19072
|
+
createVoicePostgresCampaignStore,
|
|
19046
19073
|
createVoicePhoneAgent,
|
|
19047
19074
|
createVoiceOutcomeContractRoutes,
|
|
19048
19075
|
createVoiceOutcomeContractJSONHandler,
|
package/dist/postgresStore.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type Voi
|
|
|
2
2
|
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from './ops';
|
|
3
3
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
4
4
|
import type { VoiceTelephonyWebhookIdempotencyStore } from './telephonyOutcome';
|
|
5
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
5
6
|
import type { VoiceSessionRecord, VoiceSessionStore } from './types';
|
|
6
7
|
export type VoicePostgresClient = {
|
|
7
8
|
unsafe: <TRow extends Record<string, unknown> = Record<string, unknown>>(query: string, parameters?: unknown[]) => Promise<TRow[]>;
|
|
@@ -14,6 +15,7 @@ export type VoicePostgresStoreOptions = {
|
|
|
14
15
|
tablePrefix?: string;
|
|
15
16
|
};
|
|
16
17
|
export type VoicePostgresRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
18
|
+
campaigns: VoiceCampaignStore;
|
|
17
19
|
events: VoiceIntegrationEventStore<TEvent>;
|
|
18
20
|
externalObjects: VoiceExternalObjectMapStore<TMapping>;
|
|
19
21
|
reviews: VoiceCallReviewStore<TReview>;
|
|
@@ -30,4 +32,5 @@ export declare const createVoicePostgresExternalObjectMapStore: <TMapping extend
|
|
|
30
32
|
export declare const createVoicePostgresTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoicePostgresStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
31
33
|
export declare const createVoicePostgresTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoicePostgresStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
32
34
|
export declare const createVoicePostgresTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoicePostgresStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
35
|
+
export declare const createVoicePostgresCampaignStore: (options: VoicePostgresStoreOptions) => VoiceCampaignStore;
|
|
33
36
|
export declare const createVoicePostgresRuntimeStorage: <TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoicePostgresStoreOptions) => VoicePostgresRuntimeStorage<TSession, TReview, TTask, TEvent, TMapping, TTrace, TTraceDelivery>;
|
package/dist/sqliteStore.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type Voi
|
|
|
2
2
|
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from './ops';
|
|
3
3
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
4
4
|
import type { VoiceTelephonyWebhookIdempotencyStore } from './telephonyOutcome';
|
|
5
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
5
6
|
import type { VoiceSessionRecord, VoiceSessionStore } from './types';
|
|
6
7
|
export type VoiceSQLiteStoreOptions = {
|
|
7
8
|
path: string;
|
|
@@ -9,6 +10,7 @@ export type VoiceSQLiteStoreOptions = {
|
|
|
9
10
|
tablePrefix?: string;
|
|
10
11
|
};
|
|
11
12
|
export type VoiceSQLiteRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
13
|
+
campaigns: VoiceCampaignStore;
|
|
12
14
|
events: VoiceIntegrationEventStore<TEvent>;
|
|
13
15
|
externalObjects: VoiceExternalObjectMapStore<TMapping>;
|
|
14
16
|
reviews: VoiceCallReviewStore<TReview>;
|
|
@@ -25,4 +27,5 @@ export declare const createVoiceSQLiteExternalObjectMapStore: <TMapping extends
|
|
|
25
27
|
export declare const createVoiceSQLiteTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceSQLiteStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
26
28
|
export declare const createVoiceSQLiteTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
27
29
|
export declare const createVoiceSQLiteTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoiceSQLiteStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
30
|
+
export declare const createVoiceSQLiteCampaignStore: (options: VoiceSQLiteStoreOptions) => VoiceCampaignStore;
|
|
28
31
|
export declare const createVoiceSQLiteRuntimeStorage: <TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceSQLiteRuntimeStorage<TSession, TReview, TTask, TEvent, TMapping, TTrace, TTraceDelivery>;
|