@membranehq/sdk 0.17.3 → 0.17.4

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.
Files changed (33) hide show
  1. package/dist/bundle.d.ts +12 -4
  2. package/dist/bundle.js +5 -2
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/clusters/types.d.ts +19 -0
  5. package/dist/dts/index.browser.d.ts +2 -0
  6. package/dist/dts/pending-tasks/index.d.ts +1 -0
  7. package/dist/dts/pending-tasks/types.d.ts +48 -0
  8. package/dist/dts/stats/index.d.ts +3 -3
  9. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +15 -6
  10. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +2 -2
  11. package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +2 -2
  12. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +2 -1
  13. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +2 -1
  14. package/dist/dts/workspace-elements/api/external-events-api.d.ts +2 -1
  15. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +12 -4
  16. package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +2 -1
  17. package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +5 -2
  18. package/dist/dts/workspace-elements/base/external-events/api.d.ts +4 -2
  19. package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +4 -1
  20. package/dist/dts/workspace-elements/filter-meta.d.ts +2 -0
  21. package/dist/index.browser.d.mts +122 -26
  22. package/dist/index.browser.d.ts +122 -26
  23. package/dist/index.browser.js +146 -43
  24. package/dist/index.browser.js.map +1 -1
  25. package/dist/index.browser.mjs +141 -44
  26. package/dist/index.browser.mjs.map +1 -1
  27. package/dist/index.node.d.mts +122 -26
  28. package/dist/index.node.d.ts +122 -26
  29. package/dist/index.node.js +146 -43
  30. package/dist/index.node.js.map +1 -1
  31. package/dist/index.node.mjs +141 -44
  32. package/dist/index.node.mjs.map +1 -1
  33. package/package.json +1 -1
package/dist/bundle.d.ts CHANGED
@@ -3295,15 +3295,17 @@ type CreateFlowRunRequest = z.infer<typeof CreateFlowRunRequest>;
3295
3295
  declare const FindFlowRunsQuery: z.ZodObject<{
3296
3296
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3297
3297
  cursor: z.ZodOptional<z.ZodString>;
3298
- flowInstanceId: z.ZodOptional<z.ZodString>;
3299
3298
  flowId: z.ZodOptional<z.ZodString>;
3300
3299
  universalFlowId: z.ZodOptional<z.ZodString>;
3300
+ integrationFlowId: z.ZodOptional<z.ZodString>;
3301
+ connectionFlowId: z.ZodOptional<z.ZodString>;
3301
3302
  tenantId: z.ZodOptional<z.ZodString>;
3302
3303
  userId: z.ZodOptional<z.ZodString>;
3303
3304
  state: z.ZodOptional<z.ZodEnum<typeof FlowRunState>>;
3304
3305
  integrationId: z.ZodOptional<z.ZodString>;
3305
3306
  connectionId: z.ZodOptional<z.ZodString>;
3306
- startedAfter: z.ZodOptional<z.ZodString>;
3307
+ from: z.ZodOptional<z.ZodString>;
3308
+ to: z.ZodOptional<z.ZodString>;
3307
3309
  }, z.core.$strip>;
3308
3310
  type FindFlowRunsQuery = z.infer<typeof FindFlowRunsQuery>;
3309
3311
  declare const FlowRunApiResponse: z.ZodObject<{
@@ -3313,8 +3315,11 @@ declare const FlowRunApiResponse: z.ZodObject<{
3313
3315
  integrationId: z.ZodOptional<z.ZodString>;
3314
3316
  connectionId: z.ZodOptional<z.ZodString>;
3315
3317
  name: z.ZodOptional<z.ZodString>;
3316
- flowInstanceId: z.ZodString;
3318
+ connectionFlowId: z.ZodString;
3319
+ integrationFlowId: z.ZodOptional<z.ZodString>;
3317
3320
  universalFlowId: z.ZodOptional<z.ZodString>;
3321
+ flowInstanceId: z.ZodOptional<z.ZodString>;
3322
+ flowId: z.ZodOptional<z.ZodString>;
3318
3323
  startNodeKey: z.ZodString;
3319
3324
  input: z.ZodOptional<z.ZodAny>;
3320
3325
  state: z.ZodEnum<typeof FlowRunState>;
@@ -3495,8 +3500,11 @@ declare const FindFlowRunsResponse: z.ZodObject<{
3495
3500
  integrationId: z.ZodOptional<z.ZodString>;
3496
3501
  connectionId: z.ZodOptional<z.ZodString>;
3497
3502
  name: z.ZodOptional<z.ZodString>;
3498
- flowInstanceId: z.ZodString;
3503
+ connectionFlowId: z.ZodString;
3504
+ integrationFlowId: z.ZodOptional<z.ZodString>;
3499
3505
  universalFlowId: z.ZodOptional<z.ZodString>;
3506
+ flowInstanceId: z.ZodOptional<z.ZodString>;
3507
+ flowId: z.ZodOptional<z.ZodString>;
3500
3508
  startNodeKey: z.ZodString;
3501
3509
  input: z.ZodOptional<z.ZodAny>;
3502
3510
  state: z.ZodEnum<typeof FlowRunState>;
package/dist/bundle.js CHANGED
@@ -22432,8 +22432,11 @@
22432
22432
  });
22433
22433
  ActivityLogRecord.extend({
22434
22434
  name: string$1().optional(),
22435
- flowInstanceId: string$1(),
22435
+ connectionFlowId: string$1(),
22436
+ integrationFlowId: string$1().optional(),
22436
22437
  universalFlowId: string$1().optional(),
22438
+ flowInstanceId: string$1().optional().describe('[INTERNAL] Deprecated: Use connectionFlowId instead'),
22439
+ flowId: string$1().optional().describe('[INTERNAL] Deprecated: Use integrationFlowId instead'),
22437
22440
  startNodeKey: string$1(),
22438
22441
  input: any().optional(),
22439
22442
  state: _enum(FlowRunState),
@@ -22489,7 +22492,7 @@
22489
22492
  throw new BadRequestError('Cannot repeat a running flow run.');
22490
22493
  }
22491
22494
  return this.client.post(`/flow-runs`, {
22492
- flowInstanceId: flowRun.flowInstanceId,
22495
+ flowInstanceId: flowRun.connectionFlowId || flowRun.flowInstanceId,
22493
22496
  startNodeKey: flowRun.startNodeKey,
22494
22497
  input: flowRun.input,
22495
22498
  });