@membranehq/sdk 0.9.3 → 0.9.5

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 (42) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/bundle.d.ts +28 -6
  4. package/dist/dts/agent/session.d.ts +3 -2
  5. package/dist/dts/apps/types.d.ts +2 -372
  6. package/dist/dts/auth/index.d.ts +2 -2
  7. package/dist/dts/errors/index.d.ts +1 -0
  8. package/dist/dts/orgs/types.d.ts +16 -3
  9. package/dist/dts/sse/workspace-elements.d.ts +9 -4
  10. package/dist/dts/webhooks/types.d.ts +3 -2
  11. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +1 -0
  12. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +1 -0
  13. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +1 -0
  14. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
  15. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +24 -7
  16. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
  17. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
  18. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
  19. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +20 -0
  20. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +28 -0
  21. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +17 -1
  22. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
  23. package/dist/dts/workspace-elements/index.d.ts +0 -1
  24. package/dist/dts/workspaces/compare.d.ts +22 -0
  25. package/dist/dts/workspaces/compare.test.d.ts +1 -0
  26. package/dist/dts/workspaces/index.d.ts +1 -0
  27. package/dist/dts/workspaces/types.d.ts +432 -63
  28. package/dist/index.browser.d.mts +1397 -1269
  29. package/dist/index.browser.d.ts +1397 -1269
  30. package/dist/index.browser.js +1203 -1108
  31. package/dist/index.browser.js.map +1 -1
  32. package/dist/index.browser.mjs +238 -155
  33. package/dist/index.browser.mjs.map +1 -1
  34. package/dist/index.node.d.mts +1397 -1269
  35. package/dist/index.node.d.ts +1397 -1269
  36. package/dist/index.node.js +1208 -1113
  37. package/dist/index.node.js.map +1 -1
  38. package/dist/index.node.mjs +238 -155
  39. package/dist/index.node.mjs.map +1 -1
  40. package/package.json +3 -3
  41. package/dist/dts/workspace-elements/compare.d.ts +0 -16
  42. /package/dist/dts/{workspace-elements/compare.test.d.ts → backward-compat.test.d.ts} +0 -0
