codemie-sdk 0.1.341 → 0.1.343
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 +7 -5
- 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 +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1281,7 +1281,8 @@ 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
|
-
propagate_headers: import_zod5.z.boolean().optional()
|
|
1284
|
+
propagate_headers: import_zod5.z.boolean().optional(),
|
|
1285
|
+
tags: import_zod5.z.array(import_zod5.z.string()).optional()
|
|
1285
1286
|
}).readonly();
|
|
1286
1287
|
var WorkflowExecutionStateListParamsSchema = import_zod5.z.object({
|
|
1287
1288
|
page: import_zod5.z.number().prefault(0),
|
|
@@ -1344,11 +1345,12 @@ var WorkflowExecutionService = class {
|
|
|
1344
1345
|
/**
|
|
1345
1346
|
* Create a new workflow execution.
|
|
1346
1347
|
*/
|
|
1347
|
-
async create(userInput, fileName, propagateHeaders, headers) {
|
|
1348
|
+
async create(userInput, fileName, propagateHeaders, headers, tags) {
|
|
1348
1349
|
const params = WorkflowExecutionCreateParamsSchema.parse({
|
|
1349
1350
|
user_input: userInput,
|
|
1350
1351
|
file_name: fileName,
|
|
1351
|
-
propagate_headers: propagateHeaders
|
|
1352
|
+
propagate_headers: propagateHeaders,
|
|
1353
|
+
tags
|
|
1352
1354
|
});
|
|
1353
1355
|
return this.api.post(`/v1/workflows/${this.workflowId}/executions`, params, {}, headers);
|
|
1354
1356
|
}
|
|
@@ -1452,8 +1454,8 @@ var WorkflowService = class {
|
|
|
1452
1454
|
/**
|
|
1453
1455
|
* Run a workflow by ID.
|
|
1454
1456
|
*/
|
|
1455
|
-
async run(workflowId, userInput, fileName, propagateHeaders, headers) {
|
|
1456
|
-
return this.executions(workflowId).create(userInput, fileName, propagateHeaders, headers);
|
|
1457
|
+
async run(workflowId, userInput, fileName, propagateHeaders, headers, tags) {
|
|
1458
|
+
return this.executions(workflowId).create(userInput, fileName, propagateHeaders, headers, tags);
|
|
1457
1459
|
}
|
|
1458
1460
|
/**
|
|
1459
1461
|
* Get workflow execution service for the specified workflow.
|