@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/api.md +1 -0
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +22 -4
- package/dist/index.mjs.map +2 -2
- package/dist/resources/intake.js +7 -3
- package/dist/resources/intake.js.map +1 -1
- package/dist/resources/simulations.js +12 -0
- package/dist/resources/simulations.js.map +1 -1
- package/dist/types/generated/api.d.ts +437 -1
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts +4 -3
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +13 -0
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
package/api.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3291,6 +3291,20 @@ var SimulationsResource = class extends WorkspaceScopedResource {
|
|
|
3291
3291
|
})
|
|
3292
3292
|
);
|
|
3293
3293
|
}
|
|
3294
|
+
/**
|
|
3295
|
+
* Promote a run-less (interactive playground) session into a coverage run so
|
|
3296
|
+
* it can be forked/scored. Creates a run, binds the session to it, and writes
|
|
3297
|
+
* the coverage session record. Idempotent: a session that already belongs to
|
|
3298
|
+
* a run returns that run with `already_bound: true`. No request body —
|
|
3299
|
+
* `session_id` travels in the path.
|
|
3300
|
+
*/
|
|
3301
|
+
async promoteSession(sessionId) {
|
|
3302
|
+
return extractData(
|
|
3303
|
+
await this.client.POST("/v1/{workspace_id}/simulations/sessions/{session_id}/promote", {
|
|
3304
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
|
|
3305
|
+
})
|
|
3306
|
+
);
|
|
3307
|
+
}
|
|
3294
3308
|
/**
|
|
3295
3309
|
* Multi-session simulation runs — orchestrate a batch of scenarios against
|
|
3296
3310
|
* a service to compute coverage and surface regressions. Use this when you
|
|
@@ -5033,12 +5047,15 @@ var IntakeResource = class extends WorkspaceScopedResource {
|
|
|
5033
5047
|
})
|
|
5034
5048
|
),
|
|
5035
5049
|
/** List uploads received against a link */
|
|
5036
|
-
listUploads: async (linkId) => extractData(
|
|
5050
|
+
listUploads: async (linkId, params) => extractData(
|
|
5037
5051
|
await this.client.GET("/v1/{workspace_id}/intake/links/{link_id}/uploads", {
|
|
5038
|
-
params: {
|
|
5052
|
+
params: {
|
|
5053
|
+
path: { workspace_id: this.workspaceId, link_id: linkId },
|
|
5054
|
+
query: params
|
|
5055
|
+
}
|
|
5039
5056
|
})
|
|
5040
5057
|
),
|
|
5041
|
-
/**
|
|
5058
|
+
/** Download the raw bytes for a single upload. */
|
|
5042
5059
|
downloadUpload: async (linkId, uploadId) => extractData(
|
|
5043
5060
|
await this.client.GET(
|
|
5044
5061
|
"/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download",
|
|
@@ -5049,7 +5066,8 @@ var IntakeResource = class extends WorkspaceScopedResource {
|
|
|
5049
5066
|
link_id: linkId,
|
|
5050
5067
|
upload_id: uploadId
|
|
5051
5068
|
}
|
|
5052
|
-
}
|
|
5069
|
+
},
|
|
5070
|
+
parseAs: "blob"
|
|
5053
5071
|
}
|
|
5054
5072
|
)
|
|
5055
5073
|
)
|