@membranehq/sdk 0.8.4 → 0.9.0

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 (91) hide show
  1. package/dist/bundle.d.ts +423 -293
  2. package/dist/bundle.js +142 -103
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +1 -16
  5. package/dist/dts/accessors/actions-accessors.d.ts +26 -7
  6. package/dist/dts/accessors/actions-accessors.test.d.ts +1 -0
  7. package/dist/dts/accessors/connections-accessors.d.ts +7 -5
  8. package/dist/dts/accessors/integrations-accessors.d.ts +7 -5
  9. package/dist/dts/agent/index.d.ts +2 -0
  10. package/dist/dts/agent/mcp.d.ts +6 -0
  11. package/dist/dts/agent/session.d.ts +4 -1
  12. package/dist/dts/alerts/types.d.ts +2 -1
  13. package/dist/dts/api-version.generated.d.ts +10 -0
  14. package/dist/dts/apps/types.d.ts +371 -0
  15. package/dist/dts/entity-repository.d.ts +0 -1
  16. package/dist/dts/errors/index.d.ts +5 -1
  17. package/dist/dts/formulas/dataSchemaRef.d.ts +3 -3
  18. package/dist/dts/index.browser.d.ts +4 -2
  19. package/dist/dts/orgs/types.d.ts +342 -3
  20. package/dist/dts/platform-users.d.ts +24 -0
  21. package/dist/dts/usage/types.d.ts +4 -2
  22. package/dist/dts/validation/types.d.ts +2 -0
  23. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +15 -11
  24. package/dist/dts/workspace-elements/api/actions-api.d.ts +57 -55
  25. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +5 -5
  26. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +2 -2
  27. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +9 -8
  28. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +9 -8
  29. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -2
  30. package/dist/dts/workspace-elements/api/connections-api.d.ts +9 -3
  31. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -7
  32. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +2 -2
  33. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +11 -8
  34. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +10 -6
  35. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +10 -7
  36. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +10 -7
  37. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -6
  38. package/dist/dts/workspace-elements/api/external-events-api.d.ts +8 -6
  39. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +24 -19
  40. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -14
  41. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -14
  42. package/dist/dts/workspace-elements/api/flows-api.d.ts +133 -29
  43. package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -3
  44. package/dist/dts/workspace-elements/api/packages-api.d.ts +30 -18
  45. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +7 -7
  46. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -0
  47. package/dist/dts/workspace-elements/base/actions/index.d.ts +30 -14
  48. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +1 -1
  49. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +2 -2
  50. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +2 -2
  51. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -2
  52. package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
  53. package/dist/dts/workspace-elements/base/connectors/types.d.ts +2 -0
  54. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +2 -2
  55. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +2 -2
  56. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +3 -3
  57. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +22 -3
  58. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +6 -4
  59. package/dist/dts/workspace-elements/base/external-events/types.d.ts +6 -4
  60. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
  61. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +23 -3
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +1 -1
  63. package/dist/dts/workspace-elements/base/flows/index.d.ts +45 -3
  64. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -4
  65. package/dist/dts/workspace-elements/base/packages/index.d.ts +35 -8
  66. package/dist/dts/workspace-elements/compare.d.ts +16 -0
  67. package/dist/dts/workspace-elements/compare.test.d.ts +1 -0
  68. package/dist/dts/workspace-elements/index.d.ts +1 -0
  69. package/dist/dts/workspace-elements/paths.d.ts +8 -0
  70. package/dist/dts/workspace-elements/paths.test.d.ts +1 -0
  71. package/dist/dts/workspace-elements/types.d.ts +21 -9
  72. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  73. package/dist/dts/workspaces/index.d.ts +1 -0
  74. package/dist/dts/workspaces/schemas.d.ts +24 -0
  75. package/dist/dts/workspaces/types.d.ts +3 -9
  76. package/dist/index.browser.d.mts +9626 -8664
  77. package/dist/index.browser.d.ts +9626 -8664
  78. package/dist/index.browser.js +526 -273
  79. package/dist/index.browser.js.map +1 -1
  80. package/dist/index.browser.mjs +502 -273
  81. package/dist/index.browser.mjs.map +1 -1
  82. package/dist/index.node.d.mts +9647 -8685
  83. package/dist/index.node.d.ts +9647 -8685
  84. package/dist/index.node.js +526 -273
  85. package/dist/index.node.js.map +1 -1
  86. package/dist/index.node.mjs +502 -273
  87. package/dist/index.node.mjs.map +1 -1
  88. package/package.json +2 -1
  89. package/dist/dts/connector-copilot/types.d.ts +0 -160
  90. package/dist/dts/index.d.ts +0 -34
  91. /package/dist/dts/{connector-copilot → validation}/index.d.ts +0 -0
@@ -27,6 +27,7 @@ var ErrorType;
27
27
  ErrorType["ACTION_INSTANCE_SETUP"] = "action_instance_setup";
28
28
  ErrorType["UNIT_RUN"] = "unit_run";
29
29
  ErrorType["CUSTOM_CODE"] = "custom_code";
30
+ ErrorType["INSUFFICIENT_CREDIT"] = "insufficient_credit";
30
31
  })(ErrorType || (ErrorType = {}));
31
32
  var BadRequestErrorKey;
32
33
  (function (BadRequestErrorKey) {
@@ -178,6 +179,12 @@ class CustomCodeError extends MembraneError {
178
179
  this.data.type = ErrorType.CUSTOM_CODE;
179
180
  }
180
181
  }
182
+ class InsufficientCreditsError extends MembraneError {
183
+ constructor(arg) {
184
+ super(arg);
185
+ this.data.type = ErrorType.INSUFFICIENT_CREDIT;
186
+ }
187
+ }
181
188
 
182
189
  var DataBuilderFormulaType;
183
190
  (function (DataBuilderFormulaType) {
@@ -3386,6 +3393,7 @@ const zodBooleanCoercion = () => z.preprocess((val) => {
3386
3393
  return Boolean(val);
3387
3394
  return Boolean(val);
3388
3395
  }, z.boolean());
3396
+
3389
3397
  const IncludeArchivedQuery = z.object({
3390
3398
  includeArchived: zodBooleanCoercion().optional(),
3391
3399
  });
@@ -3440,7 +3448,6 @@ var WorkspaceElementType;
3440
3448
  WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
3441
3449
  WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
3442
3450
  WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
3443
- WorkspaceElementType["DataCollection"] = "data-collection";
3444
3451
  WorkspaceElementType["Screen"] = "screen";
3445
3452
  WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
3446
3453
  })(WorkspaceElementType || (WorkspaceElementType = {}));
@@ -3472,9 +3479,9 @@ const BaseWorkspaceElement = z.object({
3472
3479
  name: z.string(),
3473
3480
  });
3474
3481
  const BaseMembraneInterfaceEditableProperties = z.object({
3482
+ uuid: z.string().optional(),
3475
3483
  key: z.string().optional(),
3476
3484
  name: z.string().optional(),
3477
- uuid: z.string().optional(),
3478
3485
  description: z.string().optional(),
3479
3486
  meta: z.record(z.string(), z.any()).optional(),
3480
3487
  });
@@ -3490,14 +3497,20 @@ const BaseMembraneInterfaceReadOnlyProperties = z.object({
3490
3497
  });
3491
3498
  const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
3492
3499
  const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
3493
- integrationUuid: z.string().optional(),
3494
- parentUuid: z.string().optional(),
3495
3500
  integrationId: z.string().optional(),
3501
+ integrationUuid: z.string().optional(),
3496
3502
  parentId: z.string().optional(),
3503
+ parentUuid: z.string().optional(),
3504
+ connectionId: z.string().optional(),
3505
+ instanceKey: z.string().optional(),
3497
3506
  });
