@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.
- 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/{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 +1 -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 +1 -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.d.cts +3 -3
- package/dist/share-index.d.ts +3 -3
- package/dist/share-root.d.cts +2 -2
- package/dist/share-root.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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")[];
|
|
@@ -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-
|
|
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-
|
|
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 },
|