@membranehq/sdk 0.7.5 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/bundle.d.ts +317 -108
  2. package/dist/bundle.js +351 -270
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +1 -2
  5. package/dist/dts/accessors/actions-accessors.d.ts +0 -1
  6. package/dist/dts/accessors/data-sources-accessors.d.ts +0 -1
  7. package/dist/dts/accessors/field-mappings-accessors.d.ts +0 -1
  8. package/dist/dts/accessors/flows-accessors.d.ts +0 -1
  9. package/dist/dts/accessors/scenarios-accessors.d.ts +6 -4
  10. package/dist/dts/alerts/types.d.ts +3 -1
  11. package/dist/dts/client.d.ts +3 -3
  12. package/dist/dts/webhooks/types.d.ts +5 -2
  13. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -0
  14. package/dist/dts/workspace-elements/api/actions-api.d.ts +309 -1
  15. package/dist/dts/workspace-elements/api/index.d.ts +1 -2
  16. package/dist/dts/workspace-elements/api/{scenarios-api.d.ts → packages-api.d.ts} +11 -7
  17. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +14 -9
  18. package/dist/dts/workspace-elements/base/actions/index.d.ts +46 -0
  19. package/dist/dts/workspace-elements/base/index.d.ts +1 -2
  20. package/dist/dts/workspace-elements/base/{scenarios → packages}/index.d.ts +8 -8
  21. package/dist/dts/workspace-elements/types.d.ts +7 -1
  22. package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
  23. package/dist/index.browser.d.mts +894 -648
  24. package/dist/index.browser.d.ts +894 -648
  25. package/dist/index.browser.js +146 -131
  26. package/dist/index.browser.js.map +1 -1
  27. package/dist/index.browser.mjs +136 -125
  28. package/dist/index.browser.mjs.map +1 -1
  29. package/dist/index.node.d.mts +894 -648
  30. package/dist/index.node.d.ts +894 -648
  31. package/dist/index.node.js +146 -131
  32. package/dist/index.node.js.map +1 -1
  33. package/dist/index.node.mjs +136 -125
  34. package/dist/index.node.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +0 -94
@@ -102,36 +102,6 @@ declare class CustomCodeError extends MembraneError {
102
102
  constructor(arg: ErrorConstructorArg);
103
103
  }
104
104
 
105
- interface MembraneClientOptions {
106
- token?: string;
107
- fetchToken?: () => Promise<string>;
108
- credentials?: any;
109
- fetchCredentials?: () => Promise<any>;
110
- apiUri?: string;
111
- uiUri?: string;
112
- accessToken?: string;
113
- }
114
- declare class MembraneApiClient {
115
- apiUri: string;
116
- uiUri: string;
117
- token?: string;
118
- protected fetchToken?: () => Promise<string>;
119
- constructor({ uiUri, apiUri, accessToken, token, fetchToken, fetchCredentials, credentials, }?: MembraneClientOptions);
120
- setCredentials(credentials: any): Promise<any>;
121
- getToken(): Promise<string>;
122
- get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
123
- post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
124
- put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
125
- patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
126
- delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
127
- createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
128
- getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
129
- embedMode: 'isolated-embed' | 'popup-embed';
130
- }): Promise<string>;
131
- private makeApiRequest;
132
- private handleRequestError;
133
- }
134
-
135
105
  declare const zodBooleanCoercion: () => z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>;
