codemie-sdk 0.1.344 → 0.1.346

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
@@ -1759,6 +1759,7 @@ type WorkflowExecutionListParams = Partial<z.infer<typeof WorkflowExecutionListP
1759
1759
  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
+ session_id: z.ZodOptional<z.ZodString>;
1762
1763
  propagate_headers: z.ZodOptional<z.ZodBoolean>;
1763
1764
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1764
1765
  }, z.core.$strip>>;
@@ -1820,7 +1821,7 @@ declare class WorkflowExecutionService {
1820
1821
  /**
1821
1822
  * Create a new workflow execution.
1822
1823
  */
1823
- create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1824
+ create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, sessionId?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1824
1825
  /**
1825
1826
  * Get workflow execution by ID.
1826
1827
  */
@@ -1873,7 +1874,7 @@ declare class WorkflowService {
1873
1874
  /**
1874
1875
  * Run a workflow by ID.
1875
1876
  */
1876
- run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1877
+ run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, sessionId?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1877
1878
  /**
1878
1879
  * Get workflow execution service for the specified workflow.
1879
1880
  */
package/dist/index.d.ts CHANGED
@@ -1759,6 +1759,7 @@ type WorkflowExecutionListParams = Partial<z.infer<typeof WorkflowExecutionListP
1759
1759
  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
+ session_id: z.ZodOptional<z.ZodString>;
1762
1763
  propagate_headers: z.ZodOptional<z.ZodBoolean>;
1763
1764
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1764
1765
  }, z.core.$strip>>;
@@ -1820,7 +1821,7 @@ declare class WorkflowExecutionService {
1820
1821
  /**
1821
1822
  * Create a new workflow execution.
1822
1823
  */
1823
- create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1824
+ create(userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, sessionId?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1824
1825
  /**
1825
1826
  * Get workflow execution by ID.
1826
1827
  */
@@ -1873,7 +1874,7 @@ declare class WorkflowService {
1873
1874
  /**
1874
1875
  * Run a workflow by ID.
1875
1876
  */
1876
- run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1877
+ run(workflowId: string, userInput?: string | Record<string, unknown> | unknown[] | number | boolean, fileName?: string, sessionId?: string, propagateHeaders?: boolean, headers?: Record<string, string>, tags?: string[]): Promise<AnyJson>;
1877
1878
  /**
1878
1879
  * Get workflow execution service for the specified workflow.
1879
1880
  */
package/dist/index.js CHANGED
@@ -1202,6 +1202,7 @@ var WorkflowExecutionCreateParamsSchema = z5.object({
1202
1202
  z5.boolean()
1203
1203
  ]).optional(),
1204
1204
  file_name: z5.string().optional(),
1205
+ session_id: z5.string().optional(),
1205
1206
  propagate_headers: z5.boolean().optional(),
1206
1207
  tags: z5.array(z5.string()).optional()
1207
1208
  }).readonly();
@@ -1266,10 +1267,11 @@ var WorkflowExecutionService = class {
1266
1267
  /**
1267
1268
  * Create a new workflow execution.
1268
1269
  */
1269
- async create(userInput, fileName, propagateHeaders, headers, tags) {
1270
+ async create(userInput, fileName, sessionId, propagateHeaders, headers, tags) {
1270
1271
  const params = WorkflowExecutionCreateParamsSchema.parse({
1271
1272
  user_input: userInput,
1272
1273
  file_name: fileName,
1274
+ session_id: sessionId,
1273
1275
  propagate_headers: propagateHeaders,
1274
1276
  tags
1275
1277
  });
@@ -1375,8 +1377,15 @@ var WorkflowService = class {
1375
1377
  /**
1376
1378
  * Run a workflow by ID.
1377
1379
  */
1378
- async run(workflowId, userInput, fileName, propagateHeaders, headers, tags) {
1379
- return this.executions(workflowId).create(userInput, fileName, propagateHeaders, headers, tags);
1380
+ async run(workflowId, userInput, fileName, sessionId, propagateHeaders, headers, tags) {
1381
+ return this.executions(workflowId).create(
1382
+ userInput,
1383
+ fileName,
1384
+ sessionId,
1385
+ propagateHeaders,
1386
+ headers,
1387
+ tags
1388
+ );
1380
1389
  }
1381
1390
  /**
1382
1391
  * Get workflow execution service for the specified workflow.