@arbidocs/sdk 0.5.125 → 0.5.127

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.cjs CHANGED
@@ -6582,6 +6582,7 @@ async function uploadDocuments(arbi, files, options = {}) {
6582
6582
  if (options.folder) query2.folder = sanitizeFolderPath(options.folder);
6583
6583
  if (options.configExtId) query2.config_ext_id = options.configExtId;
6584
6584
  if (options.wpType) query2.wp_type = options.wpType;
6585
+ if (options.autosave !== void 0) query2.autosave = options.autosave;
6585
6586
  if (options.versionOf) query2.version_of = options.versionOf;
6586
6587
  if (options.tagExtId) query2.tag_ext_id = options.tagExtId;
6587
6588
  if (options.workspaceExtId) query2.workspace_ext_id = options.workspaceExtId;
@@ -6642,6 +6643,7 @@ async function uploadFile(auth, fileData, fileName, options) {
6642
6643
  if (options?.folder) params.set("folder", sanitizeFolderPath(options.folder));
6643
6644
  if (options?.configExtId) params.set("config_ext_id", options.configExtId);
6644
6645
  if (options?.wpType) params.set("wp_type", options.wpType);
6646
+ if (options?.autosave !== void 0) params.set("autosave", String(options.autosave));
6645
6647
  if (options?.versionOf) params.set("version_of", options.versionOf);
6646
6648
  if (options?.workspaceExtId) params.set("workspace_ext_id", options.workspaceExtId);
6647
6649
  if (options?.derivedFrom) {
@@ -6664,6 +6666,7 @@ async function uploadFiles(auth, files, options) {
6664
6666
  if (options?.folder) params.set("folder", sanitizeFolderPath(options.folder));
6665
6667
  if (options?.configExtId) params.set("config_ext_id", options.configExtId);
6666
6668
  if (options?.wpType) params.set("wp_type", options.wpType);
6669
+ if (options?.autosave !== void 0) params.set("autosave", String(options.autosave));
6667
6670
  if (options?.versionOf) params.set("version_of", options.versionOf);
6668
6671
  if (options?.derivedFrom) {
6669
6672
  params.set("derived_from", options.derivedFrom.docId);
@@ -13245,6 +13248,19 @@ var Arbi = class {
13245
13248
  await deleteNotifications(this.requireClient(), ids);
13246
13249
  }
13247
13250
  };
13251
+ /** Reply to an owner-bound live screen request; no document upload or durable screenshot. */
13252
+ remoteControl = {
13253
+ replyScreen: (requestId, body) => this.recovering(async () => {
13254
+ const { error } = await this.requireClient().fetch.POST(
13255
+ "/v1/remote-control/screen/{request_id}",
13256
+ {
13257
+ params: { path: { request_id: requestId } },
13258
+ body: { ...body, diagnostics: body.diagnostics ?? "" }
13259
+ }
13260
+ );
13261
+ if (error) throw new ArbiError("Could not return screen inspection to the assistant");
13262
+ })
13263
+ };
13248
13264
  /** Authenticated native Word transport, with normal session recovery. */
13249
13265
  editor = {
13250
13266
  request: (path5, options = {}) => this.recovering(async () => {