136
106
  declare const IncludeArchivedQuery: z.ZodObject<{
137
107
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
@@ -173,363 +143,125 @@ declare class PaginationResponse<T> {
173
143
  cursor?: string;
174
144
  }
175
145
 
176
- interface ConfigurationStateResult {
177
- state: ConfigurationState;
178
- message?: string;
179
- errors?: ErrorData[];
180
- }
181
- declare enum ConfigurationState {
182
- CONFIGURED = "CONFIGURED",
183
- NOT_CONFIGURED = "NOT_CONFIGURED"
184
- }
185
- declare enum WorkspaceElementType {
186
- Customer = "customer",
187
- Connector = "connector",
188
- Integration = "integration",
189
- Flow = "flow",
190
- FlowInstance = "flow-instance",
191
- FlowRun = "flow-run",
192
- Action = "action",
193
- Scenario = "scenario",
194
- ActionInstance = "action-instance",
195
- Connection = "connection",
196
- FieldMapping = "field-mapping",
197
- FieldMappingInstance = "field-mapping-instance",
198
- DataSource = "data-source",
199
- DataSourceInstance = "data-source-instance",
200
- DataLinkTable = "data-link-table",
201
- DataLinkTableInstance = "data-link-table-instance",
202
- AppEventType = "app-event-type",
203
- AppEventSubscription = "app-event-subscription",
204
- AppEventLogRecord = "app-event-log-record",
205
- AppDataSchema = "app-data-schema",
206
- AppDataSchemaInstance = "app-data-schema-instance",
207
- ExternalEventSubscription = "external-event-subscription",
208
- ExternalEventLogRecord = "external-event-log-record",
209
- ExternalEventPull = "external-event-pull",
210
- DataCollection = "data-collection",
211
- Screen = "screen",
212
- ActionRunLogRecord = "action-run-log-record"
213
- }
214
- declare enum WorkspaceEventType {
215
- ConnectionCreated = "connection.created",
216
- ConnectionDeleted = "connection.deleted",
217
- ConnectionDisconnected = "connection.disconnected",
218
- ConnectionReconnected = "connection.reconnected",
219
- FlowRunQueued = "flowRun.queued",
220
- FlowRunStarted = "flowRun.started",
221
- FlowRunCompleted = "flowRun.completed",
222
- FlowRunFailed = "flowRun.failed",
223
- FlowRunStopped = "flowRun.stopped"
224
- }
225
- declare enum WorkspaceElementState {
226
- CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
227
- SETUP_FAILED = "SETUP_FAILED",
228
- READY = "READY"
229
- }
230
- declare enum WorkspaceElementDependencyType {
231
- Configuration = "CONFIGURATION",
232
- Parent = "PARENT"
233
- }
234
- interface WorkspaceElementCalculateStateResult {
235
- state: WorkspaceElementState;
236
- errors?: ErrorData[];
237
- }
238
- declare const BaseWorkspaceElement: z.ZodObject<{
239
- id: z.ZodString;
146
+ declare const FindConnectionsQuery: z.ZodObject<{
147
+ userId: z.ZodOptional<z.ZodString>;
148
+ isTest: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
149
+ integrationKey: z.ZodOptional<z.ZodString>;
150
+ integrationId: z.ZodOptional<z.ZodString>;
151
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
152
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
153
+ cursor: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>;
155
+ type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
156
+ declare const CreateConnectionRequest: z.ZodObject<{
240
157
  name: z.ZodString;
158
+ integrationId: z.ZodString;
159
+ credentials: z.ZodOptional<z.ZodString>;
241
160
  }, z.core.$strip>;
242
- type BaseWorkspaceElement = z.infer<typeof BaseWorkspaceElement>;
243
- declare const BaseMembraneInterfaceEditableProperties: z.ZodObject<{
244
- key: z.ZodOptional<z.ZodString>;
161
+ type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
162
+ declare const UpdateConnectionRequest: z.ZodObject<{
245
163
  name: z.ZodOptional<z.ZodString>;
246
- uuid: z.ZodOptional<z.ZodString>;
247
- description: z.ZodOptional<z.ZodString>;
248
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
164
+ credentials: z.ZodOptional<z.ZodString>;
165
+ accessToken: z.ZodOptional<z.ZodString>;
249
166
  }, z.core.$strip>;
250
- declare const BaseMembraneInterfaceReadOnlyProperties: z.ZodObject<{
251
- name: z.ZodString;
252
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
253
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
254
- revision: z.ZodOptional<z.ZodString>;
255
- createdAt: z.ZodOptional<z.ZodString>;
256
- updatedAt: z.ZodOptional<z.ZodString>;
257
- archivedAt: z.ZodOptional<z.ZodString>;
258
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
167
+ type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
168
+ declare class FindConnectionsResponse extends PaginationResponse<Connection> {
169
+ }
170
+ declare const ConnectionSelector: z.ZodObject<{
171
+ id: z.ZodOptional<z.ZodString>;
172
+ integrationKey: z.ZodOptional<z.ZodString>;
173
+ integrationId: z.ZodOptional<z.ZodString>;
174
+ connectionId: z.ZodOptional<z.ZodString>;
259
175
  }, z.core.$strip>;
260
- declare const BaseMembraneInterface: z.ZodObject<{
176
+ type ConnectionSelector = z.infer<typeof ConnectionSelector>;
177
+ declare const ConnectionApiResponse: z.ZodObject<{
261
178
  id: z.ZodString;
262
- key: z.ZodOptional<z.ZodString>;
263
- uuid: z.ZodOptional<z.ZodString>;
264
- description: z.ZodOptional<z.ZodString>;
265
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
266
179
  name: z.ZodString;
180
+ userId: z.ZodString;
181
+ isTest: z.ZodOptional<z.ZodBoolean>;
182
+ disconnected: z.ZodOptional<z.ZodBoolean>;
183
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
267
184
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
268
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
269
- revision: z.ZodOptional<z.ZodString>;
270
- createdAt: z.ZodOptional<z.ZodString>;
271
- updatedAt: z.ZodOptional<z.ZodString>;
185
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
186
+ integrationId: z.ZodString;
187
+ authOptionKey: z.ZodOptional<z.ZodString>;
188
+ createdAt: z.ZodString;
189
+ updatedAt: z.ZodString;
190
+ lastActiveAt: z.ZodOptional<z.ZodString>;
191
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
272
192
  archivedAt: z.ZodOptional<z.ZodString>;
273
193
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
274
- }, z.core.$strip>;
275
- type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
276
- declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.ZodObject<{
277
- key: z.ZodOptional<z.ZodString>;
278
- name: z.ZodOptional<z.ZodString>;
279
- uuid: z.ZodOptional<z.ZodString>;
280
- description: z.ZodOptional<z.ZodString>;
281
194
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
282
- integrationId: z.ZodOptional<z.ZodString>;
283
- parentId: z.ZodOptional<z.ZodString>;
284
- }, z.core.$strip>;
285
- declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
286
- name: z.ZodString;
287
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
288
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
289
- revision: z.ZodOptional<z.ZodString>;
290
- createdAt: z.ZodOptional<z.ZodString>;
291
- updatedAt: z.ZodOptional<z.ZodString>;
292
- archivedAt: z.ZodOptional<z.ZodString>;
293
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
294
- isCustomized: z.ZodOptional<z.ZodBoolean>;
195
+ user: z.ZodOptional<z.ZodObject<{
196
+ id: z.ZodString;
197
+ name: z.ZodString;
198
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
199
+ internalId: z.ZodString;
200
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
201
+ credentials: z.ZodOptional<z.ZodAny>;
202
+ lastActiveAt: z.ZodOptional<z.ZodString>;
203
+ isTest: z.ZodOptional<z.ZodBoolean>;
204
+ isBillable: z.ZodOptional<z.ZodBoolean>;
205
+ createdAt: z.ZodOptional<z.ZodString>;
206
+ archivedAt: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>>;
208
+ integration: z.ZodOptional<z.ZodObject<{
209
+ id: z.ZodString;
210
+ key: z.ZodOptional<z.ZodString>;
211
+ uuid: z.ZodOptional<z.ZodString>;
212
+ description: z.ZodOptional<z.ZodString>;
213
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
214
+ name: z.ZodString;
215
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
216
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
217
+ revision: z.ZodOptional<z.ZodString>;
218
+ createdAt: z.ZodOptional<z.ZodString>;
219
+ updatedAt: z.ZodOptional<z.ZodString>;
220
+ logoUri: z.ZodString;
221
+ connectorId: z.ZodOptional<z.ZodString>;
222
+ connectorVersion: z.ZodOptional<z.ZodString>;
223
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
224
+ parameters: z.ZodOptional<z.ZodAny>;
225
+ archivedAt: z.ZodOptional<z.ZodString>;
226
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
227
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
228
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
229
+ operationsCount: z.ZodOptional<z.ZodNumber>;
230
+ hasData: z.ZodOptional<z.ZodBoolean>;
231
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
232
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
233
+ eventsCount: z.ZodOptional<z.ZodNumber>;
234
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
235
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
236
+ isTest: z.ZodOptional<z.ZodBoolean>;
237
+ appUuid: z.ZodOptional<z.ZodString>;
238
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
239
+ authType: z.ZodOptional<z.ZodEnum<{
240
+ proxy: "proxy";
241
+ "integration-app-token": "integration-app-token";
242
+ "membrane-token": "membrane-token";
243
+ oauth2: "oauth2";
244
+ oauth1: "oauth1";
245
+ "client-credentials": "client-credentials";
246
+ }>>;
247
+ }, z.core.$strip>>;
295
248
  }, z.core.$strip>;
296
- declare const BaseIntegrationLevelMembraneInterface: z.ZodObject<{
249
+ type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
250
+ declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
297
251
  id: z.ZodString;
298
- key: z.ZodOptional<z.ZodString>;
299
- uuid: z.ZodOptional<z.ZodString>;
300
- description: z.ZodOptional<z.ZodString>;
301
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
302
- integrationId: z.ZodOptional<z.ZodString>;
303
- parentId: z.ZodOptional<z.ZodString>;
304
252
  name: z.ZodString;
253
+ userId: z.ZodString;
254
+ isTest: z.ZodOptional<z.ZodBoolean>;
255
+ disconnected: z.ZodOptional<z.ZodBoolean>;
256
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
305
257
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
306
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
307
- revision: z.ZodOptional<z.ZodString>;
308
- createdAt: z.ZodOptional<z.ZodString>;
309
- updatedAt: z.ZodOptional<z.ZodString>;
310
- archivedAt: z.ZodOptional<z.ZodString>;
311
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
312
- isCustomized: z.ZodOptional<z.ZodBoolean>;
313
- }, z.core.$strip>;
314
- type BaseIntegrationLevelMembraneInterface = z.infer<typeof BaseIntegrationLevelMembraneInterface>;
315
- interface WorkspaceElementReference {
316
- type: WorkspaceElementType;
317
- id: string;
318
- }
319
- interface WorkspaceElementDependency extends WorkspaceElementReference {
320
- dependencyType: WorkspaceElementDependencyType;
321
- data?: unknown;
322
- }
323
-
324
- interface BaseElementInstance {
325
- id: string;
326
- }
327
- interface ElementInstanceSelector {
328
- id?: string;
329
- autoCreate?: boolean;
330
- instanceKey?: string;
331
- userId?: string;
332
- parentKey?: string;
333
- parentId?: string;
334
- }
335
- interface IntegrationSpecificElementSelector {
336
- id?: string;
337
- key?: string;
338
- integrationId?: string;
339
- integrationKey?: string;
340
- }
341
- type SelectorType = {
342
- id?: string;
343
- } | string;
344
- declare class ElementAccessor<Element, UpdateRequest, Selector extends SelectorType = string> {
345
- protected options: {
346
- client: MembraneApiClient;
347
- path: string;
348
- selector: string | Selector;
349
- };
350
- constructor(options: {
351
- client: MembraneApiClient;
352
- path: string;
353
- selector: string | Selector;
354
- });
355
- getUniqueIdentifier(): string;
356
- get(): Promise<Element>;
357
- put(data: UpdateRequest): Promise<Element>;
358
- patch(data: Partial<UpdateRequest>): Promise<Element>;
359
- archive(): Promise<void>;
360
- restore(): Promise<Element>;
361
- getPath(operation?: string): string;
362
- }
363
- declare class ElementListAccessor<Element, FindQuery, CreateRequest> {
364
- private client;
365
- private path;
366
- constructor(client: MembraneApiClient, path: string);
367
- find(query?: FindQuery): Promise<PaginationResponse<Element>>;
368
- findAll(query?: Omit<FindQuery, 'limit'>): Promise<Element[]>;
369
- create(data: CreateRequest): Promise<Element>;
370
- }
371
- declare class ElementInstanceListAccessor<ElementInstance extends BaseElementInstance, FindQuery> {
372
- protected client: MembraneApiClient;
373
- private path;
374
- constructor(client: MembraneApiClient, path: string);
375
- find(query?: FindQuery): Promise<PaginationResponse<ElementInstance>>;
376
- }
377
- declare class ElementInstanceAccessor<ElementInstance extends BaseElementInstance, Selector extends {
378
- id?: string;
379
- }, CreateRequest, UpdateRequest> {
380
- protected options: {
381
- client: MembraneApiClient;
382
- instancePath: string;
383
- selector: string | Selector;
384
- type?: WorkspaceElementType;
385
- };
386
- private id;
387
- constructor(options: {
388
- client: MembraneApiClient;
389
- instancePath: string;
390
- selector: string | Selector;
391
- type?: WorkspaceElementType;
392
- });
393
- getUniqueIdentifier(): string;
394
- get(): Promise<ElementInstance>;
395
- getId(): Promise<string>;
396
- create(data?: CreateRequest): Promise<ElementInstance>;
397
- put(data: CreateRequest): Promise<ElementInstance>;
398
- patch(data: UpdateRequest): Promise<ElementInstance>;
399
- archive(): Promise<void>;
400
- delete(): Promise<void>;
401
- restore(): Promise<ElementInstance>;
402
- protected getPath(operation?: string): string;
403
- private getSelector;
404
- }
405
-
406
- declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
407
- protected client: MembraneApiClient;
408
- protected integrationSelector: string;
409
- protected elementSelector: string;
410
- protected elementKey: string;
411
- protected endpoint: string;
412
- constructor(client: MembraneApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
413
- getUniqueIdentifier(): string;
414
- get(): Promise<Element>;
415
- patch(data: Partial<UpdateElementData>): Promise<Element>;
416
- put(data: UpdateElementData): Promise<Element>;
417
- archive(): Promise<void>;
418
- reset(): Promise<Element>;
419
- }
420
- declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
421
- protected client: MembraneApiClient;
422
- protected integrationSelector: string;
423
- protected elementKey: string;
424
- protected endpoint: string;
425
- constructor(client: MembraneApiClient, integrationSelector: string, elementKey: string);
426
- list(query?: Query): Promise<PaginationResponse<Element>>;
427
- create(data: CreateElementData): Promise<Element>;
428
- }
429
-
430
- declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQuery, CreateActionRequest> {
431
- constructor(client: MembraneApiClient);
432
- }
433
- declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
434
- constructor(client: MembraneApiClient, selector: ActionSelector | string);
435
- apply(integrationKeys: string[]): Promise<Action[]>;
436
- reset(): Promise<any>;
437
- }
438
- declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
439
- client: MembraneApiClient;
440
- integrationSelector: string;
441
- actionSelector: string;
442
- constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
443
- }
444
- declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<Action, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
445
- client: MembraneApiClient;
446
- integrationSelector: string;
447
- constructor(client: MembraneApiClient, integrationSelector: string);
448
- }
449
-
450
- interface OpenConfigurationOptions {
451
- onClose?: (...args: any[]) => void;
452
- showPoweredBy?: boolean;
453
- }
454
-
455
- type InstanceKeyQuery = {
456
- instanceKey?: string;
457
- };
458
-
459
- declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
460
- protected client: MembraneApiClient;
461
- protected connectionSelector: string;
462
- protected selector: string;
463
- protected elementKey: string;
464
- protected query: Record<string, any>;
465
- protected endpoint: string;
466
- constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
467
- protected uri(path?: string, query?: {}): string;
468
- getUniqueIdentifier(): string;
469
- get(query?: {
470
- autoCreate?: boolean;
471
- }): Promise<Element>;
472
- create(): Promise<Element>;
473
- patch(data: Partial<UpdateElement>): Promise<Element>;
474
- put(data: UpdateElement): Promise<Element>;
475
- archive(): Promise<void>;
476
- reset(): Promise<Element>;
477
- setup(): Promise<Element>;
478
- }
479
- declare class ConnectionLevelElementsListAccessor<Element, Query> {
480
- protected client: MembraneApiClient;
481
- protected connectionSelector: string;
482
- protected elementKey: string;
483
- constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
484
- list(query?: Query): Promise<PaginationResponse<Element[]>>;
485
- }
486
-
487
- declare const FindConnectionsQuery: z.ZodObject<{
488
- userId: z.ZodOptional<z.ZodString>;
489
- isTest: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
490
- integrationKey: z.ZodOptional<z.ZodString>;
491
- integrationId: z.ZodOptional<z.ZodString>;
492
- includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
493
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
494
- cursor: z.ZodOptional<z.ZodString>;
495
- }, z.core.$strip>;
496
- type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
497
- declare const CreateConnectionRequest: z.ZodObject<{
498
- name: z.ZodString;
499
- integrationId: z.ZodString;
500
- credentials: z.ZodOptional<z.ZodString>;
501
- }, z.core.$strip>;
502
- type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
503
- declare const UpdateConnectionRequest: z.ZodObject<{
504
- name: z.ZodOptional<z.ZodString>;
505
- credentials: z.ZodOptional<z.ZodString>;
506
- accessToken: z.ZodOptional<z.ZodString>;
507
- }, z.core.$strip>;
508
- type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
509
- declare class FindConnectionsResponse extends PaginationResponse<Connection> {
510
- }
511
- declare const ConnectionSelector: z.ZodObject<{
512
- id: z.ZodOptional<z.ZodString>;
513
- integrationKey: z.ZodOptional<z.ZodString>;
514
- integrationId: z.ZodOptional<z.ZodString>;
515
- connectionId: z.ZodOptional<z.ZodString>;
516
- }, z.core.$strip>;
517
- type ConnectionSelector = z.infer<typeof ConnectionSelector>;
518
- declare const ConnectionApiResponse: z.ZodObject<{
519
- id: z.ZodString;
520
- name: z.ZodString;
521
- userId: z.ZodString;
522
- isTest: z.ZodOptional<z.ZodBoolean>;
523
- disconnected: z.ZodOptional<z.ZodBoolean>;
524
- isDefunct: z.ZodOptional<z.ZodBoolean>;
525
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
526
- error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
527
- integrationId: z.ZodString;
528
- authOptionKey: z.ZodOptional<z.ZodString>;
529
- createdAt: z.ZodString;
530
- updatedAt: z.ZodString;
531
- lastActiveAt: z.ZodOptional<z.ZodString>;
532
- nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
258
+ error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
259
+ integrationId: z.ZodString;
260
+ authOptionKey: z.ZodOptional<z.ZodString>;
261
+ createdAt: z.ZodString;
262
+ updatedAt: z.ZodString;
263
+ lastActiveAt: z.ZodOptional<z.ZodString>;
264
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
533
265
  archivedAt: z.ZodOptional<z.ZodString>;
534
266
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
535
267
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -586,93 +318,20 @@ declare const ConnectionApiResponse: z.ZodObject<{
586
318
  "client-credentials": "client-credentials";
587
319
  }>>;
588
320
  }, z.core.$strip>>;
321
+ credentials: z.ZodOptional<z.ZodUnknown>;
322
+ parameters: z.ZodOptional<z.ZodUnknown>;
323
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
589
324
  }, z.core.$strip>;