@@ -106,6 +106,7 @@ declare class CustomCodeError extends MembraneError {
106
106
  declare class InsufficientCreditsError extends MembraneError {
107
107
  constructor(arg: ErrorConstructorArg);
108
108
  }
109
+ declare const IntegrationAppError: typeof MembraneError;
109
110
 
110
111
  interface ConfigurationStateResult {
111
112
  state: ConfigurationState;
@@ -3652,6 +3653,22 @@ declare enum DataLinkDirection {
3652
3653
  EXPORT = "export",
3653
3654
  BOTH = "both"
3654
3655
  }
3656
+ declare const DataLinkTableEditableProperties: z.ZodObject<{
3657
+ uuid: z.ZodOptional<z.ZodString>;
3658
+ key: z.ZodOptional<z.ZodString>;
3659
+ name: z.ZodOptional<z.ZodString>;
3660
+ description: z.ZodOptional<z.ZodString>;
3661
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3662
+ }, z.core.$strip>;
3663
+ type DataLinkTableEditableProperties = z.infer<typeof DataLinkTableEditableProperties>;
3664
+ declare const DataLinkTableExportProperties: z.ZodObject<{
3665
+ uuid: z.ZodOptional<z.ZodString>;
3666
+ key: z.ZodOptional<z.ZodString>;
3667
+ name: z.ZodOptional<z.ZodString>;
3668
+ description: z.ZodOptional<z.ZodString>;
3669
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3670
+ }, z.core.$strip>;
3671
+ type DataLinkTableExportProperties = z.infer<typeof DataLinkTableExportProperties>;
3655
3672
  declare const BaseDataLinkTable: z.ZodObject<{
3656
3673
  id: z.ZodString;
3657
3674
  uuid: z.ZodOptional<z.ZodString>;
@@ -3664,8 +3681,8 @@ declare const BaseDataLinkTable: z.ZodObject<{
3664
3681
  revision: z.ZodOptional<z.ZodString>;
3665
3682
  createdAt: z.ZodOptional<z.ZodString>;
3666
3683
  updatedAt: z.ZodOptional<z.ZodString>;
3667
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
3668
3684
  archivedAt: z.ZodOptional<z.ZodString>;
3685
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
3669
3686
  }, z.core.$strip>;
3670
3687
  type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;
3671
3688
 
@@ -3717,6 +3734,7 @@ declare const BaseAppEventType: z.ZodObject<{
3717
3734
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3718
3735
  revision: z.ZodString;
3719
3736
  archivedAt: z.ZodOptional<z.ZodString>;
3737
+ webhookKey: z.ZodString;
3720
3738
  subscribeRequest: z.ZodOptional<z.ZodObject<{
3721
3739
  method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof HttpRequestMethod>>>;
3722
3740
  uri: z.ZodAny;
@@ -3731,6 +3749,33 @@ declare const BaseAppEventType: z.ZodObject<{
3731
3749
  userIdFormula: z.ZodOptional<z.ZodAny>;
3732
3750
  }, z.core.$strip>;
3733
3751
  type BaseAppEventType = z.infer<typeof BaseAppEventType>;
3752
+ declare const AppEventTypeEditableProperties: z.ZodObject<{
3753
+ uuid: z.ZodOptional<z.ZodString>;
3754
+ key: z.ZodOptional<z.ZodString>;
3755
+ name: z.ZodOptional<z.ZodString>;
3756
+ description: z.ZodOptional<z.ZodString>;
3757
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3758
+ schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
3759
+ example: z.ZodOptional<z.ZodAny>;
3760
+ tenantIdFormula: z.ZodOptional<z.ZodAny>;
3761
+ userIdFormula: z.ZodOptional<z.ZodAny>;
3762
+ subscribeRequest: z.ZodOptional<z.ZodObject<{
3763
+ method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof HttpRequestMethod>>>;
3764
+ uri: z.ZodAny;
3765
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3766
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3767
+ body: z.ZodOptional<z.ZodAny>;
3768
+ }, z.core.$strip>>;
3769
+ }, z.core.$strip>;
3770
+ type AppEventTypeEditableProperties = z.infer<typeof AppEventTypeEditableProperties>;
3771
+ declare const AppEventTypeExportProperties: z.ZodObject<{
3772
+ uuid: z.ZodOptional<z.ZodString>;
3773
+ key: z.ZodOptional<z.ZodString>;
3774
+ name: z.ZodOptional<z.ZodString>;
3775
+ description: z.ZodOptional<z.ZodString>;
3776
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3777
+ }, z.core.$strip>;
3778
+ type AppEventTypeExportProperties = z.infer<typeof AppEventTypeExportProperties>;
3734
3779
 
3735
3780
  declare const BaseAppEventSubscription: z.ZodObject<{
3736
3781
  id: z.ZodString;
@@ -3781,6 +3826,26 @@ declare const BaseAppDataSchema: z.ZodObject<{
3781
3826
  revision: z.ZodOptional<z.ZodString>;
3782
3827
  }, z.core.$strip>;
3783
3828
  type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
3829
+ declare const AppDataSchemaEditableProperties: z.ZodObject<{
3830
+ uuid: z.ZodOptional<z.ZodString>;
3831
+ key: z.ZodOptional<z.ZodString>;
3832
+ name: z.ZodOptional<z.ZodString>;
3833
+ description: z.ZodOptional<z.ZodString>;
3834
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3835
+ schema: z.ZodAny;
3836
+ code: z.ZodOptional<z.ZodString>;
3837
+ }, z.core.$strip>;
3838
+ type AppDataSchemaEditableProperties = z.infer<typeof AppDataSchemaEditableProperties>;
3839
+ declare const AppDataSchemaExportProperties: z.ZodObject<{
3840
+ uuid: z.ZodOptional<z.ZodString>;
3841
+ key: z.ZodOptional<z.ZodString>;
3842
+ name: z.ZodOptional<z.ZodString>;
3843
+ description: z.ZodOptional<z.ZodString>;
3844
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3845
+ schema: z.ZodAny;
3846
+ code: z.ZodOptional<z.ZodString>;
3847
+ }, z.core.$strip>;
3848
+ type AppDataSchemaExportProperties = z.infer<typeof AppDataSchemaExportProperties>;
3784
3849
 
3785
3850
  declare const BaseAppDataSchemaInstance: z.ZodObject<{
3786
3851
  id: z.ZodString;
@@ -3868,6 +3933,7 @@ declare const BaseExternalEventSubscription: z.ZodObject<{
3868
3933
  nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
3869
3934
  globalWebhookKey: z.ZodOptional<z.ZodString>;
3870
3935
  globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
3936
+ webhookUri: z.ZodOptional<z.ZodString>;
3871
3937
  }, z.core.$strip>;
3872
3938
  type BaseExternalEventSubscription = z.infer<typeof BaseExternalEventSubscription>;
3873
3939
 
@@ -7089,8 +7155,8 @@ declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
7089
7155
  revision: z.ZodOptional<z.ZodString>;
7090
7156
  createdAt: z.ZodOptional<z.ZodString>;
7091
7157
  updatedAt: z.ZodOptional<z.ZodString>;
7092
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
7093
7158
  archivedAt: z.ZodOptional<z.ZodString>;
7159
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
7094
7160
  }, z.core.$strip>>;
7095
7161
  connection: z.ZodOptional<z.ZodObject<{
7096
7162
  id: z.ZodString;
@@ -7250,6 +7316,7 @@ declare const AppEventSubscriptionApiResponse: z.ZodObject<{
7250
7316
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
7251
7317
  revision: z.ZodString;
7252
7318
  archivedAt: z.ZodOptional<z.ZodString>;
7319
+ webhookKey: z.ZodString;
7253
7320
  subscribeRequest: z.ZodOptional<z.ZodObject<{
7254
7321
  method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof HttpRequestMethod>>>;
7255
7322
  uri: z.ZodAny;
@@ -7376,6 +7443,16 @@ declare class AppDataSchemaInstanceAccessor extends ElementInstanceAccessor<AppD
7376
7443
  setup(): Promise<void>;
7377
7444
  }
7378
7445
 
7446
+ declare const ListExternalEventSubscriptionsQuery: z.ZodObject<{
7447
+ search: z.ZodOptional<z.ZodString>;
7448
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
7449
+ cursor: z.ZodOptional<z.ZodString>;
7450
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
7451
+ userId: z.ZodOptional<z.ZodString>;
7452
+ connectionId: z.ZodOptional<z.ZodString>;
7453
+ integrationId: z.ZodOptional<z.ZodString>;
7454
+ }, z.core.$strip>;
7455
+ type ListExternalEventSubscriptionsQuery = z.infer<typeof ListExternalEventSubscriptionsQuery>;
7379
7456
  declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
7380
7457
  id: z.ZodString;
7381
7458
  name: z.ZodOptional<z.ZodString>;
@@ -7411,6 +7488,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
7411
7488
  nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
7412
7489
  globalWebhookKey: z.ZodOptional<z.ZodString>;
7413
7490
  globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
7491
+ webhookUri: z.ZodOptional<z.ZodString>;
7414
7492
  user: z.ZodOptional<z.ZodObject<{
7415
7493
  id: z.ZodString;
7416
7494
  name: z.ZodString;
@@ -8286,10 +8364,29 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
8286
8364
  type ActionRunLogRecordApiResponse = z.infer<typeof ActionRunLogRecordApiResponse>;
8287
8365
  type ActionRunLogRecord = ActionRunLogRecordApiResponse;
8288
8366
 
8289
- interface FindDataLinkTablesQuery extends PaginationQuery {
8290
- }
8291
- type CreateDataLinkTableRequest = Omit<BaseDataLinkTable, 'id' | 'userId'>;
8292
- type UpdateDataLinkTableRequest = CreateDataLinkTableRequest;
8367
+ declare const FindDataLinkTablesQuery: z.ZodObject<{
8368
+ search: z.ZodOptional<z.ZodString>;
8369
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8370
+ cursor: z.ZodOptional<z.ZodString>;
8371
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
8372
+ }, z.core.$strip>;
8373
+ type FindDataLinkTablesQuery = z.infer<typeof FindDataLinkTablesQuery>;
8374
+ declare const CreateDataLinkTableRequest: z.ZodObject<{
8375
+ uuid: z.ZodOptional<z.ZodString>;
8376
+ key: z.ZodOptional<z.ZodString>;
8377
+ name: z.ZodOptional<z.ZodString>;
8378
+ description: z.ZodOptional<z.ZodString>;
8379
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8380
+ }, z.core.$strip>;
8381
+ type CreateDataLinkTableRequest = z.infer<typeof CreateDataLinkTableRequest>;
8382
+ declare const UpdateDataLinkTableRequest: z.ZodObject<{
8383
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8384
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8385
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8386
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8387
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8388
+ }, z.core.$strip>;
8389
+ type UpdateDataLinkTableRequest = z.infer<typeof UpdateDataLinkTableRequest>;
8293
8390
  declare const DataLinkTableApiResponse: z.ZodObject<{
8294
8391
  id: z.ZodString;
8295
8392
  uuid: z.ZodOptional<z.ZodString>;
@@ -8302,8 +8399,8 @@ declare const DataLinkTableApiResponse: z.ZodObject<{
8302
8399
  revision: z.ZodOptional<z.ZodString>;
8303
8400
  createdAt: z.ZodOptional<z.ZodString>;
8304
8401
  updatedAt: z.ZodOptional<z.ZodString>;
8305
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
8306
8402
  archivedAt: z.ZodOptional<z.ZodString>;
8403
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
8307
8404
  }, z.core.$strip>;
8308
8405
  type DataLinkTableApiResponse = z.infer<typeof DataLinkTableApiResponse>;
8309
8406
  type DataLinkTable = DataLinkTableApiResponse;
@@ -8346,6 +8443,7 @@ declare const AppEventTypeApiResponse: z.ZodObject<{
8346
8443
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
8347
8444
  revision: z.ZodString;
8348
8445
  archivedAt: z.ZodOptional<z.ZodString>;
8446
+ webhookKey: z.ZodString;
8349
8447
  subscribeRequest: z.ZodOptional<z.ZodObject<{
8350
8448
  method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof HttpRequestMethod>>>;
8351
8449
  uri: z.ZodAny;
@@ -8402,10 +8500,12 @@ declare const ListExternalEventLogRecordsQuery: z.ZodObject<{
8402
8500
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8403
8501
  cursor: z.ZodOptional<z.ZodString>;
8404
8502
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
8503
+ userId: z.ZodOptional<z.ZodString>;
8405
8504
  connectionId: z.ZodOptional<z.ZodString>;
8406
8505
  integrationId: z.ZodOptional<z.ZodString>;
8407
8506
  externalEventSubscriptionId: z.ZodOptional<z.ZodString>;
8408
8507
  status: z.ZodOptional<z.ZodEnum<typeof ExternalEventLogStatus>>;
8508
+ startedAfter: z.ZodOptional<z.ZodString>;
8409
8509
  }, z.core.$strip>;
8410
8510
  type ListExternalEventLogRecordsQuery = z.infer<typeof ListExternalEventLogRecordsQuery>;
8411
8511
  declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
@@ -8467,6 +8567,7 @@ declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
8467
8567
  nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
8468
8568
  globalWebhookKey: z.ZodOptional<z.ZodString>;
8469
8569
  globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
8570
+ webhookUri: z.ZodOptional<z.ZodString>;
8470
8571
  }, z.core.$strip>>;
8471
8572
  integration: z.ZodOptional<z.ZodObject<{
8472
8573
  id: z.ZodString;
@@ -8605,6 +8706,7 @@ declare const ExternalEventPullApiResponse: z.ZodObject<{
8605
8706
  nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
8606
8707
  globalWebhookKey: z.ZodOptional<z.ZodString>;
8607
8708
  globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
8709
+ webhookUri: z.ZodOptional<z.ZodString>;
8608
8710
  }, z.core.$strip>>;
8609
8711
  integration: z.ZodOptional<z.ZodObject<{
8610
8712
  id: z.ZodString;
@@ -8703,6 +8805,7 @@ declare const AppEventLogRecordApiResponse: z.ZodObject<{
8703
8805
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
8704
8806
  revision: z.ZodString;
8705
8807
  archivedAt: z.ZodOptional<z.ZodString>;
8808
+ webhookKey: z.ZodString;
8706
8809
  subscribeRequest: z.ZodOptional<z.ZodObject<{
8707
8810
  method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof HttpRequestMethod>>>;
8708
8811
  uri: z.ZodAny;
@@ -8771,22 +8874,6 @@ declare function getParentNodeKeys(flow: Flow | FlowInstance, nodeKey: string):
8771
8874
  declare function getUpstreamNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
8772
8875
  declare function hasCycles(nodes?: Record<string, FlowNode>): boolean;
8773
8876
 
8774
- declare enum WorkspaceElementChangeType {
8775
- CREATE = "create",
8776
- UPDATE = "update",
8777
- DELETE = "delete"
8778
- }
8779
- interface WorkspaceElementChange {
8780
- type: WorkspaceElementChangeType;
8781
- uuid: string;
8782
- }
8783
- interface WorkspaceExportComparison {
8784
- [WorkspaceElementChangeType.CREATE]: Set<string>;
8785
- [WorkspaceElementChangeType.UPDATE]: Set<string>;
8786
- [WorkspaceElementChangeType.DELETE]: Set<string>;
8787
- }
8788
- declare function compareWorkspaceExports(primaryExport: Partial<Record<WorkspaceElementType, any[]>>, targetExport: Partial<Record<WorkspaceElementType, any[]>>): WorkspaceExportComparison;
8789
-
8790
8877
  interface WorkspaceElementSpec {
8791
8878
  type: WorkspaceElementType;
8792
8879
  apiPath: string;
@@ -8829,467 +8916,21 @@ interface IWorkspaceUpdate {
8829
8916
  apiRequestQuery: Record<string, any>;
8830
8917
  }
8831
8918
 
8832
- interface App {
8833
- id: string;
8834
- apiDocsUri: string;
8835
- appUri: string;
8836
- categories: string[];
8837
- defaultConnectorId: string;
8838
- key: string;
8839
- logoUri: string;
8840
- name: string;
8841
- popularity: number;
8842
- uuid: string;
8843
- knowledgeBaseUuid?: string;
8844
- hasFreeTestAccount?: boolean;
8845
- freeTestAccountGuide?: string;
8846
- isPublic?: boolean;
8847
- isReadOnly: boolean;
8848
- }
8849
- interface AppCategory {
8850
- count: number;
8851
- category: string;
8919
+ declare enum WorkspaceType {
8920
+ PRODUCTION = "production",
8921
+ DEVELOPMENT = "development"
8852
8922
  }
8853
- declare const WorkspaceLimitsSchema: z.ZodObject<{
8854
- parallelEventPulls: z.ZodOptional<z.ZodObject<{
8855
- value: z.ZodOptional<z.ZodNumber>;
8856
- defaultValue: z.ZodOptional<z.ZodNumber>;
8857
- unit: z.ZodEnum<typeof LimitUnits>;
8858
- }, z.core.$strip>>;
8859
- parallelIncrementalEventPullsPerConnection: z.ZodOptional<z.ZodObject<{
8860
- value: z.ZodOptional<z.ZodNumber>;
8861
- defaultValue: z.ZodOptional<z.ZodNumber>;
8862
- unit: z.ZodEnum<typeof LimitUnits>;
8863
- }, z.core.$strip>>;
8864
- parallelFullSyncEventPullsPerConnection: z.ZodOptional<z.ZodObject<{
8865
- value: z.ZodOptional<z.ZodNumber>;
8866
- defaultValue: z.ZodOptional<z.ZodNumber>;
8867
- unit: z.ZodEnum<typeof LimitUnits>;
8868
- }, z.core.$strip>>;
8869
- parallelFlowRuns: z.ZodOptional<z.ZodObject<{
8870
- value: z.ZodOptional<z.ZodNumber>;
8871
- defaultValue: z.ZodOptional<z.ZodNumber>;
8872
- unit: z.ZodEnum<typeof LimitUnits>;
8873
- }, z.core.$strip>>;
8874
- parallelFlowRunsPerConnection: z.ZodOptional<z.ZodObject<{
8875
- value: z.ZodOptional<z.ZodNumber>;
8876
- defaultValue: z.ZodOptional<z.ZodNumber>;
8877
- unit: z.ZodEnum<typeof LimitUnits>;
8878
- }, z.core.$strip>>;
8879
- parallelApiRequests: z.ZodOptional<z.ZodObject<{
8880
- value: z.ZodOptional<z.ZodNumber>;
8881
- defaultValue: z.ZodOptional<z.ZodNumber>;
8882
- unit: z.ZodEnum<typeof LimitUnits>;
8883
- }, z.core.$strip>>;
8884
- parallelSseRequests: z.ZodOptional<z.ZodObject<{
8885
- value: z.ZodOptional<z.ZodNumber>;
8886
- defaultValue: z.ZodOptional<z.ZodNumber>;
8887
- unit: z.ZodEnum<typeof LimitUnits>;
8888
- }, z.core.$strip>>;
8889
- parallelBackgroundJobs: z.ZodOptional<z.ZodObject<{
8890
- value: z.ZodOptional<z.ZodNumber>;
8891
- defaultValue: z.ZodOptional<z.ZodNumber>;
8892
- unit: z.ZodEnum<typeof LimitUnits>;
8893
- }, z.core.$strip>>;
8894
- parallelEventLogs: z.ZodOptional<z.ZodObject<{
8895
- value: z.ZodOptional<z.ZodNumber>;
8896
- defaultValue: z.ZodOptional<z.ZodNumber>;
8897
- unit: z.ZodEnum<typeof LimitUnits>;
8898
- }, z.core.$strip>>;
8899
- parallelEventLogsPerConnection: z.ZodOptional<z.ZodObject<{
8900
- value: z.ZodOptional<z.ZodNumber>;
8901
- defaultValue: z.ZodOptional<z.ZodNumber>;
8902
- unit: z.ZodEnum<typeof LimitUnits>;
8903
- }, z.core.$strip>>;
8904
- ParallelWriteDatabaseRequests: z.ZodOptional<z.ZodObject<{
8905
- value: z.ZodOptional<z.ZodNumber>;
8906
- defaultValue: z.ZodOptional<z.ZodNumber>;
8907
- unit: z.ZodEnum<typeof LimitUnits>;
8908
- }, z.core.$strip>>;
8909
- fileUploadsMbPerHour: z.ZodOptional<z.ZodObject<{
8910
- value: z.ZodOptional<z.ZodNumber>;
8911
- defaultValue: z.ZodOptional<z.ZodNumber>;
8912
- unit: z.ZodEnum<typeof LimitUnits>;
8913
- }, z.core.$strip>>;
8914
- apiRequestsPerSecond: z.ZodOptional<z.ZodObject<{
8915
- value: z.ZodOptional<z.ZodNumber>;
8916
- defaultValue: z.ZodOptional<z.ZodNumber>;
8917
- unit: z.ZodEnum<typeof LimitUnits>;
8918
- }, z.core.$strip>>;
8919
- apiRequestsPerHour: z.ZodOptional<z.ZodObject<{
8920
- value: z.ZodOptional<z.ZodNumber>;
8921
- defaultValue: z.ZodOptional<z.ZodNumber>;
8922
- unit: z.ZodEnum<typeof LimitUnits>;
8923
- }, z.core.$strip>>;
8924
- webhookRequestsPerSecond: z.ZodOptional<z.ZodObject<{
8925
- value: z.ZodOptional<z.ZodNumber>;
8926
- defaultValue: z.ZodOptional<z.ZodNumber>;
8927
- unit: z.ZodEnum<typeof LimitUnits>;
8928
- }, z.core.$strip>>;
8929
- webhookRequestsPerHour: z.ZodOptional<z.ZodObject<{
8930
- value: z.ZodOptional<z.ZodNumber>;
8931
- defaultValue: z.ZodOptional<z.ZodNumber>;
8932
- unit: z.ZodEnum<typeof LimitUnits>;
8933
- }, z.core.$strip>>;
8934
- workspaceElementCreationsPerSecond: z.ZodOptional<z.ZodObject<{
8935
- value: z.ZodOptional<z.ZodNumber>;
8936
- defaultValue: z.ZodOptional<z.ZodNumber>;
8937
- unit: z.ZodEnum<typeof LimitUnits>;
8938
- }, z.core.$strip>>;
8939
- workspaceElementCreationsPerHour: z.ZodOptional<z.ZodObject<{
8940
- value: z.ZodOptional<z.ZodNumber>;
8941
- defaultValue: z.ZodOptional<z.ZodNumber>;
8942
- unit: z.ZodEnum<typeof LimitUnits>;
8943
- }, z.core.$strip>>;
8944
- createDatabaseRequestsPerSecond: z.ZodOptional<z.ZodObject<{
8945
- value: z.ZodOptional<z.ZodNumber>;
8946
- defaultValue: z.ZodOptional<z.ZodNumber>;
8947
- unit: z.ZodEnum<typeof LimitUnits>;
8948
- }, z.core.$strip>>;
8949
- totalNumberOfCustomers: z.ZodOptional<z.ZodObject<{
8950
- value: z.ZodOptional<z.ZodNumber>;
8951
- defaultValue: z.ZodOptional<z.ZodNumber>;
8952
- unit: z.ZodEnum<typeof LimitUnits>;
8953
- }, z.core.$strip>>;
8954
- totalNumberOfConnections: z.ZodOptional<z.ZodObject<{
8955
- value: z.ZodOptional<z.ZodNumber>;
8956
- defaultValue: z.ZodOptional<z.ZodNumber>;
8957
- unit: z.ZodEnum<typeof LimitUnits>;
8958
- }, z.core.$strip>>;
8959
- totalNumberOfWorkspaceElements: z.ZodOptional<z.ZodObject<{
8960
- value: z.ZodOptional<z.ZodNumber>;
8961
- defaultValue: z.ZodOptional<z.ZodNumber>;
8962
- unit: z.ZodEnum<typeof LimitUnits>;
8963
- }, z.core.$strip>>;
8964
- parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
8965
- value: z.ZodOptional<z.ZodNumber>;
8966
- defaultValue: z.ZodOptional<z.ZodNumber>;
8967
- unit: z.ZodEnum<typeof LimitUnits>;
8968
- }, z.core.$strip>>;
8969
- parallelBackgroundJobsPerCustomer: z.ZodOptional<z.ZodObject<{
8970
- value: z.ZodOptional<z.ZodNumber>;
8971
- defaultValue: z.ZodOptional<z.ZodNumber>;
8972
- unit: z.ZodEnum<typeof LimitUnits>;
8973
- }, z.core.$strip>>;
8974
- apiRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
8975
- value: z.ZodOptional<z.ZodNumber>;
8976
- defaultValue: z.ZodOptional<z.ZodNumber>;
8977
- unit: z.ZodEnum<typeof LimitUnits>;
8978
- }, z.core.$strip>>;
8979
- apiRequestsPerCustomerPerHour: z.ZodOptional<z.ZodObject<{
8980
- value: z.ZodOptional<z.ZodNumber>;
8981
- defaultValue: z.ZodOptional<z.ZodNumber>;
8982
- unit: z.ZodEnum<typeof LimitUnits>;
8983
- }, z.core.$strip>>;
8984
- webhookRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
8985
- value: z.ZodOptional<z.ZodNumber>;
8986
- defaultValue: z.ZodOptional<z.ZodNumber>;
8987
- unit: z.ZodEnum<typeof LimitUnits>;
8988
- }, z.core.$strip>>;
8989
- webhookRequestsPerCustomerPerHour: z.ZodOptional<z.ZodObject<{
8990
- value: z.ZodOptional<z.ZodNumber>;
8991
- defaultValue: z.ZodOptional<z.ZodNumber>;
8992
- unit: z.ZodEnum<typeof LimitUnits>;
8993
- }, z.core.$strip>>;
8994
- externalEventsPerCustomerPerDay: z.ZodOptional<z.ZodObject<{
8995
- value: z.ZodOptional<z.ZodNumber>;
8996
- defaultValue: z.ZodOptional<z.ZodNumber>;
8997
- unit: z.ZodEnum<typeof LimitUnits>;
8998
- }, z.core.$strip>>;
8999
- createDatabaseRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9000
- value: z.ZodOptional<z.ZodNumber>;
9001
- defaultValue: z.ZodOptional<z.ZodNumber>;
9002
- unit: z.ZodEnum<typeof LimitUnits>;
9003
- }, z.core.$strip>>;
9004
- updateDatabaseRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9005
- value: z.ZodOptional<z.ZodNumber>;
9006
- defaultValue: z.ZodOptional<z.ZodNumber>;
9007
- unit: z.ZodEnum<typeof LimitUnits>;
9008
- }, z.core.$strip>>;
9009
- parallelWriteDatabaseRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
9010
- value: z.ZodOptional<z.ZodNumber>;
9011
- defaultValue: z.ZodOptional<z.ZodNumber>;
9012
- unit: z.ZodEnum<typeof LimitUnits>;
9013
- }, z.core.$strip>>;
9014
- }, z.core.$strip>;
9015
- declare const EngineWorkspaceSettingsSchema: z.ZodObject<{
9016
- enableApiLogs: z.ZodOptional<z.ZodBoolean>;
9017
- enableWebhookLogs: z.ZodOptional<z.ZodBoolean>;
9018
- enableActionRunLogs: z.ZodOptional<z.ZodBoolean>;
9019
- disableSecretKeyAuth: z.ZodOptional<z.ZodBoolean>;
9020
- }, z.core.$strip>;
9021
- declare const AppPublicKey: z.ZodObject<{
9022
- name: z.ZodString;
9023
- publicKey: z.ZodString;
9024
- }, z.core.$strip>;
9025
- declare const AppSchema: z.ZodObject<{
9026
- id: z.ZodString;
9027
- key: z.ZodString;
9028
- logoUri: z.ZodOptional<z.ZodString>;
9029
- userFieldsSchema: z.ZodOptional<z.ZodAny>;
9030
- apiBaseUri: z.ZodOptional<z.ZodString>;
9031
- webhookUri: z.ZodOptional<z.ZodString>;
9032
- publicKey: z.ZodOptional<z.ZodString>;
9033
- publicKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
9034
- name: z.ZodString;
9035
- publicKey: z.ZodString;
9036
- }, z.core.$strip>>>;
9037
- enabledWebhookEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
9038
- auth: z.ZodOptional<z.ZodAny>;
9039
- credentialsSchema: z.ZodOptional<z.ZodAny>;
9040
- apiClient: z.ZodOptional<z.ZodAny>;
9041
- apiRequestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9042
- apiRequestQuery: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9043
- isOnPrem: z.ZodOptional<z.ZodBoolean>;
9044
- connectorBaseUri: z.ZodOptional<z.ZodString>;
9045
- connectorRevision: z.ZodOptional<z.ZodString>;
9046
- featureFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
9047
- limits: z.ZodOptional<z.ZodObject<{
9048
- parallelEventPulls: z.ZodOptional<z.ZodObject<{
9049
- value: z.ZodOptional<z.ZodNumber>;
9050
- defaultValue: z.ZodOptional<z.ZodNumber>;
9051
- unit: z.ZodEnum<typeof LimitUnits>;
9052
- }, z.core.$strip>>;
9053
- parallelIncrementalEventPullsPerConnection: z.ZodOptional<z.ZodObject<{
9054
- value: z.ZodOptional<z.ZodNumber>;
9055
- defaultValue: z.ZodOptional<z.ZodNumber>;
9056
- unit: z.ZodEnum<typeof LimitUnits>;
9057
- }, z.core.$strip>>;
9058
- parallelFullSyncEventPullsPerConnection: z.ZodOptional<z.ZodObject<{
9059
- value: z.ZodOptional<z.ZodNumber>;
9060
- defaultValue: z.ZodOptional<z.ZodNumber>;
9061
- unit: z.ZodEnum<typeof LimitUnits>;
9062
- }, z.core.$strip>>;
9063
- parallelFlowRuns: z.ZodOptional<z.ZodObject<{
9064
- value: z.ZodOptional<z.ZodNumber>;
9065
- defaultValue: z.ZodOptional<z.ZodNumber>;
9066
- unit: z.ZodEnum<typeof LimitUnits>;
9067
- }, z.core.$strip>>;
9068
- parallelFlowRunsPerConnection: z.ZodOptional<z.ZodObject<{
9069
- value: z.ZodOptional<z.ZodNumber>;
9070
- defaultValue: z.ZodOptional<z.ZodNumber>;
9071
- unit: z.ZodEnum<typeof LimitUnits>;
9072
- }, z.core.$strip>>;
9073
- parallelApiRequests: z.ZodOptional<z.ZodObject<{
9074
- value: z.ZodOptional<z.ZodNumber>;
9075
- defaultValue: z.ZodOptional<z.ZodNumber>;
9076
- unit: z.ZodEnum<typeof LimitUnits>;
9077
- }, z.core.$strip>>;
9078
- parallelSseRequests: z.ZodOptional<z.ZodObject<{
9079
- value: z.ZodOptional<z.ZodNumber>;
9080
- defaultValue: z.ZodOptional<z.ZodNumber>;
9081
- unit: z.ZodEnum<typeof LimitUnits>;
9082
- }, z.core.$strip>>;
9083
- parallelBackgroundJobs: z.ZodOptional<z.ZodObject<{
9084
- value: z.ZodOptional<z.ZodNumber>;
9085
- defaultValue: z.ZodOptional<z.ZodNumber>;
9086
- unit: z.ZodEnum<typeof LimitUnits>;
9087
- }, z.core.$strip>>;
9088
- parallelEventLogs: z.ZodOptional<z.ZodObject<{
9089
- value: z.ZodOptional<z.ZodNumber>;
9090
- defaultValue: z.ZodOptional<z.ZodNumber>;
9091
- unit: z.ZodEnum<typeof LimitUnits>;
9092
- }, z.core.$strip>>;
9093
- parallelEventLogsPerConnection: z.ZodOptional<z.ZodObject<{
9094
- value: z.ZodOptional<z.ZodNumber>;
9095
- defaultValue: z.ZodOptional<z.ZodNumber>;
9096
- unit: z.ZodEnum<typeof LimitUnits>;
9097
- }, z.core.$strip>>;
9098
- ParallelWriteDatabaseRequests: z.ZodOptional<z.ZodObject<{
9099
- value: z.ZodOptional<z.ZodNumber>;
9100
- defaultValue: z.ZodOptional<z.ZodNumber>;
9101
- unit: z.ZodEnum<typeof LimitUnits>;
9102
- }, z.core.$strip>>;
9103
- fileUploadsMbPerHour: z.ZodOptional<z.ZodObject<{
9104
- value: z.ZodOptional<z.ZodNumber>;
9105
- defaultValue: z.ZodOptional<z.ZodNumber>;
9106
- unit: z.ZodEnum<typeof LimitUnits>;
9107
- }, z.core.$strip>>;
9108
- apiRequestsPerSecond: z.ZodOptional<z.ZodObject<{
9109
- value: z.ZodOptional<z.ZodNumber>;
9110
- defaultValue: z.ZodOptional<z.ZodNumber>;
9111
- unit: z.ZodEnum<typeof LimitUnits>;
9112
- }, z.core.$strip>>;
9113
- apiRequestsPerHour: z.ZodOptional<z.ZodObject<{
9114
- value: z.ZodOptional<z.ZodNumber>;
9115
- defaultValue: z.ZodOptional<z.ZodNumber>;
9116
- unit: z.ZodEnum<typeof LimitUnits>;
9117
- }, z.core.$strip>>;
9118
- webhookRequestsPerSecond: z.ZodOptional<z.ZodObject<{
9119
- value: z.ZodOptional<z.ZodNumber>;
9120
- defaultValue: z.ZodOptional<z.ZodNumber>;
9121
- unit: z.ZodEnum<typeof LimitUnits>;
9122
- }, z.core.$strip>>;
9123
- webhookRequestsPerHour: z.ZodOptional<z.ZodObject<{
9124
- value: z.ZodOptional<z.ZodNumber>;
9125
- defaultValue: z.ZodOptional<z.ZodNumber>;
9126
- unit: z.ZodEnum<typeof LimitUnits>;
9127
- }, z.core.$strip>>;
9128
- workspaceElementCreationsPerSecond: z.ZodOptional<z.ZodObject<{
9129
- value: z.ZodOptional<z.ZodNumber>;
9130
- defaultValue: z.ZodOptional<z.ZodNumber>;
9131
- unit: z.ZodEnum<typeof LimitUnits>;
9132
- }, z.core.$strip>>;
9133
- workspaceElementCreationsPerHour: z.ZodOptional<z.ZodObject<{
9134
- value: z.ZodOptional<z.ZodNumber>;
9135
- defaultValue: z.ZodOptional<z.ZodNumber>;
9136
- unit: z.ZodEnum<typeof LimitUnits>;
9137
- }, z.core.$strip>>;
9138
- createDatabaseRequestsPerSecond: z.ZodOptional<z.ZodObject<{
9139
- value: z.ZodOptional<z.ZodNumber>;
9140
- defaultValue: z.ZodOptional<z.ZodNumber>;
9141
- unit: z.ZodEnum<typeof LimitUnits>;
9142
- }, z.core.$strip>>;
9143
- totalNumberOfCustomers: z.ZodOptional<z.ZodObject<{
9144
- value: z.ZodOptional<z.ZodNumber>;
9145
- defaultValue: z.ZodOptional<z.ZodNumber>;
9146
- unit: z.ZodEnum<typeof LimitUnits>;
9147
- }, z.core.$strip>>;
9148
- totalNumberOfConnections: z.ZodOptional<z.ZodObject<{
9149
- value: z.ZodOptional<z.ZodNumber>;
9150
- defaultValue: z.ZodOptional<z.ZodNumber>;
9151
- unit: z.ZodEnum<typeof LimitUnits>;
9152
- }, z.core.$strip>>;
9153
- totalNumberOfWorkspaceElements: z.ZodOptional<z.ZodObject<{
9154
- value: z.ZodOptional<z.ZodNumber>;
9155
- defaultValue: z.ZodOptional<z.ZodNumber>;
9156
- unit: z.ZodEnum<typeof LimitUnits>;
9157
- }, z.core.$strip>>;
9158
- parallelApiRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
9159
- value: z.ZodOptional<z.ZodNumber>;
9160
- defaultValue: z.ZodOptional<z.ZodNumber>;
9161
- unit: z.ZodEnum<typeof LimitUnits>;
9162
- }, z.core.$strip>>;
9163
- parallelBackgroundJobsPerCustomer: z.ZodOptional<z.ZodObject<{
9164
- value: z.ZodOptional<z.ZodNumber>;
9165
- defaultValue: z.ZodOptional<z.ZodNumber>;
9166
- unit: z.ZodEnum<typeof LimitUnits>;
9167
- }, z.core.$strip>>;
9168
- apiRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9169
- value: z.ZodOptional<z.ZodNumber>;
9170
- defaultValue: z.ZodOptional<z.ZodNumber>;
9171
- unit: z.ZodEnum<typeof LimitUnits>;
9172
- }, z.core.$strip>>;
9173
- apiRequestsPerCustomerPerHour: z.ZodOptional<z.ZodObject<{
9174
- value: z.ZodOptional<z.ZodNumber>;
9175
- defaultValue: z.ZodOptional<z.ZodNumber>;
9176
- unit: z.ZodEnum<typeof LimitUnits>;
9177
- }, z.core.$strip>>;
9178
- webhookRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9179
- value: z.ZodOptional<z.ZodNumber>;
9180
- defaultValue: z.ZodOptional<z.ZodNumber>;
9181
- unit: z.ZodEnum<typeof LimitUnits>;
9182
- }, z.core.$strip>>;
9183
- webhookRequestsPerCustomerPerHour: z.ZodOptional<z.ZodObject<{
9184
- value: z.ZodOptional<z.ZodNumber>;
9185
- defaultValue: z.ZodOptional<z.ZodNumber>;
9186
- unit: z.ZodEnum<typeof LimitUnits>;
9187
- }, z.core.$strip>>;
9188
- externalEventsPerCustomerPerDay: z.ZodOptional<z.ZodObject<{
9189
- value: z.ZodOptional<z.ZodNumber>;
9190
- defaultValue: z.ZodOptional<z.ZodNumber>;
9191
- unit: z.ZodEnum<typeof LimitUnits>;
9192
- }, z.core.$strip>>;
9193
- createDatabaseRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9194
- value: z.ZodOptional<z.ZodNumber>;
9195
- defaultValue: z.ZodOptional<z.ZodNumber>;
9196
- unit: z.ZodEnum<typeof LimitUnits>;
9197
- }, z.core.$strip>>;
9198
- updateDatabaseRequestsPerCustomerPerSecond: z.ZodOptional<z.ZodObject<{
9199
- value: z.ZodOptional<z.ZodNumber>;
9200
- defaultValue: z.ZodOptional<z.ZodNumber>;
9201
- unit: z.ZodEnum<typeof LimitUnits>;
9202
- }, z.core.$strip>>;
9203
- parallelWriteDatabaseRequestsPerCustomer: z.ZodOptional<z.ZodObject<{
9204
- value: z.ZodOptional<z.ZodNumber>;
9205
- defaultValue: z.ZodOptional<z.ZodNumber>;
9206
- unit: z.ZodEnum<typeof LimitUnits>;
9207
- }, z.core.$strip>>;
9208
- }, z.core.$strip>>;
9209
- settings: z.ZodOptional<z.ZodObject<{
9210
- enableApiLogs: z.ZodOptional<z.ZodBoolean>;
9211
- enableWebhookLogs: z.ZodOptional<z.ZodBoolean>;
9212
- enableActionRunLogs: z.ZodOptional<z.ZodBoolean>;
9213
- disableSecretKeyAuth: z.ZodOptional<z.ZodBoolean>;
9214
- }, z.core.$strip>>;
9215
- type: z.ZodOptional<z.ZodEnum<typeof WorkspaceType>>;
9216
- jwksUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9217
- isTrial: z.ZodOptional<z.ZodBoolean>;
9218
- isThrottled: z.ZodOptional<z.ZodBoolean>;
9219
- isDisabled: z.ZodOptional<z.ZodBoolean>;
9220
- isBackgroundJobsDisabled: z.ZodOptional<z.ZodBoolean>;
9221
- }, z.core.$strip>;
9222
-
9223
8923
  declare enum WorkspaceOnboardingStep {
9224
8924
  AddConnectors = "add-connectors",
9225
8925
  ConnectYourApp = "first-connection",
9226
8926
  BuildIntegrations = "build-integrations",
9227
8927
  Completed = "completed"
9228
8928
  }
9229
- interface Workspace {
9230
- id: string;
9231
- key: string;
9232
- secret: string;
9233
- name: string;
9234
- orgId: string;
9235
- engineAccessToken?: string;
9236
- createdAt: Date;
9237
- updatedAt: Date;
9238
- onboardingStep?: WorkspaceOnboardingStep;
9239
- trialEndDate?: string;
9240
- }
9241
- type EngineWorkspaceSettings = z$1.Infer<typeof EngineWorkspaceSettingsSchema>;
9242
- interface EngineWorkspace {
9243
- id: string;
9244
- key: string;
9245
- logoUri?: string;
9246
- webhookUri?: string;
9247
- publicKey?: string;
9248
- publicKeys?: {
9249
- name?: string;
9250
- publicKey: string;
9251
- }[];
9252
- enabledWebhookEvents?: string[];
9253
- userFieldsSchema?: DataSchema;
9254
- auth?: ConnectorAuth;
9255
- credentialsSchema?: DataSchema;
9256
- apiClient?: RestApiClientOptions;
9257
- apiBaseUri?: string;
9258
- apiRequestHeaders: Record<string, any>;
9259
- apiRequestQuery: Record<string, any>;
9260
- isOnPrem?: boolean;
9261
- connectorBaseUri?: string;
9262
- limits: WorkspaceLimits;
9263
- settings?: EngineWorkspaceSettings;
9264
- type?: WorkspaceType;
9265
- jwksUri?: string | null;
9266
- }
9267
- interface WorkspaceUser {
9268
- id: string;
9269
- workspaceId: string;
9270
- testCustomerId: string;
9271
- userId: string;
9272
- role: string;
9273
- }
9274
- interface UserWorkspaceSettings {
9275
- id: string;
9276
- userId: string;
9277
- workspaceId: string;
9278
- testCustomerId: string;
9279
- }
9280
8929
  declare enum WorkspaceNotificationType {
9281
8930
  WorkspaceUpdate = "workspace-update",
9282
8931
  CopilotActivity = "copilot-activity",
9283
8932
  LocalClientUpdate = "local-client-update"
9284
8933
  }
9285
- interface WorkspaceNotification<DataType = unknown> {
9286
- type: WorkspaceNotificationType;
9287
- workspaceId: string;
9288
- data: DataType;
9289
- }
9290
- interface CopilotActivityNotificationData {
9291
- scopes: string[];
9292
- }
9293
8934
  declare const enum ParallelExecutionLimits {
9294
8935
  ParallelEventPulls = "parallelEventPulls",
9295
8936
  ParallelIncrementalEventPullsPerConnection = "parallelIncrementalEventPullsPerConnection",
@@ -9348,9 +8989,432 @@ interface EngineWorkspaceWithOrgData {
9348
8989
  type?: WorkspaceType;
9349
8990
  isTrial: string;
9350
8991
  }
9351
- declare enum WorkspaceType {
9352
- PRODUCTION = "production",
9353
- DEVELOPMENT = "development"
8992
+ declare const WorkspaceLimitsSchema: z$1.ZodObject<{
8993
+ parallelEventPulls: z$1.ZodOptional<z$1.ZodObject<{
8994
+ value: z$1.ZodOptional<z$1.ZodNumber>;
8995
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
8996
+ unit: z$1.ZodEnum<typeof LimitUnits>;
8997
+ }, z$1.core.$strip>>;
8998
+ parallelIncrementalEventPullsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
8999
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9000
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9001
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9002
+ }, z$1.core.$strip>>;
9003
+ parallelFullSyncEventPullsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9004
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9005
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9006
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9007
+ }, z$1.core.$strip>>;
9008
+ parallelFlowRuns: z$1.ZodOptional<z$1.ZodObject<{
9009
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9010
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9011
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9012
+ }, z$1.core.$strip>>;
9013
+ parallelFlowRunsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9014
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9015
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9016
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9017
+ }, z$1.core.$strip>>;
9018
+ parallelApiRequests: z$1.ZodOptional<z$1.ZodObject<{
9019
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9020
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9021
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9022
+ }, z$1.core.$strip>>;
9023
+ parallelSseRequests: z$1.ZodOptional<z$1.ZodObject<{
9024
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9025
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9026
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9027
+ }, z$1.core.$strip>>;
9028
+ parallelBackgroundJobs: z$1.ZodOptional<z$1.ZodObject<{
9029
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9030
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9031
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9032
+ }, z$1.core.$strip>>;
9033
+ parallelEventLogs: z$1.ZodOptional<z$1.ZodObject<{
9034
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9035
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9036
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9037
+ }, z$1.core.$strip>>;
9038
+ parallelEventLogsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9039
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9040
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9041
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9042
+ }, z$1.core.$strip>>;
9043
+ ParallelWriteDatabaseRequests: z$1.ZodOptional<z$1.ZodObject<{
9044
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9045
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9046
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9047
+ }, z$1.core.$strip>>;
9048
+ fileUploadsMbPerHour: z$1.ZodOptional<z$1.ZodObject<{
9049
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9050
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9051
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9052
+ }, z$1.core.$strip>>;
9053
+ apiRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9054
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9055
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9056
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9057
+ }, z$1.core.$strip>>;
9058
+ apiRequestsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9059
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9060
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9061
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9062
+ }, z$1.core.$strip>>;
9063
+ webhookRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9064
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9065
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9066
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9067
+ }, z$1.core.$strip>>;
9068
+ webhookRequestsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9069
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9070
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9071
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9072
+ }, z$1.core.$strip>>;
9073
+ workspaceElementCreationsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9074
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9075
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9076
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9077
+ }, z$1.core.$strip>>;
9078
+ workspaceElementCreationsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9079
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9080
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9081
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9082
+ }, z$1.core.$strip>>;
9083
+ createDatabaseRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9084
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9085
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9086
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9087
+ }, z$1.core.$strip>>;
9088
+ totalNumberOfCustomers: z$1.ZodOptional<z$1.ZodObject<{
9089
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9090
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9091
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9092
+ }, z$1.core.$strip>>;
9093
+ totalNumberOfConnections: z$1.ZodOptional<z$1.ZodObject<{
9094
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9095
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9096
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9097
+ }, z$1.core.$strip>>;
9098
+ totalNumberOfWorkspaceElements: z$1.ZodOptional<z$1.ZodObject<{
9099
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9100
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9101
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9102
+ }, z$1.core.$strip>>;
9103
+ parallelApiRequestsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9104
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9105
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9106
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9107
+ }, z$1.core.$strip>>;
9108
+ parallelBackgroundJobsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9109
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9110
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9111
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9112
+ }, z$1.core.$strip>>;
9113
+ apiRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9114
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9115
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9116
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9117
+ }, z$1.core.$strip>>;
9118
+ apiRequestsPerCustomerPerHour: z$1.ZodOptional<z$1.ZodObject<{
9119
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9120
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9121
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9122
+ }, z$1.core.$strip>>;
9123
+ webhookRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9124
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9125
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9126
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9127
+ }, z$1.core.$strip>>;
9128
+ webhookRequestsPerCustomerPerHour: z$1.ZodOptional<z$1.ZodObject<{
9129
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9130
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9131
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9132
+ }, z$1.core.$strip>>;
9133
+ externalEventsPerCustomerPerDay: z$1.ZodOptional<z$1.ZodObject<{
9134
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9135
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9136
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9137
+ }, z$1.core.$strip>>;
9138
+ createDatabaseRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9139
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9140
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9141
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9142
+ }, z$1.core.$strip>>;
9143
+ updateDatabaseRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9144
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9145
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9146
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9147
+ }, z$1.core.$strip>>;
9148
+ parallelWriteDatabaseRequestsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9149
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9150
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9151
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9152
+ }, z$1.core.$strip>>;
9153
+ }, z$1.core.$strip>;
9154
+ interface WorkspaceExport {
9155
+ [WorkspaceElementType.AppDataSchema]: AppDataSchemaExportProperties[];
9156
+ [WorkspaceElementType.AppEventType]: AppEventTypeExportProperties[];
9157
+ [WorkspaceElementType.DataLinkTable]: DataLinkTableExportProperties[];
9158
+ [WorkspaceElementType.Integration]: IntegrationExportProperties[];
9159
+ [WorkspaceElementType.DataSource]: DataSourceExportProperties[];
9160
+ [WorkspaceElementType.FieldMapping]: FieldMappingExportProperties[];
9161
+ [WorkspaceElementType.Action]: ActionExportProperties[];
9162
+ [WorkspaceElementType.Flow]: FlowExportProperties[];
9163
+ [WorkspaceElementType.Package]: PackageExportProperties[];
9164
+ }
9165
+ declare const EngineWorkspaceSettingsSchema: z$1.ZodObject<{
9166
+ enableApiLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9167
+ enableWebhookLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9168
+ enableActionRunLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9169
+ disableSecretKeyAuth: z$1.ZodOptional<z$1.ZodBoolean>;
9170
+ }, z$1.core.$strip>;
9171
+ declare const WorkspacePublicKey: z$1.ZodObject<{
9172
+ name: z$1.ZodString;
9173
+ publicKey: z$1.ZodString;
9174
+ }, z$1.core.$strip>;
9175
+ declare const AppSchema: z$1.ZodObject<{
9176
+ id: z$1.ZodString;
9177
+ key: z$1.ZodString;
9178
+ logoUri: z$1.ZodOptional<z$1.ZodString>;
9179
+ userFieldsSchema: z$1.ZodOptional<z$1.ZodAny>;
9180
+ apiBaseUri: z$1.ZodOptional<z$1.ZodString>;
9181
+ webhookUri: z$1.ZodOptional<z$1.ZodString>;
9182
+ publicKey: z$1.ZodOptional<z$1.ZodString>;
9183
+ publicKeys: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
9184
+ name: z$1.ZodString;
9185
+ publicKey: z$1.ZodString;
9186
+ }, z$1.core.$strip>>>;
9187
+ enabledWebhookEvents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9188
+ auth: z$1.ZodOptional<z$1.ZodAny>;
9189
+ credentialsSchema: z$1.ZodOptional<z$1.ZodAny>;
9190
+ apiClient: z$1.ZodOptional<z$1.ZodAny>;
9191
+ apiRequestHeaders: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
9192
+ apiRequestQuery: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
9193
+ isOnPrem: z$1.ZodOptional<z$1.ZodBoolean>;
9194
+ connectorBaseUri: z$1.ZodOptional<z$1.ZodString>;
9195
+ connectorRevision: z$1.ZodOptional<z$1.ZodString>;
9196
+ featureFlags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9197
+ limits: z$1.ZodOptional<z$1.ZodObject<{
9198
+ parallelEventPulls: z$1.ZodOptional<z$1.ZodObject<{
9199
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9200
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9201
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9202
+ }, z$1.core.$strip>>;
9203
+ parallelIncrementalEventPullsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9204
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9205
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9206
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9207
+ }, z$1.core.$strip>>;
9208
+ parallelFullSyncEventPullsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9209
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9210
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9211
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9212
+ }, z$1.core.$strip>>;
9213
+ parallelFlowRuns: z$1.ZodOptional<z$1.ZodObject<{
9214
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9215
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9216
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9217
+ }, z$1.core.$strip>>;
9218
+ parallelFlowRunsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9219
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9220
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9221
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9222
+ }, z$1.core.$strip>>;
9223
+ parallelApiRequests: z$1.ZodOptional<z$1.ZodObject<{
9224
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9225
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9226
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9227
+ }, z$1.core.$strip>>;
9228
+ parallelSseRequests: z$1.ZodOptional<z$1.ZodObject<{
9229
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9230
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9231
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9232
+ }, z$1.core.$strip>>;
9233
+ parallelBackgroundJobs: z$1.ZodOptional<z$1.ZodObject<{
9234
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9235
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9236
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9237
+ }, z$1.core.$strip>>;
9238
+ parallelEventLogs: z$1.ZodOptional<z$1.ZodObject<{
9239
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9240
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9241
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9242
+ }, z$1.core.$strip>>;
9243
+ parallelEventLogsPerConnection: z$1.ZodOptional<z$1.ZodObject<{
9244
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9245
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9246
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9247
+ }, z$1.core.$strip>>;
9248
+ ParallelWriteDatabaseRequests: z$1.ZodOptional<z$1.ZodObject<{
9249
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9250
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9251
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9252
+ }, z$1.core.$strip>>;
9253
+ fileUploadsMbPerHour: z$1.ZodOptional<z$1.ZodObject<{
9254
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9255
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9256
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9257
+ }, z$1.core.$strip>>;
9258
+ apiRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9259
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9260
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9261
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9262
+ }, z$1.core.$strip>>;
9263
+ apiRequestsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9264
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9265
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9266
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9267
+ }, z$1.core.$strip>>;
9268
+ webhookRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9269
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9270
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9271
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9272
+ }, z$1.core.$strip>>;
9273
+ webhookRequestsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9274
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9275
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9276
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9277
+ }, z$1.core.$strip>>;
9278
+ workspaceElementCreationsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9279
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9280
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9281
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9282
+ }, z$1.core.$strip>>;
9283
+ workspaceElementCreationsPerHour: z$1.ZodOptional<z$1.ZodObject<{
9284
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9285
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9286
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9287
+ }, z$1.core.$strip>>;
9288
+ createDatabaseRequestsPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9289
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9290
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9291
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9292
+ }, z$1.core.$strip>>;
9293
+ totalNumberOfCustomers: z$1.ZodOptional<z$1.ZodObject<{
9294
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9295
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9296
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9297
+ }, z$1.core.$strip>>;
9298
+ totalNumberOfConnections: z$1.ZodOptional<z$1.ZodObject<{
9299
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9300
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9301
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9302
+ }, z$1.core.$strip>>;
9303
+ totalNumberOfWorkspaceElements: z$1.ZodOptional<z$1.ZodObject<{
9304
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9305
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9306
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9307
+ }, z$1.core.$strip>>;
9308
+ parallelApiRequestsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9309
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9310
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9311
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9312
+ }, z$1.core.$strip>>;
9313
+ parallelBackgroundJobsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9314
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9315
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9316
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9317
+ }, z$1.core.$strip>>;
9318
+ apiRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9319
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9320
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9321
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9322
+ }, z$1.core.$strip>>;
9323
+ apiRequestsPerCustomerPerHour: z$1.ZodOptional<z$1.ZodObject<{
9324
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9325
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9326
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9327
+ }, z$1.core.$strip>>;
9328
+ webhookRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9329
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9330
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9331
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9332
+ }, z$1.core.$strip>>;
9333
+ webhookRequestsPerCustomerPerHour: z$1.ZodOptional<z$1.ZodObject<{
9334
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9335
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9336
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9337
+ }, z$1.core.$strip>>;
9338
+ externalEventsPerCustomerPerDay: z$1.ZodOptional<z$1.ZodObject<{
9339
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9340
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9341
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9342
+ }, z$1.core.$strip>>;
9343
+ createDatabaseRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9344
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9345
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9346
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9347
+ }, z$1.core.$strip>>;
9348
+ updateDatabaseRequestsPerCustomerPerSecond: z$1.ZodOptional<z$1.ZodObject<{
9349
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9350
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9351
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9352
+ }, z$1.core.$strip>>;
9353
+ parallelWriteDatabaseRequestsPerCustomer: z$1.ZodOptional<z$1.ZodObject<{
9354
+ value: z$1.ZodOptional<z$1.ZodNumber>;
9355
+ defaultValue: z$1.ZodOptional<z$1.ZodNumber>;
9356
+ unit: z$1.ZodEnum<typeof LimitUnits>;
9357
+ }, z$1.core.$strip>>;
9358
+ }, z$1.core.$strip>>;
9359
+ settings: z$1.ZodOptional<z$1.ZodObject<{
9360
+ enableApiLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9361
+ enableWebhookLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9362
+ enableActionRunLogs: z$1.ZodOptional<z$1.ZodBoolean>;
9363
+ disableSecretKeyAuth: z$1.ZodOptional<z$1.ZodBoolean>;
9364
+ }, z$1.core.$strip>>;
9365
+ type: z$1.ZodOptional<z$1.ZodEnum<typeof WorkspaceType>>;
9366
+ jwksUri: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
9367
+ isTrial: z$1.ZodOptional<z$1.ZodBoolean>;
9368
+ isThrottled: z$1.ZodOptional<z$1.ZodBoolean>;
9369
+ isDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
9370
+ isBackgroundJobsDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
9371
+ }, z$1.core.$strip>;
9372
+ type EngineWorkspaceSettings = z$1.Infer<typeof EngineWorkspaceSettingsSchema>;
9373
+ interface EngineWorkspace {
9374
+ id: string;
9375
+ key: string;
9376
+ logoUri?: string;
9377
+ webhookUri?: string;
9378
+ publicKey?: string;
9379
+ publicKeys?: {
9380
+ name?: string;
9381
+ publicKey: string;
9382
+ }[];
9383
+ enabledWebhookEvents?: string[];
9384
+ userFieldsSchema?: DataSchema;
9385
+ auth?: ConnectorAuth;
9386
+ credentialsSchema?: DataSchema;
9387
+ apiClient?: RestApiClientOptions;
9388
+ apiBaseUri?: string;
9389
+ apiRequestHeaders: Record<string, any>;
9390
+ apiRequestQuery: Record<string, any>;
9391
+ isOnPrem?: boolean;
9392
+ connectorBaseUri?: string;
9393
+ limits: WorkspaceLimits;
9394
+ settings?: EngineWorkspaceSettings;
9395
+ type?: WorkspaceType;
9396
+ jwksUri?: string | null;
9397
+ }
9398
+ interface WorkspaceUser {
9399
+ id: string;
9400
+ workspaceId: string;
9401
+ testCustomerId: string;
9402
+ userId: string;
9403
+ role: string;
9404
+ }
9405
+ interface UserWorkspaceSettings {
9406
+ id: string;
9407
+ userId: string;
9408
+ workspaceId: string;
9409
+ testCustomerId: string;
9410
+ }
9411
+ interface WorkspaceNotification<DataType = unknown> {
9412
+ type: WorkspaceNotificationType;
9413
+ workspaceId: string;
9414
+ data: DataType;
9415
+ }
9416
+ interface CopilotActivityNotificationData {
9417
+ scopes: string[];
9354
9418
  }
