@membranehq/sdk 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/bundle.d.ts +15 -10
  2. package/dist/bundle.js +14 -2
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +1 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +1 -1
  6. package/dist/dts/agent/session.d.ts +9 -0
  7. package/dist/dts/functions/base.d.ts +1 -0
  8. package/dist/dts/functions/function-types/index.d.ts +2 -2
  9. package/dist/dts/functions/function-types/rest-api-mapping.d.ts +6 -6
  10. package/dist/dts/orgs/types.d.ts +1 -0
  11. package/dist/dts/ui.d.ts +5 -0
  12. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +2 -2
  13. package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -3
  14. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
  15. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
  16. package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -1
  17. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -1
  18. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -1
  19. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -1
  20. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -2
  21. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -2
  22. package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -2
  23. package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +1 -1
  24. package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -1
  25. package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +8 -1
  26. package/dist/dts/workspace-elements/base/connections/index.d.ts +1 -1
  27. package/dist/dts/workspaces/types.d.ts +2 -0
  28. package/dist/index.browser.d.mts +58 -33
  29. package/dist/index.browser.d.ts +58 -33
  30. package/dist/index.browser.js +62 -6
  31. package/dist/index.browser.js.map +1 -1
  32. package/dist/index.browser.mjs +59 -7
  33. package/dist/index.browser.mjs.map +1 -1
  34. package/dist/index.node.d.mts +58 -33
  35. package/dist/index.node.d.ts +58 -33
  36. package/dist/index.node.js +62 -6
  37. package/dist/index.node.js.map +1 -1
  38. package/dist/index.node.mjs +59 -7
  39. package/dist/index.node.mjs.map +1 -1
  40. package/package.json +1 -1
