@membranehq/sdk 0.18.0 → 0.18.1

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 (31) hide show
  1. package/dist/bundle.d.ts +2 -0
  2. package/dist/bundle.js +6 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/alerts/types.d.ts +14 -0
  5. package/dist/dts/orgs/types.d.ts +2 -0
  6. package/dist/dts/workspace-elements/api/connections-api.d.ts +0 -1
  7. package/dist/dts/workspace-elements/api/connectors-api.d.ts +1 -0
  8. package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
  9. package/dist/dts/workspace-elements/api/external-apps-api.d.ts +1 -0
  10. package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -0
  11. package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +4 -5
  12. package/dist/dts/workspace-elements/base/connectors/index.d.ts +6 -7
  13. package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +0 -1
  14. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +0 -2
  15. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +0 -3
  16. package/dist/dts/workspace-elements/base/flows/index.d.ts +0 -2
  17. package/dist/dts/workspace-elements/base/integrations/index.d.ts +8 -10
  18. package/dist/dts/workspaces/types.d.ts +7 -1
  19. package/dist/index.browser.d.mts +45 -32
  20. package/dist/index.browser.d.ts +45 -32
  21. package/dist/index.browser.js +32 -6
  22. package/dist/index.browser.js.map +1 -1
  23. package/dist/index.browser.mjs +32 -6
  24. package/dist/index.browser.mjs.map +1 -1
  25. package/dist/index.node.d.mts +45 -32
  26. package/dist/index.node.d.ts +45 -32
  27. package/dist/index.node.js +32 -6
  28. package/dist/index.node.js.map +1 -1
  29. package/dist/index.node.mjs +32 -6
  30. package/dist/index.node.mjs.map +1 -1
  31. package/package.json +1 -1
@@ -3745,6 +3745,9 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
3745
3745
  }).extend(FieldMappingSpecificProperties.shape);
3746
3746
  const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
3747
3747
  connectionId: true,
3748
+ fieldMappingId: true,
3749
+ universalFieldMappingId: true,
3750
+ dataSourceId: true,
3748
3751
  });
3749
3752
  const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3750
3753
  ...TenantLayerElement.partial().shape,
@@ -9154,6 +9157,8 @@ const WriteableConnectorFields = z
9154
9157
  .extend(WritableConnectorVersionData.shape);
9155
9158
  const ConnectorExportProperties = WriteableConnectorFields.extend({
9156
9159
  uuid: z.string().optional(),
9160
+ }).omit({
9161
+ externalAppId: true,
9157
9162
  });
9158
9163
  const UpdateConnectorRequest = WriteableConnectorFields;
9159
9164
  const CreateConnectorRequest = WriteableConnectorFields.extend({
@@ -9215,6 +9220,8 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
9215
9220
  })
9216
9221
  .omit({
9217
9222
  connectionId: true,
9223
+ dataSourceId: true,
9224
+ universalDataSourceId: true,
9218
9225
  });
9219
9226
  const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
9220
9227
  ...TenantLayerElement.partial().shape,
@@ -9705,6 +9712,8 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
9705
9712
  }).extend(FlowSpecificProperties.shape);
9706
9713
  const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
9707
9714
  connectionId: true,
9715
+ flowId: true,
9716
+ universalFlowId: true,
9708
9717
  });
9709
9718
  const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
9710
9719
  ...TenantLayerElement.partial().shape,
@@ -9826,7 +9835,10 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
9826
9835
  parameters: z.record(z.string(), z.any()).optional(),
9827
9836
  optionsConfig: IntegrationOptions.optional(),
9828
9837
  });
