@membranehq/sdk 0.5.0 → 0.5.2

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 (69) hide show
  1. package/dist/bundle.d.ts +10513 -4612
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +22 -15
  5. package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +5 -4
  61. package/dist/index.d.ts +20345 -9526
  62. package/dist/index.js +268 -115
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +20345 -9526
  65. package/dist/index.module.mjs +234 -107
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -2,10 +2,10 @@ import { z } from 'zod';
2
2
  import { PaginationResponse } from '../../entity-repository';
3
3
  export declare const FindConnectionsQuery: z.ZodObject<{
4
4
  userId: z.ZodOptional<z.ZodString>;
5
- isTest: z.ZodOptional<z.ZodBoolean>;
5
+ isTest: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
6
6
  integrationKey: z.ZodOptional<z.ZodString>;
7
7
  integrationId: z.ZodOptional<z.ZodString>;
8
- includeArchived: z.ZodOptional<z.ZodBoolean>;
8
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
9
9
  } & {
10
10
  limit: z.ZodOptional<z.ZodNumber>;
11
11
  cursor: z.ZodOptional<z.ZodString>;
@@ -18,13 +18,13 @@ export declare const FindConnectionsQuery: z.ZodObject<{
18
18
  integrationKey?: string | undefined;
19
19
  isTest?: boolean | undefined;
20
20
  }, {
21
- includeArchived?: boolean | undefined;
21
+ includeArchived?: unknown;
22
22
  limit?: number | undefined;
23
23
  cursor?: string | undefined;
24
24
  userId?: string | undefined;
25
25
  integrationId?: string | undefined;
26
26
  integrationKey?: string | undefined;
27
- isTest?: boolean | undefined;
27
+ isTest?: unknown;
28
28
  }>;
29
29
  export type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
30
30
  export declare const CreateConnectionRequest: z.ZodObject<{
@@ -74,26 +74,26 @@ export declare const ConnectionSelector: z.ZodObject<{
74
74
  integrationKey?: string | undefined;
75
75
  }>;
76
76
  export type ConnectionSelector = z.infer<typeof ConnectionSelector>;
77
- export declare const Connection: z.ZodObject<{
77
+ export declare const ConnectionApiResponse: z.ZodObject<{
78
78
  id: z.ZodString;
79
79
  } & {
80
80
  name: z.ZodString;
81
81
  userId: z.ZodString;
82
+ isTest: z.ZodOptional<z.ZodBoolean>;
82
83
  disconnected: z.ZodOptional<z.ZodBoolean>;
84
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
83
85
  error: any;
84
86
  integrationId: z.ZodString;
85
- credentials: z.ZodOptional<z.ZodUnknown>;
86
- parameters: z.ZodOptional<z.ZodUnknown>;
87
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
88
- accessToken: z.ZodOptional<z.ZodString>;
89
- refreshToken: z.ZodOptional<z.ZodString>;
87
+ authOptionKey: z.ZodOptional<z.ZodString>;
90
88
  createdAt: z.ZodString;
91
89
  updatedAt: z.ZodString;
92
90
  lastActiveAt: z.ZodOptional<z.ZodString>;
93
91
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
94
92
  archivedAt: z.ZodOptional<z.ZodString>;
93
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
95
94
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
96
95
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
96
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
97
97
  } & {
98
98
  user: z.ZodOptional<z.ZodObject<{
99
99
  id: z.ZodString;
@@ -104,47 +104,57 @@ export declare const Connection: z.ZodObject<{
104
104
  lastActiveAt: z.ZodOptional<z.ZodString>;
105
105
  isTest: z.ZodOptional<z.ZodBoolean>;
106
106
  isBillable: z.ZodOptional<z.ZodBoolean>;
107
+ createdAt: z.ZodOptional<z.ZodString>;
108
+ archivedAt: z.ZodOptional<z.ZodString>;
107
109
  }, "strip", z.ZodTypeAny, {
108
110
  id: string;
109
111
  name: string;
110
112
  internalId: string;
113
+ createdAt?: string | undefined;
114
+ archivedAt?: string | undefined;
111
115
  credentials?: any;
112
116
  fields?: Record<string, any> | undefined;
113
- lastActiveAt?: string | undefined;
114
117
  isTest?: boolean | undefined;
118
+ lastActiveAt?: string | undefined;
115
119
  isBillable?: boolean | undefined;
116
120
  }, {
117
121
  id: string;
118
122
  name: string;
119
123
  internalId: string;
124
+ createdAt?: string | undefined;
125
+ archivedAt?: string | undefined;
120
126
  credentials?: any;
121
127
  fields?: Record<string, any> | undefined;
122
- lastActiveAt?: string | undefined;
123
128
  isTest?: boolean | undefined;
129
+ lastActiveAt?: string | undefined;
124
130
  isBillable?: boolean | undefined;
125
131
  }>>;
126
132
  integration: z.ZodOptional<z.ZodObject<{
127
133
  id: z.ZodString;
128
134
  name: z.ZodString;
129
- } & {
130
- key: z.ZodString;
135
+ key: z.ZodOptional<z.ZodString>;
136
+ uuid: z.ZodOptional<z.ZodString>;
137
+ description: z.ZodOptional<z.ZodString>;
131
138
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
132
139
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
140
+ revision: z.ZodOptional<z.ZodString>;
141
+ createdAt: z.ZodOptional<z.ZodString>;
142
+ updatedAt: z.ZodOptional<z.ZodString>;
133
143
  } & {
134
144
  logoUri: z.ZodString;
135
145
  connectorId: z.ZodOptional<z.ZodString>;
136
146
  connectorVersion: z.ZodOptional<z.ZodString>;
137
- authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
138
147
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
139
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
140
148
  parameters: z.ZodOptional<z.ZodAny>;
141
- baseUri: z.ZodString;
142
149
  archivedAt: z.ZodOptional<z.ZodString>;
143
150
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
144
151
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
145
152
  hasOperations: z.ZodOptional<z.ZodBoolean>;
153
+ operationsCount: z.ZodOptional<z.ZodNumber>;
146
154
  hasData: z.ZodOptional<z.ZodBoolean>;
155
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
147
156
  hasEvents: z.ZodOptional<z.ZodBoolean>;
157
+ eventsCount: z.ZodOptional<z.ZodNumber>;
148
158
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
149
159
  hasUdm: z.ZodOptional<z.ZodBoolean>;
150
160
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -152,173 +162,485 @@ export declare const Connection: z.ZodObject<{
152
162
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
153
163
  authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
154
164
  }, "strip", z.ZodTypeAny, {
155
- key: string;
156
165
  id: string;
157
166
  name: string;
158
- baseUri: string;
159
167
  logoUri: string;
168
+ key?: string | undefined;
169
+ uuid?: string | undefined;
170
+ description?: string | undefined;
160
171
  state?: import("..").WorkspaceElementState | undefined;
161
172
  errors?: any[] | undefined;
162
- parameters?: any;
163
- parametersSchema?: import("../..").DataSchema | undefined;
173
+ revision?: string | undefined;
174
+ isDeactivated?: boolean | undefined;
175
+ createdAt?: string | undefined;
176
+ updatedAt?: string | undefined;
164
177
  archivedAt?: string | undefined;
178
+ parameters?: any;
165
179
  isTest?: boolean | undefined;
166
180
  connectorId?: string | undefined;
167
181
  connectorVersion?: string | undefined;
168
- authOptions?: any[] | undefined;
169
182
  oAuthCallbackUri?: string | undefined;
170
183
  hasMissingParameters?: boolean | undefined;
171
184
  hasDocumentation?: boolean | undefined;
172
185
  hasOperations?: boolean | undefined;
186
+ operationsCount?: number | undefined;
173
187
  hasData?: boolean | undefined;
188
+ dataCollectionsCount?: number | undefined;
174
189
  hasEvents?: boolean | undefined;
190
+ eventsCount?: number | undefined;
175
191
  hasGlobalWebhooks?: boolean | undefined;
176
192
  hasUdm?: boolean | undefined;
177
193
  appUuid?: string | undefined;
178
- isDeactivated?: boolean | undefined;
179
194
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
180
195
  }, {
181
- key: string;
182
196
  id: string;
183
197
  name: string;
184
- baseUri: string;
185
198
  logoUri: string;
199
+ key?: string | undefined;
200
+ uuid?: string | undefined;
201
+ description?: string | undefined;
186
202
  state?: import("..").WorkspaceElementState | undefined;
187
203
  errors?: any[] | undefined;
188
- parameters?: any;
189
- parametersSchema?: import("../..").DataSchema | undefined;
204
+ revision?: string | undefined;
205
+ isDeactivated?: boolean | undefined;
206
+ createdAt?: string | undefined;
207
+ updatedAt?: string | undefined;
190
208
  archivedAt?: string | undefined;
209
+ parameters?: any;
191
210
  isTest?: boolean | undefined;
192
211
  connectorId?: string | undefined;
193
212
  connectorVersion?: string | undefined;
194
- authOptions?: any[] | undefined;
195
213
  oAuthCallbackUri?: string | undefined;
196
214
  hasMissingParameters?: boolean | undefined;
197
215
  hasDocumentation?: boolean | undefined;
198
216
  hasOperations?: boolean | undefined;
217
+ operationsCount?: number | undefined;
199
218
  hasData?: boolean | undefined;
219
+ dataCollectionsCount?: number | undefined;
200
220
  hasEvents?: boolean | undefined;
221
+ eventsCount?: number | undefined;
201
222
  hasGlobalWebhooks?: boolean | undefined;
202
223
  hasUdm?: boolean | undefined;
203
224
  appUuid?: string | undefined;
204
- isDeactivated?: boolean | undefined;
205
225
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
206
226
  }>>;
207
227
  }, "strip", z.ZodTypeAny, {
208
228
  id: string;
209
229
  name: string;
230
+ createdAt: string;
231
+ updatedAt: string;
210
232
  userId: string;
211
233
  integrationId: string;
234
+ error?: any;
235
+ integration?: {
236
+ id: string;
237
+ name: string;
238
+ logoUri: string;
239
+ key?: string | undefined;
240
+ uuid?: string | undefined;
241
+ description?: string | undefined;
242
+ state?: import("..").WorkspaceElementState | undefined;
243
+ errors?: any[] | undefined;
244
+ revision?: string | undefined;
245
+ isDeactivated?: boolean | undefined;
246
+ createdAt?: string | undefined;
247
+ updatedAt?: string | undefined;
248
+ archivedAt?: string | undefined;
249
+ parameters?: any;
250
+ isTest?: boolean | undefined;
251
+ connectorId?: string | undefined;
252
+ connectorVersion?: string | undefined;
253
+ oAuthCallbackUri?: string | undefined;
254
+ hasMissingParameters?: boolean | undefined;
255
+ hasDocumentation?: boolean | undefined;
256
+ hasOperations?: boolean | undefined;
257
+ operationsCount?: number | undefined;
258
+ hasData?: boolean | undefined;
259
+ dataCollectionsCount?: number | undefined;
260
+ hasEvents?: boolean | undefined;
261
+ eventsCount?: number | undefined;
262
+ hasGlobalWebhooks?: boolean | undefined;
263
+ hasUdm?: boolean | undefined;
264
+ appUuid?: string | undefined;
265
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
266
+ } | undefined;
267
+ state?: import("..").WorkspaceElementState | undefined;
268
+ errors?: any[] | undefined;
269
+ isDeactivated?: boolean | undefined;
270
+ archivedAt?: string | undefined;
271
+ authOptionKey?: string | undefined;
272
+ user?: {
273
+ id: string;
274
+ name: string;
275
+ internalId: string;
276
+ createdAt?: string | undefined;
277
+ archivedAt?: string | undefined;
278
+ credentials?: any;
279
+ fields?: Record<string, any> | undefined;
280
+ isTest?: boolean | undefined;
281
+ lastActiveAt?: string | undefined;
282
+ isBillable?: boolean | undefined;
283
+ } | undefined;
284
+ isTest?: boolean | undefined;
285
+ disconnected?: boolean | undefined;
286
+ isDefunct?: boolean | undefined;
287
+ lastActiveAt?: string | undefined;
288
+ nextCredentialsRefreshAt?: string | undefined;
289
+ meta?: Record<string, any> | undefined;
290
+ }, {
291
+ id: string;
292
+ name: string;
212
293
  createdAt: string;
213
294
  updatedAt: string;
295
+ userId: string;
296
+ integrationId: string;
214
297
  error?: any;
215
298
  integration?: {
216
- key: string;
217
299
  id: string;
218
300
  name: string;
219
- baseUri: string;
220
301
  logoUri: string;
302
+ key?: string | undefined;
303
+ uuid?: string | undefined;
304
+ description?: string | undefined;
305
+ state?: import("..").WorkspaceElementState | undefined;
306
+ errors?: any[] | undefined;
307
+ revision?: string | undefined;
308
+ isDeactivated?: boolean | undefined;
309
+ createdAt?: string | undefined;
310
+ updatedAt?: string | undefined;
311
+ archivedAt?: string | undefined;
312
+ parameters?: any;
313
+ isTest?: boolean | undefined;
314
+ connectorId?: string | undefined;
315
+ connectorVersion?: string | undefined;
316
+ oAuthCallbackUri?: string | undefined;
317
+ hasMissingParameters?: boolean | undefined;
318
+ hasDocumentation?: boolean | undefined;
319
+ hasOperations?: boolean | undefined;
320
+ operationsCount?: number | undefined;
321
+ hasData?: boolean | undefined;
322
+ dataCollectionsCount?: number | undefined;
323
+ hasEvents?: boolean | undefined;
324
+ eventsCount?: number | undefined;
325
+ hasGlobalWebhooks?: boolean | undefined;
326
+ hasUdm?: boolean | undefined;
327
+ appUuid?: string | undefined;
328
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
329
+ } | undefined;
330
+ state?: import("..").WorkspaceElementState | undefined;
331
+ errors?: any[] | undefined;
332
+ isDeactivated?: boolean | undefined;
333
+ archivedAt?: string | undefined;
334
+ authOptionKey?: string | undefined;
335
+ user?: {
336
+ id: string;
337
+ name: string;
338
+ internalId: string;
339
+ createdAt?: string | undefined;
340
+ archivedAt?: string | undefined;
341
+ credentials?: any;
342
+ fields?: Record<string, any> | undefined;
343
+ isTest?: boolean | undefined;
344
+ lastActiveAt?: string | undefined;
345
+ isBillable?: boolean | undefined;
346
+ } | undefined;
347
+ isTest?: boolean | undefined;
348
+ disconnected?: boolean | undefined;
349
+ isDefunct?: boolean | undefined;
350
+ lastActiveAt?: string | undefined;
351
+ nextCredentialsRefreshAt?: string | undefined;
352
+ meta?: Record<string, any> | undefined;
353
+ }>;
354
+ export type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
355
+ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
356
+ id: z.ZodString;
357
+ } & {
358
+ name: z.ZodString;
359
+ userId: z.ZodString;
360
+ isTest: z.ZodOptional<z.ZodBoolean>;
361
+ disconnected: z.ZodOptional<z.ZodBoolean>;
362
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
363
+ error: any;
364
+ integrationId: z.ZodString;
365
+ authOptionKey: z.ZodOptional<z.ZodString>;
366
+ createdAt: z.ZodString;
367
+ updatedAt: z.ZodString;
368
+ lastActiveAt: z.ZodOptional<z.ZodString>;
369
+ nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
370
+ archivedAt: z.ZodOptional<z.ZodString>;
371
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
372
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
373
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
374
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
375
+ } & {
376
+ user: z.ZodOptional<z.ZodObject<{
377
+ id: z.ZodString;
378
+ name: z.ZodString;
379
+ internalId: z.ZodString;
380
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
381
+ credentials: z.ZodOptional<z.ZodAny>;
382
+ lastActiveAt: z.ZodOptional<z.ZodString>;
383
+ isTest: z.ZodOptional<z.ZodBoolean>;
384
+ isBillable: z.ZodOptional<z.ZodBoolean>;
385
+ createdAt: z.ZodOptional<z.ZodString>;
386
+ archivedAt: z.ZodOptional<z.ZodString>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ name: string;
390
+ internalId: string;
391
+ createdAt?: string | undefined;
392
+ archivedAt?: string | undefined;
393
+ credentials?: any;
394
+ fields?: Record<string, any> | undefined;
395
+ isTest?: boolean | undefined;
396
+ lastActiveAt?: string | undefined;
397
+ isBillable?: boolean | undefined;
398
+ }, {
399
+ id: string;
400
+ name: string;
401
+ internalId: string;
402
+ createdAt?: string | undefined;
403
+ archivedAt?: string | undefined;
404
+ credentials?: any;
405
+ fields?: Record<string, any> | undefined;
406
+ isTest?: boolean | undefined;
407
+ lastActiveAt?: string | undefined;
408
+ isBillable?: boolean | undefined;
409
+ }>>;
410
+ integration: z.ZodOptional<z.ZodObject<{
411
+ id: z.ZodString;
412
+ name: z.ZodString;
413
+ key: z.ZodOptional<z.ZodString>;
414
+ uuid: z.ZodOptional<z.ZodString>;
415
+ description: z.ZodOptional<z.ZodString>;
416
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
417
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
418
+ revision: z.ZodOptional<z.ZodString>;
419
+ createdAt: z.ZodOptional<z.ZodString>;
420
+ updatedAt: z.ZodOptional<z.ZodString>;
421
+ } & {
422
+ logoUri: z.ZodString;
423
+ connectorId: z.ZodOptional<z.ZodString>;
424
+ connectorVersion: z.ZodOptional<z.ZodString>;
425
+ oAuthCallbackUri: z.ZodOptional<z.ZodString>;
426
+ parameters: z.ZodOptional<z.ZodAny>;
427
+ archivedAt: z.ZodOptional<z.ZodString>;
428
+ hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
429
+ hasDocumentation: z.ZodOptional<z.ZodBoolean>;
430
+ hasOperations: z.ZodOptional<z.ZodBoolean>;
431
+ operationsCount: z.ZodOptional<z.ZodNumber>;
432
+ hasData: z.ZodOptional<z.ZodBoolean>;
433
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
434
+ hasEvents: z.ZodOptional<z.ZodBoolean>;
435
+ eventsCount: z.ZodOptional<z.ZodNumber>;
436
+ hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
437
+ hasUdm: z.ZodOptional<z.ZodBoolean>;
438
+ isTest: z.ZodOptional<z.ZodBoolean>;
439
+ appUuid: z.ZodOptional<z.ZodString>;
440
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
441
+ authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ id: string;
444
+ name: string;
445
+ logoUri: string;
446
+ key?: string | undefined;
447
+ uuid?: string | undefined;
448
+ description?: string | undefined;
221
449
  state?: import("..").WorkspaceElementState | undefined;
222
450
  errors?: any[] | undefined;
451
+ revision?: string | undefined;
452
+ isDeactivated?: boolean | undefined;
453
+ createdAt?: string | undefined;
454
+ updatedAt?: string | undefined;
455
+ archivedAt?: string | undefined;
223
456
  parameters?: any;
224
- parametersSchema?: import("../..").DataSchema | undefined;
457
+ isTest?: boolean | undefined;
458
+ connectorId?: string | undefined;
459
+ connectorVersion?: string | undefined;
460
+ oAuthCallbackUri?: string | undefined;
461
+ hasMissingParameters?: boolean | undefined;
462
+ hasDocumentation?: boolean | undefined;
463
+ hasOperations?: boolean | undefined;
464
+ operationsCount?: number | undefined;
465
+ hasData?: boolean | undefined;
466
+ dataCollectionsCount?: number | undefined;
467
+ hasEvents?: boolean | undefined;
468
+ eventsCount?: number | undefined;
469
+ hasGlobalWebhooks?: boolean | undefined;
470
+ hasUdm?: boolean | undefined;
471
+ appUuid?: string | undefined;
472
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
473
+ }, {
474
+ id: string;
475
+ name: string;
476
+ logoUri: string;
477
+ key?: string | undefined;
478
+ uuid?: string | undefined;
479
+ description?: string | undefined;
480
+ state?: import("..").WorkspaceElementState | undefined;
481
+ errors?: any[] | undefined;
482
+ revision?: string | undefined;
483
+ isDeactivated?: boolean | undefined;
484
+ createdAt?: string | undefined;
485
+ updatedAt?: string | undefined;
225
486
  archivedAt?: string | undefined;
487
+ parameters?: any;
226
488
  isTest?: boolean | undefined;
227
489
  connectorId?: string | undefined;
228
490
  connectorVersion?: string | undefined;
229
- authOptions?: any[] | undefined;
230
491
  oAuthCallbackUri?: string | undefined;
231
492
  hasMissingParameters?: boolean | undefined;
232
493
  hasDocumentation?: boolean | undefined;
233
494
  hasOperations?: boolean | undefined;
495
+ operationsCount?: number | undefined;
234
496
  hasData?: boolean | undefined;
497
+ dataCollectionsCount?: number | undefined;
235
498
  hasEvents?: boolean | undefined;
499
+ eventsCount?: number | undefined;
236
500
  hasGlobalWebhooks?: boolean | undefined;
237
501
  hasUdm?: boolean | undefined;
238
502
  appUuid?: string | undefined;
503
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
504
+ }>>;
505
+ } & {
506
+ credentials: z.ZodOptional<z.ZodUnknown>;
507
+ parameters: z.ZodOptional<z.ZodUnknown>;
508
+ connectorParameters: z.ZodOptional<z.ZodUnknown>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ id: string;
511
+ name: string;
512
+ createdAt: string;
513
+ updatedAt: string;
514
+ userId: string;
515
+ integrationId: string;
516
+ error?: any;
517
+ integration?: {
518
+ id: string;
519
+ name: string;
520
+ logoUri: string;
521
+ key?: string | undefined;
522
+ uuid?: string | undefined;
523
+ description?: string | undefined;
524
+ state?: import("..").WorkspaceElementState | undefined;
525
+ errors?: any[] | undefined;
526
+ revision?: string | undefined;
239
527
  isDeactivated?: boolean | undefined;
528
+ createdAt?: string | undefined;
529
+ updatedAt?: string | undefined;
530
+ archivedAt?: string | undefined;
531
+ parameters?: any;
532
+ isTest?: boolean | undefined;
533
+ connectorId?: string | undefined;
534
+ connectorVersion?: string | undefined;
535
+ oAuthCallbackUri?: string | undefined;
536
+ hasMissingParameters?: boolean | undefined;
537
+ hasDocumentation?: boolean | undefined;
538
+ hasOperations?: boolean | undefined;
539
+ operationsCount?: number | undefined;
540
+ hasData?: boolean | undefined;
541
+ dataCollectionsCount?: number | undefined;
542
+ hasEvents?: boolean | undefined;
543
+ eventsCount?: number | undefined;
544
+ hasGlobalWebhooks?: boolean | undefined;
545
+ hasUdm?: boolean | undefined;
546
+ appUuid?: string | undefined;
240
547
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
241
548
  } | undefined;
242
549
  state?: import("..").WorkspaceElementState | undefined;
243
550
  errors?: any[] | undefined;
244
- accessToken?: string | undefined;
551
+ isDeactivated?: boolean | undefined;
552
+ archivedAt?: string | undefined;
245
553
  credentials?: unknown;
246
554
  parameters?: unknown;
555
+ authOptionKey?: string | undefined;
247
556
  connectorParameters?: unknown;
248
557
  user?: {
249
558
  id: string;
250
559
  name: string;
251
560
  internalId: string;
561
+ createdAt?: string | undefined;
562
+ archivedAt?: string | undefined;
252
563
  credentials?: any;
253
564
  fields?: Record<string, any> | undefined;
254
- lastActiveAt?: string | undefined;
255
565
  isTest?: boolean | undefined;
566
+ lastActiveAt?: string | undefined;
256
567
  isBillable?: boolean | undefined;
257
568
  } | undefined;
569
+ isTest?: boolean | undefined;
258
570
  disconnected?: boolean | undefined;
259
- refreshToken?: string | undefined;
571
+ isDefunct?: boolean | undefined;
260
572
  lastActiveAt?: string | undefined;
261
573
  nextCredentialsRefreshAt?: string | undefined;
262
- archivedAt?: string | undefined;
574
+ meta?: Record<string, any> | undefined;
263
575
  }, {
264
576
  id: string;
265
577
  name: string;
266
- userId: string;
267
- integrationId: string;
268
578
  createdAt: string;
269
579
  updatedAt: string;
580
+ userId: string;
581
+ integrationId: string;
270
582
  error?: any;
271
583
  integration?: {
272
- key: string;
273
584
  id: string;
274
585
  name: string;
275
- baseUri: string;
276
586
  logoUri: string;
587
+ key?: string | undefined;
588
+ uuid?: string | undefined;
589
+ description?: string | undefined;
277
590
  state?: import("..").WorkspaceElementState | undefined;
278
591
  errors?: any[] | undefined;
279
- parameters?: any;
280
- parametersSchema?: import("../..").DataSchema | undefined;
592
+ revision?: string | undefined;
593
+ isDeactivated?: boolean | undefined;
594
+ createdAt?: string | undefined;
595
+ updatedAt?: string | undefined;
281
596
  archivedAt?: string | undefined;
597
+ parameters?: any;
282
598
  isTest?: boolean | undefined;
283
599
  connectorId?: string | undefined;
284
600
  connectorVersion?: string | undefined;
285
- authOptions?: any[] | undefined;
286
601
  oAuthCallbackUri?: string | undefined;
287
602
  hasMissingParameters?: boolean | undefined;
288
603
  hasDocumentation?: boolean | undefined;
289
604
  hasOperations?: boolean | undefined;
605
+ operationsCount?: number | undefined;
290
606
  hasData?: boolean | undefined;
607
+ dataCollectionsCount?: number | undefined;
291
608
  hasEvents?: boolean | undefined;
609
+ eventsCount?: number | undefined;
292
610
  hasGlobalWebhooks?: boolean | undefined;
293
611
  hasUdm?: boolean | undefined;
294
612
  appUuid?: string | undefined;
295
- isDeactivated?: boolean | undefined;
296
613
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
297
614
  } | undefined;
298
615
  state?: import("..").WorkspaceElementState | undefined;
299
616
  errors?: any[] | undefined;
300
- accessToken?: string | undefined;
617
+ isDeactivated?: boolean | undefined;
618
+ archivedAt?: string | undefined;
301
619
  credentials?: unknown;
302
620
  parameters?: unknown;
621
+ authOptionKey?: string | undefined;
303
622
  connectorParameters?: unknown;
304
623
  user?: {
305
624
  id: string;
306
625
  name: string;
307
626
  internalId: string;
627
+ createdAt?: string | undefined;
628
+ archivedAt?: string | undefined;
308
629
  credentials?: any;
309
630
  fields?: Record<string, any> | undefined;
310
- lastActiveAt?: string | undefined;
311
631
  isTest?: boolean | undefined;
632
+ lastActiveAt?: string | undefined;
312
633
  isBillable?: boolean | undefined;
313
634
  } | undefined;
635
+ isTest?: boolean | undefined;
314
636
  disconnected?: boolean | undefined;
315
- refreshToken?: string | undefined;
637
+ isDefunct?: boolean | undefined;
316
638
  lastActiveAt?: string | undefined;
317
639
  nextCredentialsRefreshAt?: string | undefined;
318
- archivedAt?: string | undefined;
640
+ meta?: Record<string, any> | undefined;
319
641
  }>;
320
- export type Connection = z.infer<typeof Connection>;
321
- export type ConnectionApiResponse = Connection;
642
+ export type ConnectionApiResponseWithSecrets = z.infer<typeof ConnectionApiResponseWithSecrets>;
643
+ export type Connection = ConnectionApiResponse;
322
644
  export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
323
645
  source: z.ZodString;
324
646
  requestId: z.ZodString;
@@ -328,21 +650,21 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
328
650
  } & {
329
651
  name: z.ZodString;
330
652
  userId: z.ZodString;
653
+ isTest: z.ZodOptional<z.ZodBoolean>;
331
654
  disconnected: z.ZodOptional<z.ZodBoolean>;
655
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
332
656
  error: any;
333
657
  integrationId: z.ZodString;
334
- credentials: z.ZodOptional<z.ZodUnknown>;
335
- parameters: z.ZodOptional<z.ZodUnknown>;
336
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
337
- accessToken: z.ZodOptional<z.ZodString>;
338
- refreshToken: z.ZodOptional<z.ZodString>;
658
+ authOptionKey: z.ZodOptional<z.ZodString>;
339
659
  createdAt: z.ZodString;
340
660
  updatedAt: z.ZodString;
341
661
  lastActiveAt: z.ZodOptional<z.ZodString>;
342
662
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
343
663
  archivedAt: z.ZodOptional<z.ZodString>;
664
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
344
665
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
345
666
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
667
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
346
668
  } & {
347
669
  user: z.ZodOptional<z.ZodObject<{
348
670
  id: z.ZodString;
@@ -353,47 +675,57 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
353
675
  lastActiveAt: z.ZodOptional<z.ZodString>;
354
676
  isTest: z.ZodOptional<z.ZodBoolean>;
355
677
  isBillable: z.ZodOptional<z.ZodBoolean>;
678
+ createdAt: z.ZodOptional<z.ZodString>;
679
+ archivedAt: z.ZodOptional<z.ZodString>;
356
680
  }, "strip", z.ZodTypeAny, {
357
681
  id: string;
358
682
  name: string;
359
683
  internalId: string;
684
+ createdAt?: string | undefined;
685
+ archivedAt?: string | undefined;
360
686
  credentials?: any;
361
687
  fields?: Record<string, any> | undefined;
362
- lastActiveAt?: string | undefined;
363
688
  isTest?: boolean | undefined;
689
+ lastActiveAt?: string | undefined;
364
690
  isBillable?: boolean | undefined;
365
691
  }, {
366
692
  id: string;
367
693
  name: string;
368
694
  internalId: string;
695
+ createdAt?: string | undefined;
696
+ archivedAt?: string | undefined;
369
697
  credentials?: any;
370
698
  fields?: Record<string, any> | undefined;
371
- lastActiveAt?: string | undefined;
372
699
  isTest?: boolean | undefined;
700
+ lastActiveAt?: string | undefined;
373
701
  isBillable?: boolean | undefined;
374
702
  }>>;
375
703
  integration: z.ZodOptional<z.ZodObject<{
376
704
  id: z.ZodString;
377
705
  name: z.ZodString;
378
- } & {
379
- key: z.ZodString;
706
+ key: z.ZodOptional<z.ZodString>;
707
+ uuid: z.ZodOptional<z.ZodString>;
708
+ description: z.ZodOptional<z.ZodString>;
380
709
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
381
710
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
711
+ revision: z.ZodOptional<z.ZodString>;
712
+ createdAt: z.ZodOptional<z.ZodString>;
713
+ updatedAt: z.ZodOptional<z.ZodString>;
382
714
  } & {
383
715
  logoUri: z.ZodString;
384
716
  connectorId: z.ZodOptional<z.ZodString>;
385
717
  connectorVersion: z.ZodOptional<z.ZodString>;
386
- authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
387
718
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
388
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
389
719
  parameters: z.ZodOptional<z.ZodAny>;
390
- baseUri: z.ZodString;
391
720
  archivedAt: z.ZodOptional<z.ZodString>;
392
721
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
393
722
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
394
723
  hasOperations: z.ZodOptional<z.ZodBoolean>;
724
+ operationsCount: z.ZodOptional<z.ZodNumber>;
395
725
  hasData: z.ZodOptional<z.ZodBoolean>;
726
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
396
727
  hasEvents: z.ZodOptional<z.ZodBoolean>;
728
+ eventsCount: z.ZodOptional<z.ZodNumber>;
397
729
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
398
730
  hasUdm: z.ZodOptional<z.ZodBoolean>;
399
731
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -401,228 +733,259 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
401
733
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
402
734
  authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
403
735
  }, "strip", z.ZodTypeAny, {
404
- key: string;
405
736
  id: string;
406
737
  name: string;
407
- baseUri: string;
408
738
  logoUri: string;
739
+ key?: string | undefined;
740
+ uuid?: string | undefined;
741
+ description?: string | undefined;
409
742
  state?: import("..").WorkspaceElementState | undefined;
410
743
  errors?: any[] | undefined;
411
- parameters?: any;
412
- parametersSchema?: import("../..").DataSchema | undefined;
744
+ revision?: string | undefined;
745
+ isDeactivated?: boolean | undefined;
746
+ createdAt?: string | undefined;
747
+ updatedAt?: string | undefined;
413
748
  archivedAt?: string | undefined;
749
+ parameters?: any;
414
750
  isTest?: boolean | undefined;
415
751
  connectorId?: string | undefined;
416
752
  connectorVersion?: string | undefined;
417
- authOptions?: any[] | undefined;
418
753
  oAuthCallbackUri?: string | undefined;
419
754
  hasMissingParameters?: boolean | undefined;
420
755
  hasDocumentation?: boolean | undefined;
421
756
  hasOperations?: boolean | undefined;
757
+ operationsCount?: number | undefined;
422
758
  hasData?: boolean | undefined;
759
+ dataCollectionsCount?: number | undefined;
423
760
  hasEvents?: boolean | undefined;
761
+ eventsCount?: number | undefined;
424
762
  hasGlobalWebhooks?: boolean | undefined;
425
763
  hasUdm?: boolean | undefined;
426
764
  appUuid?: string | undefined;
427
- isDeactivated?: boolean | undefined;
428
765
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
429
766
  }, {
430
- key: string;
431
767
  id: string;
432
768
  name: string;
433
- baseUri: string;
434
769
  logoUri: string;
770
+ key?: string | undefined;
771
+ uuid?: string | undefined;
772
+ description?: string | undefined;
435
773
  state?: import("..").WorkspaceElementState | undefined;
436
774
  errors?: any[] | undefined;
437
- parameters?: any;
438
- parametersSchema?: import("../..").DataSchema | undefined;
775
+ revision?: string | undefined;
776
+ isDeactivated?: boolean | undefined;
777
+ createdAt?: string | undefined;
778
+ updatedAt?: string | undefined;
439
779
  archivedAt?: string | undefined;
780
+ parameters?: any;
440
781
  isTest?: boolean | undefined;
441
782
  connectorId?: string | undefined;
442
783
  connectorVersion?: string | undefined;
443
- authOptions?: any[] | undefined;
444
784
  oAuthCallbackUri?: string | undefined;
445
785
  hasMissingParameters?: boolean | undefined;
446
786
  hasDocumentation?: boolean | undefined;
447
787
  hasOperations?: boolean | undefined;
788
+ operationsCount?: number | undefined;
448
789
  hasData?: boolean | undefined;
790
+ dataCollectionsCount?: number | undefined;
449
791
  hasEvents?: boolean | undefined;
792
+ eventsCount?: number | undefined;
450
793
  hasGlobalWebhooks?: boolean | undefined;
451
794
  hasUdm?: boolean | undefined;
452
795
  appUuid?: string | undefined;
453
- isDeactivated?: boolean | undefined;
454
796
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
455
797
  }>>;
456
798
  }, "strip", z.ZodTypeAny, {
457
799
  id: string;
458
800
  name: string;
459
- userId: string;
460
- integrationId: string;
461
801
  createdAt: string;
462
802
  updatedAt: string;
803
+ userId: string;
804
+ integrationId: string;
463
805
  error?: any;
464
806
  integration?: {
465
- key: string;
466
807
  id: string;
467
808
  name: string;
468
- baseUri: string;
469
809
  logoUri: string;
810
+ key?: string | undefined;
811
+ uuid?: string | undefined;
812
+ description?: string | undefined;
470
813
  state?: import("..").WorkspaceElementState | undefined;
471
814
  errors?: any[] | undefined;
472
- parameters?: any;
473
- parametersSchema?: import("../..").DataSchema | undefined;
815
+ revision?: string | undefined;
816
+ isDeactivated?: boolean | undefined;
817
+ createdAt?: string | undefined;
818
+ updatedAt?: string | undefined;
474
819
  archivedAt?: string | undefined;
820
+ parameters?: any;
475
821
  isTest?: boolean | undefined;
476
822
  connectorId?: string | undefined;
477
823
  connectorVersion?: string | undefined;
478
- authOptions?: any[] | undefined;
479
824
  oAuthCallbackUri?: string | undefined;
480
825
  hasMissingParameters?: boolean | undefined;
481
826
  hasDocumentation?: boolean | undefined;
482
827
  hasOperations?: boolean | undefined;
828
+ operationsCount?: number | undefined;
483
829
  hasData?: boolean | undefined;
830
+ dataCollectionsCount?: number | undefined;
484
831
  hasEvents?: boolean | undefined;
832
+ eventsCount?: number | undefined;
485
833
  hasGlobalWebhooks?: boolean | undefined;
486
834
  hasUdm?: boolean | undefined;
487
835
  appUuid?: string | undefined;
488
- isDeactivated?: boolean | undefined;
489
836
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
490
837
  } | undefined;
491
838
  state?: import("..").WorkspaceElementState | undefined;
492
839
  errors?: any[] | undefined;
493
- accessToken?: string | undefined;
494
- credentials?: unknown;
495
- parameters?: unknown;
496
- connectorParameters?: unknown;
840
+ isDeactivated?: boolean | undefined;
841
+ archivedAt?: string | undefined;
842
+ authOptionKey?: string | undefined;
497
843
  user?: {
498
844
  id: string;
499
845
  name: string;
500
846
  internalId: string;
847
+ createdAt?: string | undefined;
848
+ archivedAt?: string | undefined;
501
849
  credentials?: any;
502
850
  fields?: Record<string, any> | undefined;
503
- lastActiveAt?: string | undefined;
504
851
  isTest?: boolean | undefined;
852
+ lastActiveAt?: string | undefined;
505
853
  isBillable?: boolean | undefined;
506
854
  } | undefined;
855
+ isTest?: boolean | undefined;
507
856
  disconnected?: boolean | undefined;
508
- refreshToken?: string | undefined;
857
+ isDefunct?: boolean | undefined;
509
858
  lastActiveAt?: string | undefined;
510
859
  nextCredentialsRefreshAt?: string | undefined;
511
- archivedAt?: string | undefined;
860
+ meta?: Record<string, any> | undefined;
512
861
  }, {
513
862
  id: string;
514
863
  name: string;
515
- userId: string;
516
- integrationId: string;
517
864
  createdAt: string;
518
865
  updatedAt: string;
866
+ userId: string;
867
+ integrationId: string;
519
868
  error?: any;
520
869
  integration?: {
521
- key: string;
522
870
  id: string;
523
871
  name: string;
524
- baseUri: string;
525
872
  logoUri: string;
873
+ key?: string | undefined;
874
+ uuid?: string | undefined;
875
+ description?: string | undefined;
526
876
  state?: import("..").WorkspaceElementState | undefined;
527
877
  errors?: any[] | undefined;
528
- parameters?: any;
529
- parametersSchema?: import("../..").DataSchema | undefined;
878
+ revision?: string | undefined;
879
+ isDeactivated?: boolean | undefined;
880
+ createdAt?: string | undefined;
881
+ updatedAt?: string | undefined;
530
882
  archivedAt?: string | undefined;
883
+ parameters?: any;
531
884
  isTest?: boolean | undefined;
532
885
  connectorId?: string | undefined;
533
886
  connectorVersion?: string | undefined;
534
- authOptions?: any[] | undefined;
535
887
  oAuthCallbackUri?: string | undefined;
536
888
  hasMissingParameters?: boolean | undefined;
537
889
  hasDocumentation?: boolean | undefined;
538
890
  hasOperations?: boolean | undefined;
891
+ operationsCount?: number | undefined;
539
892
  hasData?: boolean | undefined;
893
+ dataCollectionsCount?: number | undefined;
540
894
  hasEvents?: boolean | undefined;
895
+ eventsCount?: number | undefined;
541
896
  hasGlobalWebhooks?: boolean | undefined;
542
897
  hasUdm?: boolean | undefined;
543
898
  appUuid?: string | undefined;
544
- isDeactivated?: boolean | undefined;
545
899
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
546
900
  } | undefined;
547
901
  state?: import("..").WorkspaceElementState | undefined;
548
902
  errors?: any[] | undefined;
549
- accessToken?: string | undefined;
550
- credentials?: unknown;
551
- parameters?: unknown;
552
- connectorParameters?: unknown;
903
+ isDeactivated?: boolean | undefined;
904
+ archivedAt?: string | undefined;
905
+ authOptionKey?: string | undefined;
553
906
  user?: {
554
907
  id: string;
555
908
  name: string;
556
909
  internalId: string;
910
+ createdAt?: string | undefined;
911
+ archivedAt?: string | undefined;
557
912
  credentials?: any;
558
913
  fields?: Record<string, any> | undefined;
559
- lastActiveAt?: string | undefined;
560
914
  isTest?: boolean | undefined;
915
+ lastActiveAt?: string | undefined;
561
916
  isBillable?: boolean | undefined;
562
917
  } | undefined;
918
+ isTest?: boolean | undefined;
563
919
  disconnected?: boolean | undefined;
564
- refreshToken?: string | undefined;
920
+ isDefunct?: boolean | undefined;
565
921
  lastActiveAt?: string | undefined;
566
922
  nextCredentialsRefreshAt?: string | undefined;
567
- archivedAt?: string | undefined;
923
+ meta?: Record<string, any> | undefined;
568
924
  }>;
569
925
  }, "strip", z.ZodTypeAny, {
570
926
  connection: {
571
927
  id: string;
572
928
  name: string;
573
- userId: string;
574
- integrationId: string;
575
929
  createdAt: string;
576
930
  updatedAt: string;
931
+ userId: string;
932
+ integrationId: string;
577
933
  error?: any;
578
934
  integration?: {
579
- key: string;
580
935
  id: string;
581
936
  name: string;
582
- baseUri: string;
583
937
  logoUri: string;
938
+ key?: string | undefined;
939
+ uuid?: string | undefined;
940
+ description?: string | undefined;
584
941
  state?: import("..").WorkspaceElementState | undefined;
585
942
  errors?: any[] | undefined;
586
- parameters?: any;
587
- parametersSchema?: import("../..").DataSchema | undefined;
943
+ revision?: string | undefined;
944
+ isDeactivated?: boolean | undefined;
945
+ createdAt?: string | undefined;
946
+ updatedAt?: string | undefined;
588
947
  archivedAt?: string | undefined;
948
+ parameters?: any;
589
949
  isTest?: boolean | undefined;
590
950
  connectorId?: string | undefined;
591
951
  connectorVersion?: string | undefined;
592
- authOptions?: any[] | undefined;
593
952
  oAuthCallbackUri?: string | undefined;
594
953
  hasMissingParameters?: boolean | undefined;
595
954
  hasDocumentation?: boolean | undefined;
596
955
  hasOperations?: boolean | undefined;
956
+ operationsCount?: number | undefined;
597
957
  hasData?: boolean | undefined;
958
+ dataCollectionsCount?: number | undefined;
598
959
  hasEvents?: boolean | undefined;
960
+ eventsCount?: number | undefined;
599
961
  hasGlobalWebhooks?: boolean | undefined;
600
962
  hasUdm?: boolean | undefined;
601
963
  appUuid?: string | undefined;
602
- isDeactivated?: boolean | undefined;
603
964
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
604
965
  } | undefined;
605
966
  state?: import("..").WorkspaceElementState | undefined;
606
967
  errors?: any[] | undefined;
607
- accessToken?: string | undefined;
608
- credentials?: unknown;
609
- parameters?: unknown;
610
- connectorParameters?: unknown;
968
+ isDeactivated?: boolean | undefined;
969
+ archivedAt?: string | undefined;
970
+ authOptionKey?: string | undefined;
611
971
  user?: {
612
972
  id: string;
613
973
  name: string;
614
974
  internalId: string;
975
+ createdAt?: string | undefined;
976
+ archivedAt?: string | undefined;
615
977
  credentials?: any;
616
978
  fields?: Record<string, any> | undefined;
617
- lastActiveAt?: string | undefined;
618
979
  isTest?: boolean | undefined;
980
+ lastActiveAt?: string | undefined;
619
981
  isBillable?: boolean | undefined;
620
982
  } | undefined;
983
+ isTest?: boolean | undefined;
621
984
  disconnected?: boolean | undefined;
622
- refreshToken?: string | undefined;
985
+ isDefunct?: boolean | undefined;
623
986
  lastActiveAt?: string | undefined;
624
987
  nextCredentialsRefreshAt?: string | undefined;
625
- archivedAt?: string | undefined;
988
+ meta?: Record<string, any> | undefined;
626
989
  };
627
990
  type: "newConnectionCreated";
628
991
  source: string;
@@ -631,59 +994,66 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<"type", [
631
994
  connection: {
632
995
  id: string;
633
996
  name: string;
634
- userId: string;
635
- integrationId: string;
636
997
  createdAt: string;
637
998
  updatedAt: string;
999
+ userId: string;
1000
+ integrationId: string;
638
1001
  error?: any;
639
1002
  integration?: {
640
- key: string;
641
1003
  id: string;
642
1004
  name: string;
643
- baseUri: string;
644
1005
  logoUri: string;
1006
+ key?: string | undefined;
1007
+ uuid?: string | undefined;
1008
+ description?: string | undefined;
645
1009
  state?: import("..").WorkspaceElementState | undefined;
646
1010
  errors?: any[] | undefined;
647
- parameters?: any;
648
- parametersSchema?: import("../..").DataSchema | undefined;
1011
+ revision?: string | undefined;
1012
+ isDeactivated?: boolean | undefined;
1013
+ createdAt?: string | undefined;
1014
+ updatedAt?: string | undefined;
649
1015
  archivedAt?: string | undefined;
1016
+ parameters?: any;
650
1017
  isTest?: boolean | undefined;
651
1018
  connectorId?: string | undefined;
652
1019
  connectorVersion?: string | undefined;
653
- authOptions?: any[] | undefined;
654
1020
  oAuthCallbackUri?: string | undefined;
655
1021
  hasMissingParameters?: boolean | undefined;
656
1022
  hasDocumentation?: boolean | undefined;
657
1023
  hasOperations?: boolean | undefined;
1024
+ operationsCount?: number | undefined;
658
1025
  hasData?: boolean | undefined;
1026
+ dataCollectionsCount?: number | undefined;
659
1027
  hasEvents?: boolean | undefined;
1028
+ eventsCount?: number | undefined;
660
1029
  hasGlobalWebhooks?: boolean | undefined;
661
1030
  hasUdm?: boolean | undefined;
662
1031
  appUuid?: string | undefined;
663
- isDeactivated?: boolean | undefined;
664
1032
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
665
1033
  } | undefined;
666
1034
  state?: import("..").WorkspaceElementState | undefined;
667
1035
  errors?: any[] | undefined;
668
- accessToken?: string | undefined;
669
- credentials?: unknown;
670
- parameters?: unknown;
671
- connectorParameters?: unknown;
1036
+ isDeactivated?: boolean | undefined;
1037
+ archivedAt?: string | undefined;
1038
+ authOptionKey?: string | undefined;
672
1039
  user?: {
673
1040
  id: string;
674
1041
  name: string;
675
1042
  internalId: string;
1043
+ createdAt?: string | undefined;
1044
+ archivedAt?: string | undefined;
676
1045
  credentials?: any;
677
1046
  fields?: Record<string, any> | undefined;
678
- lastActiveAt?: string | undefined;
679
1047
  isTest?: boolean | undefined;
1048
+ lastActiveAt?: string | undefined;
680
1049
  isBillable?: boolean | undefined;
681
1050
  } | undefined;
1051
+ isTest?: boolean | undefined;
682
1052
  disconnected?: boolean | undefined;
683
- refreshToken?: string | undefined;
1053
+ isDefunct?: boolean | undefined;
684
1054
  lastActiveAt?: string | undefined;
685
1055
  nextCredentialsRefreshAt?: string | undefined;
686
- archivedAt?: string | undefined;
1056
+ meta?: Record<string, any> | undefined;
687
1057
  };
688
1058
  type: "newConnectionCreated";
689
1059
  source: string;