9355
9419
 
9356
9420
  declare const PARALLEL_EXECUTION_LIMITS: string[];
@@ -9381,801 +9445,107 @@ declare const OrgWorkspaceUser: z.ZodObject<{
9381
9445
  role: z.ZodString;
9382
9446
  }, z.core.$strip>;
9383
9447
 
9384
- declare class SelfAccessor {
9385
- private client;
9386
- constructor(client: MembraneApiClient);
9387
- get(): Promise<Customer>;
9388
- patch(data: Partial<{
9389
- credentials: any;
9390
- }>): Promise<Customer>;
9448
+ declare enum WorkspaceElementChangeType {
9449
+ CREATE = "create",
9450
+ UPDATE = "update",
9451
+ DELETE = "delete"
9391
9452
  }
9392
-
9393
- interface Self {
9394
- user: User;
9395
- workspace: Workspace;
9453
+ interface WorkspaceElementChange {
9454
+ type: WorkspaceElementChangeType;
9455
+ uuid: string;
9396
9456
  }
9397
-
9398
- declare enum DataBuilderFormulaType {
9399
- VAR = "var",
9400
- COPY = "copy",
9401
- TPL = "tpl",
9402
- RECORD = "record",
9403
- LOOKUP = "lookup",
9404
- PLAIN = "plain",
9405
- MAP = "map",
9406
- CONCAT = "concat",
9407
- FIRST_NAME = "firstName",
9408
- LAST_NAME = "lastName",
9409
- ITERATE = "iterate",
9410
- CASE = "case",
9411
- EXTRACT_DATE = "extractDate",
9412
- EXTRACT_TIME = "extractTime",
9413
- FIND_EXTERNAL_RECORD_ID = "findExternalRecordId",
9414
- FIND_APP_RECORD_ID = "findAppRecordId",
9415
- EVAL = "eval",
9416
- AND = "and",
9417
- OR = "or",
9418
- MERGE_OBJECTS = "mergeObjects",
9419
- FIRST_NOT_EMPTY = "firstNotEmpty",
9420
- DOMAIN_FROM_EMAIL = "domainFromEmail",
9421
- FORMULA = "formula",
9422
- JSONATA = "jsonata",
9423
- DATA_SCHEMA_REF = "dataSchemaRef"
9457
+ interface WorkspaceExportComparison {
9458
+ [WorkspaceElementChangeType.CREATE]: Set<string>;
9459
+ [WorkspaceElementChangeType.UPDATE]: Set<string>;
9460
+ [WorkspaceElementChangeType.DELETE]: Set<string>;
9461
+ }
9462
+ interface WorkspaceExportComparisonResult {
9463
+ comparison: WorkspaceExportComparison;
9464
+ sourceUuidByTargetUuid: Map<string, string>;
9424
9465
  }
9466
+ declare function compareWorkspaceExports(baseExport: Partial<WorkspaceExport>, targetExport: Partial<WorkspaceExport>): WorkspaceExportComparisonResult;
9467
+ declare function getElementSelector(type: WorkspaceElementType, key: string, integrationIdentifier?: string): string;
9425
9468
 
9426
- interface LookupValue {
9427
- query: Record<string, any>;
9428
- createIfNotFound?: boolean;
9429
- create?: {
9430
- fields: any;
9431
- };
9469
+ declare enum OrgLimitsType {
9470
+ NUMBER_OF_WORKSPACES = "numberOfWorkspaces",
9471
+ TODAY_USAGE = "todayUsage",
9472
+ LAST_THIRTY_DAY_USAGE = "lastThirtyDayUsage",
9473
+ MEMBRANE_EXPERT_CREDITS_CAP = "membraneExpertCreditsCapPerMonth"
9432
9474
  }
9433
- interface DataBuilderFormula {
9434
- resolveValue(params: ResolveFormulaParams): Promise<unknown>;
9435
- getValue(variables: any): any;
9436
- getSchema(variablesSchema: any): any;
9437
- toObject(): any;
9438
- toString(variablesSchema?: any): string;
9475
+ interface Org {
9476
+ id: string;
9477
+ key: string;
9478
+ secret?: string;
9479
+ name: string;
9480
+ createdAt: Date;
9481
+ updatedAt: Date;
9482
+ trialEndDate?: string;
9483
+ lastTrialExtensionDate?: string;
9484
+ limits?: OrgLimits;
9485
+ lastThirtyDayUsagePercent?: number;
9486
+ todayUsagePercent?: number;
9487
+ featureFlags?: string[];
9488
+ freeAiCredits?: number;
9489
+ paidAiCredits?: number;
9490
+ autoChargeEnabled?: boolean;
9491
+ autoChargeThreshold?: number;
9492
+ autoChargePurchaseAmount?: number;
9493
+ autoChargeMonthlyLimit?: number;
9439
9494
  }
9440
- interface ResolveFormulaParams {
9441
- variables?: unknown;
9442
- schema?: DataSchema | undefined;
9443
- getDataCollection?: (key: string, parameters?: Record<string, unknown>) => Promise<DataCollectionSpec>;
9444
- getInternalDataSchema?: (key: string) => Promise<DataSchema>;
9445
- resolveImportDataLink?: (options: {
9446
- dataLinkTableKey: string;
9447
- recordId: string;
9448
- }) => Promise<string | undefined>;
9449
- resolveExportDataLink?: (options: {
9450
- dataLinkTableKey: string;
9451
- recordId: string;
9452
- }) => Promise<string | undefined>;
9453
- resolveLookup?: ({ lookup, schema, fullValue, }: {
9454
- lookup: LookupValue;
9455
- schema: DataSchema | undefined;
9456
- fullValue: unknown;
9457
- }) => Promise<string | undefined>;
9458
- fullValue?: unknown;
9495
+ declare enum OrgUserRole {
9496
+ Admin = "admin",
9497
+ Member = "member"
9459
9498
  }
9460
- declare abstract class DataBuilderFormulaBase<ArgsType = any> implements DataBuilderFormula {
9461
- type: DataBuilderFormulaType;
9462
- args: ArgsType;
9463
- constructor(type: DataBuilderFormulaType, args: ArgsType);
9464
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9465
- abstract getSchema(variablesSchema: any): any;
9466
- toObject(): any;
9467
- toString(_variablesSchema?: any): string;
9468
- getVariableLocators(): string[];
9469
- transformVars(transformations: any): any;
9470
- abstract getValue(variables: any): any;
9499
+ declare enum OrgUserStatus {
9500
+ Invited = "invited",
9501
+ Active = "active"
9471
9502
  }
9472
-
9473
- declare let getFormula$1: (value: any) => DataBuilderFormulaBase | undefined;
9474
- declare let isFormula$1: (value: any) => boolean;
9475
- declare let hasFormulas$1: (value: any) => boolean;
9476
- declare function injectFormulaCatalog(getFormulaFn: any, isFormulaFn: any, hasFormulasFn: any): void;
9477
-
9478
- declare function buildData(value: any, variables?: any): any;
9479
- declare function buildValue(value: any, variables: any): any;
9480
- declare function __resolveValue<T = unknown>(value: unknown, params: ResolveFormulaParams): Promise<T>;
9481
- declare function transformVars(value: any, transformations: Record<string, any>): any;
9482
- declare function valueToString(value: any, variablesSchema: any): string;
9483
- declare function resolveFormulas<T = unknown>(value: any, params: ResolveFormulaParams): Promise<T>;
9484
- declare function processCopy(data: any): any;
9485
- declare function getVariableLocators(data: any): string[];
9486
- declare function removeNonExistentVars(value: any, schema: DataSchema): any;
9487
- declare function transformVariablesWith(data: any, transformFunction: (locator: string) => string): any;
9488
-
9489
- interface DataFilterOperator {
9490
- type: string;
9503
+ interface PlatformUser {
9504
+ id: string;
9505
+ email: string;
9491
9506
  name: string;
9492
- operandSchema: any;
9493
- }
9494
-
9495
- declare function makeObjectPropertyLocator(objectLocator: string | undefined, propertyName: string): string;
9496
- declare enum DataLocatorStepType {
9497
- OBJECT_PROPERTY = "object_property",
9498
- ARRAY_ITEM = "array_item"
9507
+ trialRequested: boolean;
9499
9508
  }
9500
- declare class DataLocatorStep {
9501
- type: DataLocatorStepType;
9509
+ interface OrgUser {
9510
+ id: string;
9511
+ orgId: string;
9512
+ userId: string;
9513
+ role: OrgUserRole;
9514
+ status: OrgUserStatus;
9515
+ workspaces: string[];
9516
+ user: PlatformUser;
9502
9517
  }
9503
- declare class DataLocatorStepObjectProperty extends DataLocatorStep {
9504
- propertyName: string;
9505
- constructor(propertyName: string);
9518
+ interface OrgWorkspace {
9519
+ id: string;
9520
+ key: string;
9521
+ name: string;
9522
+ orgId: string;
9523
+ logoUri?: string;
9524
+ secret: string;
9525
+ createdAt: Date;
9526
+ updatedAt: Date;
9527
+ archivedAt?: Date;
9528
+ engineAccessToken?: string;
9529
+ trialEndDate?: string;
9530
+ featureFlags?: string[];
9506
9531
  }
9507
- declare class DataLocatorStepArrayItem extends DataLocatorStep {
9508
- index: number;
9509
- constructor(index: number);
9532
+ interface OrgLimits {
9533
+ [OrgLimitsType.NUMBER_OF_WORKSPACES]?: number;
9534
+ [OrgLimitsType.TODAY_USAGE]?: number;
9535
+ [OrgLimitsType.LAST_THIRTY_DAY_USAGE]?: number;
9536
+ [OrgLimitsType.MEMBRANE_EXPERT_CREDITS_CAP]?: number | null;
9510
9537
  }
9511
- type DataLocator = DataLocatorStep[] | string;
9512
- declare class InvalidLocatorError extends Error {
9513
- }
9514
- declare function locatorToField(locator: string): string;
9515
- declare function getLocatorsFromSchema(schema?: DataSchema, rootLocator?: string): string[];
9516
- declare function getSchemaByLocator(schema: any, locator: DataLocator): any;
9517
- declare function getValueByLocator(variables: any, locator: DataLocator): any;
9518
- declare function findValueLocators(data: any, value: any): string[];
9519
- declare function getValueAtLocator(data: any, locator: DataLocator): any;
9520
- declare function setValueAtLocator(obj: any, locator: string, value: any): any;
9521
- declare function pickFieldsFromValue(value: any, fields: string[]): any;
9522
- declare function excludeFieldsFromValue(value: any, fields: string[]): any;
9523
- declare function setSchemaAtLocator(schema: any, locator: DataLocator, schemaAtLocator: any): any;
9524
- declare function extractFieldLocator(locator: string): string;
9525
- declare function makeSchemaForLocator(locator: DataLocator, locatorSchema: any): any;
9526
- declare function getNameForLocator(schema: any, locator: DataLocator): string | null | undefined;
9527
- declare function getNameComponentsForLocator(schema: any, locator: DataLocator): string[] | undefined;
9528
- declare function getFullNameForLocator(schema: any, locator: DataLocator): string | undefined;
9529
- declare function getIconUriForLocator(schema: any, locator: DataLocator): string;
9530
- declare function getLocatorsFromData(data: any, parentLocator?: string): any;
9531
- declare const getFullTitleForLocator: typeof getFullNameForLocator;
9532
- declare function isValidLocator(locator: DataLocator): boolean;
9533
- declare function locatorToSteps(sourceLocator: DataLocator): DataLocatorStep[];
9534
- declare function locatorToString(locator: DataLocator): string;
9535
- declare function stepsToLocator(steps: DataLocatorStep[]): string;
9536
- declare function createObjectFromLocators(locators?: string[], placeholderValue?: string): {};
9537
- declare function getFormulaLocators(formulaType: string, data: any): string[];
9538
-
9539
- declare function backwardCompatibleFilterMatch(filter: any, variables: any): any;
9540
- declare function doesMatchFilter(data: any, filter: DataFilter): boolean;
9541
- declare class DataFilterCondition {
9542
- field: string;
9543
- operator: string;
9544
- value?: any | undefined;
9545
- constructor(field: string, operator: string, value?: any | undefined);
9546
- }
9547
- type DataFilter = DataFilterCondition[];
9548
- declare function getOperatorsBySchema(schema: any): DataFilterOperator[];
9549
- declare function getFilterFieldValuesByLocator(data: any, locator: DataLocator): any[];
9550
-
9551
- declare class And extends DataBuilderFormulaBase {
9552
- constructor(args: any[]);
9553
- getValue(variables: any): boolean | undefined;
9554
- resolveValue(params: ResolveFormulaParams): Promise<boolean | undefined>;
9555
- getSchema(): {
9556
- type: string;
9557
- };
9558
- }
9559
-
9560
- interface CaseFormulaValueItem {
9561
- filter?: any;
9562
- value?: any;
9563
- }
9564
- type CaseFormulaValue = {
9565
- cases: CaseFormulaValueItem[];
9566
- default?: any;
9567
- };
9568
- declare class DataBuilderFormulaCase extends DataBuilderFormulaBase {
9569
- value: CaseFormulaValue;
9570
- constructor(value: CaseFormulaValueItem[] | CaseFormulaValue);
9571
- getValue(variables: any): any;
9572
- resolveValue(params: ResolveFormulaParams): Promise<unknown>;
9573
- getSchema(variablesSchema: any): any;
9574
- isValueValid(): boolean;
9575
- transformVars(transformations: any): any;
9576
- }
9577
-
9578
- type AnyValue = any;
9579
- type ConcatFormulaOptions = {
9580
- delimiter?: AnyValue;
9581
- values?: AnyValue[];
9582
- };
9583
- declare class DataBuilderFormulaConcat extends DataBuilderFormulaBase {
9584
- options: ConcatFormulaOptions | null;
9585
- delimiter: AnyValue;
9586
- values: AnyValue[];
9587
- constructor(options: ConcatFormulaOptions | null);
9588
- getValue(variables: any): string | undefined;
9589
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9590
- getSchema(): {
9591
- type: string;
9592
- };
9593
- toString(variablesSchema: any): string;
9594
- }
9595
-
9596
- declare class DataBuilderFormulaCopy extends DataBuilderFormulaBase {
9597
- locator: string;
9598
- constructor(locator: string);
9599
- getValue(variables: any): {
9600
- $copy: any;
9601
- };
9602
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9603
- getSchema(): null;
9604
- }
9605
-
9606
- interface DataSchemaRegArgsDataCollection {
9607
- type: 'data-collection';
9608
- key: unknown;
9609
- parameters?: unknown;
9610
- }
9611
- interface DataSchemaRegArgsInternalDataSchema {
9612
- type: 'internal-data-schema';
9613
- key: unknown;
9614
- }
9615
- type DataSchemaRefArgs = DataSchemaRegArgsDataCollection | DataSchemaRegArgsInternalDataSchema;
9616
- declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefArgs> {
9617
- value: any;
9618
- constructor(value: any);
9619
- getValue(): undefined;
9620
- resolveValue(params: ResolveFormulaParams): Promise<DataSchema | undefined>;
9621
- resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<DataSchema | undefined>;
9622
- resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<DataSchema | undefined>;
9623
- getSchema(): {
9624
- type: string;
9625
- };
9626
- }
9627
-
9628
- declare class DomainFromEmail extends DataBuilderFormulaBase {
9629
- value: any;
9630
- constructor(value: any);
9631
- getValue(variables: any): string | undefined;
9632
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9633
- getSchema(): {
9634
- type: string;
9635
- };
9636
- }
9637
-
9638
- interface EvalOperator {
9639
- key: string;
9640
- name: string;
9641
- operandSchema: any;
9642
- hasOperand: boolean;
9643
- }
9644
- declare class Eval extends DataBuilderFormulaBase {
9645
- value: any;
9646
- operatorKey: string;
9647
- operand: any;
9648
- constructor(args: any, formulaValue: any);
9649
- getAvailableOperators(variablesSchema: DataSchema): EvalOperator[];
9650
- getOperator(variablesSchema: any): EvalOperator;
9651
- getValue(variables: any): boolean;
9652
- resolveValue(params: ResolveFormulaParams): Promise<boolean>;
9653
- getSchema(): {
9654
- type: string;
9655
- };
9656
- toObject(): {
9657
- $eval: any;
9658
- };
9659
- transformVars(transformations: any): {
9660
- [x: string]: any;
9661
- $eval: any;
9662
- } | undefined;
9663
- }
9664
-
9665
- declare class DataBuilderFormulaExtractDate extends DataBuilderFormulaBase {
9666
- value: any;
9667
- constructor(value: any);
9668
- getValue(variables: any): string | undefined;
9669
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9670
- getSchema(): {
9671
- type: string;
9672
- format: string;
9673
- };
9674
- }
9675
-
9676
- declare class DataBuilderFormulaExtractTime extends DataBuilderFormulaBase {
9677
- value: any;
9678
- constructor(value: any);
9679
- getValue(variables: any): string;
9680
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9681
- getSchema(): {
9682
- type: string;
9683
- format: string;
9684
- };
9685
- }
9686
-
9687
- interface FindAppRecordIdArgs {
9688
- dataLinkTable: DataLinkTableConfig;
9689
- recordId: string;
9690
- }
9691
- declare class DataBuilderFormulaFindAppRecordId extends DataBuilderFormulaBase {
9692
- args: FindAppRecordIdArgs;
9693
- constructor(args: FindAppRecordIdArgs);
9694
- getValue(variables: any): {
9695
- $findAppRecordId: any;
9696
- };
9697
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9698
- getSchema(): {
9699
- type: string;
9700
- };
9701
- }
9702
-
9703
- interface FindExternalRecordIdArgs {
9704
- dataLinkTable: DataLinkTableConfig;
9705
- recordId: string;
9706
- }
9707
- declare class DataBuilderFormulaFindExternalRecordId extends DataBuilderFormulaBase {
9708
- args: FindExternalRecordIdArgs;
9709
- constructor(args: FindExternalRecordIdArgs);
9710
- getValue(variables: any): {
9711
- $findExternalRecordId: any;
9712
- };
9713
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9714
- getSchema(): {
9715
- type: string;
9716
- };
9717
- }
9718
-
9719
- declare class DataBuilderFormulaFirstName extends DataBuilderFormulaBase {
9720
- value: any;
9721
- constructor(value: any);
9722
- getValue(variables: any): any;
9723
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9724
- getSchema(): {
9725
- type: string;
9726
- };
9727
- }
9728
-
9729
- declare class FirstNotEmpty extends DataBuilderFormulaBase {
9730
- constructor(args: any[]);
9731
- getValue(variables: any): any;
9732
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9733
- getSchema(variablesSchema: any): any;
9734
- }
9735
-
9736
- declare class FormulaFormula extends DataBuilderFormulaBase {
9737
- constructor(args: any);
9738
- getValue(variables: any): any;
9739
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9740
- getSchema(): undefined;
9741
- transformVars(transformations: any): any;
9742
- }
9743
-
9744
- interface IterateArguments {
9745
- source: any;
9746
- item?: any;
9747
- }
9748
- declare class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
9749
- args: IterateArguments;
9750
- source: any;
9751
- item: any;
9752
- constructor(args: IterateArguments);
9753
- getValue(variables: any): never[] | undefined;
9754
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9755
- getSchema(variablesSchema: any): {
9756
- type: string;
9757
- items: any;
9758
- };
9759
- getVariableLocators(): string[];
9760
- transformVars(transformations: any): any;
9761
- }
9762
-
9763
- declare class JsonataFormula extends DataBuilderFormulaBase {
9764
- expression: any;
9765
- constructor(expression: any);
9766
- getValue(variables: any): any;
9767
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9768
- getSchema(): any;
9769
- }
9770
-
9771
- declare class DataBuilderFormulaLastName extends DataBuilderFormulaBase {
9772
- value: any;
9773
- constructor(value: any);
9774
- getValue(variables: any): any;
9775
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9776
- getSchema(): {
9777
- type: string;
9778
- };
9779
- toString(variablesSchema: any): string;
9780
- }
9781
-
9782
- declare class DataBuilderFormulaLookup extends DataBuilderFormulaBase {
9783
- value: LookupValue;
9784
- constructor(value: LookupValue);
9785
- getValue(variables: any): {
9786
- $lookup: any;
9787
- };
9788
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9789
- getSchema(): {
9790
- type: string;
9791
- };
9792
- }
9793
-
9794
- interface MappingItem {
9795
- from: any;
9796
- to?: any;
9797
- }
9798
- interface MapFormulaValue {
9799
- value: any;
9800
- mapping: MappingItem[];
9801
- default?: any;
9802
- }
9803
- declare class DataBuilderFormulaMap extends DataBuilderFormulaBase {
9804
- args: MapFormulaValue;
9805
- constructor(args: MapFormulaValue);
9806
- getValue(variables: any): any;
9807
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9808
- getSchema(variablesSchema: any): any;
9809
- }
9810
-
9811
- declare class MergeObjects extends DataBuilderFormulaBase {
9812
- constructor(args: any[]);
9813
- getValue(variables: any): {} | undefined;
9814
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9815
- getSchema(variablesSchema: any): {
9816
- type: string;
9817
- properties: {};
9818
- } | {
9819
- type: string;
9820
- };
9821
- }
9822
-
9823
- declare class Or extends DataBuilderFormulaBase {
9824
- constructor(args: any[]);
9825
- getValue(variables: any): boolean | undefined;
9826
- resolveValue(params: ResolveFormulaParams): Promise<boolean | undefined>;
9827
- getSchema(): {
9828
- type: string;
9829
- };
9830
- }
9831
-
9832
- declare class DataBuilderFormulaPlain extends DataBuilderFormulaBase {
9833
- value: any;
9834
- constructor(value: any);
9835
- getValue(): any;
9836
- resolveValue(_params: ResolveFormulaParams): Promise<any>;
9837
- getSchema(): any;
9838
- }
9839
-
9840
- declare class DataBuilderFormulaRecord extends DataBuilderFormulaBase {
9841
- record: DataRecord;
9842
- constructor(record: DataRecord);
9843
- getValue(): string;
9844
- resolveValue(_params: ResolveFormulaParams): Promise<string | undefined>;
9845
- getSchema(): {
9846
- type: string;
9847
- };
9848
- }
9849
-
9850
- type TplFormulaArgs = {
9851
- template: string;
9852
- values: Record<string, any>;
9853
- };
9854
- declare class DataBuilderFormulaTpl extends DataBuilderFormulaBase {
9855
- args: TplFormulaArgs;
9856
- constructor(args: TplFormulaArgs);
9857
- getValue(variables: any): string;
9858
- resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
9859
- getSchema(): {
9860
- type: string;
9861
- };
9862
- }
9863
-
9864
- declare class DataBuilderFormulaVar extends DataBuilderFormulaBase {
9865
- locator: string;
9866
- constructor(locator: string);
9867
- getValue(variables: any): any;
9868
- resolveValue(params: ResolveFormulaParams): Promise<any>;
9869
- getSchema(variablesSchema: any): any;
9870
- toString(variablesSchema: any): string;
9871
- getVariableLocators(): string[];
9872
- transformVars(transformations: any): any;
9873
- }
9874
-
9875
- declare const Formula: {
9876
- Var: typeof DataBuilderFormulaVar;
9877
- Record: typeof DataBuilderFormulaRecord;
9878
- Tpl: typeof DataBuilderFormulaTpl;
9879
- Lookup: typeof DataBuilderFormulaLookup;
9880
- Plain: typeof DataBuilderFormulaPlain;
9881
- Map: typeof DataBuilderFormulaMap;
9882
- And: typeof And;
9883
- Or: typeof Or;
9884
- MergeObjects: typeof MergeObjects;
9885
- FirstNotEmpty: typeof FirstNotEmpty;
9886
- DomainFromEmail: typeof DomainFromEmail;
9887
- Formula: typeof FormulaFormula;
9888
- Base: typeof DataBuilderFormulaBase;
9889
- Case: typeof DataBuilderFormulaCase;
9890
- Concat: typeof DataBuilderFormulaConcat;
9891
- Copy: typeof DataBuilderFormulaCopy;
9892
- Eval: typeof Eval;
9893
- ExtractDate: typeof DataBuilderFormulaExtractDate;
9894
- ExtractTime: typeof DataBuilderFormulaExtractTime;
9895
- FindAppRecordId: typeof DataBuilderFormulaFindAppRecordId;
9896
- FindExternalRecordId: typeof DataBuilderFormulaFindExternalRecordId;
9897
- FirstName: typeof DataBuilderFormulaFirstName;
9898
- LastName: typeof DataBuilderFormulaLastName;
9899
- Iterate: typeof DataBuilderFormulaIterate;
9900
- Jsonata: typeof JsonataFormula;
9901
- DataSchemaRef: typeof DataSchemaRef;
9902
- };
9903
- type Formula = {
9904
- Var: DataBuilderFormulaVar;
9905
- Record: DataBuilderFormulaRecord;
9906
- Tpl: DataBuilderFormulaTpl;
9907
- Lookup: DataBuilderFormulaLookup;
9908
- Plain: DataBuilderFormulaPlain;
9909
- Map: DataBuilderFormulaMap;
9910
- And: And;
9911
- Or: Or;
9912
- MergeObjects: MergeObjects;
9913
- FirstNotEmpty: FirstNotEmpty;
9914
- DomainFromEmail: DomainFromEmail;
9915
- Formula: FormulaFormula;
9916
- Base: DataBuilderFormulaBase;
9917
- Case: DataBuilderFormulaCase;
9918
- Concat: DataBuilderFormulaConcat;
9919
- Copy: DataBuilderFormulaCopy;
9920
- Eval: Eval;
9921
- ExtractDate: DataBuilderFormulaExtractDate;
9922
- ExtractTime: DataBuilderFormulaExtractTime;
9923
- FindAppRecordId: DataBuilderFormulaFindAppRecordId;
9924
- FindExternalRecordId: DataBuilderFormulaFindExternalRecordId;
9925
- FirstName: DataBuilderFormulaFirstName;
9926
- LastName: DataBuilderFormulaLastName;
9927
- Iterate: DataBuilderFormulaIterate;
9928
- Jsonata: JsonataFormula;
9929
- DataSchemaRef: DataSchemaRef;
9930
- };
9931
- declare function isFormula(value: any): boolean;
9932
- declare function hasFormulas(value: any): any;
9933
- declare function getFormula(value: any): DataBuilderFormulaBase | undefined;
9934
-
9935
- declare function getErrorFromData(data: any): any;
9936
- declare function extractMembraneErrorData(error: any): ErrorData;
9937
-
9938
- interface DataField {
9939
- name: string;
9940
- locator: string;
9941
- schema: DataSchema;
9942
- value: any;
9943
- }
9944
-
9945
- interface DataFormArgs {
9946
- schema: DataSchema;
9947
- value: any;
9948
- variablesSchema?: DataSchema;
9949
- }
9950
- interface FieldValueOption {
9951
- name: string;
9952
- value: any;
9953
- selected?: boolean;
9954
- }
9955
- interface DataForm extends DataFormArgs {
9956
- }
9957
- declare class DataForm {
9958
- constructor(args: DataFormArgs);
9959
- getFields(): DataField[];
9960
- getFieldValueOptions(field: DataField): FieldValueOption[];
9961
- setFieldValue(field: DataField, value: any): any;
9962
- private makeDataField;
9963
- }
9964
-
9965
- declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
9966
- schema: DataSchema | undefined;
9967
- value: any;
9968
- variablesSchema?: DataSchema;
9969
- }): DataSchema | undefined;
9970
- declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
9971
- schema: DataSchema;
9972
- value: any;
9973
- variablesSchema?: DataSchema | undefined;
9974
- }): DataSchema;
9975
- declare function schemaHasProperties(schema?: DataSchema): boolean;
9976
- declare function nonEmptyObjectProperties(properties: Record<string, DataSchema | undefined | null>): Record<string, DataSchema>;
9977
- declare function schemaTypeFromValue(value: any): "object" | "boolean" | "number" | "string" | "array" | undefined;
9978
- declare function buildDataSchema(value: any, variablesSchema?: any): any;
9979
- declare function getSchemaFromValue(value: any, variablesSchema: any, ignoreFormulas?: boolean): any;
9980
- interface ValueToSchemaOptions {
9981
- addDefaults?: boolean;
9982
- skipUnknownFields?: boolean;
9983
- skipReadOnlyFields?: boolean;
9984
- normalizeValues?: boolean;
9985
- valueHasFormulas?: boolean;
9986
- }
9987
- declare function valueToSchema(value: any, schema: DataSchema | undefined, options?: ValueToSchemaOptions, field?: string): any;
9988
- declare function schemaIsScalar(schema: DataSchema): boolean;
9989
- declare function schemaHasFixedValues(schema: DataSchema): boolean;
9990
- declare function schemaAllowsCustomValue(schema: DataSchema): boolean | undefined;
9991
- declare function schemaIsNumber(schema: DataSchema): boolean;
9992
- declare function schemaWithTitle(schema: DataSchema, title: string): DataSchema;
9993
- declare function schemaWithTitle(schema: DataSchema | undefined, title: string): DataSchema | undefined;
9994
- declare function pickFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
9995
- declare function excludeReadOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
9996
- declare function excludeWriteOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
9997
- declare function excludeFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
9998
- declare function getRequiredFieldsFromSchema(schema: DataSchema): string[];
9999
- declare function addRequiredFieldsToSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
10000
- declare function removeRequiredFieldsFromSchema(schema: DataSchema): any;
10001
- declare function getMissingRequiredFields(schema: DataSchema | undefined, value: any): string[];
10002
- declare function populateSchemaTitles(schema: DataSchema | undefined): DataSchema | undefined;
10003
- declare function populateSchemaTitles(schema: DataSchema): DataSchema;
10004
- declare function generateExampleFromSchema(schema: DataSchema | undefined): any;
10005
- declare function isSchemaEmpty(schema: DataSchema): boolean;
10006
- declare function compressDataSchema(schema: DataSchema): DataSchema;
10007
- declare function walkSchema(schema: DataSchema | undefined, callback: (schema: DataSchema, locator: string) => DataSchema | undefined, locator?: string): DataSchema | undefined;
10008
-
10009
- declare function parseDate(value: any): Date | undefined;
10010
-
10011
- declare function isBusinessDay(date: Date): boolean;
10012
- declare function getBusinessDaysBetween(startDate: Date, endDate: Date): Set<string>;
10013
-
10014
- declare enum LogRecordType {
10015
- MSG = "message",
10016
- TEXT = "text",
10017
- ERR = "error",
10018
- DATA = "data",
10019
- COMP = "compare",
10020
- API = "api-request"
10021
- }
10022
- interface LogRecord {
10023
- type?: LogRecordType;
10024
- msg?: string;
10025
- data?: any;
10026
- }
10027
-
10028
- type WithExecutionLogs<T extends Record<string, any>> = T & {
10029
- logs?: any[];
10030
- };
10031
- declare function isStream(obj: any): boolean;
10032
- declare function streamToString(stream: Readable): Promise<string>;
10033
- declare function truncateData(data: any, depth?: number): any;
10034
-
10035
- declare enum UsageType {
10036
- FLOW_RUNS_DURATION = "flow-runs-duration",
10037
- FLOW_RUNS_NUMBER = "flow-runs-number",
10038
- FLOW_RUNS_LOG_SIZE = "flow-runs-log-size",
10039
- API_LOGS_NUMBER = "api-logs-number",
10040
- API_LOGS_SIZE = "api-logs-size",
10041
- WEBHOOK_LOGS_NUMBER = "webhook-logs-number",
10042
- WEBHOOK_LOGS_SIZE = "webhook-logs-size",
10043
- EVENT_LOGS_NUMBER = "event-logs-number",
10044
- EVENT_LOGS_SIZE = "event-logs-size",
10045
- EVENT_LOGS_DURATION = "event-logs-duration",
10046
- EXTERNAL_EVENTS_PULL_DURATION = "external-events-pull-duration",
10047
- EXTERNAL_EVENT_PULL_NUMBER = "external-event-pull-number",
10048
- EXTERNAL_EVENT_PULL_LOG_SIZE = "external-event-pull-log-size",
10049
- APP_EVENTS_NUMBER = "app-events-number",
10050
- APP_EVENTS_SIZE = "app-events-size",
10051
- FILES_UPLOAD_NUMBER = "files-upload-number",
10052
- FILES_UPLOAD_SIZE = "files-upload-size",
10053
- CUSTOM_CODE_RUNTIME_DURATION = "custom-code-runtime-duration",
10054
- MEMBRANE_AGENT = "membrane-agent"
10055
- }
10056
- interface UsageWithCredits {
10057
- key: UsageType;
10058
- value: number;
10059
- credits: number;
10060
- }
10061
- interface UsageEntry {
10062
- workspaceId?: string;
10063
- orgId?: string;
10064
- customerId?: string;
10065
- connectionId?: string;
10066
- key: UsageType;
10067
- time: string;
10068
- value: number;
10069
- }
10070
-
10071
- declare function getNodeInputSchema(flow: FlowInstance, nodeKey: string): any;
10072
- declare function getFlowNodeConfigTimeVariablesSchema({ parametersSchema, userSchema, }: {
10073
- parametersSchema: DataSchema;
10074
- userSchema: DataSchema;
10075
- }): DataSchema;
10076
- declare function getActionRunTimeVariablesSchema({ inputSchema, userSchema }: {
10077
- inputSchema: any;
10078
- userSchema: any;
10079
- }): DataSchema;
10080
- declare function getActionInstanceVariableSchema(): {
10081
- type: string;
10082
- properties: {
10083
- id: {
10084
- type: string;
10085
- };
10086
- instanceKey: {
10087
- type: string;
10088
- };
10089
- };
10090
- };
10091
- declare function getFlowNodeRunTimeVariablesSchema({ parametersSchema, inputSchema, userSchema, }: {
10092
- parametersSchema: DataSchema;
10093
- inputSchema: DataSchema;
10094
- userSchema: DataSchema;
10095
- }): DataSchema;
10096
-
10097
- interface WorkspaceUpdate {
10098
- id: string;
10099
- path: string;
10100
- before?: unknown;
10101
- after?: unknown;
10102
- }
10103
-
10104
- declare enum OrgLimitsType {
10105
- NUMBER_OF_WORKSPACES = "numberOfWorkspaces",
10106
- TODAY_USAGE = "todayUsage",
10107
- LAST_THIRTY_DAY_USAGE = "lastThirtyDayUsage",
10108
- MEMBRANE_EXPERT_CREDITS_CAP = "membraneExpertCreditsCapPerMonth"
10109
- }
10110
- interface Org {
10111
- id: string;
10112
- key: string;
10113
- secret?: string;
10114
- name: string;
10115
- createdAt: Date;
10116
- updatedAt: Date;
10117
- trialEndDate?: string;
10118
- lastTrialExtensionDate?: string;
10119
- limits?: OrgLimits;
10120
- lastThirtyDayUsagePercent?: number;
10121
- todayUsagePercent?: number;
10122
- featureFlags?: string[];
10123
- freeAiMonthlyCredits?: number;
10124
- paidAiCredits?: number;
10125
- }
10126
- declare enum OrgUserRole {
10127
- Admin = "admin",
10128
- Member = "member"
10129
- }
10130
- declare enum OrgUserStatus {
10131
- Invited = "invited",
10132
- Active = "active"
10133
- }
10134
- interface PlatformUser {
10135
- id: string;
10136
- email: string;
10137
- name: string;
10138
- trialRequested: boolean;
10139
- }
10140
- interface OrgUser {
10141
- id: string;
10142
- orgId: string;
10143
- userId: string;
10144
- role: OrgUserRole;
10145
- status: OrgUserStatus;
10146
- workspaces: string[];
10147
- user: PlatformUser;
10148
- }
10149
- interface OrgWorkspace {
10150
- id: string;
10151
- key: string;
10152
- name: string;
10153
- orgId: string;
10154
- logoUri?: string;
10155
- secret: string;
10156
- createdAt: Date;
10157
- updatedAt: Date;
10158
- archivedAt?: Date;
10159
- trialEndDate?: string;
10160
- featureFlags?: string[];
10161
- }
10162
- interface OrgLimits {
10163
- [OrgLimitsType.NUMBER_OF_WORKSPACES]?: number;
10164
- [OrgLimitsType.TODAY_USAGE]?: number;
10165
- [OrgLimitsType.LAST_THIRTY_DAY_USAGE]?: number;
10166
- [OrgLimitsType.MEMBRANE_EXPERT_CREDITS_CAP]?: number | null;
10167
- }
10168
- declare const OrgLimits: z.ZodOptional<z.ZodObject<{
10169
- numberOfWorkspaces: z.ZodOptional<z.ZodNumber>;
10170
- todayUsage: z.ZodOptional<z.ZodNumber>;
10171
- lastThirtyDayUsage: z.ZodOptional<z.ZodNumber>;
10172
- membraneAgentLastThirtyDaysUsage: z.ZodOptional<z.ZodNumber>;
10173
- membraneExpertCreditsCapPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10174
- }, z.core.$strip>>;
10175
- interface MembraneAgentKey {
10176
- key: string;
10177
- activityDate: Date;
10178
- hash: string;
9538
+ declare const OrgLimits: z.ZodOptional<z.ZodObject<{
9539
+ numberOfWorkspaces: z.ZodOptional<z.ZodNumber>;
9540
+ todayUsage: z.ZodOptional<z.ZodNumber>;
9541
+ lastThirtyDayUsage: z.ZodOptional<z.ZodNumber>;
9542
+ membraneAgentLastThirtyDaysUsage: z.ZodOptional<z.ZodNumber>;
9543
+ membraneExpertCreditsCapPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9544
+ }, z.core.$strip>>;
9545
+ interface MembraneAgentKey {
9546
+ key: string;
9547
+ activityDate: Date;
9548
+ hash: string;
10179
9549
  }
10180
9550
  declare const MembraneAgentKey: z.ZodOptional<z.ZodObject<{
10181
9551
  key: z.ZodOptional<z.ZodString>;
@@ -10201,9 +9571,13 @@ declare const OrgSchema: z.ZodObject<{
10201
9571
  todayUsagePercent: z.ZodOptional<z.ZodNumber>;
10202
9572
  domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
10203
9573
  featureFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10204
- freeAiMonthlyCredits: z.ZodOptional<z.ZodNumber>;
9574
+ freeAiCredits: z.ZodOptional<z.ZodNumber>;
10205
9575
  paidAiCredits: z.ZodOptional<z.ZodNumber>;
10206
9576
  stripeCustomerId: z.ZodOptional<z.ZodString>;
9577
+ autoChargeEnabled: z.ZodOptional<z.ZodBoolean>;
9578
+ autoChargeThreshold: z.ZodOptional<z.ZodNumber>;
9579
+ autoChargePurchaseAmount: z.ZodOptional<z.ZodNumber>;
9580
+ autoChargeMonthlyLimit: z.ZodOptional<z.ZodNumber>;
10207
9581
  }, z.core.$strip>;
10208
9582
  declare const AccountResponse: z.ZodObject<{
10209
9583
  user: z.ZodOptional<z.ZodObject<{
@@ -10501,15 +9875,762 @@ declare const AccountResponse: z.ZodObject<{
10501
9875
  todayUsagePercent: z.ZodOptional<z.ZodNumber>;
10502
9876
  domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
10503
9877
  featureFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10504
- freeAiMonthlyCredits: z.ZodOptional<z.ZodNumber>;
9878
+ freeAiCredits: z.ZodOptional<z.ZodNumber>;
10505
9879
  paidAiCredits: z.ZodOptional<z.ZodNumber>;
10506
9880
  stripeCustomerId: z.ZodOptional<z.ZodString>;
9881
+ autoChargeEnabled: z.ZodOptional<z.ZodBoolean>;
9882
+ autoChargeThreshold: z.ZodOptional<z.ZodNumber>;
9883
+ autoChargePurchaseAmount: z.ZodOptional<z.ZodNumber>;
9884
+ autoChargeMonthlyLimit: z.ZodOptional<z.ZodNumber>;
10507
9885
  }, z.core.$strip>>>;
10508
9886
  permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10509
9887
  message: z.ZodOptional<z.ZodString>;
10510
9888
  error: z.ZodOptional<z.ZodString>;
10511
9889
  }, z.core.$strip>;
10512
9890
 
9891
+ declare class SelfAccessor {
9892
+ private client;
9893
+ constructor(client: MembraneApiClient);
9894
+ get(): Promise<Customer>;
9895
+ patch(data: Partial<{
9896
+ credentials: any;
9897
+ }>): Promise<Customer>;
9898
+ }
9899
+
9900
+ interface Self {
9901
+ user: User;
9902
+ workspace: OrgWorkspace;
9903
+ }
9904
+
9905
+ declare enum DataBuilderFormulaType {
9906
+ VAR = "var",
9907
+ COPY = "copy",
9908
+ TPL = "tpl",
9909
+ RECORD = "record",
9910
+ LOOKUP = "lookup",
9911
+ PLAIN = "plain",
9912
+ MAP = "map",
9913
+ CONCAT = "concat",
9914
+ FIRST_NAME = "firstName",
9915
+ LAST_NAME = "lastName",
9916
+ ITERATE = "iterate",
9917
+ CASE = "case",
9918
+ EXTRACT_DATE = "extractDate",
9919
+ EXTRACT_TIME = "extractTime",
9920
+ FIND_EXTERNAL_RECORD_ID = "findExternalRecordId",
9921
+ FIND_APP_RECORD_ID = "findAppRecordId",
9922
+ EVAL = "eval",
9923
+ AND = "and",
9924
+ OR = "or",
9925
+ MERGE_OBJECTS = "mergeObjects",
9926
+ FIRST_NOT_EMPTY = "firstNotEmpty",
9927
+ DOMAIN_FROM_EMAIL = "domainFromEmail",
9928
+ FORMULA = "formula",
9929
+ JSONATA = "jsonata",
9930
+ DATA_SCHEMA_REF = "dataSchemaRef"
9931
+ }
9932
+
9933
+ interface LookupValue {
9934
+ query: Record<string, any>;
9935
+ createIfNotFound?: boolean;
9936
+ create?: {
9937
+ fields: any;
9938
+ };
9939
+ }
9940
+ interface DataBuilderFormula {
9941
+ resolveValue(params: ResolveFormulaParams): Promise<unknown>;
9942
+ getValue(variables: any): any;
9943
+ getSchema(variablesSchema: any): any;
9944
+ toObject(): any;
9945
+ toString(variablesSchema?: any): string;
9946
+ }
9947
+ interface ResolveFormulaParams {
9948
+ variables?: unknown;
9949
+ schema?: DataSchema | undefined;
9950
+ getDataCollection?: (key: string, parameters?: Record<string, unknown>) => Promise<DataCollectionSpec>;
9951
+ getInternalDataSchema?: (key: string) => Promise<DataSchema>;
9952
+ resolveImportDataLink?: (options: {
9953
+ dataLinkTableKey: string;
9954
+ recordId: string;
9955
+ }) => Promise<string | undefined>;
9956
+ resolveExportDataLink?: (options: {
9957
+ dataLinkTableKey: string;
9958
+ recordId: string;
9959
+ }) => Promise<string | undefined>;
9960
+ resolveLookup?: ({ lookup, schema, fullValue, }: {
9961
+ lookup: LookupValue;
9962
+ schema: DataSchema | undefined;
9963
+ fullValue: unknown;
9964
+ }) => Promise<string | undefined>;
9965
+ fullValue?: unknown;
9966
+ }
9967
+ declare abstract class DataBuilderFormulaBase<ArgsType = any> implements DataBuilderFormula {
9968
+ type: DataBuilderFormulaType;
9969
+ args: ArgsType;
9970
+ constructor(type: DataBuilderFormulaType, args: ArgsType);
9971
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
9972
+ abstract getSchema(variablesSchema: any): any;
9973
+ toObject(): any;
9974
+ toString(_variablesSchema?: any): string;
9975
+ getVariableLocators(): string[];
9976
+ transformVars(transformations: any): any;
9977
+ abstract getValue(variables: any): any;
9978
+ }
9979
+
9980
+ declare let getFormula$1: (value: any) => DataBuilderFormulaBase | undefined;
9981
+ declare let isFormula$1: (value: any) => boolean;
9982
+ declare let hasFormulas$1: (value: any) => boolean;
9983
+ declare function injectFormulaCatalog(getFormulaFn: any, isFormulaFn: any, hasFormulasFn: any): void;
9984
+
9985
+ declare function buildData(value: any, variables?: any): any;
9986
+ declare function buildValue(value: any, variables: any): any;
9987
+ declare function __resolveValue<T = unknown>(value: unknown, params: ResolveFormulaParams): Promise<T>;
9988
+ declare function transformVars(value: any, transformations: Record<string, any>): any;
9989
+ declare function valueToString(value: any, variablesSchema: any): string;
9990
+ declare function resolveFormulas<T = unknown>(value: any, params: ResolveFormulaParams): Promise<T>;
9991
+ declare function processCopy(data: any): any;
9992
+ declare function getVariableLocators(data: any): string[];
9993
+ declare function removeNonExistentVars(value: any, schema: DataSchema): any;
9994
+ declare function transformVariablesWith(data: any, transformFunction: (locator: string) => string): any;
9995
+
9996
+ interface DataFilterOperator {
9997
+ type: string;
9998
+ name: string;
9999
+ operandSchema: any;
10000
+ }
10001
+
10002
+ declare function makeObjectPropertyLocator(objectLocator: string | undefined, propertyName: string): string;
10003
+ declare enum DataLocatorStepType {
10004
+ OBJECT_PROPERTY = "object_property",
10005
+ ARRAY_ITEM = "array_item"
10006
+ }
10007
+ declare class DataLocatorStep {
10008
+ type: DataLocatorStepType;
10009
+ }
10010
+ declare class DataLocatorStepObjectProperty extends DataLocatorStep {
10011
+ propertyName: string;
10012
+ constructor(propertyName: string);
10013
+ }
10014
+ declare class DataLocatorStepArrayItem extends DataLocatorStep {
10015
+ index: number;
10016
+ constructor(index: number);
10017
+ }
10018
+ type DataLocator = DataLocatorStep[] | string;
10019
+ declare class InvalidLocatorError extends Error {
10020
+ }
10021
+ declare function locatorToField(locator: string): string;
10022
+ declare function getLocatorsFromSchema(schema?: DataSchema, rootLocator?: string): string[];
10023
+ declare function getSchemaByLocator(schema: any, locator: DataLocator): any;
10024
+ declare function getValueByLocator(variables: any, locator: DataLocator): any;
10025
+ declare function findValueLocators(data: any, value: any): string[];
10026
+ declare function getValueAtLocator(data: any, locator: DataLocator): any;
10027
+ declare function setValueAtLocator(obj: any, locator: string, value: any): any;
10028
+ declare function pickFieldsFromValue(value: any, fields: string[]): any;
10029
+ declare function excludeFieldsFromValue(value: any, fields: string[]): any;
10030
+ declare function setSchemaAtLocator(schema: any, locator: DataLocator, schemaAtLocator: any): any;
10031
+ declare function extractFieldLocator(locator: string): string;
10032
+ declare function makeSchemaForLocator(locator: DataLocator, locatorSchema: any): any;
10033
+ declare function getNameForLocator(schema: any, locator: DataLocator): string | null | undefined;
10034
+ declare function getNameComponentsForLocator(schema: any, locator: DataLocator): string[] | undefined;
10035
+ declare function getFullNameForLocator(schema: any, locator: DataLocator): string | undefined;
10036
+ declare function getIconUriForLocator(schema: any, locator: DataLocator): string;
10037
+ declare function getLocatorsFromData(data: any, parentLocator?: string): any;
10038
+ declare const getFullTitleForLocator: typeof getFullNameForLocator;
10039
+ declare function isValidLocator(locator: DataLocator): boolean;
10040
+ declare function locatorToSteps(sourceLocator: DataLocator): DataLocatorStep[];
10041
+ declare function locatorToString(locator: DataLocator): string;
10042
+ declare function stepsToLocator(steps: DataLocatorStep[]): string;
10043
+ declare function createObjectFromLocators(locators?: string[], placeholderValue?: string): {};
10044
+ declare function getFormulaLocators(formulaType: string, data: any): string[];
10045
+
10046
+ declare function backwardCompatibleFilterMatch(filter: any, variables: any): any;
10047
+ declare function doesMatchFilter(data: any, filter: DataFilter): boolean;
10048
+ declare class DataFilterCondition {
10049
+ field: string;
10050
+ operator: string;
10051
+ value?: any | undefined;
10052
+ constructor(field: string, operator: string, value?: any | undefined);
10053
+ }
10054
+ type DataFilter = DataFilterCondition[];
10055
+ declare function getOperatorsBySchema(schema: any): DataFilterOperator[];
10056
+ declare function getFilterFieldValuesByLocator(data: any, locator: DataLocator): any[];
10057
+
10058
+ declare class And extends DataBuilderFormulaBase {
10059
+ constructor(args: any[]);
10060
+ getValue(variables: any): boolean | undefined;
10061
+ resolveValue(params: ResolveFormulaParams): Promise<boolean | undefined>;
10062
+ getSchema(): {
10063
+ type: string;
10064
+ };
10065
+ }
10066
+
10067
+ interface CaseFormulaValueItem {
10068
+ filter?: any;
10069
+ value?: any;
10070
+ }
10071
+ type CaseFormulaValue = {
10072
+ cases: CaseFormulaValueItem[];
10073
+ default?: any;
10074
+ };
10075
+ declare class DataBuilderFormulaCase extends DataBuilderFormulaBase {
10076
+ value: CaseFormulaValue;
10077
+ constructor(value: CaseFormulaValueItem[] | CaseFormulaValue);
10078
+ getValue(variables: any): any;
10079
+ resolveValue(params: ResolveFormulaParams): Promise<unknown>;
10080
+ getSchema(variablesSchema: any): any;
10081
+ isValueValid(): boolean;
10082
+ transformVars(transformations: any): any;
10083
+ }
10084
+
10085
+ type AnyValue = any;
10086
+ type ConcatFormulaOptions = {
10087
+ delimiter?: AnyValue;
10088
+ values?: AnyValue[];
10089
+ };
10090
+ declare class DataBuilderFormulaConcat extends DataBuilderFormulaBase {
10091
+ options: ConcatFormulaOptions | null;
10092
+ delimiter: AnyValue;
10093
+ values: AnyValue[];
10094
+ constructor(options: ConcatFormulaOptions | null);
10095
+ getValue(variables: any): string | undefined;
10096
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10097
+ getSchema(): {
10098
+ type: string;
10099
+ };
10100
+ toString(variablesSchema: any): string;
10101
+ }
10102
+
10103
+ declare class DataBuilderFormulaCopy extends DataBuilderFormulaBase {
10104
+ locator: string;
10105
+ constructor(locator: string);
10106
+ getValue(variables: any): {
10107
+ $copy: any;
10108
+ };
10109
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10110
+ getSchema(): null;
10111
+ }
10112
+
10113
+ interface DataSchemaRegArgsDataCollection {
10114
+ type: 'data-collection';
10115
+ key: unknown;
10116
+ parameters?: unknown;
10117
+ }
10118
+ interface DataSchemaRegArgsInternalDataSchema {
10119
+ type: 'internal-data-schema';
10120
+ key: unknown;
10121
+ }
10122
+ type DataSchemaRefArgs = DataSchemaRegArgsDataCollection | DataSchemaRegArgsInternalDataSchema;
10123
+ declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefArgs> {
10124
+ value: any;
10125
+ constructor(value: any);
10126
+ getValue(): undefined;
10127
+ resolveValue(params: ResolveFormulaParams): Promise<DataSchema | undefined>;
10128
+ resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<DataSchema | undefined>;
10129
+ resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<DataSchema | undefined>;
10130
+ getSchema(): {
10131
+ type: string;
10132
+ };
10133
+ }
10134
+
10135
+ declare class DomainFromEmail extends DataBuilderFormulaBase {
10136
+ value: any;
10137
+ constructor(value: any);
10138
+ getValue(variables: any): string | undefined;
10139
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10140
+ getSchema(): {
10141
+ type: string;
10142
+ };
10143
+ }
10144
+
10145
+ interface EvalOperator {
10146
+ key: string;
10147
+ name: string;
10148
+ operandSchema: any;
10149
+ hasOperand: boolean;
10150
+ }
10151
+ declare class Eval extends DataBuilderFormulaBase {
10152
+ value: any;
10153
+ operatorKey: string;
10154
+ operand: any;
10155
+ constructor(args: any, formulaValue: any);
10156
+ getAvailableOperators(variablesSchema: DataSchema): EvalOperator[];
10157
+ getOperator(variablesSchema: any): EvalOperator;
10158
+ getValue(variables: any): boolean;
10159
+ resolveValue(params: ResolveFormulaParams): Promise<boolean>;
10160
+ getSchema(): {
10161
+ type: string;
10162
+ };
10163
+ toObject(): {
10164
+ $eval: any;
10165
+ };
10166
+ transformVars(transformations: any): {
10167
+ [x: string]: any;
10168
+ $eval: any;
10169
+ } | undefined;
10170
+ }
10171
+
10172
+ declare class DataBuilderFormulaExtractDate extends DataBuilderFormulaBase {
10173
+ value: any;
10174
+ constructor(value: any);
10175
+ getValue(variables: any): string | undefined;
10176
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10177
+ getSchema(): {
10178
+ type: string;
10179
+ format: string;
10180
+ };
10181
+ }
10182
+
10183
+ declare class DataBuilderFormulaExtractTime extends DataBuilderFormulaBase {
10184
+ value: any;
10185
+ constructor(value: any);
10186
+ getValue(variables: any): string;
10187
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10188
+ getSchema(): {
10189
+ type: string;
10190
+ format: string;
10191
+ };
10192
+ }
10193
+
10194
+ interface FindAppRecordIdArgs {
10195
+ dataLinkTable: DataLinkTableConfig;
10196
+ recordId: string;
10197
+ }
10198
+ declare class DataBuilderFormulaFindAppRecordId extends DataBuilderFormulaBase {
10199
+ args: FindAppRecordIdArgs;
10200
+ constructor(args: FindAppRecordIdArgs);
10201
+ getValue(variables: any): {
10202
+ $findAppRecordId: any;
10203
+ };
10204
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10205
+ getSchema(): {
10206
+ type: string;
10207
+ };
10208
+ }
10209
+
10210
+ interface FindExternalRecordIdArgs {
10211
+ dataLinkTable: DataLinkTableConfig;
10212
+ recordId: string;
10213
+ }
10214
+ declare class DataBuilderFormulaFindExternalRecordId extends DataBuilderFormulaBase {
10215
+ args: FindExternalRecordIdArgs;
10216
+ constructor(args: FindExternalRecordIdArgs);
10217
+ getValue(variables: any): {
10218
+ $findExternalRecordId: any;
10219
+ };
10220
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10221
+ getSchema(): {
10222
+ type: string;
10223
+ };
10224
+ }
10225
+
10226
+ declare class DataBuilderFormulaFirstName extends DataBuilderFormulaBase {
10227
+ value: any;
10228
+ constructor(value: any);
10229
+ getValue(variables: any): any;
10230
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10231
+ getSchema(): {
10232
+ type: string;
10233
+ };
10234
+ }
10235
+
10236
+ declare class FirstNotEmpty extends DataBuilderFormulaBase {
10237
+ constructor(args: any[]);
10238
+ getValue(variables: any): any;
10239
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10240
+ getSchema(variablesSchema: any): any;
10241
+ }
10242
+
10243
+ declare class FormulaFormula extends DataBuilderFormulaBase {
10244
+ constructor(args: any);
10245
+ getValue(variables: any): any;
10246
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10247
+ getSchema(): undefined;
10248
+ transformVars(transformations: any): any;
10249
+ }
10250
+
10251
+ interface IterateArguments {
10252
+ source: any;
10253
+ item?: any;
10254
+ }
10255
+ declare class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
10256
+ args: IterateArguments;
10257
+ source: any;
10258
+ item: any;
10259
+ constructor(args: IterateArguments);
10260
+ getValue(variables: any): never[] | undefined;
10261
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10262
+ getSchema(variablesSchema: any): {
10263
+ type: string;
10264
+ items: any;
10265
+ };
10266
+ getVariableLocators(): string[];
10267
+ transformVars(transformations: any): any;
10268
+ }
10269
+
10270
+ declare class JsonataFormula extends DataBuilderFormulaBase {
10271
+ expression: any;
10272
+ constructor(expression: any);
10273
+ getValue(variables: any): any;
10274
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10275
+ getSchema(): any;
10276
+ }
10277
+
10278
+ declare class DataBuilderFormulaLastName extends DataBuilderFormulaBase {
10279
+ value: any;
10280
+ constructor(value: any);
10281
+ getValue(variables: any): any;
10282
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10283
+ getSchema(): {
10284
+ type: string;
10285
+ };
10286
+ toString(variablesSchema: any): string;
10287
+ }
10288
+
10289
+ declare class DataBuilderFormulaLookup extends DataBuilderFormulaBase {
10290
+ value: LookupValue;
10291
+ constructor(value: LookupValue);
10292
+ getValue(variables: any): {
10293
+ $lookup: any;
10294
+ };
10295
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10296
+ getSchema(): {
10297
+ type: string;
10298
+ };
10299
+ }
10300
+
10301
+ interface MappingItem {
10302
+ from: any;
10303
+ to?: any;
10304
+ }
10305
+ interface MapFormulaValue {
10306
+ value: any;
10307
+ mapping: MappingItem[];
10308
+ default?: any;
10309
+ }
10310
+ declare class DataBuilderFormulaMap extends DataBuilderFormulaBase {
10311
+ args: MapFormulaValue;
10312
+ constructor(args: MapFormulaValue);
10313
+ getValue(variables: any): any;
10314
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10315
+ getSchema(variablesSchema: any): any;
10316
+ }
10317
+
10318
+ declare class MergeObjects extends DataBuilderFormulaBase {
10319
+ constructor(args: any[]);
10320
+ getValue(variables: any): {} | undefined;
10321
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10322
+ getSchema(variablesSchema: any): {
10323
+ type: string;
10324
+ properties: {};
10325
+ } | {
10326
+ type: string;
10327
+ };
10328
+ }
10329
+
10330
+ declare class Or extends DataBuilderFormulaBase {
10331
+ constructor(args: any[]);
10332
+ getValue(variables: any): boolean | undefined;
10333
+ resolveValue(params: ResolveFormulaParams): Promise<boolean | undefined>;
10334
+ getSchema(): {
10335
+ type: string;
10336
+ };
10337
+ }
10338
+
10339
+ declare class DataBuilderFormulaPlain extends DataBuilderFormulaBase {
10340
+ value: any;
10341
+ constructor(value: any);
10342
+ getValue(): any;
10343
+ resolveValue(_params: ResolveFormulaParams): Promise<any>;
10344
+ getSchema(): any;
10345
+ }
10346
+
10347
+ declare class DataBuilderFormulaRecord extends DataBuilderFormulaBase {
10348
+ record: DataRecord;
10349
+ constructor(record: DataRecord);
10350
+ getValue(): string;
10351
+ resolveValue(_params: ResolveFormulaParams): Promise<string | undefined>;
10352
+ getSchema(): {
10353
+ type: string;
10354
+ };
10355
+ }
10356
+
10357
+ type TplFormulaArgs = {
10358
+ template: string;
10359
+ values: Record<string, any>;
10360
+ };
10361
+ declare class DataBuilderFormulaTpl extends DataBuilderFormulaBase {
10362
+ args: TplFormulaArgs;
10363
+ constructor(args: TplFormulaArgs);
10364
+ getValue(variables: any): string;
10365
+ resolveValue(params: ResolveFormulaParams): Promise<string | undefined>;
10366
+ getSchema(): {
10367
+ type: string;
10368
+ };
10369
+ }
10370
+
10371
+ declare class DataBuilderFormulaVar extends DataBuilderFormulaBase {
10372
+ locator: string;
10373
+ constructor(locator: string);
10374
+ getValue(variables: any): any;
10375
+ resolveValue(params: ResolveFormulaParams): Promise<any>;
10376
+ getSchema(variablesSchema: any): any;
10377
+ toString(variablesSchema: any): string;
10378
+ getVariableLocators(): string[];
10379
+ transformVars(transformations: any): any;
10380
+ }
10381
+
10382
+ declare const Formula: {
10383
+ Var: typeof DataBuilderFormulaVar;
10384
+ Record: typeof DataBuilderFormulaRecord;
10385
+ Tpl: typeof DataBuilderFormulaTpl;
10386
+ Lookup: typeof DataBuilderFormulaLookup;
10387
+ Plain: typeof DataBuilderFormulaPlain;
10388
+ Map: typeof DataBuilderFormulaMap;
10389
+ And: typeof And;
10390
+ Or: typeof Or;
10391
+ MergeObjects: typeof MergeObjects;
10392
+ FirstNotEmpty: typeof FirstNotEmpty;
10393
+ DomainFromEmail: typeof DomainFromEmail;
10394
+ Formula: typeof FormulaFormula;
10395
+ Base: typeof DataBuilderFormulaBase;
10396
+ Case: typeof DataBuilderFormulaCase;
10397
+ Concat: typeof DataBuilderFormulaConcat;
10398
+ Copy: typeof DataBuilderFormulaCopy;
10399
+ Eval: typeof Eval;
10400
+ ExtractDate: typeof DataBuilderFormulaExtractDate;
10401
+ ExtractTime: typeof DataBuilderFormulaExtractTime;
10402
+ FindAppRecordId: typeof DataBuilderFormulaFindAppRecordId;
10403
+ FindExternalRecordId: typeof DataBuilderFormulaFindExternalRecordId;
10404
+ FirstName: typeof DataBuilderFormulaFirstName;
10405
+ LastName: typeof DataBuilderFormulaLastName;
10406
+ Iterate: typeof DataBuilderFormulaIterate;
10407
+ Jsonata: typeof JsonataFormula;
10408
+ DataSchemaRef: typeof DataSchemaRef;
10409
+ };
10410
+ type Formula = {
10411
+ Var: DataBuilderFormulaVar;
10412
+ Record: DataBuilderFormulaRecord;
10413
+ Tpl: DataBuilderFormulaTpl;
10414
+ Lookup: DataBuilderFormulaLookup;
10415
+ Plain: DataBuilderFormulaPlain;
10416
+ Map: DataBuilderFormulaMap;
10417
+ And: And;
10418
+ Or: Or;
10419
+ MergeObjects: MergeObjects;
10420
+ FirstNotEmpty: FirstNotEmpty;
10421
+ DomainFromEmail: DomainFromEmail;
10422
+ Formula: FormulaFormula;
10423
+ Base: DataBuilderFormulaBase;
10424
+ Case: DataBuilderFormulaCase;
10425
+ Concat: DataBuilderFormulaConcat;
10426
+ Copy: DataBuilderFormulaCopy;
10427
+ Eval: Eval;
10428
+ ExtractDate: DataBuilderFormulaExtractDate;
10429
+ ExtractTime: DataBuilderFormulaExtractTime;
10430
+ FindAppRecordId: DataBuilderFormulaFindAppRecordId;
10431
+ FindExternalRecordId: DataBuilderFormulaFindExternalRecordId;
10432
+ FirstName: DataBuilderFormulaFirstName;
10433
+ LastName: DataBuilderFormulaLastName;
10434
+ Iterate: DataBuilderFormulaIterate;
10435
+ Jsonata: JsonataFormula;
10436
+ DataSchemaRef: DataSchemaRef;
10437
+ };
10438
+ declare function isFormula(value: any): boolean;
10439
+ declare function hasFormulas(value: any): any;
10440
+ declare function getFormula(value: any): DataBuilderFormulaBase | undefined;
10441
+
10442
+ declare function getErrorFromData(data: any): any;
10443
+ declare function extractMembraneErrorData(error: any): ErrorData;
10444
+
10445
+ interface DataField {
10446
+ name: string;
10447
+ locator: string;
10448
+ schema: DataSchema;
10449
+ value: any;
10450
+ }
10451
+
10452
+ interface DataFormArgs {
10453
+ schema: DataSchema;
10454
+ value: any;
10455
+ variablesSchema?: DataSchema;
10456
+ }
10457
+ interface FieldValueOption {
10458
+ name: string;
10459
+ value: any;
10460
+ selected?: boolean;
10461
+ }
10462
+ interface DataForm extends DataFormArgs {
10463
+ }
10464
+ declare class DataForm {
10465
+ constructor(args: DataFormArgs);
10466
+ getFields(): DataField[];
10467
+ getFieldValueOptions(field: DataField): FieldValueOption[];
10468
+ setFieldValue(field: DataField, value: any): any;
10469
+ private makeDataField;
10470
+ }
10471
+
10472
+ declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
10473
+ schema: DataSchema | undefined;
10474
+ value: any;
10475
+ variablesSchema?: DataSchema;
10476
+ }): DataSchema | undefined;
10477
+ declare function updateImpliedSchema({ schema, value, variablesSchema, }: {
10478
+ schema: DataSchema;
10479
+ value: any;
10480
+ variablesSchema?: DataSchema | undefined;
10481
+ }): DataSchema;
10482
+ declare function schemaHasProperties(schema?: DataSchema): boolean;
10483
+ declare function nonEmptyObjectProperties(properties: Record<string, DataSchema | undefined | null>): Record<string, DataSchema>;
10484
+ declare function schemaTypeFromValue(value: any): "object" | "boolean" | "number" | "string" | "array" | undefined;
10485
+ declare function buildDataSchema(value: any, variablesSchema?: any): any;
10486
+ declare function getSchemaFromValue(value: any, variablesSchema: any, ignoreFormulas?: boolean): any;
10487
+ interface ValueToSchemaOptions {
10488
+ addDefaults?: boolean;
10489
+ skipUnknownFields?: boolean;
10490
+ skipReadOnlyFields?: boolean;
10491
+ normalizeValues?: boolean;
10492
+ valueHasFormulas?: boolean;
10493
+ }
10494
+ declare function valueToSchema(value: any, schema: DataSchema | undefined, options?: ValueToSchemaOptions, field?: string): any;
10495
+ declare function schemaIsScalar(schema: DataSchema): boolean;
10496
+ declare function schemaHasFixedValues(schema: DataSchema): boolean;
10497
+ declare function schemaAllowsCustomValue(schema: DataSchema): boolean | undefined;
10498
+ declare function schemaIsNumber(schema: DataSchema): boolean;
10499
+ declare function schemaWithTitle(schema: DataSchema, title: string): DataSchema;
10500
+ declare function schemaWithTitle(schema: DataSchema | undefined, title: string): DataSchema | undefined;
10501
+ declare function pickFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
10502
+ declare function excludeReadOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
10503
+ declare function excludeWriteOnlyFieldsFromSchema(schema?: DataSchema): DataSchema | undefined;
10504
+ declare function excludeFieldsFromSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
10505
+ declare function getRequiredFieldsFromSchema(schema: DataSchema): string[];
10506
+ declare function addRequiredFieldsToSchema(schema: DataSchema | undefined, fields: string[] | undefined): any;
10507
+ declare function removeRequiredFieldsFromSchema(schema: DataSchema): any;
10508
+ declare function getMissingRequiredFields(schema: DataSchema | undefined, value: any): string[];
10509
+ declare function populateSchemaTitles(schema: DataSchema | undefined): DataSchema | undefined;
10510
+ declare function populateSchemaTitles(schema: DataSchema): DataSchema;
10511
+ declare function generateExampleFromSchema(schema: DataSchema | undefined): any;
10512
+ declare function isSchemaEmpty(schema: DataSchema): boolean;
10513
+ declare function compressDataSchema(schema: DataSchema): DataSchema;
10514
+ declare function walkSchema(schema: DataSchema | undefined, callback: (schema: DataSchema, locator: string) => DataSchema | undefined, locator?: string): DataSchema | undefined;
10515
+
10516
+ declare function parseDate(value: any): Date | undefined;
10517
+
10518
+ declare function isBusinessDay(date: Date): boolean;
10519
+ declare function getBusinessDaysBetween(startDate: Date, endDate: Date): Set<string>;
10520
+
10521
+ declare enum LogRecordType {
10522
+ MSG = "message",
10523
+ TEXT = "text",
10524
+ ERR = "error",
10525
+ DATA = "data",
10526
+ COMP = "compare",
10527
+ API = "api-request"
10528
+ }
10529
+ interface LogRecord {
10530
+ type?: LogRecordType;
10531
+ msg?: string;
10532
+ data?: any;
10533
+ }
10534
+
10535
+ type WithExecutionLogs<T extends Record<string, any>> = T & {
10536
+ logs?: any[];
10537
+ };
10538
+ declare function isStream(obj: any): boolean;
10539
+ declare function streamToString(stream: Readable): Promise<string>;
10540
+ declare function truncateData(data: any, depth?: number): any;
10541
+
10542
+ declare enum UsageType {
10543
+ FLOW_RUNS_DURATION = "flow-runs-duration",
10544
+ FLOW_RUNS_NUMBER = "flow-runs-number",
10545
+ FLOW_RUNS_LOG_SIZE = "flow-runs-log-size",
10546
+ API_LOGS_NUMBER = "api-logs-number",
10547
+ API_LOGS_SIZE = "api-logs-size",
10548
+ WEBHOOK_LOGS_NUMBER = "webhook-logs-number",
10549
+ WEBHOOK_LOGS_SIZE = "webhook-logs-size",
10550
+ EVENT_LOGS_NUMBER = "event-logs-number",
10551
+ EVENT_LOGS_SIZE = "event-logs-size",
10552
+ EVENT_LOGS_DURATION = "event-logs-duration",
10553
+ EXTERNAL_EVENTS_PULL_DURATION = "external-events-pull-duration",
10554
+ EXTERNAL_EVENT_PULL_NUMBER = "external-event-pull-number",
10555
+ EXTERNAL_EVENT_PULL_LOG_SIZE = "external-event-pull-log-size",
10556
+ APP_EVENTS_NUMBER = "app-events-number",
10557
+ APP_EVENTS_SIZE = "app-events-size",
10558
+ FILES_UPLOAD_NUMBER = "files-upload-number",
10559
+ FILES_UPLOAD_SIZE = "files-upload-size",
10560
+ CUSTOM_CODE_RUNTIME_DURATION = "custom-code-runtime-duration",
10561
+ MEMBRANE_AGENT = "membrane-agent"
10562
+ }
10563
+ interface UsageWithCredits {
10564
+ key: UsageType;
10565
+ value: number;
10566
+ credits: number;
10567
+ }
10568
+ interface UsageEntry {
10569
+ workspaceId?: string;
10570
+ orgId?: string;
10571
+ customerId?: string;
10572
+ connectionId?: string;
10573
+ key: UsageType;
10574
+ time: string;
10575
+ value: number;
10576
+ }
10577
+
10578
+ declare function getNodeInputSchema(flow: FlowInstance, nodeKey: string): any;
10579
+ declare function getFlowNodeConfigTimeVariablesSchema({ parametersSchema, userSchema, }: {
10580
+ parametersSchema: DataSchema;
10581
+ userSchema: DataSchema;
10582
+ }): DataSchema;
10583
+ declare function getActionRunTimeVariablesSchema({ inputSchema, userSchema }: {
10584
+ inputSchema: any;
10585
+ userSchema: any;
10586
+ }): DataSchema;
10587
+ declare function getActionInstanceVariableSchema(): {
10588
+ type: string;
10589
+ properties: {
10590
+ id: {
10591
+ type: string;
10592
+ };
10593
+ instanceKey: {
10594
+ type: string;
10595
+ };
10596
+ };
10597
+ };
10598
+ declare function getFlowNodeRunTimeVariablesSchema({ parametersSchema, inputSchema, userSchema, }: {
10599
+ parametersSchema: DataSchema;
10600
+ inputSchema: DataSchema;
10601
+ userSchema: DataSchema;
10602
+ }): DataSchema;
10603
+
10604
+ interface App {
10605
+ id: string;
10606
+ apiDocsUri: string;
10607
+ appUri: string;
10608
+ categories: string[];
10609
+ defaultConnectorId: string;
10610
+ key: string;
10611
+ logoUri: string;
10612
+ name: string;
10613
+ popularity: number;
10614
+ uuid: string;
10615
+ knowledgeBaseUuid?: string;
10616
+ hasFreeTestAccount?: boolean | null;
10617
+ freeTestAccountGuide?: string;
10618
+ readmeSlug?: string;
10619
+ isPublic?: boolean;
10620
+ isReadOnly: boolean;
10621
+ }
10622
+ interface AppCategory {
10623
+ count: number;
10624
+ category: string;
10625
+ }
10626
+
10627
+ interface WorkspaceUpdate {
10628
+ id: string;
10629
+ path: string;
10630
+ before?: unknown;
10631
+ after?: unknown;
10632
+ }
10633
+
10513
10634
  declare const PlatformUserSchema: z.ZodObject<{
10514
10635
  id: z.ZodString;
10515
10636
  email: z.ZodString;
@@ -10540,9 +10661,10 @@ declare enum WebhookTypeEnum {
10540
10661
  ORG_CREATED = "org-created",
10541
10662
  TASK_CREATED = "task-created",
10542
10663
  TASK_UPDATED = "task-updated",
10543
- TASK_ACTIVITY_CREATED = "task-activity-created"
10664
+ TASK_ACTIVITY_CREATED = "task-activity-created",
10665
+ CONNECTOR_VERSION_PUBLISHED = "connector-version-published"
10544
10666
  }
10545
- type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED;
10667
+ type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED;
10546
10668
  interface Webhook {
10547
10669
  type: WebhookType;
10548
10670
  url: string;
@@ -10578,14 +10700,19 @@ interface Alert {
10578
10700
  }
10579
10701
 
10580
10702
  declare enum WorkspaceSyncEventType {
10581
- ElementUpdate = "element-update"
10703
+ ElementUpdate = "element-update",
10704
+ Connected = "connected"
10582
10705
  }
10583
- interface WorkspaceSyncEvent {
10584
- type: WorkspaceSyncEventType;
10706
+ type WorkspaceSyncEvent = {
10707
+ type: WorkspaceSyncEventType.ElementUpdate;
10585
10708
  elementType: WorkspaceElementType;
10586
10709
  elementId: string;
10587
10710
  data?: any;
10588
- }
10711
+ } | {
10712
+ type: WorkspaceSyncEventType.Connected;
10713
+ message: string;
10714
+ timestamp?: string;
10715
+ };
10589
10716
  declare enum ConnectorFileUpdateType {
10590
10717
  ConnectorFileUpdated = "connector-file-updated",
10591
10718
  ConnectorFileDeleted = "connector-file-deleted",
@@ -10833,11 +10960,12 @@ declare const AgentSession: z.ZodObject<{
10833
10960
  sessionFilesZipUri: z.ZodOptional<z.ZodString>;
10834
10961
  logs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
10835
10962
  usage: z.ZodOptional<z.ZodNumber>;
10963
+ summary: z.ZodOptional<z.ZodString>;
10836
10964
  }, z.core.$strip>;
10837
10965
  type AgentSession = z.infer<typeof AgentSession>;
10838
10966
  declare const CreateAgentSession: z.ZodObject<{
10839
- workspaceElementType: z.ZodEnum<typeof WorkspaceElementType>;
10840
- workspaceElementId: z.ZodString;
10967
+ workspaceElementType: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementType>>;
10968
+ workspaceElementId: z.ZodOptional<z.ZodString>;
10841
10969
  prompt: z.ZodString;
10842
10970
  testCustomerId: z.ZodOptional<z.ZodString>;
10843
10971
  }, z.core.$strip>;
@@ -10902,5 +11030,5 @@ declare class MembraneClient extends MembraneApiClient {
10902
11030
  connectionRequest(connectionId: string, uri: string, data?: any): Promise<any>;
10903
11031
  }
10904
11032
 
10905
- export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppPublicKey, AppSchema, AppliedToIntegrations, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, 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, 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, ConnectorAuthMethodTypes, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, 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, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, 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, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, 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, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RateLimits, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, 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, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, 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 };
10906
- export type { Action, ActionInstance, ActionInstanceSelector, ActionRunLogRecord, ActionSelector, ActionSpec, AgentSessionInput, Alert, App, AppCategory, AppDataSchema, AppDataSchemaInstance, AppDataSchemaInstanceSelector, AppEvent, AppEventSubscription, AppEventSubscriptionCreateRequest, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest, AppEventType, BaseConnector, BaseElementInstance, CaseFormulaValue, CaseFormulaValueItem, ConfigurationStateResult, Connection, ConnectionUiSpec, Connector, ConnectorApiType, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthOAuth1, ConnectorAuthOAuth1Config, ConnectorAuthOAuth2, ConnectorAuthOAuth2Config, ConnectorAuthOAuthConfig, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthType, ConnectorDataCollection, ConnectorDataCollectionBase, ConnectorDataCollectionEvent, ConnectorDataCollectionEventCustomPull, ConnectorDataCollectionEventFullScan, ConnectorDataCollectionEventImplementationTypeKey, ConnectorDataCollectionEventPullLatestRecords, ConnectorDataCollectionEventType, ConnectorDataCollectionEventWebhook, ConnectorDataCollectionMethod, ConnectorEventGlobalWebhookGetEventSelectorResponse, ConnectorEventHandler, ConnectorEventListItem, ConnectorEventSpec, ConnectorGlobalWebhookHandleRequest, ConnectorGlobalWebhookHandleResponse, ConnectorGlobalWebhookHandler, ConnectorGlobalWebhookListItem, ConnectorGlobalWebhookSpec, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorOperationHandler, ConnectorOperationMethod, ConnectorSpec, ConnectorUdmCollectionMapping, ConnectorUdmListLitem, ConnectorUdmSpec, ConnectorUiSpec, CopilotActivityNotificationData, CreateAppDataSchemaInstanceRequest, CreateAppDataSchemaRequest, CreateAppEventSubscriptionRequest, CreateAppEventTypeRequest, CreateDataLinkRequest, CreateDataLinkTableInstanceRequest, CreateDataLinkTableRequest, CreateFieldMappingInstanceRequest, CreateFlowInstanceRequest, CreateScenarioTemplateRequest, CreateScreenRequest, CreateUserRequest, Customer, DataCollectionEvent, DataCollectionEventsRequest, DataCollectionEventsResponse, DataCollectionListItem, DataCollectionMixin, DataCollectionParseUnifiedFieldsRequest, DataCollectionParseUnifiedFieldsResponse, DataCollectionSubscribeRequest, DataCollectionSubscribeResponse, DataCollectionUnsubscribeRequest, DataCollectionUnsubscribeResponse, DataCollectionUpdateSubscriptionRequest, DataCollectionUpdateSubscriptionResponse, DataEventWebhookPayload, DataFilter, DataFormArgs, DataLinkInTableSelector, DataLinkSelector, DataLinkTable, DataLinkTableInstance, DataLinkTableInstanceSelector, DataLocationPointer, DataLocator, DataRecord, DataSource, DataSourceInstance, DataSourceInstanceSelector, DataSourceSelector, DeleteDataLinkRequest, DownstreamFlowNodeRun, ElementInstanceFields, ElementInstanceSelector, ElementTemplateFields, EngineWorkspace, EngineWorkspaceSettings, EngineWorkspaceWithOrgData, ErrorConstructorArg, EvalOperator, ExternalEventApiResponse, ExternalEventCustomPullCollectEventsRequest, ExternalEventCustomPullCollectEventsResponse, ExternalEventCustomPullSubscribeResponse, ExternalEventLogRecord, ExternalEventPull, ExternalEventSubscription, ExternalEventWebhookHandleRequest, ExternalEventWebhookHandleResponse, ExternalEventWebhookRefreshRequest, ExternalEventWebhookRefreshResponse, ExternalEventWebhookSubscribeRequest, ExternalEventWebhookSubscribeResponse, ExternalEventWebhookUnsubscribeRequest, FieldMapping, FieldMappingInstance, FieldMappingInstanceSelector, FieldMappingSelector, FieldValueOption, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindDataLinkQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceInstancesResponse, FindExternalEventLogsQuery, FindExternalEventPullsQuery, FindExternalEventSubscriptionsQuery, FindFieldMappingInstancesQuery, FindIntegrationsResponse, FindScenarioTemplatesQuery, FindScreensQuery, FindUsersQuery, Flow, FlowInstance, FlowInstanceSelector, FlowNodeHandlerRunResponse, FlowNodeRunOutput, FlowNodeRunOutputMetadata, FlowNodeRunOutputWithoutDownstreamRuns, FlowNodeRunParameters, FlowNodeRunRecord, FlowNodeRunRecordWithoutOutputsData, FlowNodeRunResult, FlowRun, FlowSelector, GraphQLApiMapping, GraphQLFieldMapping, GraphqlApiClientInput, HandyScenarioTemplateElementApi, IWorkspaceUpdate, Integration, IntegrationAuthOptionLegacy, IntegrationElement, IntegrationElementInstance, IntegrationElementInstanceDependency, IntegrationSpecificElementSelector, ListDataSourcesForIntegrationQuery, ListFieldMappingInstancesForConnectionQuery, ListFieldMappingsForIntegrationQuery, ListFlowsForIntegrationQuery, LogRecord, LookupValue, MapFormulaValue, MappingItem, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgUser, OrgWorkspace, Package, PatchSchemaOption, PlatformUser, PullLatestRecordsEventOutput, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, ScreenSelector, Self, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableRequest, UpdateFieldMappingInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateScreenRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, Workspace, WorkspaceElementCalculateStateResult, WorkspaceElementChange, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceExportComparison, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };
11033
+ export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, 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, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, 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, 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, ConnectorAuthMethodTypes, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, 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, 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, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTablesQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, 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, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RateLimits, ResetFlowInstanceOptions, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspacePublicKey, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, 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, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, 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 };
11034
+ export type { Action, ActionInstance, ActionInstanceSelector, ActionRunLogRecord, ActionSelector, ActionSpec, AgentSessionInput, Alert, App, AppCategory, AppDataSchema, AppDataSchemaInstance, AppDataSchemaInstanceSelector, AppEvent, AppEventSubscription, AppEventSubscriptionCreateRequest, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest, AppEventType, BaseConnector, BaseElementInstance, CaseFormulaValue, CaseFormulaValueItem, ConfigurationStateResult, Connection, ConnectionUiSpec, Connector, ConnectorApiType, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthOAuth1, ConnectorAuthOAuth1Config, ConnectorAuthOAuth2, ConnectorAuthOAuth2Config, ConnectorAuthOAuthConfig, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthType, ConnectorDataCollection, ConnectorDataCollectionBase, ConnectorDataCollectionEvent, ConnectorDataCollectionEventCustomPull, ConnectorDataCollectionEventFullScan, ConnectorDataCollectionEventImplementationTypeKey, ConnectorDataCollectionEventPullLatestRecords, ConnectorDataCollectionEventType, ConnectorDataCollectionEventWebhook, ConnectorDataCollectionMethod, ConnectorEventGlobalWebhookGetEventSelectorResponse, ConnectorEventHandler, ConnectorEventListItem, ConnectorEventSpec, ConnectorGlobalWebhookHandleRequest, ConnectorGlobalWebhookHandleResponse, ConnectorGlobalWebhookHandler, ConnectorGlobalWebhookListItem, ConnectorGlobalWebhookSpec, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorOperationHandler, ConnectorOperationMethod, ConnectorSpec, ConnectorUdmCollectionMapping, ConnectorUdmListLitem, ConnectorUdmSpec, ConnectorUiSpec, CopilotActivityNotificationData, CreateAppDataSchemaInstanceRequest, CreateAppDataSchemaRequest, CreateAppEventSubscriptionRequest, CreateAppEventTypeRequest, CreateDataLinkRequest, CreateDataLinkTableInstanceRequest, CreateFieldMappingInstanceRequest, CreateFlowInstanceRequest, CreateScenarioTemplateRequest, CreateScreenRequest, CreateUserRequest, Customer, DataCollectionEvent, DataCollectionEventsRequest, DataCollectionEventsResponse, DataCollectionListItem, DataCollectionMixin, DataCollectionParseUnifiedFieldsRequest, DataCollectionParseUnifiedFieldsResponse, DataCollectionSubscribeRequest, DataCollectionSubscribeResponse, DataCollectionUnsubscribeRequest, DataCollectionUnsubscribeResponse, DataCollectionUpdateSubscriptionRequest, DataCollectionUpdateSubscriptionResponse, DataEventWebhookPayload, DataFilter, DataFormArgs, DataLinkInTableSelector, DataLinkSelector, DataLinkTable, DataLinkTableInstance, DataLinkTableInstanceSelector, DataLocationPointer, DataLocator, DataRecord, DataSource, DataSourceInstance, DataSourceInstanceSelector, DataSourceSelector, DeleteDataLinkRequest, DownstreamFlowNodeRun, ElementInstanceFields, ElementInstanceSelector, ElementTemplateFields, EngineWorkspace, EngineWorkspaceSettings, EngineWorkspaceWithOrgData, ErrorConstructorArg, EvalOperator, ExternalEventApiResponse, ExternalEventCustomPullCollectEventsRequest, ExternalEventCustomPullCollectEventsResponse, ExternalEventCustomPullSubscribeResponse, ExternalEventLogRecord, ExternalEventPull, ExternalEventSubscription, ExternalEventWebhookHandleRequest, ExternalEventWebhookHandleResponse, ExternalEventWebhookRefreshRequest, ExternalEventWebhookRefreshResponse, ExternalEventWebhookSubscribeRequest, ExternalEventWebhookSubscribeResponse, ExternalEventWebhookUnsubscribeRequest, FieldMapping, FieldMappingInstance, FieldMappingInstanceSelector, FieldMappingSelector, FieldValueOption, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindDataLinkQuery, FindDataLinkTableInstancesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceInstancesResponse, FindExternalEventLogsQuery, FindExternalEventPullsQuery, FindExternalEventSubscriptionsQuery, FindFieldMappingInstancesQuery, FindIntegrationsResponse, FindScenarioTemplatesQuery, FindScreensQuery, FindUsersQuery, Flow, FlowInstance, FlowInstanceSelector, FlowNodeHandlerRunResponse, FlowNodeRunOutput, FlowNodeRunOutputMetadata, FlowNodeRunOutputWithoutDownstreamRuns, FlowNodeRunParameters, FlowNodeRunRecord, FlowNodeRunRecordWithoutOutputsData, FlowNodeRunResult, FlowRun, FlowSelector, GraphQLApiMapping, GraphQLFieldMapping, GraphqlApiClientInput, HandyScenarioTemplateElementApi, IWorkspaceUpdate, Integration, IntegrationAuthOptionLegacy, IntegrationElement, IntegrationElementInstance, IntegrationElementInstanceDependency, IntegrationSpecificElementSelector, ListDataSourcesForIntegrationQuery, ListFieldMappingInstancesForConnectionQuery, ListFieldMappingsForIntegrationQuery, ListFlowsForIntegrationQuery, LogRecord, LookupValue, MapFormulaValue, MappingItem, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgUser, OrgWorkspace, Package, PatchSchemaOption, PlatformUser, PullLatestRecordsEventOutput, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, ScreenSelector, Self, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateFieldMappingInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateScreenRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, WorkspaceElementCalculateStateResult, WorkspaceElementChange, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceExport, WorkspaceExportComparison, WorkspaceExportComparisonResult, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };