@membranehq/sdk 0.8.0 → 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 (31) hide show
  1. package/dist/bundle.d.ts +314 -104
  2. package/dist/bundle.js +344 -229
  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/scenarios-accessors.d.ts +6 -4
  6. package/dist/dts/alerts/types.d.ts +3 -1
  7. package/dist/dts/client.d.ts +3 -3
  8. package/dist/dts/webhooks/types.d.ts +5 -2
  9. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -0
  10. package/dist/dts/workspace-elements/api/actions-api.d.ts +309 -1
  11. package/dist/dts/workspace-elements/api/index.d.ts +1 -2
  12. package/dist/dts/workspace-elements/api/{scenarios-api.d.ts → packages-api.d.ts} +8 -7
  13. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +14 -9
  14. package/dist/dts/workspace-elements/base/actions/index.d.ts +46 -0
  15. package/dist/dts/workspace-elements/base/index.d.ts +1 -2
  16. package/dist/dts/workspace-elements/base/{scenarios → packages}/index.d.ts +8 -8
  17. package/dist/dts/workspace-elements/types.d.ts +7 -1
  18. package/dist/index.browser.d.mts +889 -644
  19. package/dist/index.browser.d.ts +889 -644
  20. package/dist/index.browser.js +85 -80
  21. package/dist/index.browser.js.map +1 -1
  22. package/dist/index.browser.mjs +75 -74
  23. package/dist/index.browser.mjs.map +1 -1
  24. package/dist/index.node.d.mts +889 -644
  25. package/dist/index.node.d.ts +889 -644
  26. package/dist/index.node.js +85 -80
  27. package/dist/index.node.js.map +1 -1
  28. package/dist/index.node.mjs +75 -74
  29. package/dist/index.node.mjs.map +1 -1
  30. package/package.json +2 -2
  31. 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,362 +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
- reset(): Promise<any>;
436
- }
437
- declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
438
- client: MembraneApiClient;
439
- integrationSelector: string;
440
- actionSelector: string;
441
- constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
442
- }
443
- declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<Action, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
444
- client: MembraneApiClient;
445
- integrationSelector: string;
446
- constructor(client: MembraneApiClient, integrationSelector: string);
447
- }
448
-
449
- interface OpenConfigurationOptions {
450
- onClose?: (...args: any[]) => void;
451
- showPoweredBy?: boolean;
452
- }
453
-
454
- type InstanceKeyQuery = {
455
- instanceKey?: string;
456
- };
457
-
458
- declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
459
- protected client: MembraneApiClient;
460
- protected connectionSelector: string;
461
- protected selector: string;
462
- protected elementKey: string;
463
- protected query: Record<string, any>;
464
- protected endpoint: string;
465
- constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
466
- protected uri(path?: string, query?: {}): string;
467
- getUniqueIdentifier(): string;
468
- get(query?: {
469
- autoCreate?: boolean;
470
- }): Promise<Element>;
471
- create(): Promise<Element>;
472
- patch(data: Partial<UpdateElement>): Promise<Element>;
473
- put(data: UpdateElement): Promise<Element>;
474
- archive(): Promise<void>;
475
- reset(): Promise<Element>;
476
- setup(): Promise<Element>;
477
- }
478
- declare class ConnectionLevelElementsListAccessor<Element, Query> {
479
- protected client: MembraneApiClient;
480
- protected connectionSelector: string;
481
- protected elementKey: string;
482
- constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
483
- list(query?: Query): Promise<PaginationResponse<Element[]>>;
484
- }
485
-
486
- declare const FindConnectionsQuery: z.ZodObject<{
487
- userId: z.ZodOptional<z.ZodString>;
488
- isTest: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
489
- integrationKey: z.ZodOptional<z.ZodString>;
490
- integrationId: z.ZodOptional<z.ZodString>;
491
- includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
492
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
493
- cursor: z.ZodOptional<z.ZodString>;
494
- }, z.core.$strip>;
495
- type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
496
- declare const CreateConnectionRequest: z.ZodObject<{
497
- name: z.ZodString;
498
- integrationId: z.ZodString;
499
- credentials: z.ZodOptional<z.ZodString>;
500
- }, z.core.$strip>;
501
- type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
502
- declare const UpdateConnectionRequest: z.ZodObject<{
503
- name: z.ZodOptional<z.ZodString>;
504
- credentials: z.ZodOptional<z.ZodString>;
505
- accessToken: z.ZodOptional<z.ZodString>;
506
- }, z.core.$strip>;
507
- type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
508
- declare class FindConnectionsResponse extends PaginationResponse<Connection> {
509
- }
510
- declare const ConnectionSelector: z.ZodObject<{
511
- id: z.ZodOptional<z.ZodString>;
512
- integrationKey: z.ZodOptional<z.ZodString>;
513
- integrationId: z.ZodOptional<z.ZodString>;
514
- connectionId: z.ZodOptional<z.ZodString>;
515
- }, z.core.$strip>;
516
- type ConnectionSelector = z.infer<typeof ConnectionSelector>;
517
- declare const ConnectionApiResponse: z.ZodObject<{
518
- id: z.ZodString;
519
- name: z.ZodString;
520
- userId: z.ZodString;
521
- isTest: z.ZodOptional<z.ZodBoolean>;
522
- disconnected: z.ZodOptional<z.ZodBoolean>;
523
- isDefunct: z.ZodOptional<z.ZodBoolean>;
524
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
525
- error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
526
- integrationId: z.ZodString;
527
- authOptionKey: z.ZodOptional<z.ZodString>;
528
- createdAt: z.ZodString;
529
- updatedAt: z.ZodString;
530
- lastActiveAt: z.ZodOptional<z.ZodString>;
531
- 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>;
532
265
  archivedAt: z.ZodOptional<z.ZodString>;
533
266
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
534
267
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -585,93 +318,20 @@ declare const ConnectionApiResponse: z.ZodObject<{
585
318
  "client-credentials": "client-credentials";
586
319
  }>>;
587
320
  }, z.core.$strip>>;
