@absolutejs/voice 0.0.22-beta.666 → 0.0.22-beta.668
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/drizzle/index.js +6 -5
- package/dist/index.js +2 -2
- package/dist/testing/index.js +2 -2
- package/package.json +1 -1
package/dist/drizzle/index.js
CHANGED
|
@@ -259,12 +259,13 @@ var voiceDocumentTable = (name) => pgTable2(name, {
|
|
|
259
259
|
});
|
|
260
260
|
var createVoiceDrizzleRecordStore = (input) => {
|
|
261
261
|
const get = async (id) => {
|
|
262
|
-
const rows = await input.db.select({ payload: input.table.payload }).from(input.table).where(eq2(input.table.id, id)).limit(1);
|
|
263
|
-
|
|
262
|
+
const rows = await input.db.select({ id: input.table.id, payload: input.table.payload }).from(input.table).where(eq2(input.table.id, id)).limit(1);
|
|
263
|
+
const row = rows[0];
|
|
264
|
+
return row === undefined ? undefined : input.decorate(row.id, row.payload);
|
|
264
265
|
};
|
|
265
266
|
const list = async () => {
|
|
266
|
-
const rows = await input.db.select({ payload: input.table.payload }).from(input.table).orderBy(desc2(input.table.sortAt), desc2(input.table.id));
|
|
267
|
-
return rows.map((row) => row.payload);
|
|
267
|
+
const rows = await input.db.select({ id: input.table.id, payload: input.table.payload }).from(input.table).orderBy(desc2(input.table.sortAt), desc2(input.table.id));
|
|
268
|
+
return rows.map((row) => input.decorate(row.id, row.payload));
|
|
268
269
|
};
|
|
269
270
|
const set = async (id, value) => {
|
|
270
271
|
const decorated = input.decorate(id, value);
|
|
@@ -2911,7 +2912,7 @@ var createDrizzleExternalObjectMapStore = (db) => {
|
|
|
2911
2912
|
var createDrizzleTraceEventStore = (db) => {
|
|
2912
2913
|
const store = createVoiceDrizzleRecordStore({
|
|
2913
2914
|
db,
|
|
2914
|
-
decorate: (
|
|
2915
|
+
decorate: (id, value) => ({ ...value, id }),
|
|
2915
2916
|
getSortAt: (value) => value.at,
|
|
2916
2917
|
table: voiceTracesTable
|
|
2917
2918
|
});
|
package/dist/index.js
CHANGED
|
@@ -7221,11 +7221,11 @@ var createVoiceSession = (options) => {
|
|
|
7221
7221
|
transcriptStabilityMs: turnDetection.transcriptStabilityMs
|
|
7222
7222
|
};
|
|
7223
7223
|
}),
|
|
7224
|
-
setPlaybackRate: async (rate) =>
|
|
7224
|
+
setPlaybackRate: async (rate) => {
|
|
7225
7225
|
const clamped = Math.max(0.5, Math.min(2, Number(rate) || 1));
|
|
7226
7226
|
await send({ rate: clamped, type: "playback_rate" });
|
|
7227
7227
|
return clamped;
|
|
7228
|
-
}
|
|
7228
|
+
}
|
|
7229
7229
|
};
|
|
7230
7230
|
return api;
|
|
7231
7231
|
};
|
package/dist/testing/index.js
CHANGED
|
@@ -10202,11 +10202,11 @@ var createVoiceSession = (options) => {
|
|
|
10202
10202
|
transcriptStabilityMs: turnDetection.transcriptStabilityMs
|
|
10203
10203
|
};
|
|
10204
10204
|
}),
|
|
10205
|
-
setPlaybackRate: async (rate) =>
|
|
10205
|
+
setPlaybackRate: async (rate) => {
|
|
10206
10206
|
const clamped = Math.max(0.5, Math.min(2, Number(rate) || 1));
|
|
10207
10207
|
await send({ rate: clamped, type: "playback_rate" });
|
|
10208
10208
|
return clamped;
|
|
10209
|
-
}
|
|
10209
|
+
}
|
|
10210
10210
|
};
|
|
10211
10211
|
return api;
|
|
10212
10212
|
};
|