@membranehq/sdk 0.9.11 → 0.11.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 (58) hide show
  1. package/dist/bundle.d.ts +75 -34
  2. package/dist/bundle.js +34 -17
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +18 -12
  5. package/dist/dts/accessors/integrations-accessors.d.ts +15 -11
  6. package/dist/dts/agent/session.d.ts +10 -0
  7. package/dist/dts/alerts/index.d.ts +1 -0
  8. package/dist/dts/alerts/types.d.ts +106 -13
  9. package/dist/dts/alerts/utils.d.ts +8 -0
  10. package/dist/dts/config/index.d.ts +1 -0
  11. package/dist/dts/dto/index.d.ts +3 -0
  12. package/dist/dts/functions/base.d.ts +2 -2
  13. package/dist/dts/index.browser.d.ts +1 -0
  14. package/dist/dts/logging/index.d.ts +9 -0
  15. package/dist/dts/orgs/types.d.ts +68 -1
  16. package/dist/dts/platform-users.d.ts +17 -2
  17. package/dist/dts/usage/types.d.ts +1 -0
  18. package/dist/dts/webhooks/types.d.ts +4 -2
  19. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -2
  20. package/dist/dts/workspace-elements/api/connections-api.d.ts +19 -4
  21. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -1
  22. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +3 -1
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -1
  26. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +6 -2
  27. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -2
  28. package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -2
  29. package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -4
  30. package/dist/dts/workspace-elements/api/packages-api.d.ts +2 -0
  31. package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -1
  33. package/dist/dts/workspace-elements/base/connectors/auth.d.ts +20 -0
  34. package/dist/dts/workspace-elements/base/connectors/functions.d.ts +12 -490
  35. package/dist/dts/workspace-elements/base/connectors/functions.test.d.ts +1 -0
  36. package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
  37. package/dist/dts/workspace-elements/base/connectors/types.d.ts +922 -478
  38. package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/methods/base.d.ts +1 -2
  39. package/dist/dts/workspace-elements/base/integrations/index.d.ts +0 -2
  40. package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
  41. package/dist/dts/workspace-elements/element-utils.d.ts +2 -0
  42. package/dist/dts/workspace-elements/element-utils.test.d.ts +1 -0
  43. package/dist/dts/workspace-elements/index.d.ts +1 -0
  44. package/dist/dts/workspace-elements/types.d.ts +9 -3
  45. package/dist/dts/workspaces/types.d.ts +39 -1
  46. package/dist/index.browser.d.mts +1420 -641
  47. package/dist/index.browser.d.ts +1420 -641
  48. package/dist/index.browser.js +608 -122
  49. package/dist/index.browser.js.map +1 -1
  50. package/dist/index.browser.mjs +584 -123
  51. package/dist/index.browser.mjs.map +1 -1
  52. package/dist/index.node.d.mts +1370 -590
  53. package/dist/index.node.d.ts +1370 -590
  54. package/dist/index.node.js +615 -122
  55. package/dist/index.node.js.map +1 -1
  56. package/dist/index.node.mjs +591 -123
  57. package/dist/index.node.mjs.map +1 -1
  58. package/package.json +2 -1
@@ -3478,6 +3478,7 @@ var WorkspaceEventType;
3478
3478
  WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
3479
3479
  WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
3480
3480
  WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
3481
+ WorkspaceEventType["AlertCreated"] = "alert.created";
3481
3482
  })(WorkspaceEventType || (WorkspaceEventType = {}));
3482
3483
  var WorkspaceElementState;
3483
3484
  (function (WorkspaceElementState) {
@@ -3528,8 +3529,9 @@ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterf
3528
3529
  parentUuid: z.string().optional(),
3529
3530
  isCustomized: z.boolean().optional(),
3530
3531
  });
