@palettelab/sdk 0.1.17 → 0.1.19

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/README.md CHANGED
@@ -318,6 +318,8 @@ Included clients:
318
318
  These helpers are intentionally thin wrappers over platform APIs. Apps can still
319
319
  use `apiFetch()` directly for custom backend routes.
320
320
 
321
+ App storage is different from Data Rooms. Use `palette.storage` for app-owned files that should go directly to the OS-configured storage backend, such as GCS. Use `palette.dataRooms` only when the file should appear as a user-visible Data Room document.
322
+
321
323
  App storage uploads are scoped by Palette to:
322
324
 
323
325
  ```text
@@ -495,3 +497,5 @@ The npm package ships compiled CommonJS, ESM, and TypeScript declarations from `
495
497
 
496
498
  - `@palettelab/cli` provides the `pltt` command for scaffolding, local dev, validation, packaging, and publishing.
497
499
  - `palette-sdk` is the Python backend SDK for FastAPI plugin routes, permissions, tools, DB helpers, RLS, and test helpers.
500
+
501
+ The returned `saved` object also includes snake_case aliases (`object_path`, `file_url`, `content_type`, `upload_id`) so browser and Python backend upload handlers can share response-normalization code.
package/dist/index.d.mts CHANGED
@@ -153,11 +153,15 @@ type StorageUploadOptions = {
153
153
  };
154
154
  type StorageUploadResult = {
155
155
  uploadId: string;
156
+ upload_id: string;
156
157
  mode: "gcs_resumable" | "local_resumable" | string;
157
158
  bucket: string;
158
159
  objectPath: string;
160
+ object_path: string;
159
161
  fileUrl: string;
162
+ file_url: string;
160
163
  contentType: string;
164
+ content_type: string;
161
165
  size: number;
162
166
  };
163
167
  declare function uploadToSignedUrl(uploadUrl: string, file: Blob, contentType?: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -153,11 +153,15 @@ type StorageUploadOptions = {
153
153
  };
154
154
  type StorageUploadResult = {
155
155
  uploadId: string;
156
+ upload_id: string;
156
157
  mode: "gcs_resumable" | "local_resumable" | string;
157
158
  bucket: string;
158
159
  objectPath: string;
160
+ object_path: string;
159
161
  fileUrl: string;
162
+ file_url: string;
160
163
  contentType: string;
164
+ content_type: string;
161
165
  size: number;
162
166
  };
163
167
  declare function uploadToSignedUrl(uploadUrl: string, file: Blob, contentType?: string): Promise<void>;
package/dist/index.js CHANGED
@@ -568,11 +568,15 @@ var StorageClient = class {
568
568
  clearStoredSession(pluginId, fingerprint);
569
569
  return {
570
570
  uploadId: session.upload_id,
571
+ upload_id: session.upload_id,
571
572
  mode: session.mode,
572
573
  bucket: session.bucket,
573
574
  objectPath: session.object_path,
575
+ object_path: session.object_path,
574
576
  fileUrl: session.file_url,
577
+ file_url: session.file_url,
575
578
  contentType: session.content_type,
579
+ content_type: session.content_type,
576
580
  size: session.size
577
581
  };
578
582
  }
package/dist/index.mjs CHANGED
@@ -500,11 +500,15 @@ var StorageClient = class {
500
500
  clearStoredSession(pluginId, fingerprint);
501
501
  return {
502
502
  uploadId: session.upload_id,
503
+ upload_id: session.upload_id,
503
504
  mode: session.mode,
504
505
  bucket: session.bucket,
505
506
  objectPath: session.object_path,
507
+ object_path: session.object_path,
506
508
  fileUrl: session.file_url,
509
+ file_url: session.file_url,
507
510
  contentType: session.content_type,
511
+ content_type: session.content_type,
508
512
  size: session.size
509
513
  };
510
514
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palettelab/sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Palette Platform SDK for building plugins and apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",