@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
@@ -50,6 +50,7 @@ exports.ErrorType = void 0;
50
50
  ErrorType["ACTION_INSTANCE_SETUP"] = "action_instance_setup";
51
51
  ErrorType["UNIT_RUN"] = "unit_run";
52
52
  ErrorType["CUSTOM_CODE"] = "custom_code";
53
+ ErrorType["INSUFFICIENT_CREDIT"] = "insufficient_credit";
53
54
  })(exports.ErrorType || (exports.ErrorType = {}));
54
55
  exports.BadRequestErrorKey = void 0;
55
56
  (function (BadRequestErrorKey) {
@@ -201,6 +202,12 @@ class CustomCodeError extends MembraneError {
201
202
  this.data.type = exports.ErrorType.CUSTOM_CODE;
202
203
  }
203
204
  }
205
+ class InsufficientCreditsError extends MembraneError {
206
+ constructor(arg) {
207
+ super(arg);
208
+ this.data.type = exports.ErrorType.INSUFFICIENT_CREDIT;
209
+ }
210
+ }
204
211
 
205
212
  exports.DataBuilderFormulaType = void 0;
206
213
  (function (DataBuilderFormulaType) {
@@ -3409,6 +3416,7 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
3409
3416
  return Boolean(val);
3410
3417
  return Boolean(val);
3411
3418
  }, zod.z.boolean());
3419
+
3412
3420
  const IncludeArchivedQuery = zod.z.object({
3413
3421
  includeArchived: zodBooleanCoercion().optional(),
3414
3422
  });
@@ -3463,7 +3471,6 @@ exports.WorkspaceElementType = void 0;
3463
3471
  WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
3464
3472
  WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
3465
3473
  WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
3466
- WorkspaceElementType["DataCollection"] = "data-collection";
3467
3474
  WorkspaceElementType["Screen"] = "screen";
3468
3475
  WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
3469
3476
  })(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
@@ -3495,9 +3502,9 @@ const BaseWorkspaceElement = zod.z.object({
3495
3502
  name: zod.z.string(),
3496
3503
  });
3497
3504
  const BaseMembraneInterfaceEditableProperties = zod.z.object({
3505
+ uuid: zod.z.string().optional(),
3498
3506
  key: zod.z.string().optional(),
3499
3507
  name: zod.z.string().optional(),
3500
- uuid: zod.z.string().optional(),
3501
3508
  description: zod.z.string().optional(),
3502
3509
  meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
3503
3510
  });
@@ -3513,14 +3520,20 @@ const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
3513
3520
  });
3514
3521
  const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
3515
3522
  const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
3516
- integrationUuid: zod.z.string().optional(),
3517
- parentUuid: zod.z.string().optional(),
3518
3523
  integrationId: zod.z.string().optional(),
3524
+ integrationUuid: zod.z.string().optional(),
3519
3525
  parentId: zod.z.string().optional(),
3526
+ parentUuid: zod.z.string().optional(),
3527
+ connectionId: zod.z.string().optional(),
3528
+ instanceKey: zod.z.string().optional(),
3520
3529
  });
3521
3530
  const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
3522
3531
  isCustomized: zod.z.boolean().optional(),
3523
3532
  });
3533
+ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
3534
+ integrationUuid: zod.z.string().optional(),
3535
+ parentUuid: zod.z.string().optional(),
3536
+ });
3524
3537
  const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
3525
3538
  layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
3526
3539
  integrationKey: zod.z.string().optional(),
@@ -3571,14 +3584,11 @@ exports.FieldMappingDirection = void 0;
3571
3584
  FieldMappingDirection["EXPORT"] = "export";
3572
3585
  FieldMappingDirection["BOTH"] = "both";
3573
3586
  })(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
3574
- const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3575
- parentId: true,
3576
- }).extend({
3587
+ const FieldMappingSpecificProperties = zod.z.object({
3577
3588
  connectionId: zod.z.string().optional(),
3578
3589
  fieldMappingId: zod.z.string().optional(),
3579
3590
  universalFieldMappingId: zod.z.string().optional(),
3580
3591
  dataSourceKey: zod.z.string().optional(),
3581
- dataSourceId: zod.z.string().optional(),
3582
3592
  appSchema: DataSchema.optional(),
3583
3593
  direction: zod.z.enum(exports.FieldMappingDirection).optional(),
3584
3594
  defaultImportValue: zod.z.any().optional(),
@@ -3589,6 +3599,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
3589
3599
  frozenExportFields: zod.z.any().optional(),
3590
3600
  frozenUnifiedExportFields: zod.z.any().optional(),
3591
3601
  });
3602
+ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3603
+ parentId: true,
3604
+ }).extend(FieldMappingSpecificProperties.shape);
3605
+ const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
3606
+ connectionId: true,
3607
+ fieldMappingId: true,
3608
+ universalFieldMappingId: true,
3609
+ });
3592
3610
  const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3593
3611
  universalFieldMappingRevision: zod.z.string().optional(),
3594
3612
  });
@@ -3712,15 +3730,19 @@ const ActionDependency = zod.z.object({
3712
3730
  key: zod.z.string(),
3713
3731
  element: zod.z.any().optional(),
3714
3732
  });
3715
- const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
3733
+ const ActionSpecificProperties = zod.z.object({
3716
3734
  connectionId: zod.z.string().optional(),
3717
3735
  instanceKey: zod.z.string().optional(),
3718
3736
  inputSchema: DataSchema.optional(),
3719
3737
  type: zod.z.enum(exports.ActionType).optional(),
3720
- config: zod.z.any().optional(),
3738
+ config: zod.z.object({}).loose().optional(),
3721
3739
  outputMapping: zod.z.any().optional(),
3722
3740
  customOutputSchema: DataSchema.optional(),
3723
3741
  });
3742
+ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
3743
+ const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
3744
+ connectionId: true,
3745
+ });
3724
3746
  const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3725
3747
  universalParentId: zod.z.string().optional(),
3726
3748
  userId: zod.z.string().optional(),
@@ -3751,6 +3773,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
3751
3773
  updatedAt: zod.z.string(),
3752
3774
  lastActiveAt: zod.z.string().optional(),
3753
3775
  nextCredentialsRefreshAt: zod.z.string().optional(),
3776
+ nextRetryTimestamp: zod.z.string().optional(),
3777
+ retryAttempts: zod.z.number().optional(),
3754
3778
  archivedAt: zod.z.string().optional(),
3755
3779
  isDeactivated: zod.z.boolean().optional(),
3756
3780
  meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
@@ -8429,9 +8453,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
8429
8453
  const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
8430
8454
  const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
8431
8455
  const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
8432
- const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8433
- parentId: true,
8434
- }).extend({
8456
+ const DataSourceSpecificProperties = zod.z.object({
8435
8457
  connectionId: zod.z.string().optional(),
8436
8458
  dataSourceId: zod.z.string().optional(),
8437
8459
  universalDataSourceId: zod.z.string().optional(),
@@ -8442,18 +8464,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
8442
8464
  collectionParameters: zod.z.any().optional(),
8443
8465
  defaultPath: zod.z.string().optional(),
8444
8466
  });
8467
+ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8468
+ parentId: true,
8469
+ }).extend(DataSourceSpecificProperties.shape);
8470
+ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
8471
+ connectionId: true,
8472
+ dataSourceId: true,
8473
+ universalDataSourceId: true,
8474
+ });
8445
8475
  const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8446
8476
  universalDataSourceRevision: zod.z.string().optional(),
8447
8477
  });
8448
8478
  const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
