@membranehq/sdk 0.17.5 → 0.17.6

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 (58) hide show
  1. package/dist/bundle.d.ts +6 -6
  2. package/dist/bundle.js +5182 -5182
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +1 -1
  5. package/dist/dts/accessors/actions-accessors.d.ts +1 -1
  6. package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +1 -1
  7. package/dist/dts/accessors/app-data-schemas-accessors.d.ts +1 -1
  8. package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +1 -1
  9. package/dist/dts/accessors/app-event-types-accessors.d.ts +1 -1
  10. package/dist/dts/accessors/connections-accessors.d.ts +5 -5
  11. package/dist/dts/accessors/customers-accessors.d.ts +1 -1
  12. package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +1 -1
  13. package/dist/dts/accessors/data-link-tables-accessors.d.ts +1 -1
  14. package/dist/dts/accessors/data-sources-accessors.d.ts +1 -1
  15. package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +1 -1
  16. package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +1 -1
  17. package/dist/dts/accessors/field-mappings-accessors.d.ts +1 -1
  18. package/dist/dts/accessors/flow-instances-accessors.d.ts +1 -1
  19. package/dist/dts/accessors/flows-accessors.d.ts +1 -1
  20. package/dist/dts/accessors/integrations-accessors.d.ts +5 -5
  21. package/dist/dts/accessors/scenarios-accessors.d.ts +1 -1
  22. package/dist/dts/accessors/screens-accessors.d.ts +1 -1
  23. package/dist/dts/alerts/utils.d.ts +1 -1
  24. package/dist/dts/client.d.ts +1 -1
  25. package/dist/dts/data-filter/index.d.ts +1 -1
  26. package/dist/dts/formulas/base.d.ts +1 -1
  27. package/dist/dts/formulas/eval.d.ts +1 -1
  28. package/dist/dts/formulas/findAppRecordId.d.ts +1 -1
  29. package/dist/dts/formulas/findExternalRecordId.d.ts +1 -1
  30. package/dist/dts/formulas/record.d.ts +1 -1
  31. package/dist/dts/workspace-elements/api/actions-api.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
  33. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
  34. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
  35. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +1 -1
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
  37. package/dist/dts/workspace-elements/base/actions/index.d.ts +2 -2
  38. package/dist/dts/workspace-elements/base/connectors/auth.d.ts +1 -1
  39. package/dist/dts/workspace-elements/base/connectors/functions.d.ts +1 -1
  40. package/dist/dts/workspace-elements/base/connectors/operations/handlers.d.ts +1 -1
  41. package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/events/methods.d.ts +1 -1
  42. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +1 -1
  43. package/dist/dts/workspace-elements/base/data-collections/udm/index.d.ts +1 -1
  44. package/dist/dts/workspace-elements/base/data-collections/utils.d.ts +1 -1
  45. package/dist/dts/workspaces/compare.d.ts +1 -1
  46. package/dist/index.browser.d.mts +437 -437
  47. package/dist/index.browser.d.ts +437 -437
  48. package/dist/index.browser.js +1114 -1114
  49. package/dist/index.browser.js.map +1 -1
  50. package/dist/index.browser.mjs +1114 -1114
  51. package/dist/index.browser.mjs.map +1 -1
  52. package/dist/index.node.d.mts +437 -437
  53. package/dist/index.node.d.ts +437 -437
  54. package/dist/index.node.js +1114 -1114
  55. package/dist/index.node.js.map +1 -1
  56. package/dist/index.node.mjs +1114 -1114
  57. package/dist/index.node.mjs.map +1 -1
  58. package/package.json +1 -1
@@ -661,8 +661,8 @@ declare const ActionExportProperties: z.ZodObject<{
661
661
  parentUuid: z.ZodOptional<z.ZodString>;
662
662
  isUniversal: z.ZodOptional<z.ZodBoolean>;
663
663
  isCustomized: z.ZodOptional<z.ZodBoolean>;
664
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
665
664
  outputMapping: z.ZodOptional<z.ZodAny>;
665
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
666
666
  customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
667
667
  }, z.core.$strip>;
668
668
  type ActionExportProperties = z.infer<typeof ActionExportProperties>;
@@ -12074,6 +12074,257 @@ declare const CommonIntegrationOrConnectionQuery: z.ZodObject<{
12074
12074
  }, z.core.$strip>;
12075
12075
  type CommonIntegrationOrConnectionQuery = z.infer<typeof CommonIntegrationOrConnectionQuery>;
12076
12076
 