321
+ credentials: z.ZodOptional<z.ZodUnknown>;
322
+ parameters: z.ZodOptional<z.ZodUnknown>;
323
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
588
324
  }, z.core.$strip>;
589
- type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
590
- declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
591
- id: z.ZodString;
592
- name: z.ZodString;
593
- userId: z.ZodString;
594
- isTest: z.ZodOptional<z.ZodBoolean>;
595
- disconnected: z.ZodOptional<z.ZodBoolean>;
596
- isDefunct: z.ZodOptional<z.ZodBoolean>;
597
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
598
- error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
599
- integrationId: z.ZodString;
600
- authOptionKey: z.ZodOptional<z.ZodString>;
601
- createdAt: z.ZodString;
602
- updatedAt: z.ZodString;
603
- lastActiveAt: z.ZodOptional<z.ZodString>;
604
- nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
605
- archivedAt: z.ZodOptional<z.ZodString>;
606
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
607
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
608
- 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<{
609
332
  id: z.ZodString;
610
333
  name: z.ZodString;
611
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
612
- internalId: z.ZodString;
613
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
614
- credentials: z.ZodOptional<z.ZodAny>;
615
- lastActiveAt: z.ZodOptional<z.ZodString>;
616
- isTest: z.ZodOptional<z.ZodBoolean>;
617
- isBillable: z.ZodOptional<z.ZodBoolean>;
618
- createdAt: z.ZodOptional<z.ZodString>;
619
- archivedAt: z.ZodOptional<z.ZodString>;
620
- }, z.core.$strip>>;
621
- integration: z.ZodOptional<z.ZodObject<{
622
- id: z.ZodString;
623
- key: z.ZodOptional<z.ZodString>;
624
- uuid: z.ZodOptional<z.ZodString>;
625
- description: z.ZodOptional<z.ZodString>;
626
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
627
- name: z.ZodString;
628
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
629
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
630
- revision: z.ZodOptional<z.ZodString>;
631
- createdAt: z.ZodOptional<z.ZodString>;
632
- updatedAt: z.ZodOptional<z.ZodString>;
633
- logoUri: z.ZodString;
634
- connectorId: z.ZodOptional<z.ZodString>;
635
- connectorVersion: z.ZodOptional<z.ZodString>;
636
- oAuthCallbackUri: z.ZodOptional<z.ZodString>;
637
- parameters: z.ZodOptional<z.ZodAny>;
638
- archivedAt: z.ZodOptional<z.ZodString>;
639
- hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
640
- hasDocumentation: z.ZodOptional<z.ZodBoolean>;
641
- hasOperations: z.ZodOptional<z.ZodBoolean>;
642
- operationsCount: z.ZodOptional<z.ZodNumber>;
643
- hasData: z.ZodOptional<z.ZodBoolean>;
644
- dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
645
- hasEvents: z.ZodOptional<z.ZodBoolean>;
646
- eventsCount: z.ZodOptional<z.ZodNumber>;
647
- hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
648
- hasUdm: z.ZodOptional<z.ZodBoolean>;
649
- isTest: z.ZodOptional<z.ZodBoolean>;
650
- appUuid: z.ZodOptional<z.ZodString>;
651
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
652
- authType: z.ZodOptional<z.ZodEnum<{
653
- proxy: "proxy";
654
- "integration-app-token": "integration-app-token";
655
- "membrane-token": "membrane-token";
656
- oauth2: "oauth2";
657
- oauth1: "oauth1";
658
- "client-credentials": "client-credentials";
659
- }>>;
660
- }, z.core.$strip>>;
661
- credentials: z.ZodOptional<z.ZodUnknown>;
662
- parameters: z.ZodOptional<z.ZodUnknown>;
663
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
664
- }, z.core.$strip>;
665
- type ConnectionApiResponseWithSecrets = z.infer<typeof ConnectionApiResponseWithSecrets>;
666
- type Connection = ConnectionApiResponse;
667
- declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
668
- source: z.ZodString;
669
- requestId: z.ZodString;
670
- type: z.ZodLiteral<"newConnectionCreated">;
671
- connection: z.ZodObject<{
672
- id: z.ZodString;
673
- name: z.ZodString;
674
- userId: z.ZodString;
334
+ userId: z.ZodString;
675
335
  isTest: z.ZodOptional<z.ZodBoolean>;
676
336
  disconnected: z.ZodOptional<z.ZodBoolean>;
677
337
  isDefunct: z.ZodOptional<z.ZodBoolean>;
@@ -749,12 +409,111 @@ declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
749
409
  }, z.core.$strip>], "type">;