590
- type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
591
- declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
592
- id: z.ZodString;
593
- name: z.ZodString;
594
- userId: z.ZodString;
595
- isTest: z.ZodOptional<z.ZodBoolean>;
596
- disconnected: z.ZodOptional<z.ZodBoolean>;
597
- isDefunct: z.ZodOptional<z.ZodBoolean>;
598
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
599
- error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
600
- integrationId: z.ZodString;
601
- authOptionKey: z.ZodOptional<z.ZodString>;
602
- createdAt: z.ZodString;
603
- updatedAt: z.ZodString;
604
- lastActiveAt: z.ZodOptional<z.ZodString>;
605
- nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
606
- archivedAt: z.ZodOptional<z.ZodString>;
607
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
608
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
609
- user: z.ZodOptional<z.ZodObject<{
325
+ type ConnectionApiResponseWithSecrets = z.infer<typeof ConnectionApiResponseWithSecrets>;
326
+ type Connection = ConnectionApiResponse;
327
+ declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
328
+ source: z.ZodString;
329
+ requestId: z.ZodString;
330
+ type: z.ZodLiteral<"newConnectionCreated">;
331
+ connection: z.ZodObject<{
610
332
  id: z.ZodString;
611
333
  name: z.ZodString;
612
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
613
- internalId: z.ZodString;
614
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
615
- credentials: z.ZodOptional<z.ZodAny>;
616
- lastActiveAt: z.ZodOptional<z.ZodString>;
617
- isTest: z.ZodOptional<z.ZodBoolean>;
618
- isBillable: z.ZodOptional<z.ZodBoolean>;
619
- createdAt: z.ZodOptional<z.ZodString>;
620
- archivedAt: z.ZodOptional<z.ZodString>;
621
- }, z.core.$strip>>;
622
- integration: z.ZodOptional<z.ZodObject<{
623
- id: z.ZodString;
624
- key: z.ZodOptional<z.ZodString>;
625
- uuid: z.ZodOptional<z.ZodString>;
626
- description: z.ZodOptional<z.ZodString>;
627
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
628
- name: z.ZodString;
629
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
630
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
631
- revision: z.ZodOptional<z.ZodString>;
632
- createdAt: z.ZodOptional<z.ZodString>;
633
- updatedAt: z.ZodOptional<z.ZodString>;
634
- logoUri: z.ZodString;
635
- connectorId: z.ZodOptional<z.ZodString>;
636
- connectorVersion: z.ZodOptional<z.ZodString>;
637
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
638
- parameters: z.ZodOptional<z.ZodAny>;
639
- archivedAt: z.ZodOptional<z.ZodString>;
640
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
641
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
642
- hasOperations: z.ZodOptional<z.ZodBoolean>;
643
- operationsCount: z.ZodOptional<z.ZodNumber>;
644
- hasData: z.ZodOptional<z.ZodBoolean>;
645
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
646
- hasEvents: z.ZodOptional<z.ZodBoolean>;
647
- eventsCount: z.ZodOptional<z.ZodNumber>;
648
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
649
- hasUdm: z.ZodOptional<z.ZodBoolean>;
650
- isTest: z.ZodOptional<z.ZodBoolean>;
651
- appUuid: z.ZodOptional<z.ZodString>;
652
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
653
- authType: z.ZodOptional<z.ZodEnum<{
654
- proxy: "proxy";
655
- "integration-app-token": "integration-app-token";
656
- "membrane-token": "membrane-token";
657
- oauth2: "oauth2";
658
- oauth1: "oauth1";
659
- "client-credentials": "client-credentials";
660
- }>>;
661
- }, z.core.$strip>>;
662
- credentials: z.ZodOptional<z.ZodUnknown>;
663
- parameters: z.ZodOptional<z.ZodUnknown>;
664
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
665
- }, z.core.$strip>;
666
- type ConnectionApiResponseWithSecrets = z.infer<typeof ConnectionApiResponseWithSecrets>;
667
- type Connection = ConnectionApiResponse;
668
- declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
669
- source: z.ZodString;
670
- requestId: z.ZodString;
671
- type: z.ZodLiteral<"newConnectionCreated">;
672
- connection: z.ZodObject<{
673
- id: z.ZodString;
674
- name: z.ZodString;
675
- userId: z.ZodString;
334
+ userId: z.ZodString;
676
335
  isTest: z.ZodOptional<z.ZodBoolean>;
677
336
  disconnected: z.ZodOptional<z.ZodBoolean>;
678
337
  isDefunct: z.ZodOptional<z.ZodBoolean>;
@@ -750,7 +409,121 @@ declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
750
409
  }, z.core.$strip>], "type">;
751
410
  type ConnectionMessagePayload = z.infer<typeof ConnectionMessagePayload>;
752
411
 
753
- declare const ActionInstanceApiResponse: z.ZodObject<{
412
+ interface MembraneClientOptions {
413
+ token?: string;
414
+ fetchToken?: () => Promise<string>;
415
+ credentials?: any;
416
+ fetchCredentials?: () => Promise<any>;
417
+ apiUri?: string;
418
+ uiUri?: string;
419
+ accessToken?: string;
420
+ }
421
+ declare class MembraneApiClient {
422
+ apiUri: string;
423
+ uiUri: string;
424
+ token?: string;
425
+ protected fetchToken?: () => Promise<string>;
426
+ constructor({ uiUri, apiUri, accessToken, token, fetchToken, fetchCredentials, credentials, }?: MembraneClientOptions);
427
+ setCredentials(credentials: any): Promise<any>;
428
+ getToken(): Promise<string>;
429
+ get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
430
+ post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
431
+ put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
432
+ patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
433
+ delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
434
+ createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
435
+ getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
436
+ embedMode: 'isolated-embed' | 'popup-embed';
437
+ }): Promise<string>;
438
+ private makeApiRequest;
439
+ private handleRequestError;
440
+ }
441
+
442
+ interface ConfigurationStateResult {
443
+ state: ConfigurationState;
444
+ message?: string;
445
+ errors?: ErrorData[];
446
+ }
447
+ declare enum ConfigurationState {
448
+ CONFIGURED = "CONFIGURED",
449
+ NOT_CONFIGURED = "NOT_CONFIGURED"
450
+ }
451
+ declare enum WorkspaceElementType {
452
+ Customer = "customer",
453
+ Connector = "connector",
454
+ Integration = "integration",
455
+ Flow = "flow",
456
+ FlowInstance = "flow-instance",
457
+ FlowRun = "flow-run",
458
+ Action = "action",
459
+ Package = "package",
460
+ ActionInstance = "action-instance",
461
+ Connection = "connection",
462
+ FieldMapping = "field-mapping",
463
+ FieldMappingInstance = "field-mapping-instance",
464
+ DataSource = "data-source",
465
+ DataSourceInstance = "data-source-instance",
466
+ DataLinkTable = "data-link-table",
467
+ DataLinkTableInstance = "data-link-table-instance",
468
+ AppEventType = "app-event-type",
469
+ AppEventSubscription = "app-event-subscription",
470
+ AppEventLogRecord = "app-event-log-record",
471
+ AppDataSchema = "app-data-schema",
472
+ AppDataSchemaInstance = "app-data-schema-instance",
473
+ ExternalEventSubscription = "external-event-subscription",
474
+ ExternalEventLogRecord = "external-event-log-record",
475
+ ExternalEventPull = "external-event-pull",
476
+ DataCollection = "data-collection",
477
+ Screen = "screen",
478
+ ActionRunLogRecord = "action-run-log-record"
479
+ }
480
+ declare enum WorkspaceEventType {
481
+ ConnectionCreated = "connection.created",
482
+ ConnectionDeleted = "connection.deleted",
483
+ ConnectionDisconnected = "connection.disconnected",
484
+ ConnectionReconnected = "connection.reconnected",
485
+ FlowRunQueued = "flowRun.queued",
486
+ FlowRunStarted = "flowRun.started",
487
+ FlowRunCompleted = "flowRun.completed",
488
+ FlowRunFailed = "flowRun.failed",
489
+ FlowRunStopped = "flowRun.stopped"
490
+ }
491
+ declare enum WorkspaceElementState {
492
+ CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
493
+ SETUP_FAILED = "SETUP_FAILED",
494
+ READY = "READY"
495
+ }
496
+ declare enum WorkspaceElementDependencyType {
497
+ Configuration = "CONFIGURATION",
498
+ Parent = "PARENT"
499
+ }
500
+ interface WorkspaceElementCalculateStateResult {
501
+ state: WorkspaceElementState;
502
+ errors?: ErrorData[];
503
+ }
504
+ declare const BaseWorkspaceElement: z.ZodObject<{
505
+ id: z.ZodString;
506
+ name: z.ZodString;
507
+ }, z.core.$strip>;
508
+ type BaseWorkspaceElement = z.infer<typeof BaseWorkspaceElement>;
509
+ declare const BaseMembraneInterfaceEditableProperties: z.ZodObject<{
510
+ key: z.ZodOptional<z.ZodString>;
511
+ name: z.ZodOptional<z.ZodString>;
512
+ uuid: z.ZodOptional<z.ZodString>;
513
+ description: z.ZodOptional<z.ZodString>;
514
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
515
+ }, z.core.$strip>;
516
+ declare const BaseMembraneInterfaceReadOnlyProperties: z.ZodObject<{
517
+ name: z.ZodString;
518
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
519
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
520
+ revision: z.ZodOptional<z.ZodString>;
521
+ createdAt: z.ZodOptional<z.ZodString>;
522
+ updatedAt: z.ZodOptional<z.ZodString>;
523
+ archivedAt: z.ZodOptional<z.ZodString>;
524
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
525
+ }, z.core.$strip>;
526
+ declare const BaseMembraneInterface: z.ZodObject<{
754
527
  id: z.ZodString;
755
528
  key: z.ZodOptional<z.ZodString>;
756
529
  uuid: z.ZodOptional<z.ZodString>;
@@ -764,83 +537,223 @@ declare const ActionInstanceApiResponse: z.ZodObject<{
764
537
  updatedAt: z.ZodOptional<z.ZodString>;
765
538
  archivedAt: z.ZodOptional<z.ZodString>;
766
539
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
540
+ }, z.core.$strip>;
541
+ type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
542
+ declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.ZodObject<{
543
+ key: z.ZodOptional<z.ZodString>;
544
+ name: z.ZodOptional<z.ZodString>;
545
+ uuid: z.ZodOptional<z.ZodString>;
546
+ description: z.ZodOptional<z.ZodString>;
547
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
548
+ integrationId: z.ZodOptional<z.ZodString>;
767
549
  parentId: z.ZodOptional<z.ZodString>;
768
- universalParentId: z.ZodOptional<z.ZodString>;
769
- userId: z.ZodString;
550
+ }, z.core.$strip>;
551
+ declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
552
+ name: z.ZodString;
553
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
554
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
555
+ revision: z.ZodOptional<z.ZodString>;
556
+ createdAt: z.ZodOptional<z.ZodString>;
557
+ updatedAt: z.ZodOptional<z.ZodString>;
558
+ archivedAt: z.ZodOptional<z.ZodString>;
559
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
560
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
561
+ }, z.core.$strip>;
562
+ declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
563
+ integrationKey: z.ZodOptional<z.ZodString>;
564
+ connectionId: z.ZodOptional<z.ZodString>;
770
565
  instanceKey: z.ZodOptional<z.ZodString>;
771
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
772
- inputSchema: z.ZodOptional<z.ZodAny>;
773
- config: z.ZodOptional<z.ZodAny>;
774
- outputSchema: z.ZodOptional<z.ZodAny>;
775
- user: z.ZodOptional<z.ZodObject<{
776
- id: z.ZodString;
777
- name: z.ZodString;
778
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
779
- internalId: z.ZodString;
780
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
781
- credentials: z.ZodOptional<z.ZodAny>;
782
- lastActiveAt: z.ZodOptional<z.ZodString>;
783
- isTest: z.ZodOptional<z.ZodBoolean>;
784
- isBillable: z.ZodOptional<z.ZodBoolean>;
785
- createdAt: z.ZodOptional<z.ZodString>;
786
- archivedAt: z.ZodOptional<z.ZodString>;
787
- }, z.core.$strip>>;
788
- parent: z.ZodOptional<z.ZodObject<{
789
- id: z.ZodString;
790
- key: z.ZodOptional<z.ZodString>;
791
- uuid: z.ZodOptional<z.ZodString>;
792
- description: z.ZodOptional<z.ZodString>;
793
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
794
- integrationId: z.ZodOptional<z.ZodString>;
795
- parentId: z.ZodOptional<z.ZodString>;
796
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
797
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
798
- config: z.ZodOptional<z.ZodAny>;
799
- outputMapping: z.ZodOptional<z.ZodAny>;
800
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
801
- name: z.ZodString;
802
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
803
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
804
- revision: z.ZodOptional<z.ZodString>;
805
- createdAt: z.ZodOptional<z.ZodString>;
806
- updatedAt: z.ZodOptional<z.ZodString>;
807
- archivedAt: z.ZodOptional<z.ZodString>;
808
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
809
- isCustomized: z.ZodOptional<z.ZodBoolean>;
810
- }, z.core.$strip>>;
811
566
  }, z.core.$strip>;
