codemie-sdk 0.1.344 → 0.1.345
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 +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1281,6 +1281,7 @@ var WorkflowExecutionCreateParamsSchema = import_zod5.z.object({
|
|
|
1281
1281
|
import_zod5.z.boolean()
|
|
1282
1282
|
]).optional(),
|
|
1283
1283
|
file_name: import_zod5.z.string().optional(),
|
|
1284
|
+
session_id: import_zod5.z.string().optional(),
|
|
1284
1285
|
propagate_headers: import_zod5.z.boolean().optional(),
|
|
1285
1286
|
tags: import_zod5.z.array(import_zod5.z.string()).optional()
|
|
1286
1287
|
}).readonly();
|
|
@@ -1345,10 +1346,11 @@ var WorkflowExecutionService = class {
|
|
|
1345
1346
|
/**
|
|
1346
1347
|
* Create a new workflow execution.
|
|
1347
1348
|
*/
|
|
1348
|
-
async create(userInput, fileName, propagateHeaders, headers, tags) {
|
|
1349
|
+
async create(userInput, fileName, sessionId, propagateHeaders, headers, tags) {
|
|
1349
1350
|
const params = WorkflowExecutionCreateParamsSchema.parse({
|
|
1350
1351
|
user_input: userInput,
|
|
1351
1352
|
file_name: fileName,
|
|
1353
|
+
session_id: sessionId,
|
|
1352
1354
|
propagate_headers: propagateHeaders,
|
|
1353
1355
|
tags
|
|
1354
1356
|
});
|
|
@@ -1454,8 +1456,15 @@ var WorkflowService = class {
|
|
|
1454
1456
|
/**
|
|
1455
1457
|
* Run a workflow by ID.
|
|
1456
1458
|
*/
|
|
1457
|
-
async run(workflowId, userInput, fileName, propagateHeaders, headers, tags) {
|
|
1458
|
-
return this.executions(workflowId).create(
|
|
1459
|
+
async run(workflowId, userInput, fileName, sessionId, propagateHeaders, headers, tags) {
|
|
1460
|
+
return this.executions(workflowId).create(
|
|
1461
|
+
userInput,
|
|
1462
|
+
fileName,
|
|
1463
|
+
sessionId,
|
|
1464
|
+
propagateHeaders,
|
|
1465
|
+
headers,
|
|
1466
|
+
tags
|
|
1467
|
+
);
|
|
1459
1468
|
}
|
|
1460
1469
|
/**
|
|
1461
1470
|
* Get workflow execution service for the specified workflow.
|