@membranehq/sdk 0.2.0 → 0.3.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 (43) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -8
  3. package/dist/bundle.d.ts +730 -228
  4. package/dist/bundle.js +183 -97
  5. package/dist/bundle.js.map +1 -1
  6. package/dist/dts/actions/types.d.ts +0 -1
  7. package/dist/dts/api-client.d.ts +5 -5
  8. package/dist/dts/connections/accessors.d.ts +3 -11
  9. package/dist/dts/connections/create-or-update-connection.d.ts +1 -0
  10. package/dist/dts/connections/types.d.ts +1 -3
  11. package/dist/dts/connectors/auth.d.ts +6 -3
  12. package/dist/dts/connectors/data-locations/base.d.ts +3 -3
  13. package/dist/dts/connectors/data-locations/collections/events/implementation-types/connector-event.d.ts +2 -2
  14. package/dist/dts/connectors/data-locations/collections/events/implementation-types/custom-pull.d.ts +2 -2
  15. package/dist/dts/connectors/data-locations/collections/events/implementation-types/pull-latest-records.d.ts +2 -2
  16. package/dist/dts/connectors/data-locations/collections/events/implementation-types/webhook.d.ts +2 -2
  17. package/dist/dts/connectors/data-locations/collections/index.d.ts +24 -24
  18. package/dist/dts/connectors/data-locations/collections/methods/base.d.ts +3 -3
  19. package/dist/dts/connectors/data-locations/index.d.ts +1 -2
  20. package/dist/dts/connectors/data-locations/methods.d.ts +2 -2
  21. package/dist/dts/connectors/data-locations/schemas.d.ts +1329 -0
  22. package/dist/dts/connectors/data-locations/utils.d.ts +2 -2
  23. package/dist/dts/connectors/types.d.ts +1 -12
  24. package/dist/dts/data-builder/formulas/dataSchemaRef.d.ts +2 -2
  25. package/dist/dts/data-schema/index.d.ts +1 -0
  26. package/dist/dts/data-schema/schemas.d.ts +4 -0
  27. package/dist/dts/errors/index.d.ts +3 -10
  28. package/dist/dts/flow-runs/flow-node-runs.d.ts +347 -15
  29. package/dist/dts/flows/schemas.d.ts +14 -14
  30. package/dist/dts/flows/types.d.ts +0 -1
  31. package/dist/dts/integrations/accessors.d.ts +10 -11
  32. package/dist/dts/integrations/api.d.ts +1 -0
  33. package/dist/index.d.ts +1714 -359
  34. package/dist/index.js +199 -91
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.module.d.mts +1714 -359
  37. package/dist/index.module.mjs +174 -89
  38. package/dist/index.module.mjs.map +1 -1
  39. package/package.json +3 -3
  40. package/dist/dts/connectors/data-locations/directories/index.d.ts +0 -17
  41. package/dist/dts/connectors/data-locations/directories/methods/base.d.ts +0 -18
  42. package/dist/dts/connectors/data-locations/directories/methods/list.d.ts +0 -2
  43. package/dist/dts/connectors/data-locations/types.d.ts +0 -258
@@ -9,6 +9,15 @@ import deepEqual from 'fast-deep-equal';
9
9
  import urljoin from 'url-join';
10
10
  import axiosOriginal from 'axios';
11
11
 
12
+ var ErrorDoc;
13
+ (function (ErrorDoc) {
14
+ ErrorDoc["AuthenticationTokenErrors"] = "authentication-token-errors";
15
+ ErrorDoc["DataSourceNoCollectionSelected"] = "data-source-no-collection-selected";
16
+ ErrorDoc["FlowInstanceSetupFailed"] = "flow-instance-setup-failed";
17
+ ErrorDoc["FlowInstanceSetupTimeout"] = "flow-instance-setup-timeout";
18
+ ErrorDoc["WebhookCannotFindUser"] = "webhook-cannot-find-user";
19
+ })(ErrorDoc || (ErrorDoc = {}));
20
+
12
21
  var LogRecordType;
