@tinycloud/share-sdk 1.1.1 → 1.2.0-beta.0

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/index.d.cts CHANGED
@@ -229,6 +229,12 @@ interface PublishedShareMetadata {
229
229
  readonly enforcerDid?: string;
230
230
  readonly envelopeCid?: string;
231
231
  readonly shareCid?: string;
232
+ /** Set when the content is a numbered artifact version (TC-1428). Pinned: the share can only ever read this version. */
233
+ readonly artifact?: {
234
+ readonly id: string;
235
+ readonly version: number;
236
+ readonly mode: "pinned";
237
+ };
232
238
  }
233
239
  /** Sender-only Policy/v3 material retained in encrypted history for delivery retries. */
234
240
  interface PublishedShareDeliveryMaterial {
@@ -294,6 +300,11 @@ interface TargetPublishInput {
294
300
  readonly resourceKind?: "exact" | "prefix";
295
301
  readonly actions?: readonly ("read" | "list" | "edit")[];
296
302
  readonly notify?: boolean;
303
+ /** Publish as the next write-once version of this artifact and pin the share to it (TC-1428). */
304
+ readonly artifact?: {
305
+ readonly id: string;
306
+ readonly note?: string;
307
+ };
297
308
  }
298
309
  type TargetPublishOutcome = PublishedShare | ShareAuthorizationRequired;
299
310
  interface TargetPublishAdapter {
package/dist/index.d.ts CHANGED
@@ -229,6 +229,12 @@ interface PublishedShareMetadata {
229
229
  readonly enforcerDid?: string;
230
230
  readonly envelopeCid?: string;
231
231
  readonly shareCid?: string;
232
+ /** Set when the content is a numbered artifact version (TC-1428). Pinned: the share can only ever read this version. */
233
+ readonly artifact?: {
234
+ readonly id: string;
235
+ readonly version: number;
236
+ readonly mode: "pinned";
237
+ };
232
238
  }
233
239
  /** Sender-only Policy/v3 material retained in encrypted history for delivery retries. */
234
240
  interface PublishedShareDeliveryMaterial {
@@ -294,6 +300,11 @@ interface TargetPublishInput {
294
300
  readonly resourceKind?: "exact" | "prefix";
295
301
  readonly actions?: readonly ("read" | "list" | "edit")[];
296
302
  readonly notify?: boolean;
303
+ /** Publish as the next write-once version of this artifact and pin the share to it (TC-1428). */
304
+ readonly artifact?: {
305
+ readonly id: string;
306
+ readonly note?: string;
307
+ };
297
308
  }
298
309
  type TargetPublishOutcome = PublishedShare | ShareAuthorizationRequired;
299
310
  interface TargetPublishAdapter {