@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.
@@ -1,5 +1,5 @@
1
1
  import { UnifiedContentSource, UnifiedPolicyCapability, ShareAction, PolicyCredentialRequirementV1, ArtifactPin } from '@tinycloud/share-envelope';
2
- import { d as SharePublishTarget, c as PublishedShare, e as SharePublishOptions, O as OwnerShareAction, P as PublishedShareDeliveryMaterial, f as SharePublishError } from './owner-policy-aPmXIR3e.cjs';
2
+ import { d as SharePublishTarget, c as PublishedShare, e as SharePublishOptions, O as OwnerShareAction, P as PublishedShareDeliveryMaterial, f as SharePublishError } from './owner-policy-3AT7bguu.cjs';
3
3
  import { S as ShareAuthorizationRequired, a as ShareAuthorizationMethod } from './authorization-CmP1skO8.cjs';
4
4
 
5
5
  /**
@@ -144,6 +144,8 @@ interface TargetPublishInput {
144
144
  readonly target: ShareTarget;
145
145
  readonly expiresAt: Date;
146
146
  readonly expiryWasExplicit?: boolean;
147
+ /** The relative expiry the caller asked for, in milliseconds, when it gave a duration (not a date). Lets a rerun recognise the same choice. */
148
+ readonly expiresInMs?: number;
147
149
  readonly origin: string;
148
150
  readonly resourceKind?: "exact" | "prefix";
149
151
  readonly actions?: readonly ("read" | "list" | "edit")[];
@@ -1,5 +1,5 @@
1
1
  import { UnifiedContentSource, UnifiedPolicyCapability, ShareAction, PolicyCredentialRequirementV1, ArtifactPin } from '@tinycloud/share-envelope';
2
- import { d as SharePublishTarget, c as PublishedShare, e as SharePublishOptions, O as OwnerShareAction, P as PublishedShareDeliveryMaterial, f as SharePublishError } from './owner-policy-aPmXIR3e.js';
2
+ import { d as SharePublishTarget, c as PublishedShare, e as SharePublishOptions, O as OwnerShareAction, P as PublishedShareDeliveryMaterial, f as SharePublishError } from './owner-policy-3AT7bguu.js';
3
3
  import { S as ShareAuthorizationRequired, a as ShareAuthorizationMethod } from './authorization-CmP1skO8.js';
4
4
 
5
5
  /**
@@ -144,6 +144,8 @@ interface TargetPublishInput {
144
144
  readonly target: ShareTarget;
145
145
  readonly expiresAt: Date;
146
146
  readonly expiryWasExplicit?: boolean;
147
+ /** The relative expiry the caller asked for, in milliseconds, when it gave a duration (not a date). Lets a rerun recognise the same choice. */
148
+ readonly expiresInMs?: number;
147
149
  readonly origin: string;
148
150
  readonly resourceKind?: "exact" | "prefix";
149
151
  readonly actions?: readonly ("read" | "list" | "edit")[];
package/dist/artifact.cjs CHANGED
@@ -5484,6 +5484,7 @@ function serialize(value) {
5484
5484
  function canonicalize(value) {
5485
5485
  return serialize(value);
5486
5486
  }
5487
+ var POLICY_ROOT_MAX_LIFETIME_SECONDS = 31 * 24 * 60 * 60;
5487
5488
 
5488
5489
  // src/artifact.ts
5489
5490
  var import_sha2562 = require("@noble/hashes/sha256");