@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
@@ -22,4 +22,4 @@ export * from './app-data-schema-instances-api';
22
22
  export * from './external-event-log-records-api';
23
23
  export * from './external-event-pulls-api';
24
24
  export * from './external-event-subscriptions-api';
25
- export * from './app-events-api';
25
+ export * from './app-event-log-records-api';
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { DataSchema } from '../../data-schema';
2
3
  import { PaginationResponse } from '../../entity-repository';
3
4
  export declare const CreateIntegrationRequest: z.ZodObject<{
4
5
  name: z.ZodOptional<z.ZodString>;
@@ -49,7 +50,7 @@ export declare const FindIntegrationsQuery: z.ZodObject<{
49
50
  cursor?: string | undefined;
50
51
  }>;
51
52
  export type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
52
- export interface FindIntegrationsResponse extends PaginationResponse<Integration> {
53
+ export interface FindIntegrationsResponse extends PaginationResponse<IntegrationApiResponse> {
53
54
  }
54
55
  export declare const OpenNewConnectionOptions: z.ZodObject<{
55
56
  allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
@@ -72,28 +73,78 @@ export declare const OpenNewConnectionOptions: z.ZodObject<{
72
73
  allowMultipleConnections?: boolean | undefined;
73
74
  }>;
74
75
  export type OpenNewConnectionOptions = z.infer<typeof OpenNewConnectionOptions>;
75
- export declare const Integration: z.ZodObject<{
76
+ export declare const IntegrationAuthUi: z.ZodObject<{
77
+ schema: z.ZodOptional<z.ZodAny>;
78
+ helpUri: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ schema?: any;
81
+ helpUri?: string | undefined;
82
+ }, {
83
+ schema?: any;
84
+ helpUri?: string | undefined;
85
+ }>;
86
+ export type IntegrationAuthUi = z.infer<typeof IntegrationAuthUi>;
87
+ export declare const IntegrationAuthOption: z.ZodObject<{
88
+ key: z.ZodString;
89
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
90
+ title: z.ZodOptional<z.ZodString>;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ ui: z.ZodOptional<z.ZodObject<{
93
+ schema: z.ZodOptional<z.ZodAny>;
94
+ helpUri: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ schema?: any;
97
+ helpUri?: string | undefined;
98
+ }, {
99
+ schema?: any;
100
+ helpUri?: string | undefined;
101
+ }>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ key: string;
104
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
105
+ description?: string | undefined;
106
+ title?: string | undefined;
107
+ ui?: {
108
+ schema?: any;
109
+ helpUri?: string | undefined;
110
+ } | undefined;
111
+ }, {
112
+ key: string;
113
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
114
+ description?: string | undefined;
115
+ title?: string | undefined;
116
+ ui?: {
117
+ schema?: any;
118
+ helpUri?: string | undefined;
119
+ } | undefined;
120
+ }>;
121
+ export type IntegrationAuthOption = z.infer<typeof IntegrationAuthOption>;
122
+ export declare const IntegrationApiResponse: z.ZodObject<{
76
123
  id: z.ZodString;
77
124
  name: z.ZodString;
78
- } & {
79
- key: z.ZodString;
125
+ key: z.ZodOptional<z.ZodString>;
126
+ uuid: z.ZodOptional<z.ZodString>;
127
+ description: z.ZodOptional<z.ZodString>;
80
128
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
81
129
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
130
+ revision: z.ZodOptional<z.ZodString>;
131
+ createdAt: z.ZodOptional<z.ZodString>;
132
+ updatedAt: z.ZodOptional<z.ZodString>;
82
133
  } & {
83
134
  logoUri: z.ZodString;
84
135
  connectorId: z.ZodOptional<z.ZodString>;
85
136
  connectorVersion: z.ZodOptional<z.ZodString>;
86
- authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
87
137
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
88
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
89
138
  parameters: z.ZodOptional<z.ZodAny>;
90
- baseUri: z.ZodString;
91
139
  archivedAt: z.ZodOptional<z.ZodString>;
92
140
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
93
141
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
94
142
  hasOperations: z.ZodOptional<z.ZodBoolean>;
143
+ operationsCount: z.ZodOptional<z.ZodNumber>;
95
144
  hasData: z.ZodOptional<z.ZodBoolean>;
145
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
96
146
  hasEvents: z.ZodOptional<z.ZodBoolean>;
147
+ eventsCount: z.ZodOptional<z.ZodNumber>;
97
148
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
98
149
  hasUdm: z.ZodOptional<z.ZodBoolean>;
99
150
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -106,155 +157,222 @@ export declare const Integration: z.ZodObject<{
106
157
  } & {
107
158
  name: z.ZodString;
108
159
  userId: z.ZodString;
160
+ isTest: z.ZodOptional<z.ZodBoolean>;
109
161
  disconnected: z.ZodOptional<z.ZodBoolean>;
162
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
110
163
  error: any;
111
164
  integrationId: z.ZodString;
112
- credentials: z.ZodOptional<z.ZodUnknown>;
113
- parameters: z.ZodOptional<z.ZodUnknown>;
114
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
115
- accessToken: z.ZodOptional<z.ZodString>;
116
- refreshToken: z.ZodOptional<z.ZodString>;
165
+ authOptionKey: z.ZodOptional<z.ZodString>;
117
166
  createdAt: z.ZodString;
118
167
  updatedAt: z.ZodString;
119
168
  lastActiveAt: z.ZodOptional<z.ZodString>;
120
169
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
121
170
  archivedAt: z.ZodOptional<z.ZodString>;
171
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
122
172
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
123
173
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
174
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
124
175
  }, "strip", z.ZodTypeAny, {
125
176
  id: string;
126
177
  name: string;
127
- userId: string;
128
- integrationId: string;
129
178
  createdAt: string;
130
179
  updatedAt: string;
180
+ userId: string;
181
+ integrationId: string;
131
182
  error?: any;
132
183
  state?: import("..").WorkspaceElementState | undefined;
133
184
  errors?: any[] | undefined;
134
- accessToken?: string | undefined;
135
- credentials?: unknown;
136
- parameters?: unknown;
137
- connectorParameters?: unknown;
185
+ isDeactivated?: boolean | undefined;
186
+ archivedAt?: string | undefined;
187
+ authOptionKey?: string | undefined;
188
+ isTest?: boolean | undefined;
138
189
  disconnected?: boolean | undefined;
139
- refreshToken?: string | undefined;
190
+ isDefunct?: boolean | undefined;
140
191
  lastActiveAt?: string | undefined;
141
192
  nextCredentialsRefreshAt?: string | undefined;
142
- archivedAt?: string | undefined;
193
+ meta?: Record<string, any> | undefined;
143
194
  }, {
144
195
  id: string;
145
196
  name: string;
146
- userId: string;
147
- integrationId: string;
148
197
  createdAt: string;
149
198
  updatedAt: string;
199
+ userId: string;
200
+ integrationId: string;
150
201
  error?: any;
151
202
  state?: import("..").WorkspaceElementState | undefined;
152
203
  errors?: any[] | undefined;
153
- accessToken?: string | undefined;
154
- credentials?: unknown;
155
- parameters?: unknown;
156
- connectorParameters?: unknown;
204
+ isDeactivated?: boolean | undefined;
205
+ archivedAt?: string | undefined;
206
+ authOptionKey?: string | undefined;
207
+ isTest?: boolean | undefined;
157
208
  disconnected?: boolean | undefined;
158
- refreshToken?: string | undefined;
209
+ isDefunct?: boolean | undefined;
159
210
  lastActiveAt?: string | undefined;
160
211
  nextCredentialsRefreshAt?: string | undefined;
161
- archivedAt?: string | undefined;
212
+ meta?: Record<string, any> | undefined;
162
213
  }>>;
163
214
  spec: z.ZodOptional<z.ZodAny>;
215
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
+ key: z.ZodString;
217
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
218
+ title: z.ZodOptional<z.ZodString>;
219
+ description: z.ZodOptional<z.ZodString>;
220
+ ui: z.ZodOptional<z.ZodObject<{
221
+ schema: z.ZodOptional<z.ZodAny>;
222
+ helpUri: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ schema?: any;
225
+ helpUri?: string | undefined;
226
+ }, {
227
+ schema?: any;
228
+ helpUri?: string | undefined;
229
+ }>>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ key: string;
232
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
233
+ description?: string | undefined;
234
+ title?: string | undefined;
235
+ ui?: {
236
+ schema?: any;
237
+ helpUri?: string | undefined;
238
+ } | undefined;
239
+ }, {
240
+ key: string;
241
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
242
+ description?: string | undefined;
243
+ title?: string | undefined;
244
+ ui?: {
245
+ schema?: any;
246
+ helpUri?: string | undefined;
247
+ } | undefined;
248
+ }>, "many">>;
249
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
164
250
  }, "strip", z.ZodTypeAny, {
165
- key: string;
166
251
  id: string;
167
252
  name: string;
168
- baseUri: string;
169
253
  logoUri: string;
254
+ key?: string | undefined;
170
255
  connection?: {
171
256
  id: string;
172
257
  name: string;
173
- userId: string;
174
- integrationId: string;
175
258
  createdAt: string;
176
259
  updatedAt: string;
260
+ userId: string;
261
+ integrationId: string;
177
262
  error?: any;
178
263
  state?: import("..").WorkspaceElementState | undefined;
179
264
  errors?: any[] | undefined;
180
- accessToken?: string | undefined;
181
- credentials?: unknown;
182
- parameters?: unknown;
183
- connectorParameters?: unknown;
265
+ isDeactivated?: boolean | undefined;
266
+ archivedAt?: string | undefined;
267
+ authOptionKey?: string | undefined;
268
+ isTest?: boolean | undefined;
184
269
  disconnected?: boolean | undefined;
185
- refreshToken?: string | undefined;
270
+ isDefunct?: boolean | undefined;
186
271
  lastActiveAt?: string | undefined;
187
272
  nextCredentialsRefreshAt?: string | undefined;
188
- archivedAt?: string | undefined;
273
+ meta?: Record<string, any> | undefined;
189
274
  } | undefined;
275
+ uuid?: string | undefined;
276
+ description?: string | undefined;
190
277
  state?: import("..").WorkspaceElementState | undefined;
191
278
  errors?: any[] | undefined;
192
- parameters?: any;
193
- parametersSchema?: import("../..").DataSchema | undefined;
279
+ revision?: string | undefined;
280
+ isDeactivated?: boolean | undefined;
281
+ createdAt?: string | undefined;
282
+ updatedAt?: string | undefined;
194
283
  archivedAt?: string | undefined;
284
+ parameters?: any;
285
+ parametersSchema?: DataSchema | undefined;
195
286
  isTest?: boolean | undefined;
196
287
  connectorId?: string | undefined;
197
288
  connectorVersion?: string | undefined;
198
- authOptions?: any[] | undefined;
199
289
  oAuthCallbackUri?: string | undefined;
200
290
  hasMissingParameters?: boolean | undefined;
201
291
  hasDocumentation?: boolean | undefined;
202
292
  hasOperations?: boolean | undefined;
293
+ operationsCount?: number | undefined;
203
294
  hasData?: boolean | undefined;
295
+ dataCollectionsCount?: number | undefined;
204
296
  hasEvents?: boolean | undefined;
297
+ eventsCount?: number | undefined;
205
298
  hasGlobalWebhooks?: boolean | undefined;
206
299
  hasUdm?: boolean | undefined;
207
300
  appUuid?: string | undefined;
208
- isDeactivated?: boolean | undefined;
209
301
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
210
302
  spec?: any;
303
+ authOptions?: {
304
+ key: string;
305
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
306
+ description?: string | undefined;
307
+ title?: string | undefined;
308
+ ui?: {
309
+ schema?: any;
310
+ helpUri?: string | undefined;
311
+ } | undefined;
312
+ }[] | undefined;
211
313
  }, {
212
- key: string;
213
314
  id: string;
214
315
  name: string;
215
- baseUri: string;
216
316
  logoUri: string;
317
+ key?: string | undefined;
217
318
  connection?: {
218
319
  id: string;
219
320
  name: string;
220
- userId: string;
221
- integrationId: string;
222
321
  createdAt: string;
223
322
  updatedAt: string;
323
+ userId: string;
324
+ integrationId: string;
224
325
  error?: any;
225
326
  state?: import("..").WorkspaceElementState | undefined;
226
327
  errors?: any[] | undefined;
227
- accessToken?: string | undefined;
228
- credentials?: unknown;
229
- parameters?: unknown;
230
- connectorParameters?: unknown;
328
+ isDeactivated?: boolean | undefined;
329
+ archivedAt?: string | undefined;
330
+ authOptionKey?: string | undefined;
331
+ isTest?: boolean | undefined;
231
332
  disconnected?: boolean | undefined;
232
- refreshToken?: string | undefined;
333
+ isDefunct?: boolean | undefined;
233
334
  lastActiveAt?: string | undefined;
234
335
  nextCredentialsRefreshAt?: string | undefined;
235
- archivedAt?: string | undefined;
336
+ meta?: Record<string, any> | undefined;
236
337
  } | undefined;
338
+ uuid?: string | undefined;
339
+ description?: string | undefined;
237
340
  state?: import("..").WorkspaceElementState | undefined;
238
341
  errors?: any[] | undefined;
239
- parameters?: any;
240
- parametersSchema?: import("../..").DataSchema | undefined;
342
+ revision?: string | undefined;
343
+ isDeactivated?: boolean | undefined;
344
+ createdAt?: string | undefined;
345
+ updatedAt?: string | undefined;
241
346
  archivedAt?: string | undefined;
347
+ parameters?: any;
348
+ parametersSchema?: DataSchema | undefined;
242
349
  isTest?: boolean | undefined;
243
350
  connectorId?: string | undefined;
244
351
  connectorVersion?: string | undefined;
245
- authOptions?: any[] | undefined;
246
352
  oAuthCallbackUri?: string | undefined;
247
353
  hasMissingParameters?: boolean | undefined;
248
354
  hasDocumentation?: boolean | undefined;
249
355
  hasOperations?: boolean | undefined;
356
+ operationsCount?: number | undefined;
250
357
  hasData?: boolean | undefined;
358
+ dataCollectionsCount?: number | undefined;
251
359
  hasEvents?: boolean | undefined;
360
+ eventsCount?: number | undefined;
252
361
  hasGlobalWebhooks?: boolean | undefined;
253
362
  hasUdm?: boolean | undefined;
254
363
  appUuid?: string | undefined;
255
- isDeactivated?: boolean | undefined;
256
364
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
257
365
  spec?: any;
366
+ authOptions?: {
367
+ key: string;
368
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
369
+ description?: string | undefined;
370
+ title?: string | undefined;
371
+ ui?: {
372
+ schema?: any;
373
+ helpUri?: string | undefined;
374
+ } | undefined;
375
+ }[] | undefined;
258
376
  }>;
259
- export type Integration = z.infer<typeof Integration>;
260
- export type IntegrationApiResponse = Integration;
377
+ export type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
378
+ export type Integration = IntegrationApiResponse;
@@ -241,13 +241,18 @@ export interface HandyScenarioTemplateElementApi {
241
241
  name: string;
242
242
  } & Record<string, any>;
243
243
  }
244
- export declare const Scenario: z.ZodObject<{
244
+ export declare const ScenarioApiResponse: z.ZodObject<{
245
245
  id: z.ZodString;
246
246
  name: z.ZodString;
247
- } & {
248
- key: z.ZodString;
247
+ key: z.ZodOptional<z.ZodString>;
248
+ uuid: z.ZodOptional<z.ZodString>;
249
+ description: z.ZodOptional<z.ZodString>;
249
250
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
250
251
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
252
+ revision: z.ZodOptional<z.ZodString>;
253
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
254
+ createdAt: z.ZodOptional<z.ZodString>;
255
+ updatedAt: z.ZodOptional<z.ZodString>;
251
256
  } & {
252
257
  appId: z.ZodString;
253
258
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
@@ -298,25 +303,29 @@ export declare const Scenario: z.ZodObject<{
298
303
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
304
  id: z.ZodString;
300
305
  name: z.ZodString;
301
- } & {
302
- key: z.ZodString;
306
+ key: z.ZodOptional<z.ZodString>;
307
+ uuid: z.ZodOptional<z.ZodString>;
308
+ description: z.ZodOptional<z.ZodString>;
303
309
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
304
310
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
311
+ revision: z.ZodOptional<z.ZodString>;
312
+ createdAt: z.ZodOptional<z.ZodString>;
313
+ updatedAt: z.ZodOptional<z.ZodString>;
305
314
  } & {
306
315
  logoUri: z.ZodString;
307
316
  connectorId: z.ZodOptional<z.ZodString>;
308
317
  connectorVersion: z.ZodOptional<z.ZodString>;
309
- authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
310
318
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
311
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
312
319
  parameters: z.ZodOptional<z.ZodAny>;
313
- baseUri: z.ZodString;
314
320
  archivedAt: z.ZodOptional<z.ZodString>;
315
321
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
316
322
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
317
323
  hasOperations: z.ZodOptional<z.ZodBoolean>;
324
+ operationsCount: z.ZodOptional<z.ZodNumber>;
318
325
  hasData: z.ZodOptional<z.ZodBoolean>;
326
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
319
327
  hasEvents: z.ZodOptional<z.ZodBoolean>;
328
+ eventsCount: z.ZodOptional<z.ZodNumber>;
320
329
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
321
330
  hasUdm: z.ZodOptional<z.ZodBoolean>;
322
331
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -324,91 +333,112 @@ export declare const Scenario: z.ZodObject<{
324
333
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
325
334
  authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
326
335
  }, "strip", z.ZodTypeAny, {
327
- key: string;
328
336
  id: string;
329
337
  name: string;
330
- baseUri: string;
331
338
  logoUri: string;
339
+ key?: string | undefined;
340
+ uuid?: string | undefined;
341
+ description?: string | undefined;
332
342
  state?: import("..").WorkspaceElementState | undefined;
333
343
  errors?: any[] | undefined;
334
- parameters?: any;
335
- parametersSchema?: import("../..").DataSchema | undefined;
344
+ revision?: string | undefined;
345
+ isDeactivated?: boolean | undefined;
346
+ createdAt?: string | undefined;
347
+ updatedAt?: string | undefined;
336
348
  archivedAt?: string | undefined;
349
+ parameters?: any;
337
350
  isTest?: boolean | undefined;
338
351
  connectorId?: string | undefined;
339
352
  connectorVersion?: string | undefined;
340
- authOptions?: any[] | undefined;
341
353
  oAuthCallbackUri?: string | undefined;
342
354
  hasMissingParameters?: boolean | undefined;
343
355
  hasDocumentation?: boolean | undefined;
344
356
  hasOperations?: boolean | undefined;
357
+ operationsCount?: number | undefined;
345
358
  hasData?: boolean | undefined;
359
+ dataCollectionsCount?: number | undefined;
346
360
  hasEvents?: boolean | undefined;
361
+ eventsCount?: number | undefined;
347
362
  hasGlobalWebhooks?: boolean | undefined;
348
363
  hasUdm?: boolean | undefined;
349
364
  appUuid?: string | undefined;
350
- isDeactivated?: boolean | undefined;
351
365
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
352
366
  }, {
353
- key: string;
354
367
  id: string;
355
368
  name: string;
356
- baseUri: string;
357
369
  logoUri: string;
370
+ key?: string | undefined;
371
+ uuid?: string | undefined;
372
+ description?: string | undefined;
358
373
  state?: import("..").WorkspaceElementState | undefined;
359
374
  errors?: any[] | undefined;
360
- parameters?: any;
361
- parametersSchema?: import("../..").DataSchema | undefined;
375
+ revision?: string | undefined;
376
+ isDeactivated?: boolean | undefined;
377
+ createdAt?: string | undefined;
378
+ updatedAt?: string | undefined;
362
379
  archivedAt?: string | undefined;
380
+ parameters?: any;
363
381
  isTest?: boolean | undefined;
364
382
  connectorId?: string | undefined;
365
383
  connectorVersion?: string | undefined;
366
- authOptions?: any[] | undefined;
367
384
  oAuthCallbackUri?: string | undefined;
368
385
  hasMissingParameters?: boolean | undefined;
369
386
  hasDocumentation?: boolean | undefined;
370
387
  hasOperations?: boolean | undefined;
388
+ operationsCount?: number | undefined;
371
389
  hasData?: boolean | undefined;
390
+ dataCollectionsCount?: number | undefined;
372
391
  hasEvents?: boolean | undefined;
392
+ eventsCount?: number | undefined;
373
393
  hasGlobalWebhooks?: boolean | undefined;
374
394
  hasUdm?: boolean | undefined;
375
395
  appUuid?: string | undefined;
376
- isDeactivated?: boolean | undefined;
377
396
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
378
397
  }>, "many">>;
379
398
  }, "strip", z.ZodTypeAny, {
380
- key: string;
381
399
  id: string;
382
400
  name: string;
383
401
  appId: string;
402
+ key?: string | undefined;
403
+ uuid?: string | undefined;
404
+ description?: string | undefined;
384
405
  state?: import("..").WorkspaceElementState | undefined;
385
406
  errors?: any[] | undefined;
407
+ revision?: string | undefined;
408
+ isDeactivated?: boolean | undefined;
409
+ createdAt?: string | undefined;
410
+ updatedAt?: string | undefined;
386
411
  archivedAt?: string | undefined;
387
412
  appliedToIntegrations?: {
388
- key: string;
389
413
  id: string;
390
414
  name: string;
391
- baseUri: string;
392
415
  logoUri: string;
416
+ key?: string | undefined;
417
+ uuid?: string | undefined;
418
+ description?: string | undefined;
393
419
  state?: import("..").WorkspaceElementState | undefined;
394
420
  errors?: any[] | undefined;
395
- parameters?: any;
396
- parametersSchema?: import("../..").DataSchema | undefined;
421
+ revision?: string | undefined;
422
+ isDeactivated?: boolean | undefined;
423
+ createdAt?: string | undefined;
424
+ updatedAt?: string | undefined;
397
425
  archivedAt?: string | undefined;
426
+ parameters?: any;
398
427
  isTest?: boolean | undefined;
399
428
  connectorId?: string | undefined;
400
429
  connectorVersion?: string | undefined;
401
- authOptions?: any[] | undefined;
402
430
  oAuthCallbackUri?: string | undefined;
403
431
  hasMissingParameters?: boolean | undefined;
404
432
  hasDocumentation?: boolean | undefined;
405
433
  hasOperations?: boolean | undefined;
434
+ operationsCount?: number | undefined;
406
435
  hasData?: boolean | undefined;
436
+ dataCollectionsCount?: number | undefined;
407
437
  hasEvents?: boolean | undefined;
438
+ eventsCount?: number | undefined;
408
439
  hasGlobalWebhooks?: boolean | undefined;
409
440
  hasUdm?: boolean | undefined;
410
441
  appUuid?: string | undefined;
411
- isDeactivated?: boolean | undefined;
412
442
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
413
443
  }[] | undefined;
414
444
  scenarioTemplateId?: string | undefined;
@@ -429,38 +459,49 @@ export declare const Scenario: z.ZodObject<{
429
459
  isComplete: boolean;
430
460
  }[] | undefined;
431
461
  }, {
432
- key: string;
433
462
  id: string;
434
463
  name: string;
435
464
  appId: string;
465
+ key?: string | undefined;
466
+ uuid?: string | undefined;
467
+ description?: string | undefined;
436
468
  state?: import("..").WorkspaceElementState | undefined;
437
469
  errors?: any[] | undefined;
470
+ revision?: string | undefined;
471
+ isDeactivated?: boolean | undefined;
472
+ createdAt?: string | undefined;
473
+ updatedAt?: string | undefined;
438
474
  archivedAt?: string | undefined;
439
475
  appliedToIntegrations?: {
440
- key: string;
441
476
  id: string;
442
477
  name: string;
443
- baseUri: string;
444
478
  logoUri: string;
479
+ key?: string | undefined;
480
+ uuid?: string | undefined;
481
+ description?: string | undefined;
445
482
  state?: import("..").WorkspaceElementState | undefined;
446
483
  errors?: any[] | undefined;
447
- parameters?: any;
448
- parametersSchema?: import("../..").DataSchema | undefined;
484
+ revision?: string | undefined;
485
+ isDeactivated?: boolean | undefined;
486
+ createdAt?: string | undefined;
487
+ updatedAt?: string | undefined;
449
488
  archivedAt?: string | undefined;
489
+ parameters?: any;
450
490
  isTest?: boolean | undefined;
451
491
  connectorId?: string | undefined;
452
492
  connectorVersion?: string | undefined;
453
- authOptions?: any[] | undefined;
454
493
  oAuthCallbackUri?: string | undefined;
455
494
  hasMissingParameters?: boolean | undefined;
456
495
  hasDocumentation?: boolean | undefined;
457
496
  hasOperations?: boolean | undefined;
497
+ operationsCount?: number | undefined;
458
498
  hasData?: boolean | undefined;
499
+ dataCollectionsCount?: number | undefined;
459
500
  hasEvents?: boolean | undefined;
501
+ eventsCount?: number | undefined;
460
502
  hasGlobalWebhooks?: boolean | undefined;
461
503
  hasUdm?: boolean | undefined;
462
504
  appUuid?: string | undefined;
463
- isDeactivated?: boolean | undefined;
464
505
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
465
506
  }[] | undefined;
466
507
  scenarioTemplateId?: string | undefined;
@@ -481,6 +522,6 @@ export declare const Scenario: z.ZodObject<{
481
522
  isComplete: boolean;
482
523
  }[] | undefined;
483
524
  }>;
484
- export type Scenario = z.infer<typeof Scenario>;
485
- export type ScenarioApiResponse = Scenario;
525
+ export type ScenarioApiResponse = z.infer<typeof ScenarioApiResponse>;
526
+ export type Scenario = ScenarioApiResponse;
486
527
  export {};