812
- type ActionInstanceApiResponse = z.infer<typeof ActionInstanceApiResponse>;
813
- type ActionInstance = ActionInstanceApiResponse;
814
- interface ActionInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
567
+ type IntegrationLevelMembraneInterfaceSelectorQuery = z.infer<typeof IntegrationLevelMembraneInterfaceSelectorQuery>;
568
+ declare const BaseIntegrationLevelMembraneInterface: z.ZodObject<{
569
+ id: z.ZodString;
570
+ key: z.ZodOptional<z.ZodString>;
571
+ uuid: z.ZodOptional<z.ZodString>;
572
+ description: z.ZodOptional<z.ZodString>;
573
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
574
+ integrationId: z.ZodOptional<z.ZodString>;
575
+ parentId: z.ZodOptional<z.ZodString>;
576
+ name: z.ZodString;
577
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
578
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
579
+ revision: z.ZodOptional<z.ZodString>;
580
+ createdAt: z.ZodOptional<z.ZodString>;
581
+ updatedAt: z.ZodOptional<z.ZodString>;
582
+ archivedAt: z.ZodOptional<z.ZodString>;
583
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
584
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
585
+ }, z.core.$strip>;
586
+ type BaseIntegrationLevelMembraneInterface = z.infer<typeof BaseIntegrationLevelMembraneInterface>;
587
+ interface WorkspaceElementReference {
588
+ type: WorkspaceElementType;
589
+ id: string;
590
+ }
591
+ interface WorkspaceElementDependency extends WorkspaceElementReference {
592
+ dependencyType: WorkspaceElementDependencyType;
593
+ data?: unknown;
594
+ }
595
+
596
+ interface BaseElementInstance {
597
+ id: string;
598
+ }
599
+ interface ElementInstanceSelector {
600
+ id?: string;
601
+ autoCreate?: boolean;
602
+ instanceKey?: string;
603
+ userId?: string;
604
+ parentKey?: string;
605
+ parentId?: string;
606
+ }
607
+ interface IntegrationSpecificElementSelector {
608
+ id?: string;
609
+ key?: string;
610
+ integrationId?: string;
611
+ integrationKey?: string;
612
+ }
613
+ type SelectorType = {
614
+ id?: string;
615
+ } | string;
616
+ declare class ElementAccessor<Element, UpdateRequest, Selector extends SelectorType = string> {
617
+ protected options: {
618
+ client: MembraneApiClient;
619
+ path: string;
620
+ selector: string | Selector;
621
+ };
622
+ constructor(options: {
623
+ client: MembraneApiClient;
624
+ path: string;
625
+ selector: string | Selector;
626
+ });
627
+ getUniqueIdentifier(): string;
628
+ get(): Promise<Element>;
629
+ put(data: UpdateRequest): Promise<Element>;
630
+ patch(data: Partial<UpdateRequest>): Promise<Element>;
631
+ archive(): Promise<void>;
632
+ restore(): Promise<Element>;
633
+ getPath(operation?: string): string;
634
+ }
635
+ declare class ElementListAccessor<Element, FindQuery, CreateRequest> {
636
+ private client;
637
+ private path;
638
+ constructor(client: MembraneApiClient, path: string);
639
+ find(query?: FindQuery): Promise<PaginationResponse<Element>>;
640
+ findAll(query?: Omit<FindQuery, 'limit'>): Promise<Element[]>;
641
+ create(data: CreateRequest): Promise<Element>;
642
+ }
643
+ declare class ElementInstanceListAccessor<ElementInstance extends BaseElementInstance, FindQuery> {
644
+ protected client: MembraneApiClient;
645
+ private path;
646
+ constructor(client: MembraneApiClient, path: string);
647
+ find(query?: FindQuery): Promise<PaginationResponse<ElementInstance>>;
648
+ }
649
+ declare class ElementInstanceAccessor<ElementInstance extends BaseElementInstance, Selector extends {
650
+ id?: string;
651
+ }, CreateRequest, UpdateRequest> {
652
+ protected options: {
653
+ client: MembraneApiClient;
654
+ instancePath: string;
655
+ selector: string | Selector;
656
+ type?: WorkspaceElementType;
657
+ };
658
+ private id;
659
+ constructor(options: {
660
+ client: MembraneApiClient;
661
+ instancePath: string;
662
+ selector: string | Selector;
663
+ type?: WorkspaceElementType;
664
+ });
665
+ getUniqueIdentifier(): string;
666
+ get(): Promise<ElementInstance>;
667
+ getId(): Promise<string>;
668
+ create(data?: CreateRequest): Promise<ElementInstance>;
669
+ put(data: CreateRequest): Promise<ElementInstance>;
670
+ patch(data: UpdateRequest): Promise<ElementInstance>;
671
+ archive(): Promise<void>;
672
+ delete(): Promise<void>;
673
+ restore(): Promise<ElementInstance>;
674
+ protected getPath(operation?: string): string;
675
+ private getSelector;
676
+ }
677
+
678
+ declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
679
+ protected client: MembraneApiClient;
680
+ protected integrationSelector: string;
681
+ protected elementSelector: string;
682
+ protected elementKey: string;
683
+ protected endpoint: string;
684
+ constructor(client: MembraneApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
685
+ getUniqueIdentifier(): string;
686
+ get(): Promise<Element>;
687
+ patch(data: Partial<UpdateElementData>): Promise<Element>;
688
+ put(data: UpdateElementData): Promise<Element>;
689
+ archive(): Promise<void>;
690
+ reset(): Promise<Element>;
691
+ }
692
+ declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
693
+ protected client: MembraneApiClient;
694
+ protected integrationSelector: string;
695
+ protected elementKey: string;
696
+ protected endpoint: string;
697
+ constructor(client: MembraneApiClient, integrationSelector: string, elementKey: string);
698
+ list(query?: Query): Promise<PaginationResponse<Element>>;
699
+ create(data: CreateElementData): Promise<Element>;
700
+ }
701
+
702
+ declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQuery, CreateActionRequest> {
703
+ constructor(client: MembraneApiClient);
704
+ }
705
+ declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
706
+ constructor(client: MembraneApiClient, selector: ActionSelector | string);
707
+ reset(): Promise<any>;
708
+ }
709
+ declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
710
+ client: MembraneApiClient;
711
+ integrationSelector: string;
712
+ actionSelector: string;
713
+ constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
714
+ }
715
+ declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<Action, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
716
+ client: MembraneApiClient;
717
+ integrationSelector: string;
718
+ constructor(client: MembraneApiClient, integrationSelector: string);
719
+ }
720
+
721
+ interface OpenConfigurationOptions {
722
+ onClose?: (...args: any[]) => void;
723
+ showPoweredBy?: boolean;
724
+ }
725
+
726
+ type InstanceKeyQuery = {
727
+ instanceKey?: string;
728
+ };
729
+
730
+ declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
731
+ protected client: MembraneApiClient;
732
+ protected connectionSelector: string;
733
+ protected selector: string;
734
+ protected elementKey: string;
735
+ protected query: Record<string, any>;
736
+ protected endpoint: string;
737
+ constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
738
+ protected uri(path?: string, query?: {}): string;
739
+ getUniqueIdentifier(): string;
740
+ get(query?: {
741
+ autoCreate?: boolean;
742
+ }): Promise<Element>;
743
+ create(): Promise<Element>;
744
+ patch(data: Partial<UpdateElement>): Promise<Element>;
745
+ put(data: UpdateElement): Promise<Element>;
746
+ archive(): Promise<void>;
747
+ reset(): Promise<Element>;
748
+ setup(): Promise<Element>;
749
+ }
750
+ declare class ConnectionLevelElementsListAccessor<Element, Query> {
751
+ protected client: MembraneApiClient;
752
+ protected connectionSelector: string;
753
+ protected elementKey: string;
754
+ constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
755
+ list(query?: Query): Promise<PaginationResponse<Element[]>>;
815
756
  }
816
- declare const ListActionInstancesForConnectionQuery: z.ZodObject<{
817
- parentId: z.ZodOptional<z.ZodString>;
818
- universalParentId: z.ZodOptional<z.ZodString>;
819
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
820
- cursor: z.ZodOptional<z.ZodString>;
821
- }, z.core.$strip>;
822
- type ListActionInstancesForConnectionQuery = z.infer<typeof ListActionInstancesForConnectionQuery>;
823
- declare const FindActionInstancesQuery: z.ZodObject<{
824
- parentId: z.ZodOptional<z.ZodString>;
825
- universalParentId: z.ZodOptional<z.ZodString>;
826
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
827
- cursor: z.ZodOptional<z.ZodString>;
828
- integrationKey: z.ZodOptional<z.ZodString>;
829
- integrationId: z.ZodOptional<z.ZodString>;
830
- userId: z.ZodOptional<z.ZodString>;
831
- connectionId: z.ZodOptional<z.ZodString>;
832
- }, z.core.$strip>;
833
- type FindActionInstancesQuery = z.infer<typeof FindActionInstancesQuery>;
834
- declare const CreateActionInstanceRequest: z.ZodObject<{
835
- parentId: z.ZodString;
836
- connectionId: z.ZodString;
837
- config: z.ZodOptional<z.ZodAny>;
838
- }, z.core.$strip>;
839
- type CreateActionInstanceRequest = z.infer<typeof CreateActionInstanceRequest>;
840
- declare const UpdateActionInstanceRequest: z.ZodObject<{
841
- config: z.ZodOptional<z.ZodAny>;
842
- }, z.core.$strip>;
843
- type UpdateActionInstanceRequest = z.infer<typeof UpdateActionInstanceRequest>;
844
757
 
845
758
  interface OpenActionConfigurationOptions extends OpenConfigurationOptions {
846
759
  }
@@ -3836,7 +3749,6 @@ declare class DataSourcesAccessor extends ElementListAccessor<DataSource, FindDa
3836
3749
  }
3837
3750
  declare class DataSourceAccessor extends ElementAccessor<DataSource, UpdateDataSourceRequest, DataSourceSelector> {
3838
3751
  constructor(client: MembraneApiClient, selector: DataSourceSelector | string);
3839
- apply(integrationKeys: string[]): Promise<DataSource[]>;
3840
3752
  setup(): Promise<void>;
3841
3753
  reset(): Promise<any>;
3842
3754
  }
@@ -4645,7 +4557,6 @@ declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQuery, Cr
4645
4557
  }
4646
4558
  declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
4647
4559
  constructor(client: MembraneApiClient, selector: FlowSelector | string);
4648
- apply(integrationKeys: string[]): Promise<Flow[]>;
4649
4560
  reset(): Promise<Flow>;
4650
4561
  }
4651
4562
  declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
@@ -4898,7 +4809,6 @@ declare class FieldMappingsAccessor extends ElementListAccessor<FieldMapping, Fi
4898
4809
  declare class FieldMappingAccessor extends ElementAccessor<FieldMapping, UpdateFieldMappingRequest, FieldMappingSelector> {
4899
4810
  constructor(client: MembraneApiClient, selector: string | FieldMappingSelector);
4900
4811
  getAppSchema(): Promise<any>;
4901
- apply(integrationKeys: string[]): Promise<FieldMapping[]>;
4902
4812
  setup(): Promise<any>;
4903
4813
  reset(): Promise<any>;
4904
4814
  }
@@ -5311,20 +5221,23 @@ interface IntegrationElementInstanceDependency {
5311
5221
  data?: any;
5312
5222
  }
5313
5223
 