3498
3507
  const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
3499
3508
  isCustomized: z.boolean().optional(),
3500
3509
  });
3510
+ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
3511
+ integrationUuid: z.string().optional(),
3512
+ parentUuid: z.string().optional(),
3513
+ });
3501
3514
  const IntegrationLevelMembraneInterfaceSelectorQuery = z.object({
3502
3515
  layer: z.enum(['universal', 'integration', 'connection']).optional(),
3503
3516
  integrationKey: z.string().optional(),
@@ -3548,14 +3561,11 @@ var FieldMappingDirection;
3548
3561
  FieldMappingDirection["EXPORT"] = "export";
3549
3562
  FieldMappingDirection["BOTH"] = "both";
3550
3563
  })(FieldMappingDirection || (FieldMappingDirection = {}));
3551
- const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3552
- parentId: true,
3553
- }).extend({
3564
+ const FieldMappingSpecificProperties = z.object({
3554
3565
  connectionId: z.string().optional(),
3555
3566
  fieldMappingId: z.string().optional(),
3556
3567
  universalFieldMappingId: z.string().optional(),
3557
3568
  dataSourceKey: z.string().optional(),
3558
- dataSourceId: z.string().optional(),
3559
3569
  appSchema: DataSchema.optional(),
3560
3570
  direction: z.enum(FieldMappingDirection).optional(),
3561
3571
  defaultImportValue: z.any().optional(),
@@ -3566,6 +3576,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
3566
3576
  frozenExportFields: z.any().optional(),
3567
3577
  frozenUnifiedExportFields: z.any().optional(),
3568
3578
  });
3579
+ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3580
+ parentId: true,
3581
+ }).extend(FieldMappingSpecificProperties.shape);
3582
+ const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
3583
+ connectionId: true,
3584
+ fieldMappingId: true,
3585
+ universalFieldMappingId: true,
3586
+ });
3569
3587
  const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3570
3588
  universalFieldMappingRevision: z.string().optional(),
3571
3589
  });
@@ -3689,15 +3707,19 @@ const ActionDependency = z.object({
3689
3707
  key: z.string(),
3690
3708
  element: z.any().optional(),
3691
3709
  });
3692
- const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
3710
+ const ActionSpecificProperties = z.object({
3693
3711
  connectionId: z.string().optional(),
3694
3712
  instanceKey: z.string().optional(),
3695
3713
  inputSchema: DataSchema.optional(),
3696
3714
  type: z.enum(ActionType).optional(),
3697
- config: z.any().optional(),
3715
+ config: z.object({}).loose().optional(),
3698
3716
  outputMapping: z.any().optional(),
3699
3717
  customOutputSchema: DataSchema.optional(),
3700
3718
  });
3719
+ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
3720
+ const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
3721
+ connectionId: true,
3722
+ });
3701
3723
  const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3702
3724
  universalParentId: z.string().optional(),
3703
3725
  userId: z.string().optional(),
@@ -3728,6 +3750,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
3728
3750
  updatedAt: z.string(),
3729
3751
  lastActiveAt: z.string().optional(),
3730
3752
  nextCredentialsRefreshAt: z.string().optional(),
3753
+ nextRetryTimestamp: z.string().optional(),
3754
+ retryAttempts: z.number().optional(),
3731
3755
  archivedAt: z.string().optional(),
3732
3756
  isDeactivated: z.boolean().optional(),
3733
3757
  meta: z.record(z.string(), z.any()).optional(),
@@ -8406,9 +8430,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
8406
8430
  const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
8407
8431
  const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
8408
8432
  const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
8409
- const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8410
- parentId: true,
8411
- }).extend({
8433
+ const DataSourceSpecificProperties = z.object({
8412
8434
  connectionId: z.string().optional(),
8413
8435
  dataSourceId: z.string().optional(),
8414
8436
  universalDataSourceId: z.string().optional(),
@@ -8419,18 +8441,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
8419
8441
  collectionParameters: z.any().optional(),
8420
8442
  defaultPath: z.string().optional(),
8421
8443
  });
8444
+ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8445
+ parentId: true,
8446
+ }).extend(DataSourceSpecificProperties.shape);
8447
+ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
8448
+ connectionId: true,
8449
+ dataSourceId: true,
8450
+ universalDataSourceId: true,
8451
+ });
8422
8452
  const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8423
8453
  universalDataSourceRevision: z.string().optional(),
8424
8454
  });
8425
8455
  const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
8426
8456
  const DataSourceUnitConfig = z.object({
8427
- key: z.string().optional(),
8457
+ key: z.any().optional(),
8428
8458
  collectionKey: z.any().optional(),
8429
8459
  collectionParameters: z.any().optional(),
8430
8460
  udm: z.any().optional(),
8431
- path: z.string().optional(),
8432
8461
  pullUpdatesIntervalSeconds: z.number().optional(),
8433
8462
  fullSyncIntervalSeconds: z.number().optional(),
8463
+ path: z.any().optional(),
8464
+ defaultPath: z.any().optional(),
8434
8465
  });
8435
8466
 
8436
8467
  const BaseDataSourceInstance = BaseMembraneInterface.extend({
@@ -8897,16 +8928,22 @@ const FLOW_NODE_SPECS = {
8897
8928
  [FlowNodeType.RunAction]: RunAction,
8898
8929
  };
8899
8930
 
8900
- const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8901
- parentId: true,
8902
- }).extend({
8903
- connectionId: z.string().optional(),
8931
+ const FlowSpecificProperties = z.object({
8904
8932
  flowId: z.string().optional(),
8905
8933
  universalFlowId: z.string().optional(),
8906
8934
  parametersSchema: DataSchema.optional(),
8935
+ parameters: z.any().optional(),
8936
+ enabled: z.boolean().optional(),
8907
8937
  nodes: z.record(z.string(), FlowNode).optional(),
8908
8938
  autoCreateInstances: z.boolean().optional(),
8909
8939
  });
8940
+ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8941
+ parentId: true,
8942
+ }).extend(FlowSpecificProperties.shape);
8943
+ const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
8944
+ flowId: true,
8945
+ universalFlowId: true,
8946
+ });
8910
8947
  const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8911
