@membranehq/sdk 0.4.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 (82) hide show
  1. package/dist/bundle.d.ts +16299 -1303
  2. package/dist/bundle.js +3980 -3701
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +78 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
  6. package/dist/dts/api-client.d.ts +1 -0
  7. package/dist/dts/client.d.ts +1 -0
  8. package/dist/dts/data-schema/index.d.ts +0 -1
  9. package/dist/dts/data-schema/types.d.ts +4 -3
  10. package/dist/dts/entity-repository.d.ts +88 -20
  11. package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
  12. package/dist/dts/http-requests.d.ts +20 -6
  13. package/dist/dts/iframe.d.ts +12 -4
  14. package/dist/dts/index.d.ts +2 -1
  15. package/dist/dts/sse/index.d.ts +1 -0
  16. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  17. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  18. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
  19. package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
  20. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  21. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  22. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  23. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  24. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  25. package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
  26. package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
  27. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
  28. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  29. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
  30. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
  31. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  32. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  33. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  34. package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
  35. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  36. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
  37. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  38. package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
  39. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  40. package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
  41. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
  42. package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
  43. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
  44. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
  45. package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
  46. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
  47. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
  48. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
  49. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
  50. package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
  51. package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
  52. package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
  53. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
  54. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
  55. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
  56. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
  57. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
  58. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
  59. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
  60. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
  61. package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
  62. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
  63. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
  64. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
  65. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
  66. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
  67. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
  68. package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
  69. package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
  70. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
  71. package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
  72. package/dist/dts/workspace-elements/types.d.ts +25 -3
  73. package/dist/dts/workspaces/types.d.ts +4 -3
  74. package/dist/index.d.ts +26481 -3080
  75. package/dist/index.js +1717 -535
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.module.d.mts +26481 -3080
  78. package/dist/index.module.mjs +1550 -502
  79. package/dist/index.module.mjs.map +1 -1
  80. package/package.json +3 -2
  81. package/dist/dts/data-schema/schemas.d.ts +0 -4
  82. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,27 +1,744 @@