13
22
  (function (LogRecordType) {
14
23
  LogRecordType["MSG"] = "message";
@@ -84,15 +93,6 @@ function truncateData(data, depth = 0) {
84
93
  }
85
94
  }
86
95
 
87
- var ErrorDoc;
88
- (function (ErrorDoc) {
89
- ErrorDoc["AuthenticationTokenErrors"] = "authentication-token-errors";
90
- ErrorDoc["DataSourceNoCollectionSelected"] = "data-source-no-collection-selected";
91
- ErrorDoc["FlowInstanceSetupFailed"] = "flow-instance-setup-failed";
92
- ErrorDoc["FlowInstanceSetupTimeout"] = "flow-instance-setup-timeout";
93
- ErrorDoc["WebhookCannotFindUser"] = "webhook-cannot-find-user";
94
- })(ErrorDoc || (ErrorDoc = {}));
95
-
96
96
  var ErrorType;
97
97
  (function (ErrorType) {
98
98
  ErrorType["BAD_REQUEST"] = "bad_request";
@@ -126,6 +126,16 @@ var ConcurrencyErrorKey;
126
126
  (function (ConcurrencyErrorKey) {
127
127
  ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
128
128
  })(ConcurrencyErrorKey || (ConcurrencyErrorKey = {}));
129
+ const ErrorDataSchema = z.object({
130
+ type: z.nativeEnum(ErrorType).optional(),
131
+ key: z.string().optional(),
132
+ message: z.string(),
133
+ data: z.any().optional(),
134
+ doc: z.nativeEnum(ErrorDoc).optional(),
135
+ stack: z.any().optional(),
136
+ causedByError: z.lazy(() => ErrorDataSchema).optional(),
137
+ logs: z.array(z.any()).optional(),
138
+ });
129
139
  function isIntegrationAppError(error) {
130
140
  return error && error.isIntegrationAppError;
131
141
  }
@@ -827,7 +837,7 @@ async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
827
837
  });
828
838
  }
829
839
  else {
830
- throw Error('Integration.app container element not found. Was it manually removed?');
840
+ throw Error('Membrane container element not found. Was it manually removed?');
831
841
  }
832
842
  }