12077
+ declare enum LogRecordType {
12078
+ MSG = "message",
12079
+ TEXT = "text",
12080
+ ERR = "error",
12081
+ DATA = "data",
12082
+ COMP = "compare",
12083
+ API = "api-request"
12084
+ }
12085
+ interface LogRecord {
12086
+ type?: LogRecordType;
12087
+ msg?: string;
12088
+ data?: any;
12089
+ }
12090
+
12091
+ type WithExecutionLogs<T extends Record<string, any>> = T & {
12092
+ logs?: any[];
12093
+ };
12094
+ declare function isStream(obj: any): boolean;
12095
+ declare function streamToString(stream: Readable): Promise<string>;
12096
+ interface BlobLike {
12097
+ readonly size: number;
12098
+ readonly type: string;
12099
+ slice(start?: number, end?: number, contentType?: string): BlobLike;
12100
+ stream(): ReadableStream<Uint8Array> | NodeJS.ReadableStream;
12101
+ text(): Promise<string>;
12102
+ arrayBuffer(): Promise<ArrayBuffer>;
12103
+ }
12104
+ declare function isBlob(value: unknown): value is BlobLike;
12105
+ declare function truncateData(data: any, depth?: number): any;
12106
+
12107
+ declare const axios: _axios.AxiosInstance;
12108
+ interface MembraneClientOptions {
12109
+ token?: string;
12110
+ fetchToken?: () => Promise<string>;
12111
+ credentials?: any;
12112
+ fetchCredentials?: () => Promise<any>;
12113
+ apiUri?: string;
12114
+ uiUri?: string;
12115
+ accessToken?: string;
12116
+ }
12117
+ declare class MembraneApiClient {
12118
+ apiUri: string;
12119
+ uiUri: string;
12120
+ token?: string;
12121
+ protected fetchToken?: () => Promise<string>;
12122
+ private logs;
12123
+ constructor(options?: MembraneClientOptions);
12124
+ setCredentials(credentials: any): Promise<any>;
12125
+ getToken(): Promise<string>;
12126
+ get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
12127
+ post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12128
+ put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12129
+ patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12130
+ delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12131
+ retrieveLogs(): LogRecord[];
12132
+ createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
12133
+ getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
12134
+ embedMode: 'isolated-embed' | 'popup-embed';
12135
+ }): Promise<string>;
12136
+ getScreensEmbedUri(page: string, pageParams?: Record<string, any>): Promise<string>;
12137
+ getScreensPostData(page: string, pageParams?: Record<string, string | undefined>): Promise<{
12138
+ url: string;
12139
+ postData: {
12140
+ token: string;
12141
+ };
12142
+ }>;
12143
+ private makeApiRequest;
12144
+ private log;
12145
+ private handleRequestError;
12146
+ }
12147
+
12148
+ interface BaseElementInstance {
12149
+ id: string;
12150
+ }
12151
+ interface ElementInstanceSelector {
12152
+ id?: string;
12153
+ autoCreate?: boolean;
12154
+ instanceKey?: string;
12155
+ userId?: string;
12156
+ parentKey?: string;
12157
+ parentId?: string;
12158
+ }
12159
+ declare const IntegrationSpecificElementSelector: z$1.ZodObject<{
12160
+ id: z$1.ZodOptional<z$1.ZodString>;
12161
+ key: z$1.ZodOptional<z$1.ZodString>;
12162
+ integrationId: z$1.ZodOptional<z$1.ZodString>;
12163
+ integrationKey: z$1.ZodOptional<z$1.ZodString>;
12164
+ }, z$1.core.$strip>;
12165
+ type IntegrationSpecificElementSelector = z$1.infer<typeof IntegrationSpecificElementSelector>;
12166
+ type SelectorType = {
12167
+ id?: string;
12168
+ } | string;
12169
+ declare class ElementAccessor<Element, UpdateRequest, Selector extends SelectorType = string> {
12170
+ protected options: {
12171
+ client: MembraneApiClient;
12172
+ path: string;
12173
+ selector: string | Selector;
12174
+ };
12175
+ constructor(options: {
12176
+ client: MembraneApiClient;
12177
+ path: string;
12178
+ selector: string | Selector;
12179
+ });
12180
+ getUniqueIdentifier(): string;
12181
+ get(): Promise<Element>;
12182
+ put(data: UpdateRequest): Promise<Element>;
12183
+ patch(data: Partial<UpdateRequest>): Promise<Element>;
12184
+ archive(): Promise<void>;
12185
+ restore(): Promise<Element>;
12186
+ getPath(operation?: string): string;
12187
+ }
12188
+ declare class ElementListAccessor<Element, FindQuery, CreateRequest> {
12189
+ private client;
12190
+ private path;
12191
+ constructor(client: MembraneApiClient, path: string);
12192
+ find(query?: FindQuery): Promise<PaginationResponse<Element>>;
12193
+ findAll(query?: Omit<FindQuery, 'limit'>): Promise<Element[]>;
12194
+ create(data: CreateRequest): Promise<Element>;
12195
+ }
12196
+ declare class ElementInstanceListAccessor<ElementInstance extends BaseElementInstance, FindQuery> {
12197
+ protected client: MembraneApiClient;
12198
+ private path;
12199
+ constructor(client: MembraneApiClient, path: string);
12200
+ find(query?: FindQuery): Promise<PaginationResponse<ElementInstance>>;
12201
+ }
12202
+ declare class ElementInstanceAccessor<ElementInstance extends BaseElementInstance, Selector extends {
12203
+ id?: string;
12204
+ }, CreateRequest, UpdateRequest> {
12205
+ protected options: {
12206
+ client: MembraneApiClient;
12207
+ instancePath: string;
12208
+ selector: string | Selector;
12209
+ type?: WorkspaceElementType;
12210
+ };
12211
+ private id;
12212
+ constructor(options: {
12213
+ client: MembraneApiClient;
12214
+ instancePath: string;
12215
+ selector: string | Selector;
12216
+ type?: WorkspaceElementType;
12217
+ });
12218
+ getUniqueIdentifier(): string;
12219
+ get(): Promise<ElementInstance>;
12220
+ getId(): Promise<string>;
12221
+ create(data?: CreateRequest): Promise<ElementInstance>;
12222
+ put(data: CreateRequest): Promise<ElementInstance>;
12223
+ patch(data: UpdateRequest): Promise<ElementInstance>;
12224
+ archive(): Promise<void>;
12225
+ delete(): Promise<void>;
12226
+ restore(): Promise<ElementInstance>;
12227
+ protected getPath(operation?: string): string;
12228
+ private getSelector;
12229
+ }
12230
+
12231
+ type InstanceKeyQuery = {
12232
+ instanceKey?: string;
12233
+ };
12234
+
12235
+ declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
12236
+ protected client: MembraneApiClient;
12237
+ protected connectionSelector: string;
12238
+ protected selector: string;
12239
+ protected elementKey: string;
12240
+ protected query: Record<string, any>;
12241
+ protected endpoint: string;
12242
+ constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
12243
+ protected uri(path?: string, query?: {}): string;
12244
+ getUniqueIdentifier(): string;
12245
+ get(query?: {
12246
+ autoCreate?: boolean;
12247
+ }): Promise<Element>;
12248
+ create(): Promise<Element>;
12249
+ patch(data: Partial<UpdateElement>): Promise<Element>;
12250
+ put(data: UpdateElement): Promise<Element>;
12251
+ archive(): Promise<void>;
12252
+ reset(): Promise<Element>;
12253
+ setup(): Promise<Element>;
12254
+ }
12255
+ declare class ConnectionLevelElementsListAccessor<Element, Query> {
12256
+ protected client: MembraneApiClient;
12257
+ protected connectionSelector: string;
12258
+ protected elementKey: string;
12259
+ constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
12260
+ list(query?: Query): Promise<PaginationResponse<Element[]>>;
12261
+ }
12262
+
12263
+ declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
12264
+ protected client: MembraneApiClient;
12265
+ protected integrationSelector: string;
12266
+ protected elementSelector: string;
12267
+ protected elementKey: string;
12268
+ protected endpoint: string;
12269
+ constructor(client: MembraneApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
12270
+ getUniqueIdentifier(): string;
12271
+ get(): Promise<Element>;
12272
+ patch(data: Partial<UpdateElementData>): Promise<Element>;
12273
+ put(data: UpdateElementData): Promise<Element>;
12274
+ archive(): Promise<void>;
12275
+ reset(): Promise<Element>;
12276
+ }
12277
+ declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
12278
+ protected client: MembraneApiClient;
12279
+ protected integrationSelector: string;
12280
+ protected elementKey: string;
12281
+ protected endpoint: string;
12282
+ constructor(client: MembraneApiClient, integrationSelector: string, elementKey: string);
12283
+ list(query?: Query): Promise<PaginationResponse<Element>>;
12284
+ create(data: CreateElementData): Promise<Element>;
12285
+ }
12286
+
12287
+ declare class ActionsAccessor extends ElementListAccessor<ActionApiResponse, FindActionsQuery, CreateActionRequest> {
12288
+ constructor(client: MembraneApiClient);
12289
+ }
12290
+ declare class ActionAccessor<RunInput = any, RunOutput = any> extends ElementAccessor<ActionApiResponse, UpdateActionRequest, IntegrationSpecificElementSelector> {
12291
+ constructor(client: MembraneApiClient, selector: IntegrationSpecificElementSelector | string);
12292
+ reset(): Promise<any>;
12293
+ run(input?: RunInput, options?: {
12294
+ integrationKey?: string;
12295
+ connectionId?: string;
12296
+ }): Promise<ActionRunResponse<RunOutput>>;
12297
+ }
12298
+ declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<ActionApiResponse, UpdateActionRequest> {
12299
+ client: MembraneApiClient;
12300
+ integrationSelector: string;
12301
+ actionSelector: string;
12302
+ constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
12303
+ }
12304
+ declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<ActionApiResponse, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
12305
+ client: MembraneApiClient;
12306
+ integrationSelector: string;
12307
+ constructor(client: MembraneApiClient, integrationSelector: string);
12308
+ }
12309
+ declare class ConnectionLevelActionAccessor<RunInput = any, RunOutput = any> extends ConnectionLevelElementAccessor<ActionApiResponse, UpdateActionInstanceRequest> {
12310
+ client: MembraneApiClient;
12311
+ connectionSelector: string;
12312
+ actionSelector: string;
12313
+ query: InstanceKeyQuery;
12314
+ constructor(client: MembraneApiClient, connectionSelector: string, actionSelector: string, query: InstanceKeyQuery);
12315
+ run(input?: RunInput): Promise<ActionRunResponse<RunOutput>>;
12316
+ }
12317
+ declare class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor<ActionApiResponse, FindActionsQuery> {
12318
+ client: MembraneApiClient;
12319
+ connectionSelector: string;
12320
+ constructor(client: MembraneApiClient, connectionSelector: string);
12321
+ }
12322
+
12323
+ interface OpenConfigurationOptions {
12324
+ onClose?: (...args: any[]) => void;
12325
+ showPoweredBy?: boolean;
12326
+ }
12327
+
12077
12328
  declare const FindConnectionsQuery: z.ZodObject<{
12078
12329
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
12079
12330
  cursor: z.ZodOptional<z.ZodString>;
@@ -12495,257 +12746,6 @@ type ConnectOptions = ConnectPayload & {
12495
12746
  sameWindow?: boolean;
12496
12747
  };
12497
12748
 
12498
- declare enum LogRecordType {
12499
- MSG = "message",
12500
- TEXT = "text",
12501
- ERR = "error",
12502
- DATA = "data",
12503
- COMP = "compare",
12504
- API = "api-request"
12505
- }
12506
- interface LogRecord {
12507
- type?: LogRecordType;
12508
- msg?: string;
12509
- data?: any;
12510
- }
12511
-
12512
- type WithExecutionLogs<T extends Record<string, any>> = T & {
12513
- logs?: any[];
12514
- };
12515
- declare function isStream(obj: any): boolean;
12516
- declare function streamToString(stream: Readable): Promise<string>;
12517
- interface BlobLike {
12518
- readonly size: number;
12519
- readonly type: string;
12520
- slice(start?: number, end?: number, contentType?: string): BlobLike;
12521
- stream(): ReadableStream<Uint8Array> | NodeJS.ReadableStream;
12522
- text(): Promise<string>;
12523
- arrayBuffer(): Promise<ArrayBuffer>;
12524
- }
12525
- declare function isBlob(value: unknown): value is BlobLike;
12526
- declare function truncateData(data: any, depth?: number): any;
12527
-
12528
- declare const axios: _axios.AxiosInstance;
12529
- interface MembraneClientOptions {
12530
- token?: string;
12531
- fetchToken?: () => Promise<string>;
12532
- credentials?: any;
12533
- fetchCredentials?: () => Promise<any>;
12534
- apiUri?: string;
12535
- uiUri?: string;
12536
- accessToken?: string;
12537
- }
12538
- declare class MembraneApiClient {
12539
- apiUri: string;
12540
- uiUri: string;
12541
- token?: string;
12542
- protected fetchToken?: () => Promise<string>;
12543
- private logs;
12544
- constructor(options?: MembraneClientOptions);
12545
- setCredentials(credentials: any): Promise<any>;
12546
- getToken(): Promise<string>;
12547
- get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
12548
- post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12549
- put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12550
- patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12551
- delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
12552
- retrieveLogs(): LogRecord[];
12553
- createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
12554
- getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
12555
- embedMode: 'isolated-embed' | 'popup-embed';
12556
- }): Promise<string>;
12557
- getScreensEmbedUri(page: string, pageParams?: Record<string, any>): Promise<string>;
12558
- getScreensPostData(page: string, pageParams?: Record<string, string | undefined>): Promise<{
12559
- url: string;
12560
- postData: {
12561
- token: string;
12562
- };
12563
- }>;
12564
- private makeApiRequest;
12565
- private log;
12566
- private handleRequestError;
12567
- }
12568
-
12569
- interface BaseElementInstance {
12570
- id: string;
12571
- }
12572
- interface ElementInstanceSelector {
12573
- id?: string;
12574
- autoCreate?: boolean;
12575
- instanceKey?: string;
12576
- userId?: string;
12577
- parentKey?: string;
12578
- parentId?: string;
12579
- }
12580
- declare const IntegrationSpecificElementSelector: z$1.ZodObject<{
12581
- id: z$1.ZodOptional<z$1.ZodString>;
12582
- key: z$1.ZodOptional<z$1.ZodString>;
12583
- integrationId: z$1.ZodOptional<z$1.ZodString>;
12584
- integrationKey: z$1.ZodOptional<z$1.ZodString>;
12585
- }, z$1.core.$strip>;
12586
- type IntegrationSpecificElementSelector = z$1.infer<typeof IntegrationSpecificElementSelector>;
12587
- type SelectorType = {
12588
- id?: string;
12589
- } | string;
12590
- declare class ElementAccessor<Element, UpdateRequest, Selector extends SelectorType = string> {
12591
- protected options: {
12592
- client: MembraneApiClient;
12593
- path: string;
12594
- selector: string | Selector;
12595
- };
12596
- constructor(options: {
12597
- client: MembraneApiClient;
12598
- path: string;
12599
- selector: string | Selector;
12600
- });
12601
- getUniqueIdentifier(): string;
12602
- get(): Promise<Element>;
12603
- put(data: UpdateRequest): Promise<Element>;
12604
- patch(data: Partial<UpdateRequest>): Promise<Element>;
12605
- archive(): Promise<void>;
12606
- restore(): Promise<Element>;
12607
- getPath(operation?: string): string;
12608
- }
12609
- declare class ElementListAccessor<Element, FindQuery, CreateRequest> {
12610
- private client;
12611
- private path;
12612
- constructor(client: MembraneApiClient, path: string);
12613
- find(query?: FindQuery): Promise<PaginationResponse<Element>>;
12614
- findAll(query?: Omit<FindQuery, 'limit'>): Promise<Element[]>;
12615
- create(data: CreateRequest): Promise<Element>;
12616
- }
12617
- declare class ElementInstanceListAccessor<ElementInstance extends BaseElementInstance, FindQuery> {
12618
- protected client: MembraneApiClient;
12619
- private path;
12620
- constructor(client: MembraneApiClient, path: string);
12621
- find(query?: FindQuery): Promise<PaginationResponse<ElementInstance>>;
12622
- }
12623
- declare class ElementInstanceAccessor<ElementInstance extends BaseElementInstance, Selector extends {
12624
- id?: string;
12625
- }, CreateRequest, UpdateRequest> {
12626
- protected options: {
12627
- client: MembraneApiClient;
12628
- instancePath: string;
12629
- selector: string | Selector;
12630
- type?: WorkspaceElementType;
12631
- };
12632
- private id;
12633
- constructor(options: {
12634
- client: MembraneApiClient;
12635
- instancePath: string;
12636
- selector: string | Selector;
12637
- type?: WorkspaceElementType;
12638
- });
12639
- getUniqueIdentifier(): string;
12640
- get(): Promise<ElementInstance>;
12641
- getId(): Promise<string>;
12642
- create(data?: CreateRequest): Promise<ElementInstance>;
12643
- put(data: CreateRequest): Promise<ElementInstance>;
12644
- patch(data: UpdateRequest): Promise<ElementInstance>;
12645
- archive(): Promise<void>;
12646
- delete(): Promise<void>;
12647
- restore(): Promise<ElementInstance>;
12648
- protected getPath(operation?: string): string;
12649
- private getSelector;
12650
- }
12651
-
12652
- type InstanceKeyQuery = {
12653
- instanceKey?: string;
12654
- };
12655
-
12656
- declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
12657
- protected client: MembraneApiClient;
12658
- protected connectionSelector: string;
12659
- protected selector: string;
12660
- protected elementKey: string;
12661
- protected query: Record<string, any>;
12662
- protected endpoint: string;
12663
- constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
12664
- protected uri(path?: string, query?: {}): string;
12665
- getUniqueIdentifier(): string;
12666
- get(query?: {
12667
- autoCreate?: boolean;
12668
- }): Promise<Element>;
12669
- create(): Promise<Element>;
12670
- patch(data: Partial<UpdateElement>): Promise<Element>;
12671
- put(data: UpdateElement): Promise<Element>;
12672
- archive(): Promise<void>;
12673
- reset(): Promise<Element>;
12674
- setup(): Promise<Element>;
12675
- }
12676
- declare class ConnectionLevelElementsListAccessor<Element, Query> {
12677
- protected client: MembraneApiClient;
12678
- protected connectionSelector: string;
12679
- protected elementKey: string;
12680
- constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
12681
- list(query?: Query): Promise<PaginationResponse<Element[]>>;
12682
- }
12683
-
12684
- declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
12685
- protected client: MembraneApiClient;
12686
- protected integrationSelector: string;
12687
- protected elementSelector: string;
12688
- protected elementKey: string;
12689
- protected endpoint: string;
12690
- constructor(client: MembraneApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
12691
- getUniqueIdentifier(): string;
12692
- get(): Promise<Element>;
12693
- patch(data: Partial<UpdateElementData>): Promise<Element>;
12694
- put(data: UpdateElementData): Promise<Element>;
12695
- archive(): Promise<void>;
12696
- reset(): Promise<Element>;
12697
- }
12698
- declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
12699
- protected client: MembraneApiClient;
12700
- protected integrationSelector: string;
12701
- protected elementKey: string;
12702
- protected endpoint: string;
12703
- constructor(client: MembraneApiClient, integrationSelector: string, elementKey: string);
12704
- list(query?: Query): Promise<PaginationResponse<Element>>;
12705
- create(data: CreateElementData): Promise<Element>;
12706
- }
12707
-
12708
- declare class ActionsAccessor extends ElementListAccessor<ActionApiResponse, FindActionsQuery, CreateActionRequest> {
12709
- constructor(client: MembraneApiClient);
12710
- }
12711
- declare class ActionAccessor<RunInput = any, RunOutput = any> extends ElementAccessor<ActionApiResponse, UpdateActionRequest, IntegrationSpecificElementSelector> {
12712
- constructor(client: MembraneApiClient, selector: IntegrationSpecificElementSelector | string);
12713
- reset(): Promise<any>;
12714
- run(input?: RunInput, options?: {
12715
- integrationKey?: string;
12716
- connectionId?: string;
12717
- }): Promise<ActionRunResponse<RunOutput>>;
12718
- }
12719
- declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<ActionApiResponse, UpdateActionRequest> {
12720
- client: MembraneApiClient;
12721
- integrationSelector: string;
12722
- actionSelector: string;
12723
- constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
12724
- }
12725
- declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<ActionApiResponse, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
12726
- client: MembraneApiClient;
12727
- integrationSelector: string;
12728
- constructor(client: MembraneApiClient, integrationSelector: string);
12729
- }
12730
- declare class ConnectionLevelActionAccessor<RunInput = any, RunOutput = any> extends ConnectionLevelElementAccessor<ActionApiResponse, UpdateActionInstanceRequest> {
12731
- client: MembraneApiClient;
12732
- connectionSelector: string;
12733
- actionSelector: string;
12734
- query: InstanceKeyQuery;
12735
- constructor(client: MembraneApiClient, connectionSelector: string, actionSelector: string, query: InstanceKeyQuery);
12736
- run(input?: RunInput): Promise<ActionRunResponse<RunOutput>>;
12737
- }
12738
- declare class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor<ActionApiResponse, FindActionsQuery> {
12739
- client: MembraneApiClient;
12740
- connectionSelector: string;
12741
- constructor(client: MembraneApiClient, connectionSelector: string);
12742
- }
12743
-
12744
- interface OpenConfigurationOptions {
12745
- onClose?: (...args: any[]) => void;
12746
- showPoweredBy?: boolean;
12747
- }
12748
-
12749
12749
  declare const CreateFlowRunRequest: z.ZodObject<{
12750
12750
  flowInstanceId: z.ZodString;
12751
12751
  startNodeKey: z.ZodOptional<z.ZodString>;
@@ -15684,6 +15684,185 @@ declare class FlowRunAccessor {
15684
15684
  } & OpenFlowRunEditorOptions): Promise<void>;
