@absolutejs/voice 0.0.22-beta.413 → 0.0.22-beta.414

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.js CHANGED
@@ -32434,6 +32434,7 @@ var assertVoiceObservabilityExportRecord = (input, options) => {
32434
32434
  }
32435
32435
  return result;
32436
32436
  };
32437
+ var resolveVoiceObservabilityArtifactIndex = async (source) => typeof source === "function" ? await source() : source;
32437
32438
  var isDeliveryStore = (value) => !Array.isArray(value) && typeof value.list === "function";
32438
32439
  var getString18 = (value) => typeof value === "string" ? value : undefined;
32439
32440
  var getProviderKind = (payload) => getString18(payload.kind) ?? getString18(payload.providerKind);
@@ -33619,7 +33620,7 @@ var createVoiceObservabilityExportRoutes = (options = {}) => {
33619
33620
  });
33620
33621
  app.get(path, async () => Response.json(await buildReport(), { headers }));
33621
33622
  if (artifactIndexPath !== false) {
33622
- app.get(artifactIndexPath, async () => Response.json(buildVoiceObservabilityArtifactIndex(await buildReport()), { headers }));
33623
+ app.get(artifactIndexPath, async () => Response.json(options.artifactIndex ? await resolveVoiceObservabilityArtifactIndex(options.artifactIndex) : buildVoiceObservabilityArtifactIndex(await buildReport()), { headers }));
33623
33624
  }
33624
33625
  if (artifactDownloadPath !== false) {
33625
33626
  app.get(`${artifactDownloadPath}/:artifactId`, async ({ params }) => {
@@ -399,6 +399,7 @@ export type VoiceObservabilityExportOptions = {
399
399
  export type VoiceObservabilityExportRoutesOptions = VoiceObservabilityExportOptions & {
400
400
  headers?: HeadersInit;
401
401
  artifactDownloadPath?: false | string;
402
+ artifactIndex?: VoiceObservabilityExportArtifactIndex | (() => VoiceObservabilityExportArtifactIndex | Promise<VoiceObservabilityExportArtifactIndex>);
402
403
  artifactIndexPath?: false | string;
403
404
  deliveryDestinations?: VoiceObservabilityExportDeliveryDestination[];
404
405
  deliveryPath?: false | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.413",
3
+ "version": "0.0.22-beta.414",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",