@membranehq/sdk 0.11.0 → 0.11.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 (56) hide show
  1. package/dist/bundle.d.ts +199 -0
  2. package/dist/bundle.js +177 -48
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +7 -0
  5. package/dist/dts/accessors/integrations-accessors.d.ts +7 -0
  6. package/dist/dts/alerts/types.d.ts +18 -0
  7. package/dist/dts/index.browser.d.ts +1 -0
  8. package/dist/dts/orgs/types.d.ts +12 -0
  9. package/dist/dts/stats/index.d.ts +33 -0
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +34 -0
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -0
  13. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +1 -0
  14. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +1 -0
  15. package/dist/dts/workspace-elements/api/connections-api.d.ts +21 -0
  16. package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
  17. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +7 -0
  18. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +8 -0
  19. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +14 -0
  20. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +7 -0
  21. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +7 -0
  22. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +7 -0
  23. package/dist/dts/workspace-elements/api/external-events-api.d.ts +4 -0
  24. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +16 -0
  25. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -0
  26. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -0
  27. package/dist/dts/workspace-elements/api/flows-api.d.ts +38 -0
  28. package/dist/dts/workspace-elements/api/integrations-api.d.ts +16 -0
  29. package/dist/dts/workspace-elements/api/packages-api.d.ts +10 -0
  30. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +1 -0
  31. package/dist/dts/workspace-elements/base/actions/index.d.ts +3 -0
  32. package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
  33. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -0
  34. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +3 -0
  35. package/dist/dts/workspace-elements/base/external-apps/index.d.ts +1 -0
  36. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
  37. package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
  38. package/dist/dts/workspace-elements/base/integrations/index.d.ts +28 -0
  39. package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
  40. package/dist/dts/workspace-elements/filter-meta.d.ts +9 -0
  41. package/dist/dts/workspace-elements/index.d.ts +1 -0
  42. package/dist/dts/workspace-elements/types.d.ts +4 -0
  43. package/dist/dts/workspaces/types.d.ts +276 -34
  44. package/dist/index.browser.d.mts +651 -33
  45. package/dist/index.browser.d.ts +651 -33
  46. package/dist/index.browser.js +182 -12
  47. package/dist/index.browser.js.map +1 -1
  48. package/dist/index.browser.mjs +172 -13
  49. package/dist/index.browser.mjs.map +1 -1
  50. package/dist/index.node.d.mts +651 -33
  51. package/dist/index.node.d.ts +651 -33
  52. package/dist/index.node.js +182 -12
  53. package/dist/index.node.js.map +1 -1
  54. package/dist/index.node.mjs +172 -13
  55. package/dist/index.node.mjs.map +1 -1
  56. package/package.json +2 -2
@@ -3543,6 +3543,7 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
3543
3543
  parentUuid: z.z.string().optional(),
3544
3544
  connectionId: z.z.string().optional(),
3545
3545
  instanceKey: z.z.string().optional(),
3546
+ isUniversal: z.z.boolean().optional(),
3546
3547
  });
3547
3548
  const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
3548
3549
  isCustomized: z.z.boolean().optional(),
@@ -3554,16 +3555,67 @@ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterf
3554
3555
  });
3555
3556
  const MembraneElementLayer = z.z.enum(['universal', 'integration', 'connection']);
3556
3557
  const IntegrationLevelMembraneInterfaceSelectorQuery = z.z.object({
3557
- layer: MembraneElementLayer.optional(),
3558
- integrationKey: z.z.string().optional(),
3559
- integrationId: z.z.string().optional(),
3560
- connectionId: z.z.string().optional(),
3561
- instanceKey: z.z.string().optional(),
3558
+ layer: MembraneElementLayer.optional().meta({
3559
+ filterTitle: 'Layer',
3560
+ }),
3561
+ integrationKey: z.z
3562
+ .string()
3563
+ .optional()
3564
+ .meta({
3565
+ hidden: true,
3566
+ }),
3567
+ integrationId: z.z
3568
+ .string()
3569
+ .optional()
3570
+ .meta({
3571
+ filterTitle: 'Integration',
3572
+ referenceElementType: exports.WorkspaceElementType.Integration,
3573
+ }),
3574
+ connectionId: z.z
3575
+ .string()
3576
+ .optional()
3577
+ .meta({
3578
+ filterTitle: 'Connection',
3579
+ referenceElementType: exports.WorkspaceElementType.Connection,
3580
+ }),
3581
+ instanceKey: z.z
3582
+ .string()
3583
+ .optional()
3584
+ .meta({
3585
+ filterTitle: 'Instance Key',
3586
+ }),
3562
3587
  });
