@membranehq/sdk 0.7.4 → 0.7.5

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