15685
15685
  }
15686
15686
 
15687
+ declare const CreateIntegrationRequest: z.ZodObject<{
15688
+ uuid: z.ZodOptional<z.ZodString>;
15689
+ key: z.ZodOptional<z.ZodString>;
15690
+ name: z.ZodOptional<z.ZodString>;
15691
+ description: z.ZodOptional<z.ZodString>;
15692
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15693
+ logoUri: z.ZodOptional<z.ZodString>;
15694
+ externalAppId: z.ZodOptional<z.ZodString>;
15695
+ externalAppUuid: z.ZodOptional<z.ZodString>;
15696
+ appUuid: z.ZodOptional<z.ZodString>;
15697
+ oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
15698
+ logoBase64: z.ZodOptional<z.ZodString>;
15699
+ connectorVersion: z.ZodOptional<z.ZodString>;
15700
+ connectorId: z.ZodOptional<z.ZodString>;
15701
+ connectorUuid: z.ZodOptional<z.ZodString>;
15702
+ connectorKey: z.ZodOptional<z.ZodString>;
15703
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15704
+ optionsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15705
+ disabled: z.ZodOptional<z.ZodBoolean>;
15706
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15707
+ }, z.core.$strip>>>;
15708
+ }, z.core.$strip>;
15709
+ type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
15710
+ declare const UpdateIntegrationRequest: z.ZodObject<{
15711
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15712
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15713
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15714
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15715
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
15716
+ logoUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15717
+ externalAppId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15718
+ externalAppUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15719
+ appUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15720
+ oAuthCallbackUri: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
15721
+ logoBase64: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15722
+ connectorVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15723
+ connectorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15724
+ connectorUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15725
+ connectorKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15726
+ parameters: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
15727
+ optionsConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15728
+ disabled: z.ZodOptional<z.ZodBoolean>;
15729
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15730
+ }, z.core.$strip>>>>;
15731
+ }, z.core.$strip>;
15732
+ type UpdateIntegrationRequest = z.infer<typeof UpdateIntegrationRequest>;
15733
+ declare const FindIntegrationsQuery: z.ZodObject<{
15734
+ appUuid: z.ZodOptional<z.ZodString>;
15735
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
15736
+ cursor: z.ZodOptional<z.ZodString>;
15737
+ search: z.ZodOptional<z.ZodString>;
15738
+ }, z.core.$strip>;
15739
+ type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
15740
+ interface FindIntegrationsResponse extends PaginationResponse<IntegrationApiResponse> {
15741
+ }
15742
+ interface OpenNewConnectionOptions extends OpenConfigurationOptions {
15743
+ allowMultipleConnections?: boolean;
15744
+ name?: string;
15745
+ connectorParameters?: any;
15746
+ }
15747
+ declare const IntegrationAuthUi: z.ZodObject<{
15748
+ schema: z.ZodOptional<z.ZodAny>;
15749
+ helpUri: z.ZodOptional<z.ZodString>;
15750
+ }, z.core.$strip>;
15751
+ type IntegrationAuthUi = z.infer<typeof IntegrationAuthUi>;
15752
+ declare const IntegrationAuthOption: z.ZodObject<{
15753
+ key: z.ZodString;
15754
+ type: z.ZodEnum<{
15755
+ proxy: "proxy";
15756
+ "integration-app-token": "integration-app-token";
15757
+ "membrane-token": "membrane-token";
15758
+ oauth2: "oauth2";
15759
+ oauth1: "oauth1";
15760
+ "client-credentials": "client-credentials";
15761
+ }>;
15762
+ title: z.ZodOptional<z.ZodString>;
15763
+ description: z.ZodOptional<z.ZodString>;
15764
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
15765
+ ui: z.ZodOptional<z.ZodObject<{
15766
+ schema: z.ZodOptional<z.ZodAny>;
15767
+ helpUri: z.ZodOptional<z.ZodString>;
15768
+ }, z.core.$strip>>;
15769
+ }, z.core.$strip>;
15770
+ type IntegrationAuthOption = z.infer<typeof IntegrationAuthOption>;
15771
+ declare const IntegrationApiResponse: z.ZodObject<{
15772
+ id: z.ZodString;
15773
+ uuid: z.ZodOptional<z.ZodString>;
15774
+ key: z.ZodOptional<z.ZodString>;
15775
+ description: z.ZodOptional<z.ZodString>;
15776
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15777
+ name: z.ZodString;
15778
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
15779
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
15780
+ revision: z.ZodOptional<z.ZodString>;
15781
+ createdAt: z.ZodOptional<z.ZodString>;
15782
+ updatedAt: z.ZodOptional<z.ZodString>;
15783
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
15784
+ logoUri: z.ZodString;
15785
+ connectorId: z.ZodOptional<z.ZodString>;
15786
+ connectorVersion: z.ZodOptional<z.ZodString>;
15787
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
15788
+ parameters: z.ZodOptional<z.ZodAny>;
15789
+ archivedAt: z.ZodOptional<z.ZodString>;
15790
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
15791
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
15792
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
15793
+ operationsCount: z.ZodOptional<z.ZodNumber>;
15794
+ hasData: z.ZodOptional<z.ZodBoolean>;
15795
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
15796
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
15797
+ eventsCount: z.ZodOptional<z.ZodNumber>;
15798
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
15799
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
15800
+ isTest: z.ZodOptional<z.ZodBoolean>;
15801
+ externalAppId: z.ZodOptional<z.ZodString>;
15802
+ appUuid: z.ZodOptional<z.ZodString>;
15803
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
15804
+ authType: z.ZodOptional<z.ZodEnum<{
15805
+ proxy: "proxy";
15806
+ "integration-app-token": "integration-app-token";
15807
+ "membrane-token": "membrane-token";
15808
+ oauth2: "oauth2";
15809
+ oauth1: "oauth1";
15810
+ "client-credentials": "client-credentials";
15811
+ }>>;
15812
+ optionsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15813
+ disabled: z.ZodOptional<z.ZodBoolean>;
15814
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15815
+ }, z.core.$strip>>>;
15816
+ connection: z.ZodOptional<z.ZodObject<{
15817
+ id: z.ZodString;
15818
+ name: z.ZodString;
15819
+ isTest: z.ZodOptional<z.ZodBoolean>;
15820
+ disconnected: z.ZodOptional<z.ZodBoolean>;
15821
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
15822
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
15823
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
15824
+ integrationId: z.ZodOptional<z.ZodString>;
15825
+ connectorId: z.ZodOptional<z.ZodString>;
15826
+ externalAppId: z.ZodOptional<z.ZodString>;
15827
+ connectorVersion: z.ZodOptional<z.ZodString>;
15828
+ authOptionKey: z.ZodOptional<z.ZodString>;
15829
+ createdAt: z.ZodString;
15830
+ updatedAt: z.ZodString;
15831
+ lastActiveAt: z.ZodOptional<z.ZodString>;
15832
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
15833
+ nextRetryTimestamp: z.ZodOptional<z.ZodString>;
15834
+ retryAttempts: z.ZodOptional<z.ZodNumber>;
15835
+ canTest: z.ZodOptional<z.ZodBoolean>;
15836
+ canRefreshCredentials: z.ZodOptional<z.ZodBoolean>;
15837
+ archivedAt: z.ZodOptional<z.ZodString>;
15838
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
15839
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15840
+ userId: z.ZodString;
15841
+ tenantId: z.ZodOptional<z.ZodString>;
15842
+ }, z.core.$strip>>;
15843
+ spec: z.ZodOptional<z.ZodAny>;
15844
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
15845
+ key: z.ZodString;
15846
+ type: z.ZodEnum<{
15847
+ proxy: "proxy";
15848
+ "integration-app-token": "integration-app-token";
15849
+ "membrane-token": "membrane-token";
15850
+ oauth2: "oauth2";
15851
+ oauth1: "oauth1";
15852
+ "client-credentials": "client-credentials";
15853
+ }>;
15854
+ title: z.ZodOptional<z.ZodString>;
15855
+ description: z.ZodOptional<z.ZodString>;
15856
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
15857
+ ui: z.ZodOptional<z.ZodObject<{
15858
+ schema: z.ZodOptional<z.ZodAny>;
15859
+ helpUri: z.ZodOptional<z.ZodString>;
15860
+ }, z.core.$strip>>;
15861
+ }, z.core.$strip>>>;
15862
+ }, z.core.$strip>;
15863
+ type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
15864
+ type Integration = IntegrationApiResponse;
15865
+
15687
15866
  declare const FieldMappingApiResponse: z.ZodObject<{
15688
15867
  id: z.ZodString;
15689
15868
  key: z.ZodOptional<z.ZodString>;
@@ -16461,185 +16640,6 @@ declare class IntegrationLevelFieldMappingsListAccessor extends IntegrationLevel
16461
16640
  constructor(client: MembraneApiClient, integrationSelector: string);
16462
16641
  }
