@amigo-ai/platform-sdk 0.97.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
@@ -3175,6 +3175,20 @@ var SimulationsResource = class extends WorkspaceScopedResource {
3175
3175
  })
3176
3176
  );
3177
3177
  }
3178
+ /**
3179
+ * Promote a run-less (interactive playground) session into a coverage run so
3180
+ * it can be forked/scored. Creates a run, binds the session to it, and writes
3181
+ * the coverage session record. Idempotent: a session that already belongs to
3182
+ * a run returns that run with `already_bound: true`. No request body —
3183
+ * `session_id` travels in the path.
3184
+ */
3185
+ async promoteSession(sessionId) {
3186
+ return extractData(
3187
+ await this.client.POST("/v1/{workspace_id}/simulations/sessions/{session_id}/promote", {
3188
+ params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
3189
+ })
3190
+ );
3191
+ }
3178
3192
  /**
3179
3193
  * Multi-session simulation runs — orchestrate a batch of scenarios against
3180
3194
  * a service to compute coverage and surface regressions. Use this when you
@@ -4917,12 +4931,15 @@ var IntakeResource = class extends WorkspaceScopedResource {
4917
4931
  })
4918
4932
  ),
4919
4933
  /** List uploads received against a link */
4920
- listUploads: async (linkId) => extractData(
4934
+ listUploads: async (linkId, params) => extractData(
4921
4935
  await this.client.GET("/v1/{workspace_id}/intake/links/{link_id}/uploads", {
4922
- params: { path: { workspace_id: this.workspaceId, link_id: linkId } }
4936
+ params: {
4937
+ path: { workspace_id: this.workspaceId, link_id: linkId },
4938
+ query: params
4939
+ }
4923
4940
  })
4924
4941
  ),
4925
- /** Get a download URL/payload for a single upload */
4942
+ /** Download the raw bytes for a single upload. */
4926
4943
  downloadUpload: async (linkId, uploadId) => extractData(
4927
4944
  await this.client.GET(
4928
4945
  "/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download",
@@ -4933,7 +4950,8 @@ var IntakeResource = class extends WorkspaceScopedResource {
4933
4950
  link_id: linkId,
4934
4951
  upload_id: uploadId
4935
4952
  }
4936
- }
4953
+ },
4954
+ parseAs: "blob"
4937
4955
  }
4938
4956
  )
4939
4957
  )