8948
  universalFlowRevision: z.string().optional(),
8912
8949
  });
@@ -8934,6 +8971,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
8934
8971
  isDeactivated: z.boolean().optional(),
8935
8972
  authType: z.enum(CONNECTOR_AUTH_TYPES).optional(),
8936
8973
  });
8974
+ const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
8975
+ logoUri: z.string(),
8976
+ connectorUuid: z.string().optional(),
8977
+ connectorVersion: z.string().optional(),
8978
+ oAuthCallbackUri: z.string().optional(),
8979
+ parameters: z.any().optional(),
8980
+ appUuid: z.string().optional(),
8981
+ });
8937
8982
  const AppliedToIntegrations = (elementSchema) => z.array(z.object({
8938
8983
  element: elementSchema,
8939
8984
  integration: BaseIntegration,
@@ -8964,12 +9009,17 @@ const PackageElement = z.object({
8964
9009
  type: z.enum(IntegrationElementType),
8965
9010
  element: z.any().optional(),
8966
9011
  });
8967
- const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
9012
+ const PackageElementExport = z.object({
9013
+ uuid: z.string(),
9014
+ type: z.enum(IntegrationElementType),
9015
+ element: z.any().optional(),
9016
+ });
9017
+ const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
8968
9018
  scenarioTemplateId: z.string().optional(),
8969
9019
  elements: z.array(PackageElement).optional(),
8970
- integrationId: z.string().optional(),
8971
- parentUuid: z.string().optional(),
8972
- parentId: z.string().optional(),
9020
+ });
9021
+ const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
9022
+ elements: z.array(PackageElementExport).optional(),
8973
9023
  });
8974
9024
  const PackageCalculatedProperties = z.object({
8975
9025
  key: z.string(),
@@ -9203,6 +9253,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
9203
9253
  example: z.any().optional(),
9204
9254
  schema: DataSchema.optional(),
9205
9255
  globalWebhookUri: z.string(),
9256
+ tenantIdFormula: z.any().optional(),
9206
9257
  userIdFormula: z.any().optional(),
9207
9258
  });
9208
9259
 
@@ -9327,6 +9378,7 @@ var ActionRunLogStatus;
9327
9378
  })(ActionRunLogStatus || (ActionRunLogStatus = {}));
9328
9379
  const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
9329
9380
  actionId: z.string(),
9381
+ actionInstanceId: z.string(),
9330
9382
  integrationId: z.string(),
9331
9383
  connectionId: z.string(),
9332
9384
  input: z.any().optional(),
@@ -9335,6 +9387,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
9335
9387
  createdAt: z.string(),
9336
9388
  completedAt: z.string().optional(),
9337
9389
  error: ErrorDataSchema.optional(),
9390
+ duration: z.number().optional(),
9338
9391
  });
9339
9392
 
