@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.
- package/dist/{addressed-publish-qp_bEVYu.d.cts → addressed-publish-CkADuOqh.d.cts} +3 -1
- package/dist/{addressed-publish-D4IWNXuw.d.ts → addressed-publish-EGJWqZVS.d.ts} +3 -1
- package/dist/artifact.cjs +1 -0
- package/dist/artifact.cjs.map +1 -1
- package/dist/artifact.js +1 -0
- package/dist/artifact.js.map +1 -1
- package/dist/{history-kwJxrZgq.d.ts → history-Bc9bKK3V.d.ts} +1 -1
- package/dist/{history-Bg25JIsi.d.cts → history-VWQ68Trt.d.cts} +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/{owner-policy-aPmXIR3e.d.ts → owner-policy-3AT7bguu.d.cts} +2 -0
- package/dist/{owner-policy-aPmXIR3e.d.cts → owner-policy-3AT7bguu.d.ts} +2 -0
- package/dist/share-index.cjs +1 -0
- package/dist/share-index.cjs.map +1 -1
- package/dist/share-index.d.cts +3 -3
- package/dist/share-index.d.ts +3 -3
- package/dist/share-index.js +1 -0
- package/dist/share-index.js.map +1 -1
- package/dist/share-root.cjs +2 -1
- package/dist/share-root.cjs.map +1 -1
- package/dist/share-root.d.cts +2 -2
- package/dist/share-root.d.ts +2 -2
- package/dist/share-root.js +2 -1
- package/dist/share-root.js.map +1 -1
- package/dist/web-recipient.cjs +1 -0
- package/dist/web-recipient.cjs.map +1 -1
- package/dist/web-recipient.js +1 -0
- package/dist/web-recipient.js.map +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
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-
|
|
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");
|