@@ -777,8 +777,11 @@ declare const BaseActionInstance: z.ZodObject<{
777
777
  type BaseActionInstance = BaseAction;
778
778
 
779
779
  declare const CONNECTION_REQUEST_SCREEN_PATH = "screens/connect";
780
+ declare const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = "screens/connections";
780
781
  declare const CONNECTION_REQUEST_ID_PARAM = "connectionRequestId";
781
- declare function getConnectionRequestUrl(baseUri: string, requestId: string): string;
782
+ declare function getConnectionRequestUrl(baseUri: string, requestId: string, options?: {
783
+ prompt?: string;
784
+ }): string;
782
785
  declare const CreateConnectionRequestPayload: z.ZodObject<{
783
786
  integrationId: z.ZodOptional<z.ZodString>;
784
787
  integrationKey: z.ZodOptional<z.ZodString>;
@@ -790,8 +793,11 @@ declare const CreateConnectionRequestPayload: z.ZodObject<{
790
793
  allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
791
794
  connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
792
795
  redirectUri: z.ZodOptional<z.ZodString>;
796
+ prompt: z.ZodOptional<z.ZodString>;
793
797
  }, z.core.$strip>;
794
798
  type CreateConnectionRequestPayload = z.infer<typeof CreateConnectionRequestPayload>;
799
+ declare const PatchConnectionRequestPayload: z.ZodObject<{}, z.core.$strip>;
800
+ type PatchConnectionRequestPayload = z.infer<typeof PatchConnectionRequestPayload>;
795
801
  declare const ConnectionRequest: z.ZodObject<{
796
802
  requestId: z.ZodString;
797
803
  tenantId: z.ZodString;
@@ -805,6 +811,7 @@ declare const ConnectionRequest: z.ZodObject<{
805
811
  allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
806
812
  connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
807
813
  redirectUri: z.ZodOptional<z.ZodString>;
814
+ prompt: z.ZodOptional<z.ZodString>;
808
815
  status: z.ZodEnum<{
809
816
  success: "success";
810
817
  error: "error";
@@ -3434,6 +3441,7 @@ declare const GenericFunctionDefinition: z.ZodObject<{
3434
3441
  }>>;
3435
3442
  }, z.core.$loose>;
3436
3443
  type GenericFunctionDefinition = z.infer<typeof GenericFunctionDefinition>;
3444
+ declare function validateFunctionDefinitions(functions: Record<string, GenericFunctionDefinition>, schema: z.ZodType): void;
3437
3445
 
3438
3446
  declare function getEffectiveConnectorOption(connector: Connector, optionKey: string): ConnectorOption;
3439
3447
  interface ConnectorFunctionSpec {
@@ -9432,7 +9440,7 @@ declare const BaseConnection: z.ZodObject<{
9432
9440
  archivedAt: z.ZodOptional<z.ZodString>;
9433
9441
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
9434
9442
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9435
- agentSessionId: z.ZodOptional<z.ZodString>;
9443
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
9436
9444
  clientAction: z.ZodOptional<z.ZodObject<{
9437
9445
  type: z.ZodEnum<{
9438
9446
  connect: "connect";
@@ -12533,7 +12541,7 @@ declare const ConnectionApiResponse: z.ZodObject<{
12533
12541
  archivedAt: z.ZodOptional<z.ZodString>;
12534
12542
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
12535
12543
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12536
- agentSessionId: z.ZodOptional<z.ZodString>;
12544
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
12537
12545
  clientAction: z.ZodOptional<z.ZodObject<{
12538
12546
  type: z.ZodEnum<{
12539
12547
  connect: "connect";
@@ -12631,7 +12639,7 @@ declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
12631
12639
  archivedAt: z.ZodOptional<z.ZodString>;
12632
12640
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
12633
12641
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12634
- agentSessionId: z.ZodOptional<z.ZodString>;
12642
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
12635
12643
  clientAction: z.ZodOptional<z.ZodObject<{
12636
12644
  type: z.ZodEnum<{
12637
12645
  connect: "connect";
@@ -12737,7 +12745,7 @@ declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
12737
12745
  archivedAt: z.ZodOptional<z.ZodString>;
12738
12746
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
12739
12747
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12740
- agentSessionId: z.ZodOptional<z.ZodString>;
12748
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
12741
12749
  clientAction: z.ZodOptional<z.ZodObject<{
12742
12750
  type: z.ZodEnum<{
12743
12751
  connect: "connect";
@@ -13029,7 +13037,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
13029
13037
  archivedAt: z.ZodOptional<z.ZodString>;
13030
13038
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
13031
13039
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13032
- agentSessionId: z.ZodOptional<z.ZodString>;
13040
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
13033
13041
  clientAction: z.ZodOptional<z.ZodObject<{
13034
13042
  type: z.ZodEnum<{
13035
13043
  connect: "connect";
@@ -13229,7 +13237,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
13229
13237
  archivedAt: z.ZodOptional<z.ZodString>;
13230
13238
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
13231
13239
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13232
- agentSessionId: z.ZodOptional<z.ZodString>;
13240
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
13233
13241
  clientAction: z.ZodOptional<z.ZodObject<{
13234
13242
  type: z.ZodEnum<{
13235
13243
  connect: "connect";
@@ -13579,7 +13587,7 @@ declare const FlowApiResponse: z.ZodObject<{
13579
13587
  archivedAt: z.ZodOptional<z.ZodString>;
13580
13588
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
13581
13589
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13582
- agentSessionId: z.ZodOptional<z.ZodString>;
13590
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
13583
13591
  clientAction: z.ZodOptional<z.ZodObject<{
13584
13592
  type: z.ZodEnum<{
13585
13593
  connect: "connect";
@@ -13935,7 +13943,7 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
13935
13943
  archivedAt: z.ZodOptional<z.ZodString>;
13936
13944
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
13937
13945
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13938
- agentSessionId: z.ZodOptional<z.ZodString>;
13946
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
13939
13947
  clientAction: z.ZodOptional<z.ZodObject<{
13940
13948
  type: z.ZodEnum<{
13941
13949
  connect: "connect";
@@ -14649,7 +14657,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
14649
14657
  archivedAt: z.ZodOptional<z.ZodString>;
14650
14658
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
14651
14659
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14652
- agentSessionId: z.ZodOptional<z.ZodString>;
14660
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
14653
14661
  clientAction: z.ZodOptional<z.ZodObject<{
14654
14662
  type: z.ZodEnum<{
14655
14663
  connect: "connect";
@@ -15250,7 +15258,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
15250
15258
  archivedAt: z.ZodOptional<z.ZodString>;
15251
15259
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
15252
15260
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15253
- agentSessionId: z.ZodOptional<z.ZodString>;
15261
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
15254
15262
  clientAction: z.ZodOptional<z.ZodObject<{
15255
15263
  type: z.ZodEnum<{
15256
15264
  connect: "connect";
@@ -15769,7 +15777,7 @@ declare class ConnectionAccessor {
15769
15777
  archivedAt?: string | undefined;
15770
15778
  isDeactivated?: boolean | undefined;
15771
15779
  meta?: Record<string, any> | undefined;
15772
- agentSessionId?: string | undefined;
15780
+ buildingAgentSessionId?: string | undefined;
15773
15781
  clientAction?: {
15774
15782
  type: "connect" | "provide-input";
15775
15783
  description: string;
@@ -16091,7 +16099,7 @@ declare const IntegrationApiResponse: z.ZodObject<{
16091
16099
  archivedAt: z.ZodOptional<z.ZodString>;
16092
16100
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
16093
16101
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16094
- agentSessionId: z.ZodOptional<z.ZodString>;
16102
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
16095
16103
  clientAction: z.ZodOptional<z.ZodObject<{
16096
16104
  type: z.ZodEnum<{
16097
16105
  connect: "connect";
@@ -16360,7 +16368,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
16360
16368
  archivedAt: z.ZodOptional<z.ZodString>;
16361
16369
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
16362
16370
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16363
- agentSessionId: z.ZodOptional<z.ZodString>;
16371
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
16364
16372
  clientAction: z.ZodOptional<z.ZodObject<{
16365
16373
  type: z.ZodEnum<{
16366
16374
  connect: "connect";
@@ -16660,7 +16668,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
16660
16668
  archivedAt: z.ZodOptional<z.ZodString>;
16661
16669
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
16662
16670
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16663
- agentSessionId: z.ZodOptional<z.ZodString>;
16671
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
16664
16672
  clientAction: z.ZodOptional<z.ZodObject<{
16665
16673
  type: z.ZodEnum<{
16666
16674
  connect: "connect";
@@ -17016,7 +17024,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
17016
17024
  archivedAt?: string | undefined;
17017
17025
  isDeactivated?: boolean | undefined;
17018
17026
  meta?: Record<string, any> | undefined;
17019
- agentSessionId?: string | undefined;
17027
+ buildingAgentSessionId?: string | undefined;
17020
17028
  clientAction?: {
17021
17029
  type: "connect" | "provide-input";
17022
17030
  description: string;
@@ -17696,7 +17704,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
17696
17704
  archivedAt: z.ZodOptional<z.ZodString>;
17697
17705
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
17698
17706
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17699
- agentSessionId: z.ZodOptional<z.ZodString>;
17707
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
17700
17708
  clientAction: z.ZodOptional<z.ZodObject<{
17701
17709
  type: z.ZodEnum<{
17702
17710
  connect: "connect";
@@ -18747,7 +18755,7 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
18747
18755
  archivedAt: z.ZodOptional<z.ZodString>;
18748
18756
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
18749
18757
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18750
- agentSessionId: z.ZodOptional<z.ZodString>;
18758
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
18751
18759
  clientAction: z.ZodOptional<z.ZodObject<{
18752
18760
  type: z.ZodEnum<{
18753
18761
  connect: "connect";
@@ -18965,7 +18973,7 @@ declare const FindActionRunLogsResponse: z.ZodObject<{
18965
18973
  archivedAt: z.ZodOptional<z.ZodString>;
18966
18974
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
18967
18975
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18968
- agentSessionId: z.ZodOptional<z.ZodString>;
18976
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
18969
18977
  clientAction: z.ZodOptional<z.ZodObject<{
18970
18978
  type: z.ZodEnum<{
18971
18979
  connect: "connect";
@@ -19284,7 +19292,7 @@ declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
19284
19292
  archivedAt: z.ZodOptional<z.ZodString>;
19285
19293
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
19286
19294
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
19287
- agentSessionId: z.ZodOptional<z.ZodString>;
19295
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
19288
19296
  clientAction: z.ZodOptional<z.ZodObject<{
19289
19297
  type: z.ZodEnum<{
19290
19298
  connect: "connect";
@@ -19719,7 +19727,7 @@ declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
19719
19727
  archivedAt: z.ZodOptional<z.ZodString>;
19720
19728
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
19721
19729
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
19722
- agentSessionId: z.ZodOptional<z.ZodString>;
19730
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
19723
19731
  clientAction: z.ZodOptional<z.ZodObject<{
19724
19732
  type: z.ZodEnum<{
19725
19733
  connect: "connect";
@@ -19898,7 +19906,7 @@ declare const ExternalEventPullApiResponse: z.ZodObject<{
19898
19906
  archivedAt: z.ZodOptional<z.ZodString>;
19899
19907
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
19900
19908
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
19901
- agentSessionId: z.ZodOptional<z.ZodString>;
19909
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
19902
19910
  clientAction: z.ZodOptional<z.ZodObject<{
19903
19911
  type: z.ZodEnum<{
19904
19912
  connect: "connect";
@@ -20081,7 +20089,7 @@ declare const ExternalApiLogApiResponse: z.ZodObject<{
20081
20089
  archivedAt: z.ZodOptional<z.ZodString>;
20082
20090
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
20083
20091
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20084
- agentSessionId: z.ZodOptional<z.ZodString>;
20092
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
20085
20093
  clientAction: z.ZodOptional<z.ZodObject<{
20086
20094
  type: z.ZodEnum<{
20087
20095
  connect: "connect";
@@ -20207,7 +20215,7 @@ declare const IncomingWebhookApiResponse: z.ZodObject<{
20207
20215
  archivedAt: z.ZodOptional<z.ZodString>;
20208
20216
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
20209
20217
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20210
- agentSessionId: z.ZodOptional<z.ZodString>;
20218
+ buildingAgentSessionId: z.ZodOptional<z.ZodString>;
20211
20219
  clientAction: z.ZodOptional<z.ZodObject<{
20212
20220
  type: z.ZodEnum<{
20213
20221
  connect: "connect";
@@ -20503,9 +20511,18 @@ declare const CreateAgentSession: z.ZodObject<{
20503
20511
  agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
20504
20512
  }, z.core.$strip>;
20505
20513
  type CreateAgentSession = z.infer<typeof CreateAgentSession>;
20514
+ declare const AgentSessionAttachment: z.ZodObject<{
20515
+ title: z.ZodString;
20516
+ data: z.ZodUnknown;
20517
+ }, z.core.$strip>;
20518
+ type AgentSessionAttachment = z.infer<typeof AgentSessionAttachment>;
20506
20519
  declare const AgentSessionInputSchema: z.ZodObject<{
20507
20520
  input: z.ZodString;
20508
20521
  synthetic: z.ZodOptional<z.ZodBoolean>;
20522
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
20523
+ title: z.ZodString;
20524
+ data: z.ZodUnknown;
20525
+ }, z.core.$strip>>>;
20509
20526
  }, z.core.$strip>;
20510
20527
  type AgentSessionInput = z.infer<typeof AgentSessionInputSchema>;
20511
20528
  declare const PatchAgentSessionSchema: z.ZodObject<{
@@ -21476,6 +21493,7 @@ declare const AppSchema: z$1.ZodObject<{
21476
21493
  isThrottled: z$1.ZodOptional<z$1.ZodBoolean>;
21477
21494
  isDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
21478
21495
  isBackgroundJobsDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
21496
+ isReadOnly: z$1.ZodOptional<z$1.ZodBoolean>;
21479
21497
  lastExternalApiRequestDate: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
21480
21498
  }, z$1.core.$strip>;
21481
21499
  declare const Workspace: z$1.ZodObject<{
@@ -21744,6 +21762,7 @@ declare const Workspace: z$1.ZodObject<{
21744
21762
  isThrottled: z$1.ZodOptional<z$1.ZodBoolean>;
21745
21763
  isDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
21746
21764
  isBackgroundJobsDisabled: z$1.ZodOptional<z$1.ZodBoolean>;
21765
+ isReadOnly: z$1.ZodOptional<z$1.ZodBoolean>;
21747
21766
  lastExternalApiRequestDate: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
21748
21767
  }, z$1.core.$strip>;
21749
21768
  type Workspace = z$1.infer<typeof Workspace>;
@@ -22496,6 +22515,7 @@ declare const AccountResponse: z.ZodObject<{
22496
22515
  isThrottled: z.ZodOptional<z.ZodBoolean>;
22497
22516
  isDisabled: z.ZodOptional<z.ZodBoolean>;
22498
22517
  isBackgroundJobsDisabled: z.ZodOptional<z.ZodBoolean>;
22518
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
22499
22519
  lastExternalApiRequestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22500
22520
  }, z.core.$strip>>;
22501
22521
  superAdminToken: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -23748,24 +23768,24 @@ type RequestMappingSchema = z.infer<typeof RequestMappingSchema>;
23748
23768
  declare const RestApiMappingSchema: z.ZodObject<{
23749
23769
  path: z.ZodString;
23750
23770
  method: z.ZodString;
23751
- requestMapping: z.ZodObject<{
23771
+ requestMapping: z.ZodOptional<z.ZodObject<{
23752
23772
  pathParameters: z.ZodOptional<z.ZodAny>;
23753
23773
  query: z.ZodOptional<z.ZodAny>;
23754
23774
  data: z.ZodOptional<z.ZodAny>;
23755
23775
  headers: z.ZodOptional<z.ZodAny>;
23756
- }, z.core.$strip>;
23776
+ }, z.core.$strip>>;
23757
23777
  responseMapping: z.ZodOptional<z.ZodAny>;
23758
23778
  }, z.core.$strip>;
23759
23779
  type RestApiMappingSchema = z.infer<typeof RestApiMappingSchema>;
23760
23780
  declare const OpenapiMappingSchema: z.ZodObject<{
23761
23781
  path: z.ZodString;
23762
23782
  method: z.ZodString;
23763
- requestMapping: z.ZodObject<{
23783
+ requestMapping: z.ZodOptional<z.ZodObject<{
23764
23784
  pathParameters: z.ZodOptional<z.ZodAny>;
23765
23785
  query: z.ZodOptional<z.ZodAny>;
23766
23786
  data: z.ZodOptional<z.ZodAny>;
23767
23787
  headers: z.ZodOptional<z.ZodAny>;
23768
- }, z.core.$strip>;
23788
+ }, z.core.$strip>>;
23769
23789
  responseMapping: z.ZodOptional<z.ZodAny>;
23770
23790
  }, z.core.$strip>;
23771
23791
  type OpenapiMappingSchema = z.infer<typeof OpenapiMappingSchema>;
@@ -23774,12 +23794,12 @@ declare const RestApiMappingFunction: z.ZodObject<{
23774
23794
  mapping: z.ZodObject<{
23775
23795
  path: z.ZodString;
23776
23796
  method: z.ZodString;
23777
- requestMapping: z.ZodObject<{
23797
+ requestMapping: z.ZodOptional<z.ZodObject<{
23778
23798
  pathParameters: z.ZodOptional<z.ZodAny>;
23779
23799
  query: z.ZodOptional<z.ZodAny>;
23780
23800
  data: z.ZodOptional<z.ZodAny>;
23781
23801
  headers: z.ZodOptional<z.ZodAny>;
23782
- }, z.core.$strip>;
23802
+ }, z.core.$strip>>;
23783
23803
  responseMapping: z.ZodOptional<z.ZodAny>;
23784
23804
  }, z.core.$strip>;
23785
23805
  }, z.core.$strip>;
@@ -23872,12 +23892,12 @@ declare const FunctionDefinition: z.ZodUnion<readonly [z.ZodObject<{
23872
23892
  mapping: z.ZodObject<{
23873
23893
  path: z.ZodString;
23874
23894
  method: z.ZodString;
23875
- requestMapping: z.ZodObject<{
23895
+ requestMapping: z.ZodOptional<z.ZodObject<{
23876
23896
  pathParameters: z.ZodOptional<z.ZodAny>;
23877
23897
  query: z.ZodOptional<z.ZodAny>;
23878
23898
  data: z.ZodOptional<z.ZodAny>;
23879
23899
  headers: z.ZodOptional<z.ZodAny>;
23880
- }, z.core.$strip>;
23900
+ }, z.core.$strip>>;
23881
23901
  responseMapping: z.ZodOptional<z.ZodAny>;
23882
23902
  }, z.core.$strip>;
23883
23903
  }, z.core.$strip>, z.ZodObject<{
@@ -24134,6 +24154,10 @@ declare const ListClustersQuery: z.ZodObject<{
24134
24154
  }, z.core.$strip>;
24135
24155
  type ListClustersQuery = z.infer<typeof ListClustersQuery>;
24136
24156
 
24157
+ interface ConnectionUIOptions {
24158
+ connectionId: string;
24159
+ theme?: 'light' | 'dark' | 'auto';
24160
+ }
24137
24161
  interface UNSAFE_AgentSessionUIOptions {
24138
24162
  sessionId: string;
24139
24163
  theme?: 'light' | 'dark' | 'auto';
@@ -24142,6 +24166,7 @@ declare class UI {
24142
24166
  private client;
24143
24167
  constructor(client: MembraneApiClient);
24144
24168
  connect(options?: ConnectUIOptions): Promise<ConnectionApiResponse | null>;
24169
+ connection(options: ConnectionUIOptions): Promise<ConnectionApiResponse | null>;
24145
24170
  UNSAFE_agentSession(options: UNSAFE_AgentSessionUIOptions): Promise<void>;
24146
24171
  }
24147
24172
 
@@ -24233,5 +24258,5 @@ declare function getDefaultMembraneConfigLoader(): MembraneConfigLoader;
24233
24258
  declare function loadMembraneConfig(cwd?: string, options?: LoadConfigOptions): PartialMembraneConfig;
24234
24259
  declare function hasMembraneCredentials(cwd?: string): boolean;
24235
24260
 
24236
- export { ACTIONS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentName, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, And, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequestStatus, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CLIENT_TOKEN_GRANT_TYPES, CONFIG_FILE_NAME, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, ClientToken, ClientTokenGrantType, ClientTokenListResponse, Cluster, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionClientAction, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType$1 as ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateAlert, CreateClientTokenRequest, CreateClientTokenResponse, CreateClusterRequest, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaBase, DataBuilderFormulaCase, DataBuilderFormulaConcat, DataBuilderFormulaCopy, DataBuilderFormulaExtractDate, DataBuilderFormulaExtractTime, DataBuilderFormulaFindAppRecordId, DataBuilderFormulaFindExternalRecordId, DataBuilderFormulaFirstName, DataBuilderFormulaIterate, DataBuilderFormulaLastName, DataBuilderFormulaLookup, DataBuilderFormulaMap, DataBuilderFormulaPlain, DataBuilderFormulaRecord, DataBuilderFormulaTpl, DataBuilderFormulaType, DataBuilderFormulaVar, 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, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSchemaRef, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DomainFromEmail, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, EnsureConnectionRequest, ErrorData, ErrorDataSchema, ErrorType, Eval, ExternalApiLogApiResponse, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FirstNotEmpty, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FormulaFormula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, IntentProperties, InternalError, InvalidLocatorError, JavascriptFunction, JsonataFormula, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListClustersQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneElementLayer, MembraneError, MergeObjects, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_SCOPES, OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Or, Org, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, Workspace, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, 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, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, selectHighestPriorityScope, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion, zodDateCoercion };
24261
+ export { ACTIONS, AGENTIC_CONNECTION_REQUEST_SCREEN_PATH, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentName, AgentSession, AgentSessionAttachment, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, And, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequestStatus, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CLIENT_TOKEN_GRANT_TYPES, CONFIG_FILE_NAME, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, ClientToken, ClientTokenGrantType, ClientTokenListResponse, Cluster, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionClientAction, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType$1 as ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateAlert, CreateClientTokenRequest, CreateClientTokenResponse, CreateClusterRequest, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaBase, DataBuilderFormulaCase, DataBuilderFormulaConcat, DataBuilderFormulaCopy, DataBuilderFormulaExtractDate, DataBuilderFormulaExtractTime, DataBuilderFormulaFindAppRecordId, DataBuilderFormulaFindExternalRecordId, DataBuilderFormulaFirstName, DataBuilderFormulaIterate, DataBuilderFormulaLastName, DataBuilderFormulaLookup, DataBuilderFormulaMap, DataBuilderFormulaPlain, DataBuilderFormulaRecord, DataBuilderFormulaTpl, DataBuilderFormulaType, DataBuilderFormulaVar, 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, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSchemaRef, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DomainFromEmail, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, EnsureConnectionRequest, ErrorData, ErrorDataSchema, ErrorType, Eval, ExternalApiLogApiResponse, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FirstNotEmpty, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FormulaFormula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, IntentProperties, InternalError, InvalidLocatorError, JavascriptFunction, JsonataFormula, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListClustersQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneConfigLoader, MembraneElementLayer, MembraneError, MergeObjects, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_SCOPES, OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Or, Org, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PatchConnectionRequestPayload, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, Workspace, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, 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, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, selectHighestPriorityScope, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, validateFunctionDefinitions, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion, zodDateCoercion };
24237
24262
  export type { Action, ActionInstance, ActionInstanceSelector, ActionRunLogRecord, ActionSelector, ActionSpec, AgentSessionInput, AlertDeliveryMethod, AlertDeliverySettings, AlertTypeDeliverySettings, App, AppCategory, AppDataSchema, AppDataSchemaInstance, AppDataSchemaInstanceSelector, AppEvent, AppEventSubscription, AppEventSubscriptionCreateRequest, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest, AppEventType, AsyncRequestStatusResponse, AuthContextPermissions, BaseElementInstance, CaseFormulaValue, CaseFormulaValueItem, CheckpointDiffOperation, CheckpointDiffResponse, ClusterDto, ConfigurationStateResult, ConnectOptions, Connection, ConnectionUiSpec, ConnectorApiType, ConnectorAuthOAuth1Config, ConnectorAuthOAuth2Config, ConnectorAuthOAuthConfig, ConnectorAuthType, ConnectorDataCollection, ConnectorDataCollectionBase, ConnectorDataCollectionEvent, ConnectorDataCollectionEventCustomPull, ConnectorDataCollectionEventFullScan, ConnectorDataCollectionEventImplementationTypeKey, ConnectorDataCollectionEventPullLatestRecords, ConnectorDataCollectionEventType, ConnectorDataCollectionEventWebhook, ConnectorDataCollectionMethod, ConnectorEventGlobalWebhookGetEventSelectorResponse, ConnectorEventHandler, ConnectorEventListItem, ConnectorEventSpec, ConnectorExport, ConnectorFunctionSpec, ConnectorGlobalWebhookHandleRequest, ConnectorGlobalWebhookHandleResponse, ConnectorGlobalWebhookHandler, ConnectorGlobalWebhookListItem, ConnectorGlobalWebhookSpec, ConnectorOperationHandler, ConnectorOperationMethod, ConnectorVersionExport, CopilotActivityNotificationData, CreateAppDataSchemaInstanceRequest, CreateAppDataSchemaRequest, CreateAppEventSubscriptionRequest, CreateAppEventTypeRequest, CreateDataLinkRequest, CreateDataLinkTableInstanceRequest, CreateFlowInstanceRequest, CreateScenarioTemplateRequest, CreateUserRequest, Customer, CustomerRateLimitAlerts, DataCollectionEvent, DataCollectionEventsRequest, DataCollectionEventsResponse, DataCollectionListItem, DataCollectionMixin, DataCollectionParseUnifiedFieldsRequest, DataCollectionParseUnifiedFieldsResponse, DataCollectionSubscribeRequest, DataCollectionSubscribeResponse, DataCollectionUnsubscribeRequest, DataCollectionUnsubscribeResponse, DataCollectionUpdateSubscriptionRequest, DataCollectionUpdateSubscriptionResponse, DataEventWebhookPayload, DataFilter, DataFormArgs, DataLinkInTableSelector, DataLinkSelector, DataLinkTable, DataLinkTableInstance, DataLinkTableInstanceSelector, DataLocator, DataRecord, DataSource, DataSourceInstanceSelector, DataSourceSelector, DbBackedCounts, DeleteDataLinkRequest, DownstreamFlowNodeRun, ElementInstanceFields, ElementInstanceSelector, ElementTemplateFields, EngineCreditsProjection, EngineWorkspace, EngineWorkspaceSettings, EngineWorkspaceWithOrgData, ErrorConstructorArg, EvalOperator, ExternalEventApiResponse, ExternalEventCustomPullCollectEventsRequest, ExternalEventCustomPullCollectEventsResponse, ExternalEventCustomPullSubscribeResponse, ExternalEventLogRecord, ExternalEventPull, ExternalEventSubscription, ExternalEventWebhookHandleRequest, ExternalEventWebhookHandleResponse, ExternalEventWebhookRefreshRequest, ExternalEventWebhookRefreshResponse, ExternalEventWebhookSubscribeRequest, ExternalEventWebhookSubscribeResponse, ExternalEventWebhookUnsubscribeRequest, FieldMapping, FieldMappingInstanceSelector, FieldMappingSelector, FieldValueOption, FilterFieldMeta, FindDataLinkQuery, FindDataSourceInstancesResponse, FindExternalEventLogsQuery, FindExternalEventSubscriptionsQuery, FindIntegrationsResponse, FindScenarioTemplatesQuery, FindUsersQuery, Flow, FlowInstance, FlowInstanceSelector, FlowNodeHandlerRunResponse, FlowNodeRunOutput, FlowNodeRunOutputMetadata, FlowNodeRunOutputWithoutDownstreamRuns, FlowNodeRunParameters, FlowNodeRunRecord, FlowNodeRunRecordWithoutOutputsData, FlowNodeRunResult, FlowRun, FlowSelector, GraphQLApiMapping, GraphQLFieldMapping, GraphqlApiClientInput, HandyScenarioTemplateElementApi, IWorkspaceUpdate, IneligibilityReason, Integration, IntegrationAuthOptionLegacy, IntegrationElement, IntegrationElementInstance, IntegrationElementInstanceDependency, ListDataSourcesForIntegrationQuery, ListFieldMappingInstancesForConnectionQuery, ListFieldMappingsForIntegrationQuery, ListFlowsForIntegrationQuery, LoadConfigOptions, LogRecord, LookupValue, MapFormulaValue, MappingItem, MembraneConfig, OAuthScope, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, OrgFeatureFlags, OrgPermissions, OrgUser, Package, PartialMembraneConfig, PatchAgentSession, PatchSchemaOption, PendingQueueCount, PendingTasksSummary, PlatformUserPermissions, PullLatestRecordsEventOutput, RateLimitAlerts, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, Self, SessionStatus, TenantPermissions, TestAlerts, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageAlerts, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, WorkerTypeFilter, WorkspaceElementCalculateStateResult, WorkspaceElementChange, WorkspaceElementChangeInfo, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceElementsStats, WorkspaceExport, WorkspaceExportComparison, WorkspaceExportComparisonOptions, WorkspaceExportComparisonResult, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspacePermissions, WorkspaceSettings, WorkspaceSizeAlerts, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };
@@ -3989,9 +3989,11 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
3989
3989
  const BaseActionInstance = BaseAction;
3990
3990
 
3991
3991
  const CONNECTION_REQUEST_SCREEN_PATH = 'screens/connect';
3992
+ const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = 'screens/connections';
3992
3993
  const CONNECTION_REQUEST_ID_PARAM = 'connectionRequestId';
3993
- function getConnectionRequestUrl(baseUri, requestId) {
3994
- return `${baseUri}/${CONNECTION_REQUEST_SCREEN_PATH}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
3994
+ function getConnectionRequestUrl(baseUri, requestId, options) {
3995
+ const screenPath = (options === null || options === void 0 ? void 0 : options.prompt) ? AGENTIC_CONNECTION_REQUEST_SCREEN_PATH : CONNECTION_REQUEST_SCREEN_PATH;
3996
+ return `${baseUri}/${screenPath}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
3995
3997
  }
3996
3998
  const CreateConnectionRequestPayload = z.z.object({
3997
3999
  integrationId: z.z.string().optional(),
@@ -4004,7 +4006,9 @@ const CreateConnectionRequestPayload = z.z.object({
4004
4006
  allowMultipleConnections: z.z.boolean().optional(),
4005
4007
  connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
4006
4008
  redirectUri: z.z.string().url().optional(),
4009
+ prompt: z.z.string().optional(),
4007
4010
  });
4011
+ const PatchConnectionRequestPayload = z.z.object({});
4008
4012
  const ConnectionRequest = z.z.object({
4009
4013
  requestId: z.z.string(),
4010
4014
  tenantId: z.z.string(),
@@ -4018,6 +4022,7 @@ const ConnectionRequest = z.z.object({
4018
4022
  allowMultipleConnections: z.z.boolean().optional(),
4019
4023
  connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
4020
4024
  redirectUri: z.z.string().url().optional(),
4025
+ prompt: z.z.string().optional(),
4021
4026
  status: z.z.enum(['pending', 'success', 'cancelled', 'error']),
4022
4027
  resultConnectionId: z.z.string().optional(),
4023
4028
  resultError: ErrorDataSchema.optional(),
@@ -4072,10 +4077,10 @@ const BaseConnection = BaseWorkspaceElement.extend({
4072
4077
  archivedAt: z.z.string().optional(),
4073
4078
  isDeactivated: z.z.boolean().optional(),
4074
4079
  meta: z.z.record(z.z.string(), z.z.any()).optional(),
4075
- agentSessionId: z.z
4080
+ buildingAgentSessionId: z.z
4076
4081
  .string()
4077
4082
  .optional()
4078
- .describe('ID of the active agent session building this connection. Present when state is BUILDING.'),
4083
+ .describe('Session ID for building the element via intent-based endpoints (create/update with intent). Present when state is BUILDING.'),
4079
4084
  clientAction: ConnectionClientAction.optional().describe('Action the client must perform to advance this connection. Present if and only if state is CLIENT_ACTION_REQUIRED.'),
4080
4085
  });
4081
4086
  class ConnectionSpec {
@@ -4106,6 +4111,35 @@ const GenericFunctionDefinition = z.z
4106
4111
  type: z.z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
4107
4112
  })
4108
4113
  .loose();
4114
+ function validateFunctionDefinitions(functions, schema) {
4115
+ const errors = [];
4116
+ for (const [name, funcDef] of Object.entries(functions)) {
4117
+ const result = schema.safeParse(funcDef);
4118
+ if (!result.success) {
4119
+ errors.push(`"${name}": ${formatZodUnionError(result.error, funcDef)}`);
4120
+ }
4121
+ }
4122
+ if (errors.length > 0) {
4123
+ throw new BadRequestError(`Invalid function definition(s): ${errors.join('; ')}`);
4124
+ }
4125
+ }
4126
+ function formatZodUnionError(error, funcDef) {
4127
+ for (const issue of error.issues) {
4128
+ const branchErrors = issue.errors;
4129
+ if (issue.code === 'invalid_union' && branchErrors) {
4130
+ const type = funcDef.type;
4131
+ if (type) {
4132
+ for (const branchIssues of branchErrors) {
4133
+ const hasTypeError = branchIssues.some((i) => i.path.includes('type') && i.code === 'invalid_type');
4134
+ if (!hasTypeError) {
4135
+ return branchIssues.map((i) => `${i.path.join('.') || 'root'}: ${i.message}`).join('; ');
4136
+ }
4137
+ }
4138
+ }
4139
+ }
4140
+ }
4141
+ return error.issues.map((i) => `${i.path.join('.') || 'root'}: ${i.message}`).join('; ');
4142
+ }
4109
4143
 
4110
4144
  const GraphQLFieldMappingSchema = z.z.lazy(() => z.z.object({
4111
4145
  field: z.z.string(),
@@ -4153,13 +4187,13 @@ const RequestMappingSchema = z.z.object({
4153
4187
  const RestApiMappingSchema = z.z.object({
4154
4188
  path: z.z.string(),
4155
4189
  method: z.z.string(),
4156
- requestMapping: RequestMappingSchema,
4190
+ requestMapping: RequestMappingSchema.optional(),
4157
4191
  responseMapping: z.z.any().optional(),
4158
4192
  });
4159
4193
  const OpenapiMappingSchema = z.z.object({
4160
4194
  path: z.z.string(),
4161
4195
  method: z.z.string(),
4162
- requestMapping: RequestMappingSchema,
4196
+ requestMapping: RequestMappingSchema.optional(),
4163
4197
  responseMapping: z.z.any().optional(),
4164
4198
  });
4165
4199
  const RestApiMappingFunction = z.z.object({
@@ -11830,9 +11864,14 @@ const CreateAgentSession = z.z.object({
11830
11864
  modelId: z.z.string().optional(),
11831
11865
  agentName: z.z.enum(exports.AgentName).optional(),
11832
11866
  });
11867
+ const AgentSessionAttachment = z.z.object({
11868
+ title: z.z.string(),
11869
+ data: z.z.unknown(),
11870
+ });
11833
11871
  const AgentSessionInputSchema = z.z.object({
11834
11872
  input: z.z.string().min(1),
11835
11873
  synthetic: z.z.boolean().optional(),
11874
+ attachments: z.z.array(AgentSessionAttachment).optional(),
11836
11875
  });
11837
11876
  const PatchAgentSessionSchema = z.z.object({
11838
11877
  state: z.z.enum(exports.AgentSessionState).optional(),
@@ -13250,6 +13289,7 @@ const Workspace = z.object({
13250
13289
  isThrottled: z.boolean().optional(),
13251
13290
  isDisabled: z.boolean().optional(),
13252
13291
  isBackgroundJobsDisabled: z.boolean().optional(),
13292
+ isReadOnly: z.boolean().optional(),
13253
13293
  lastExternalApiRequestDate: z.string().nullable().optional(),
13254
13294
  });
13255
13295
  const AppSchema = Workspace;
@@ -16025,6 +16065,18 @@ class UI {
16025
16065
  });
16026
16066
  });
16027
16067
  }
16068
+ async connection(options) {
16069
+ const { url, postData } = await this.client.getScreensPostData('connection', {
16070
+ connectionId: options.connectionId,
16071
+ theme: options.theme,
16072
+ });
16073
+ return new Promise((resolve) => {
16074
+ return openIframeWithPost(url, postData, {
16075
+ onClose: () => resolve(null),
16076
+ onSuccess: (connection) => resolve(connection),
16077
+ });
16078
+ });
16079
+ }
16028
16080
  async UNSAFE_agentSession(options) {
16029
16081
  const { url, postData } = await this.client.getScreensPostData('agent-session', {
16030
16082
  sessionId: options.sessionId,
@@ -16383,6 +16435,7 @@ function hasMembraneCredentials(cwd) {
16383
16435
  }
16384
16436
 
16385
16437
  exports.ACTIONS = ACTIONS;
16438
+ exports.AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = AGENTIC_CONNECTION_REQUEST_SCREEN_PATH;
16386
16439
  exports.ALERT_DELIVERY_METHODS = ALERT_DELIVERY_METHODS;
16387
16440
  exports.ALERT_TYPE_CATEGORIES = ALERT_TYPE_CATEGORIES;
16388
16441
  exports.AccessDeniedError = AccessDeniedError;
@@ -16404,6 +16457,7 @@ exports.ActionsAccessor = ActionsAccessor;
16404
16457
  exports.ActivityLogRecord = ActivityLogRecord;
16405
16458
  exports.ActivityStatsQuery = ActivityStatsQuery;
16406
16459
  exports.AgentSession = AgentSession;
16460
+ exports.AgentSessionAttachment = AgentSessionAttachment;
16407
16461
  exports.AgentSessionInputSchema = AgentSessionInputSchema;
16408
16462
  exports.AiAgentAudience = AiAgentAudience;
16409
16463
  exports.AiAgentParameters = AiAgentParameters;
@@ -16898,6 +16952,7 @@ exports.PackagesAccessor = PackagesAccessor;
16898
16952
  exports.PaginationQuery = PaginationQuery;
16899
16953
  exports.PaginationResponse = PaginationResponse;
16900
16954
  exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
16955
+ exports.PatchConnectionRequestPayload = PatchConnectionRequestPayload;
16901
16956
  exports.PendingQueueCountSchema = PendingQueueCountSchema;
16902
16957
  exports.PendingTasksSummarySchema = PendingTasksSummarySchema;
16903
16958
  exports.PlatformUser = PlatformUser;
@@ -17123,6 +17178,7 @@ exports.unwrapSchema = unwrapSchema;
17123
17178
  exports.unwrapSchemas = unwrapSchemas;
17124
17179
  exports.updateFlowInstanceSchema = updateFlowInstanceSchema;
17125
17180
  exports.updateImpliedSchema = updateImpliedSchema;
17181
+ exports.validateFunctionDefinitions = validateFunctionDefinitions;
17126
17182
  exports.valueToSchema = valueToSchema;
17127
17183
  exports.valueToString = valueToString;
17128
17184
  exports.walkSchema = walkSchema;