3563
3588
  const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
3564
- parentId: z.z.string().optional(),
3565
- universalParentId: z.z.string().optional(),
3566
- userId: z.z.string().optional(),
3589
+ parentId: z.z
3590
+ .string()
3591
+ .optional()
3592
+ .meta({
3593
+ filterTitle: 'Parent',
3594
+ referenceElementType: 'self',
3595
+ }),
3596
+ universalParentId: z.z
3597
+ .string()
3598
+ .optional()
3599
+ .meta({
3600
+ filterTitle: 'Universal Parent',
3601
+ referenceElementType: 'self',
3602
+ }),
3603
+ tenantId: z.z
3604
+ .string()
3605
+ .optional()
3606
+ .meta({
3607
+ filterTitle: 'Customer',
3608
+ referenceElementType: exports.WorkspaceElementType.Customer,
3609
+ }),
3610
+ userId: z.z.string().optional().meta({
3611
+ hidden: true,
3612
+ }),
3613
+ isUniversal: zodBooleanCoercion()
3614
+ .optional()
3615
+ .meta({
3616
+ filterTitle: 'Is Universal',
3617
+ isFlag: true,
3618
+ }),
3567
3619
  });
3568
3620
  const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
3569
3621
  const WorkspaceElementSearchQuery = z.z.object({
@@ -3806,6 +3858,8 @@ const BaseConnection = BaseWorkspaceElement.extend({
3806
3858
  nextCredentialsRefreshAt: z.z.string().optional(),
3807
3859
  nextRetryTimestamp: z.z.string().optional(),
3808
3860
  retryAttempts: z.z.number().optional(),
3861
+ canTest: z.z.boolean().optional(),
3862
+ canRefreshCredentials: z.z.boolean().optional(),
3809
3863
  archivedAt: z.z.string().optional(),
3810
3864
  isDeactivated: z.z.boolean().optional(),
3811
3865
  meta: z.z.record(z.z.string(), z.z.any()).optional(),
@@ -9500,6 +9554,11 @@ const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProp
9500
9554
  });
9501
9555
  const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
9502
9556
 
9557
+ const IntegrationOptionConfig = z.z.object({
9558
+ disabled: z.z.boolean().optional(),
9559
+ parameters: z.z.record(z.z.string(), z.z.any()).optional(),
9560
+ });
9561
+ const IntegrationOptions = z.z.record(z.z.string(), IntegrationOptionConfig);
9503
9562
  const BaseIntegration = BaseMembraneInterface.extend({
9504
9563
  logoUri: z.z.string(),
9505
9564
  connectorId: z.z.string().optional(),
@@ -9521,6 +9580,7 @@ const BaseIntegration = BaseMembraneInterface.extend({
9521
9580
  appUuid: z.z.string().optional(),
9522
9581
  isDeactivated: z.z.boolean().optional(),
9523
9582
  authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
9583
+ optionsConfig: IntegrationOptions.optional(),
9524
9584
  });
9525
9585
  const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
9526
9586
  logoUri: z.z.string().optional(),
@@ -9530,6 +9590,8 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
9530
9590
  connectorVersion: z.z.string().optional(),
9531
9591
  connectorId: z.z.string().optional(),
9532
9592
  connectorUuid: z.z.string().optional(),
9593
+ parameters: z.z.record(z.z.string(), z.z.any()).optional(),
9594
+ optionsConfig: IntegrationOptions.optional(),
9533
9595
  });
9534
9596
  const IntegrationExportProperties = IntegrationEditableProperties.extend({
9535
9597
  connectorUuid: z.z.string().optional(),
@@ -9613,6 +9675,7 @@ const BaseCustomer = z.z.object({
9613
9675
  lastActiveAt: z.z.string().optional(),
9614
9676
  isTest: z.z.boolean().optional(),
9615
9677
  isBillable: z.z.boolean().optional(),
9678
+ isActive: z.z.boolean().optional(),
9616
9679
  createdAt: z.z.string().optional(),
9617
9680
  archivedAt: z.z.string().optional(),
9618
9681
  });
@@ -9972,7 +10035,13 @@ const ActionApiResponse = BaseAction.extend({
9972
10035
  dependencies: z.z.array(z.z.any()).optional(),
9973
10036
  });
9974
10037
  const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery.extend({
9975
- externalAppId: z.z.string().optional(),
10038
+ externalAppId: z.z
10039
+ .string()
10040
+ .optional()
10041
+ .meta({
10042
+ filterTitle: 'External App',
10043
+ referenceElementType: exports.WorkspaceElementType.App,
10044
+ }),
9976
10045
  });
9977
10046
  const CreateActionRequest = ActionEditableProperties;
9978
10047
  const UpdateActionRequest = CreateActionRequest.partial();
@@ -10710,6 +10779,14 @@ function setEditablePropertiesForWorkspaceElement(currentElement, newEditableFie
10710
10779
  };
10711
10780
  }
10712
10781
 
10782
+ const REFERENCE_ELEMENT_TYPE_SELF = 'self';
10783
+ function getFilterFieldMeta(meta) {
10784
+ if (meta && typeof meta === 'object' && !Array.isArray(meta)) {
10785
+ return meta;
10786
+ }
10787
+ return undefined;
10788
+ }
10789
+
10713
10790
  const WorkspaceElementSpecs = {
10714
10791
  [exports.WorkspaceElementType.Customer]: {
10715
10792
  type: exports.WorkspaceElementType.Customer,
@@ -11281,6 +11358,27 @@ function getBusinessDaysBetween(startDate, endDate) {
11281
11358
  return businessDays;
11282
11359
  }
11283
11360
 
11361
+ const StatsFilterQuery = z.z.object({
11362
+ tenantId: z.z.string().optional(),
11363
+ integrationId: z.z.string().optional(),
11364
+ connectionId: z.z.string().optional(),
11365
+ });
11366
+ const ActivityStatsQuery = StatsFilterQuery.extend({
11367
+ startDatetime: z.z.string().datetime({ offset: true }),
11368
+ });
11369
+ const IntegrationLayerStatsQuery = StatsFilterQuery;
11370
+ const ActionRunsStatsQuery = z.z.object({
11371
+ actionId: z.z.string().optional(),
11372
+ actionInstanceId: z.z.string().optional(),
11373
+ startDatetime: z.z.string().datetime({ offset: true }),
11374
+ });
11375
+ const FlowRunsStatsQuery = z.z.object({
11376
+ flowId: z.z.string().optional(),
11377
+ flowInstanceId: z.z.string().optional(),
11378
+ universalFlowId: z.z.string().optional(),
11379
+ startDatetime: z.z.string().datetime({ offset: true }),
11380
+ });
11381
+
11284
11382
  exports.IntegrationElementLevel = void 0;
11285
11383
  (function (IntegrationElementLevel) {
11286
11384
  IntegrationElementLevel["UNIVERSAL"] = "universal";
@@ -11451,6 +11549,10 @@ exports.AlertType = void 0;
11451
11549
  AlertType["workspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
11452
11550
  AlertType["workspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
11453
11551
  AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
11552
+ AlertType["apiRequestsPerCustomerPerSecond"] = "apiRequestsPerCustomerPerSecond";
11553
+ AlertType["apiRequestsPerCustomerPerHour"] = "apiRequestsPerCustomerPerHour";
11554
+ AlertType["webhookRequestsPerCustomerPerSecond"] = "webhookRequestsPerCustomerPerSecond";
11555
+ AlertType["webhookRequestsPerCustomerPerHour"] = "webhookRequestsPerCustomerPerHour";
11454
11556
  AlertType["totalUsagePerDay"] = "totalUsagePerDay";
11455
11557
  AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
11456
11558
  AlertType["testAlert"] = "testAlert";
@@ -11458,6 +11560,7 @@ exports.AlertType = void 0;
11458
11560
  exports.AlertCategory = void 0;
11459
11561
  (function (AlertCategory) {
11460
11562
  AlertCategory["RATE_LIMIT"] = "rateLimit";
11563
+ AlertCategory["CUSTOMER_RATE_LIMIT"] = "customerRateLimit";
11461
11564
  AlertCategory["USAGE"] = "usage";
11462
11565
  AlertCategory["TEST"] = "test";
11463
11566
  })(exports.AlertCategory || (exports.AlertCategory = {}));
@@ -11470,6 +11573,10 @@ const ALERT_TYPE_CATEGORIES = {
11470
11573
  [exports.AlertType.workspaceElementCreationsPerSecond]: exports.AlertCategory.RATE_LIMIT,
11471
11574
  [exports.AlertType.workspaceElementCreationsPerHour]: exports.AlertCategory.RATE_LIMIT,
11472
11575
  [exports.AlertType.externalEventsPerCustomerPerDay]: exports.AlertCategory.RATE_LIMIT,
11576
+ [exports.AlertType.apiRequestsPerCustomerPerSecond]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
11577
+ [exports.AlertType.apiRequestsPerCustomerPerHour]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
11578
+ [exports.AlertType.webhookRequestsPerCustomerPerSecond]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
11579
+ [exports.AlertType.webhookRequestsPerCustomerPerHour]: exports.AlertCategory.CUSTOMER_RATE_LIMIT,
11473
11580
  [exports.AlertType.totalUsagePerDay]: exports.AlertCategory.USAGE,
11474
11581
  [exports.AlertType.totalUsagePer30Days]: exports.AlertCategory.USAGE,
11475
11582
  [exports.AlertType.testAlert]: exports.AlertCategory.TEST,
@@ -11530,6 +11637,10 @@ function getAlertTypeDisplayName(alertType) {
11530
11637
  [exports.AlertType.workspaceElementCreationsPerSecond]: 'Workspace Element Creations Per Second',
11531
11638
  [exports.AlertType.workspaceElementCreationsPerHour]: 'Workspace Element Creations Per Hour',
11532
11639
  [exports.AlertType.externalEventsPerCustomerPerDay]: 'External Events Per Customer Per Day',
11640
+ [exports.AlertType.apiRequestsPerCustomerPerSecond]: 'API Requests Per Customer Per Second',
11641
+ [exports.AlertType.apiRequestsPerCustomerPerHour]: 'API Requests Per Customer Per Hour',
11642
+ [exports.AlertType.webhookRequestsPerCustomerPerSecond]: 'Webhook Requests Per Customer Per Second',
11643
+ [exports.AlertType.webhookRequestsPerCustomerPerHour]: 'Webhook Requests Per Customer Per Hour',
11533
11644
  [exports.AlertType.totalUsagePerDay]: 'Total Usage Per Day',
11534
11645
  [exports.AlertType.totalUsagePer30Days]: 'Total Usage Per 30 Days',
11535
11646
  [exports.AlertType.testAlert]: 'Test Alert',
@@ -11557,6 +11668,7 @@ function isDeliveryMethodEnabled(settings, method) {
11557
11668
  function getAlertCategoryDisplayName(category) {
11558
11669
  const names = {
11559
11670
  [exports.AlertCategory.RATE_LIMIT]: 'Rate Limit Alerts',
11671
+ [exports.AlertCategory.CUSTOMER_RATE_LIMIT]: 'Customer Rate Limit Alerts',
11560
11672
  [exports.AlertCategory.USAGE]: 'Usage Alerts',
11561
11673
  [exports.AlertCategory.TEST]: 'Test',
11562
11674
  };
@@ -11587,6 +11699,49 @@ exports.WorkspaceNotificationType = void 0;
11587
11699
  WorkspaceNotificationType["CopilotActivity"] = "copilot-activity";
11588
11700
  WorkspaceNotificationType["LocalClientUpdate"] = "local-client-update";
11589
11701
  })(exports.WorkspaceNotificationType || (exports.WorkspaceNotificationType = {}));
11702
+ exports.ParallelExecutionLimits = void 0;
11703
+ (function (ParallelExecutionLimits) {
11704
+ ParallelExecutionLimits["ParallelEventPulls"] = "parallelEventPulls";
11705
+ ParallelExecutionLimits["ParallelIncrementalEventPullsPerConnection"] = "parallelIncrementalEventPullsPerConnection";
11706
+ ParallelExecutionLimits["ParallelFullSyncEventPullsPerConnection"] = "parallelFullSyncEventPullsPerConnection";
11707
+ ParallelExecutionLimits["ParallelFlowRuns"] = "parallelFlowRuns";
11708
+ ParallelExecutionLimits["ParallelFlowRunsPerConnection"] = "parallelFlowRunsPerConnection";
11709
+ ParallelExecutionLimits["ParallelApiRequests"] = "parallelApiRequests";
11710
+ ParallelExecutionLimits["ParallelSseRequests"] = "parallelSseRequests";
11711
+ ParallelExecutionLimits["ParallelBackgroundJobs"] = "parallelBackgroundJobs";
11712
+ ParallelExecutionLimits["ParallelEventLogs"] = "parallelEventLogs";
11713
+ ParallelExecutionLimits["ParallelEventLogsPerConnection"] = "parallelEventLogsPerConnection";
11714
+ ParallelExecutionLimits["ParallelPathfinderAgentSessions"] = "parallelPathfinderAgentSessions";
11715
+ ParallelExecutionLimits["ParallelInstantTasksActiveJobs"] = "parallelInstantTasksActiveJobs";
11716
+ })(exports.ParallelExecutionLimits || (exports.ParallelExecutionLimits = {}));
11717
+ exports.RateLimits = void 0;
11718
+ (function (RateLimits) {
11719
+ RateLimits["fileUploadsMbPerHour"] = "fileUploadsMbPerHour";
11720
+ RateLimits["ApiRequestsPerSecond"] = "apiRequestsPerSecond";
11721
+ RateLimits["ApiRequestsPerHour"] = "apiRequestsPerHour";
11722
+ RateLimits["WebhookRequestsPerSecond"] = "webhookRequestsPerSecond";
11723
+ RateLimits["WebhookRequestsPerHour"] = "webhookRequestsPerHour";
11724
+ RateLimits["WorkspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
11725
+ RateLimits["WorkspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
11726
+ RateLimits["ExternalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
11727
+ })(exports.RateLimits || (exports.RateLimits = {}));
11728
+ exports.WorkspaceSizeLimits = void 0;
11729
+ (function (WorkspaceSizeLimits) {
11730
+ WorkspaceSizeLimits["TotalNumberOfCustomers"] = "totalNumberOfCustomers";
11731
+ WorkspaceSizeLimits["TotalNumberOfConnections"] = "totalNumberOfConnections";
11732
+ WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
11733
+ WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
11734
+ WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
11735
+ })(exports.WorkspaceSizeLimits || (exports.WorkspaceSizeLimits = {}));
11736
+ exports.CustomerLimits = void 0;
11737
+ (function (CustomerLimits) {
11738
+ CustomerLimits["ParallelApiRequestsPerCustomer"] = "parallelApiRequestsPerCustomer";
11739
+ CustomerLimits["ParallelBackgroundJobsPerCustomer"] = "parallelBackgroundJobsPerCustomer";
11740
+ CustomerLimits["ApiRequestsPerCustomerPerSecond"] = "apiRequestsPerCustomerPerSecond";
11741
+ CustomerLimits["ApiRequestsPerCustomerPerHour"] = "apiRequestsPerCustomerPerHour";
11742
+ CustomerLimits["WebhookRequestsPerCustomerPerSecond"] = "webhookRequestsPerCustomerPerSecond";
11743
+ CustomerLimits["WebhookRequestsPerCustomerPerHour"] = "webhookRequestsPerCustomerPerHour";
11744
+ })(exports.CustomerLimits || (exports.CustomerLimits = {}));
11590
11745
  exports.LimitUnits = void 0;
11591
11746
  (function (LimitUnits) {
11592
11747
  LimitUnits["Number"] = "number";
@@ -11610,6 +11765,7 @@ const WorkspaceLimitsSchema = z.object({
11610
11765
  parallelEventLogs: WorkspaceLimit.optional(),
11611
11766
  parallelEventLogsPerConnection: WorkspaceLimit.optional(),
11612
11767
  parallelInstantTasksActiveJobs: WorkspaceLimit.optional(),
11768
+ parallelPathfinderAgentSessions: WorkspaceLimit.optional(),
11613
11769
  ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
11614
11770
  fileUploadsMbPerHour: WorkspaceLimit.optional(),
11615
11771
  apiRequestsPerSecond: WorkspaceLimit.optional(),
@@ -11635,18 +11791,19 @@ const WorkspaceLimitsSchema = z.object({
11635
11791
  updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
11636
11792
  parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
11637
11793
  });
11638
- const EngineWorkspaceSettingsSchema = z.object({
11794
+ const WorkspaceSettingsSchema = z.object({
11639
11795
  enableApiLogs: z.boolean().optional(),
11640
11796
  enableWebhookLogs: z.boolean().optional(),
11641
11797
  enableActionRunLogs: z.boolean().optional(),
11642
11798
  disableSecretKeyAuth: z.boolean().optional(),
11643
11799
  useMembraneUniverse: z.boolean().optional(),
11644
11800
  });
11801
+ const EngineWorkspaceSettingsSchema = WorkspaceSettingsSchema;
11645
11802
  const WorkspacePublicKey = z.object({
11646
11803
  name: z.string(),
11647
11804
  publicKey: z.string(),
11648
11805
  });
11649
- const AppSchema = z.object({
11806
+ const Workspace = z.object({
11650
11807
  id: z.string(),
11651
11808
  key: z.string(),
11652
11809
  logoUri: z.string().optional(),
@@ -11666,7 +11823,7 @@ const AppSchema = z.object({
11666
11823
  connectorRevision: z.string().optional(),
11667
11824
  featureFlags: z.array(z.string()).optional(),
11668
11825
  limits: WorkspaceLimitsSchema.optional(),
11669
- settings: EngineWorkspaceSettingsSchema.optional(),
11826
+ settings: WorkspaceSettingsSchema.optional(),
11670
11827
  alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
11671
11828
  type: z.nativeEnum(exports.WorkspaceType).optional(),
11672
11829
  jwksUri: z.string().nullable().optional(),
@@ -11674,7 +11831,9 @@ const AppSchema = z.object({
11674
11831
  isThrottled: z.boolean().optional(),
11675
11832
  isDisabled: z.boolean().optional(),
11676
11833
  isBackgroundJobsDisabled: z.boolean().optional(),
11834
+ lastExternalApiRequestDate: z.string().nullable().optional(),
11677
11835
  });
11836
+ const AppSchema = Workspace;
11678
11837
 
11679
11838
  const PARALLEL_EXECUTION_LIMITS = [
11680
11839
  'parallelEventPulls',
@@ -14271,7 +14430,9 @@ exports.ActionInstancesAccessor = ActionInstancesAccessor;
14271
14430
  exports.ActionRunError = ActionRunError;
14272
14431
  exports.ActionRunLogRecordApiResponse = ActionRunLogRecordApiResponse;
14273
14432
  exports.ActionRunResponse = ActionRunResponse;
14433
+ exports.ActionRunsStatsQuery = ActionRunsStatsQuery;
14274
14434
  exports.ActionsAccessor = ActionsAccessor;
14435
+ exports.ActivityStatsQuery = ActivityStatsQuery;
14275
14436
  exports.AgentSession = AgentSession;
14276
14437
  exports.AgentSessionInputSchema = AgentSessionInputSchema;
14277
14438
  exports.AlertDeliverySettingsSchema = AlertDeliverySettingsSchema;
@@ -14582,6 +14743,7 @@ exports.FlowRunLaunchedBy = FlowRunLaunchedBy;
14582
14743
  exports.FlowRunLaunchedByApi = FlowRunLaunchedByApi;
14583
14744
  exports.FlowRunNode = FlowRunNode;
14584
14745
  exports.FlowRunsAccessor = FlowRunsAccessor;
14746
+ exports.FlowRunsStatsQuery = FlowRunsStatsQuery;
14585
14747
  exports.FlowsAccessor = FlowsAccessor;
14586
14748
  exports.Formula = Formula;
14587
14749
  exports.FullPlatformUser = FullPlatformUser;
@@ -14605,6 +14767,7 @@ exports.IntegrationAuthOption = IntegrationAuthOption;
14605
14767
  exports.IntegrationAuthUi = IntegrationAuthUi;
14606
14768
  exports.IntegrationEditableProperties = IntegrationEditableProperties;
14607
14769
  exports.IntegrationExportProperties = IntegrationExportProperties;
14770
+ exports.IntegrationLayerStatsQuery = IntegrationLayerStatsQuery;
14608
14771
  exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
14609
14772
  exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
14610
14773
  exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
@@ -14614,6 +14777,8 @@ exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMapping
14614
14777
  exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
14615
14778
  exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
14616
14779
  exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
14780
+ exports.IntegrationOptionConfig = IntegrationOptionConfig;
14781
+ exports.IntegrationOptions = IntegrationOptions;
14617
14782
  exports.IntegrationSpecificElementSelector = IntegrationSpecificElementSelector;
14618
14783
  exports.IntegrationsAccessor = IntegrationsAccessor;
14619
14784
  exports.InternalError = InternalError;
@@ -14671,6 +14836,7 @@ exports.PaginationResponse = PaginationResponse;
14671
14836
  exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
14672
14837
  exports.PlatformUserSchema = PlatformUserSchema;
14673
14838
  exports.RATE_LIMITS = RATE_LIMITS;
14839
+ exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
14674
14840
  exports.RateLimitExceededError = RateLimitExceededError;
14675
14841
  exports.RequestMappingSchema = RequestMappingSchema;
14676
14842
  exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
@@ -14688,6 +14854,7 @@ exports.ScreenBlock = ScreenBlock;
14688
14854
  exports.ScreensAccessor = ScreensAccessor;
14689
14855
  exports.SearchQuery = SearchQuery;
14690
14856
  exports.SelfAccessor = SelfAccessor;
14857
+ exports.StatsFilterQuery = StatsFilterQuery;
14691
14858
  exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
14692
14859
  exports.UnitRunError = UnitRunError;
14693
14860
  exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
@@ -14706,11 +14873,13 @@ exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
14706
14873
  exports.UserAccessor = UserAccessor;
14707
14874
  exports.UsersAccessor = UsersAccessor;
14708
14875
  exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
14876
+ exports.Workspace = Workspace;
14709
14877
  exports.WorkspaceElementSearchQuery = WorkspaceElementSearchQuery;
14710
14878
  exports.WorkspaceElementSearchResult = WorkspaceElementSearchResult;
14711
14879
  exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
14712
14880
  exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
14713
14881
  exports.WorkspacePublicKey = WorkspacePublicKey;
14882
+ exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
14714
14883
  exports.WritableConnectorVersionData = WritableConnectorVersionData;
14715
14884
  exports.WritablePackageVersionData = WritablePackageVersionData;
14716
14885
  exports.WriteableConnectorFields = WriteableConnectorFields;
@@ -14764,6 +14933,7 @@ exports.getEffectiveConnectorOption = getEffectiveConnectorOption;
14764
14933
  exports.getElementSelector = getElementSelector;
14765
14934
  exports.getErrorFromData = getErrorFromData;
14766
14935
  exports.getEventMethodFileKey = getEventMethodFileKey;
14936
+ exports.getFilterFieldMeta = getFilterFieldMeta;
14767
14937
  exports.getFilterFieldValuesByLocator = getFilterFieldValuesByLocator;
14768
14938
  exports.getFlowInstanceNodeDependency = getFlowInstanceNodeDependency;
14769
14939
  exports.getFlowNode = getFlowNode;