16463
16642
 
16464
- declare const CreateIntegrationRequest: z.ZodObject<{
16465
- uuid: z.ZodOptional<z.ZodString>;
16466
- key: z.ZodOptional<z.ZodString>;
16467
- name: z.ZodOptional<z.ZodString>;
16468
- description: z.ZodOptional<z.ZodString>;
16469
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16470
- logoUri: z.ZodOptional<z.ZodString>;
16471
- externalAppId: z.ZodOptional<z.ZodString>;
16472
- externalAppUuid: z.ZodOptional<z.ZodString>;
16473
- appUuid: z.ZodOptional<z.ZodString>;
16474
- oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
16475
- logoBase64: z.ZodOptional<z.ZodString>;
16476
- connectorVersion: z.ZodOptional<z.ZodString>;
16477
- connectorId: z.ZodOptional<z.ZodString>;
16478
- connectorUuid: z.ZodOptional<z.ZodString>;
16479
- connectorKey: z.ZodOptional<z.ZodString>;
16480
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16481
- optionsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16482
- disabled: z.ZodOptional<z.ZodBoolean>;
16483
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16484
- }, z.core.$strip>>>;
16485
- }, z.core.$strip>;
16486
- type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
16487
- declare const UpdateIntegrationRequest: z.ZodObject<{
16488
- uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16489
- key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16490
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16491
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16492
- meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
16493
- logoUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16494
- externalAppId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16495
- externalAppUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16496
- appUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16497
- oAuthCallbackUri: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
16498
- logoBase64: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16499
- connectorVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16500
- connectorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16501
- connectorUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16502
- connectorKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16503
- parameters: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
16504
- optionsConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16505
- disabled: z.ZodOptional<z.ZodBoolean>;
16506
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16507
- }, z.core.$strip>>>>;
16508
- }, z.core.$strip>;
16509
- type UpdateIntegrationRequest = z.infer<typeof UpdateIntegrationRequest>;
16510
- declare const FindIntegrationsQuery: z.ZodObject<{
16511
- appUuid: z.ZodOptional<z.ZodString>;
16512
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
16513
- cursor: z.ZodOptional<z.ZodString>;
16514
- search: z.ZodOptional<z.ZodString>;
16515
- }, z.core.$strip>;
16516
- type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
16517
- interface FindIntegrationsResponse extends PaginationResponse<IntegrationApiResponse> {
16518
- }
16519
- interface OpenNewConnectionOptions extends OpenConfigurationOptions {
16520
- allowMultipleConnections?: boolean;
16521
- name?: string;
16522
- connectorParameters?: any;
16523
- }
16524
- declare const IntegrationAuthUi: z.ZodObject<{
16525
- schema: z.ZodOptional<z.ZodAny>;
16526
- helpUri: z.ZodOptional<z.ZodString>;
16527
- }, z.core.$strip>;
16528
- type IntegrationAuthUi = z.infer<typeof IntegrationAuthUi>;
16529
- declare const IntegrationAuthOption: z.ZodObject<{
16530
- key: z.ZodString;
16531
- type: z.ZodEnum<{
16532
- proxy: "proxy";
16533
- "integration-app-token": "integration-app-token";
16534
- "membrane-token": "membrane-token";
16535
- oauth2: "oauth2";
16536
- oauth1: "oauth1";
16537
- "client-credentials": "client-credentials";
16538
- }>;
16539
- title: z.ZodOptional<z.ZodString>;
16540
- description: z.ZodOptional<z.ZodString>;
16541
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
16542
- ui: z.ZodOptional<z.ZodObject<{
16543
- schema: z.ZodOptional<z.ZodAny>;
16544
- helpUri: z.ZodOptional<z.ZodString>;
16545
- }, z.core.$strip>>;
16546
- }, z.core.$strip>;
16547
- type IntegrationAuthOption = z.infer<typeof IntegrationAuthOption>;
16548
- declare const IntegrationApiResponse: z.ZodObject<{
16549
- id: z.ZodString;
16550
- uuid: z.ZodOptional<z.ZodString>;
16551
- key: z.ZodOptional<z.ZodString>;
16552
- description: z.ZodOptional<z.ZodString>;
16553
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16554
- name: z.ZodString;
16555
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
16556
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
16557
- revision: z.ZodOptional<z.ZodString>;
16558
- createdAt: z.ZodOptional<z.ZodString>;
16559
- updatedAt: z.ZodOptional<z.ZodString>;
16560
- isReadOnly: z.ZodOptional<z.ZodBoolean>;
16561
- logoUri: z.ZodString;
16562
- connectorId: z.ZodOptional<z.ZodString>;
16563
- connectorVersion: z.ZodOptional<z.ZodString>;
16564
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
16565
- parameters: z.ZodOptional<z.ZodAny>;
16566
- archivedAt: z.ZodOptional<z.ZodString>;
16567
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
16568
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
16569
- hasOperations: z.ZodOptional<z.ZodBoolean>;
16570
- operationsCount: z.ZodOptional<z.ZodNumber>;
16571
- hasData: z.ZodOptional<z.ZodBoolean>;
16572
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
16573
- hasEvents: z.ZodOptional<z.ZodBoolean>;
16574
- eventsCount: z.ZodOptional<z.ZodNumber>;
16575
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
16576
- hasUdm: z.ZodOptional<z.ZodBoolean>;
16577
- isTest: z.ZodOptional<z.ZodBoolean>;
16578
- externalAppId: z.ZodOptional<z.ZodString>;
16579
- appUuid: z.ZodOptional<z.ZodString>;
16580
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
16581
- authType: z.ZodOptional<z.ZodEnum<{
16582
- proxy: "proxy";
16583
- "integration-app-token": "integration-app-token";
16584
- "membrane-token": "membrane-token";
16585
- oauth2: "oauth2";
16586
- oauth1: "oauth1";
16587
- "client-credentials": "client-credentials";
16588
- }>>;
16589
- optionsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16590
- disabled: z.ZodOptional<z.ZodBoolean>;
16591
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16592
- }, z.core.$strip>>>;
16593
- connection: z.ZodOptional<z.ZodObject<{
16594
- id: z.ZodString;
16595
- name: z.ZodString;
16596
- isTest: z.ZodOptional<z.ZodBoolean>;
16597
- disconnected: z.ZodOptional<z.ZodBoolean>;
16598
- isDefunct: z.ZodOptional<z.ZodBoolean>;
16599
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
16600
- error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
16601
- integrationId: z.ZodOptional<z.ZodString>;
16602
- connectorId: z.ZodOptional<z.ZodString>;
16603
- externalAppId: z.ZodOptional<z.ZodString>;
16604
- connectorVersion: z.ZodOptional<z.ZodString>;
16605
- authOptionKey: z.ZodOptional<z.ZodString>;
16606
- createdAt: z.ZodString;
16607
- updatedAt: z.ZodString;
16608
- lastActiveAt: z.ZodOptional<z.ZodString>;
16609
- nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
16610
- nextRetryTimestamp: z.ZodOptional<z.ZodString>;
16611
- retryAttempts: z.ZodOptional<z.ZodNumber>;
16612
- canTest: z.ZodOptional<z.ZodBoolean>;
16613
- canRefreshCredentials: z.ZodOptional<z.ZodBoolean>;
16614
- archivedAt: z.ZodOptional<z.ZodString>;
16615
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
16616
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16617
- userId: z.ZodString;
16618
- tenantId: z.ZodOptional<z.ZodString>;
16619
- }, z.core.$strip>>;
16620
- spec: z.ZodOptional<z.ZodAny>;
16621
- authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
16622
- key: z.ZodString;
16623
- type: z.ZodEnum<{
16624
- proxy: "proxy";
16625
- "integration-app-token": "integration-app-token";
16626
- "membrane-token": "membrane-token";
16627
- oauth2: "oauth2";
16628
- oauth1: "oauth1";
16629
- "client-credentials": "client-credentials";
16630
- }>;
16631
- title: z.ZodOptional<z.ZodString>;
16632
- description: z.ZodOptional<z.ZodString>;
16633
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
16634
- ui: z.ZodOptional<z.ZodObject<{
16635
- schema: z.ZodOptional<z.ZodAny>;
16636
- helpUri: z.ZodOptional<z.ZodString>;
16637
- }, z.core.$strip>>;
16638
- }, z.core.$strip>>>;
16639
- }, z.core.$strip>;
16640
- type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
16641
- type Integration = IntegrationApiResponse;
16642
-
16643
16643
  interface OpenIntegrationUIIntegrationConfigurationOptions extends OpenConfigurationOptions {
16644
16644
  }
