dsh-taskboard 0.6.7 → 0.7.1

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/src/shared/api.ts CHANGED
@@ -104,6 +104,16 @@ export type RejectTaskBody = { ifVersion: number; body?: string }
104
104
  /** Comment request body. */
105
105
  export type CommentBody = { body: string }
106
106
 
107
+ /** One content-addressed image uploaded outside the ledger. */
108
+ export type AttachmentUpload = {
109
+ id: string
110
+ name: string
111
+ size: number
112
+ url: string
113
+ extension: 'png' | 'jpg' | 'gif' | 'webp'
114
+ mime: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp'
115
+ }
116
+
107
117
  /** Delete request body (purge=true physically removes a trashed task). */
108
118
  export type DeleteTaskBody = { ifVersion?: number; purge?: boolean }
109
119
 
@@ -187,6 +197,22 @@ export type TemplatesResponse = { templates: TaskTemplate[] }
187
197
  /** Board-settings response (0.5.0; absent fields follow factory defaults). */
188
198
  export type SettingsResponse = BoardSettings
189
199
 
200
+ /** Current host-side location of all durable taskboard data. */
201
+ export type StorageStatus = {
202
+ currentDirectory: string
203
+ defaultDirectory: string
204
+ isDefault: boolean
205
+ configured: boolean
206
+ writable: boolean
207
+ assetCount: number
208
+ assetBytes: number
209
+ checkedDirectory?: string
210
+ error?: string
211
+ }
212
+
213
+ /** Completed storage relocation, including non-fatal old-file cleanup failures. */
214
+ export type StorageMigrationResult = StorageStatus & { migrated: boolean; warnings: string[] }
215
+
190
216
  /** Update-board-settings request body (0.5.0; whole-object replace semantics). */
191
217
  export type UpdateSettingsBody = {
192
218
  /** Default code isolation for NEW tasks ('worktree' | 'none'). */
@@ -6,4 +6,5 @@
6
6
  */
7
7
 
8
8
  /** The package version (must equal package.json "version"). */
9
- export const PLUGIN_VERSION = '0.6.7'
9
+ export const PLUGIN_VERSION = '0.7.1'
10
+