@nemphi/sdk 0.2.4643 → 0.2.4648

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.ts CHANGED
@@ -1496,14 +1496,16 @@ export interface LiveDocument {
1496
1496
  tags: LiveDocumentTag[];
1497
1497
  created_at: string;
1498
1498
  updated_at: string;
1499
+ /** When it went to the trash; null while it is on a shelf. */
1500
+ trashed_at: string | null;
1499
1501
  }
1500
1502
  /**
1501
1503
  * Which documents `listLiveDocuments` answers: one shelf (the caller's
1502
- * own, other members' shared with them, or the team space), one folder or
1503
- * the shelf's top level, one tag.
1504
+ * own, other members' shared with them, or the team space) or the trash,
1505
+ * one folder or the shelf's top level, one tag.
1504
1506
  */
1505
1507
  export interface LiveDocumentFilter {
1506
- view?: LiveDocumentSpace | "shared";
1508
+ view?: LiveDocumentSpace | "shared" | "trash";
1507
1509
  folder_id?: string;
1508
1510
  top_level?: boolean;
1509
1511
  tag?: string;
@@ -1544,6 +1546,8 @@ export interface LiveDocumentState {
1544
1546
  kind: LiveDocumentKind;
1545
1547
  state: string;
1546
1548
  seq: number;
1549
+ /** Set while the document is in the trash, where it opens read-only. */
1550
+ trashed_at: string | null;
1547
1551
  }
1548
1552
  /**
1549
1553
  * A picture stored with a live document. `id` is the bytes' hash and
@@ -8099,6 +8103,17 @@ export interface NemphiClient {
8099
8103
  createLiveDocument(title: string, kind?: LiveDocumentKind, place?: LiveDocumentPlace): Promise<LiveDocument>;
8100
8104
  /** Files a document in a folder (empty: the top level) or moves it to another space. */
8101
8105
  moveLiveDocument(id: string, place: LiveDocumentPlace): Promise<LiveDocument>;
8106
+ renameLiveDocument(id: string, title: string): Promise<LiveDocument>;
8107
+ /** A copy of the document's content as a new document of the caller's own. */
8108
+ copyLiveDocument(id: string, title?: string): Promise<LiveDocument>;
8109
+ /** Moves a document to the trash; it opens read-only until restored. */
8110
+ trashLiveDocument(id: string): Promise<LiveDocument>;
8111
+ restoreLiveDocument(id: string): Promise<LiveDocument>;
8112
+ /** Deletes a trashed document for good. */
8113
+ deleteLiveDocument(id: string): Promise<{
8114
+ id: string;
8115
+ deleted: boolean;
8116
+ }>;
8102
8117
  listLiveDocumentShares(id: string): Promise<LiveDocumentShares>;
8103
8118
  shareLiveDocument(id: string, userId: string): Promise<LiveDocumentShares>;
8104
8119
  unshareLiveDocument(id: string, userId: string): Promise<LiveDocumentShares>;