5314
- declare const ScenarioElementApi: z.ZodObject<{
5224
+ declare const PackageElementApi: z.ZodObject<{
5315
5225
  id: z.ZodString;
5316
5226
  type: z.ZodEnum<typeof IntegrationElementType>;
5317
5227
  element: z.ZodOptional<z.ZodAny>;
5318
5228
  }, z.core.$strip>;
5319
- type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
5320
- declare const FindScenariosQuery: z.ZodObject<{
5229
+ type PackageElementApi = z.infer<typeof PackageElementApi>;
5230
+ declare const FindPackagesQuery: z.ZodObject<{
5231
+ integrationId: z.ZodOptional<z.ZodString>;
5232
+ integrationKey: z.ZodOptional<z.ZodString>;
5233
+ parentId: z.ZodOptional<z.ZodString>;
5321
5234
  search: z.ZodOptional<z.ZodString>;
5322
5235
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5323
5236
  cursor: z.ZodOptional<z.ZodString>;
5324
5237
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
5325
5238
  }, z.core.$strip>;
5326
- type FindScenariosQuery = z.infer<typeof FindScenariosQuery>;
5327
- declare const ScenarioApiResponse: z.ZodObject<{
5239
+ type FindPackagesQuery = z.infer<typeof FindPackagesQuery>;
5240
+ declare const PackageApiResponse: z.ZodObject<{
5328
5241
  id: z.ZodString;
5329
5242
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
5330
5243
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
@@ -5414,15 +5327,18 @@ declare const ScenarioApiResponse: z.ZodObject<{
5414
5327
  }, z.core.$strip>;
5415
5328
  }, z.core.$strip>>>;
5416
5329
  }, z.core.$strip>;
5417
- type ScenarioApiResponse = z.infer<typeof ScenarioApiResponse>;
5418
- type Scenario = ScenarioApiResponse;
5330
+ type PackageApiResponse = z.infer<typeof PackageApiResponse>;
5331
+ type Package = PackageApiResponse;
5332
+ type Scenario = PackageApiResponse;
5419
5333
 
5420
- declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, ScenarioEditableProperties> {
5334
+ declare class PackagesAccessor extends ElementListAccessor<PackageApiResponse, FindPackagesQuery, PackageEditableProperties> {
5421
5335
  constructor(client: MembraneApiClient);
5422
5336
  }
5423
- declare class ScenarioAccessor extends ElementAccessor<Scenario, Partial<ScenarioEditableProperties>> {
5337
+ declare class PackageAccessor extends ElementAccessor<PackageApiResponse, Partial<PackageEditableProperties>> {
5424
5338
  constructor(client: MembraneApiClient, selector: string);
5425
5339
  }
5340
+ declare const ScenariosAccessor: typeof PackagesAccessor;
5341
+ declare const ScenarioAccessor: typeof PackageAccessor;
5426
5342
 
5427
5343
  declare enum ScreenType {
5428
5344
  Integration = "integration"
@@ -6350,33 +6266,309 @@ declare const ExternalEvent: z.ZodObject<{
6350
6266
  }, z.core.$strip>;
6351
6267
  }, z.core.$strip>>>;
6352
6268
  }, z.core.$strip>;
6353
- type ExternalEvent = z.infer<typeof ExternalEvent>;
6354
- type ExternalEventApiResponse = ExternalEvent;
6355
-
6356
- declare class ExternalEventSubscriptionsAccessor extends ElementInstanceListAccessor<ExternalEventSubscription, FindExternalEventSubscriptionsQuery> {
6357
- constructor(client: MembraneApiClient);
6358
- }
6359
- declare class ExternalEventSubscriptionAccessor {
6360
- private client;
6361
- private id;
6362
- constructor(client: MembraneApiClient, id: string);
6363
- get(): Promise<ExternalEventSubscription>;
6364
- setup(): Promise<void>;
6365
- subscribe(): Promise<void>;
6366
- unsubscribe(): Promise<void>;
6367
- resubscribe(): Promise<void>;
6368
- pullEvents(): Promise<void>;
6369
- private getPath;
6370
- }
6371
-
6372
- declare const ActionApiResponse: z.ZodObject<{
6269
+ type ExternalEvent = z.infer<typeof ExternalEvent>;
6270
+ type ExternalEventApiResponse = ExternalEvent;
6271
+
6272
+ declare class ExternalEventSubscriptionsAccessor extends ElementInstanceListAccessor<ExternalEventSubscription, FindExternalEventSubscriptionsQuery> {
6273
+ constructor(client: MembraneApiClient);
6274
+ }
6275
+ declare class ExternalEventSubscriptionAccessor {
6276
+ private client;
6277
+ private id;
6278
+ constructor(client: MembraneApiClient, id: string);
6279
+ get(): Promise<ExternalEventSubscription>;
6280
+ setup(): Promise<void>;
6281
+ subscribe(): Promise<void>;
6282
+ unsubscribe(): Promise<void>;
6283
+ resubscribe(): Promise<void>;
6284
+ pullEvents(): Promise<void>;
6285
+ private getPath;
6286
+ }
6287
+
6288
+ declare const ActionApiResponse: z.ZodObject<{
6289
+ id: z.ZodString;
6290
+ key: z.ZodOptional<z.ZodString>;
6291
+ uuid: z.ZodOptional<z.ZodString>;
6292
+ description: z.ZodOptional<z.ZodString>;
6293
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6294
+ integrationId: z.ZodOptional<z.ZodString>;
6295
+ connectionId: z.ZodOptional<z.ZodString>;
6296
+ parentId: z.ZodOptional<z.ZodString>;
6297
+ instanceKey: z.ZodOptional<z.ZodString>;
6298
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6299
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6300
+ config: z.ZodOptional<z.ZodAny>;
6301
+ outputMapping: z.ZodOptional<z.ZodAny>;
6302
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6303
+ name: z.ZodString;
6304
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6305
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6306
+ revision: z.ZodOptional<z.ZodString>;
6307
+ createdAt: z.ZodOptional<z.ZodString>;
6308
+ updatedAt: z.ZodOptional<z.ZodString>;
6309
+ archivedAt: z.ZodOptional<z.ZodString>;
6310
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6311
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
6312
+ universalParentId: z.ZodOptional<z.ZodString>;
6313
+ userId: z.ZodOptional<z.ZodString>;
6314
+ integration: z.ZodOptional<z.ZodObject<{
6315
+ id: z.ZodString;
6316
+ key: z.ZodOptional<z.ZodString>;
6317
+ uuid: z.ZodOptional<z.ZodString>;
6318
+ description: z.ZodOptional<z.ZodString>;
6319
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6320
+ name: z.ZodString;
6321
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6322
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6323
+ revision: z.ZodOptional<z.ZodString>;
6324
+ createdAt: z.ZodOptional<z.ZodString>;
6325
+ updatedAt: z.ZodOptional<z.ZodString>;
6326
+ logoUri: z.ZodString;
6327
+ connectorId: z.ZodOptional<z.ZodString>;
6328
+ connectorVersion: z.ZodOptional<z.ZodString>;
6329
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
6330
+ parameters: z.ZodOptional<z.ZodAny>;
6331
+ archivedAt: z.ZodOptional<z.ZodString>;
6332
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
6333
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
6334
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
6335
+ operationsCount: z.ZodOptional<z.ZodNumber>;
6336
+ hasData: z.ZodOptional<z.ZodBoolean>;
6337
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
6338
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
6339
+ eventsCount: z.ZodOptional<z.ZodNumber>;
6340
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
6341
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
6342
+ isTest: z.ZodOptional<z.ZodBoolean>;
6343
+ appUuid: z.ZodOptional<z.ZodString>;
6344
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6345
+ authType: z.ZodOptional<z.ZodEnum<{
6346
+ proxy: "proxy";
6347
+ "integration-app-token": "integration-app-token";
6348
+ "membrane-token": "membrane-token";
6349
+ oauth2: "oauth2";
6350
+ oauth1: "oauth1";
6351
+ "client-credentials": "client-credentials";
6352
+ }>>;
6353
+ }, z.core.$strip>>;
6354
+ user: z.ZodOptional<z.ZodObject<{
6355
+ id: z.ZodString;
6356
+ name: z.ZodString;
6357
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6358
+ internalId: z.ZodString;
6359
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6360
+ credentials: z.ZodOptional<z.ZodAny>;
6361
+ lastActiveAt: z.ZodOptional<z.ZodString>;
6362
+ isTest: z.ZodOptional<z.ZodBoolean>;
6363
+ isBillable: z.ZodOptional<z.ZodBoolean>;
6364
+ createdAt: z.ZodOptional<z.ZodString>;
6365
+ archivedAt: z.ZodOptional<z.ZodString>;
6366
+ }, z.core.$strip>>;
6367
+ parent: z.ZodOptional<z.ZodObject<{
6368
+ id: z.ZodString;
6369
+ key: z.ZodOptional<z.ZodString>;
6370
+ uuid: z.ZodOptional<z.ZodString>;
6371
+ description: z.ZodOptional<z.ZodString>;
6372
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6373
+ integrationId: z.ZodOptional<z.ZodString>;
6374
+ connectionId: z.ZodOptional<z.ZodString>;
6375
+ parentId: z.ZodOptional<z.ZodString>;
6376
+ instanceKey: z.ZodOptional<z.ZodString>;
6377
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6378
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6379
+ config: z.ZodOptional<z.ZodAny>;
6380
+ outputMapping: z.ZodOptional<z.ZodAny>;
6381
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6382
+ name: z.ZodString;
6383
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6384
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6385
+ revision: z.ZodOptional<z.ZodString>;
6386
+ createdAt: z.ZodOptional<z.ZodString>;
6387
+ updatedAt: z.ZodOptional<z.ZodString>;
6388
+ archivedAt: z.ZodOptional<z.ZodString>;
6389
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6390
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
6391
+ universalParentId: z.ZodOptional<z.ZodString>;
6392
+ userId: z.ZodOptional<z.ZodString>;
6393
+ outputSchema: z.ZodOptional<z.ZodAny>;
6394
+ }, z.core.$strip>>;
6395
+ appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
6396
+ element: z.ZodObject<{
6397
+ id: z.ZodString;
6398
+ key: z.ZodOptional<z.ZodString>;
6399
+ uuid: z.ZodOptional<z.ZodString>;
6400
+ description: z.ZodOptional<z.ZodString>;
6401
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6402
+ integrationId: z.ZodOptional<z.ZodString>;
6403
+ connectionId: z.ZodOptional<z.ZodString>;
6404
+ parentId: z.ZodOptional<z.ZodString>;
6405
+ instanceKey: z.ZodOptional<z.ZodString>;
6406
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6407
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6408
+ config: z.ZodOptional<z.ZodAny>;
6409
+ outputMapping: z.ZodOptional<z.ZodAny>;
6410
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6411
+ name: z.ZodString;
6412
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6413
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6414
+ revision: z.ZodOptional<z.ZodString>;
6415
+ createdAt: z.ZodOptional<z.ZodString>;
6416
+ updatedAt: z.ZodOptional<z.ZodString>;
6417
+ archivedAt: z.ZodOptional<z.ZodString>;
6418
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6419
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
6420
+ universalParentId: z.ZodOptional<z.ZodString>;
6421
+ userId: z.ZodOptional<z.ZodString>;
6422
+ outputSchema: z.ZodOptional<z.ZodAny>;
6423
+ }, z.core.$strip>;
6424
+ integration: z.ZodObject<{
6425
+ id: z.ZodString;
6426
+ key: z.ZodOptional<z.ZodString>;
6427
+ uuid: z.ZodOptional<z.ZodString>;
6428
+ description: z.ZodOptional<z.ZodString>;
6429
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6430
+ name: z.ZodString;
6431
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6432
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6433
+ revision: z.ZodOptional<z.ZodString>;
6434
+ createdAt: z.ZodOptional<z.ZodString>;
6435
+ updatedAt: z.ZodOptional<z.ZodString>;
6436
+ logoUri: z.ZodString;
6437
+ connectorId: z.ZodOptional<z.ZodString>;
6438
+ connectorVersion: z.ZodOptional<z.ZodString>;
6439
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
6440
+ parameters: z.ZodOptional<z.ZodAny>;
6441
+ archivedAt: z.ZodOptional<z.ZodString>;
6442
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
6443
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
6444
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
6445
+ operationsCount: z.ZodOptional<z.ZodNumber>;
6446
+ hasData: z.ZodOptional<z.ZodBoolean>;
6447
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
6448
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
6449
+ eventsCount: z.ZodOptional<z.ZodNumber>;
6450
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
6451
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
6452
+ isTest: z.ZodOptional<z.ZodBoolean>;
6453
+ appUuid: z.ZodOptional<z.ZodString>;
6454
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6455
+ authType: z.ZodOptional<z.ZodEnum<{
6456
+ proxy: "proxy";
6457
+ "integration-app-token": "integration-app-token";
6458
+ "membrane-token": "membrane-token";
6459
+ oauth2: "oauth2";
6460
+ oauth1: "oauth1";
6461
+ "client-credentials": "client-credentials";
6462
+ }>>;
6463
+ }, z.core.$strip>;
6464
+ }, z.core.$strip>>>;
6465
+ defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6466
+ transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6467
+ outputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6468
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
6469
+ }, z.core.$strip>;
6470
+ type ActionApiResponse = z.infer<typeof ActionApiResponse>;
6471
+ type Action = ActionApiResponse;
6472
+ declare const FindActionsQuery: z.ZodObject<{
6473
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6474
+ cursor: z.ZodOptional<z.ZodString>;
6475
+ integrationId: z.ZodOptional<z.ZodString>;
6476
+ parentId: z.ZodOptional<z.ZodString>;
6477
+ universalParentId: z.ZodOptional<z.ZodString>;
6478
+ integrationKey: z.ZodOptional<z.ZodString>;
6479
+ search: z.ZodOptional<z.ZodString>;
6480
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
6481
+ userId: z.ZodOptional<z.ZodString>;
6482
+ connectionId: z.ZodOptional<z.ZodString>;
6483
+ }, z.core.$strip>;
6484
+ type FindActionsQuery = z.infer<typeof FindActionsQuery>;
6485
+ declare const CreateActionRequest: z.ZodObject<{
6486
+ key: z.ZodOptional<z.ZodString>;
6487
+ name: z.ZodOptional<z.ZodString>;
6488
+ uuid: z.ZodOptional<z.ZodString>;
6489
+ description: z.ZodOptional<z.ZodString>;
6490
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6491
+ integrationId: z.ZodOptional<z.ZodString>;
6492
+ connectionId: z.ZodOptional<z.ZodString>;
6493
+ parentId: z.ZodOptional<z.ZodString>;
6494
+ instanceKey: z.ZodOptional<z.ZodString>;
6495
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6496
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6497
+ config: z.ZodOptional<z.ZodAny>;
6498
+ outputMapping: z.ZodOptional<z.ZodAny>;
6499
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6500
+ }, z.core.$strip>;
6501
+ type CreateActionRequest = z.infer<typeof CreateActionRequest>;
6502
+ declare const UpdateActionRequest: z.ZodObject<{
6503
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6504
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6505
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6506
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6507
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6508
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6509
+ connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6510
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6511
+ instanceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6512
+ inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6513
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ActionType>>>;
6514
+ config: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6515
+ outputMapping: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6516
+ customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6517
+ }, z.core.$strip>;
6518
+ type UpdateActionRequest = z.infer<typeof UpdateActionRequest>;
6519
+ declare const CreateActionInstanceRequest: z.ZodObject<{
6520
+ key: z.ZodOptional<z.ZodString>;
6521
+ name: z.ZodOptional<z.ZodString>;
6522
+ uuid: z.ZodOptional<z.ZodString>;
6523
+ description: z.ZodOptional<z.ZodString>;
6524
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6525
+ integrationId: z.ZodOptional<z.ZodString>;
6526
+ connectionId: z.ZodOptional<z.ZodString>;
6527
+ parentId: z.ZodOptional<z.ZodString>;
6528
+ instanceKey: z.ZodOptional<z.ZodString>;
6529
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6530
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6531
+ config: z.ZodOptional<z.ZodAny>;
6532
+ outputMapping: z.ZodOptional<z.ZodAny>;
6533
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6534
+ }, z.core.$strip>;
6535
+ type CreateActionInstanceRequest = CreateActionRequest;
6536
+ declare const UpdateActionInstanceRequest: z.ZodObject<{
6537
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6538
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6539
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6540
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6541
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6542
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6543
+ connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6544
+ parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6545
+ instanceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6546
+ inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6547
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ActionType>>>;
6548
+ config: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6549
+ outputMapping: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6550
+ customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6551
+ }, z.core.$strip>;
6552
+ type UpdateActionInstanceRequest = UpdateActionRequest;
6553
+ declare const RunActionRequest: z.ZodObject<{
6554
+ input: z.ZodOptional<z.ZodAny>;
6555
+ }, z.core.$strip>;
6556
+ type RunActionRequest = z.infer<typeof RunActionRequest>;
6557
+ declare const ActionRunResponse: z.ZodObject<{
6558
+ output: z.ZodOptional<z.ZodAny>;
6559
+ logs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
6560
+ }, z.core.$strip>;
6561
+ type ActionRunResponse = z.infer<typeof ActionRunResponse>;
6562
+ declare const ActionInstanceApiResponse: z.ZodObject<{
6373
6563
  id: z.ZodString;
6374
6564
  key: z.ZodOptional<z.ZodString>;
6375
6565
  uuid: z.ZodOptional<z.ZodString>;
6376
6566
  description: z.ZodOptional<z.ZodString>;
6377
6567
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6378
6568
  integrationId: z.ZodOptional<z.ZodString>;
6569
+ connectionId: z.ZodOptional<z.ZodString>;
6379
6570
  parentId: z.ZodOptional<z.ZodString>;
6571
+ instanceKey: z.ZodOptional<z.ZodString>;
6380
6572
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6381
6573
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6382
6574
  config: z.ZodOptional<z.ZodAny>;
@@ -6391,6 +6583,8 @@ declare const ActionApiResponse: z.ZodObject<{
6391
6583
  archivedAt: z.ZodOptional<z.ZodString>;
6392
6584
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6393
6585
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6586
+ universalParentId: z.ZodOptional<z.ZodString>;
6587
+ userId: z.ZodOptional<z.ZodString>;
6394
6588
  integration: z.ZodOptional<z.ZodObject<{
6395
6589
  id: z.ZodString;
6396
6590
  key: z.ZodOptional<z.ZodString>;
@@ -6431,6 +6625,47 @@ declare const ActionApiResponse: z.ZodObject<{
6431
6625
  "client-credentials": "client-credentials";
6432
6626
  }>>;
6433
6627
  }, z.core.$strip>>;
6628
+ user: z.ZodOptional<z.ZodObject<{
6629
+ id: z.ZodString;
6630
+ name: z.ZodString;
6631
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6632
+ internalId: z.ZodString;
6633
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6634
+ credentials: z.ZodOptional<z.ZodAny>;
6635
+ lastActiveAt: z.ZodOptional<z.ZodString>;
6636
+ isTest: z.ZodOptional<z.ZodBoolean>;
6637
+ isBillable: z.ZodOptional<z.ZodBoolean>;
6638
+ createdAt: z.ZodOptional<z.ZodString>;
6639
+ archivedAt: z.ZodOptional<z.ZodString>;
6640
+ }, z.core.$strip>>;
6641
+ parent: z.ZodOptional<z.ZodObject<{
6642
+ id: z.ZodString;
6643
+ key: z.ZodOptional<z.ZodString>;
6644
+ uuid: z.ZodOptional<z.ZodString>;
6645
+ description: z.ZodOptional<z.ZodString>;
6646
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6647
+ integrationId: z.ZodOptional<z.ZodString>;
6648
+ connectionId: z.ZodOptional<z.ZodString>;
6649
+ parentId: z.ZodOptional<z.ZodString>;
6650
+ instanceKey: z.ZodOptional<z.ZodString>;
6651
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6652
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6653
+ config: z.ZodOptional<z.ZodAny>;
6654
+ outputMapping: z.ZodOptional<z.ZodAny>;
6655
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6656
+ name: z.ZodString;
6657
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
6658
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
6659
+ revision: z.ZodOptional<z.ZodString>;
6660
+ createdAt: z.ZodOptional<z.ZodString>;
6661
+ updatedAt: z.ZodOptional<z.ZodString>;
6662
+ archivedAt: z.ZodOptional<z.ZodString>;
6663
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6664
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
6665
+ universalParentId: z.ZodOptional<z.ZodString>;
6666
+ userId: z.ZodOptional<z.ZodString>;
6667
+ outputSchema: z.ZodOptional<z.ZodAny>;
6668
+ }, z.core.$strip>>;
6434
6669
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
6435
6670
  element: z.ZodObject<{
6436
6671
  id: z.ZodString;
@@ -6439,7 +6674,9 @@ declare const ActionApiResponse: z.ZodObject<{
6439
6674
  description: z.ZodOptional<z.ZodString>;
6440
6675
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6441
6676
  integrationId: z.ZodOptional<z.ZodString>;
6677
+ connectionId: z.ZodOptional<z.ZodString>;
6442
6678
  parentId: z.ZodOptional<z.ZodString>;
6679
+ instanceKey: z.ZodOptional<z.ZodString>;
6443
6680
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6444
6681
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6445
6682
  config: z.ZodOptional<z.ZodAny>;
@@ -6454,6 +6691,9 @@ declare const ActionApiResponse: z.ZodObject<{
6454
6691
  archivedAt: z.ZodOptional<z.ZodString>;
6455
6692
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6456
6693
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6694
+ universalParentId: z.ZodOptional<z.ZodString>;
6695
+ userId: z.ZodOptional<z.ZodString>;
6696
+ outputSchema: z.ZodOptional<z.ZodAny>;
6457
6697
  }, z.core.$strip>;
6458
6698
  integration: z.ZodObject<{
6459
6699
  id: z.ZodString;
@@ -6501,53 +6741,36 @@ declare const ActionApiResponse: z.ZodObject<{
6501
6741
  outputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6502
6742
  dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
6503
6743
  }, z.core.$strip>;
6504
- type ActionApiResponse = z.infer<typeof ActionApiResponse>;
6505
- type Action = ActionApiResponse;
6506
- declare const FindActionsQuery: z.ZodObject<{
6744
+ type ActionInstanceApiResponse = ActionApiResponse;
6745
+ type ActionInstance = ActionInstanceApiResponse;
6746
+ interface ActionInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
6747
+ }
6748
+ declare const ListActionInstancesForConnectionQuery: z.ZodObject<{
6507
6749
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6508
6750
  cursor: z.ZodOptional<z.ZodString>;
6509
6751
  integrationId: z.ZodOptional<z.ZodString>;
6510
6752
  parentId: z.ZodOptional<z.ZodString>;
6753
+ universalParentId: z.ZodOptional<z.ZodString>;
6511
6754
  integrationKey: z.ZodOptional<z.ZodString>;
6512
6755
  search: z.ZodOptional<z.ZodString>;
6513
6756
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
6757
+ userId: z.ZodOptional<z.ZodString>;
6758
+ connectionId: z.ZodOptional<z.ZodString>;
6514
6759
  }, z.core.$strip>;
6515
- type FindActionsQuery = z.infer<typeof FindActionsQuery>;
6516
- declare const CreateActionRequest: z.ZodObject<{
6517
- key: z.ZodOptional<z.ZodString>;
6518
- name: z.ZodOptional<z.ZodString>;
6519
- uuid: z.ZodOptional<z.ZodString>;
6520
- description: z.ZodOptional<z.ZodString>;
6521
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6760
+ type ListActionInstancesForConnectionQuery = FindActionsQuery;
6761
+ declare const FindActionInstancesQuery: z.ZodObject<{
6762
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6763
+ cursor: z.ZodOptional<z.ZodString>;
6522
6764
  integrationId: z.ZodOptional<z.ZodString>;
6523
6765
  parentId: z.ZodOptional<z.ZodString>;
6524
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6525
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6526
- config: z.ZodOptional<z.ZodAny>;
6527
- outputMapping: z.ZodOptional<z.ZodAny>;
6528
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6529
- }, z.core.$strip>;
6530
- type CreateActionRequest = z.infer<typeof CreateActionRequest>;
6531
- declare const UpdateActionRequest: z.ZodObject<{
6532
- key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6533
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6534
- uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6535
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6536
- meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6537
- integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6538
- parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6539
- inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6540
- type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ActionType>>>;
6541
- config: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6542
- outputMapping: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6543
- customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6544
- }, z.core.$strip>;
6545
- type UpdateActionRequest = z.infer<typeof UpdateActionRequest>;
6546
- declare const ActionRunResponse: z.ZodObject<{
6547
- output: z.ZodOptional<z.ZodAny>;
6548
- logs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
6766
+ universalParentId: z.ZodOptional<z.ZodString>;
6767
+ integrationKey: z.ZodOptional<z.ZodString>;
6768
+ search: z.ZodOptional<z.ZodString>;
6769
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
6770
+ userId: z.ZodOptional<z.ZodString>;
6771
+ connectionId: z.ZodOptional<z.ZodString>;
6549
6772
  }, z.core.$strip>;
6550
- type ActionRunResponse = z.infer<typeof ActionRunResponse>;
6773
+ type FindActionInstancesQuery = FindActionsQuery;
6551
6774
  interface ActionSelector extends IntegrationSpecificElementSelector {
6552
6775
  }
6553
6776
 
@@ -6589,7 +6812,9 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
6589
6812
  description: z.ZodOptional<z.ZodString>;
6590
6813
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6591
6814
  integrationId: z.ZodOptional<z.ZodString>;
6815
+ connectionId: z.ZodOptional<z.ZodString>;
6592
6816
  parentId: z.ZodOptional<z.ZodString>;
6817
+ instanceKey: z.ZodOptional<z.ZodString>;
6593
6818
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6594
6819
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6595
6820
  config: z.ZodOptional<z.ZodAny>;
@@ -6604,6 +6829,9 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
6604
6829
  archivedAt: z.ZodOptional<z.ZodString>;
6605
6830
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6606
6831
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6832
+ universalParentId: z.ZodOptional<z.ZodString>;
6833
+ userId: z.ZodOptional<z.ZodString>;
6834
+ outputSchema: z.ZodOptional<z.ZodAny>;
6607
6835
  }, z.core.$strip>>;
6608
6836
  integration: z.ZodOptional<z.ZodObject<{
6609
6837
  id: z.ZodString;
@@ -7159,6 +7387,8 @@ interface WorkspaceElementSpec {
7159
7387
  editablePropertiesSchema?: z.ZodObject<any>;
7160
7388
  apiResponseSchema?: z.ZodObject<any>;
7161
7389
  findQuerySchema?: z.ZodObject<any>;
7390
+ isMembraneInterface?: boolean;
7391
+ isIntegrationLevel?: boolean;
7162
7392
  parentFieldKey?: string;
7163
7393
  }
7164
7394
  interface WorkspaceElements {
@@ -8285,9 +8515,12 @@ interface OrgWorkspace {
8285
8515
  declare enum WebhookTypeEnum {
8286
8516
  USER_INVITED_TO_ORG = "user-invited-to-org",
8287
8517
  ORG_ACCESS_REQUESTED = "org-access-requested",
8288
- ORG_CREATED = "org-created"
8518
+ ORG_CREATED = "org-created",
8519
+ TASK_CREATED = "task-created",
8520
+ TASK_UPDATED = "task-updated",
8521
+ TASK_ACTIVITY_CREATED = "task-activity-created"
8289
8522
  }
8290
- type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED;
8523
+ type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED;
8291
8524
  interface Webhook {
8292
8525
  type: WebhookType;
8293
8526
  url: string;
@@ -8303,7 +8536,9 @@ declare enum AlertSeverity {
8303
8536
  WARNING = "warning"
8304
8537
  }
8305
8538
  declare enum AlertType {
8306
- externalEventsPerCustomerPerDay = "externalEventsPerCustomerPerDay"
8539
+ externalEventsPerCustomerPerDay = "externalEventsPerCustomerPerDay",
8540
+ totalUsagePerDay = "totalUsagePerDay",
8541
+ totalUsagePer30Days = "totalUsagePer30Days"
8307
8542
  }
8308
8543
  interface Alert {
8309
8544
  id: string;
@@ -8619,8 +8854,8 @@ declare class MembraneClient extends MembraneApiClient {
8619
8854
  appDataSchemaInstance(selector: string | AppDataSchemaInstanceSelector): AppDataSchemaInstanceAccessor;
8620
8855
  customer(selector: string | CustomerSelector): CustomerAccessor;
8621
8856
  get customers(): CustomersAccessor;
8622
- scenario(selector: string): ScenarioAccessor;
8623
- get scenarios(): ScenariosAccessor;
8857
+ package(selector: string): PackageAccessor;
8858
+ get packages(): PackagesAccessor;
8624
8859
  createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
8625
8860
  connectionRequest(connectionId: string, uri: string, data?: any): Promise<any>;
8626
8861
  }
@@ -8651,6 +8886,16 @@ interface ActionSpec {
8651
8886
  declare function isDataActionType(type: string | ActionType): any;
8652
8887
  declare const ACTIONS: Record<ActionType, ActionSpec>;
8653
8888
 
8889
+ declare enum ActionDependencyType {
8890
+ FieldMapping = "FieldMapping",
8891
+ DataSource = "DataSource"
8892
+ }
8893
+ declare const ActionDependency: z.ZodObject<{
8894
+ type: z.ZodEnum<typeof ActionDependencyType>;
8895
+ key: z.ZodString;
8896
+ element: z.ZodOptional<z.ZodAny>;
8897
+ }, z.core.$strip>;
8898
+ type ActionDependency = z.infer<typeof ActionDependency>;
8654
8899
  declare const ActionEditableProperties: z.ZodObject<{
8655
8900
  key: z.ZodOptional<z.ZodString>;
8656
8901
  name: z.ZodOptional<z.ZodString>;
@@ -8658,7 +8903,9 @@ declare const ActionEditableProperties: z.ZodObject<{
8658
8903
  description: z.ZodOptional<z.ZodString>;
8659
8904
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8660
8905
  integrationId: z.ZodOptional<z.ZodString>;
8906
+ connectionId: z.ZodOptional<z.ZodString>;
8661
8907
  parentId: z.ZodOptional<z.ZodString>;
8908
+ instanceKey: z.ZodOptional<z.ZodString>;
8662
8909
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8663
8910
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8664
8911
  config: z.ZodOptional<z.ZodAny>;
@@ -8673,7 +8920,9 @@ declare const BaseAction: z.ZodObject<{
8673
8920
  description: z.ZodOptional<z.ZodString>;
8674
8921
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8675
8922
  integrationId: z.ZodOptional<z.ZodString>;
8923
+ connectionId: z.ZodOptional<z.ZodString>;
8676
8924
  parentId: z.ZodOptional<z.ZodString>;
8925
+ instanceKey: z.ZodOptional<z.ZodString>;
8677
8926
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8678
8927
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8679
8928
  config: z.ZodOptional<z.ZodAny>;
@@ -8688,8 +8937,40 @@ declare const BaseAction: z.ZodObject<{
8688
8937
  archivedAt: z.ZodOptional<z.ZodString>;
8689
8938
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
8690
8939
  isCustomized: z.ZodOptional<z.ZodBoolean>;
8940
+ universalParentId: z.ZodOptional<z.ZodString>;
8941
+ userId: z.ZodOptional<z.ZodString>;
8942
+ outputSchema: z.ZodOptional<z.ZodAny>;
8691
8943
  }, z.core.$strip>;
8692
8944
  type BaseAction = z.infer<typeof BaseAction>;
8945
+ declare const BaseActionInstance: z.ZodObject<{
8946
+ id: z.ZodString;
8947
+ key: z.ZodOptional<z.ZodString>;
8948
+ uuid: z.ZodOptional<z.ZodString>;
8949
+ description: z.ZodOptional<z.ZodString>;
8950
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8951
+ integrationId: z.ZodOptional<z.ZodString>;
8952
+ connectionId: z.ZodOptional<z.ZodString>;
8953
+ parentId: z.ZodOptional<z.ZodString>;
8954
+ instanceKey: z.ZodOptional<z.ZodString>;
8955
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8956
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8957
+ config: z.ZodOptional<z.ZodAny>;
8958
+ outputMapping: z.ZodOptional<z.ZodAny>;
8959
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8960
+ name: z.ZodString;
8961
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
8962
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
8963
+ revision: z.ZodOptional<z.ZodString>;
8964
+ createdAt: z.ZodOptional<z.ZodString>;
8965
+ updatedAt: z.ZodOptional<z.ZodString>;
8966
+ archivedAt: z.ZodOptional<z.ZodString>;
8967
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
8968
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
8969
+ universalParentId: z.ZodOptional<z.ZodString>;
8970
+ userId: z.ZodOptional<z.ZodString>;
8971
+ outputSchema: z.ZodOptional<z.ZodAny>;
8972
+ }, z.core.$strip>;
8973
+ type BaseActionInstance = BaseAction;
8693
8974
 
8694
8975
  declare const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS: number;
8695
8976
  declare const DEFAULT_FULL_SYNC_INTERVAL_SECONDS: number;
@@ -9141,13 +9422,13 @@ declare const AppliedToIntegrations: <Element extends z.ZodType>(elementSchema:
9141
9422
  }, z.core.$strip>>;
9142
9423
  type AppliedToIntegrations<Element> = z.infer<ReturnType<typeof AppliedToIntegrations<z.ZodType<Element>>>>;
9143
9424
 
9144
- declare const ScenarioElement: z.ZodObject<{
9425
+ declare const PackageElement: z.ZodObject<{
9145
9426
  id: z.ZodString;
9146
9427
  type: z.ZodEnum<typeof IntegrationElementType>;
9147
9428
  element: z.ZodOptional<z.ZodAny>;
9148
9429
  }, z.core.$strip>;
9149
- type ScenarioElement = z.infer<typeof ScenarioElement>;
9150
- declare const ScenarioEditableProperties: z.ZodObject<{
9430
+ type PackageElement = z.infer<typeof PackageElement>;
9431
+ declare const PackageEditableProperties: z.ZodObject<{
9151
9432
  key: z.ZodOptional<z.ZodString>;
9152
9433
  name: z.ZodOptional<z.ZodString>;
9153
9434
  uuid: z.ZodOptional<z.ZodString>;
@@ -9162,14 +9443,14 @@ declare const ScenarioEditableProperties: z.ZodObject<{
9162
9443
  integrationId: z.ZodOptional<z.ZodString>;
9163
9444
  parentId: z.ZodOptional<z.ZodString>;
9164
9445
  }, z.core.$strip>;
9165
- type ScenarioEditableProperties = z.infer<typeof ScenarioEditableProperties>;
9166
- declare const ScenarioCalculatedProperties: z.ZodObject<{
9446
+ type PackageEditableProperties = z.infer<typeof PackageEditableProperties>;
9447
+ declare const PackageCalculatedProperties: z.ZodObject<{
9167
9448
  key: z.ZodString;
9168
9449
  name: z.ZodString;
9169
9450
  isCustomized: z.ZodOptional<z.ZodBoolean>;
9170
9451
  }, z.core.$strip>;
9171
- type ScenarioCalculatedProperties = z.infer<typeof ScenarioCalculatedProperties>;
9172
- declare const BaseScenario: z.ZodObject<{
9452
+ type PackageCalculatedProperties = z.infer<typeof PackageCalculatedProperties>;
9453
+ declare const BasePackage: z.ZodObject<{
9173
9454
  id: z.ZodString;
9174
9455
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
9175
9456
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
@@ -9193,7 +9474,7 @@ declare const BaseScenario: z.ZodObject<{
9193
9474
  name: z.ZodString;
9194
9475
  isCustomized: z.ZodOptional<z.ZodBoolean>;
9195
9476
  }, z.core.$strip>;
9196
- type BaseScenario = z.infer<typeof BaseScenario>;
9477
+ type BasePackage = z.infer<typeof BasePackage>;
9197
9478
 
9198
9479
  declare const BaseCustomer: z.ZodObject<{
9199
9480
  id: z.ZodString;
@@ -9274,41 +9555,6 @@ declare const FlowInstanceNode: z.ZodObject<{
9274
9555
  }, z.core.$strip>;
9275
9556
  type FlowInstanceNode = z.infer<typeof FlowInstanceNode>;
9276
9557
 
9277
- declare enum ActionDependencyType {
9278
- FieldMapping = "FieldMapping",
9279
- DataSource = "DataSource"
9280
- }
9281
- declare const ActionDependency: z.ZodObject<{
9282
- type: z.ZodEnum<typeof ActionDependencyType>;
9283
- key: z.ZodString;
9284
- element: z.ZodOptional<z.ZodAny>;
9285
- }, z.core.$strip>;
9286
- type ActionDependency = z.infer<typeof ActionDependency>;
9287
- declare const BaseActionInstance: z.ZodObject<{
9288
- id: z.ZodString;
9289
- key: z.ZodOptional<z.ZodString>;
9290
- uuid: z.ZodOptional<z.ZodString>;
9291
- description: z.ZodOptional<z.ZodString>;
9292
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9293
- name: z.ZodString;
9294
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
9295
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
9296
- revision: z.ZodOptional<z.ZodString>;
9297
- createdAt: z.ZodOptional<z.ZodString>;
9298
- updatedAt: z.ZodOptional<z.ZodString>;
9299
- archivedAt: z.ZodOptional<z.ZodString>;
9300
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
9301
- parentId: z.ZodOptional<z.ZodString>;
9302
- universalParentId: z.ZodOptional<z.ZodString>;
9303
- userId: z.ZodString;
9304
- instanceKey: z.ZodOptional<z.ZodString>;
9305
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
9306
- inputSchema: z.ZodOptional<z.ZodAny>;
9307
- config: z.ZodOptional<z.ZodAny>;
9308
- outputSchema: z.ZodOptional<z.ZodAny>;
9309
- }, z.core.$strip>;
9310
- type BaseActionInstance = z.infer<typeof BaseActionInstance>;
9311
-
9312
9558
  declare const BaseFieldMappingInstance: z.ZodObject<{
9313
9559
  id: z.ZodString;
9314
9560
  key: z.ZodOptional<z.ZodString>;
@@ -9418,5 +9664,5 @@ declare function getParentNodeKeys(flow: Flow | FlowInstance, nodeKey: string):
9418
9664
  declare function getUpstreamNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
9419
9665
  declare function hasCycles(nodes?: Record<string, FlowNode>): boolean;
9420
9666
 
9421
- export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, ParallelExecutionLimits, RATE_LIMITS, RateLimitExceededError, RateLimits, ResetFlowInstanceOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
9422
- export type { Action, ActionInstance, ActionInstanceSelector, ActionRunLogRecord, ActionSelector, ActionSpec, Alert, App, AppCategory, AppDataSchema, AppDataSchemaInstance, AppDataSchemaInstanceSelector, AppEvent, AppEventSubscription, AppEventSubscriptionCreateRequest, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest, AppEventType, BaseConnector, BaseElementInstance, CaseFormulaValue, CaseFormulaValueItem, ConfigurationStateResult, Connection, ConnectionUiSpec, ConnectorApiType, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthOAuth1, ConnectorAuthOAuth1Config, ConnectorAuthOAuth2, ConnectorAuthOAuth2Config, ConnectorAuthOAuthConfig, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthType, ConnectorCopilotSuggestion, ConnectorCopilotSuggestionAction, ConnectorDataCollection, ConnectorDataCollectionBase, ConnectorDataCollectionEvent, ConnectorDataCollectionEventCustomPull, ConnectorDataCollectionEventFullScan, ConnectorDataCollectionEventImplementationTypeKey, ConnectorDataCollectionEventPullLatestRecords, ConnectorDataCollectionEventType, ConnectorDataCollectionEventWebhook, ConnectorDataCollectionMethod, ConnectorEventGlobalWebhookGetEventSelectorResponse, ConnectorEventHandler, ConnectorEventListItem, ConnectorEventSpec, ConnectorGlobalWebhookHandleRequest, ConnectorGlobalWebhookHandleResponse, ConnectorGlobalWebhookHandler, ConnectorGlobalWebhookListItem, ConnectorGlobalWebhookSpec, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorOperationHandler, ConnectorOperationMethod, ConnectorSpec, ConnectorUdmCollectionMapping, ConnectorUdmListLitem, ConnectorUdmSpec, ConnectorUiSpec, CopilotAction, CopilotActionReference, CopilotActivity, CopilotActivityDataTask, CopilotActivityNotificationData, CopilotTask, CreateAppDataSchemaInstanceRequest, CreateAppDataSchemaRequest, CreateAppEventSubscriptionRequest, CreateAppEventTypeRequest, CreateDataLinkRequest, CreateDataLinkTableInstanceRequest, CreateDataLinkTableRequest, CreateFieldMappingInstanceRequest, CreateFlowInstanceRequest, CreateScenarioTemplateRequest, CreateScreenRequest, CreateUserRequest, Customer, DataCollectionEvent, DataCollectionEventsRequest, DataCollectionEventsResponse, DataCollectionListItem, DataCollectionMixin, DataCollectionParseUnifiedFieldsRequest, DataCollectionParseUnifiedFieldsResponse, DataCollectionSubscribeRequest, DataCollectionSubscribeResponse, DataCollectionUnsubscribeRequest, DataCollectionUnsubscribeResponse, DataCollectionUpdateSubscriptionRequest, DataCollectionUpdateSubscriptionResponse, DataEventWebhookPayload, DataFilter, DataFormArgs, DataLinkInTableSelector, DataLinkSelector, DataLinkTable, DataLinkTableInstance, DataLinkTableInstanceSelector, DataLocationPointer, DataLocator, DataRecord, DataSource, DataSourceInstance, DataSourceInstanceSelector, DataSourceSelector, DeleteDataLinkRequest, DownstreamFlowNodeRun, ElementInstanceFields, ElementInstanceSelector, ElementTemplateFields, EngineWorkspace, EngineWorkspaceSettings, EngineWorkspaceWithOrgData, ErrorConstructorArg, EvalOperator, ExternalEventApiResponse, ExternalEventCustomPullCollectEventsRequest, ExternalEventCustomPullCollectEventsResponse, ExternalEventCustomPullSubscribeResponse, ExternalEventLogRecord, ExternalEventPull, ExternalEventSubscription, ExternalEventWebhookHandleRequest, ExternalEventWebhookHandleResponse, ExternalEventWebhookRefreshRequest, ExternalEventWebhookRefreshResponse, ExternalEventWebhookSubscribeRequest, ExternalEventWebhookSubscribeResponse, ExternalEventWebhookUnsubscribeRequest, FieldMapping, FieldMappingInstance, FieldMappingInstanceSelector, FieldMappingSelector, FieldValueOption, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindDataLinkQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceInstancesResponse, FindExternalEventLogsQuery, FindExternalEventPullsQuery, FindExternalEventSubscriptionsQuery, FindFieldMappingInstancesQuery, FindIntegrationsResponse, FindScenarioTemplatesQuery, FindScreensQuery, FindUsersQuery, Flow, FlowInstance, FlowInstanceSelector, FlowNodeHandlerRunResponse, FlowNodeRunOutput, FlowNodeRunOutputMetadata, FlowNodeRunOutputWithoutDownstreamRuns, FlowNodeRunParameters, FlowNodeRunRecord, FlowNodeRunRecordWithoutOutputsData, FlowNodeRunResult, FlowRun, FlowSelector, GraphQLApiMapping, GraphQLFieldMapping, GraphqlApiClientInput, HandyScenarioTemplateElementApi, IWorkspaceUpdate, Integration, IntegrationAuthOptionLegacy, IntegrationElement, IntegrationElementInstance, IntegrationElementInstanceDependency, IntegrationSpecificElementSelector, ListDataSourcesForIntegrationQuery, ListFieldMappingInstancesForConnectionQuery, ListFieldMappingsForIntegrationQuery, ListFlowsForIntegrationQuery, LoadConfigOptions, LogRecord, LookupValue, MapFormulaValue, MappingItem, MembraneConfig, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgLimits, OrgUser, OrgWorkspace, PartialMembraneConfig, PatchSchemaOption, PlatformUser, PullLatestRecordsEventOutput, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, ScreenSelector, Self, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableRequest, UpdateFieldMappingInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateScreenRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, Workspace, WorkspaceElementCalculateStateResult, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };
9667
+ export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindPackagesQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, RATE_LIMITS, RateLimitExceededError, RateLimits, ResetFlowInstanceOptions, RunActionRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
9668
+ export type { Action, ActionInstance, ActionInstanceSelector, ActionRunLogRecord, ActionSelector, ActionSpec, Alert, App, AppCategory, AppDataSchema, AppDataSchemaInstance, AppDataSchemaInstanceSelector, AppEvent, AppEventSubscription, AppEventSubscriptionCreateRequest, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest, AppEventType, BaseConnector, BaseElementInstance, CaseFormulaValue, CaseFormulaValueItem, ConfigurationStateResult, Connection, ConnectionUiSpec, ConnectorApiType, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthOAuth1, ConnectorAuthOAuth1Config, ConnectorAuthOAuth2, ConnectorAuthOAuth2Config, ConnectorAuthOAuthConfig, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthType, ConnectorCopilotSuggestion, ConnectorCopilotSuggestionAction, ConnectorDataCollection, ConnectorDataCollectionBase, ConnectorDataCollectionEvent, ConnectorDataCollectionEventCustomPull, ConnectorDataCollectionEventFullScan, ConnectorDataCollectionEventImplementationTypeKey, ConnectorDataCollectionEventPullLatestRecords, ConnectorDataCollectionEventType, ConnectorDataCollectionEventWebhook, ConnectorDataCollectionMethod, ConnectorEventGlobalWebhookGetEventSelectorResponse, ConnectorEventHandler, ConnectorEventListItem, ConnectorEventSpec, ConnectorGlobalWebhookHandleRequest, ConnectorGlobalWebhookHandleResponse, ConnectorGlobalWebhookHandler, ConnectorGlobalWebhookListItem, ConnectorGlobalWebhookSpec, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorOperationHandler, ConnectorOperationMethod, ConnectorSpec, ConnectorUdmCollectionMapping, ConnectorUdmListLitem, ConnectorUdmSpec, ConnectorUiSpec, CopilotAction, CopilotActionReference, CopilotActivity, CopilotActivityDataTask, CopilotActivityNotificationData, CopilotTask, CreateAppDataSchemaInstanceRequest, CreateAppDataSchemaRequest, CreateAppEventSubscriptionRequest, CreateAppEventTypeRequest, CreateDataLinkRequest, CreateDataLinkTableInstanceRequest, CreateDataLinkTableRequest, CreateFieldMappingInstanceRequest, CreateFlowInstanceRequest, CreateScenarioTemplateRequest, CreateScreenRequest, CreateUserRequest, Customer, DataCollectionEvent, DataCollectionEventsRequest, DataCollectionEventsResponse, DataCollectionListItem, DataCollectionMixin, DataCollectionParseUnifiedFieldsRequest, DataCollectionParseUnifiedFieldsResponse, DataCollectionSubscribeRequest, DataCollectionSubscribeResponse, DataCollectionUnsubscribeRequest, DataCollectionUnsubscribeResponse, DataCollectionUpdateSubscriptionRequest, DataCollectionUpdateSubscriptionResponse, DataEventWebhookPayload, DataFilter, DataFormArgs, DataLinkInTableSelector, DataLinkSelector, DataLinkTable, DataLinkTableInstance, DataLinkTableInstanceSelector, DataLocationPointer, DataLocator, DataRecord, DataSource, DataSourceInstance, DataSourceInstanceSelector, DataSourceSelector, DeleteDataLinkRequest, DownstreamFlowNodeRun, ElementInstanceFields, ElementInstanceSelector, ElementTemplateFields, EngineWorkspace, EngineWorkspaceSettings, EngineWorkspaceWithOrgData, ErrorConstructorArg, EvalOperator, ExternalEventApiResponse, ExternalEventCustomPullCollectEventsRequest, ExternalEventCustomPullCollectEventsResponse, ExternalEventCustomPullSubscribeResponse, ExternalEventLogRecord, ExternalEventPull, ExternalEventSubscription, ExternalEventWebhookHandleRequest, ExternalEventWebhookHandleResponse, ExternalEventWebhookRefreshRequest, ExternalEventWebhookRefreshResponse, ExternalEventWebhookSubscribeRequest, ExternalEventWebhookSubscribeResponse, ExternalEventWebhookUnsubscribeRequest, FieldMapping, FieldMappingInstance, FieldMappingInstanceSelector, FieldMappingSelector, FieldValueOption, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindDataLinkQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceInstancesResponse, FindExternalEventLogsQuery, FindExternalEventPullsQuery, FindExternalEventSubscriptionsQuery, FindFieldMappingInstancesQuery, FindIntegrationsResponse, FindScenarioTemplatesQuery, FindScreensQuery, FindUsersQuery, Flow, FlowInstance, FlowInstanceSelector, FlowNodeHandlerRunResponse, FlowNodeRunOutput, FlowNodeRunOutputMetadata, FlowNodeRunOutputWithoutDownstreamRuns, FlowNodeRunParameters, FlowNodeRunRecord, FlowNodeRunRecordWithoutOutputsData, FlowNodeRunResult, FlowRun, FlowSelector, GraphQLApiMapping, GraphQLFieldMapping, GraphqlApiClientInput, HandyScenarioTemplateElementApi, IWorkspaceUpdate, Integration, IntegrationAuthOptionLegacy, IntegrationElement, IntegrationElementInstance, IntegrationElementInstanceDependency, IntegrationSpecificElementSelector, ListDataSourcesForIntegrationQuery, ListFieldMappingInstancesForConnectionQuery, ListFieldMappingsForIntegrationQuery, ListFlowsForIntegrationQuery, LoadConfigOptions, LogRecord, LookupValue, MapFormulaValue, MappingItem, MembraneConfig, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgLimits, OrgUser, OrgWorkspace, Package, PartialMembraneConfig, PatchSchemaOption, PlatformUser, PullLatestRecordsEventOutput, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, ScreenSelector, Self, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableRequest, UpdateFieldMappingInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateScreenRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, Workspace, WorkspaceElementCalculateStateResult, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };