@amigo-ai/platform-sdk 0.98.0 → 0.98.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/dist/index.mjs CHANGED
@@ -4931,12 +4931,15 @@ var IntakeResource = class extends WorkspaceScopedResource {
4931
4931
  })
4932
4932
  ),
4933
4933
  /** List uploads received against a link */
4934
- listUploads: async (linkId) => extractData(
4934
+ listUploads: async (linkId, params) => extractData(
4935
4935
  await this.client.GET("/v1/{workspace_id}/intake/links/{link_id}/uploads", {
4936
- params: { path: { workspace_id: this.workspaceId, link_id: linkId } }
4936
+ params: {
4937
+ path: { workspace_id: this.workspaceId, link_id: linkId },
4938
+ query: params
4939
+ }
4937
4940
  })
4938
4941
  ),
4939
- /** Get a download URL/payload for a single upload */
4942
+ /** Download the raw bytes for a single upload. */
4940
4943
  downloadUpload: async (linkId, uploadId) => extractData(
4941
4944
  await this.client.GET(
4942
4945
  "/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download",
@@ -4947,7 +4950,8 @@ var IntakeResource = class extends WorkspaceScopedResource {
4947
4950
  link_id: linkId,
4948
4951
  upload_id: uploadId
4949
4952
  }
4950
- }
4953
+ },
4954
+ parseAs: "blob"
4951
4955
  }
4952
4956
  )
4953
4957
  )