@trillboards/edge-sdk 0.2.188 → 0.2.189

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.
Files changed (35) hide show
  1. package/dist/AudienceAnalyzeClient.d.ts +4 -0
  2. package/dist/AudienceAnalyzeClient.d.ts.map +1 -1
  3. package/dist/AudienceAnalyzeClient.js.map +1 -1
  4. package/dist/CloudSensingManager.d.ts +22 -0
  5. package/dist/CloudSensingManager.d.ts.map +1 -1
  6. package/dist/CloudSensingManager.js +31 -0
  7. package/dist/CloudSensingManager.js.map +1 -1
  8. package/dist/DurableVlmCandidateSpool.d.ts +12 -0
  9. package/dist/DurableVlmCandidateSpool.d.ts.map +1 -1
  10. package/dist/DurableVlmCandidateSpool.js +63 -7
  11. package/dist/DurableVlmCandidateSpool.js.map +1 -1
  12. package/dist/EdgeAgent.js +1 -1
  13. package/dist/LiteRtVlmProvider.d.ts +13 -0
  14. package/dist/LiteRtVlmProvider.d.ts.map +1 -1
  15. package/dist/LiteRtVlmProvider.js +26 -1
  16. package/dist/LiteRtVlmProvider.js.map +1 -1
  17. package/dist/VlmCandidateBuffer.d.ts +10 -0
  18. package/dist/VlmCandidateBuffer.d.ts.map +1 -1
  19. package/dist/VlmCandidateBuffer.js.map +1 -1
  20. package/dist/continuousReview.d.ts +22 -0
  21. package/dist/continuousReview.d.ts.map +1 -1
  22. package/dist/continuousReview.js +26 -1
  23. package/dist/continuousReview.js.map +1 -1
  24. package/dist/diagnose.d.ts +1 -1
  25. package/dist/diagnose.js +1 -1
  26. package/dist/localSensing.d.ts.map +1 -1
  27. package/dist/localSensing.js +10 -2
  28. package/dist/localSensing.js.map +1 -1
  29. package/package.json +3 -3
  30. package/retained/ArchiveLifecycle.cjs +9 -2
  31. package/retained/RetainedCaptureClient.cjs +140 -13
  32. package/retained/__tests__/realtime-schedule.test.cjs +337 -0
  33. package/retained/__tests__/runtime.test.cjs +8 -2
  34. package/retained/manager.cjs +8 -0
  35. package/retained/website-api-capability.cjs +7 -1
@@ -82,7 +82,13 @@ function requestCapability(url, feed) {
82
82
  && /^[A-Za-z0-9_-]{1,128}$/.test(body.cameraId)
83
83
  && body.maxBodyBytes === 2 * 1024 * 1024, 'Unsupported pilot API capability');
84
84
  assert(String(feed.screenId) === body.cameraId, 'Paired camera identity differs');
85
- finish(null, { cameraId: body.cameraId, protocolVersion: 1 });
85
+ // The server's live-alert age bound (SENSING_LOCAL_MAX_CAPTURE_AGE_MS;
86
+ // 0 = none). Absent from an older API, which leaves the connector's
87
+ // own review window in force.
88
+ const maxCaptureAgeMs = Number.isSafeInteger(body.maxCaptureAgeMs) && body.maxCaptureAgeMs >= 0
89
+ ? body.maxCaptureAgeMs : undefined;
90
+ finish(null, { cameraId: body.cameraId, protocolVersion: 1,
91
+ ...(maxCaptureAgeMs === undefined ? {} : { maxCaptureAgeMs }) });
86
92
  } catch (error) { finish(failure(error.message, 'PILOT_CAPABILITY_CONTRACT')); }
87
93
  });
88
94
  });