@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.cjs CHANGED
@@ -5047,12 +5047,15 @@ var IntakeResource = class extends WorkspaceScopedResource {
5047
5047
  })
5048
5048
  ),
5049
5049
  /** List uploads received against a link */
5050
- listUploads: async (linkId) => extractData(
5050
+ listUploads: async (linkId, params) => extractData(
5051
5051
  await this.client.GET("/v1/{workspace_id}/intake/links/{link_id}/uploads", {
5052
- params: { path: { workspace_id: this.workspaceId, link_id: linkId } }
5052
+ params: {
5053
+ path: { workspace_id: this.workspaceId, link_id: linkId },
5054
+ query: params
5055
+ }
5053
5056
  })
5054
5057
  ),
5055
- /** Get a download URL/payload for a single upload */
5058
+ /** Download the raw bytes for a single upload. */
5056
5059
  downloadUpload: async (linkId, uploadId) => extractData(
5057
5060
  await this.client.GET(
5058
5061
  "/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download",
@@ -5063,7 +5066,8 @@ var IntakeResource = class extends WorkspaceScopedResource {
5063
5066
  link_id: linkId,
5064
5067
  upload_id: uploadId
5065
5068
  }
5066
- }
5069
+ },
5070
+ parseAs: "blob"
5067
5071
  }
5068
5072
  )
5069
5073
  )