8449
8479
  const DataSourceUnitConfig = zod.z.object({
8450
- key: zod.z.string().optional(),
8480
+ key: zod.z.any().optional(),
8451
8481
  collectionKey: zod.z.any().optional(),
8452
8482
  collectionParameters: zod.z.any().optional(),
8453
8483
  udm: zod.z.any().optional(),
8454
- path: zod.z.string().optional(),
8455
8484
  pullUpdatesIntervalSeconds: zod.z.number().optional(),
8456
8485
  fullSyncIntervalSeconds: zod.z.number().optional(),
8486
+ path: zod.z.any().optional(),
8487
+ defaultPath: zod.z.any().optional(),
8457
8488
  });
8458
8489
 
8459
8490
  const BaseDataSourceInstance = BaseMembraneInterface.extend({
@@ -8920,16 +8951,22 @@ const FLOW_NODE_SPECS = {
8920
8951
  [exports.FlowNodeType.RunAction]: RunAction,
8921
8952
  };
8922
8953
 
8923
- const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8924
- parentId: true,
8925
- }).extend({
8926
- connectionId: zod.z.string().optional(),
8954
+ const FlowSpecificProperties = zod.z.object({
8927
8955
  flowId: zod.z.string().optional(),
8928
8956
  universalFlowId: zod.z.string().optional(),
8929
8957
  parametersSchema: DataSchema.optional(),
8958
+ parameters: zod.z.any().optional(),
8959
+ enabled: zod.z.boolean().optional(),
8930
8960
  nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
8931
8961
  autoCreateInstances: zod.z.boolean().optional(),
8932
8962
  });
8963
+ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8964
+ parentId: true,
8965
+ }).extend(FlowSpecificProperties.shape);
8966
+ const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
8967
+ flowId: true,
8968
+ universalFlowId: true,
8969
+ });
8933
8970
  const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8934
8971
  universalFlowRevision: zod.z.string().optional(),
8935
8972
  });
@@ -8957,6 +8994,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
8957
8994
  isDeactivated: zod.z.boolean().optional(),
8958
8995
  authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
8959
8996
  });
8997
+ const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
8998
+ logoUri: zod.z.string(),
8999
+ connectorUuid: zod.z.string().optional(),
9000
+ connectorVersion: zod.z.string().optional(),
9001
+ oAuthCallbackUri: zod.z.string().optional(),
9002
+ parameters: zod.z.any().optional(),
9003
+ appUuid: zod.z.string().optional(),
9004
+ });
8960
9005
  const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
8961
9006
  element: elementSchema,
8962
9007
  integration: BaseIntegration,
@@ -8987,12 +9032,17 @@ const PackageElement = zod.z.object({
8987
9032
  type: zod.z.enum(exports.IntegrationElementType),
8988
9033
  element: zod.z.any().optional(),
8989
9034
  });
8990
- const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
9035
+ const PackageElementExport = zod.z.object({
9036
+ uuid: zod.z.string(),
9037
+ type: zod.z.enum(exports.IntegrationElementType),
9038
+ element: zod.z.any().optional(),
9039
+ });
9040
+ const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
8991
9041
  scenarioTemplateId: zod.z.string().optional(),
8992
9042
  elements: zod.z.array(PackageElement).optional(),
8993
- integrationId: zod.z.string().optional(),
8994
- parentUuid: zod.z.string().optional(),
8995
- parentId: zod.z.string().optional(),
9043
+ });
9044
+ const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
9045
+ elements: zod.z.array(PackageElementExport).optional(),
8996
9046
  });
8997
9047
  const PackageCalculatedProperties = zod.z.object({
8998
9048
  key: zod.z.string(),
@@ -9226,6 +9276,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
9226
9276
  example: zod.z.any().optional(),
9227
9277
  schema: DataSchema.optional(),
9228
9278
  globalWebhookUri: zod.z.string(),
9279
+ tenantIdFormula: zod.z.any().optional(),
9229
9280
  userIdFormula: zod.z.any().optional(),
9230
9281
  });
9231
9282
 
@@ -9350,6 +9401,7 @@ exports.ActionRunLogStatus = void 0;
9350
9401
  })(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
9351
9402
  const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
9352
9403
  actionId: zod.z.string(),
9404
+ actionInstanceId: zod.z.string(),
9353
9405
  integrationId: zod.z.string(),
9354
9406
  connectionId: zod.z.string(),
9355
9407
  input: zod.z.any().optional(),
@@ -9358,6 +9410,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
9358
9410
  createdAt: zod.z.string(),
9359
9411
  completedAt: zod.z.string().optional(),
9360
9412
  error: ErrorDataSchema.optional(),
9413
+ duration: zod.z.number().optional(),
9361
9414
  });
9362
9415
 