833
843
  if (document.readyState === 'complete' || document.readyState === 'interactive') {
@@ -2554,6 +2564,42 @@ function isObjectAllowedAdditionalProperties(field) {
2554
2564
  return ((_b = field.schema) === null || _b === void 0 ? void 0 : _b.additionalProperties) === true;
2555
2565
  }
2556
2566
 
2567
+ const DataSchemaSchema = z.lazy(() => z.object({
2568
+ title: z.string().optional(),
2569
+ description: z.string().optional(),
2570
+ type: z.union([z.string(), z.array(z.string())]).optional(),
2571
+ format: z.string().optional(),
2572
+ properties: z.record(DataSchemaSchema).optional(),
2573
+ items: DataSchemaSchema.optional(),
2574
+ additionalProperties: z.union([z.boolean(), DataSchemaSchema]).optional(),
2575
+ enum: z.array(z.string()).optional(),
2576
+ referenceRecords: z.array(z.any()).optional(),
2577
+ referenceCollection: z
2578
+ .object({
2579
+ key: z.any(),
2580
+ parameters: z.record(z.any()).optional(),
2581
+ })
2582
+ .optional(),
2583
+ referenceUdm: z.string().optional(),
2584
+ default: z.any().optional(),
2585
+ allowCustom: z.boolean().optional(),
2586
+ $ref: z.string().optional(),
2587
+ required: z.array(z.string()).optional(),
2588
+ minLength: z.number().optional(),
2589
+ maxLength: z.number().optional(),
2590
+ minimum: z.number().optional(),
2591
+ maximum: z.number().optional(),
2592
+ maxItems: z.number().optional(),
2593
+ readOnly: z.boolean().optional(),
2594
+ writeOnly: z.boolean().optional(),
2595
+ examples: z.array(z.any()).optional(),
2596
+ anyOf: z.array(DataSchemaSchema).optional(),
2597
+ isImplied: z.boolean().optional(),
2598
+ isSensitive: z.boolean().optional(),
2599
+ referenceCollectionPath: z.string().optional(),
2600
+ referenceCollectionUri: z.string().optional(),
2601
+ }));
2602
+
2557
2603
  var ConnectorMethodImplementationType;
2558
2604
  (function (ConnectorMethodImplementationType) {
2559
2605
  ConnectorMethodImplementationType["mapping"] = "mapping";
@@ -2573,6 +2619,7 @@ const CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = {
2573
2619
 
2574
2620
  const CONNECTOR_AUTH_TYPES = [
2575
2621
  'integration-app-token',
2622
+ 'membrane-token',
2576
2623
  'oauth2',
2577
2624
  'oauth1',
2578
2625
  'client-credentials',
@@ -6806,62 +6853,73 @@ const DataLocationTypeCollection = {
6806
6853
  };
6807
6854
  const ConnectorDataCollectionMethodKeys = Object.keys(DataLocationTypeCollection.methods);
6808
6855
 
6809
- const DataDirectoryMethodList = {
6810
- name: 'List',
6811
- description: 'List collections and directories inside this directory',
6812
- getInputSchema: ({ directory }) => ({
6813
- type: 'object',
6814
- properties: {
6815
- parameters: directory.parametersSchema,
6816
- cursor: { type: 'string' },
6817
- },
6818
- }),
6819
- getOutputSchema: () => ({
6820
- type: 'object',
6821
- properties: {
6822
- locations: {
6823
- type: 'array',
6824
- items: {
6825
- type: 'object',
6826
- properties: {
6827
- name: { type: 'string' },
6828
- key: { type: 'string' },
6829
- path: { type: 'string' },
6830
- type: {
6831
- type: 'string',
6832
- enum: Object.keys(ConnectorDataLocationTypes),
6833
- },
6834
- },
6835
- },
6836
- },
6837
- },
6838
- }),
6839
- supportedImplementationTypes: [ConnectorMethodImplementationType.mapping, ...DataLocationMethodImplementationTypes],
6840
- };
6841
-
6842
- const DataDirectoryCustomSpecMethod = {
6843
- supportedImplementationTypes: [ConnectorMethodImplementationType.javascript],
6844
- };
6845
- const DataLocationTypeDirectory = {
6846
- spec: DataDirectoryCustomSpecMethod,
6847
- methods: {
6848
- list: DataDirectoryMethodList,
6849
- },
6850
- };
6851
- const ConnectorDataDirectoryMethodKeys = Object.keys(DataLocationTypeDirectory.methods);
6852
-
6853
- var DataLocationType;
6854
- (function (DataLocationType) {
6855
- DataLocationType["directory"] = "directory";
6856
- DataLocationType["collection"] = "collection";
6857
- })(DataLocationType || (DataLocationType = {}));
6858
- var DataDirectoryOperation;
6859
- (function (DataDirectoryOperation) {
6860
- DataDirectoryOperation["list"] = "list";
6861
- })(DataDirectoryOperation || (DataDirectoryOperation = {}));
6856
+ const ApiRequestSpecSchema = z.object({
6857
+ path: z.unknown(),
6858
+ method: z.unknown(),
6859
+ });
6860
+ const DataCollectionMethodSpecSchema = z.object({
6861
+ apiRequests: z.array(ApiRequestSpecSchema).optional(),
6862
+ });
6863
+ const DataCollectionListSpecSchema = DataCollectionMethodSpecSchema.extend({
6864
+ filterFields: z.array(z.string()).optional(),
6865
+ });
6866
+ const DataCollectionSearchSpecSchema = DataCollectionMethodSpecSchema.extend({});
6867
+ const DataCollectionMatchSpecSchema = DataCollectionMethodSpecSchema.extend({
6868
+ fields: z.array(z.string()).optional(),
6869
+ });
6870
+ const DataCollectionFindByIdSpecSchema = DataCollectionMethodSpecSchema.extend({});
6871
+ const DataCollectionCreateSpecSchema = DataCollectionMethodSpecSchema.extend({
6872
+ fields: z.array(z.string()).optional(),
6873
+ requiredFields: z.array(z.string()).optional(),
6874
+ excludedFields: z.array(z.string()).optional(),
6875
+ });
6876
+ const DataCollectionUpdateSpecSchema = DataCollectionMethodSpecSchema.extend({
6877
+ fields: z.array(z.string()).optional(),
6878
+ excludedFields: z.array(z.string()).optional(),
6879
+ });
6880
+ const DataCollectionDeleteSpecSchema = DataCollectionMethodSpecSchema.extend({});
6881
+ const DataCollectionFindSpecSchema = DataCollectionMethodSpecSchema.extend({
6882
+ queryFields: z.array(z.string()).optional(),
6883
+ });
6884
+ const DataCollectionEventTypeSpecSchema = z.object({
6885
+ type: z.enum(['push', 'pull']),
6886
+ isFullScan: z.boolean().optional(),
6887
+ isIdOnly: z.boolean().optional(),
6888
+ });
6889
+ const DataCollectionEventsSpecSchema = z
6890
+ .object({
6891
+ created: DataCollectionEventTypeSpecSchema.optional(),
6892
+ updated: DataCollectionEventTypeSpecSchema.optional(),
6893
+ deleted: DataCollectionEventTypeSpecSchema.optional(),
6894
+ all: DataCollectionEventTypeSpecSchema.optional(),
6895
+ })
6896
+ .catchall(DataCollectionEventTypeSpecSchema);
6897
+ const DataCollectionUdmSpecSchema = z.object({
6898
+ fields: z.array(z.string()).optional(),
6899
+ extract: z.record(z.any()).optional(),
6900
+ parse: z.record(z.any()).optional(),
6901
+ });
6902
+ const DataCollectionUdmsSpecSchema = z.record(DataCollectionUdmSpecSchema);
6903
+ const DataCollectionSpecSchema = z.object({
6904
+ type: z.literal('collection'),
6905
+ key: z.string().optional(),
6906
+ name: z.string(),
6907
+ parametersSchema: DataSchemaSchema.optional(),
6908
+ fieldsSchema: DataSchemaSchema.optional(),
6909
+ list: DataCollectionListSpecSchema.optional(),
6910
+ search: DataCollectionSearchSpecSchema.optional(),
6911
+ match: DataCollectionMatchSpecSchema.optional(),
6912
+ findById: DataCollectionFindByIdSpecSchema.optional(),
6913
+ create: DataCollectionCreateSpecSchema.optional(),
6914
+ update: DataCollectionUpdateSpecSchema.optional(),
6915
+ delete: DataCollectionDeleteSpecSchema.optional(),
6916
+ events: DataCollectionEventsSpecSchema.optional(),
6917
+ customFields: z.boolean().optional(),
6918
+ udm: DataCollectionUdmsSpecSchema.optional(),
6919
+ find: DataCollectionFindSpecSchema.optional(),
6920
+ });
6862
6921
  const ConnectorDataLocationTypes = {
6863
6922
  collection: DataLocationTypeCollection,
6864
- directory: DataLocationTypeDirectory,
6865
6923
  };
6866
6924
 
6867
6925
  function getDataLocationMethodPath(locationKey, methodKey) {
@@ -9250,7 +9308,7 @@ var ConnectionType;
9250
9308
  ConnectionType["REDIRECT"] = "redirect";
9251
9309
  })(ConnectionType || (ConnectionType = {}));
9252
9310
  async function createOrUpdateConnection(options) {
9253
- const { connectionId, integrationId, name, parameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, } = options !== null && options !== void 0 ? options : {};
9311
+ const { connectionId, integrationId, name, parameters, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, } = options !== null && options !== void 0 ? options : {};
9254
9312
  const connectionType = getConnectionType({
9255
9313
  connectorSpec,
9256
9314
  authOptionKey,
@@ -9264,6 +9322,7 @@ async function createOrUpdateConnection(options) {
9264
9322
  const payload = {
9265
9323
  token,
9266
9324
  connectionParameters: parameters,
9325
+ connectorParameters,
9267
9326
  name,
9268
9327
  authOptionKey,
9269
9328
  allowMultipleConnections,
@@ -9554,6 +9613,49 @@ var FlowNodeRunStatus;
9554
9613
  FlowNodeRunStatus["FAILED"] = "failed";
9555
9614
  FlowNodeRunStatus["SKIPPED"] = "skipped";
9556
9615
  })(FlowNodeRunStatus || (FlowNodeRunStatus = {}));
9616
+ const UpstreamFlowNodeRunSchema = z.object({
9617
+ nodeKey: z.string(),
9618
+ runId: z.string(),
9619
+ outputId: z.string(),
9620
+ });
9621
+ const DownstreamFlowNodeRunSchema = z.object({
9622
+ runId: z.string(),
9623
+ nodeKey: z.string(),
9624
+ });
9625
+ const FlowNodeRunParametersSchema = z.object({
9626
+ id: z.string(),
9627
+ upstreamRuns: z.array(UpstreamFlowNodeRunSchema),
9628
+ input: z.any(),
9629
+ });
9630
+ const FlowNodeRunOutputSchema = z.object({
9631
+ id: z.string(),
9632
+ data: z.string(),
9633
+ downstreamRuns: z.array(DownstreamFlowNodeRunSchema),
9634
+ });
9635
+ const FlowNodeRunResultSchema = z.object({
9636
+ status: z.nativeEnum(FlowNodeRunStatus),
9637
+ logs: z.array(z.any()),
9638
+ outputs: z.array(FlowNodeRunOutputSchema),
9639
+ errors: z.array(ErrorDataSchema),
9640
+ });
9641
+ const FlowNodeRunRecordSchema = FlowNodeRunParametersSchema.merge(FlowNodeRunResultSchema);
9642
+ const FlowNodeRunOutputWithoutDownstreamRunsSchema = z.object({
9643
+ id: z.string(),
9644
+ data: z.string(),
9645
+ });
9646
+ const FlowNodeRunOutputMetadataSchema = z.object({
9647
+ id: z.string(),
9648
+ downstreamRuns: z.array(DownstreamFlowNodeRunSchema),
9649
+ });
9650
+ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
9651
+ id: z.string(),
9652
+ upstreamRuns: z.array(UpstreamFlowNodeRunSchema),
9653
+ input: z.any(),
9654
+ status: z.nativeEnum(FlowNodeRunStatus),
9655
+ logs: z.array(z.any()),
9656
+ outputs: z.array(FlowNodeRunOutputMetadataSchema),
9657
+ errors: z.array(ErrorDataSchema),
9658
+ });
9557
9659
 
9558
9660
  class FlowRunsAccessor {
9559
9661
  constructor(client) {
@@ -10314,10 +10416,7 @@ class ConnectionAccessor {
10314
10416
  dataCollection(key, parameters) {
10315
10417
  return new ConnectionDataCollectionAccessor(this.client, this, key, parameters);
10316
10418
  }
10317
- dataDirectory(key, parameters) {
10318
- return new ConnectionDataDirectoryAccessor(this.client, this, key, parameters);
10319
- }
10320
- async reconnect({ parameters, authOptionKey, } = {}) {
10419
+ async reconnect({ parameters, authOptionKey, connectorParameters, } = {}) {
10321
10420
  const connection = await this.get();
10322
10421
  const connectorSpec = await this.client.get(`/integrations/${connection.integrationId}/connector-spec`);
10323
10422
  return createOrUpdateConnection({
@@ -10325,6 +10424,7 @@ class ConnectionAccessor {
10325
10424
  connectorSpec,
10326
10425
  parameters,
10327
10426
  authOptionKey,
10427
+ connectorParameters,
10328
10428
  apiUri: this.client.apiUri,
10329
10429
  token: await this.client.getToken(),
10330
10430
  });
@@ -10359,17 +10459,6 @@ class ConnectionOperationAccessor {
10359
10459
  return this.client.post(this.connectionAccessor.getPath(`operations/${this.key}/run`), request);
10360
10460
  }
10361
10461
  }
10362
- class ConnectionDataDirectoryAccessor {
10363
- constructor(client, connectionAccessor, key, parameters) {
10364
- this.client = client;
10365
- this.connectionAccessor = connectionAccessor;
10366
- this.key = key;
10367
- this.parameters = parameters;
10368
- }
10369
- async list(request) {
10370
- return this.client.post(this.connectionAccessor.getPath(`data/${this.key}/list`, this.parameters), request);
10371
- }
10372
- }
10373
10462
  class ConnectionDataCollectionAccessor {
10374
10463
  constructor(client, connectionAccessor, key, parameters) {
10375
10464
  this.client = client;
@@ -10920,10 +11009,11 @@ class IntegrationAccessor extends ElementAccessor {
10920
11009
  onClose,
10921
11010
  });
10922
11011
  }
10923
- async openNewConnection({ allowMultipleConnections, name } = {}) {
11012
+ async openNewConnection({ allowMultipleConnections, name, connectorParameters, } = {}) {
10924
11013
  const uri = await this.client.getEmbedUri(`integrations/${this.integrationSelector}/connect`, {
10925
11014
  allowMultipleConnections: allowMultipleConnections ? '1' : '',
10926
11015
  name,
11016
+ connectorParameters: connectorParameters ? JSON.stringify(connectorParameters) : undefined,
10927
11017
  });
10928
11018
  return new Promise((resolve) => {
10929
11019
  return openIframe(uri, {
@@ -10932,7 +11022,7 @@ class IntegrationAccessor extends ElementAccessor {
10932
11022
  });
10933
11023
  });
10934
11024
  }
10935
- async connect({ name, parameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
11025
+ async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
10936
11026
  const integration = await this.get();
10937
11027
  const connectorSpec = await this.getConnectorSpec();
10938
11028
  return createOrUpdateConnection({
@@ -10940,6 +11030,7 @@ class IntegrationAccessor extends ElementAccessor {
10940
11030
  connectorSpec,
10941
11031
  name,
10942
11032
  parameters,
11033
+ connectorParameters,
10943
11034
  authOptionKey,
10944
11035
  allowMultipleConnections,
10945
11036
  apiUri: this.client.apiUri,
@@ -10965,12 +11056,6 @@ class IntegrationAccessor extends ElementAccessor {
10965
11056
  async getDataCollection(key) {
10966
11057
  return this.client.get(this.getPath(`data/${key}`));
10967
11058
  }
10968
- async getDataLocations() {
10969
- return this.client.get(this.getPath('data'));
10970
- }
10971
- async getDataLocation(key) {
10972
- return this.client.get(this.getPath(`data/${key}`));
10973
- }
10974
11059
  }
10975
11060
 
10976
11061
  class ScreensAccessor extends ElementListAccessor {
@@ -11547,5 +11632,5 @@ class IntegrationAppClient extends IntegrationAppApiClient {
11547
11632
  }
11548
11633
  }
11549
11634
 
11550
- export { ACTIONS, AccessDeniedError, ActionAccessor, ActionDependencyType, ActionInstanceAccessor, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogStatus, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, AppDataSchemaAccessor, AppDataSchemaInstanceAccessor, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventSubscriptionAccessor, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypesAccessor, AppEventsAccessor, BadRequestError, BadRequestErrorKey, 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, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, Connection, ConnectionAccessor, ConnectionDataCollectionAccessor, ConnectionDataDirectoryAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionOperationAccessor, ConnectionProxy, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataDirectoryMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateConnectionRequest, CustomCodeError, CustomerAccessor, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionEventType, DataDirectoryOperation, DataField, DataFilterCondition, DataForm, DataLinkDirection, DataLinkTableAccessor, DataLinkTableInstanceAccessor, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationType, DataLocationTypeCollection, DataLocationTypeDirectory, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataSourceAccessor, DataSourceInstanceAccessor, DataSourceInstancesAccessor, DataSourcesAccessor, DependencyError, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ErrorData, ErrorDoc, ErrorType, ExternalEventLogStatus, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingDirection, FieldMappingInstanceAccessor, FieldMappingInstancesAccessor, FieldMappingsAccessor, FindConnectionsResponse, FlowAccessor, FlowInstanceAccessor, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunError, FlowRunLaunchedByTrigger, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, index as Formula, HTTP_REQUEST_SCHEMA, HttpRequestMethod, IDataField, IncomingWebhooksState, IntegrationAccessor, IntegrationAppClient, IntegrationAppError, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ScenarioAccessor, ScenarioTemplateCategory, ScenariosAccessor, ScreenAccessor, ScreenBlockType, ScreenType, ScreensAccessor, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateConnectionRequest, UsageType, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceType, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildUserFriendlyErrorMessage, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, externalEventTypeToSubscriptionType, extractFieldLocator, extractIntegrationAppErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula, getFormulaLocators, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas, isDataActionType, isDataLocationMethodSupported, isFormula, isIntegrationAppError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, resolveValue, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema };
11635
+ export { ACTIONS, AccessDeniedError, ActionAccessor, ActionDependencyType, ActionInstanceAccessor, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogStatus, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpecSchema, AppDataSchemaAccessor, AppDataSchemaInstanceAccessor, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventSubscriptionAccessor, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypesAccessor, AppEventsAccessor, BadRequestError, BadRequestErrorKey, 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, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, Connection, ConnectionAccessor, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionOperationAccessor, ConnectionProxy, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateConnectionRequest, CustomCodeError, CustomerAccessor, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateSpecSchema, DataCollectionDeleteSpecSchema, DataCollectionEventType, DataCollectionEventTypeSpecSchema, DataCollectionEventsSpecSchema, DataCollectionFindByIdSpecSchema, DataCollectionFindSpecSchema, DataCollectionListSpecSchema, DataCollectionMatchSpecSchema, DataCollectionMethodSpecSchema, DataCollectionSearchSpecSchema, DataCollectionSpecSchema, DataCollectionUdmSpecSchema, DataCollectionUdmsSpecSchema, DataCollectionUpdateSpecSchema, DataField, DataFilterCondition, DataForm, DataLinkDirection, DataLinkTableAccessor, DataLinkTableInstanceAccessor, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataSchemaSchema, DataSourceAccessor, DataSourceInstanceAccessor, DataSourceInstancesAccessor, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ErrorData, ErrorDataSchema, ErrorDoc, ErrorType, ExternalEventLogStatus, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingDirection, FieldMappingInstanceAccessor, FieldMappingInstancesAccessor, FieldMappingsAccessor, FindConnectionsResponse, FlowAccessor, FlowInstanceAccessor, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunError, FlowRunLaunchedByTrigger, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, index as Formula, HTTP_REQUEST_SCHEMA, HttpRequestMethod, IDataField, IncomingWebhooksState, IntegrationAccessor, IntegrationAppClient, IntegrationAppError, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ScenarioAccessor, ScenarioTemplateCategory, ScenariosAccessor, ScreenAccessor, ScreenBlockType, ScreenType, ScreensAccessor, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateConnectionRequest, UpstreamFlowNodeRunSchema, UsageType, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceType, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildUserFriendlyErrorMessage, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, externalEventTypeToSubscriptionType, extractFieldLocator, extractIntegrationAppErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula, getFormulaLocators, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas, isDataActionType, isDataLocationMethodSupported, isFormula, isIntegrationAppError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, resolveValue, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema };
11551
11636
  //# sourceMappingURL=index.module.mjs.map