9340
9393
  const ActionApiResponse = BaseAction.extend({
@@ -9504,12 +9557,7 @@ const ExternalEvent = BaseExternalEvent.extend({
9504
9557
 
9505
9558
  const FlowApiResponse = BaseFlow.extend({
9506
9559
  integration: BaseIntegration.optional(),
9507
- appliedToIntegrations: AppliedToIntegrations(z.object({
9508
- id: z.string(),
9509
- integrationId: z.string().optional(),
9510
- isCustomized: z.boolean().optional(),
9511
- universalFlowId: z.string().optional(),
9512
- })).optional(),
9560
+ appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
9513
9561
  dependencies: z.array(z.any()).optional(),
9514
9562
  });
9515
9563
  const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
@@ -9873,6 +9921,71 @@ function hasCycles(nodes) {
9873
9921
  return hasCycles;
9874
9922
  }
9875
9923
 
9924
+ var WorkspaceElementChangeType;
9925
+ (function (WorkspaceElementChangeType) {
9926
+ WorkspaceElementChangeType["CREATE"] = "create";
9927
+ WorkspaceElementChangeType["UPDATE"] = "update";
9928
+ WorkspaceElementChangeType["DELETE"] = "delete";
9929
+ })(WorkspaceElementChangeType || (WorkspaceElementChangeType = {}));
9930
+ function compareWorkspaceExports(primaryExport, targetExport) {
9931
+ const changes = [];
9932
+ const result = {
9933
+ [WorkspaceElementChangeType.CREATE]: new Set(),
9934
+ [WorkspaceElementChangeType.UPDATE]: new Set(),
9935
+ [WorkspaceElementChangeType.DELETE]: new Set(),
9936
+ };
9937
+ const primaryMap = new Map();
9938
+ const otherMap = new Map();
9939
+ const typeMap = new Map();
9940
+ const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
9941
+ for (const elementType of allElementTypes) {
9942
+ const type = elementType;
9943
+ const primaryElements = primaryExport[type] || [];
9944
+ for (const element of primaryElements) {
9945
+ primaryMap.set(element.uuid, element);
9946
+ typeMap.set(element.uuid, type);
9947
+ }
9948
+ const otherElements = targetExport[type] || [];
9949
+ for (const element of otherElements) {
9950
+ otherMap.set(element.uuid, element);
9951
+ typeMap.set(element.uuid, type);
9952
+ }
9953
+ }
9954
+ for (const [uuid] of typeMap) {
9955
+ const primaryElement = primaryMap.get(uuid);
9956
+ const otherElement = otherMap.get(uuid);
9957
+ const change = compareElementExports(primaryElement, otherElement);
9958
+ if (change) {
9959
+ changes.push(change);
9960
+ }
9961
+ }
9962
+ changes.forEach((change) => {
9963
+ result[change.type].add(change.uuid);
9964
+ });
9965
+ return result;
9966
+ }
9967
+ function compareElementExports(primaryElement, targetElement) {
9968
+ if (primaryElement && !targetElement) {
9969
+ return {
9970
+ type: WorkspaceElementChangeType.CREATE,
9971
+ uuid: primaryElement.uuid,
9972
+ };
9973
+ }
9974
+ if (!primaryElement && targetElement) {
9975
+ return {
9976
+ type: WorkspaceElementChangeType.DELETE,
9977
+ uuid: targetElement.uuid,
9978
+ };
9979
+ }
9980
+ if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
9981
+ return {
9982
+ type: WorkspaceElementChangeType.UPDATE,
9983
+ uuid: primaryElement.uuid,
9984
+ };
9985
+ }
9986
+ return undefined;
9987
+ }
9988
+
9876
9989
  const WorkspaceElementSpecs = {
9877
9990
  [WorkspaceElementType.Customer]: {
9878
9991
  type: WorkspaceElementType.Customer,
@@ -9885,6 +9998,7 @@ const WorkspaceElementSpecs = {
9885
9998
  apiPath: 'integrations',
9886
9999
  name: 'Integration',
9887
10000
  namePlural: 'Integrations',
10001
+ exportPropertiesSchema: IntegrationExportProperties,
9888
10002
  },
9889
10003
  [WorkspaceElementType.Connector]: {
9890
10004
  type: WorkspaceElementType.Connector,
@@ -9904,6 +10018,7 @@ const WorkspaceElementSpecs = {
9904
10018
  name: 'Package',
9905
10019
  namePlural: 'Packages',
9906
10020
  editablePropertiesSchema: PackageEditableProperties,
10021
+ exportPropertiesSchema: PackageExportProperties,
9907
10022
  apiResponseSchema: PackageApiResponse,
9908
10023
  findQuerySchema: FindPackagesQuery,
9909
10024
  isMembraneInterface: true,
@@ -9922,6 +10037,7 @@ const WorkspaceElementSpecs = {
9922
10037
  name: 'Action',
9923
10038
  namePlural: 'Actions',
9924
10039
  editablePropertiesSchema: ActionEditableProperties,
10040
+ exportPropertiesSchema: ActionExportProperties,
9925
10041
  apiResponseSchema: ActionApiResponse,
9926
10042
  findQuerySchema: FindActionsQuery,
9927
10043
  isMembraneInterface: true,
@@ -9940,6 +10056,7 @@ const WorkspaceElementSpecs = {
9940
10056
  namePlural: 'Flows',
9941
10057
  parentFieldKey: 'universalFlowId',
9942
10058
  editablePropertiesSchema: FlowEditableProperties,
10059
+ exportPropertiesSchema: FlowExportProperties,
9943
10060
  apiResponseSchema: FlowApiResponse,
9944
10061
  findQuerySchema: FindFlowsQuery,
9945
10062
  isMembraneInterface: true,
@@ -9969,6 +10086,7 @@ const WorkspaceElementSpecs = {
9969
10086
  namePlural: 'Field Mappings',
9970
10087
  parentFieldKey: 'universalFieldMappingId',
9971
10088
  editablePropertiesSchema: FieldMappingEditableProperties,
10089
+ exportPropertiesSchema: FieldMappingExportProperties,
9972
10090
  apiResponseSchema: FieldMappingApiResponse,
9973
10091
  findQuerySchema: FindFieldMappingsQuery,
9974
10092
  isMembraneInterface: true,
@@ -9983,12 +10101,6 @@ const WorkspaceElementSpecs = {
9983
10101
  universalParentFieldKey: 'universalFieldMappingId',
9984
10102
  isMembraneInterface: true,
9985
10103
  },
9986
- [WorkspaceElementType.DataCollection]: {
9987
- type: WorkspaceElementType.DataCollection,
9988
- apiPath: 'data-collections',
9989
- name: 'Data Collection',
9990
- namePlural: 'Data Collections',
9991
- },
9992
10104
  [WorkspaceElementType.DataSource]: {
9993
10105
  type: WorkspaceElementType.DataSource,
9994
10106
  apiPath: 'data-sources',
@@ -9996,6 +10108,7 @@ const WorkspaceElementSpecs = {
9996
10108
  namePlural: 'Data Sources',
9997
10109
  parentFieldKey: 'universalDataSourceId',
9998
10110
  editablePropertiesSchema: DataSourceEditableProperties,
10111
+ exportPropertiesSchema: DataSourceExportProperties,
9999
10112
  apiResponseSchema: DataSourceApiResponse,
10000
10113
  findQuerySchema: FindDataSourcesQuery,
10001
10114
  isMembraneInterface: true,
@@ -10088,6 +10201,44 @@ const WorkspaceElementSpecs = {
10088
10201
  },
10089
10202
  };
10090
10203
 
10204
+ const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
10205
+ function getMembraneElementPath(elementType, elementKey, integrationKey) {
10206
+ const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
10207
+ if (!integrationKey) {
10208
+ return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
10209
+ }
10210
+ const integrationTypePath = WorkspaceElementSpecs[WorkspaceElementType.Integration].apiPath;
10211
+ return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
10212
+ }
10213
+ function parseMembraneElementPath(relativePath) {
10214
+ const typeByApiPath = new Map();
10215
+ for (const spec of Object.values(WorkspaceElementSpecs)) {
10216
+ typeByApiPath.set(spec.apiPath, spec.type);
10217
+ }
10218
+ const elementTypes = Object.values(WorkspaceElementSpecs)
10219
+ .map((spec) => spec.apiPath)
10220
+ .join('|');
10221
+ const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
10222
+ const universalMatch = relativePath.match(universalPattern);
10223
+ if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
10224
+ const { elementType: elementTypePath, elementKey } = universalMatch.groups;
10225
+ const elementType = typeByApiPath.get(elementTypePath);
10226
+ if (elementType) {
10227
+ return { type: elementType, key: elementKey };
10228
+ }
10229
+ }
10230
+ const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
10231
+ const integrationLevelMatch = relativePath.match(integrationLevelPattern);
10232
+ if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
10233
+ const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
10234
+ const elementType = typeByApiPath.get(elementTypePath);
10235
+ if (elementType) {
10236
+ return { type: elementType, key: elementKey, integrationKey };
10237
+ }
10238
+ }
10239
+ return undefined;
10240
+ }
10241
+
10091
10242
  class SelfAccessor {
10092
10243
  constructor(client) {
10093
10244
  this.client = client;
@@ -10100,136 +10251,6 @@ class SelfAccessor {
10100
10251
  }
10101
10252
  }
10102
10253
 
10103
- var ConnectorCopilotSuggestionType;
10104
- (function (ConnectorCopilotSuggestionType) {
10105
- ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
10106
- ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
10107
- ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
10108
- ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
10109
- ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
10110
- ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
10111
- ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
10112
- ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
10113
- ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
10114
- ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
10115
- ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
10116
- ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
10117
- })(ConnectorCopilotSuggestionType || (ConnectorCopilotSuggestionType = {}));
10118
- var ConnectorCopilotFileChunkTopicKey;
10119
- (function (ConnectorCopilotFileChunkTopicKey) {
10120
- ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
10121
- ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
10122
- ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
10123
- ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
10124
- })(ConnectorCopilotFileChunkTopicKey || (ConnectorCopilotFileChunkTopicKey = {}));
10125
- var CopilotTaskType;
10126
- (function (CopilotTaskType) {
10127
- CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
10128
- CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
10129
- CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
10130
- CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
10131
- CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
10132
- CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
10133
- CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
10134
- CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
10135
- CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
10136
- CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
10137
- CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
10138
- })(CopilotTaskType || (CopilotTaskType = {}));
10139
- var CopilotTaskStatus;
10140
- (function (CopilotTaskStatus) {
10141
- CopilotTaskStatus["Pending"] = "pending";
10142
- CopilotTaskStatus["Running"] = "running";
10143
- CopilotTaskStatus["Completed"] = "completed";
10144
- CopilotTaskStatus["Failed"] = "failed";
10145
- })(CopilotTaskStatus || (CopilotTaskStatus = {}));
10146
- var CopilotActionType;
10147
- (function (CopilotActionType) {
10148
- CopilotActionType["PatchConnectorFile"] = "patch";
10149
- CopilotActionType["PutConnectorFile"] = "put";
10150
- CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
10151
- CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
10152
- CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
10153
- })(CopilotActionType || (CopilotActionType = {}));
10154
- var CopilotActionStatus;
10155
- (function (CopilotActionStatus) {
10156
- CopilotActionStatus["Suggested"] = "suggested";
10157
- CopilotActionStatus["Executed"] = "executed";
10158
- CopilotActionStatus["Rejected"] = "rejected";
10159
- })(CopilotActionStatus || (CopilotActionStatus = {}));
10160
- var CopilotActivityType;
10161
- (function (CopilotActivityType) {
10162
- CopilotActivityType["Task"] = "task";
10163
- })(CopilotActivityType || (CopilotActivityType = {}));
10164
- const CopilotActivityScope = {
10165
- connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
10166
- };
10167
- class CopilotActivityScopeConnector {
10168
- constructor(connectorId) {
10169
- this.connectorId = connectorId;
10170
- this.auth = () => new CopilotActivityScopeConnectorAuth(this);
10171
- this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
10172
- this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
10173
- }
10174
- toString() {
10175
- return `connectors/${this.connectorId}`;
10176
- }
10177
- }
10178
- class CopilotActivityScopeConnectorAuth {
10179
- constructor(connectorScope) {
10180
- this.connectorScope = connectorScope;
10181
- }
10182
- toString() {
10183
- return `${this.connectorScope.toString()}/auth`;
10184
- }
10185
- }
10186
- class CopilotActivityScopeConnectorData {
10187
- constructor(connectorScope, dataCollectionKey) {
10188
- this.connectorScope = connectorScope;
10189
- this.dataCollectionKey = dataCollectionKey;
10190
- this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
10191
- }
10192
- toString() {
10193
- let scope = `${this.connectorScope.toString()}/data`;
10194
- if (this.dataCollectionKey) {
10195
- scope += `/${this.dataCollectionKey}`;
10196
- }
10197
- return scope;
10198
- }
10199
- }
10200
- class CopilotActivityScopeConnectorDataMethod {
10201
- constructor(collectionScope, methodKey) {
10202
- this.collectionScope = collectionScope;
10203
- this.methodKey = methodKey;
10204
- }
10205
- toString() {
10206
- return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
10207
- }
10208
- }
10209
- class CopilotActivityScopeConnectorUdm {
10210
- constructor(connectorScope, key) {
10211
- this.connectorScope = connectorScope;
10212
- this.key = key;
10213
- this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
10214
- }
10215
- toString() {
10216
- let scope = `${this.connectorScope.toString()}/udm`;
10217
- if (this.key) {
10218
- scope += `/${this.key}`;
10219
- }
10220
- return scope;
10221
- }
10222
- }
10223
- class CopilotActivityScopeConnectorUdmCollection {
10224
- constructor(udmScope, key) {
10225
- this.udmScope = udmScope;
10226
- this.key = key;
10227
- }
10228
- toString() {
10229
- return `${this.udmScope.toString()}/collection/${this.key}`;
10230
- }
10231
- }
10232
-
10233
10254
  var LogRecordType;
10234
10255
  (function (LogRecordType) {
10235
10256
  LogRecordType["MSG"] = "message";
@@ -10318,6 +10339,7 @@ const ERROR_CLASS_BY_TYPE = {
10318
10339
  [ErrorType.ACTION_INSTANCE_SETUP]: ActionInstanceSetupError,
10319
10340
  [ErrorType.UNIT_RUN]: UnitRunError,
10320
10341
  [ErrorType.CUSTOM_CODE]: CustomCodeError,
10342
+ [ErrorType.INSUFFICIENT_CREDIT]: InsufficientCreditsError,
10321
10343
  };
10322
10344
  function getErrorFromData(data) {
10323
10345
  if (typeof data === 'object' &&
@@ -10503,6 +10525,7 @@ var UsageType;
10503
10525
  UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
10504
10526
  UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
10505
10527
  UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
10528
+ UsageType["MEMBRANE_AGENT"] = "membrane-agent";
10506
10529
  })(UsageType || (UsageType = {}));
10507
10530
 
10508
10531
  function getNodeInputSchema(flow, nodeKey) {
@@ -10645,7 +10668,6 @@ const PARALLEL_EXECUTION_LIMITS = [
10645
10668
  'parallelBackgroundJobs',
10646
10669
  'parallelEventLogs',
10647
10670
  'parallelEventLogsPerConnection',
10648
- 'parallelWriteDatabaseRequests',
10649
10671
  'parallelPathfinderAgentSessions',
10650
10672
  ];
10651
10673
  const RATE_LIMITS = [
@@ -10656,7 +10678,6 @@ const RATE_LIMITS = [
10656
10678
  'webhookRequestsPerHour',
10657
10679
  'workspaceElementCreationsPerHour',
10658
10680
  'workspaceElementCreationsPerSecond',
10659
- 'createDatabaseRequestsPerSecond',
10660
10681
  ];
10661
10682
  const WORKSPACE_SIZE_LIMITS = [
10662
10683
  'totalNumberOfCustomers',
@@ -10672,17 +10693,138 @@ const EDITABLE_LIMITS = [
10672
10693
  'webhookRequestsPerCustomerPerSecond',
10673
10694
  'webhookRequestsPerCustomerPerHour',
10674
10695
  'parallelFlowRunsPerConnection',
10675
- 'parallelWriteDatabaseRequestsPerCustomer',
10676
- 'createDatabaseRequestsPerCustomerPerSecond',
10677
- 'updateDatabaseRequestsPerCustomerPerSecond',
10678
10696
  ];
10679
10697
 
10698
+ const OrgWorkspaceSchema = z.object({
10699
+ id: z.string(),
10700
+ name: z.string(),
10701
+ orgId: z.string(),
10702
+ apiBaseUri: z.string().optional(),
10703
+ key: z.string(),
10704
+ secret: z.string(),
10705
+ createdAt: z.coerce.date(),
10706
+ updatedAt: z.coerce.date(),
10707
+ engineAccessToken: z.string().optional(),
10708
+ onboardingStep: z.nativeEnum(WorkspaceOnboardingStep).optional(),
10709
+ trialEndDate: z.string().optional(),
10710
+ featureFlags: z.array(z.string()).optional(),
10711
+ logoUri: z.string().optional(),
10712
+ });
10713
+ const OrgWorkspaceUser = z.object({
10714
+ id: z.string(),
10715
+ workspaceId: z.string(),
10716
+ testCustomerId: z.string(),
10717
+ userId: z.string(),
10718
+ role: z.string(),
10719
+ });
10720
+
10721
+ const WorkspaceLimit = z.object({
10722
+ value: z.number().optional(),
10723
+ defaultValue: z.number().optional(),
10724
+ unit: z.nativeEnum(LimitUnits),
10725
+ });
10726
+ const WorkspaceLimitsSchema = z.object({
10727
+ parallelEventPulls: WorkspaceLimit.optional(),
10728
+ parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
10729
+ parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
10730
+ parallelFlowRuns: WorkspaceLimit.optional(),
10731
+ parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
10732
+ parallelApiRequests: WorkspaceLimit.optional(),
10733
+ parallelSseRequests: WorkspaceLimit.optional(),
10734
+ parallelBackgroundJobs: WorkspaceLimit.optional(),
10735
+ parallelEventLogs: WorkspaceLimit.optional(),
10736
+ parallelEventLogsPerConnection: WorkspaceLimit.optional(),
10737
+ ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
10738
+ fileUploadsMbPerHour: WorkspaceLimit.optional(),
10739
+ apiRequestsPerSecond: WorkspaceLimit.optional(),
10740
+ apiRequestsPerHour: WorkspaceLimit.optional(),
10741
+ webhookRequestsPerSecond: WorkspaceLimit.optional(),
10742
+ webhookRequestsPerHour: WorkspaceLimit.optional(),
10743
+ workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
10744
+ workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
10745
+ createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
10746
+ totalNumberOfCustomers: WorkspaceLimit.optional(),
10747
+ totalNumberOfConnections: WorkspaceLimit.optional(),
10748
+ totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
10749
+ parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
10750
+ parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
10751
+ apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10752
+ apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
10753
+ webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10754
+ webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
10755
+ externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
10756
+ createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10757
+ updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10758
+ parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
10759
+ });
10760
+ const EngineWorkspaceSettingsSchema = z.object({
10761
+ enableApiLogs: z.boolean().optional(),
10762
+ enableWebhookLogs: z.boolean().optional(),
10763
+ enableActionRunLogs: z.boolean().optional(),
10764
+ disableSecretKeyAuth: z.boolean().optional(),
10765
+ });
10766
+ const AppPublicKey = z.object({
10767
+ name: z.string(),
10768
+ publicKey: z.string(),
10769
+ });
10770
+ const AppSchema = z.object({
10771
+ id: z.string(),
10772
+ key: z.string(),
10773
+ logoUri: z.string().optional(),
10774
+ userFieldsSchema: z.any().optional(),
10775
+ apiBaseUri: z.string().optional(),
10776
+ webhookUri: z.string().optional(),
10777
+ publicKey: z.string().optional(),
10778
+ publicKeys: z.array(AppPublicKey).optional(),
10779
+ enabledWebhookEvents: z.array(z.string()).optional(),
10780
+ auth: z.any().optional(),
10781
+ credentialsSchema: z.any().optional(),
10782
+ apiClient: z.any().optional(),
10783
+ apiRequestHeaders: z.record(z.string(), z.any()).optional(),
10784
+ apiRequestQuery: z.record(z.string(), z.any()).optional(),
10785
+ isOnPrem: z.boolean().optional(),
10786
+ connectorBaseUri: z.string().optional(),
10787
+ connectorRevision: z.string().optional(),
10788
+ featureFlags: z.array(z.string()).optional(),
10789
+ limits: WorkspaceLimitsSchema.optional(),
10790
+ settings: EngineWorkspaceSettingsSchema.optional(),
10791
+ type: z.nativeEnum(WorkspaceType).optional(),
10792
+ jwksUri: z.string().nullable().optional(),
10793
+ isTrial: z.boolean().optional(),
10794
+ isThrottled: z.boolean().optional(),
10795
+ isDisabled: z.boolean().optional(),
10796
+ isBackgroundJobsDisabled: z.boolean().optional(),
10797
+ });
10798
+
10799
+ const PlatformUserSchema = z.object({
10800
+ id: z.string(),
10801
+ email: z.string(),
10802
+ name: z.string(),
10803
+ trialRequested: z.boolean(),
10804
+ introVideoStatus: z.string().optional(),
10805
+ isEligible: z.boolean().optional(),
10806
+ emailVerified: z.boolean().optional(),
10807
+ });
10808
+ const FullPlatformUser = z.object({
10809
+ id: z.string(),
10810
+ auth0Id: z.string().optional(),
10811
+ email: z.string(),
10812
+ name: z.string(),
10813
+ defaultAccountId: z.string().optional(),
10814
+ defaultWorkspaceId: z.string().optional(),
10815
+ isAdmin: z.boolean().optional(),
10816
+ trialRequested: z.boolean(),
10817
+ pat: z.string().optional(),
10818
+ introVideoStatus: z.string().optional(),
10819
+ isEligible: z.boolean().optional(),
10820
+ emailVerified: z.boolean().optional(),
10821
+ });
10822
+
10680
10823
  var OrgLimitsType;
10681
10824
  (function (OrgLimitsType) {
10682
10825
  OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
10683
10826
  OrgLimitsType["TODAY_USAGE"] = "todayUsage";
10684
10827
  OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
10685
- OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
10686
10828
  OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
10687
10829
  })(OrgLimitsType || (OrgLimitsType = {}));
10688
10830
  var OrgUserRole;
@@ -10695,6 +10837,55 @@ var OrgUserStatus;
10695
10837
  OrgUserStatus["Invited"] = "invited";
10696
10838
  OrgUserStatus["Active"] = "active";
10697
10839
  })(OrgUserStatus || (OrgUserStatus = {}));
10840
+ const OrgLimits = z
10841
+ .object({
10842
+ numberOfWorkspaces: z.number().optional(),
10843
+ todayUsage: z.number().optional(),
10844
+ lastThirtyDayUsage: z.number().optional(),
10845
+ membraneAgentLastThirtyDaysUsage: z.number().optional(),
10846
+ membraneExpertCreditsCapPerMonth: z.number().nullable().optional(),
10847
+ })
10848
+ .optional();
10849
+ const MembraneAgentKey = z
10850
+ .object({
10851
+ key: z.string().optional(),
10852
+ expiresAt: z.string().optional(),
10853
+ })
10854
+ .optional();
10855
+ const OrgSchema = z.object({
10856
+ id: z.string(),
10857
+ key: z.string(),
10858
+ name: z.string(),
10859
+ createdAt: z.coerce.date(),
10860
+ updatedAt: z.coerce.date(),
10861
+ trialEndDate: z.string().optional(),
10862
+ lastTrialExtensionDate: z.string().optional(),
10863
+ limits: OrgLimits,
10864
+ thirtyDayTotalCredits: z.number().optional(),
10865
+ lastThirtyDayUsagePercent: z.number().optional(),
10866
+ todayUsagePercent: z.number().optional(),
10867
+ domains: z.array(z.string()).optional(),
10868
+ featureFlags: z.array(z.string()).optional(),
10869
+ freeAiMonthlyCredits: z.number().optional(),
10870
+ paidAiCredits: z.number().optional(),
10871
+ stripeCustomerId: z.string().optional(),
10872
+ });
10873
+ const AccountResponse = z.object({
10874
+ user: FullPlatformUser.optional(),
10875
+ workspace: OrgWorkspaceSchema.optional(),
10876
+ workspaces: z.array(OrgWorkspaceSchema).optional(),
10877
+ workspaceUser: OrgWorkspaceUser.extend({
10878
+ testCustomerId: z.string(),
10879
+ }).optional(),
10880
+ engineTestUser: BaseCustomer.optional(),
10881
+ testCustomer: BaseCustomer.optional(),
10882
+ engineApp: AppSchema.optional(),
10883
+ superAdminToken: z.string().optional().nullable(),
10884
+ orgs: z.array(OrgSchema).optional(),
10885
+ permissions: z.array(z.string()).optional(),
10886
+ message: z.string().optional(),
10887
+ error: z.string().optional(),
10888
+ });
10698
10889
 
10699
10890
  var WebhookTypeEnum;
10700
10891
  (function (WebhookTypeEnum) {
@@ -10721,6 +10912,7 @@ var AlertType;
10721
10912
  AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
10722
10913
  AlertType["totalUsagePerDay"] = "totalUsagePerDay";
10723
10914
  AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
10915
+ AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
10724
10916
  })(AlertType || (AlertType = {}));
10725
10917
 
10726
10918
  class ElementAccessor {
@@ -10854,6 +11046,55 @@ class ElementInstanceAccessor {
10854
11046
  }
10855
11047
  }
10856
11048
 
11049
+ class ConnectionLevelElementAccessor {
11050
+ constructor(client, connectionSelector, selector, elementKey, query) {
11051
+ this.client = client;
11052
+ this.connectionSelector = connectionSelector;
11053
+ this.selector = selector;
11054
+ this.elementKey = elementKey;
11055
+ this.query = query;
11056
+ this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
11057
+ }
11058
+ uri(path = '', query = {}) {
11059
+ return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
11060
+ }
11061
+ getUniqueIdentifier() {
11062
+ return this.endpoint;
11063
+ }
11064
+ async get(query = {}) {
11065
+ return this.client.get(this.uri('', query));
11066
+ }
11067
+ async create() {
11068
+ return this.client.put(this.uri());
11069
+ }
11070
+ async patch(data) {
11071
+ return this.client.patch(this.uri(), data);
11072
+ }
11073
+ async put(data) {
11074
+ return this.client.put(this.uri(), data);
11075
+ }
11076
+ async archive() {
11077
+ return this.client.delete(this.uri());
11078
+ }
11079
+ async reset() {
11080
+ return this.client.post(this.uri('/reset'));
11081
+ }
11082
+ async setup() {
11083
+ return this.client.post(this.uri('/setup'));
11084
+ }
11085
+ }
11086
+ class ConnectionLevelElementsListAccessor {
11087
+ constructor(client, connectionSelector, elementKey) {
11088
+ this.client = client;
11089
+ this.connectionSelector = connectionSelector;
11090
+ this.elementKey = elementKey;
11091
+ }
11092
+ async list(query) {
11093
+ const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
11094
+ return this.client.get(endpoint);
11095
+ }
11096
+ }
11097
+
10857
11098
  class IntegrationLevelElementAccessor {
10858
11099
  constructor(client, integrationSelector, elementSelector, elementKey) {
10859
11100
  this.client = client;
@@ -10912,6 +11153,15 @@ class ActionAccessor extends ElementAccessor {
10912
11153
  async reset() {
10913
11154
  return await this.options.client.post(this.getPath('reset'));
10914
11155
  }
11156
+ async run(input, options) {
11157
+ const queryParams = options
11158
+ ? {
11159
+ integrationKey: options.integrationKey,
11160
+ connectionId: options.connectionId,
11161
+ }
11162
+ : {};
11163
+ return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
11164
+ }
10915
11165
  }
10916
11166
  class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
10917
11167
  constructor(client, integrationSelector, actionSelector) {
@@ -10928,6 +11178,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
10928
11178
  this.integrationSelector = integrationSelector;
10929
11179
  }
10930
11180
  }
11181
+ class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
11182
+ constructor(client, connectionSelector, actionSelector, query) {
11183
+ super(client, connectionSelector, actionSelector, 'actions', query);
11184
+ this.client = client;
11185
+ this.connectionSelector = connectionSelector;
11186
+ this.actionSelector = actionSelector;
11187
+ this.query = query;
11188
+ }
11189
+ async run(input) {
11190
+ return this.client.post(this.uri('/run'), input);
11191
+ }
11192
+ }
11193
+ class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
11194
+ constructor(client, connectionSelector) {
11195
+ super(client, connectionSelector, 'actions');
11196
+ this.client = client;
11197
+ this.connectionSelector = connectionSelector;
11198
+ }
11199
+ }
10931
11200
 
10932
11201
  const POPUP_ELEMENT_ID = '__integration-app-popup';
10933
11202
  const CONTAINER_ELEMENT_ID = '__integration-app-container';
@@ -11154,104 +11423,6 @@ function handleIframeUnmount(iframe) {
11154
11423
  }
11155
11424
  }
11156
11425
 
11157
- class ConnectionLevelElementAccessor {
11158
- constructor(client, connectionSelector, selector, elementKey, query) {
11159
- this.client = client;
11160
- this.connectionSelector = connectionSelector;
11161
- this.selector = selector;
11162
- this.elementKey = elementKey;
11163
- this.query = query;
11164
- this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
11165
- }
11166
- uri(path = '', query = {}) {
11167
- return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
11168
- }
11169
- getUniqueIdentifier() {
11170
- return this.endpoint;
11171
- }
11172
- async get(query = {}) {
11173
- return this.client.get(this.uri('', query));
11174
- }
11175
- async create() {
11176
- return this.client.put(this.uri());
11177
- }
11178
- async patch(data) {
11179
- return this.client.patch(this.uri(), data);
11180
- }
11181
- async put(data) {
11182
- return this.client.put(this.uri(), data);
11183
- }
11184
- async archive() {
11185
- return this.client.delete(this.uri());
11186
- }
11187
- async reset() {
11188
- return this.client.post(this.uri('/reset'));
11189
- }
11190
- async setup() {
11191
- return this.client.post(this.uri('/setup'));
11192
- }
11193
- }
11194
- class ConnectionLevelElementsListAccessor {
11195
- constructor(client, connectionSelector, elementKey) {
11196
- this.client = client;
11197
- this.connectionSelector = connectionSelector;
11198
- this.elementKey = elementKey;
11199
- }
11200
- async list(query) {
11201
- const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
11202
- return this.client.get(endpoint);
11203
- }
11204
- }
11205
-
11206
- class ActionInstancesAccessor extends ElementInstanceListAccessor {
11207
- constructor(client) {
11208
- super(client, 'action-instances');
11209
- }
11210
- }
11211
- class ActionInstanceAccessor extends ElementInstanceAccessor {
11212
- constructor(client, selector) {
11213
- super({
11214
- client,
11215
- instancePath: 'action-instance',
11216
- selector,
11217
- });
11218
- this.client = client;
11219
- }
11220
- async setup() {
11221
- await this.client.post(this.getPath('setup'));
11222
- }
11223
- async reset() {
11224
- await this.client.post(this.getPath('reset'));
11225
- }
11226
- async run(input) {
11227
- return this.client.post(this.getPath('run'), input);
11228
- }
11229
- async open({ onClose = () => { } } = {}) {
11230
- const id = await this.getId();
11231
- const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
11232
- return openIframe(uri, { onClose });
11233
- }
11234
- }
11235
- class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
11236
- constructor(client, connectionSelector, actionSelector, query) {
11237
- super(client, connectionSelector, actionSelector, 'actions', query);
11238
- this.client = client;
11239
- this.connectionSelector = connectionSelector;
11240
- this.actionSelector = actionSelector;
11241
- this.query = query;
11242
- }
11243
- async run(input) {
11244
- return this.client.post(this.uri('/run'), input);
11245
- }
11246
- }
11247
- class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
11248
- constructor(client, connectionSelector) {
11249
- super(client, connectionSelector, 'actions');
11250
- this.client = client;
11251
- this.connectionSelector = connectionSelector;
11252
- }
11253
- }
11254
-
11255
11426
  class DataSourcesAccessor extends ElementListAccessor {
11256
11427
  constructor(client) {
11257
11428
  super(client, 'data-sources');
@@ -12221,6 +12392,36 @@ class UserAccessor extends CustomerAccessor {
12221
12392
  }
12222
12393
  }
12223
12394
 
12395
+ class ActionInstancesAccessor extends ElementInstanceListAccessor {
12396
+ constructor(client) {
12397
+ super(client, 'action-instances');
12398
+ }
12399
+ }
12400
+ class ActionInstanceAccessor extends ElementInstanceAccessor {
12401
+ constructor(client, selector) {
12402
+ super({
12403
+ client,
12404
+ instancePath: 'action-instance',
12405
+ selector,
12406
+ });
12407
+ this.client = client;
12408
+ }
12409
+ async setup() {
12410
+ await this.client.post(this.getPath('setup'));
12411
+ }
12412
+ async reset() {
12413
+ await this.client.post(this.getPath('reset'));
12414
+ }
12415
+ async run(input) {
12416
+ return this.client.post(this.getPath('run'), input);
12417
+ }
12418
+ async open({ onClose = () => { } } = {}) {
12419
+ const id = await this.getId();
12420
+ const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
12421
+ return openIframe(uri, { onClose });
12422
+ }
12423
+ }
12424
+
12224
12425
  class DataLinkTablesAccessor extends ElementListAccessor {
12225
12426
  constructor(client) {
12226
12427
  super(client, 'data-link-tables');
@@ -12449,15 +12650,39 @@ const AgentSession = z.object({
12449
12650
  storedMessagesUri: z.string().url().optional(),
12450
12651
  sessionFilesZipUri: z.string().url().optional(),
12451
12652
  logs: z.array(z.any()).optional(),
12653
+ usage: z.number().optional(),
12452
12654
  });
12453
12655
  const CreateAgentSession = z.object({
12454
12656
  workspaceElementType: z.enum(WorkspaceElementType),
12455
12657
  workspaceElementId: z.string().min(1),
12456
12658
  prompt: z.string().min(1),
12659
+ testCustomerId: z.string().optional(),
12457
12660
  });
12458
12661
  const AgentSessionInputSchema = z.object({
12459
- input: z.string().optional(),
12460
- });
12662
+ input: z.string().min(1),
12663
+ synthetic: z.boolean().optional(),
12664
+ });
12665
+
12666
+ var InteractiveMcpToolName;
12667
+ (function (InteractiveMcpToolName) {
12668
+ InteractiveMcpToolName["REQUEST_TEST_CONNECTION"] = "requestTestConnection";
12669
+ })(InteractiveMcpToolName || (InteractiveMcpToolName = {}));
12670
+ var InteractiveMcpToolStatus;
12671
+ (function (InteractiveMcpToolStatus) {
12672
+ InteractiveMcpToolStatus["AWAITING_USER_INPUT"] = "awaiting_user_input";
12673
+ })(InteractiveMcpToolStatus || (InteractiveMcpToolStatus = {}));
12674
+
12675
+ const API_VERSIONS = {
12676
+ LEGACY: 'legacy',
12677
+ '2025-10-21': '2025-10-21',
12678
+ };
12679
+ const AVAILABLE_VERSIONS = Object.values(API_VERSIONS);
12680
+ const CHRONOLOGICAL_VERSIONS = [
12681
+ API_VERSIONS.LEGACY,
12682
+ ...[...AVAILABLE_VERSIONS].filter((v) => v !== API_VERSIONS.LEGACY).sort(),
12683
+ ];
12684
+ const LATEST_API_VERSION = CHRONOLOGICAL_VERSIONS[CHRONOLOGICAL_VERSIONS.length - 1];
12685
+ const VERSION_HEADER = 'membrane-api-version';
12461
12686
 
12462
12687
  function decodeJWT(token) {
12463
12688
  if (typeof token !== 'string') {
@@ -12491,6 +12716,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
12491
12716
  const DEFAULT_UI_URI = 'https://ui.integration.app';
12492
12717
  const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
12493
12718
  function decodeToken(token) {
12719
+ if (token.startsWith('pat-')) {
12720
+ return null;
12721
+ }
12494
12722
  const payload = decodeJWT(token);
12495
12723
  if (!payload) {
12496
12724
  throw new Error('Access token should be a valid JWT token.');
@@ -12520,7 +12748,7 @@ class MembraneApiClient {
12520
12748
  }
12521
12749
  else {
12522
12750
  const payload = decodeToken(this.token);
12523
- if (payload.exp) {
12751
+ if (payload === null || payload === void 0 ? void 0 : payload.exp) {
12524
12752
  const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
12525
12753
  if (willExpireSoon) {
12526
12754
  this.token = await this.fetchToken();
@@ -12578,6 +12806,7 @@ class MembraneApiClient {
12578
12806
  params.headers = {
12579
12807
  ...(params.headers || {}),
12580
12808
  Authorization: `Bearer ${token}`,
12809
+ [VERSION_HEADER]: LATEST_API_VERSION,
12581
12810
  };
12582
12811
  params.withCredentials = false;
12583
12812
  let response;
@@ -12918,5 +13147,5 @@ function hasMembraneCredentials(cwd) {
12918
13147
  return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
12919
13148
  }
12920
13149
 
12921
- export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackagesAccessor, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
13150
+ export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppPublicKey, AppSchema, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, FullPlatformUser, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InteractiveMcpToolName, InteractiveMcpToolStatus, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackagesAccessor, PaginationQuery, PaginationResponse, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
12922
13151
  //# sourceMappingURL=index.node.mjs.map