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.d.cts CHANGED
@@ -1760,6 +1760,7 @@ declare const WorkflowExecutionCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
1760
1760
  user_input: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodNumber, z.ZodBoolean]>>;
1761
1761
  file_name: z.ZodOptional<z.ZodString>;
1762
1762
  propagate_headers: z.ZodOptional<z.ZodBoolean>;
1763
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1763
1764
  }, z.core.$strip>>;
1764
1765
  type WorkflowExecutionCreateParams = z.infer<typeof WorkflowExecutionCreateParamsSchema>;
1765
1766
  /**
@@ -1819,7 +1820,7 @@ declare class WorkflowExecutionService {
1819
1820
  /**
1820
1821
  * Create a new workflow execution.
1821
1822
  */
1822
- create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>): Promise<AnyJson>;
1823
+ create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1823
1824
  /**
1824
1825
  * Get workflow execution by ID.
1825
1826
  */
@@ -1872,7 +1873,7 @@ declare class WorkflowService {
1872
1873
  /**
1873
1874
  * Run a workflow by ID.
1874
1875
  */
1875
- run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>): Promise<AnyJson>;
1876
+ run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1876
1877
  /**
1877
1878
  * Get workflow execution service for the specified workflow.
1878
1879
  */
package/dist/index.d.ts CHANGED
@@ -1760,6 +1760,7 @@ declare const WorkflowExecutionCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
1760
1760
  user_input: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodNumber, z.ZodBoolean]>>;
1761
1761
  file_name: z.ZodOptional<z.ZodString>;
1762
1762
  propagate_headers: z.ZodOptional<z.ZodBoolean>;
1763
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1763
1764
  }, z.core.$strip>>;
1764
1765
  type WorkflowExecutionCreateParams = z.infer<typeof WorkflowExecutionCreateParamsSchema>;
1765
1766
  /**
@@ -1819,7 +1820,7 @@ declare class WorkflowExecutionService {
1819
1820
  /**
1820
1821
  * Create a new workflow execution.
1821
1822
  */
1822
- create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>): Promise<AnyJson>;
1823
+ create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1823
1824
  /**
1824
1825
  * Get workflow execution by ID.
1825
1826
  */
@@ -1872,7 +1873,7 @@ declare class WorkflowService {
1872
1873
  /**
1873
1874
  * Run a workflow by ID.
1874
1875
  */
1875
- run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>): Promise<AnyJson>;
1876
+ run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1876
1877
  /**
1877
1878
  * Get workflow execution service for the specified workflow.
1878
1879
  */
package/dist/index.js CHANGED
@@ -1202,7 +1202,8 @@ var WorkflowExecutionCreateParamsSchema = z5.object({
1202
1202
  z5.boolean()
1203
1203
  ]).optional(),
1204
1204
  file_name: z5.string().optional(),
1205
- propagate_headers: z5.boolean().optional()
1205
+ propagate_headers: z5.boolean().optional(),
1206
+ tags: z5.array(z5.string()).optional()
1206
1207
  }).readonly();
1207
1208
  var WorkflowExecutionStateListParamsSchema = z5.object({
1208
1209
  page: z5.number().prefault(0),
@@ -1265,11 +1266,12 @@ var WorkflowExecutionService = class {
1265
1266
  /**
1266
1267
  * Create a new workflow execution.
1267
1268
  */
1268
- async create(userInput, fileName, propagateHeaders, headers) {
1269
+ async create(userInput, fileName, propagateHeaders, headers, tags) {
1269
1270
  const params = WorkflowExecutionCreateParamsSchema.parse({
1270
1271
  user_input: userInput,
1271
1272
  file_name: fileName,
1272
- propagate_headers: propagateHeaders
1273
+ propagate_headers: propagateHeaders,
1274
+ tags
1273
1275
  });
1274
1276
  return this.api.post(`/v1/workflows/${this.workflowId}/executions`, params, {}, headers);
1275
1277
  }
@@ -1373,8 +1375,8 @@ var WorkflowService = class {
1373
1375
  /**
1374
1376
  * Run a workflow by ID.
1375
1377
  */
1376
- async run(workflowId, userInput, fileName, propagateHeaders, headers) {
1377
- return this.executions(workflowId).create(userInput, fileName, propagateHeaders, headers);
1378
+ async run(workflowId, userInput, fileName, propagateHeaders, headers, tags) {
1379
+ return this.executions(workflowId).create(userInput, fileName, propagateHeaders, headers, tags);
1378
1380
  }
1379
1381
  /**
1380
1382
  * Get workflow execution service for the specified workflow.