9363
9416
  const ActionApiResponse = BaseAction.extend({
@@ -9527,12 +9580,7 @@ const ExternalEvent = BaseExternalEvent.extend({
9527
9580
 
9528
9581
  const FlowApiResponse = BaseFlow.extend({
9529
9582
  integration: BaseIntegration.optional(),
9530
- appliedToIntegrations: AppliedToIntegrations(zod.z.object({
9531
- id: zod.z.string(),
9532
- integrationId: zod.z.string().optional(),
9533
- isCustomized: zod.z.boolean().optional(),
9534
- universalFlowId: zod.z.string().optional(),
9535
- })).optional(),
9583
+ appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
9536
9584
  dependencies: zod.z.array(zod.z.any()).optional(),
9537
9585
  });
9538
9586
  const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
@@ -9896,6 +9944,71 @@ function hasCycles(nodes) {
9896
9944
  return hasCycles;
9897
9945
  }
9898
9946
 
9947
+ exports.WorkspaceElementChangeType = void 0;
9948
+ (function (WorkspaceElementChangeType) {
9949
+ WorkspaceElementChangeType["CREATE"] = "create";
9950
+ WorkspaceElementChangeType["UPDATE"] = "update";
9951
+ WorkspaceElementChangeType["DELETE"] = "delete";
9952
+ })(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
9953
+ function compareWorkspaceExports(primaryExport, targetExport) {
9954
+ const changes = [];
9955
+ const result = {
9956
+ [exports.WorkspaceElementChangeType.CREATE]: new Set(),
9957
+ [exports.WorkspaceElementChangeType.UPDATE]: new Set(),
9958
+ [exports.WorkspaceElementChangeType.DELETE]: new Set(),
9959
+ };
9960
+ const primaryMap = new Map();
9961
+ const otherMap = new Map();
9962
+ const typeMap = new Map();
9963
+ const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
9964
+ for (const elementType of allElementTypes) {
9965
+ const type = elementType;
9966
+ const primaryElements = primaryExport[type] || [];
9967
+ for (const element of primaryElements) {
9968
+ primaryMap.set(element.uuid, element);
9969
+ typeMap.set(element.uuid, type);
9970
+ }
9971
+ const otherElements = targetExport[type] || [];
9972
+ for (const element of otherElements) {
9973
+ otherMap.set(element.uuid, element);
9974
+ typeMap.set(element.uuid, type);
9975
+ }
9976
+ }
9977
+ for (const [uuid] of typeMap) {
9978
+ const primaryElement = primaryMap.get(uuid);
9979
+ const otherElement = otherMap.get(uuid);
9980
+ const change = compareElementExports(primaryElement, otherElement);
9981
+ if (change) {
9982
+ changes.push(change);
9983
+ }
9984
+ }
9985
+ changes.forEach((change) => {
9986
+ result[change.type].add(change.uuid);
9987
+ });
9988
+ return result;
9989
+ }
9990
+ function compareElementExports(primaryElement, targetElement) {
9991
+ if (primaryElement && !targetElement) {
9992
+ return {
9993
+ type: exports.WorkspaceElementChangeType.CREATE,
9994
+ uuid: primaryElement.uuid,
9995
+ };
9996
+ }
9997
+ if (!primaryElement && targetElement) {
9998
+ return {
9999
+ type: exports.WorkspaceElementChangeType.DELETE,
10000
+ uuid: targetElement.uuid,
10001
+ };
10002
+ }
10003
+ if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
10004
+ return {
10005
+ type: exports.WorkspaceElementChangeType.UPDATE,
10006
+ uuid: primaryElement.uuid,
10007
+ };
10008
+ }
10009
+ return undefined;
10010
+ }
10011
+
9899
10012
  const WorkspaceElementSpecs = {
9900
10013
  [exports.WorkspaceElementType.Customer]: {
9901
10014
  type: exports.WorkspaceElementType.Customer,
@@ -9908,6 +10021,7 @@ const WorkspaceElementSpecs = {
9908
10021
  apiPath: 'integrations',
9909
10022
  name: 'Integration',
9910
10023
  namePlural: 'Integrations',
10024
+ exportPropertiesSchema: IntegrationExportProperties,
9911
10025
  },
9912
10026
  [exports.WorkspaceElementType.Connector]: {
9913
10027
  type: exports.WorkspaceElementType.Connector,
@@ -9927,6 +10041,7 @@ const WorkspaceElementSpecs = {
9927
10041
  name: 'Package',
9928
10042
  namePlural: 'Packages',
9929
10043
  editablePropertiesSchema: PackageEditableProperties,
10044
+ exportPropertiesSchema: PackageExportProperties,
9930
10045
  apiResponseSchema: PackageApiResponse,
9931
10046
  findQuerySchema: FindPackagesQuery,
9932
10047
  isMembraneInterface: true,
@@ -9945,6 +10060,7 @@ const WorkspaceElementSpecs = {
9945
10060
  name: 'Action',
9946
10061
  namePlural: 'Actions',
9947
10062
  editablePropertiesSchema: ActionEditableProperties,
10063
+ exportPropertiesSchema: ActionExportProperties,
9948
10064
  apiResponseSchema: ActionApiResponse,
9949
10065
  findQuerySchema: FindActionsQuery,
9950
10066
  isMembraneInterface: true,
@@ -9963,6 +10079,7 @@ const WorkspaceElementSpecs = {
9963
10079
  namePlural: 'Flows',
9964
10080
  parentFieldKey: 'universalFlowId',
9965
10081
  editablePropertiesSchema: FlowEditableProperties,
10082
+ exportPropertiesSchema: FlowExportProperties,
9966
10083
  apiResponseSchema: FlowApiResponse,
9967
10084
  findQuerySchema: FindFlowsQuery,
9968
10085
  isMembraneInterface: true,
@@ -9992,6 +10109,7 @@ const WorkspaceElementSpecs = {
9992
10109
  namePlural: 'Field Mappings',
9993
10110
  parentFieldKey: 'universalFieldMappingId',
9994
10111
  editablePropertiesSchema: FieldMappingEditableProperties,
10112
+ exportPropertiesSchema: FieldMappingExportProperties,
9995
10113
  apiResponseSchema: FieldMappingApiResponse,
9996
10114
  findQuerySchema: FindFieldMappingsQuery,
9997
10115
  isMembraneInterface: true,
@@ -10006,12 +10124,6 @@ const WorkspaceElementSpecs = {
10006
10124
  universalParentFieldKey: 'universalFieldMappingId',
10007
10125
  isMembraneInterface: true,
10008
10126
  },
10009
- [exports.WorkspaceElementType.DataCollection]: {
10010
- type: exports.WorkspaceElementType.DataCollection,
10011
- apiPath: 'data-collections',
10012
- name: 'Data Collection',
10013
- namePlural: 'Data Collections',
10014
- },
10015
10127
  [exports.WorkspaceElementType.DataSource]: {
10016
10128
  type: exports.WorkspaceElementType.DataSource,
10017
10129
  apiPath: 'data-sources',
@@ -10019,6 +10131,7 @@ const WorkspaceElementSpecs = {
10019
10131
  namePlural: 'Data Sources',
10020
10132
  parentFieldKey: 'universalDataSourceId',
10021
10133
  editablePropertiesSchema: DataSourceEditableProperties,
10134
+ exportPropertiesSchema: DataSourceExportProperties,
10022
10135
  apiResponseSchema: DataSourceApiResponse,
10023
10136
  findQuerySchema: FindDataSourcesQuery,
10024
10137
  isMembraneInterface: true,
@@ -10111,6 +10224,44 @@ const WorkspaceElementSpecs = {
10111
10224
  },
10112
10225
  };
10113
10226
 
10227
+ const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
10228
+ function getMembraneElementPath(elementType, elementKey, integrationKey) {
10229
+ const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
10230
+ if (!integrationKey) {
10231
+ return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
10232
+ }
10233
+ const integrationTypePath = WorkspaceElementSpecs[exports.WorkspaceElementType.Integration].apiPath;
10234
+ return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
10235
+ }
10236
+ function parseMembraneElementPath(relativePath) {
10237
+ const typeByApiPath = new Map();
10238
+ for (const spec of Object.values(WorkspaceElementSpecs)) {
10239
+ typeByApiPath.set(spec.apiPath, spec.type);
10240
+ }
10241
+ const elementTypes = Object.values(WorkspaceElementSpecs)
10242
+ .map((spec) => spec.apiPath)
10243
+ .join('|');
10244
+ const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
10245
+ const universalMatch = relativePath.match(universalPattern);
10246
+ if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
10247
+ const { elementType: elementTypePath, elementKey } = universalMatch.groups;
10248
+ const elementType = typeByApiPath.get(elementTypePath);
10249
+ if (elementType) {
10250
+ return { type: elementType, key: elementKey };
10251
+ }
10252
+ }
10253
+ const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
10254
+ const integrationLevelMatch = relativePath.match(integrationLevelPattern);
10255
+ if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
10256
+ const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
10257
+ const elementType = typeByApiPath.get(elementTypePath);
10258
+ if (elementType) {
10259
+ return { type: elementType, key: elementKey, integrationKey };
10260
+ }
10261
+ }
10262
+ return undefined;
10263
+ }
10264
+
10114
10265
  class SelfAccessor {
10115
10266
  constructor(client) {
10116
10267
  this.client = client;
@@ -10123,136 +10274,6 @@ class SelfAccessor {
10123
10274
  }
10124
10275
  }
10125
10276
 
10126
- exports.ConnectorCopilotSuggestionType = void 0;
10127
- (function (ConnectorCopilotSuggestionType) {
10128
- ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
10129
- ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
10130
- ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
10131
- ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
10132
- ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
10133
- ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
10134
- ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
10135
- ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
10136
- ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
10137
- ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
10138
- ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
10139
- ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
10140
- })(exports.ConnectorCopilotSuggestionType || (exports.ConnectorCopilotSuggestionType = {}));
10141
- exports.ConnectorCopilotFileChunkTopicKey = void 0;
10142
- (function (ConnectorCopilotFileChunkTopicKey) {
10143
- ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
10144
- ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
10145
- ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
10146
- ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
10147
- })(exports.ConnectorCopilotFileChunkTopicKey || (exports.ConnectorCopilotFileChunkTopicKey = {}));
10148
- exports.CopilotTaskType = void 0;
10149
- (function (CopilotTaskType) {
10150
- CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
10151
- CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
10152
- CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
10153
- CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
10154
- CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
10155
- CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
10156
- CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
10157
- CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
10158
- CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
10159
- CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
10160
- CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
10161
- })(exports.CopilotTaskType || (exports.CopilotTaskType = {}));
10162
- exports.CopilotTaskStatus = void 0;
10163
- (function (CopilotTaskStatus) {
10164
- CopilotTaskStatus["Pending"] = "pending";
10165
- CopilotTaskStatus["Running"] = "running";
10166
- CopilotTaskStatus["Completed"] = "completed";
10167
- CopilotTaskStatus["Failed"] = "failed";
10168
- })(exports.CopilotTaskStatus || (exports.CopilotTaskStatus = {}));
10169
- exports.CopilotActionType = void 0;
10170
- (function (CopilotActionType) {
10171
- CopilotActionType["PatchConnectorFile"] = "patch";
10172
- CopilotActionType["PutConnectorFile"] = "put";
10173
- CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
10174
- CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
10175
- CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
10176
- })(exports.CopilotActionType || (exports.CopilotActionType = {}));
10177
- exports.CopilotActionStatus = void 0;
10178
- (function (CopilotActionStatus) {
10179
- CopilotActionStatus["Suggested"] = "suggested";
10180
- CopilotActionStatus["Executed"] = "executed";
10181
- CopilotActionStatus["Rejected"] = "rejected";
10182
- })(exports.CopilotActionStatus || (exports.CopilotActionStatus = {}));
10183
- exports.CopilotActivityType = void 0;
10184
- (function (CopilotActivityType) {
10185
- CopilotActivityType["Task"] = "task";
10186
- })(exports.CopilotActivityType || (exports.CopilotActivityType = {}));
10187
- const CopilotActivityScope = {
10188
- connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
10189
- };
10190
- class CopilotActivityScopeConnector {
10191
- constructor(connectorId) {
10192
- this.connectorId = connectorId;
10193
- this.auth = () => new CopilotActivityScopeConnectorAuth(this);
10194
- this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
10195
- this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
10196
- }
10197
- toString() {
10198
- return `connectors/${this.connectorId}`;
10199
- }
10200
- }
10201
- class CopilotActivityScopeConnectorAuth {
10202
- constructor(connectorScope) {
10203
- this.connectorScope = connectorScope;
10204
- }
10205
- toString() {
10206
- return `${this.connectorScope.toString()}/auth`;
10207
- }
10208
- }
10209
- class CopilotActivityScopeConnectorData {
10210
- constructor(connectorScope, dataCollectionKey) {
10211
- this.connectorScope = connectorScope;
10212
- this.dataCollectionKey = dataCollectionKey;
10213
- this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
10214
- }
10215
- toString() {
10216
- let scope = `${this.connectorScope.toString()}/data`;
10217
- if (this.dataCollectionKey) {
10218
- scope += `/${this.dataCollectionKey}`;
10219
- }
10220
- return scope;
10221
- }
10222
- }
10223
- class CopilotActivityScopeConnectorDataMethod {
10224
- constructor(collectionScope, methodKey) {
10225
- this.collectionScope = collectionScope;
10226
- this.methodKey = methodKey;
10227
- }
10228
- toString() {
10229
- return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
10230
- }
10231
- }
10232
- class CopilotActivityScopeConnectorUdm {
10233
- constructor(connectorScope, key) {
10234
- this.connectorScope = connectorScope;
10235
- this.key = key;
10236
- this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
10237
- }
10238
- toString() {
10239
- let scope = `${this.connectorScope.toString()}/udm`;
10240
- if (this.key) {
10241
- scope += `/${this.key}`;
10242
- }
10243
- return scope;
10244
- }
10245
- }
10246
- class CopilotActivityScopeConnectorUdmCollection {
10247
- constructor(udmScope, key) {
10248
- this.udmScope = udmScope;
10249
- this.key = key;
10250
- }
10251
- toString() {
10252
- return `${this.udmScope.toString()}/collection/${this.key}`;
10253
- }
10254
- }
10255
-
10256
10277
  exports.LogRecordType = void 0;
10257
10278
  (function (LogRecordType) {
10258
10279
  LogRecordType["MSG"] = "message";
@@ -10341,6 +10362,7 @@ const ERROR_CLASS_BY_TYPE = {
10341
10362
  [exports.ErrorType.ACTION_INSTANCE_SETUP]: ActionInstanceSetupError,
10342
10363
  [exports.ErrorType.UNIT_RUN]: UnitRunError,
10343
10364
  [exports.ErrorType.CUSTOM_CODE]: CustomCodeError,
10365
+ [exports.ErrorType.INSUFFICIENT_CREDIT]: InsufficientCreditsError,
10344
10366
  };
10345
10367
  function getErrorFromData(data) {
10346
10368
  if (typeof data === 'object' &&
@@ -10526,6 +10548,7 @@ exports.UsageType = void 0;
10526
10548
  UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
10527
10549
  UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
10528
10550
  UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
10551
+ UsageType["MEMBRANE_AGENT"] = "membrane-agent";
10529
10552
  })(exports.UsageType || (exports.UsageType = {}));
10530
10553
 
10531
10554
  function getNodeInputSchema(flow, nodeKey) {
@@ -10668,7 +10691,6 @@ const PARALLEL_EXECUTION_LIMITS = [
10668
10691
  'parallelBackgroundJobs',
10669
10692
  'parallelEventLogs',
10670
10693
  'parallelEventLogsPerConnection',
10671
- 'parallelWriteDatabaseRequests',
10672
10694
  'parallelPathfinderAgentSessions',
10673
10695
  ];
10674
10696
  const RATE_LIMITS = [
@@ -10679,7 +10701,6 @@ const RATE_LIMITS = [
10679
10701
  'webhookRequestsPerHour',
10680
10702
  'workspaceElementCreationsPerHour',
10681
10703
  'workspaceElementCreationsPerSecond',
10682
- 'createDatabaseRequestsPerSecond',
10683
10704
  ];
10684
10705
  const WORKSPACE_SIZE_LIMITS = [
10685
10706
  'totalNumberOfCustomers',
@@ -10695,17 +10716,138 @@ const EDITABLE_LIMITS = [
10695
10716
  'webhookRequestsPerCustomerPerSecond',
10696
10717
  'webhookRequestsPerCustomerPerHour',
10697
10718
  'parallelFlowRunsPerConnection',
10698
- 'parallelWriteDatabaseRequestsPerCustomer',
10699
- 'createDatabaseRequestsPerCustomerPerSecond',
10700
- 'updateDatabaseRequestsPerCustomerPerSecond',
10701
10719
  ];
10702
10720
 
10721
+ const OrgWorkspaceSchema = zod.z.object({
10722
+ id: zod.z.string(),
10723
+ name: zod.z.string(),
10724
+ orgId: zod.z.string(),
10725
+ apiBaseUri: zod.z.string().optional(),
10726
+ key: zod.z.string(),
10727
+ secret: zod.z.string(),
10728
+ createdAt: zod.z.coerce.date(),
10729
+ updatedAt: zod.z.coerce.date(),
10730
+ engineAccessToken: zod.z.string().optional(),
10731
+ onboardingStep: zod.z.nativeEnum(exports.WorkspaceOnboardingStep).optional(),
10732
+ trialEndDate: zod.z.string().optional(),
10733
+ featureFlags: zod.z.array(zod.z.string()).optional(),
10734
+ logoUri: zod.z.string().optional(),
10735
+ });
10736
+ const OrgWorkspaceUser = zod.z.object({
10737
+ id: zod.z.string(),
10738
+ workspaceId: zod.z.string(),
10739
+ testCustomerId: zod.z.string(),
10740
+ userId: zod.z.string(),
10741
+ role: zod.z.string(),
10742
+ });
10743
+
10744
+ const WorkspaceLimit = zod.z.object({
10745
+ value: zod.z.number().optional(),
10746
+ defaultValue: zod.z.number().optional(),
10747
+ unit: zod.z.nativeEnum(exports.LimitUnits),
10748
+ });
10749
+ const WorkspaceLimitsSchema = zod.z.object({
10750
+ parallelEventPulls: WorkspaceLimit.optional(),
10751
+ parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
10752
+ parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
10753
+ parallelFlowRuns: WorkspaceLimit.optional(),
10754
+ parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
10755
+ parallelApiRequests: WorkspaceLimit.optional(),
10756
+ parallelSseRequests: WorkspaceLimit.optional(),
10757
+ parallelBackgroundJobs: WorkspaceLimit.optional(),
10758
+ parallelEventLogs: WorkspaceLimit.optional(),
10759
+ parallelEventLogsPerConnection: WorkspaceLimit.optional(),
10760
+ ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
10761
+ fileUploadsMbPerHour: WorkspaceLimit.optional(),
10762
+ apiRequestsPerSecond: WorkspaceLimit.optional(),
10763
+ apiRequestsPerHour: WorkspaceLimit.optional(),
10764
+ webhookRequestsPerSecond: WorkspaceLimit.optional(),
10765
+ webhookRequestsPerHour: WorkspaceLimit.optional(),
10766
+ workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
10767
+ workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
10768
+ createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
10769
+ totalNumberOfCustomers: WorkspaceLimit.optional(),
10770
+ totalNumberOfConnections: WorkspaceLimit.optional(),
10771
+ totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
10772
+ parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
10773
+ parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
10774
+ apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10775
+ apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
10776
+ webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10777
+ webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
10778
+ externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
10779
+ createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10780
+ updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
10781
+ parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
10782
+ });
10783
+ const EngineWorkspaceSettingsSchema = zod.z.object({
10784
+ enableApiLogs: zod.z.boolean().optional(),
10785
+ enableWebhookLogs: zod.z.boolean().optional(),
10786
+ enableActionRunLogs: zod.z.boolean().optional(),
10787
+ disableSecretKeyAuth: zod.z.boolean().optional(),
10788
+ });
10789
+ const AppPublicKey = zod.z.object({
10790
+ name: zod.z.string(),
10791
+ publicKey: zod.z.string(),
10792
+ });
10793
+ const AppSchema = zod.z.object({
10794
+ id: zod.z.string(),
10795
+ key: zod.z.string(),
10796
+ logoUri: zod.z.string().optional(),
10797
+ userFieldsSchema: zod.z.any().optional(),
10798
+ apiBaseUri: zod.z.string().optional(),
10799
+ webhookUri: zod.z.string().optional(),
10800
+ publicKey: zod.z.string().optional(),
10801
+ publicKeys: zod.z.array(AppPublicKey).optional(),
10802
+ enabledWebhookEvents: zod.z.array(zod.z.string()).optional(),
10803
+ auth: zod.z.any().optional(),
10804
+ credentialsSchema: zod.z.any().optional(),
10805
+ apiClient: zod.z.any().optional(),
10806
+ apiRequestHeaders: zod.z.record(zod.z.string(), zod.z.any()).optional(),
10807
+ apiRequestQuery: zod.z.record(zod.z.string(), zod.z.any()).optional(),
10808
+ isOnPrem: zod.z.boolean().optional(),
10809
+ connectorBaseUri: zod.z.string().optional(),
10810
+ connectorRevision: zod.z.string().optional(),
10811
+ featureFlags: zod.z.array(zod.z.string()).optional(),
10812
+ limits: WorkspaceLimitsSchema.optional(),
10813
+ settings: EngineWorkspaceSettingsSchema.optional(),
10814
+ type: zod.z.nativeEnum(exports.WorkspaceType).optional(),
10815
+ jwksUri: zod.z.string().nullable().optional(),
10816
+ isTrial: zod.z.boolean().optional(),
10817
+ isThrottled: zod.z.boolean().optional(),
10818
+ isDisabled: zod.z.boolean().optional(),
10819
+ isBackgroundJobsDisabled: zod.z.boolean().optional(),
10820
+ });
10821
+
10822
+ const PlatformUserSchema = zod.z.object({
10823
+ id: zod.z.string(),
10824
+ email: zod.z.string(),
10825
+ name: zod.z.string(),
10826
+ trialRequested: zod.z.boolean(),
10827
+ introVideoStatus: zod.z.string().optional(),
10828
+ isEligible: zod.z.boolean().optional(),
10829
+ emailVerified: zod.z.boolean().optional(),
10830
+ });
10831
+ const FullPlatformUser = zod.z.object({
10832
+ id: zod.z.string(),
10833
+ auth0Id: zod.z.string().optional(),
10834
+ email: zod.z.string(),
10835
+ name: zod.z.string(),
10836
+ defaultAccountId: zod.z.string().optional(),
10837
+ defaultWorkspaceId: zod.z.string().optional(),
10838
+ isAdmin: zod.z.boolean().optional(),
10839
+ trialRequested: zod.z.boolean(),
10840
+ pat: zod.z.string().optional(),
10841
+ introVideoStatus: zod.z.string().optional(),
10842
+ isEligible: zod.z.boolean().optional(),
10843
+ emailVerified: zod.z.boolean().optional(),
10844
+ });
10845
+
10703
10846
  exports.OrgLimitsType = void 0;
10704
10847
  (function (OrgLimitsType) {
10705
10848
  OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
10706
10849
  OrgLimitsType["TODAY_USAGE"] = "todayUsage";
10707
10850
  OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
10708
- OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
10709
10851
  OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
10710
10852
  })(exports.OrgLimitsType || (exports.OrgLimitsType = {}));
10711
10853
  exports.OrgUserRole = void 0;
@@ -10718,6 +10860,55 @@ exports.OrgUserStatus = void 0;
10718
10860
  OrgUserStatus["Invited"] = "invited";
10719
10861
  OrgUserStatus["Active"] = "active";
10720
10862
  })(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
10863
+ const OrgLimits = zod.z
10864
+ .object({
10865
+ numberOfWorkspaces: zod.z.number().optional(),
10866
+ todayUsage: zod.z.number().optional(),
10867
+ lastThirtyDayUsage: zod.z.number().optional(),
10868
+ membraneAgentLastThirtyDaysUsage: zod.z.number().optional(),
10869
+ membraneExpertCreditsCapPerMonth: zod.z.number().nullable().optional(),
10870
+ })
10871
+ .optional();
10872
+ const MembraneAgentKey = zod.z
10873
+ .object({
10874
+ key: zod.z.string().optional(),
10875
+ expiresAt: zod.z.string().optional(),
10876
+ })
10877
+ .optional();
10878
+ const OrgSchema = zod.z.object({
10879
+ id: zod.z.string(),
10880
+ key: zod.z.string(),
10881
+ name: zod.z.string(),
10882
+ createdAt: zod.z.coerce.date(),
10883
+ updatedAt: zod.z.coerce.date(),
10884
+ trialEndDate: zod.z.string().optional(),
10885
+ lastTrialExtensionDate: zod.z.string().optional(),
10886
+ limits: OrgLimits,
10887
+ thirtyDayTotalCredits: zod.z.number().optional(),
10888
+ lastThirtyDayUsagePercent: zod.z.number().optional(),
10889
+ todayUsagePercent: zod.z.number().optional(),
10890
+ domains: zod.z.array(zod.z.string()).optional(),
10891
+ featureFlags: zod.z.array(zod.z.string()).optional(),
10892
+ freeAiMonthlyCredits: zod.z.number().optional(),
10893
+ paidAiCredits: zod.z.number().optional(),
10894
+ stripeCustomerId: zod.z.string().optional(),
10895
+ });
10896
+ const AccountResponse = zod.z.object({
10897
+ user: FullPlatformUser.optional(),
10898
+ workspace: OrgWorkspaceSchema.optional(),
10899
+ workspaces: zod.z.array(OrgWorkspaceSchema).optional(),
10900
+ workspaceUser: OrgWorkspaceUser.extend({
10901
+ testCustomerId: zod.z.string(),
10902
+ }).optional(),
10903
+ engineTestUser: BaseCustomer.optional(),
10904
+ testCustomer: BaseCustomer.optional(),
10905
+ engineApp: AppSchema.optional(),
10906
+ superAdminToken: zod.z.string().optional().nullable(),
10907
+ orgs: zod.z.array(OrgSchema).optional(),
10908
+ permissions: zod.z.array(zod.z.string()).optional(),
10909
+ message: zod.z.string().optional(),
10910
+ error: zod.z.string().optional(),
10911
+ });
10721
10912
 
10722
10913
  exports.WebhookTypeEnum = void 0;
10723
10914
  (function (WebhookTypeEnum) {
@@ -10744,6 +10935,7 @@ exports.AlertType = void 0;
10744
10935
  AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
10745
10936
  AlertType["totalUsagePerDay"] = "totalUsagePerDay";
10746
10937
  AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
10938
+ AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
10747
10939
  })(exports.AlertType || (exports.AlertType = {}));
10748
10940
 
10749
10941
  class ElementAccessor {
@@ -10877,6 +11069,55 @@ class ElementInstanceAccessor {
10877
11069
  }
10878
11070
  }
10879
11071
 
11072
+ class ConnectionLevelElementAccessor {
11073
+ constructor(client, connectionSelector, selector, elementKey, query) {
11074
+ this.client = client;
11075
+ this.connectionSelector = connectionSelector;
11076
+ this.selector = selector;
11077
+ this.elementKey = elementKey;
11078
+ this.query = query;
11079
+ this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
11080
+ }
11081
+ uri(path = '', query = {}) {
11082
+ return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
11083
+ }
11084
+ getUniqueIdentifier() {
11085
+ return this.endpoint;
11086
+ }
11087
+ async get(query = {}) {
11088
+ return this.client.get(this.uri('', query));
11089
+ }
11090
+ async create() {
11091
+ return this.client.put(this.uri());
11092
+ }
11093
+ async patch(data) {
11094
+ return this.client.patch(this.uri(), data);
11095
+ }
11096
+ async put(data) {
11097
+ return this.client.put(this.uri(), data);
11098
+ }
11099
+ async archive() {
11100
+ return this.client.delete(this.uri());
11101
+ }
11102
+ async reset() {
11103
+ return this.client.post(this.uri('/reset'));
11104
+ }
11105
+ async setup() {
11106
+ return this.client.post(this.uri('/setup'));
11107
+ }
11108
+ }
11109
+ class ConnectionLevelElementsListAccessor {
11110
+ constructor(client, connectionSelector, elementKey) {
11111
+ this.client = client;
11112
+ this.connectionSelector = connectionSelector;
11113
+ this.elementKey = elementKey;
11114
+ }
11115
+ async list(query) {
11116
+ const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
11117
+ return this.client.get(endpoint);
11118
+ }
11119
+ }
11120
+
10880
11121
  class IntegrationLevelElementAccessor {
10881
11122
  constructor(client, integrationSelector, elementSelector, elementKey) {
10882
11123
  this.client = client;
@@ -10935,6 +11176,15 @@ class ActionAccessor extends ElementAccessor {
10935
11176
  async reset() {
10936
11177
  return await this.options.client.post(this.getPath('reset'));
10937
11178
  }
11179
+ async run(input, options) {
11180
+ const queryParams = options
11181
+ ? {
11182
+ integrationKey: options.integrationKey,
11183
+ connectionId: options.connectionId,
11184
+ }
11185
+ : {};
11186
+ return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
11187
+ }
10938
11188
  }
10939
11189
  class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
10940
11190
  constructor(client, integrationSelector, actionSelector) {
@@ -10951,6 +11201,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
10951
11201
  this.integrationSelector = integrationSelector;
10952
11202
  }
10953
11203
  }
11204
+ class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
11205
+ constructor(client, connectionSelector, actionSelector, query) {
11206
+ super(client, connectionSelector, actionSelector, 'actions', query);
11207
+ this.client = client;
11208
+ this.connectionSelector = connectionSelector;
11209
+ this.actionSelector = actionSelector;
11210
+ this.query = query;
11211
+ }
11212
+ async run(input) {
11213
+ return this.client.post(this.uri('/run'), input);
11214
+ }
11215
+ }
11216
+ class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
11217
+ constructor(client, connectionSelector) {
11218
+ super(client, connectionSelector, 'actions');
11219
+ this.client = client;
11220
+ this.connectionSelector = connectionSelector;
11221
+ }
11222
+ }
10954
11223
 
10955
11224
  const POPUP_ELEMENT_ID = '__integration-app-popup';
10956
11225
  const CONTAINER_ELEMENT_ID = '__integration-app-container';
@@ -11177,104 +11446,6 @@ function handleIframeUnmount(iframe) {
11177
11446
  }
11178
11447
  }
11179
11448
 
11180
- class ConnectionLevelElementAccessor {
11181
- constructor(client, connectionSelector, selector, elementKey, query) {
11182
- this.client = client;
11183
- this.connectionSelector = connectionSelector;
11184
- this.selector = selector;
11185
- this.elementKey = elementKey;
11186
- this.query = query;
11187
- this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
11188
- }
11189
- uri(path = '', query = {}) {
11190
- return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
11191
- }
11192
- getUniqueIdentifier() {
11193
- return this.endpoint;
11194
- }
11195
- async get(query = {}) {
11196
- return this.client.get(this.uri('', query));
11197
- }
11198
- async create() {
11199
- return this.client.put(this.uri());
11200
- }
11201
- async patch(data) {
11202
- return this.client.patch(this.uri(), data);
11203
- }
11204
- async put(data) {
11205
- return this.client.put(this.uri(), data);
11206
- }
11207
- async archive() {
11208
- return this.client.delete(this.uri());
11209
- }
11210
- async reset() {
11211
- return this.client.post(this.uri('/reset'));
11212
- }
11213
- async setup() {
11214
- return this.client.post(this.uri('/setup'));
11215
- }
11216
- }
11217
- class ConnectionLevelElementsListAccessor {
11218
- constructor(client, connectionSelector, elementKey) {
11219
- this.client = client;
11220
- this.connectionSelector = connectionSelector;
11221
- this.elementKey = elementKey;
11222
- }
11223
- async list(query) {
11224
- const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
11225
- return this.client.get(endpoint);
11226
- }
11227
- }
11228
-
11229
- class ActionInstancesAccessor extends ElementInstanceListAccessor {
11230
- constructor(client) {
11231
- super(client, 'action-instances');
11232
- }
11233
- }
11234
- class ActionInstanceAccessor extends ElementInstanceAccessor {
11235
- constructor(client, selector) {
11236
- super({
11237
- client,
11238
- instancePath: 'action-instance',
11239
- selector,
11240
- });
11241
- this.client = client;
11242
- }
11243
- async setup() {
11244
- await this.client.post(this.getPath('setup'));
11245
- }
11246
- async reset() {
11247
- await this.client.post(this.getPath('reset'));
11248
- }
11249
- async run(input) {
11250
- return this.client.post(this.getPath('run'), input);
11251
- }
11252
- async open({ onClose = () => { } } = {}) {
11253
- const id = await this.getId();
11254
- const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
11255
- return openIframe(uri, { onClose });
11256
- }
11257
- }
11258
- class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
11259
- constructor(client, connectionSelector, actionSelector, query) {
11260
- super(client, connectionSelector, actionSelector, 'actions', query);
11261
- this.client = client;
11262
- this.connectionSelector = connectionSelector;
11263
- this.actionSelector = actionSelector;
11264
- this.query = query;
11265
- }
11266
- async run(input) {
11267
- return this.client.post(this.uri('/run'), input);
11268
- }
11269
- }
11270
- class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
11271
- constructor(client, connectionSelector) {
11272
- super(client, connectionSelector, 'actions');
11273
- this.client = client;
11274
- this.connectionSelector = connectionSelector;
11275
- }
11276
- }
11277
-
11278
11449
  class DataSourcesAccessor extends ElementListAccessor {
11279
11450
  constructor(client) {
11280
11451
  super(client, 'data-sources');
@@ -12244,6 +12415,36 @@ class UserAccessor extends CustomerAccessor {
12244
12415
  }
12245
12416
  }
12246
12417
 
12418
+ class ActionInstancesAccessor extends ElementInstanceListAccessor {
12419
+ constructor(client) {
12420
+ super(client, 'action-instances');
12421
+ }
12422
+ }
12423
+ class ActionInstanceAccessor extends ElementInstanceAccessor {
12424
+ constructor(client, selector) {
12425
+ super({
12426
+ client,
12427
+ instancePath: 'action-instance',
12428
+ selector,
12429
+ });
12430
+ this.client = client;
12431
+ }
12432
+ async setup() {
12433
+ await this.client.post(this.getPath('setup'));
12434
+ }
12435
+ async reset() {
12436
+ await this.client.post(this.getPath('reset'));
12437
+ }
12438
+ async run(input) {
12439
+ return this.client.post(this.getPath('run'), input);
12440
+ }
12441
+ async open({ onClose = () => { } } = {}) {
12442
+ const id = await this.getId();
12443
+ const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
12444
+ return openIframe(uri, { onClose });
12445
+ }
12446
+ }
12447
+
12247
12448
  class DataLinkTablesAccessor extends ElementListAccessor {
12248
12449
  constructor(client) {
12249
12450
  super(client, 'data-link-tables');
@@ -12472,15 +12673,39 @@ const AgentSession = zod.z.object({
12472
12673
  storedMessagesUri: zod.z.string().url().optional(),
12473
12674
  sessionFilesZipUri: zod.z.string().url().optional(),
12474
12675
  logs: zod.z.array(zod.z.any()).optional(),
12676
+ usage: zod.z.number().optional(),
12475
12677
  });
12476
12678
  const CreateAgentSession = zod.z.object({
12477
12679
  workspaceElementType: zod.z.enum(exports.WorkspaceElementType),
12478
12680
  workspaceElementId: zod.z.string().min(1),
12479
12681
  prompt: zod.z.string().min(1),
12682
+ testCustomerId: zod.z.string().optional(),
12480
12683
  });
12481
12684
  const AgentSessionInputSchema = zod.z.object({
12482
- input: zod.z.string().optional(),
12483
- });
12685
+ input: zod.z.string().min(1),
12686
+ synthetic: zod.z.boolean().optional(),
12687
+ });
12688
+
12689
+ exports.InteractiveMcpToolName = void 0;
12690
+ (function (InteractiveMcpToolName) {
12691
+ InteractiveMcpToolName["REQUEST_TEST_CONNECTION"] = "requestTestConnection";
12692
+ })(exports.InteractiveMcpToolName || (exports.InteractiveMcpToolName = {}));
12693
+ exports.InteractiveMcpToolStatus = void 0;
12694
+ (function (InteractiveMcpToolStatus) {
12695
+ InteractiveMcpToolStatus["AWAITING_USER_INPUT"] = "awaiting_user_input";
12696
+ })(exports.InteractiveMcpToolStatus || (exports.InteractiveMcpToolStatus = {}));
12697
+
12698
+ const API_VERSIONS = {
12699
+ LEGACY: 'legacy',
12700
+ '2025-10-21': '2025-10-21',
12701
+ };
12702
+ const AVAILABLE_VERSIONS = Object.values(API_VERSIONS);
12703
+ const CHRONOLOGICAL_VERSIONS = [
12704
+ API_VERSIONS.LEGACY,
12705
+ ...[...AVAILABLE_VERSIONS].filter((v) => v !== API_VERSIONS.LEGACY).sort(),
12706
+ ];
12707
+ const LATEST_API_VERSION = CHRONOLOGICAL_VERSIONS[CHRONOLOGICAL_VERSIONS.length - 1];
12708
+ const VERSION_HEADER = 'membrane-api-version';
12484
12709
 
12485
12710
  function decodeJWT(token) {
12486
12711
  if (typeof token !== 'string') {
@@ -12514,6 +12739,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
12514
12739
  const DEFAULT_UI_URI = 'https://ui.integration.app';
12515
12740
  const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
12516
12741
  function decodeToken(token) {
12742
+ if (token.startsWith('pat-')) {
12743
+ return null;
12744
+ }
12517
12745
  const payload = decodeJWT(token);
12518
12746
  if (!payload) {
12519
12747
  throw new Error('Access token should be a valid JWT token.');
@@ -12543,7 +12771,7 @@ class MembraneApiClient {
12543
12771
  }
12544
12772
  else {
12545
12773
  const payload = decodeToken(this.token);
12546
- if (payload.exp) {
12774
+ if (payload === null || payload === void 0 ? void 0 : payload.exp) {
12547
12775
  const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
12548
12776
  if (willExpireSoon) {
12549
12777
  this.token = await this.fetchToken();
@@ -12601,6 +12829,7 @@ class MembraneApiClient {
12601
12829
  params.headers = {
12602
12830
  ...(params.headers || {}),
12603
12831
  Authorization: `Bearer ${token}`,
12832
+ [VERSION_HEADER]: LATEST_API_VERSION,
12604
12833
  };
12605
12834
  params.withCredentials = false;
12606
12835
  let response;
@@ -12943,10 +13172,12 @@ function hasMembraneCredentials(cwd) {
12943
13172
 
12944
13173
  exports.ACTIONS = ACTIONS;
12945
13174
  exports.AccessDeniedError = AccessDeniedError;
13175
+ exports.AccountResponse = AccountResponse;
12946
13176
  exports.ActionAccessor = ActionAccessor;
12947
13177
  exports.ActionApiResponse = ActionApiResponse;
12948
13178
  exports.ActionDependency = ActionDependency;
12949
13179
  exports.ActionEditableProperties = ActionEditableProperties;
13180
+ exports.ActionExportProperties = ActionExportProperties;
12950
13181
  exports.ActionInstanceAccessor = ActionInstanceAccessor;
12951
13182
  exports.ActionInstanceApiResponse = ActionInstanceApiResponse;
12952
13183
  exports.ActionInstanceSetupError = ActionInstanceSetupError;
@@ -12971,6 +13202,8 @@ exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
12971
13202
  exports.AppEventTypeAccessor = AppEventTypeAccessor;
12972
13203
  exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
12973
13204
  exports.AppEventTypesAccessor = AppEventTypesAccessor;
13205
+ exports.AppPublicKey = AppPublicKey;
13206
+ exports.AppSchema = AppSchema;
12974
13207
  exports.AppliedToIntegrations = AppliedToIntegrations;
12975
13208
  exports.BadRequestError = BadRequestError;
12976
13209
  exports.BaseAction = BaseAction;
@@ -12998,6 +13231,7 @@ exports.BaseFlowRun = BaseFlowRun;
12998
13231
  exports.BaseIntegration = BaseIntegration;
12999
13232
  exports.BaseIntegrationLevelMembraneInterface = BaseIntegrationLevelMembraneInterface;
13000
13233
  exports.BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties;
13234
+ exports.BaseIntegrationLevelMembraneInterfaceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties;
13001
13235
  exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
13002
13236
  exports.BaseMembraneInterface = BaseMembraneInterface;
13003
13237
  exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
@@ -13045,7 +13279,6 @@ exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
13045
13279
  exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
13046
13280
  exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
13047
13281
  exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
13048
- exports.CopilotActivityScope = CopilotActivityScope;
13049
13282
  exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
13050
13283
  exports.CreateActionRequest = CreateActionRequest;
13051
13284
  exports.CreateAgentSession = CreateAgentSession;
@@ -13119,6 +13352,7 @@ exports.DataSchema = DataSchema;
13119
13352
  exports.DataSourceAccessor = DataSourceAccessor;
13120
13353
  exports.DataSourceApiResponse = DataSourceApiResponse;
13121
13354
  exports.DataSourceEditableProperties = DataSourceEditableProperties;
13355
+ exports.DataSourceExportProperties = DataSourceExportProperties;
13122
13356
  exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
13123
13357
  exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
13124
13358
  exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
@@ -13132,6 +13366,7 @@ exports.ElementInstanceAccessor = ElementInstanceAccessor;
13132
13366
  exports.ElementInstanceListAccessor = ElementInstanceListAccessor;
13133
13367
  exports.ElementListAccessor = ElementListAccessor;
13134
13368
  exports.ElementsExportFields = ElementsExportFields;
13369
+ exports.EngineWorkspaceSettingsSchema = EngineWorkspaceSettingsSchema;
13135
13370
  exports.ErrorData = ErrorData;
13136
13371
  exports.ErrorDataSchema = ErrorDataSchema;
13137
13372
  exports.ExternalEvent = ExternalEvent;
@@ -13146,6 +13381,7 @@ exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
13146
13381
  exports.FieldMappingAccessor = FieldMappingAccessor;
13147
13382
  exports.FieldMappingApiResponse = FieldMappingApiResponse;
13148
13383
  exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
13384
+ exports.FieldMappingExportProperties = FieldMappingExportProperties;
13149
13385
  exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
13150
13386
  exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
13151
13387
  exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
@@ -13172,6 +13408,7 @@ exports.FindPackagesQuery = FindPackagesQuery;
13172
13408
  exports.FlowAccessor = FlowAccessor;
13173
13409
  exports.FlowApiResponse = FlowApiResponse;
13174
13410
  exports.FlowEditableProperties = FlowEditableProperties;
13411
+ exports.FlowExportProperties = FlowExportProperties;
13175
13412
  exports.FlowInstanceAccessor = FlowInstanceAccessor;
13176
13413
  exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
13177
13414
  exports.FlowInstanceNode = FlowInstanceNode;
@@ -13196,15 +13433,18 @@ exports.FlowRunNode = FlowRunNode;
13196
13433
  exports.FlowRunsAccessor = FlowRunsAccessor;
13197
13434
  exports.FlowsAccessor = FlowsAccessor;
13198
13435
  exports.Formula = Formula;
13436
+ exports.FullPlatformUser = FullPlatformUser;
13199
13437
  exports.HTTP_REQUEST_SCHEMA = HTTP_REQUEST_SCHEMA;
13200
13438
  exports.HandyScenarioTemplateElement = HandyScenarioTemplateElement;
13201
13439
  exports.HttpRequestSpec = HttpRequestSpec;
13202
13440
  exports.IncludeArchivedQuery = IncludeArchivedQuery;
13441
+ exports.InsufficientCreditsError = InsufficientCreditsError;
13203
13442
  exports.IntegrationAccessor = IntegrationAccessor;
13204
13443
  exports.IntegrationApiResponse = IntegrationApiResponse;
13205
13444
  exports.IntegrationAppClient = MembraneClient;
13206
13445
  exports.IntegrationAuthOption = IntegrationAuthOption;
13207
13446
  exports.IntegrationAuthUi = IntegrationAuthUi;
13447
+ exports.IntegrationExportProperties = IntegrationExportProperties;
13208
13448
  exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
13209
13449
  exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
13210
13450
  exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
@@ -13222,8 +13462,10 @@ exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForCo
13222
13462
  exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
13223
13463
  exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
13224
13464
  exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
13465
+ exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
13225
13466
  exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
13226
13467
  exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
13468
+ exports.MembraneAgentKey = MembraneAgentKey;
13227
13469
  exports.MembraneAxiosInstance = axios;
13228
13470
  exports.MembraneClient = MembraneClient;
13229
13471
  exports.MembraneConfigLoader = MembraneConfigLoader;
@@ -13233,6 +13475,10 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
13233
13475
  exports.NotFoundError = NotFoundError;
13234
13476
  exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
13235
13477
  exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
13478
+ exports.OrgLimits = OrgLimits;
13479
+ exports.OrgSchema = OrgSchema;
13480
+ exports.OrgWorkspaceSchema = OrgWorkspaceSchema;
13481
+ exports.OrgWorkspaceUser = OrgWorkspaceUser;
13236
13482
  exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
13237
13483
  exports.PackageAccessor = PackageAccessor;
13238
13484
  exports.PackageApiResponse = PackageApiResponse;
@@ -13240,9 +13486,12 @@ exports.PackageCalculatedProperties = PackageCalculatedProperties;
13240
13486
  exports.PackageEditableProperties = PackageEditableProperties;
13241
13487
  exports.PackageElement = PackageElement;
13242
13488
  exports.PackageElementApi = PackageElementApi;
13489
+ exports.PackageElementExport = PackageElementExport;
13490
+ exports.PackageExportProperties = PackageExportProperties;
13243
13491
  exports.PackagesAccessor = PackagesAccessor;
13244
13492
  exports.PaginationQuery = PaginationQuery;
13245
13493
  exports.PaginationResponse = PaginationResponse;
13494
+ exports.PlatformUserSchema = PlatformUserSchema;
13246
13495
  exports.RATE_LIMITS = RATE_LIMITS;
13247
13496
  exports.RateLimitExceededError = RateLimitExceededError;
13248
13497
  exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
@@ -13275,6 +13524,7 @@ exports.UserAccessor = UserAccessor;
13275
13524
  exports.UsersAccessor = UsersAccessor;
13276
13525
  exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
13277
13526
  exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
13527
+ exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
13278
13528
  exports.__resolveValue = __resolveValue;
13279
13529
  exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
13280
13530
  exports.addUdmFallbackFields = addUdmFallbackFields;
@@ -13282,6 +13532,7 @@ exports.backwardCompatibleFilterMatch = backwardCompatibleFilterMatch;
13282
13532
  exports.buildData = buildData;
13283
13533
  exports.buildDataSchema = buildDataSchema;
13284
13534
  exports.buildValue = buildValue;
13535
+ exports.compareWorkspaceExports = compareWorkspaceExports;
13285
13536
  exports.compressDataSchema = compressDataSchema;
13286
13537
  exports.createCompoundSchema = createCompoundSchema;
13287
13538
  exports.createFlowInstanceSchema = createFlowInstanceSchema;
@@ -13330,6 +13581,7 @@ exports.getFullTitleForLocator = getFullTitleForLocator;
13330
13581
  exports.getIconUriForLocator = getIconUriForLocator;
13331
13582
  exports.getLocatorsFromData = getLocatorsFromData;
13332
13583
  exports.getLocatorsFromSchema = getLocatorsFromSchema;
13584
+ exports.getMembraneElementPath = getMembraneElementPath;
13333
13585
  exports.getMissingRequiredFields = getMissingRequiredFields;
13334
13586
  exports.getNameComponentsForLocator = getNameComponentsForLocator;
13335
13587
  exports.getNameForLocator = getNameForLocator;
@@ -13376,6 +13628,7 @@ exports.mergeWithFormulas = mergeWithFormulas;
13376
13628
  exports.nonEmptyObjectProperties = nonEmptyObjectProperties;
13377
13629
  exports.parseDataLocationPath = parseDataLocationPath;
13378
13630
  exports.parseDate = parseDate;
13631
+ exports.parseMembraneElementPath = parseMembraneElementPath;
13379
13632
  exports.patchSchema = patchSchema;
13380
13633
  exports.pickFieldsFromSchema = pickFieldsFromSchema;
13381
13634
  exports.pickFieldsFromValue = pickFieldsFromValue;