@tinycloud/share-sdk 1.5.0-beta.1 → 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")[];
@@ -1,4 +1,4 @@
1
- import { O as OwnerShareAction, a as OwnerShareMatcher, P as PublishedShareDeliveryMaterial, S as SignedDelegation, b as OwnerSharePolicyRegistrationReceipt, D as DelegatedShareKey, c as PublishedShare } from './owner-policy-aPmXIR3e.js';
1
+ import { O as OwnerShareAction, a as OwnerShareMatcher, P as PublishedShareDeliveryMaterial, S as SignedDelegation, b as OwnerSharePolicyRegistrationReceipt, D as DelegatedShareKey, c as PublishedShare } from './owner-policy-3AT7bguu.js';
2
2
 
3
3
  interface EncryptedShareHistoryStorage {
4
4
  put(value: Uint8Array): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { O as OwnerShareAction, a as OwnerShareMatcher, P as PublishedShareDeliveryMaterial, S as SignedDelegation, b as OwnerSharePolicyRegistrationReceipt, D as DelegatedShareKey, c as PublishedShare } from './owner-policy-aPmXIR3e.cjs';
1
+ import { O as OwnerShareAction, a as OwnerShareMatcher, P as PublishedShareDeliveryMaterial, S as SignedDelegation, b as OwnerSharePolicyRegistrationReceipt, D as DelegatedShareKey, c as PublishedShare } from './owner-policy-3AT7bguu.cjs';
2
2
 
3
3
  interface EncryptedShareHistoryStorage {
4
4
  put(value: Uint8Array): Promise<void>;
package/dist/index.cjs CHANGED
@@ -7204,6 +7204,7 @@ async function publishTargetShare(input) {
7204
7204
  target,
7205
7205
  expiresAt,
7206
7206
  expiryWasExplicit: input.expiryWasExplicit ?? input.expiresAt !== void 0,
7207
+ ...input.expiresInMs === void 0 ? {} : { expiresInMs: input.expiresInMs },
7207
7208
  origin: input.origin,
7208
7209
  ...input.notify === void 0 ? {} : { notify: input.notify },
7209
7210
  ...input.credentialDescriptor === void 0 ? {} : { credentialDescriptor: input.credentialDescriptor },