@tinycloud/share-sdk 1.5.0-beta.0 → 1.5.0-beta.2

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.
@@ -5518,6 +5518,7 @@ function serialize(value) {
5518
5518
  function canonicalize(value) {
5519
5519
  return serialize(value);
5520
5520
  }
5521
+ var POLICY_ROOT_MAX_LIFETIME_SECONDS = 31 * 24 * 60 * 60;
5521
5522
  async function signCompactUcanAuthorization(input) {
5522
5523
  if (input.notBefore >= input.expiresAt || input.expiresAt - input.notBefore > 60) {
5523
5524
  throw new TypeError("compact invocation lifetime must be between one and 60 seconds");
@@ -6667,7 +6668,7 @@ var SHARE_ROOT_LINK_MAX_LIFETIME_MS = 30 * DAY_MS;
6667
6668
  var SHARE_ROOT_CLOCK_SKEW_MS = 5 * 6e4;
6668
6669
  var SHARE_ROOT_REQUEST_MARGIN_MS = 10 * 6e4;
6669
6670
  var MAX_NODE_ANSWER_BYTES = 64 * 1024;
6670
- var MAX_POLICY_ROOT_MS = 31 * DAY_MS;
6671
+ var MAX_POLICY_ROOT_MS = POLICY_ROOT_MAX_LIFETIME_SECONDS * 1e3;
6671
6672
  var PROFILES = {
6672
6673
  share: { spaceName: "applications", maxLifetimeMs: SHARE_ROOT_MAX_LIFETIME_MS },
6673
6674
  agent: { spaceName: "default", maxLifetimeMs: AGENT_SHARE_ROOT_MAX_LIFETIME_MS }