@arbidocs/sdk 0.4.136 → 0.4.138

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.
@@ -881,6 +881,8 @@ declare const SUPPORTED_EXTENSIONS: Set<string>;
881
881
  */
882
882
  declare function sanitizeFolderPath(folderPath: string): string;
883
883
  interface UploadOptions {
884
+ /** Shared with the workspace's members (the server's default when absent: shared). */
885
+ shared?: boolean;
884
886
  folder?: string;
885
887
  configExtId?: string;
886
888
  /** Work-product type for the uploaded doc — ``source`` (default),
@@ -881,6 +881,8 @@ declare const SUPPORTED_EXTENSIONS: Set<string>;
881
881
  */
882
882
  declare function sanitizeFolderPath(folderPath: string): string;
883
883
  interface UploadOptions {
884
+ /** Shared with the workspace's members (the server's default when absent: shared). */
885
+ shared?: boolean;
884
886
  folder?: string;
885
887
  configExtId?: string;
886
888
  /** Work-product type for the uploaded doc — ``source`` (default),
package/dist/browser.cjs CHANGED
@@ -4569,6 +4569,7 @@ async function uploadFile(auth, fileData, fileName, options) {
4569
4569
  const formData = new FormData();
4570
4570
  formData.append("files", fileData, fileName);
4571
4571
  const params = new URLSearchParams();
4572
+ if (options?.shared !== void 0) params.set("shared", String(options.shared));
4572
4573
  if (options?.folder) params.set("folder", sanitizeFolderPath(options.folder));
4573
4574
  if (options?.configExtId) params.set("config_ext_id", options.configExtId);
4574
4575
  if (options?.wpType) params.set("wp_type", options.wpType);