16645
16645
  declare class IntegrationsAccessor extends ElementListAccessor<IntegrationApiResponse, FindIntegrationsQuery, CreateIntegrationRequest> {
@@ -22151,12 +22151,6 @@ declare function getVariableLocators(data: any): string[];
22151
22151
  declare function removeNonExistentVars(value: any, schema: DataSchema): any;
22152
22152
  declare function transformVariablesWith(data: any, transformFunction: (locator: string) => string): any;
22153
22153
 
22154
- interface DataFilterOperator {
22155
- type: string;
22156
- name: string;
22157
- operandSchema: any;
22158
- }
22159
-
22160
22154
  declare function makeObjectPropertyLocator(objectLocator: string | undefined, propertyName: string): string;
22161
22155
  declare enum DataLocatorStepType {
22162
22156
  OBJECT_PROPERTY = "object_property",
@@ -22201,6 +22195,12 @@ declare function stepsToLocator(steps: DataLocatorStep[]): string;
22201
22195
  declare function createObjectFromLocators(locators?: string[], placeholderValue?: string): {};
22202
22196
  declare function getFormulaLocators(formulaType: string, data: any): string[];
22203
22197
 
22198
+ interface DataFilterOperator {
22199
+ type: string;
22200
+ name: string;
22201
+ operandSchema: any;
22202
+ }
22203
+
22204
22204
  declare function backwardCompatibleFilterMatch(filter: any, variables: any): any;
22205
22205
  declare function doesMatchFilter(data: any, filter: DataFilter): boolean;
22206
22206
  declare class DataFilterCondition {