@membranehq/sdk 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/bundle.d.ts +13011 -5117
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +31 -10
  5. package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
  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 +529 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
  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 +387 -97
  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 +541 -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 +1590 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
  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 +28 -12
  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 +18 -12
  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 +6 -6
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
  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 +26 -12
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
  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 +4 -3
  61. package/dist/index.d.ts +21959 -8561
  62. package/dist/index.js +258 -109
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +21959 -8561
  65. package/dist/index.module.mjs +225 -101
  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';
@@ -49,7 +49,7 @@ export declare const FindIntegrationsQuery: z.ZodObject<{
49
49
  cursor?: string | undefined;
50
50
  }>;
51
51
  export type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
52
- export interface FindIntegrationsResponse extends PaginationResponse<Integration> {
52
+ export interface FindIntegrationsResponse extends PaginationResponse<IntegrationApiResponse> {
53
53
  }
54
54
  export declare const OpenNewConnectionOptions: z.ZodObject<{
55
55
  allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
@@ -72,18 +72,55 @@ export declare const OpenNewConnectionOptions: z.ZodObject<{
72
72
  allowMultipleConnections?: boolean | undefined;
73
73
  }>;
74
74
  export type OpenNewConnectionOptions = z.infer<typeof OpenNewConnectionOptions>;
75
- export declare const Integration: z.ZodObject<{
75
+ export declare const IntegrationApiResponse: z.ZodObject<{
76
76
  id: z.ZodString;
77
77
  name: z.ZodString;
78
- } & {
79
- key: z.ZodString;
78
+ key: z.ZodOptional<z.ZodString>;
79
+ uuid: z.ZodOptional<z.ZodString>;
80
+ description: z.ZodOptional<z.ZodString>;
80
81
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
81
82
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
83
+ revision: z.ZodOptional<z.ZodString>;
84
+ createdAt: z.ZodOptional<z.ZodString>;
85
+ updatedAt: z.ZodOptional<z.ZodString>;
82
86
  } & {
83
87
  logoUri: z.ZodString;
84
88
  connectorId: z.ZodOptional<z.ZodString>;
85
89
  connectorVersion: z.ZodOptional<z.ZodString>;
86
- authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
90
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ key: z.ZodString;
92
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
93
+ title: z.ZodOptional<z.ZodString>;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ ui: z.ZodOptional<z.ZodObject<{
96
+ schema: z.ZodOptional<z.ZodAny>;
97
+ helpUri: z.ZodOptional<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ schema?: any;
100
+ helpUri?: string | undefined;
101
+ }, {
102
+ schema?: any;
103
+ helpUri?: string | undefined;
104
+ }>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ key: string;
107
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
108
+ description?: string | undefined;
109
+ title?: string | undefined;
110
+ ui?: {
111
+ schema?: any;
112
+ helpUri?: string | undefined;
113
+ } | undefined;
114
+ }, {
115
+ key: string;
116
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
117
+ description?: string | undefined;
118
+ title?: string | undefined;
119
+ ui?: {
120
+ schema?: any;
121
+ helpUri?: string | undefined;
122
+ } | undefined;
123
+ }>, "many">>;
87
124
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
88
125
  parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
89
126
  parameters: z.ZodOptional<z.ZodAny>;
@@ -92,8 +129,11 @@ export declare const Integration: z.ZodObject<{
92
129
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
93
130
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
94
131
  hasOperations: z.ZodOptional<z.ZodBoolean>;
132
+ operationsCount: z.ZodOptional<z.ZodNumber>;
95
133
  hasData: z.ZodOptional<z.ZodBoolean>;
134
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
96
135
  hasEvents: z.ZodOptional<z.ZodBoolean>;
136
+ eventsCount: z.ZodOptional<z.ZodNumber>;
97
137
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
98
138
  hasUdm: z.ZodOptional<z.ZodBoolean>;
99
139
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -106,155 +146,199 @@ export declare const Integration: z.ZodObject<{
106
146
  } & {
107
147
  name: z.ZodString;
108
148
  userId: z.ZodString;
149
+ isTest: z.ZodOptional<z.ZodBoolean>;
109
150
  disconnected: z.ZodOptional<z.ZodBoolean>;
151
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
110
152
  error: any;
111
153
  integrationId: z.ZodString;
112
154
  credentials: z.ZodOptional<z.ZodUnknown>;
113
155
  parameters: z.ZodOptional<z.ZodUnknown>;
114
156
  connectorParameters: z.ZodOptional<z.ZodUnknown>;
115
- accessToken: z.ZodOptional<z.ZodString>;
116
- refreshToken: z.ZodOptional<z.ZodString>;
117
157
  createdAt: z.ZodString;
118
158
  updatedAt: z.ZodString;
119
159
  lastActiveAt: z.ZodOptional<z.ZodString>;
120
160
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
121
161
  archivedAt: z.ZodOptional<z.ZodString>;
162
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
122
163
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
123
164
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
165
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
124
166
  }, "strip", z.ZodTypeAny, {
125
167
  id: string;
126
168
  name: string;
127
- userId: string;
128
- integrationId: string;
129
169
  createdAt: string;
130
170
  updatedAt: string;
171
+ userId: string;
172
+ integrationId: string;
131
173
  error?: any;
132
174
  state?: import("..").WorkspaceElementState | undefined;
133
175
  errors?: any[] | undefined;
134
- accessToken?: string | undefined;
176
+ isDeactivated?: boolean | undefined;
177
+ archivedAt?: string | undefined;
135
178
  credentials?: unknown;
136
179
  parameters?: unknown;
137
180
  connectorParameters?: unknown;
181
+ isTest?: boolean | undefined;
138
182
  disconnected?: boolean | undefined;
139
- refreshToken?: string | undefined;
183
+ isDefunct?: boolean | undefined;
140
184
  lastActiveAt?: string | undefined;
141
185
  nextCredentialsRefreshAt?: string | undefined;
142
- archivedAt?: string | undefined;
186
+ meta?: Record<string, any> | undefined;
143
187
  }, {
144
188
  id: string;
145
189
  name: string;
146
- userId: string;
147
- integrationId: string;
148
190
  createdAt: string;
149
191
  updatedAt: string;
192
+ userId: string;
193
+ integrationId: string;
150
194
  error?: any;
151
195
  state?: import("..").WorkspaceElementState | undefined;
152
196
  errors?: any[] | undefined;
153
- accessToken?: string | undefined;
197
+ isDeactivated?: boolean | undefined;
198
+ archivedAt?: string | undefined;
154
199
  credentials?: unknown;
155
200
  parameters?: unknown;
156
201
  connectorParameters?: unknown;
202
+ isTest?: boolean | undefined;
157
203
  disconnected?: boolean | undefined;
158
- refreshToken?: string | undefined;
204
+ isDefunct?: boolean | undefined;
159
205
  lastActiveAt?: string | undefined;
160
206
  nextCredentialsRefreshAt?: string | undefined;
161
- archivedAt?: string | undefined;
207
+ meta?: Record<string, any> | undefined;
162
208
  }>>;
163
209
  spec: z.ZodOptional<z.ZodAny>;
164
210
  }, "strip", z.ZodTypeAny, {
165
- key: string;
166
211
  id: string;
167
212
  name: string;
168
213
  baseUri: string;
169
214
  logoUri: string;
215
+ key?: string | undefined;
170
216
  connection?: {
171
217
  id: string;
172
218
  name: string;
173
- userId: string;
174
- integrationId: string;
175
219
  createdAt: string;
176
220
  updatedAt: string;
221
+ userId: string;
222
+ integrationId: string;
177
223
  error?: any;
178
224
  state?: import("..").WorkspaceElementState | undefined;
179
225
  errors?: any[] | undefined;
180
- accessToken?: string | undefined;
226
+ isDeactivated?: boolean | undefined;
227
+ archivedAt?: string | undefined;
181
228
  credentials?: unknown;
182
229
  parameters?: unknown;
183
230
  connectorParameters?: unknown;
231
+ isTest?: boolean | undefined;
184
232
  disconnected?: boolean | undefined;
185
- refreshToken?: string | undefined;
233
+ isDefunct?: boolean | undefined;
186
234
  lastActiveAt?: string | undefined;
187
235
  nextCredentialsRefreshAt?: string | undefined;
188
- archivedAt?: string | undefined;
236
+ meta?: Record<string, any> | undefined;
189
237
  } | undefined;
238
+ uuid?: string | undefined;
239
+ description?: string | undefined;
190
240
  state?: import("..").WorkspaceElementState | undefined;
191
241
  errors?: any[] | undefined;
242
+ revision?: string | undefined;
243
+ isDeactivated?: boolean | undefined;
244
+ createdAt?: string | undefined;
245
+ updatedAt?: string | undefined;
246
+ archivedAt?: string | undefined;
192
247
  parameters?: any;
193
248
  parametersSchema?: import("../..").DataSchema | undefined;
194
- archivedAt?: string | undefined;
195
249
  isTest?: boolean | undefined;
196
250
  connectorId?: string | undefined;
197
251
  connectorVersion?: string | undefined;
198
- authOptions?: any[] | undefined;
252
+ authOptions?: {
253
+ key: string;
254
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
255
+ description?: string | undefined;
256
+ title?: string | undefined;
257
+ ui?: {
258
+ schema?: any;
259
+ helpUri?: string | undefined;
260
+ } | undefined;
261
+ }[] | undefined;
199
262
  oAuthCallbackUri?: string | undefined;
200
263
  hasMissingParameters?: boolean | undefined;
201
264
  hasDocumentation?: boolean | undefined;
202
265
  hasOperations?: boolean | undefined;
266
+ operationsCount?: number | undefined;
203
267
  hasData?: boolean | undefined;
268
+ dataCollectionsCount?: number | undefined;
204
269
  hasEvents?: boolean | undefined;
270
+ eventsCount?: number | undefined;
205
271
  hasGlobalWebhooks?: boolean | undefined;
206
272
  hasUdm?: boolean | undefined;
207
273
  appUuid?: string | undefined;
208
- isDeactivated?: boolean | undefined;
209
274
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
210
275
  spec?: any;
211
276
  }, {
212
- key: string;
213
277
  id: string;
214
278
  name: string;
215
279
  baseUri: string;
216
280
  logoUri: string;
281
+ key?: string | undefined;
217
282
  connection?: {
218
283
  id: string;
219
284
  name: string;
220
- userId: string;
221
- integrationId: string;
222
285
  createdAt: string;
223
286
  updatedAt: string;
287
+ userId: string;
288
+ integrationId: string;
224
289
  error?: any;
225
290
  state?: import("..").WorkspaceElementState | undefined;
226
291
  errors?: any[] | undefined;
227
- accessToken?: string | undefined;
292
+ isDeactivated?: boolean | undefined;
293
+ archivedAt?: string | undefined;
228
294
  credentials?: unknown;
229
295
  parameters?: unknown;
230
296
  connectorParameters?: unknown;
297
+ isTest?: boolean | undefined;
231
298
  disconnected?: boolean | undefined;
232
- refreshToken?: string | undefined;
299
+ isDefunct?: boolean | undefined;
233
300
  lastActiveAt?: string | undefined;
234
301
  nextCredentialsRefreshAt?: string | undefined;
235
- archivedAt?: string | undefined;
302
+ meta?: Record<string, any> | undefined;
236
303
  } | undefined;
304
+ uuid?: string | undefined;
305
+ description?: string | undefined;
237
306
  state?: import("..").WorkspaceElementState | undefined;
238
307
  errors?: any[] | undefined;
308
+ revision?: string | undefined;
309
+ isDeactivated?: boolean | undefined;
310
+ createdAt?: string | undefined;
311
+ updatedAt?: string | undefined;
312
+ archivedAt?: string | undefined;
239
313
  parameters?: any;
240
314
  parametersSchema?: import("../..").DataSchema | undefined;
241
- archivedAt?: string | undefined;
242
315
  isTest?: boolean | undefined;
243
316
  connectorId?: string | undefined;
244
317
  connectorVersion?: string | undefined;
245
- authOptions?: any[] | undefined;
318
+ authOptions?: {
319
+ key: string;
320
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
321
+ description?: string | undefined;
322
+ title?: string | undefined;
323
+ ui?: {
324
+ schema?: any;
325
+ helpUri?: string | undefined;
326
+ } | undefined;
327
+ }[] | undefined;
246
328
  oAuthCallbackUri?: string | undefined;
247
329
  hasMissingParameters?: boolean | undefined;
248
330
  hasDocumentation?: boolean | undefined;
249
331
  hasOperations?: boolean | undefined;
332
+ operationsCount?: number | undefined;
250
333
  hasData?: boolean | undefined;
334
+ dataCollectionsCount?: number | undefined;
251
335
  hasEvents?: boolean | undefined;
336
+ eventsCount?: number | undefined;
252
337
  hasGlobalWebhooks?: boolean | undefined;
253
338
  hasUdm?: boolean | undefined;
254
339
  appUuid?: string | undefined;
255
- isDeactivated?: boolean | undefined;
256
340
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
257
341
  spec?: any;
258
342
  }>;
259
- export type Integration = z.infer<typeof Integration>;
260
- export type IntegrationApiResponse = Integration;
343
+ export type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
344
+ 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,15 +303,52 @@ 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">>;
318
+ authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
+ key: z.ZodString;
320
+ type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
321
+ title: z.ZodOptional<z.ZodString>;
322
+ description: z.ZodOptional<z.ZodString>;
323
+ ui: z.ZodOptional<z.ZodObject<{
324
+ schema: z.ZodOptional<z.ZodAny>;
325
+ helpUri: z.ZodOptional<z.ZodString>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ schema?: any;
328
+ helpUri?: string | undefined;
329
+ }, {
330
+ schema?: any;
331
+ helpUri?: string | undefined;
332
+ }>>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ key: string;
335
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
336
+ description?: string | undefined;
337
+ title?: string | undefined;
338
+ ui?: {
339
+ schema?: any;
340
+ helpUri?: string | undefined;
341
+ } | undefined;
342
+ }, {
343
+ key: string;
344
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
345
+ description?: string | undefined;
346
+ title?: string | undefined;
347
+ ui?: {
348
+ schema?: any;
349
+ helpUri?: string | undefined;
350
+ } | undefined;
351
+ }>, "many">>;
310
352
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
311
353
  parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
312
354
  parameters: z.ZodOptional<z.ZodAny>;
@@ -315,8 +357,11 @@ export declare const Scenario: z.ZodObject<{
315
357
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
316
358
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
317
359
  hasOperations: z.ZodOptional<z.ZodBoolean>;
360
+ operationsCount: z.ZodOptional<z.ZodNumber>;
318
361
  hasData: z.ZodOptional<z.ZodBoolean>;
362
+ dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
319
363
  hasEvents: z.ZodOptional<z.ZodBoolean>;
364
+ eventsCount: z.ZodOptional<z.ZodNumber>;
320
365
  hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
321
366
  hasUdm: z.ZodOptional<z.ZodBoolean>;
322
367
  isTest: z.ZodOptional<z.ZodBoolean>;
@@ -324,91 +369,148 @@ export declare const Scenario: z.ZodObject<{
324
369
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
325
370
  authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
326
371
  }, "strip", z.ZodTypeAny, {
327
- key: string;
328
372
  id: string;
329
373
  name: string;
330
374
  baseUri: string;
331
375
  logoUri: string;
376
+ key?: string | undefined;
377
+ uuid?: string | undefined;
378
+ description?: string | undefined;
332
379
  state?: import("..").WorkspaceElementState | undefined;
333
380
  errors?: any[] | undefined;
381
+ revision?: string | undefined;
382
+ isDeactivated?: boolean | undefined;
383
+ createdAt?: string | undefined;
384
+ updatedAt?: string | undefined;
385
+ archivedAt?: string | undefined;
334
386
  parameters?: any;
335
387
  parametersSchema?: import("../..").DataSchema | undefined;
336
- archivedAt?: string | undefined;
337
388
  isTest?: boolean | undefined;
338
389
  connectorId?: string | undefined;
339
390
  connectorVersion?: string | undefined;
340
- authOptions?: any[] | undefined;
391
+ authOptions?: {
392
+ key: string;
393
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
394
+ description?: string | undefined;
395
+ title?: string | undefined;
396
+ ui?: {
397
+ schema?: any;
398
+ helpUri?: string | undefined;
399
+ } | undefined;
400
+ }[] | undefined;
341
401
  oAuthCallbackUri?: string | undefined;
342
402
  hasMissingParameters?: boolean | undefined;
343
403
  hasDocumentation?: boolean | undefined;
344
404
  hasOperations?: boolean | undefined;
405
+ operationsCount?: number | undefined;
345
406
  hasData?: boolean | undefined;
407
+ dataCollectionsCount?: number | undefined;
346
408
  hasEvents?: boolean | undefined;
409
+ eventsCount?: number | undefined;
347
410
  hasGlobalWebhooks?: boolean | undefined;
348
411
  hasUdm?: boolean | undefined;
349
412
  appUuid?: string | undefined;
350
- isDeactivated?: boolean | undefined;
351
413
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
352
414
  }, {
353
- key: string;
354
415
  id: string;
355
416
  name: string;
356
417
  baseUri: string;
357
418
  logoUri: string;
419
+ key?: string | undefined;
420
+ uuid?: string | undefined;
421
+ description?: string | undefined;
358
422
  state?: import("..").WorkspaceElementState | undefined;
359
423
  errors?: any[] | undefined;
424
+ revision?: string | undefined;
425
+ isDeactivated?: boolean | undefined;
426
+ createdAt?: string | undefined;
427
+ updatedAt?: string | undefined;
428
+ archivedAt?: string | undefined;
360
429
  parameters?: any;
361
430
  parametersSchema?: import("../..").DataSchema | undefined;
362
- archivedAt?: string | undefined;
363
431
  isTest?: boolean | undefined;
364
432
  connectorId?: string | undefined;
365
433
  connectorVersion?: string | undefined;
366
- authOptions?: any[] | undefined;
434
+ authOptions?: {
435
+ key: string;
436
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
437
+ description?: string | undefined;
438
+ title?: string | undefined;
439
+ ui?: {
440
+ schema?: any;
441
+ helpUri?: string | undefined;
442
+ } | undefined;
443
+ }[] | undefined;
367
444
  oAuthCallbackUri?: string | undefined;
368
445
  hasMissingParameters?: boolean | undefined;
369
446
  hasDocumentation?: boolean | undefined;
370
447
  hasOperations?: boolean | undefined;
448
+ operationsCount?: number | undefined;
371
449
  hasData?: boolean | undefined;
450
+ dataCollectionsCount?: number | undefined;
372
451
  hasEvents?: boolean | undefined;
452
+ eventsCount?: number | undefined;
373
453
  hasGlobalWebhooks?: boolean | undefined;
374
454
  hasUdm?: boolean | undefined;
375
455
  appUuid?: string | undefined;
376
- isDeactivated?: boolean | undefined;
377
456
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
378
457
  }>, "many">>;
379
458
  }, "strip", z.ZodTypeAny, {
380
- key: string;
381
459
  id: string;
382
460
  name: string;
383
461
  appId: string;
462
+ key?: string | undefined;
463
+ uuid?: string | undefined;
464
+ description?: string | undefined;
384
465
  state?: import("..").WorkspaceElementState | undefined;
385
466
  errors?: any[] | undefined;
467
+ revision?: string | undefined;
468
+ isDeactivated?: boolean | undefined;
469
+ createdAt?: string | undefined;
470
+ updatedAt?: string | undefined;
386
471
  archivedAt?: string | undefined;
387
472
  appliedToIntegrations?: {
388
- key: string;
389
473
  id: string;
390
474
  name: string;
391
475
  baseUri: string;
392
476
  logoUri: string;
477
+ key?: string | undefined;
478
+ uuid?: string | undefined;
479
+ description?: string | undefined;
393
480
  state?: import("..").WorkspaceElementState | undefined;
394
481
  errors?: any[] | undefined;
482
+ revision?: string | undefined;
483
+ isDeactivated?: boolean | undefined;
484
+ createdAt?: string | undefined;
485
+ updatedAt?: string | undefined;
486
+ archivedAt?: string | undefined;
395
487
  parameters?: any;
396
488
  parametersSchema?: import("../..").DataSchema | undefined;
397
- archivedAt?: string | undefined;
398
489
  isTest?: boolean | undefined;
399
490
  connectorId?: string | undefined;
400
491
  connectorVersion?: string | undefined;
401
- authOptions?: any[] | undefined;
492
+ authOptions?: {
493
+ key: string;
494
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
495
+ description?: string | undefined;
496
+ title?: string | undefined;
497
+ ui?: {
498
+ schema?: any;
499
+ helpUri?: string | undefined;
500
+ } | undefined;
501
+ }[] | undefined;
402
502
  oAuthCallbackUri?: string | undefined;
403
503
  hasMissingParameters?: boolean | undefined;
404
504
  hasDocumentation?: boolean | undefined;
405
505
  hasOperations?: boolean | undefined;
506
+ operationsCount?: number | undefined;
406
507
  hasData?: boolean | undefined;
508
+ dataCollectionsCount?: number | undefined;
407
509
  hasEvents?: boolean | undefined;
510
+ eventsCount?: number | undefined;
408
511
  hasGlobalWebhooks?: boolean | undefined;
409
512
  hasUdm?: boolean | undefined;
410
513
  appUuid?: string | undefined;
411
- isDeactivated?: boolean | undefined;
412
514
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
413
515
  }[] | undefined;
414
516
  scenarioTemplateId?: string | undefined;
@@ -429,38 +531,61 @@ export declare const Scenario: z.ZodObject<{
429
531
  isComplete: boolean;
430
532
  }[] | undefined;
431
533
  }, {
432
- key: string;
433
534
  id: string;
434
535
  name: string;
435
536
  appId: string;
537
+ key?: string | undefined;
538
+ uuid?: string | undefined;
539
+ description?: string | undefined;
436
540
  state?: import("..").WorkspaceElementState | undefined;
437
541
  errors?: any[] | undefined;
542
+ revision?: string | undefined;
543
+ isDeactivated?: boolean | undefined;
544
+ createdAt?: string | undefined;
545
+ updatedAt?: string | undefined;
438
546
  archivedAt?: string | undefined;
439
547
  appliedToIntegrations?: {
440
- key: string;
441
548
  id: string;
442
549
  name: string;
443
550
  baseUri: string;
444
551
  logoUri: string;
552
+ key?: string | undefined;
553
+ uuid?: string | undefined;
554
+ description?: string | undefined;
445
555
  state?: import("..").WorkspaceElementState | undefined;
446
556
  errors?: any[] | undefined;
557
+ revision?: string | undefined;
558
+ isDeactivated?: boolean | undefined;
559
+ createdAt?: string | undefined;
560
+ updatedAt?: string | undefined;
561
+ archivedAt?: string | undefined;
447
562
  parameters?: any;
448
563
  parametersSchema?: import("../..").DataSchema | undefined;
449
- archivedAt?: string | undefined;
450
564
  isTest?: boolean | undefined;
451
565
  connectorId?: string | undefined;
452
566
  connectorVersion?: string | undefined;
453
- authOptions?: any[] | undefined;
567
+ authOptions?: {
568
+ key: string;
569
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
570
+ description?: string | undefined;
571
+ title?: string | undefined;
572
+ ui?: {
573
+ schema?: any;
574
+ helpUri?: string | undefined;
575
+ } | undefined;
576
+ }[] | undefined;
454
577
  oAuthCallbackUri?: string | undefined;
455
578
  hasMissingParameters?: boolean | undefined;
456
579
  hasDocumentation?: boolean | undefined;
457
580
  hasOperations?: boolean | undefined;
581
+ operationsCount?: number | undefined;
458
582
  hasData?: boolean | undefined;
583
+ dataCollectionsCount?: number | undefined;
459
584
  hasEvents?: boolean | undefined;
585
+ eventsCount?: number | undefined;
460
586
  hasGlobalWebhooks?: boolean | undefined;
461
587
  hasUdm?: boolean | undefined;
462
588
  appUuid?: string | undefined;
463
- isDeactivated?: boolean | undefined;
464
589
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
465
590
  }[] | undefined;
466
591
  scenarioTemplateId?: string | undefined;
@@ -481,6 +606,6 @@ export declare const Scenario: z.ZodObject<{
481
606
  isComplete: boolean;
482
607
  }[] | undefined;
483
608
  }>;
484
- export type Scenario = z.infer<typeof Scenario>;
485
- export type ScenarioApiResponse = Scenario;
609
+ export type ScenarioApiResponse = z.infer<typeof ScenarioApiResponse>;
610
+ export type Scenario = ScenarioApiResponse;
486
611
  export {};