750
410
  type ConnectionMessagePayload = z.infer<typeof ConnectionMessagePayload>;
751
411
 
752
- 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<{
753
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<{
754
510
  key: z.ZodOptional<z.ZodString>;
511
+ name: z.ZodOptional<z.ZodString>;
755
512
  uuid: z.ZodOptional<z.ZodString>;
756
513
  description: z.ZodOptional<z.ZodString>;
757
514
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
515
+ }, z.core.$strip>;
516
+ declare const BaseMembraneInterfaceReadOnlyProperties: z.ZodObject<{
758
517
  name: z.ZodString;
759
518
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
760
519
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
@@ -763,83 +522,238 @@ declare const ActionInstanceApiResponse: z.ZodObject<{
763
522
  updatedAt: z.ZodOptional<z.ZodString>;
764
523
  archivedAt: z.ZodOptional<z.ZodString>;
765
524
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
525
+ }, z.core.$strip>;
526
+ declare const BaseMembraneInterface: z.ZodObject<{
527
+ id: z.ZodString;
528
+ key: z.ZodOptional<z.ZodString>;
529
+ uuid: z.ZodOptional<z.ZodString>;
530
+ description: z.ZodOptional<z.ZodString>;
531
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
532
+ name: z.ZodString;
533
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
534
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
535
+ revision: z.ZodOptional<z.ZodString>;
536
+ createdAt: z.ZodOptional<z.ZodString>;
537
+ updatedAt: z.ZodOptional<z.ZodString>;
538
+ archivedAt: z.ZodOptional<z.ZodString>;
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>;
766
549
  parentId: z.ZodOptional<z.ZodString>;
767
- universalParentId: z.ZodOptional<z.ZodString>;
768
- 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>;
769
565
  instanceKey: z.ZodOptional<z.ZodString>;
770
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
771
- inputSchema: z.ZodOptional<z.ZodAny>;
772
- config: z.ZodOptional<z.ZodAny>;
773
- outputSchema: z.ZodOptional<z.ZodAny>;
774
- user: z.ZodOptional<z.ZodObject<{
775
- id: z.ZodString;
776
- name: z.ZodString;
777
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
778
- internalId: z.ZodString;
779
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
780
- credentials: z.ZodOptional<z.ZodAny>;
781
- lastActiveAt: z.ZodOptional<z.ZodString>;
782
- isTest: z.ZodOptional<z.ZodBoolean>;
783
- isBillable: z.ZodOptional<z.ZodBoolean>;
784
- createdAt: z.ZodOptional<z.ZodString>;
785
- archivedAt: z.ZodOptional<z.ZodString>;
786
- }, z.core.$strip>>;
787
- parent: z.ZodOptional<z.ZodObject<{
788
- id: z.ZodString;
789
- key: z.ZodOptional<z.ZodString>;
790
- uuid: z.ZodOptional<z.ZodString>;
791
- description: z.ZodOptional<z.ZodString>;
792
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
793
- integrationId: z.ZodOptional<z.ZodString>;
794
- parentId: z.ZodOptional<z.ZodString>;
795
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
796
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
797
- config: z.ZodOptional<z.ZodAny>;
798
- outputMapping: z.ZodOptional<z.ZodAny>;
799
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
800
- name: z.ZodString;
801
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
802
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
803
- revision: z.ZodOptional<z.ZodString>;
804
- createdAt: z.ZodOptional<z.ZodString>;
805
- updatedAt: z.ZodOptional<z.ZodString>;
806
- archivedAt: z.ZodOptional<z.ZodString>;
807
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
808
- isCustomized: z.ZodOptional<z.ZodBoolean>;
809
- }, z.core.$strip>>;
810
566
  }, z.core.$strip>;
811
- type ActionInstanceApiResponse = z.infer<typeof ActionInstanceApiResponse>;
812
- type ActionInstance = ActionInstanceApiResponse;
813
- 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[]>>;
814
756
  }
815
- declare const ListActionInstancesForConnectionQuery: z.ZodObject<{
816
- parentId: z.ZodOptional<z.ZodString>;
817
- universalParentId: z.ZodOptional<z.ZodString>;
818
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
819
- cursor: z.ZodOptional<z.ZodString>;
820
- }, z.core.$strip>;
821
- type ListActionInstancesForConnectionQuery = z.infer<typeof ListActionInstancesForConnectionQuery>;
822
- declare const FindActionInstancesQuery: z.ZodObject<{
823
- parentId: z.ZodOptional<z.ZodString>;
824
- universalParentId: z.ZodOptional<z.ZodString>;
825
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
826
- cursor: z.ZodOptional<z.ZodString>;
827
- integrationKey: z.ZodOptional<z.ZodString>;
828
- integrationId: z.ZodOptional<z.ZodString>;
829
- userId: z.ZodOptional<z.ZodString>;
830
- connectionId: z.ZodOptional<z.ZodString>;
831
- }, z.core.$strip>;
832
- type FindActionInstancesQuery = z.infer<typeof FindActionInstancesQuery>;
833
- declare const CreateActionInstanceRequest: z.ZodObject<{
834
- parentId: z.ZodString;
835
- connectionId: z.ZodString;
836
- config: z.ZodOptional<z.ZodAny>;
837
- }, z.core.$strip>;
838
- type CreateActionInstanceRequest = z.infer<typeof CreateActionInstanceRequest>;
839
- declare const UpdateActionInstanceRequest: z.ZodObject<{
840
- config: z.ZodOptional<z.ZodAny>;
841
- }, z.core.$strip>;
842
- type UpdateActionInstanceRequest = z.infer<typeof UpdateActionInstanceRequest>;
843
757
 
844
758
  interface OpenActionConfigurationOptions extends OpenConfigurationOptions {
845
759
  }
@@ -5307,13 +5221,13 @@ interface IntegrationElementInstanceDependency {
5307
5221
  data?: any;
5308
5222
  }
5309
5223
 
5310
- declare const ScenarioElementApi: z.ZodObject<{
5224
+ declare const PackageElementApi: z.ZodObject<{
5311
5225
  id: z.ZodString;
5312
5226
  type: z.ZodEnum<typeof IntegrationElementType>;
5313
5227
  element: z.ZodOptional<z.ZodAny>;
5314
5228
  }, z.core.$strip>;
5315
- type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
5316
- declare const FindScenariosQuery: z.ZodObject<{
5229
+ type PackageElementApi = z.infer<typeof PackageElementApi>;
5230
+ declare const FindPackagesQuery: z.ZodObject<{
5317
5231
  integrationId: z.ZodOptional<z.ZodString>;
5318
5232
  integrationKey: z.ZodOptional<z.ZodString>;
5319
5233
  parentId: z.ZodOptional<z.ZodString>;
@@ -5322,8 +5236,8 @@ declare const FindScenariosQuery: z.ZodObject<{
5322
5236
  cursor: z.ZodOptional<z.ZodString>;
5323
5237
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
5324
5238
  }, z.core.$strip>;
5325
- type FindScenariosQuery = z.infer<typeof FindScenariosQuery>;
5326
- declare const ScenarioApiResponse: z.ZodObject<{
5239
+ type FindPackagesQuery = z.infer<typeof FindPackagesQuery>;
5240
+ declare const PackageApiResponse: z.ZodObject<{
5327
5241
  id: z.ZodString;
5328
5242
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
5329
5243
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
@@ -5413,15 +5327,18 @@ declare const ScenarioApiResponse: z.ZodObject<{
5413
5327
  }, z.core.$strip>;
5414
5328
  }, z.core.$strip>>>;
5415
5329
  }, z.core.$strip>;
5416
- type ScenarioApiResponse = z.infer<typeof ScenarioApiResponse>;
5417
- type Scenario = ScenarioApiResponse;
5330
+ type PackageApiResponse = z.infer<typeof PackageApiResponse>;
5331
+ type Package = PackageApiResponse;
5332
+ type Scenario = PackageApiResponse;
5418
5333
 
5419
- declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, ScenarioEditableProperties> {
5334
+ declare class PackagesAccessor extends ElementListAccessor<PackageApiResponse, FindPackagesQuery, PackageEditableProperties> {
5420
5335
  constructor(client: MembraneApiClient);
5421
5336
  }
5422
- declare class ScenarioAccessor extends ElementAccessor<Scenario, Partial<ScenarioEditableProperties>> {
5337
+ declare class PackageAccessor extends ElementAccessor<PackageApiResponse, Partial<PackageEditableProperties>> {
5423
5338
  constructor(client: MembraneApiClient, selector: string);
5424
5339
  }
5340
+ declare const ScenariosAccessor: typeof PackagesAccessor;
5341
+ declare const ScenarioAccessor: typeof PackageAccessor;
5425
5342
 
5426
5343
  declare enum ScreenType {
5427
5344
  Integration = "integration"
@@ -6349,33 +6266,309 @@ declare const ExternalEvent: z.ZodObject<{
6349
6266
  }, z.core.$strip>;
6350
6267
  }, z.core.$strip>>>;
6351
6268
  }, z.core.$strip>;
6352
- type ExternalEvent = z.infer<typeof ExternalEvent>;
6353
- type ExternalEventApiResponse = ExternalEvent;
6354
-
6355
- declare class ExternalEventSubscriptionsAccessor extends ElementInstanceListAccessor<ExternalEventSubscription, FindExternalEventSubscriptionsQuery> {
6356
- constructor(client: MembraneApiClient);
6357
- }
6358
- declare class ExternalEventSubscriptionAccessor {
6359
- private client;
6360
- private id;
6361
- constructor(client: MembraneApiClient, id: string);
6362
- get(): Promise<ExternalEventSubscription>;
6363
- setup(): Promise<void>;
6364
- subscribe(): Promise<void>;
6365
- unsubscribe(): Promise<void>;
6366
- resubscribe(): Promise<void>;
6367
- pullEvents(): Promise<void>;
6368
- private getPath;
6369
- }
6370
-
6371
- 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<{
6372
6563
  id: z.ZodString;
6373
6564
  key: z.ZodOptional<z.ZodString>;
6374
6565
  uuid: z.ZodOptional<z.ZodString>;
6375
6566
  description: z.ZodOptional<z.ZodString>;
6376
6567
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6377
6568
  integrationId: z.ZodOptional<z.ZodString>;
6569
+ connectionId: z.ZodOptional<z.ZodString>;
6378
6570
  parentId: z.ZodOptional<z.ZodString>;
6571
+ instanceKey: z.ZodOptional<z.ZodString>;
6379
6572
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6380
6573
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6381
6574
  config: z.ZodOptional<z.ZodAny>;
@@ -6390,6 +6583,8 @@ declare const ActionApiResponse: z.ZodObject<{
6390
6583
  archivedAt: z.ZodOptional<z.ZodString>;
6391
6584
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6392
6585
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6586
+ universalParentId: z.ZodOptional<z.ZodString>;
6587
+ userId: z.ZodOptional<z.ZodString>;
6393
6588
  integration: z.ZodOptional<z.ZodObject<{
6394
6589
  id: z.ZodString;
6395
6590
  key: z.ZodOptional<z.ZodString>;
@@ -6430,6 +6625,47 @@ declare const ActionApiResponse: z.ZodObject<{
6430
6625
  "client-credentials": "client-credentials";
6431
6626
  }>>;
6432
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>>;
6433
6669
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
6434
6670
  element: z.ZodObject<{
6435
6671
  id: z.ZodString;
@@ -6438,7 +6674,9 @@ declare const ActionApiResponse: z.ZodObject<{
6438
6674
  description: z.ZodOptional<z.ZodString>;
6439
6675
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6440
6676
  integrationId: z.ZodOptional<z.ZodString>;
6677
+ connectionId: z.ZodOptional<z.ZodString>;
6441
6678
  parentId: z.ZodOptional<z.ZodString>;
6679
+ instanceKey: z.ZodOptional<z.ZodString>;
6442
6680
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6443
6681
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6444
6682
  config: z.ZodOptional<z.ZodAny>;
@@ -6453,6 +6691,9 @@ declare const ActionApiResponse: z.ZodObject<{
6453
6691
  archivedAt: z.ZodOptional<z.ZodString>;
6454
6692
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6455
6693
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6694
+ universalParentId: z.ZodOptional<z.ZodString>;
6695
+ userId: z.ZodOptional<z.ZodString>;
6696
+ outputSchema: z.ZodOptional<z.ZodAny>;
6456
6697
  }, z.core.$strip>;
6457
6698
  integration: z.ZodObject<{
6458
6699
  id: z.ZodString;
@@ -6500,53 +6741,36 @@ declare const ActionApiResponse: z.ZodObject<{
6500
6741
  outputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6501
6742
  dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
6502
6743
  }, z.core.$strip>;
6503
- type ActionApiResponse = z.infer<typeof ActionApiResponse>;
6504
- type Action = ActionApiResponse;
6505
- 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<{
6506
6749
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6507
6750
  cursor: z.ZodOptional<z.ZodString>;
6508
6751
  integrationId: z.ZodOptional<z.ZodString>;
6509
6752
  parentId: z.ZodOptional<z.ZodString>;
6753
+ universalParentId: z.ZodOptional<z.ZodString>;
6510
6754
  integrationKey: z.ZodOptional<z.ZodString>;
6511
6755
  search: z.ZodOptional<z.ZodString>;
6512
6756
  includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
6757
+ userId: z.ZodOptional<z.ZodString>;
6758
+ connectionId: z.ZodOptional<z.ZodString>;
6513
6759
  }, z.core.$strip>;
6514
- type FindActionsQuery = z.infer<typeof FindActionsQuery>;
6515
- declare const CreateActionRequest: z.ZodObject<{
6516
- key: z.ZodOptional<z.ZodString>;
6517
- name: z.ZodOptional<z.ZodString>;
6518
- uuid: z.ZodOptional<z.ZodString>;
6519
- description: z.ZodOptional<z.ZodString>;
6520
- 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>;
6521
6764
  integrationId: z.ZodOptional<z.ZodString>;
6522
6765
  parentId: z.ZodOptional<z.ZodString>;
6523
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6524
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6525
- config: z.ZodOptional<z.ZodAny>;
6526
- outputMapping: z.ZodOptional<z.ZodAny>;
6527
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6528
- }, z.core.$strip>;
6529
- type CreateActionRequest = z.infer<typeof CreateActionRequest>;
6530
- declare const UpdateActionRequest: z.ZodObject<{
6531
- key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6532
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6533
- uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6534
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6535
- meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6536
- integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6537
- parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6538
- inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6539
- type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof ActionType>>>;
6540
- config: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6541
- outputMapping: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6542
- customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
6543
- }, z.core.$strip>;
6544
- type UpdateActionRequest = z.infer<typeof UpdateActionRequest>;
6545
- declare const ActionRunResponse: z.ZodObject<{
6546
- output: z.ZodOptional<z.ZodAny>;
6547
- 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>;
6548
6772
  }, z.core.$strip>;
6549
- type ActionRunResponse = z.infer<typeof ActionRunResponse>;
6773
+ type FindActionInstancesQuery = FindActionsQuery;
6550
6774
  interface ActionSelector extends IntegrationSpecificElementSelector {
6551
6775
  }
6552
6776
 
@@ -6588,7 +6812,9 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
6588
6812
  description: z.ZodOptional<z.ZodString>;
6589
6813
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6590
6814
  integrationId: z.ZodOptional<z.ZodString>;
6815
+ connectionId: z.ZodOptional<z.ZodString>;
6591
6816
  parentId: z.ZodOptional<z.ZodString>;
6817
+ instanceKey: z.ZodOptional<z.ZodString>;
6592
6818
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
6593
6819
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
6594
6820
  config: z.ZodOptional<z.ZodAny>;
@@ -6603,6 +6829,9 @@ declare const ActionRunLogRecordApiResponse: z.ZodObject<{
6603
6829
  archivedAt: z.ZodOptional<z.ZodString>;
6604
6830
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
6605
6831
  isCustomized: z.ZodOptional<z.ZodBoolean>;
6832
+ universalParentId: z.ZodOptional<z.ZodString>;
6833
+ userId: z.ZodOptional<z.ZodString>;
6834
+ outputSchema: z.ZodOptional<z.ZodAny>;
6606
6835
  }, z.core.$strip>>;
6607
6836
  integration: z.ZodOptional<z.ZodObject<{
6608
6837
  id: z.ZodString;
@@ -8286,9 +8515,12 @@ interface OrgWorkspace {
8286
8515
  declare enum WebhookTypeEnum {
8287
8516
  USER_INVITED_TO_ORG = "user-invited-to-org",
8288
8517
  ORG_ACCESS_REQUESTED = "org-access-requested",
8289
- 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"
8290
8522
  }
8291
- 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;
8292
8524
  interface Webhook {
8293
8525
  type: WebhookType;
8294
8526
  url: string;
@@ -8304,7 +8536,9 @@ declare enum AlertSeverity {
8304
8536
  WARNING = "warning"
8305
8537
  }
8306
8538
  declare enum AlertType {
8307
- externalEventsPerCustomerPerDay = "externalEventsPerCustomerPerDay"
8539
+ externalEventsPerCustomerPerDay = "externalEventsPerCustomerPerDay",
8540
+ totalUsagePerDay = "totalUsagePerDay",
8541
+ totalUsagePer30Days = "totalUsagePer30Days"
8308
8542
  }
8309
8543
  interface Alert {
8310
8544
  id: string;
@@ -8588,8 +8822,8 @@ declare class MembraneClient extends MembraneApiClient {
8588
8822
  appDataSchemaInstance(selector: string | AppDataSchemaInstanceSelector): AppDataSchemaInstanceAccessor;
8589
8823
  customer(selector: string | CustomerSelector): CustomerAccessor;
8590
8824
  get customers(): CustomersAccessor;
8591
- scenario(selector: string): ScenarioAccessor;
8592
- get scenarios(): ScenariosAccessor;
8825
+ package(selector: string): PackageAccessor;
8826
+ get packages(): PackagesAccessor;
8593
8827
  createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
8594
8828
  connectionRequest(connectionId: string, uri: string, data?: any): Promise<any>;
8595
8829
  }
@@ -8620,6 +8854,16 @@ interface ActionSpec {
8620
8854
  declare function isDataActionType(type: string | ActionType): any;
8621
8855
  declare const ACTIONS: Record<ActionType, ActionSpec>;
8622
8856
 
8857
+ declare enum ActionDependencyType {
8858
+ FieldMapping = "FieldMapping",
8859
+ DataSource = "DataSource"
8860
+ }
8861
+ declare const ActionDependency: z.ZodObject<{
8862
+ type: z.ZodEnum<typeof ActionDependencyType>;
8863
+ key: z.ZodString;
8864
+ element: z.ZodOptional<z.ZodAny>;
8865
+ }, z.core.$strip>;
8866
+ type ActionDependency = z.infer<typeof ActionDependency>;
8623
8867
  declare const ActionEditableProperties: z.ZodObject<{
8624
8868
  key: z.ZodOptional<z.ZodString>;
8625
8869
  name: z.ZodOptional<z.ZodString>;
@@ -8627,7 +8871,9 @@ declare const ActionEditableProperties: z.ZodObject<{
8627
8871
  description: z.ZodOptional<z.ZodString>;
8628
8872
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8629
8873
  integrationId: z.ZodOptional<z.ZodString>;
8874
+ connectionId: z.ZodOptional<z.ZodString>;
8630
8875
  parentId: z.ZodOptional<z.ZodString>;
8876
+ instanceKey: z.ZodOptional<z.ZodString>;
8631
8877
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8632
8878
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8633
8879
  config: z.ZodOptional<z.ZodAny>;
@@ -8642,7 +8888,9 @@ declare const BaseAction: z.ZodObject<{
8642
8888
  description: z.ZodOptional<z.ZodString>;
8643
8889
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8644
8890
  integrationId: z.ZodOptional<z.ZodString>;
8891
+ connectionId: z.ZodOptional<z.ZodString>;
8645
8892
  parentId: z.ZodOptional<z.ZodString>;
8893
+ instanceKey: z.ZodOptional<z.ZodString>;
8646
8894
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8647
8895
  type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8648
8896
  config: z.ZodOptional<z.ZodAny>;
@@ -8657,8 +8905,40 @@ declare const BaseAction: z.ZodObject<{
8657
8905
  archivedAt: z.ZodOptional<z.ZodString>;
8658
8906
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
8659
8907
  isCustomized: z.ZodOptional<z.ZodBoolean>;
8908
+ universalParentId: z.ZodOptional<z.ZodString>;
8909
+ userId: z.ZodOptional<z.ZodString>;
8910
+ outputSchema: z.ZodOptional<z.ZodAny>;
8660
8911
  }, z.core.$strip>;
8661
8912
  type BaseAction = z.infer<typeof BaseAction>;
8913
+ declare const BaseActionInstance: z.ZodObject<{
8914
+ id: z.ZodString;
8915
+ key: z.ZodOptional<z.ZodString>;
8916
+ uuid: z.ZodOptional<z.ZodString>;
8917
+ description: z.ZodOptional<z.ZodString>;
8918
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8919
+ integrationId: z.ZodOptional<z.ZodString>;
8920
+ connectionId: z.ZodOptional<z.ZodString>;
8921
+ parentId: z.ZodOptional<z.ZodString>;
8922
+ instanceKey: z.ZodOptional<z.ZodString>;
8923
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8924
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
8925
+ config: z.ZodOptional<z.ZodAny>;
8926
+ outputMapping: z.ZodOptional<z.ZodAny>;
8927
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
8928
+ name: z.ZodString;
8929
+ state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
8930
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
8931
+ revision: z.ZodOptional<z.ZodString>;
8932
+ createdAt: z.ZodOptional<z.ZodString>;
8933
+ updatedAt: z.ZodOptional<z.ZodString>;
8934
+ archivedAt: z.ZodOptional<z.ZodString>;
8935
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
8936
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
8937
+ universalParentId: z.ZodOptional<z.ZodString>;
8938
+ userId: z.ZodOptional<z.ZodString>;
8939
+ outputSchema: z.ZodOptional<z.ZodAny>;
8940
+ }, z.core.$strip>;
8941
+ type BaseActionInstance = BaseAction;
8662
8942
 
8663
8943
  declare const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS: number;
8664
8944
  declare const DEFAULT_FULL_SYNC_INTERVAL_SECONDS: number;
@@ -9110,13 +9390,13 @@ declare const AppliedToIntegrations: <Element extends z.ZodType>(elementSchema:
9110
9390
  }, z.core.$strip>>;
9111
9391
  type AppliedToIntegrations<Element> = z.infer<ReturnType<typeof AppliedToIntegrations<z.ZodType<Element>>>>;
9112
9392
 
9113
- declare const ScenarioElement: z.ZodObject<{
9393
+ declare const PackageElement: z.ZodObject<{
9114
9394
  id: z.ZodString;
9115
9395
  type: z.ZodEnum<typeof IntegrationElementType>;
9116
9396
  element: z.ZodOptional<z.ZodAny>;
9117
9397
  }, z.core.$strip>;
9118
- type ScenarioElement = z.infer<typeof ScenarioElement>;
9119
- declare const ScenarioEditableProperties: z.ZodObject<{
9398
+ type PackageElement = z.infer<typeof PackageElement>;
9399
+ declare const PackageEditableProperties: z.ZodObject<{
9120
9400
  key: z.ZodOptional<z.ZodString>;
9121
9401
  name: z.ZodOptional<z.ZodString>;
9122
9402
  uuid: z.ZodOptional<z.ZodString>;
@@ -9131,14 +9411,14 @@ declare const ScenarioEditableProperties: z.ZodObject<{
9131
9411
  integrationId: z.ZodOptional<z.ZodString>;
9132
9412
  parentId: z.ZodOptional<z.ZodString>;
9133
9413
  }, z.core.$strip>;
9134
- type ScenarioEditableProperties = z.infer<typeof ScenarioEditableProperties>;
9135
- declare const ScenarioCalculatedProperties: z.ZodObject<{
9414
+ type PackageEditableProperties = z.infer<typeof PackageEditableProperties>;
9415
+ declare const PackageCalculatedProperties: z.ZodObject<{
9136
9416
  key: z.ZodString;
9137
9417
  name: z.ZodString;
9138
9418
  isCustomized: z.ZodOptional<z.ZodBoolean>;
9139
9419
  }, z.core.$strip>;
9140
- type ScenarioCalculatedProperties = z.infer<typeof ScenarioCalculatedProperties>;
9141
- declare const BaseScenario: z.ZodObject<{
9420
+ type PackageCalculatedProperties = z.infer<typeof PackageCalculatedProperties>;
9421
+ declare const BasePackage: z.ZodObject<{
9142
9422
  id: z.ZodString;
9143
9423
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
9144
9424
  errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
@@ -9162,7 +9442,7 @@ declare const BaseScenario: z.ZodObject<{
9162
9442
  name: z.ZodString;
9163
9443
  isCustomized: z.ZodOptional<z.ZodBoolean>;
9164
9444
  }, z.core.$strip>;
9165
- type BaseScenario = z.infer<typeof BaseScenario>;
9445
+ type BasePackage = z.infer<typeof BasePackage>;
9166
9446
 
9167
9447
  declare const BaseCustomer: z.ZodObject<{
9168
9448
  id: z.ZodString;
@@ -9243,41 +9523,6 @@ declare const FlowInstanceNode: z.ZodObject<{
9243
9523
  }, z.core.$strip>;
9244
9524
  type FlowInstanceNode = z.infer<typeof FlowInstanceNode>;
9245
9525
 
9246
- declare enum ActionDependencyType {
9247
- FieldMapping = "FieldMapping",
9248
- DataSource = "DataSource"
9249
- }
9250
- declare const ActionDependency: z.ZodObject<{
9251
- type: z.ZodEnum<typeof ActionDependencyType>;
9252
- key: z.ZodString;
9253
- element: z.ZodOptional<z.ZodAny>;
9254
- }, z.core.$strip>;
9255
- type ActionDependency = z.infer<typeof ActionDependency>;
9256
- declare const BaseActionInstance: z.ZodObject<{
9257
- id: z.ZodString;
9258
- key: z.ZodOptional<z.ZodString>;
9259
- uuid: z.ZodOptional<z.ZodString>;
9260
- description: z.ZodOptional<z.ZodString>;
9261
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9262
- name: z.ZodString;
9263
- state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
9264
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
9265
- revision: z.ZodOptional<z.ZodString>;
9266
- createdAt: z.ZodOptional<z.ZodString>;
9267
- updatedAt: z.ZodOptional<z.ZodString>;
9268
- archivedAt: z.ZodOptional<z.ZodString>;
9269
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
9270
- parentId: z.ZodOptional<z.ZodString>;
9271
- universalParentId: z.ZodOptional<z.ZodString>;
9272
- userId: z.ZodString;
9273
- instanceKey: z.ZodOptional<z.ZodString>;
9274
- type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
9275
- inputSchema: z.ZodOptional<z.ZodAny>;
9276
- config: z.ZodOptional<z.ZodAny>;
9277
- outputSchema: z.ZodOptional<z.ZodAny>;
9278
- }, z.core.$strip>;
9279
- type BaseActionInstance = z.infer<typeof BaseActionInstance>;
9280
-
9281
9526
  declare const BaseFieldMappingInstance: z.ZodObject<{
9282
9527
  id: z.ZodString;
9283
9528
  key: z.ZodOptional<z.ZodString>;
@@ -9387,5 +9632,5 @@ declare function getParentNodeKeys(flow: Flow | FlowInstance, nodeKey: string):
9387
9632
  declare function getUpstreamNodeKeys(flow: Flow | FlowInstance, nodeKey: string): string[];
9388
9633
  declare function hasCycles(nodes?: Record<string, FlowNode>): boolean;
9389
9634
 
9390
- 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, 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, 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, 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, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, 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 };
9391
- 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, LogRecord, LookupValue, MapFormulaValue, MappingItem, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgLimits, OrgUser, OrgWorkspace, 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 };
9635
+ 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, 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, 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, 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, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, 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 };
9636
+ 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, LogRecord, LookupValue, MapFormulaValue, MappingItem, OpenActionConfigurationOptions, OpenDataSourceConfigurationOptions, OpenFieldMappingInstanceConfigurationOptions, OpenFlowInstanceConfigurationOptions, OpenFlowInstanceEditorOptions, OpenFlowRunEditorOptions, OpenNewConnectionOptions, OpenapiMapping, OperationListItem, OperationMapping, OperationRunRequest, OperationRunResponse, OperationSpec, Org, OrgLimits, OrgUser, OrgWorkspace, Package, PatchSchemaOption, PlatformUser, PullLatestRecordsEventOutput, ResolveFormulaParams, RestApiClientConstructorOptions, RestApiClientInput, RestApiClientOptions, RestApiClientOutput, RestApiClientOverride, RestApiClientResponseHandler, RestApiMapping, RunFlowOptions, Scenario, ScenarioTemplateElementOverride, ScenarioTemplateElementsApi, ScenarioTemplateIntegration, ScenarioTemplateKeyCollision, Screen, ScreenBlockApi, ScreenSelector, Self, UnifiedDataModel, UpdateAppDataSchemaInstanceRequest, UpdateAppDataSchemaRequest, UpdateAppEventSubscriptionRequest, UpdateAppEventTypeRequest, UpdateDataLinkTableInstanceRequest, UpdateDataLinkTableRequest, UpdateFieldMappingInstanceRequest, UpdateFlowInstanceRequest, UpdateScenarioTemplateRequest, UpdateScreenRequest, UpdateUserRequest, UpstreamFlowNodeRun, UsageEntry, UsageWithCredits, User, UserSelector, UserWorkspaceSettings, ValueToSchemaOptions, Webhook, WebhookType, WithExecutionLogs, Workspace, WorkspaceElementCalculateStateResult, WorkspaceElementDependency, WorkspaceElementReference, WorkspaceElementSpec, WorkspaceElements, WorkspaceLimit, WorkspaceLimits, WorkspaceNotification, WorkspaceSyncEvent, WorkspaceUpdate, WorkspaceUser };