1
- import { BaseMembraneInterface } from '../..';
2
- import { ScenarioElement, ScenarioToDo, ScenarioTemplateElements, HandyScenarioTemplateElement, ScenarioTemplateCategory } from '../../api/scenarios-api';
3
- import { MinimalConnector } from '../connectors';
4
- export interface BaseScenario extends BaseMembraneInterface {
5
- appId: string;
6
- scenarioTemplateId?: string;
7
- elements?: ScenarioElement[];
8
- connectors?: MinimalConnector[];
9
- todos?: ScenarioToDo[];
10
- archivedAt?: string;
1
+ import { z } from 'zod';
2
+ export declare enum ScenarioTemplateCategory {
3
+ DataExport = "data-export",
4
+ DataImport = "data-import",
5
+ BiDirectionalSync = "bi-directional-sync",
6
+ UnifiedApi = "unified-api",
7
+ DataEnrichment = "data-enrichment"
11
8
  }
12
- export interface ScenarioTemplate {
9
+ export declare const ScenarioToDo: z.ZodObject<{
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ isComplete: z.ZodBoolean;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ description: string;
16
+ isComplete: boolean;
17
+ }, {
18
+ name: string;
19
+ description: string;
20
+ isComplete: boolean;
21
+ }>;
22
+ export type ScenarioToDo = z.infer<typeof ScenarioToDo>;
23
+ export declare const ScenarioElement: z.ZodObject<{
24
+ id: z.ZodString;
25
+ type: z.ZodString;
26
+ element: z.ZodOptional<z.ZodAny>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: string;
29
+ id: string;
30
+ element?: any;
31
+ }, {
32
+ type: string;
33
+ id: string;
34
+ element?: any;
35
+ }>;
36
+ export type ScenarioElement = z.infer<typeof ScenarioElement>;
37
+ export declare const BaseScenario: z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ key: z.ZodOptional<z.ZodString>;
41
+ uuid: z.ZodOptional<z.ZodString>;
42
+ description: z.ZodOptional<z.ZodString>;
43
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
44
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
45
+ revision: z.ZodOptional<z.ZodString>;
46
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
47
+ createdAt: z.ZodOptional<z.ZodString>;
48
+ updatedAt: z.ZodOptional<z.ZodString>;
49
+ } & {
50
+ appId: z.ZodString;
51
+ scenarioTemplateId: z.ZodOptional<z.ZodString>;
52
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodString;
54
+ type: z.ZodString;
55
+ element: z.ZodOptional<z.ZodAny>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: string;
58
+ id: string;
59
+ element?: any;
60
+ }, {
61
+ type: string;
62
+ id: string;
63
+ element?: any;
64
+ }>, "many">>;
65
+ connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
+ id: z.ZodString;
67
+ key: z.ZodString;
68
+ name: z.ZodString;
69
+ logoUri: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ key: string;
72
+ id: string;
73
+ name: string;
74
+ logoUri: string;
75
+ }, {
76
+ key: string;
77
+ id: string;
78
+ name: string;
79
+ logoUri: string;
80
+ }>, "many">>;
81
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ name: z.ZodString;
83
+ description: z.ZodString;
84
+ isComplete: z.ZodBoolean;
85
+ }, "strip", z.ZodTypeAny, {
86
+ name: string;
87
+ description: string;
88
+ isComplete: boolean;
89
+ }, {
90
+ name: string;
91
+ description: string;
92
+ isComplete: boolean;
93
+ }>, "many">>;
94
+ archivedAt: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ id: string;
97
+ name: string;
98
+ appId: string;
99
+ key?: string | undefined;
100
+ uuid?: string | undefined;
101
+ description?: string | undefined;
102
+ state?: import("../../types").WorkspaceElementState | undefined;
103
+ errors?: any[] | undefined;
104
+ revision?: string | undefined;
105
+ isDeactivated?: boolean | undefined;
106
+ createdAt?: string | undefined;
107
+ updatedAt?: string | undefined;
108
+ archivedAt?: string | undefined;
109
+ scenarioTemplateId?: string | undefined;
110
+ elements?: {
111
+ type: string;
112
+ id: string;
113
+ element?: any;
114
+ }[] | undefined;
115
+ connectors?: {
116
+ key: string;
117
+ id: string;
118
+ name: string;
119
+ logoUri: string;
120
+ }[] | undefined;
121
+ todos?: {
122
+ name: string;
123
+ description: string;
124
+ isComplete: boolean;
125
+ }[] | undefined;
126
+ }, {
13
127
  id: string;
14
128
  name: string;
129
+ appId: string;
130
+ key?: string | undefined;
131
+ uuid?: string | undefined;
132
+ description?: string | undefined;
133
+ state?: import("../../types").WorkspaceElementState | undefined;
134
+ errors?: any[] | undefined;
135
+ revision?: string | undefined;
136
+ isDeactivated?: boolean | undefined;
137
+ createdAt?: string | undefined;
138
+ updatedAt?: string | undefined;
139
+ archivedAt?: string | undefined;
140
+ scenarioTemplateId?: string | undefined;
141
+ elements?: {
142
+ type: string;
143
+ id: string;
144
+ element?: any;
145
+ }[] | undefined;
146
+ connectors?: {
147
+ key: string;
148
+ id: string;
149
+ name: string;
150
+ logoUri: string;
151
+ }[] | undefined;
152
+ todos?: {
153
+ name: string;
154
+ description: string;
155
+ isComplete: boolean;
156
+ }[] | undefined;
157
+ }>;
158
+ export type BaseScenario = z.infer<typeof BaseScenario>;
159
+ export declare const HandyScenarioTemplateElement: z.ZodObject<{
160
+ type: z.ZodString;
161
+ integration: z.ZodOptional<z.ZodObject<{
162
+ key: z.ZodString;
163
+ connectorId: z.ZodString;
164
+ }, "strip", z.ZodTypeAny, {
165
+ key: string;
166
+ connectorId: string;
167
+ }, {
168
+ key: string;
169
+ connectorId: string;
170
+ }>>;
171
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
+ key: z.ZodString;
173
+ connectorId: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ key: string;
176
+ connectorId: string;
177
+ }, {
178
+ key: string;
179
+ connectorId: string;
180
+ }>, "many">>;
181
+ fields: z.ZodIntersection<z.ZodObject<{
182
+ key: z.ZodString;
183
+ name: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ key: string;
186
+ name: string;
187
+ }, {
188
+ key: string;
189
+ name: string;
190
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: string;
193
+ fields: {
194
+ key: string;
195
+ name: string;
196
+ } & Record<string, any>;
197
+ integration?: {
198
+ key: string;
199
+ connectorId: string;
200
+ } | undefined;
201
+ integrations?: {
202
+ key: string;
203
+ connectorId: string;
204
+ }[] | undefined;
205
+ }, {
206
+ type: string;
207
+ fields: {
208
+ key: string;
209
+ name: string;
210
+ } & Record<string, any>;
211
+ integration?: {
212
+ key: string;
213
+ connectorId: string;
214
+ } | undefined;
215
+ integrations?: {
216
+ key: string;
217
+ connectorId: string;
218
+ }[] | undefined;
219
+ }>;
220
+ export type HandyScenarioTemplateElement = z.infer<typeof HandyScenarioTemplateElement>;
221
+ export declare const ElementsExportFields: z.ZodObject<{
222
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
223
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ integrationKeys?: string[] | undefined;
226
+ }, {
227
+ integrationKeys?: string[] | undefined;
228
+ }>>>>;
229
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
230
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ integrationKeys?: string[] | undefined;
233
+ }, {
234
+ integrationKeys?: string[] | undefined;
235
+ }>>>>;
236
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
237
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ integrationKeys?: string[] | undefined;
240
+ }, {
241
+ integrationKeys?: string[] | undefined;
242
+ }>>>>;
243
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
244
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ integrationKeys?: string[] | undefined;
247
+ }, {
248
+ integrationKeys?: string[] | undefined;
249
+ }>>>>;
250
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
251
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
252
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ actions?: Record<string, any> | undefined;
255
+ flows?: Record<string, any> | undefined;
256
+ fieldMappings?: Record<string, any> | undefined;
257
+ dataSources?: Record<string, any> | undefined;
258
+ dataLinkTables?: Record<string, any> | undefined;
259
+ appEventTypes?: Record<string, any> | undefined;
260
+ appDataSchemas?: Record<string, any> | undefined;
261
+ }, {
262
+ actions?: Record<string, any> | undefined;
263
+ flows?: Record<string, any> | undefined;
264
+ fieldMappings?: Record<string, any> | undefined;
265
+ dataSources?: Record<string, any> | undefined;
266
+ dataLinkTables?: Record<string, any> | undefined;
267
+ appEventTypes?: Record<string, any> | undefined;
268
+ appDataSchemas?: Record<string, any> | undefined;
269
+ }>;
270
+ export type ElementsExportFields = z.infer<typeof ElementsExportFields>;
271
+ export declare const ScenarioTemplateElements: z.ZodIntersection<z.ZodObject<{
272
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
273
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ integrationKeys?: string[] | undefined;
276
+ }, {
277
+ integrationKeys?: string[] | undefined;
278
+ }>>>>;
279
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
280
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ integrationKeys?: string[] | undefined;
283
+ }, {
284
+ integrationKeys?: string[] | undefined;
285
+ }>>>>;
286
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
287
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ integrationKeys?: string[] | undefined;
290
+ }, {
291
+ integrationKeys?: string[] | undefined;
292
+ }>>>>;
293
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
294
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ integrationKeys?: string[] | undefined;
297
+ }, {
298
+ integrationKeys?: string[] | undefined;
299
+ }>>>>;
300
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
301
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
302
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ actions?: Record<string, any> | undefined;
305
+ flows?: Record<string, any> | undefined;
306
+ fieldMappings?: Record<string, any> | undefined;
307
+ dataSources?: Record<string, any> | undefined;
308
+ dataLinkTables?: Record<string, any> | undefined;
309
+ appEventTypes?: Record<string, any> | undefined;
310
+ appDataSchemas?: Record<string, any> | undefined;
311
+ }, {
312
+ actions?: Record<string, any> | undefined;
313
+ flows?: Record<string, any> | undefined;
314
+ fieldMappings?: Record<string, any> | undefined;
315
+ dataSources?: Record<string, any> | undefined;
316
+ dataLinkTables?: Record<string, any> | undefined;
317
+ appEventTypes?: Record<string, any> | undefined;
318
+ appDataSchemas?: Record<string, any> | undefined;
319
+ }>, z.ZodObject<{
320
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
321
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
322
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ integrationKeys?: string[] | undefined;
325
+ }, {
326
+ integrationKeys?: string[] | undefined;
327
+ }>>>>;
328
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
329
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ integrationKeys?: string[] | undefined;
332
+ }, {
333
+ integrationKeys?: string[] | undefined;
334
+ }>>>>;
335
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
336
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ integrationKeys?: string[] | undefined;
339
+ }, {
340
+ integrationKeys?: string[] | undefined;
341
+ }>>>>;
342
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
343
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ integrationKeys?: string[] | undefined;
346
+ }, {
347
+ integrationKeys?: string[] | undefined;
348
+ }>>>>;
349
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
350
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
351
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ actions?: Record<string, any> | undefined;
354
+ flows?: Record<string, any> | undefined;
355
+ fieldMappings?: Record<string, any> | undefined;
356
+ dataSources?: Record<string, any> | undefined;
357
+ dataLinkTables?: Record<string, any> | undefined;
358
+ appEventTypes?: Record<string, any> | undefined;
359
+ appDataSchemas?: Record<string, any> | undefined;
360
+ }, {
361
+ actions?: Record<string, any> | undefined;
362
+ flows?: Record<string, any> | undefined;
363
+ fieldMappings?: Record<string, any> | undefined;
364
+ dataSources?: Record<string, any> | undefined;
365
+ dataLinkTables?: Record<string, any> | undefined;
366
+ appEventTypes?: Record<string, any> | undefined;
367
+ appDataSchemas?: Record<string, any> | undefined;
368
+ }>, z.ZodObject<{
369
+ connectorId: z.ZodString;
370
+ }, "strip", z.ZodTypeAny, {
371
+ connectorId: string;
372
+ }, {
373
+ connectorId: string;
374
+ }>>>>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ integrations?: Record<string, {
377
+ actions?: Record<string, any> | undefined;
378
+ flows?: Record<string, any> | undefined;
379
+ fieldMappings?: Record<string, any> | undefined;
380
+ dataSources?: Record<string, any> | undefined;
381
+ dataLinkTables?: Record<string, any> | undefined;
382
+ appEventTypes?: Record<string, any> | undefined;
383
+ appDataSchemas?: Record<string, any> | undefined;
384
+ } & {
385
+ connectorId: string;
386
+ }> | undefined;
387
+ }, {
388
+ integrations?: Record<string, {
389
+ actions?: Record<string, any> | undefined;
390
+ flows?: Record<string, any> | undefined;
391
+ fieldMappings?: Record<string, any> | undefined;
392
+ dataSources?: Record<string, any> | undefined;
393
+ dataLinkTables?: Record<string, any> | undefined;
394
+ appEventTypes?: Record<string, any> | undefined;
395
+ appDataSchemas?: Record<string, any> | undefined;
396
+ } & {
397
+ connectorId: string;
398
+ }> | undefined;
399
+ }>>;
400
+ export type ScenarioTemplateElements = z.infer<typeof ScenarioTemplateElements>;
401
+ export declare const ScenarioTemplate: z.ZodObject<{
402
+ id: z.ZodString;
403
+ name: z.ZodString;
404
+ key: z.ZodString;
405
+ shortDescription: z.ZodOptional<z.ZodString>;
406
+ description: z.ZodOptional<z.ZodString>;
407
+ demoWorkspaceKey: z.ZodOptional<z.ZodString>;
408
+ demoAppUri: z.ZodOptional<z.ZodString>;
409
+ demoGithubRepo: z.ZodOptional<z.ZodString>;
410
+ demoVideoYoutubeUri: z.ZodOptional<z.ZodString>;
411
+ tags: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ScenarioTemplateCategory>, "many">>;
412
+ elements: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
413
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
414
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ integrationKeys?: string[] | undefined;
417
+ }, {
418
+ integrationKeys?: string[] | undefined;
419
+ }>>>>;
420
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
421
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ integrationKeys?: string[] | undefined;
424
+ }, {
425
+ integrationKeys?: string[] | undefined;
426
+ }>>>>;
427
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
428
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ integrationKeys?: string[] | undefined;
431
+ }, {
432
+ integrationKeys?: string[] | undefined;
433
+ }>>>>;
434
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
435
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ integrationKeys?: string[] | undefined;
438
+ }, {
439
+ integrationKeys?: string[] | undefined;
440
+ }>>>>;
441
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
442
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
443
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ actions?: Record<string, any> | undefined;
446
+ flows?: Record<string, any> | undefined;
447
+ fieldMappings?: Record<string, any> | undefined;
448
+ dataSources?: Record<string, any> | undefined;
449
+ dataLinkTables?: Record<string, any> | undefined;
450
+ appEventTypes?: Record<string, any> | undefined;
451
+ appDataSchemas?: Record<string, any> | undefined;
452
+ }, {
453
+ actions?: Record<string, any> | undefined;
454
+ flows?: Record<string, any> | undefined;
455
+ fieldMappings?: Record<string, any> | undefined;
456
+ dataSources?: Record<string, any> | undefined;
457
+ dataLinkTables?: Record<string, any> | undefined;
458
+ appEventTypes?: Record<string, any> | undefined;
459
+ appDataSchemas?: Record<string, any> | undefined;
460
+ }>, z.ZodObject<{
461
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
462
+ flows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
463
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ integrationKeys?: string[] | undefined;
466
+ }, {
467
+ integrationKeys?: string[] | undefined;
468
+ }>>>>;
469
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
470
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ integrationKeys?: string[] | undefined;
473
+ }, {
474
+ integrationKeys?: string[] | undefined;
475
+ }>>>>;
476
+ fieldMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
477
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ integrationKeys?: string[] | undefined;
480
+ }, {
481
+ integrationKeys?: string[] | undefined;
482
+ }>>>>;
483
+ dataSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodAny, z.ZodObject<{
484
+ integrationKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ integrationKeys?: string[] | undefined;
487
+ }, {
488
+ integrationKeys?: string[] | undefined;
489
+ }>>>>;
490
+ dataLinkTables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
491
+ appEventTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
492
+ appDataSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ actions?: Record<string, any> | undefined;
495
+ flows?: Record<string, any> | undefined;
496
+ fieldMappings?: Record<string, any> | undefined;
497
+ dataSources?: Record<string, any> | undefined;
498
+ dataLinkTables?: Record<string, any> | undefined;
499
+ appEventTypes?: Record<string, any> | undefined;
500
+ appDataSchemas?: Record<string, any> | undefined;
501
+ }, {
502
+ actions?: Record<string, any> | undefined;
503
+ flows?: Record<string, any> | undefined;
504
+ fieldMappings?: Record<string, any> | undefined;
505
+ dataSources?: Record<string, any> | undefined;
506
+ dataLinkTables?: Record<string, any> | undefined;
507
+ appEventTypes?: Record<string, any> | undefined;
508
+ appDataSchemas?: Record<string, any> | undefined;
509
+ }>, z.ZodObject<{
510
+ connectorId: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ connectorId: string;
513
+ }, {
514
+ connectorId: string;
515
+ }>>>>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ integrations?: Record<string, {
518
+ actions?: Record<string, any> | undefined;
519
+ flows?: Record<string, any> | undefined;
520
+ fieldMappings?: Record<string, any> | undefined;
521
+ dataSources?: Record<string, any> | undefined;
522
+ dataLinkTables?: Record<string, any> | undefined;
523
+ appEventTypes?: Record<string, any> | undefined;
524
+ appDataSchemas?: Record<string, any> | undefined;
525
+ } & {
526
+ connectorId: string;
527
+ }> | undefined;
528
+ }, {
529
+ integrations?: Record<string, {
530
+ actions?: Record<string, any> | undefined;
531
+ flows?: Record<string, any> | undefined;
532
+ fieldMappings?: Record<string, any> | undefined;
533
+ dataSources?: Record<string, any> | undefined;
534
+ dataLinkTables?: Record<string, any> | undefined;
535
+ appEventTypes?: Record<string, any> | undefined;
536
+ appDataSchemas?: Record<string, any> | undefined;
537
+ } & {
538
+ connectorId: string;
539
+ }> | undefined;
540
+ }>>>;
541
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
542
+ name: z.ZodString;
543
+ description: z.ZodString;
544
+ isComplete: z.ZodBoolean;
545
+ }, "isComplete">, "strip", z.ZodTypeAny, {
546
+ name: string;
547
+ description: string;
548
+ }, {
549
+ name: string;
550
+ description: string;
551
+ }>, "many">>;
552
+ connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
553
+ id: z.ZodString;
554
+ key: z.ZodString;
555
+ name: z.ZodString;
556
+ logoUri: z.ZodString;
557
+ }, "strip", z.ZodTypeAny, {
558
+ key: string;
559
+ id: string;
560
+ name: string;
561
+ logoUri: string;
562
+ }, {
563
+ key: string;
564
+ id: string;
565
+ name: string;
566
+ logoUri: string;
567
+ }>, "many">>;
568
+ handyElements: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ type: z.ZodString;
570
+ integration: z.ZodOptional<z.ZodObject<{
571
+ key: z.ZodString;
572
+ connectorId: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ key: string;
575
+ connectorId: string;
576
+ }, {
577
+ key: string;
578
+ connectorId: string;
579
+ }>>;
580
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
581
+ key: z.ZodString;
582
+ connectorId: z.ZodString;
583
+ }, "strip", z.ZodTypeAny, {
584
+ key: string;
585
+ connectorId: string;
586
+ }, {
587
+ key: string;
588
+ connectorId: string;
589
+ }>, "many">>;
590
+ fields: z.ZodIntersection<z.ZodObject<{
591
+ key: z.ZodString;
592
+ name: z.ZodString;
593
+ }, "strip", z.ZodTypeAny, {
594
+ key: string;
595
+ name: string;
596
+ }, {
597
+ key: string;
598
+ name: string;
599
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: string;
602
+ fields: {
603
+ key: string;
604
+ name: string;
605
+ } & Record<string, any>;
606
+ integration?: {
607
+ key: string;
608
+ connectorId: string;
609
+ } | undefined;
610
+ integrations?: {
611
+ key: string;
612
+ connectorId: string;
613
+ }[] | undefined;
614
+ }, {
615
+ type: string;
616
+ fields: {
617
+ key: string;
618
+ name: string;
619
+ } & Record<string, any>;
620
+ integration?: {
621
+ key: string;
622
+ connectorId: string;
623
+ } | undefined;
624
+ integrations?: {
625
+ key: string;
626
+ connectorId: string;
627
+ }[] | undefined;
628
+ }>, "many">>;
629
+ }, "strip", z.ZodTypeAny, {
15
630
  key: string;
16
- shortDescription?: string;
17
- description?: string;
18
- demoWorkspaceKey?: string;
19
- demoAppUri?: string;
20
- demoGithubRepo?: string;
21
- demoVideoYoutubeUri?: string;
22
- tags?: ScenarioTemplateCategory[];
23
- elements?: ScenarioTemplateElements;
24
- todos?: Omit<ScenarioToDo, 'isComplete'>[];
25
- connectors?: MinimalConnector[];
26
- handyElements?: HandyScenarioTemplateElement[];
27
- }
631
+ id: string;
632
+ name: string;
633
+ description?: string | undefined;
634
+ elements?: ({
635
+ actions?: Record<string, any> | undefined;
636
+ flows?: Record<string, any> | undefined;
637
+ fieldMappings?: Record<string, any> | undefined;
638
+ dataSources?: Record<string, any> | undefined;
639
+ dataLinkTables?: Record<string, any> | undefined;
640
+ appEventTypes?: Record<string, any> | undefined;
641
+ appDataSchemas?: Record<string, any> | undefined;
642
+ } & {
643
+ integrations?: Record<string, {
644
+ actions?: Record<string, any> | undefined;
645
+ flows?: Record<string, any> | undefined;
646
+ fieldMappings?: Record<string, any> | undefined;
647
+ dataSources?: Record<string, any> | undefined;
648
+ dataLinkTables?: Record<string, any> | undefined;
649
+ appEventTypes?: Record<string, any> | undefined;
650
+ appDataSchemas?: Record<string, any> | undefined;
651
+ } & {
652
+ connectorId: string;
653
+ }> | undefined;
654
+ }) | undefined;
655
+ connectors?: {
656
+ key: string;
657
+ id: string;
658
+ name: string;
659
+ logoUri: string;
660
+ }[] | undefined;
661
+ todos?: {
662
+ name: string;
663
+ description: string;
664
+ }[] | undefined;
665
+ shortDescription?: string | undefined;
666
+ demoWorkspaceKey?: string | undefined;
667
+ demoAppUri?: string | undefined;
668
+ demoGithubRepo?: string | undefined;
669
+ demoVideoYoutubeUri?: string | undefined;
670
+ tags?: ScenarioTemplateCategory[] | undefined;
671
+ handyElements?: {
672
+ type: string;
673
+ fields: {
674
+ key: string;
675
+ name: string;
676
+ } & Record<string, any>;
677
+ integration?: {
678
+ key: string;
679
+ connectorId: string;
680
+ } | undefined;
681
+ integrations?: {
682
+ key: string;
683
+ connectorId: string;
684
+ }[] | undefined;
685
+ }[] | undefined;
686
+ }, {
687
+ key: string;
688
+ id: string;
689
+ name: string;
690
+ description?: string | undefined;
691
+ elements?: ({
692
+ actions?: Record<string, any> | undefined;
693
+ flows?: Record<string, any> | undefined;
694
+ fieldMappings?: Record<string, any> | undefined;
695
+ dataSources?: Record<string, any> | undefined;
696
+ dataLinkTables?: Record<string, any> | undefined;
697
+ appEventTypes?: Record<string, any> | undefined;
698
+ appDataSchemas?: Record<string, any> | undefined;
699
+ } & {
700
+ integrations?: Record<string, {
701
+ actions?: Record<string, any> | undefined;
702
+ flows?: Record<string, any> | undefined;
703
+ fieldMappings?: Record<string, any> | undefined;
704
+ dataSources?: Record<string, any> | undefined;
705
+ dataLinkTables?: Record<string, any> | undefined;
706
+ appEventTypes?: Record<string, any> | undefined;
707
+ appDataSchemas?: Record<string, any> | undefined;
708
+ } & {
709
+ connectorId: string;
710
+ }> | undefined;
711
+ }) | undefined;
712
+ connectors?: {
713
+ key: string;
714
+ id: string;
715
+ name: string;
716
+ logoUri: string;
717
+ }[] | undefined;
718
+ todos?: {
719
+ name: string;
720
+ description: string;
721
+ }[] | undefined;
722
+ shortDescription?: string | undefined;
723
+ demoWorkspaceKey?: string | undefined;
724
+ demoAppUri?: string | undefined;
725
+ demoGithubRepo?: string | undefined;
726
+ demoVideoYoutubeUri?: string | undefined;
727
+ tags?: ScenarioTemplateCategory[] | undefined;
728
+ handyElements?: {
729
+ type: string;
730
+ fields: {
731
+ key: string;
732
+ name: string;
733
+ } & Record<string, any>;
734
+ integration?: {
735
+ key: string;
736
+ connectorId: string;
737
+ } | undefined;
738
+ integrations?: {
739
+ key: string;
740
+ connectorId: string;
741
+ }[] | undefined;
742
+ }[] | undefined;
743
+ }>;
744
+ export type ScenarioTemplate = z.infer<typeof ScenarioTemplate>;