3532
+ const MembraneElementLayer = z.enum(['universal', 'integration', 'connection']);
3531
3533
  const IntegrationLevelMembraneInterfaceSelectorQuery = z.object({
3532
- layer: z.enum(['universal', 'integration', 'connection']).optional(),
3534
+ layer: MembraneElementLayer.optional(),
3533
3535
  integrationKey: z.string().optional(),
3534
3536
  integrationId: z.string().optional(),
3535
3537
  connectionId: z.string().optional(),
@@ -3549,8 +3551,7 @@ const WorkspaceElementSearchQuery = z.object({
3549
3551
  });
3550
3552
  const WorkspaceElementSearchResult = z.object({
3551
3553
  elementType: z.enum(WorkspaceElementType),
3552
- elementId: z.string(),
3553
- name: z.string(),
3554
+ element: z.any(),
3554
3555
  });
3555
3556
 
3556
3557
  function mergeWithFormulas(a, b) {
@@ -3772,7 +3773,9 @@ const BaseConnection = BaseWorkspaceElement.extend({
3772
3773
  isDefunct: z.boolean().optional(),
3773
3774
  state: z.enum(WorkspaceElementState).optional(),
3774
3775
  error: ErrorDataSchema.optional(),
3775
- integrationId: z.string(),
3776
+ integrationId: z.string().optional(),
3777
+ connectorId: z.string().optional(),
3778
+ connectorVersion: z.string().optional(),
3776
3779
  authOptionKey: z.string().optional(),
3777
3780
  createdAt: z.string(),
3778
3781
  updatedAt: z.string(),
@@ -3858,6 +3861,7 @@ const ConnectorAuthSpec = z.object({
3858
3861
  title: z.string().optional(),
3859
3862
  description: z.string().optional(),
3860
3863
  type: z.enum(CONNECTOR_AUTH_TYPES),
3864
+ inputSchema: DataSchema.optional(),
3861
3865
  ui: z
3862
3866
  .object({
3863
3867
  schema: DataSchema.optional(),
@@ -3887,11 +3891,12 @@ function getAuthSpec(spec, authOptionKey) {
3887
3891
  const getDefaultAuthInputSchema = (args) => {
3888
3892
  var _a, _b, _c, _d, _e, _f;
3889
3893
  const authSpec = getAuthSpec(args.connectorSpec, args.authOptionKey);
3894
+ const inputSchema = (_b = (_a = authSpec === null || authSpec === void 0 ? void 0 : authSpec.ui) === null || _a === void 0 ? void 0 : _a.schema) !== null && _b !== void 0 ? _b : (_d = (_c = args.connectorSpec) === null || _c === void 0 ? void 0 : _c.ui) === null || _d === void 0 ? void 0 : _d.schema;
3890
3895
  return {
3891
3896
  type: 'object',
3892
3897
  properties: {
3893
- connectorParameters: (_b = (_a = args.connectorSpec) === null || _a === void 0 ? void 0 : _a.parametersSchema) !== null && _b !== void 0 ? _b : {},
3894
- connectionParameters: (_d = (_c = authSpec === null || authSpec === void 0 ? void 0 : authSpec.ui) === null || _c === void 0 ? void 0 : _c.schema) !== null && _d !== void 0 ? _d : (_f = (_e = args.connectorSpec) === null || _e === void 0 ? void 0 : _e.ui) === null || _f === void 0 ? void 0 : _f.schema,
3898
+ connectorParameters: (_f = (_e = args.connectorSpec) === null || _e === void 0 ? void 0 : _e.parametersSchema) !== null && _f !== void 0 ? _f : {},
3899
+ connectionInput: inputSchema,
3895
3900
  },
3896
3901
  };
3897
3902
  };
@@ -3992,7 +3997,7 @@ const ConnectorAuthMethodTypes = {
3992
3997
  },
3993
3998
  };
3994
3999
  },
3995
- getOutputSchema: () => REST_API_CLIENT_SCHEMA,
4000
+ getOutputSchema: () => REST_API_CLIENT_SCHEMA$1,
3996
4001
  isRequired: true,
3997
4002
  },
3998
4003
  test: {
@@ -4147,7 +4152,7 @@ const REST_API_CLIENT_RESPONSE_HANDLERS_SCHEMA = {
4147
4152
  },
4148
4153
  },
4149
4154
  };
4150
- const REST_API_CLIENT_SCHEMA = {
4155
+ const REST_API_CLIENT_SCHEMA$1 = {
4151
4156
  type: 'object',
4152
4157
  properties: {
4153
4158
  args: {
@@ -4185,11 +4190,6 @@ const CONNECTOR_DOCS_DIR = 'docs';
4185
4190
  const CONNECTOR_GLOBAL_WEBHOOKS_DIR = 'global-webhooks';
4186
4191
  const CONNECTOR_EVENTS_DIR = 'events';
4187
4192
 
4188
- const ConnectorOperationMethodImplementationTypes = [
4189
- ConnectorMethodImplementationType.restApiMapping,
4190
- ConnectorMethodImplementationType.javascript,
4191
- ];
4192
-
4193
4193
  var FunctionType;
4194
4194
  (function (FunctionType) {
4195
4195
  FunctionType["mapping"] = "mapping";
@@ -4209,10 +4209,157 @@ const BaseFunctionDefinition = z.object({
4209
4209
  });
4210
4210
  const GenericFunctionDefinition = z
4211
4211
  .object({
4212
- type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']),
4212
+ type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
4213
4213
  })
4214
4214
  .loose();
4215
4215
 
4216
+ function getEffectiveConnectorOption(connector, optionKey) {
4217
+ var _a, _b, _c, _d, _e, _f, _g;
4218
+ const option = (_a = connector.options) === null || _a === void 0 ? void 0 : _a[optionKey];
4219
+ const connectorInputSchema = (_b = connector.inputSchema) !== null && _b !== void 0 ? _b : (_c = connector.ui) === null || _c === void 0 ? void 0 : _c.schema;
4220
+ const optionInputSchema = (_d = option === null || option === void 0 ? void 0 : option.inputSchema) !== null && _d !== void 0 ? _d : (_e = option === null || option === void 0 ? void 0 : option.ui) === null || _e === void 0 ? void 0 : _e.schema;
4221
+ return {
4222
+ ...connector,
4223
+ ...option,
4224
+ inputSchema: mergeSchemas([connectorInputSchema, optionInputSchema]),
4225
+ parametersSchema: mergeSchemas([connector.parametersSchema, option === null || option === void 0 ? void 0 : option.parametersSchema]),
4226
+ credentialsSchema: mergeSchemas([connector.credentialsSchema, option === null || option === void 0 ? void 0 : option.credentialsSchema]),
4227
+ makeApiClient: (_f = option === null || option === void 0 ? void 0 : option.makeApiClient) !== null && _f !== void 0 ? _f : connector.makeApiClient,
4228
+ test: (_g = option === null || option === void 0 ? void 0 : option.test) !== null && _g !== void 0 ? _g : connector.test,
4229
+ };
4230
+ }
4231
+ const getDefaultInputSchema = (authConfig) => {
4232
+ var _a, _b, _c;
4233
+ const inputSchema = (_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.inputSchema) !== null && _a !== void 0 ? _a : (_b = authConfig === null || authConfig === void 0 ? void 0 : authConfig.ui) === null || _b === void 0 ? void 0 : _b.schema;
4234
+ return {
4235
+ type: 'object',
4236
+ properties: {
4237
+ connectorParameters: (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.parametersSchema) !== null && _c !== void 0 ? _c : {},
4238
+ ...(inputSchema && { connectionInput: inputSchema }),
4239
+ },
4240
+ };
4241
+ };
4242
+ const REST_API_CLIENT_SCHEMA = {
4243
+ type: 'object',
4244
+ properties: {
4245
+ args: {
4246
+ type: 'object',
4247
+ properties: {
4248
+ baseUri: {
4249
+ type: 'string',
4250
+ description: 'This prefix will be added to all relative API requests.',
4251
+ },
4252
+ query: {
4253
+ type: 'object',
4254
+ additionalProperties: true,
4255
+ },
4256
+ headers: {
4257
+ type: 'object',
4258
+ additionalProperties: true,
4259
+ },
4260
+ auth: {
4261
+ type: 'object',
4262
+ description: 'Basic authentication',
4263
+ properties: {
4264
+ username: { type: 'string' },
4265
+ password: { type: 'string' },
4266
+ },
4267
+ },
4268
+ },
4269
+ },
4270
+ },
4271
+ };
4272
+ const ConnectorFunctionSpecs = {
4273
+ getOAuthConfig: {
4274
+ authTypes: ['oauth2', 'oauth1'],
4275
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4276
+ getInputSchema: (authConfig) => {
4277
+ const schema = getDefaultInputSchema(authConfig);
4278
+ return {
4279
+ ...schema,
4280
+ properties: {
4281
+ ...schema.properties,
4282
+ redirectUri: { type: 'string' },
4283
+ state: { type: 'string' },
4284
+ },
4285
+ };
4286
+ },
4287
+ getOutputSchema: (authConfig) => {
4288
+ return (authConfig === null || authConfig === void 0 ? void 0 : authConfig.type) === 'oauth1' ? OAUTH1_CONFIG_SCHEMA : OAUTH_CONFIG_SCHEMA;
4289
+ },
4290
+ isRequired: true,
4291
+ },
4292
+ getTokenData: {
4293
+ authTypes: ['oauth2'],
4294
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4295
+ getInputSchema: getDefaultInputSchema,
4296
+ getOutputSchema: (authConfig) => {
4297
+ var _a;
4298
+ return (_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.customCredentialsSchema) !== null && _a !== void 0 ? _a : authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
4299
+ },
4300
+ isRequired: false,
4301
+ },
4302
+ getCredentialsFromAccessTokenResponse: {
4303
+ authTypes: ['oauth2'],
4304
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4305
+ isRequired: false,
4306
+ },
4307
+ getCredentialsFromRefreshTokenResponse: {
4308
+ authTypes: ['oauth2'],
4309
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4310
+ isRequired: false,
4311
+ },
4312
+ getCredentialsFromConnectionParameters: {
4313
+ authTypes: ['client-credentials', 'oauth2'],
4314
+ getInputSchema: getDefaultInputSchema,
4315
+ getOutputSchema: (authConfig) => {
4316
+ return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
4317
+ },
4318
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4319
+ isRequired: false,
4320
+ },
4321
+ refreshCredentials: {
4322
+ authTypes: ['oauth2', 'oauth1', 'client-credentials'],
4323
+ getInputSchema: getDefaultInputSchema,
4324
+ getOutputSchema: (authConfig) => {
4325
+ return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
4326
+ },
4327
+ supportedFunctionTypes: [FunctionType.javascript],
4328
+ isRequired: false,
4329
+ },
4330
+ makeApiClient: {
4331
+ supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
4332
+ getInputSchema: (authConfig) => {
4333
+ var _a, _b, _c;
4334
+ return {
4335
+ type: 'object',
4336
+ properties: {
4337
+ credentials: mergeSchemas([
4338
+ ((_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.customCredentialsSchema) !== null && _a !== void 0 ? _a : authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema),
4339
+ (_b = authConfig === null || authConfig === void 0 ? void 0 : authConfig.inputSchema) !== null && _b !== void 0 ? _b : (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.ui) === null || _c === void 0 ? void 0 : _c.schema,
4340
+ ]),
4341
+ },
4342
+ };
4343
+ },
4344
+ getOutputSchema: () => REST_API_CLIENT_SCHEMA,
4345
+ isRequired: true,
4346
+ },
4347
+ test: {
4348
+ supportedFunctionTypes: [FunctionType.operationMapping, FunctionType.restApiMapping, FunctionType.javascript],
4349
+ getOutputSchema: () => ({
4350
+ title: 'Success Criteria',
4351
+ description: 'If this value is truthy, the test is considered a success.',
4352
+ type: 'boolean',
4353
+ }),
4354
+ isRequired: true,
4355
+ },
4356
+ };
4357
+
4358
+ const ConnectorOperationMethodImplementationTypes = [
4359
+ ConnectorMethodImplementationType.restApiMapping,
4360
+ ConnectorMethodImplementationType.javascript,
4361
+ ];
4362
+
4216
4363
  const GraphQLFieldMappingSchema = z.lazy(() => z.object({
4217
4364
  field: z.string(),
4218
4365
  args: z.record(z.string(), z.any()).optional(),
@@ -4322,7 +4469,8 @@ const ConnectorSpec = z.object({
4322
4469
  type: z.enum(['openapi', 'graphql']),
4323
4470
  })
4324
4471
  .optional(),
4325
- ui: ConnectorUiSpec.optional(),
4472
+ ui: ConnectorUiSpec.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
4473
+ inputSchema: DataSchema.optional(),
4326
4474
  auth: ConnectorAuth.optional(),
4327
4475
  parametersSchema: DataSchema.optional(),
4328
4476
  udms: z.array(z.string()).optional(),
@@ -4345,14 +4493,10 @@ const ConnectorAuthWithFunctions = z.object({
4345
4493
  type: z
4346
4494
  .enum(['integration-app-token', 'membrane-token', 'oauth2', 'oauth1', 'client-credentials', 'proxy'])
4347
4495
  .optional(),
4496
+ credentialsSchema: DataSchema.optional(),
4348
4497
  customCredentialsSchema: DataSchema.optional(),
4349
- ui: z
4350
- .object({
4351
- schema: DataSchema.optional(),
4352
- description: z.string().optional(),
4353
- helpUri: z.string().optional(),
4354
- })
4355
- .optional(),
4498
+ inputSchema: DataSchema.optional(),
4499
+ parametersSchema: DataSchema.optional(),
4356
4500
  getCredentialsFromConnectionParameters: GenericFunctionDefinition.optional(),
4357
4501
  refreshCredentials: GenericFunctionDefinition.optional(),
4358
4502
  makeApiClient: GenericFunctionDefinition.optional(),
@@ -4360,18 +4504,40 @@ const ConnectorAuthWithFunctions = z.object({
4360
4504
  getTokenData: GenericFunctionDefinition.optional(),
4361
4505
  getCredentialsFromAccessTokenResponse: GenericFunctionDefinition.optional(),
4362
4506
  getCredentialsFromRefreshTokenResponse: GenericFunctionDefinition.optional(),
4507
+ test: GenericFunctionDefinition.optional(),
4363
4508
  proxyKey: z.string().optional(),
4509
+ ui: z
4510
+ .object({
4511
+ schema: DataSchema.optional(),
4512
+ description: z.string().optional(),
4513
+ helpUri: z.string().optional(),
4514
+ })
4515
+ .optional()
4516
+ .describe('[INTERNAL] Deprecated: Use inputSchema instead'),
4364
4517
  });
4365
- const ConnectorOption = ConnectorAuthWithFunctions.extend({
4518
+ const WriteableConnectorOption = ConnectorAuthWithFunctions.extend({
4366
4519
  title: z.string().optional(),
4367
4520
  description: z.string().optional(),
4368
4521
  enabled: z.any().optional(),
4522
+ }).omit({
4523
+ credentialsSchema: true,
4524
+ });
4525
+ const ConnectorOption = WriteableConnectorOption.extend({
4526
+ credentialsSchema: DataSchema.optional(),
4527
+ });
4528
+ const GeneratedConnectorOption = z.object({
4529
+ key: z.string(),
4530
+ type: z.enum(CONNECTOR_AUTH_TYPES),
4531
+ title: z.string().optional(),
4532
+ description: z.string().optional(),
4533
+ inputSchema: DataSchema.optional(),
4369
4534
  });
4370
4535
  const ConnectorOptions = z.record(z.string(), ConnectorOption);
4371
4536
  const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
4372
4537
  parametersSchema: DataSchema.optional(),
4373
- test: GenericFunctionDefinition.optional(),
4374
- options: ConnectorOptions.optional(),
4538
+ options: z.record(z.string(), WriteableConnectorOption).optional(),
4539
+ }).omit({
4540
+ credentialsSchema: true,
4375
4541
  });
4376
4542
  const ConnectorVersionData = z
4377
4543
  .object({
@@ -4389,7 +4555,10 @@ const ConnectorVersionData = z
4389
4555
  version: z.string(),
4390
4556
  credentialsSchema: DataSchema.optional(),
4391
4557
  })
4392
- .extend(WritableConnectorVersionData.shape);
4558
+ .extend(WritableConnectorVersionData.shape)
4559
+ .extend({
4560
+ options: ConnectorOptions.optional(),
4561
+ });
4393
4562
  const ConnectorVersion = ConnectorVersionData.extend({
4394
4563
  id: z.string(),
4395
4564
  connectorId: z.string(),
@@ -4404,6 +4573,7 @@ const WriteableConnectorFields = z
4404
4573
  categories: z.array(z.string()).optional(),
4405
4574
  })
4406
4575
  .extend(WritableConnectorVersionData.shape);
4576
+ const ConnectorExportProperties = WriteableConnectorFields;
4407
4577
  const UpdateConnectorRequest = WriteableConnectorFields;
4408
4578
  const CreateConnectorRequest = WriteableConnectorFields.extend({
4409
4579
  name: z.string(),
@@ -4413,16 +4583,12 @@ const BaseConnector = z.object({
4413
4583
  id: z.string(),
4414
4584
  key: z.string(),
4415
4585
  uuid: z.string(),
4586
+ appUuid: z.string().optional(),
4416
4587
  name: z.string(),
4417
4588
  logoUri: z.string(),
4418
- appUri: z.string(),
4419
- apiDocsUri: z.string(),
4420
- hasReadme: z.boolean(),
4421
- status: z.string().optional(),
4422
4589
  categories: z.array(z.string()).optional(),
4423
4590
  isPublic: z.boolean().optional(),
4424
4591
  popularity: z.number().optional(),
4425
- appUuid: z.string().optional(),
4426
4592
  });
4427
4593
  const Connector = z
4428
4594
  .object({})
@@ -4486,8 +4652,8 @@ const DataCollectionMethodCreate = {
4486
4652
  },
4487
4653
  };
4488
4654
  },
4489
- getInputSchema: ({ collectionSpec, method, connectorSpec }) => {
4490
- var _a, _b;
4655
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4656
+ var _a;
4491
4657
  let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4492
4658
  if (method === null || method === void 0 ? void 0 : method.fields) {
4493
4659
  fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
@@ -4497,12 +4663,12 @@ const DataCollectionMethodCreate = {
4497
4663
  }
4498
4664
  return {
4499
4665
  type: 'object',
4500
- properties: {
4666
+ properties: nonEmptyObjectProperties({
4501
4667
  fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
4502
4668
  type: 'object',
4503
4669
  },
4504
- credentials: (_b = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _b === void 0 ? void 0 : _b.credentialsSchema,
4505
- },
4670
+ credentials: credentialsSchema,
4671
+ }),
4506
4672
  };
4507
4673
  },
4508
4674
  getOutputSchema: ({}) => ({
@@ -4517,17 +4683,16 @@ const DataCollectionMethodCreate = {
4517
4683
  const DataCollectionMethodDelete = {
4518
4684
  name: 'Delete',
4519
4685
  description: 'Delete a data record from the collection by id',
4520
- getInputSchema: ({ collectionHandler, parameters, connectorSpec }) => {
4521
- var _a;
4686
+ getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
4522
4687
  return {
4523
4688
  type: 'object',
4524
- properties: {
4689
+ properties: nonEmptyObjectProperties({
4525
4690
  id: {
4526
4691
  type: 'string',
4527
4692
  referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4528
4693
  },
4529
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4530
- },
4694
+ credentials: credentialsSchema,
4695
+ }),
4531
4696
  };
4532
4697
  },
4533
4698
  getOutputSchema: () => null,
@@ -4551,15 +4716,14 @@ const DataCollectionMethodFind = {
4551
4716
  },
4552
4717
  };
4553
4718
  },
4554
- getInputSchema: ({ collectionSpec, method, connectorSpec }) => {
4555
- var _a;
4719
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4556
4720
  const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
4557
4721
  const schema = {
4558
4722
  type: 'object',
4559
- properties: {
4723
+ properties: nonEmptyObjectProperties({
4560
4724
  cursor: { type: 'string' },
4561
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4562
- },
4725
+ credentials: credentialsSchema,
4726
+ }),
4563
4727
  };
4564
4728
  if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
4565
4729
  schema.properties = {
@@ -4590,19 +4754,16 @@ const DataCollectionMethodFind = {
4590
4754
  const DataCollectionMethodFindById = {
4591
4755
  name: 'Find by ID',
4592
4756
  description: 'Find a single data record in the collection by its id',
4593
- getInputSchema: ({ collectionHandler, parameters, connectorSpec }) => {
4594
- var _a;
4595
- return ({
4596
- type: 'object',
4597
- properties: {
4598
- id: {
4599
- type: 'string',
4600
- referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4601
- },
4602
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4757
+ getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
4758
+ type: 'object',
4759
+ properties: nonEmptyObjectProperties({
4760
+ id: {
4761
+ type: 'string',
4762
+ referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4603
4763
  },
4604
- });
4605
- },
4764
+ credentials: credentialsSchema,
4765
+ }),
4766
+ }),
4606
4767
  getOutputSchema: ({ collectionSpec }) => {
4607
4768
  var _a;
4608
4769
  return ({
@@ -4631,8 +4792,7 @@ const DataCollectionMethodList = {
4631
4792
  },
4632
4793
  };
4633
4794
  },
4634
- getInputSchema: ({ method, collectionSpec, connectorSpec }) => {
4635
- var _a;
4795
+ getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
4636
4796
  const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4637
4797
  let filterSchema;
4638
4798
  if (method === null || method === void 0 ? void 0 : method.filterFields) {
@@ -4646,7 +4806,7 @@ const DataCollectionMethodList = {
4646
4806
  type: 'string',
4647
4807
  description: 'Cursor returned in response to the previous "list" request',
4648
4808
  },
4649
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4809
+ credentials: credentialsSchema,
4650
4810
  }),
4651
4811
  };
4652
4812
  },
@@ -4685,15 +4845,14 @@ const DataCollectionMethodMatch = {
4685
4845
  },
4686
4846
  };
4687
4847
  },
4688
- getInputSchema: ({ collectionSpec, method, connectorSpec }) => {
4689
- var _a;
4848
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4690
4849
  const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
4691
4850
  return {
4692
4851
  type: 'object',
4693
- properties: {
4852
+ properties: nonEmptyObjectProperties({
4694
4853
  query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
4695
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4696
- },
4854
+ credentials: credentialsSchema,
4855
+ }),
4697
4856
  };
4698
4857
  },
4699
4858
  getOutputSchema: ({ collectionSpec }) => {
@@ -4711,17 +4870,14 @@ const DataCollectionMethodMatch = {
4711
4870
  const DataCollectionMethodSearch = {
4712
4871
  name: 'Search',
4713
4872
  description: 'Find data records in a collection by a string query',
4714
- getInputSchema: ({ connectorSpec }) => {
4715
- var _a;
4716
- return ({
4717
- type: 'object',
4718
- properties: {
4719
- query: { type: 'string' },
4720
- cursor: { type: 'string' },
4721
- credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
4722
- },
4723
- });
4724
- },
4873
+ getInputSchema: ({ credentialsSchema }) => ({
4874
+ type: 'object',
4875
+ properties: nonEmptyObjectProperties({
4876
+ query: { type: 'string' },
4877
+ cursor: { type: 'string' },
4878
+ credentials: credentialsSchema,
4879
+ }),
4880
+ }),
4725
4881
  getOutputSchema: ({ collectionSpec }) => {
4726
4882
  var _a;
4727
4883
  return ({
@@ -4758,8 +4914,8 @@ const DataCollectionMethodUpdate = {
4758
4914
  },
4759
4915
  };
4760
4916
  },
4761
- getInputSchema: ({ collectionSpec, collectionHandler, connectorSpec, method, parameters }) => {
4762
- var _a, _b;
4917
+ getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
4918
+ var _a;
4763
4919
  let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4764
4920
  if (method === null || method === void 0 ? void 0 : method.fields) {
4765
4921
  fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
@@ -4769,7 +4925,7 @@ const DataCollectionMethodUpdate = {
4769
4925
  }
4770
4926
  return {
4771
4927
  type: 'object',
4772
- properties: {
4928
+ properties: nonEmptyObjectProperties({
4773
4929
  id: {
4774
4930
  type: 'string',
4775
4931
  referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
@@ -4777,8 +4933,8 @@ const DataCollectionMethodUpdate = {
4777
4933
  fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
4778
4934
  type: 'object',
4779
4935
  },
4780
- credentials: (_b = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _b === void 0 ? void 0 : _b.credentialsSchema,
4781
- },
4936
+ credentials: credentialsSchema,
4937
+ }),
4782
4938
  };
4783
4939
  },
4784
4940
  getOutputSchema: ({}) => ({
@@ -9344,7 +9500,6 @@ const BaseIntegration = BaseMembraneInterface.extend({
9344
9500
  authType: z.enum(CONNECTOR_AUTH_TYPES).optional(),
9345
9501
  });
9346
9502
  const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
9347
- baseUri: z.string().optional(),
9348
9503
  logoUri: z.string().optional(),
9349
9504
  appUuid: z.string().optional(),
9350
9505
  oAuthCallbackUri: z.url().or(z.literal('')).optional(),
@@ -9385,6 +9540,7 @@ const PackageCalculatedProperties = z.object({
9385
9540
  key: z.string(),
9386
9541
  name: z.string(),
9387
9542
  isCustomized: z.boolean().optional(),
9543
+ isPublic: z.boolean().optional(),
9388
9544
  });
9389
9545
  const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
9390
9546
  const WritablePackageVersionData = z.object({
@@ -9830,6 +9986,7 @@ const FindActionRunLogsResponse = createPaginationResponseSchema(ActionRunLogRec
9830
9986
 
9831
9987
  const FindConnectionsQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery).extend({
9832
9988
  connectorId: z.string().optional(),
9989
+ connectorVersion: z.string().optional(),
9833
9990
  id: z.string().optional(),
9834
9991
  userId: z.string().optional(),
9835
9992
  name: z.string().optional(),
@@ -9863,7 +10020,7 @@ const ConnectionApiResponse = BaseConnection.extend({
9863
10020
  });
9864
10021
  const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
9865
10022
  credentials: z.unknown().optional(),
9866
- parameters: z.unknown().optional(),
10023
+ input: z.unknown().optional(),
9867
10024
  connectorParameters: z.unknown().optional(),
9868
10025
  });
9869
10026
  const ConnectionMessagePayload = z.discriminatedUnion('type', [
@@ -9879,8 +10036,15 @@ const ConnectionMessagePayload = z.discriminatedUnion('type', [
9879
10036
  type: z.literal('newConnectionFailure'),
9880
10037
  error: z.string(),
9881
10038
  errorData: ErrorDataSchema.optional(),
10039
+ connectionId: z.string().optional(),
9882
10040
  }),
9883
10041
  ]);
10042
+ const GenerateOptionsRequest = z.object({
10043
+ integrationId: z.string().optional(),
10044
+ connectorId: z.string().optional(),
10045
+ connectorParameters: z.any().optional(),
10046
+ connectorVersion: z.string().optional(),
10047
+ });
9884
10048
 
9885
10049
  const ListPublicConnectorsQuery = PaginationQuery.extend({
9886
10050
  search: z.string().optional(),
@@ -10073,13 +10237,16 @@ const IntegrationAuthOption = z.object({
10073
10237
  type: z.enum(CONNECTOR_AUTH_TYPES),
10074
10238
  title: z.string().optional(),
10075
10239
  description: z.string().optional(),
10076
- ui: IntegrationAuthUi.optional(),
10240
+ inputSchema: DataSchema.optional(),
10241
+ ui: IntegrationAuthUi.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
10077
10242
  });
10078
10243
  const IntegrationApiResponse = BaseIntegration.extend({
10079
10244
  connection: BaseConnection.optional(),
10080
10245
  spec: z.any().optional(),
10081
- authOptions: z.array(IntegrationAuthOption).optional(),
10082
- parametersSchema: DataSchema.optional(),
10246
+ authOptions: z
10247
+ .array(IntegrationAuthOption)
10248
+ .optional()
10249
+ .describe('[INTERNAL] Deprecated: Use POST /connectors/:id/generate-options instead'),
10083
10250
  });
10084
10251
 
10085
10252
  const PackageElementApi = z.object({
@@ -10419,6 +10586,107 @@ function hasCycles(nodes) {
10419
10586
  return hasCycles;
10420
10587
  }
10421
10588
 
10589
+ function addUndefinedWriteableProperties(value, schema) {
10590
+ if (!(schema instanceof z.ZodObject)) {
10591
+ return value;
10592
+ }
10593
+ const allProperties = Object.keys(schema.shape);
10594
+ for (const key of allProperties) {
10595
+ if (!(key in value)) {
10596
+ value[key] = undefined;
10597
+ }
10598
+ }
10599
+ return value;
10600
+ }
10601
+ function lenientParseWithSchema(data, schema) {
10602
+ if (data === undefined || data === null) {
10603
+ return data;
10604
+ }
10605
+ const def = schema._def;
10606
+ if (!def) {
10607
+ return data;
10608
+ }
10609
+ const typeName = def.typeName || def.type;
10610
+ if (typeName === 'ZodOptional' || typeName === 'optional') {
10611
+ if (data === undefined)
10612
+ return undefined;
10613
+ return lenientParseWithSchema(data, def.innerType);
10614
+ }
10615
+ if (typeName === 'ZodNullable' || typeName === 'nullable') {
10616
+ if (data === null)
10617
+ return null;
10618
+ return lenientParseWithSchema(data, def.innerType);
10619
+ }
10620
+ if (typeName === 'ZodObject' || typeName === 'object') {
10621
+ if (typeof data !== 'object' || Array.isArray(data)) {
10622
+ return data;
10623
+ }
10624
+ const shape = schema.shape;
10625
+ const result = {};
10626
+ if (shape) {
10627
+ for (const key in shape) {
10628
+ if (key in data) {
10629
+ result[key] = lenientParseWithSchema(data[key], shape[key]);
10630
+ }
10631
+ }
10632
+ }
10633
+ const catchall = def.catchall;
10634
+ if (catchall) {
10635
+ const catchallDef = catchall._def;
10636
+ if ((catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.typeName) === 'ZodNever' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'never') ;
10637
+ else if ((catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.typeName) === 'ZodAny' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'unknown' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'any') {
10638
+ for (const key in data) {
10639
+ if (!(key in result)) {
10640
+ result[key] = data[key];
10641
+ }
10642
+ }
10643
+ }
10644
+ else {
10645
+ for (const key in data) {
10646
+ if (shape && !(key in shape)) {
10647
+ result[key] = data[key];
10648
+ }
10649
+ }
10650
+ }
10651
+ }
10652
+ return result;
10653
+ }
10654
+ if (typeName === 'ZodArray' || typeName === 'array') {
10655
+ if (!Array.isArray(data)) {
10656
+ return data;
10657
+ }
10658
+ const elementSchema = def.element || def.type;
10659
+ if (!elementSchema) {
10660
+ return data;
10661
+ }
10662
+ return data.map((item) => lenientParseWithSchema(item, elementSchema));
10663
+ }
10664
+ if (typeName === 'ZodRecord' || typeName === 'record') {
10665
+ if (typeof data !== 'object' || data === null || Array.isArray(data)) {
10666
+ return data;
10667
+ }
10668
+ const valueSchema = def.valueType;
10669
+ if (!valueSchema) {
10670
+ return data;
10671
+ }
10672
+ const result = {};
10673
+ for (const key in data) {
10674
+ result[key] = lenientParseWithSchema(data[key], valueSchema);
10675
+ }
10676
+ return result;
10677
+ }
10678
+ return data;
10679
+ }
10680
+
10681
+ function setEditablePropertiesForWorkspaceElement(currentElement, newEditableFields, exportSchema) {
10682
+ const parsedNewFields = lenientParseWithSchema(newEditableFields, exportSchema);
10683
+ const normalizedFields = addUndefinedWriteableProperties(parsedNewFields, exportSchema);
10684
+ return {
10685
+ ...currentElement,
10686
+ ...normalizedFields,
10687
+ };
10688
+ }
10689
+
10422
10690
  const WorkspaceElementSpecs = {
10423
10691
  [WorkspaceElementType.Customer]: {
10424
10692
  type: WorkspaceElementType.Customer,
@@ -10445,6 +10713,7 @@ const WorkspaceElementSpecs = {
10445
10713
  apiPath: 'connectors',
10446
10714
  name: 'Connector',
10447
10715
  namePlural: 'Connectors',
10716
+ exportPropertiesSchema: ConnectorExportProperties,
10448
10717
  },
10449
10718
  [WorkspaceElementType.Connection]: {
10450
10719
  type: WorkspaceElementType.Connection,
@@ -10745,6 +11014,26 @@ async function streamToString(stream) {
10745
11014
  });
10746
11015
  });
10747
11016
  }
11017
+ function isBlob(value) {
11018
+ var _a;
11019
+ if (value === null || typeof value !== 'object') {
11020
+ return false;
11021
+ }
11022
+ if (typeof Blob !== 'undefined' && value instanceof Blob) {
11023
+ return true;
11024
+ }
11025
+ const obj = value;
11026
+ const hasRequiredProps = typeof obj.size === 'number' && typeof obj.type === 'string' && typeof obj.slice === 'function';
11027
+ if (!hasRequiredProps) {
11028
+ return false;
11029
+ }
11030
+ const hasBlobMethod = typeof obj.stream === 'function' || typeof obj.text === 'function' || typeof obj.arrayBuffer === 'function';
11031
+ if (hasBlobMethod) {
11032
+ return true;
11033
+ }
11034
+ const constructorName = (_a = obj.constructor) === null || _a === void 0 ? void 0 : _a.name;
11035
+ return constructorName === 'Blob' || constructorName === 'File';
11036
+ }
10748
11037
  function truncateData(data, depth = 0) {
10749
11038
  const maxArrayItems = 500;
10750
11039
  const maxObjectKeys = 500;
@@ -10768,6 +11057,9 @@ function truncateData(data, depth = 0) {
10768
11057
  else if (Buffer.isBuffer(data)) {
10769
11058
  return data.toString('utf-8').slice(0, maxStringLength);
10770
11059
  }
11060
+ else if (isBlob(data)) {
11061
+ return `<Blob: size=${data.size}, type=${data.type}>`;
11062
+ }
10771
11063
  else if (typeof data === 'object') {
10772
11064
  const keys = Object.keys(data);
10773
11065
  const result = {};
@@ -11001,6 +11293,7 @@ var UsageType;
11001
11293
  UsageType["EXTERNAL_EVENTS_PULL_DURATION"] = "external-events-pull-duration";
11002
11294
  UsageType["EXTERNAL_EVENT_PULL_NUMBER"] = "external-event-pull-number";
11003
11295
  UsageType["EXTERNAL_EVENT_PULL_LOG_SIZE"] = "external-event-pull-log-size";
11296
+ UsageType["EXTERNAL_EVENT_WEBHOOK_REFRESH_DURATION"] = "external-event-webhook-refresh-duration";
11004
11297
  UsageType["APP_EVENTS_NUMBER"] = "app-events-number";
11005
11298
  UsageType["APP_EVENTS_SIZE"] = "app-events-size";
11006
11299
  UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
@@ -11115,6 +11408,144 @@ function getFlowRunVariableSchema() {
11115
11408
  };
11116
11409
  }
11117
11410
 
11411
+ var AlertStatus;
11412
+ (function (AlertStatus) {
11413
+ AlertStatus["ONGOING"] = "ongoing";
11414
+ AlertStatus["RESOLVED"] = "resolved";
11415
+ })(AlertStatus || (AlertStatus = {}));
11416
+ var AlertSeverity;
11417
+ (function (AlertSeverity) {
11418
+ AlertSeverity["CRITICAL"] = "critical";
11419
+ AlertSeverity["WARNING"] = "warning";
11420
+ })(AlertSeverity || (AlertSeverity = {}));
11421
+ var AlertType;
11422
+ (function (AlertType) {
11423
+ AlertType["fileUploadsMbPerHour"] = "fileUploadsMbPerHour";
11424
+ AlertType["apiRequestsPerSecond"] = "apiRequestsPerSecond";
11425
+ AlertType["apiRequestsPerHour"] = "apiRequestsPerHour";
11426
+ AlertType["webhookRequestsPerSecond"] = "webhookRequestsPerSecond";
11427
+ AlertType["webhookRequestsPerHour"] = "webhookRequestsPerHour";
11428
+ AlertType["workspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
11429
+ AlertType["workspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
11430
+ AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
11431
+ AlertType["totalUsagePerDay"] = "totalUsagePerDay";
11432
+ AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
11433
+ AlertType["testAlert"] = "testAlert";
11434
+ })(AlertType || (AlertType = {}));
11435
+ var AlertCategory;
11436
+ (function (AlertCategory) {
11437
+ AlertCategory["RATE_LIMIT"] = "rateLimit";
11438
+ AlertCategory["USAGE"] = "usage";
11439
+ AlertCategory["TEST"] = "test";
11440
+ })(AlertCategory || (AlertCategory = {}));
11441
+ const ALERT_TYPE_CATEGORIES = {
11442
+ [AlertType.fileUploadsMbPerHour]: AlertCategory.RATE_LIMIT,
11443
+ [AlertType.apiRequestsPerSecond]: AlertCategory.RATE_LIMIT,
11444
+ [AlertType.apiRequestsPerHour]: AlertCategory.RATE_LIMIT,
11445
+ [AlertType.webhookRequestsPerSecond]: AlertCategory.RATE_LIMIT,
11446
+ [AlertType.webhookRequestsPerHour]: AlertCategory.RATE_LIMIT,
11447
+ [AlertType.workspaceElementCreationsPerSecond]: AlertCategory.RATE_LIMIT,
11448
+ [AlertType.workspaceElementCreationsPerHour]: AlertCategory.RATE_LIMIT,
11449
+ [AlertType.externalEventsPerCustomerPerDay]: AlertCategory.RATE_LIMIT,
11450
+ [AlertType.totalUsagePerDay]: AlertCategory.USAGE,
11451
+ [AlertType.totalUsagePer30Days]: AlertCategory.USAGE,
11452
+ [AlertType.testAlert]: AlertCategory.TEST,
11453
+ };
11454
+ const AlertSchema = z.object({
11455
+ id: z.string(),
11456
+ description: z.string(),
11457
+ status: z.enum(Object.values(AlertStatus)),
11458
+ type: z.enum(Object.values(AlertType)),
11459
+ workspaceId: z.string(),
11460
+ createdAt: z.date(),
11461
+ updatedAt: z.date(),
11462
+ lastSeenAt: z.date(),
11463
+ resolvedAt: z.date().optional(),
11464
+ customerId: z.string().optional(),
11465
+ severity: z.enum(Object.values(AlertSeverity)),
11466
+ });
11467
+ const ALERT_DELIVERY_METHODS = ['internal', 'webhook', 'email'];
11468
+ const AlertTypeDeliverySettingsSchema = z.object({
11469
+ internal: z.literal(true),
11470
+ webhook: z
11471
+ .object({
11472
+ enabled: z.boolean(),
11473
+ })
11474
+ .optional(),
11475
+ email: z
11476
+ .object({
11477
+ enabled: z.boolean(),
11478
+ })
11479
+ .optional(),
11480
+ });
11481
+ const DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = {
11482
+ internal: true,
11483
+ webhook: {
11484
+ enabled: false,
11485
+ },
11486
+ email: {
11487
+ enabled: false,
11488
+ },
11489
+ };
11490
+ const AlertDeliverySettingsSchema = z.object({
11491
+ alertTypes: z.record(z.enum(Object.values(AlertType)), AlertTypeDeliverySettingsSchema.optional()).optional(),
11492
+ });
11493
+ const DEFAULT_ALERT_DELIVERY_SETTINGS = {
11494
+ alertTypes: undefined,
11495
+ };
11496
+
11497
+ function isValidAlertType(value) {
11498
+ return Object.values(AlertType).includes(value);
11499
+ }
11500
+ function getAlertTypeDisplayName(alertType) {
11501
+ const names = {
11502
+ [AlertType.fileUploadsMbPerHour]: 'File Uploads MB Per Hour',
11503
+ [AlertType.apiRequestsPerSecond]: 'API Requests Per Second',
11504
+ [AlertType.apiRequestsPerHour]: 'API Requests Per Hour',
11505
+ [AlertType.webhookRequestsPerSecond]: 'Webhook Requests Per Second',
11506
+ [AlertType.webhookRequestsPerHour]: 'Webhook Requests Per Hour',
11507
+ [AlertType.workspaceElementCreationsPerSecond]: 'Workspace Element Creations Per Second',
11508
+ [AlertType.workspaceElementCreationsPerHour]: 'Workspace Element Creations Per Hour',
11509
+ [AlertType.externalEventsPerCustomerPerDay]: 'External Events Per Customer Per Day',
11510
+ [AlertType.totalUsagePerDay]: 'Total Usage Per Day',
11511
+ [AlertType.totalUsagePer30Days]: 'Total Usage Per 30 Days',
11512
+ [AlertType.testAlert]: 'Test Alert',
11513
+ };
11514
+ return names[alertType] || alertType;
11515
+ }
11516
+ function getAlertDeliveryMethodLabel(method) {
11517
+ const labels = {
11518
+ internal: 'Internal Delivery',
11519
+ webhook: 'Webhook Delivery',
11520
+ email: 'Email Delivery',
11521
+ };
11522
+ return labels[method] || method;
11523
+ }
11524
+ function isDeliveryMethodEnabled(settings, method) {
11525
+ var _a;
11526
+ if (method === 'internal') {
11527
+ return true;
11528
+ }
11529
+ if (((_a = settings[method]) !== null && _a !== void 0 ? _a : DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS[method]).enabled) {
11530
+ return true;
11531
+ }
11532
+ return false;
11533
+ }
11534
+ function getAlertCategoryDisplayName(category) {
11535
+ const names = {
11536
+ [AlertCategory.RATE_LIMIT]: 'Rate Limit Alerts',
11537
+ [AlertCategory.USAGE]: 'Usage Alerts',
11538
+ [AlertCategory.TEST]: 'Test',
11539
+ };
11540
+ return names[category] || category;
11541
+ }
11542
+ function getAlertTypesByCategory(category) {
11543
+ return Object.entries(ALERT_TYPE_CATEGORIES)
11544
+ .filter(([, alertCategory]) => alertCategory === category)
11545
+ .map(([alertType]) => alertType)
11546
+ .filter(isValidAlertType);
11547
+ }
11548
+
11118
11549
  var WorkspaceType;
11119
11550
  (function (WorkspaceType) {
11120
11551
  WorkspaceType["PRODUCTION"] = "production";
@@ -11169,6 +11600,7 @@ const WorkspaceLimitsSchema = z$1.object({
11169
11600
  totalNumberOfConnections: WorkspaceLimit.optional(),
11170
11601
  totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
11171
11602
  instantTasksQueueSize: WorkspaceLimit.optional(),
11603
+ QueuedTasksQueueSize: WorkspaceLimit.optional(),
11172
11604
  parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
11173
11605
  parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
11174
11606
  apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
@@ -11185,6 +11617,7 @@ const EngineWorkspaceSettingsSchema = z$1.object({
11185
11617
  enableWebhookLogs: z$1.boolean().optional(),
11186
11618
  enableActionRunLogs: z$1.boolean().optional(),
11187
11619
  disableSecretKeyAuth: z$1.boolean().optional(),
11620
+ useMembraneUniverse: z$1.boolean().optional(),
11188
11621
  });
11189
11622
  const WorkspacePublicKey = z$1.object({
11190
11623
  name: z$1.string(),
@@ -11211,6 +11644,7 @@ const AppSchema = z$1.object({
11211
11644
  featureFlags: z$1.array(z$1.string()).optional(),
11212
11645
  limits: WorkspaceLimitsSchema.optional(),
11213
11646
  settings: EngineWorkspaceSettingsSchema.optional(),
11647
+ alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
11214
11648
  type: z$1.nativeEnum(WorkspaceType).optional(),
11215
11649
  jwksUri: z$1.string().nullable().optional(),
11216
11650
  isTrial: z$1.boolean().optional(),
@@ -11388,13 +11822,14 @@ function buildIntegrationsMap(integrations) {
11388
11822
  return map;
11389
11823
  }
11390
11824
 
11825
+ const IneligibilityReasonSchema = z.enum(['disposable', 'blockedDomain', 'notCompanyEmail']);
11391
11826
  const PlatformUserSchema = z.object({
11392
11827
  id: z.string(),
11393
11828
  email: z.string(),
11394
11829
  name: z.string(),
11395
11830
  trialRequested: z.boolean(),
11396
- introVideoStatus: z.string().optional(),
11397
11831
  isEligible: z.boolean().optional(),
11832
+ ineligibilityReason: IneligibilityReasonSchema.optional(),
11398
11833
  emailVerified: z.boolean().optional(),
11399
11834
  });
11400
11835
  const FullPlatformUser = z.object({
@@ -11407,8 +11842,8 @@ const FullPlatformUser = z.object({
11407
11842
  isAdmin: z.boolean().optional(),
11408
11843
  trialRequested: z.boolean(),
11409
11844
  pat: z.string().optional(),
11410
- introVideoStatus: z.string().optional(),
11411
11845
  isEligible: z.boolean().optional(),
11846
+ ineligibilityReason: IneligibilityReasonSchema.optional(),
11412
11847
  emailVerified: z.boolean().optional(),
11413
11848
  });
11414
11849
 
@@ -11419,6 +11854,12 @@ var OrgLimitsType;
11419
11854
  OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
11420
11855
  OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
11421
11856
  })(OrgLimitsType || (OrgLimitsType = {}));
11857
+ var OrgPlan;
11858
+ (function (OrgPlan) {
11859
+ OrgPlan["Core"] = "core";
11860
+ OrgPlan["Pro"] = "pro";
11861
+ OrgPlan["Ultimate"] = "ultimate";
11862
+ })(OrgPlan || (OrgPlan = {}));
11422
11863
  var OrgUserRole;
11423
11864
  (function (OrgUserRole) {
11424
11865
  OrgUserRole["Admin"] = "admin";
@@ -11444,10 +11885,12 @@ const MembraneAgentKey = z
11444
11885
  expiresAt: z.string().optional(),
11445
11886
  })
11446
11887
  .optional();
11888
+ const OrgFeatureFlagsSchema = z.record(z.string(), z.boolean());
11447
11889
  const OrgSchema = z.object({
11448
11890
  id: z.string(),
11449
11891
  key: z.string(),
11450
11892
  name: z.string(),
11893
+ plan: z.enum(OrgPlan).optional(),
11451
11894
  createdAt: z.coerce.date(),
11452
11895
  updatedAt: z.coerce.date(),
11453
11896
  trialEndDate: z.string().optional(),
@@ -11466,6 +11909,14 @@ const OrgSchema = z.object({
11466
11909
  autoChargeThreshold: z.number().optional(),
11467
11910
  autoChargePurchaseAmount: z.number().optional(),
11468
11911
  autoChargeMonthlyLimit: z.number().optional(),
11912
+ freeInfraCredits: z.number().optional(),
11913
+ paidInfraCredits: z.number().optional(),
11914
+ freeInfraMonthlyCredits: z.number().nullable().optional(),
11915
+ infraAutoChargeEnabled: z.boolean().optional(),
11916
+ infraAutoChargeThreshold: z.number().optional(),
11917
+ infraAutoChargePurchaseAmount: z.number().optional(),
11918
+ infraAutoChargeMonthlyLimit: z.number().optional(),
11919
+ effectiveFeatureFlags: OrgFeatureFlagsSchema.optional(),
11469
11920
  });
11470
11921
  const AccountResponse = z.object({
11471
11922
  user: FullPlatformUser.optional(),
@@ -11493,27 +11944,10 @@ var WebhookTypeEnum;
11493
11944
  WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
11494
11945
  WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
11495
11946
  WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
11947
+ WebhookTypeEnum["AGENT_SESSION_FINISHED"] = "agent-session-finished";
11948
+ WebhookTypeEnum["SEND_ALERT_EMAIL"] = "send-alert-email";
11496
11949
  })(WebhookTypeEnum || (WebhookTypeEnum = {}));
11497
11950
 
11498
- var AlertStatus;
11499
- (function (AlertStatus) {
11500
- AlertStatus["ONGOING"] = "ongoing";
11501
- AlertStatus["RESOLVED"] = "resolved";
11502
- })(AlertStatus || (AlertStatus = {}));
11503
- var AlertSeverity;
11504
- (function (AlertSeverity) {
11505
- AlertSeverity["CRITICAL"] = "critical";
11506
- AlertSeverity["WARNING"] = "warning";
11507
- })(AlertSeverity || (AlertSeverity = {}));
11508
- var AlertType;
11509
- (function (AlertType) {
11510
- AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
11511
- AlertType["totalUsagePerDay"] = "totalUsagePerDay";
11512
- AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
11513
- AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
11514
- AlertType["testAlert"] = "testAlert";
11515
- })(AlertType || (AlertType = {}));
11516
-
11517
11951
  const IntegrationSpecificElementSelector = z$1.object({
11518
11952
  id: z$1.string().optional(),
11519
11953
  key: z$1.string().optional(),
@@ -12500,17 +12934,18 @@ class ConnectionAccessor {
12500
12934
  dataCollection(key, parameters) {
12501
12935
  return new ConnectionDataCollectionAccessor(this.client, this, key, parameters);
12502
12936
  }
12503
- async reconnect({ parameters, authOptionKey, connectorParameters, } = {}) {
12937
+ async reconnect({ parameters, authOptionKey, connectorParameters, onPopupClosed, } = {}) {
12504
12938
  const connection = await this.get();
12505
12939
  const connectorSpec = await this.client.get(`/integrations/${connection.integrationId}/connector-spec`);
12506
12940
  return createOrUpdateConnection({
12507
12941
  connectionId: connection.id,
12508
12942
  connectorSpec,
12509
- parameters,
12943
+ input: parameters,
12510
12944
  authOptionKey,
12511
12945
  connectorParameters,
12512
12946
  apiUri: this.client.apiUri,
12513
12947
  token: await this.client.getToken(),
12948
+ onPopupClosed,
12514
12949
  });
12515
12950
  }
12516
12951
  async openReconnectUI({} = {}) {
@@ -12599,21 +13034,31 @@ class ConnectionProxy {
12599
13034
  }
12600
13035
  }
12601
13036
  async function createOrUpdateConnection(options) {
12602
- const { connectionId, integrationId, name, parameters, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, } = options !== null && options !== void 0 ? options : {};
13037
+ const { connectionId, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
12603
13038
  const connectionType = getConnectionType({
12604
13039
  connectorSpec,
12605
13040
  authOptionKey,
12606
13041
  redirectUri,
12607
13042
  });
12608
- const popupPath = connectionId
12609
- ? `connection-popup?connectionId=${connectionId}`
12610
- : `connection-popup?integrationId=${integrationId}`;
13043
+ let popupPath;
13044
+ if (connectionId) {
13045
+ popupPath = `connection-popup?connectionId=${connectionId}`;
13046
+ }
13047
+ else if (connectorId) {
13048
+ const versionParam = connectorVersion ? `&connectorVersion=${connectorVersion}` : '';
13049
+ popupPath = `connection-popup?connectorId=${connectorId}${versionParam}`;
13050
+ }
13051
+ else {
13052
+ popupPath = `connection-popup?integrationId=${integrationId}`;
13053
+ }
12611
13054
  return new Promise((resolve, reject) => {
12612
13055
  const requestId = simpleUniqueId() + simpleUniqueId();
12613
13056
  const payload = {
12614
13057
  token,
12615
- connectionParameters: parameters,
13058
+ input,
12616
13059
  connectorParameters,
13060
+ connectorId,
13061
+ connectorVersion,
12617
13062
  name,
12618
13063
  authOptionKey,
12619
13064
  allowMultipleConnections,
@@ -12659,10 +13104,10 @@ async function createOrUpdateConnection(options) {
12659
13104
  iframeElement.id = targetElementId;
12660
13105
  iframeElement.name = targetElementId;
12661
13106
  iframeElement.style.position = 'absolute';
12662
- iframeElement.style.top = '-100';
12663
- iframeElement.style.left = '-100';
12664
- iframeElement.style.width = '1';
12665
- iframeElement.style.height = '1';
13107
+ iframeElement.style.top = '-100px';
13108
+ iframeElement.style.left = '-100px';
13109
+ iframeElement.style.width = '1px';
13110
+ iframeElement.style.height = '1px';
12666
13111
  iframeElement.style.border = 'none';
12667
13112
  iframeElement.style.backgroundColor = 'transparent';
12668
13113
  document.body.appendChild(iframeElement);
@@ -12696,6 +13141,7 @@ async function createOrUpdateConnection(options) {
12696
13141
  cancelCheckInterval = setInterval(() => {
12697
13142
  if (popup === null || popup === void 0 ? void 0 : popup.closed) {
12698
13143
  cleanup();
13144
+ onPopupClosed === null || onPopupClosed === void 0 ? void 0 : onPopupClosed();
12699
13145
  resolve(null);
12700
13146
  }
12701
13147
  }, 1000);
@@ -12727,6 +13173,9 @@ const createConnectionEventHandler = (requestId, onResolve, onReject, onFinally)
12727
13173
  }
12728
13174
  if (message.type == 'newConnectionFailure') {
12729
13175
  const error = new MembraneError((_a = message.errorData) !== null && _a !== void 0 ? _a : message.error);
13176
+ if (message.connectionId) {
13177
+ error.data.data = { ...error.data.data, connectionId: message.connectionId };
13178
+ }
12730
13179
  onReject(error);
12731
13180
  }
12732
13181
  onFinally();
@@ -12906,23 +13355,24 @@ class IntegrationAccessor extends ElementAccessor {
12906
13355
  });
12907
13356
  });
12908
13357
  }
12909
- async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
13358
+ async connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
12910
13359
  const integration = await this.get();
12911
13360
  const connectorSpec = await this.getConnectorSpec();
12912
13361
  return createOrUpdateConnection({
12913
13362
  integrationId: integration.id,
12914
13363
  connectorSpec,
12915
13364
  name,
12916
- parameters,
13365
+ input: input !== null && input !== void 0 ? input : parameters,
12917
13366
  connectorParameters,
12918
13367
  authOptionKey,
12919
13368
  allowMultipleConnections,
12920
13369
  apiUri: this.client.apiUri,
12921
13370
  token: await this.client.getToken(),
12922
13371
  redirectUri: sameWindow ? redirectUri : undefined,
13372
+ onPopupClosed,
12923
13373
  });
12924
13374
  }
12925
- async createConnection({ parameters, name }) {
13375
+ async createConnection({ parameters, name, }) {
12926
13376
  return this.connect({ parameters, name });
12927
13377
  }
12928
13378
  async getOperations() {
@@ -13242,8 +13692,14 @@ var AgentSessionState;
13242
13692
  AgentSessionState["BUSY"] = "busy";
13243
13693
  AgentSessionState["IDLE"] = "idle";
13244
13694
  })(AgentSessionState || (AgentSessionState = {}));
13695
+ var AgentName;
13696
+ (function (AgentName) {
13697
+ AgentName["MEMBRANE"] = "membrane";
13698
+ AgentName["SELF_INTEGRATING"] = "self-integrating";
13699
+ })(AgentName || (AgentName = {}));
13245
13700
  const AgentSession = z.object({
13246
13701
  id: z.string(),
13702
+ workspaceId: z.string(),
13247
13703
  userId: z.string().optional(),
13248
13704
  workspaceElementType: z.enum(WorkspaceElementType),
13249
13705
  workspaceElementId: z.string(),
@@ -13258,6 +13714,8 @@ const AgentSession = z.object({
13258
13714
  state: z.enum(AgentSessionState).default(AgentSessionState.BUSY),
13259
13715
  usage: z.number().optional(),
13260
13716
  hasWorker: z.boolean(),
13717
+ isExternal: z.boolean().optional(),
13718
+ agentName: z.enum(AgentName).optional(),
13261
13719
  createdAt: z.iso.datetime(),
13262
13720
  updatedAt: z.iso.datetime(),
13263
13721
  });
@@ -13267,6 +13725,7 @@ const CreateAgentSession = z.object({
13267
13725
  prompt: z.string().min(1),
13268
13726
  testCustomerId: z.string().optional(),
13269
13727
  isExternal: z.boolean().optional(),
13728
+ modelId: z.string().optional(),
13270
13729
  });
13271
13730
  const AgentSessionInputSchema = z.object({
13272
13731
  input: z.string().min(1),
@@ -13278,6 +13737,8 @@ const PatchAgentSessionSchema = z.object({
13278
13737
  title: z.string().optional(),
13279
13738
  summary: z.string().optional(),
13280
13739
  cost: z.number().optional(),
13740
+ error: ErrorDataSchema.optional(),
13741
+ opencodeSessionUuid: z.string().optional(),
13281
13742
  status: z.enum(AgentSessionStatus).optional(),
13282
13743
  });
13283
13744
 
@@ -13597,6 +14058,7 @@ const membraneConfigSchema = z.object({
13597
14058
  apiUri: z.string().optional(),
13598
14059
  consoleUri: z.string().optional(),
13599
14060
  testCustomerId: z.string().optional(),
14061
+ accessToken: z.string().optional(),
13600
14062
  });
13601
14063
  class MembraneConfigLoader {
13602
14064
  constructor(cwd = process.cwd()) {
@@ -13704,6 +14166,9 @@ class MembraneConfigLoader {
13704
14166
  throw new Error(`Failed to parse ${CONFIG_FILE_NAME}: ${yamlError.message}`);
13705
14167
  }
13706
14168
  const config = {};
14169
+ if (parsedConfig === null || parsedConfig === void 0 ? void 0 : parsedConfig.accessToken) {
14170
+ config.accessToken = String(parsedConfig.accessToken);
14171
+ }
13707
14172
  if (parsedConfig === null || parsedConfig === void 0 ? void 0 : parsedConfig.workspaceKey) {
13708
14173
  config.workspaceKey = String(parsedConfig.workspaceKey);
13709
14174
  }
@@ -13723,6 +14188,9 @@ class MembraneConfigLoader {
13723
14188
  }
13724
14189
  loadFromEnv() {
13725
14190
  const config = {};
14191
+ if (process.env.MEMBRANE_ACCESS_TOKEN) {
14192
+ config.accessToken = process.env.MEMBRANE_ACCESS_TOKEN;
14193
+ }
13726
14194
  if (process.env.MEMBRANE_WORKSPACE_KEY) {
13727
14195
  config.workspaceKey = process.env.MEMBRANE_WORKSPACE_KEY;
13728
14196
  }
@@ -13763,5 +14231,5 @@ function hasMembraneCredentials(cwd) {
13763
14231
  return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
13764
14232
  }
13765
14233
 
13766
- export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, 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, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CommonFindElementsQuery, CommonFindInstancesQuery, 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, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, 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, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, 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, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FindScreensQuery, 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, FunctionDefinition, FunctionType, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, PatchAgentSessionSchema, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspacePublicKey, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, 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, getElementSelector, 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 };
14234
+ export { ACTIONS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentName, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, 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, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CommonFindElementsQuery, CommonFindInstancesQuery, 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, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, 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, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, 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, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FindScreensQuery, 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, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneElementLayer, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, OrgFeatureFlagsSchema, OrgLimits, OrgLimitsType, OrgPlan, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, PatchAgentSessionSchema, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspacePublicKey, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getEffectiveConnectorOption, getElementSelector, 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, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, lenientParseWithSchema, 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, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
13767
14235
  //# sourceMappingURL=index.node.mjs.map