9829
- const IntegrationExportProperties = IntegrationEditableProperties;
9838
+ const IntegrationExportProperties = IntegrationEditableProperties.omit({
9839
+ connectorId: true,
9840
+ externalAppId: true,
9841
+ });
9830
9842
  const AppliedToIntegrations = (elementSchema) => z.array(z.object({
9831
9843
  element: elementSchema,
9832
9844
  integration: BaseIntegration,
@@ -9925,6 +9937,7 @@ const DataLinkTableSpecificProperties = z.object({
9925
9937
  const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
9926
9938
  const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape).omit({
9927
9939
  connectionId: true,
9940
+ dataLinkTableId: true,
9928
9941
  });
9929
9942
  const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
9930
9943
  ...TenantLayerElement.partial().shape,
@@ -10022,7 +10035,9 @@ const AppDataSchemaSpecificProperties = z.object({
10022
10035
  code: z.string().optional(),
10023
10036
  });
10024
10037
  const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
10025
- const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.extend({});
10038
+ const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.omit({
10039
+ appDataSchemaId: true,
10040
+ });
10026
10041
  const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
10027
10042
  ...TenantLayerElement.partial().shape,
10028
10043
  appDataSchemaRevision: z.string().optional(),
@@ -10352,6 +10367,7 @@ const ConnectionExportProperties = ConnectionEditableProperties.omit({
10352
10367
  credentials: true,
10353
10368
  connectorParameters: true,
10354
10369
  input: true,
10370
+ externalAppId: true,
10355
10371
  });
10356
10372
  const ConnectionTestResponse = z.object({
10357
10373
  success: z.boolean(),
@@ -10435,7 +10451,7 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
10435
10451
  theme: z.enum(['light', 'dark', 'auto']).optional(),
10436
10452
  });
10437
10453
 
10438
- const ListPublicConnectorsQuery = PaginationQuery.extend({
10454
+ const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
10439
10455
  search: z.string().optional(),
10440
10456
  });
10441
10457
 
@@ -10513,7 +10529,7 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
10513
10529
  dataSourceInstanceId: z.string().optional(),
10514
10530
  });
10515
10531
 
10516
- const ListExternalAppsQuery = PaginationQuery.extend({
10532
+ const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
10517
10533
  search: z.string().optional(),
10518
10534
  category: z
10519
10535
  .string()
@@ -10666,7 +10682,8 @@ const FindIntegrationsQuery = z
10666
10682
  appUuid: z.string().optional(),
10667
10683
  })
10668
10684
  .merge(PaginationQuery)
10669
- .merge(SearchQuery);
10685
+ .merge(SearchQuery)
10686
+ .merge(IncludeArchivedQuery);
10670
10687
  const IntegrationAuthUi = z.object({
10671
10688
  schema: z.any().optional(),
10672
10689
  helpUri: z.string().optional(),
@@ -10773,7 +10790,8 @@ const FindCustomersQuery = z
10773
10790
  }),
10774
10791
  })
10775
10792
  .merge(PaginationQuery)
10776
- .merge(SearchQuery);
10793
+ .merge(SearchQuery)
10794
+ .merge(IncludeArchivedQuery);
10777
10795
  const CustomerSelector = z.object({ id: z.string() });
10778
10796
  const CustomerApiResponse = BaseCustomer;
10779
10797
  const TenantSelfResponse = BaseCustomer.extend({
@@ -12739,6 +12757,8 @@ var AlertType;
12739
12757
  AlertType["totalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
12740
12758
  AlertType["instantTasksQueueSize"] = "instantTasksQueueSize";
12741
12759
  AlertType["queuedTasksQueueSize"] = "queuedTasksQueueSize";
12760
+ AlertType["flowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
12761
+ AlertType["eventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
12742
12762
  AlertType["parallelApiRequests"] = "parallelApiRequests";
12743
12763
  AlertType["testAlert"] = "testAlert";
12744
12764
  })(AlertType || (AlertType = {}));
@@ -12774,6 +12794,8 @@ const ALERT_TYPE_CATEGORIES = {
12774
12794
  [AlertType.totalNumberOfWorkspaceElements]: AlertCategory.WORKSPACE_SIZE,
12775
12795
  [AlertType.instantTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
12776
12796
  [AlertType.queuedTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
12797
+ [AlertType.flowRunsQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
12798
+ [AlertType.eventsProcessingQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
12777
12799
  [AlertType.parallelApiRequests]: AlertCategory.RATE_LIMIT,
12778
12800
  };
12779
12801
  const Alert = z.object({
@@ -12871,6 +12893,8 @@ function getAlertTypeDisplayName(alertType) {
12871
12893
  [AlertType.totalNumberOfWorkspaceElements]: 'Total Number of Workspace Elements',
12872
12894
  [AlertType.instantTasksQueueSize]: 'Instant Tasks Queue Size',
12873
12895
  [AlertType.queuedTasksQueueSize]: 'Queued Tasks Queue Size',
12896
+ [AlertType.flowRunsQueueSizePerConnection]: 'Flow Runs Queue Size Per Connection',
12897
+ [AlertType.eventsProcessingQueueSizePerConnection]: 'Events Processing Queue Size Per Connection',
12874
12898
  [AlertType.parallelApiRequests]: 'Parallel API Requests',
12875
12899
  };
12876
12900
  return names[alertType] || alertType;
@@ -12958,6 +12982,8 @@ var WorkspaceSizeLimits;
12958
12982
  WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
12959
12983
  WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
12960
12984
  WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
12985
+ WorkspaceSizeLimits["FlowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
12986
+ WorkspaceSizeLimits["EventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
12961
12987
  })(WorkspaceSizeLimits || (WorkspaceSizeLimits = {}));
12962
12988
  var CustomerLimits;
12963
12989
  (function (CustomerLimits) {