@membranehq/sdk 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/bundle.d.ts +2283 -14038
  2. package/dist/bundle.js +3949 -4253
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +28 -28
  5. package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
  6. package/dist/dts/config/index.d.ts +1 -11
  7. package/dist/dts/date-time/business-day.d.ts +2 -0
  8. package/dist/dts/date-time/business-day.test.d.ts +1 -0
  9. package/dist/dts/date-time/index.d.ts +1 -0
  10. package/dist/dts/entity-repository.d.ts +13 -64
  11. package/dist/dts/http-requests.d.ts +2 -14
  12. package/dist/dts/iframe.d.ts +4 -12
  13. package/dist/dts/scenario-templates/index.d.ts +60 -484
  14. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
  15. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
  17. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
  18. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
  19. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
  20. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
  21. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
  23. package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
  24. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
  25. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
  26. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +86 -1359
  27. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +164 -880
  28. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
  29. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
  30. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
  31. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
  32. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +125 -2363
  33. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +109 -666
  34. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
  35. package/dist/dts/workspace-elements/api/flows-api.d.ts +273 -1874
  36. package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
  37. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
  38. package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
  47. package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
  48. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
  49. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
  50. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
  51. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
  52. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
  53. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
  54. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +57 -2
  55. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
  56. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
  57. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
  58. package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
  59. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +10 -77
  60. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +71 -1
  61. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
  63. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
  64. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
  65. package/dist/dts/workspace-elements/base/flows/index.d.ts +80 -1
  66. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +30 -1
  67. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  68. package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
  69. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
  70. package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
  71. package/dist/dts/workspace-elements/types.d.ts +15 -153
  72. package/dist/index.browser.d.mts +7609 -26109
  73. package/dist/index.browser.d.ts +7609 -26109
  74. package/dist/index.browser.js +420 -419
  75. package/dist/index.browser.js.map +1 -1
  76. package/dist/index.browser.mjs +412 -415
  77. package/dist/index.browser.mjs.map +1 -1
  78. package/dist/index.node.d.mts +7537 -26047
  79. package/dist/index.node.d.ts +7537 -26047
  80. package/dist/index.node.js +420 -419
  81. package/dist/index.node.js.map +1 -1
  82. package/dist/index.node.mjs +412 -415
  83. package/dist/index.node.mjs.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  86. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  87. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  88. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
@@ -2,41 +2,21 @@ import { z } from 'zod';
2
2
  import { IntegrationElementType } from '../../integration-elements';
3
3
  export declare const ScenarioElementApi: z.ZodObject<{
4
4
  id: z.ZodString;
5
- type: z.ZodNativeEnum<typeof IntegrationElementType>;
5
+ type: z.ZodEnum<typeof IntegrationElementType>;
6
6
  element: z.ZodOptional<z.ZodAny>;
7
- }, "strip", z.ZodTypeAny, {
8
- type: IntegrationElementType;
9
- id: string;
10
- element?: any;
11
- }, {
12
- type: IntegrationElementType;
13
- id: string;
14
- element?: any;
15
- }>;
7
+ }, z.core.$strip>;
16
8
  export type ScenarioElementApi = z.infer<typeof ScenarioElementApi>;
17
9
  export declare const FindScenariosQuery: z.ZodObject<{
18
10
  search: z.ZodOptional<z.ZodString>;
19
- } & {
20
- limit: z.ZodOptional<z.ZodNumber>;
11
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
21
12
  cursor: z.ZodOptional<z.ZodString>;
22
- } & {
23
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
24
- }, "strip", z.ZodTypeAny, {
25
- search?: string | undefined;
26
- includeArchived?: boolean | undefined;
27
- limit?: number | undefined;
28
- cursor?: string | undefined;
29
- }, {
30
- search?: string | undefined;
31
- includeArchived?: unknown;
32
- limit?: number | undefined;
33
- cursor?: string | undefined;
34
- }>;
13
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
14
+ }, z.core.$strip>;
35
15
  export type FindScenariosQuery = z.infer<typeof FindScenariosQuery>;
36
16
  export declare const ScenarioApiResponse: z.ZodObject<{
37
17
  id: z.ZodString;
38
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
39
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
18
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
19
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
40
20
  revision: z.ZodOptional<z.ZodString>;
41
21
  createdAt: z.ZodOptional<z.ZodString>;
42
22
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -48,29 +28,19 @@ export declare const ScenarioApiResponse: z.ZodObject<{
48
28
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
49
29
  elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
30
  id: z.ZodString;
51
- type: z.ZodNativeEnum<typeof IntegrationElementType>;
31
+ type: z.ZodEnum<typeof IntegrationElementType>;
52
32
  element: z.ZodOptional<z.ZodAny>;
53
- }, "strip", z.ZodTypeAny, {
54
- type: IntegrationElementType;
55
- id: string;
56
- element?: any;
57
- }, {
58
- type: IntegrationElementType;
59
- id: string;
60
- element?: any;
61
- }>, "many">>;
33
+ }, z.core.$strip>>>;
62
34
  integrationId: z.ZodOptional<z.ZodString>;
63
35
  parentId: z.ZodOptional<z.ZodString>;
64
- } & {
65
36
  key: z.ZodString;
66
37
  name: z.ZodString;
67
38
  isCustomized: z.ZodOptional<z.ZodBoolean>;
68
- } & {
69
39
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
40
  element: z.ZodObject<{
71
41
  id: z.ZodString;
72
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
73
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
42
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
43
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
74
44
  revision: z.ZodOptional<z.ZodString>;
75
45
  createdAt: z.ZodOptional<z.ZodString>;
76
46
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -82,70 +52,15 @@ export declare const ScenarioApiResponse: z.ZodObject<{
82
52
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
83
53
  elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
54
  id: z.ZodString;
85
- type: z.ZodNativeEnum<typeof IntegrationElementType>;
55
+ type: z.ZodEnum<typeof IntegrationElementType>;
86
56
  element: z.ZodOptional<z.ZodAny>;
87
- }, "strip", z.ZodTypeAny, {
88
- type: IntegrationElementType;
89
- id: string;
90
- element?: any;
91
- }, {
92
- type: IntegrationElementType;
93
- id: string;
94
- element?: any;
95
- }>, "many">>;
57
+ }, z.core.$strip>>>;
96
58
  integrationId: z.ZodOptional<z.ZodString>;
97
59
  parentId: z.ZodOptional<z.ZodString>;
98
- } & {
99
60
  key: z.ZodString;
100
61
  name: z.ZodString;
101
62
  isCustomized: z.ZodOptional<z.ZodBoolean>;
102
- }, "strip", z.ZodTypeAny, {
103
- key: string;
104
- id: string;
105
- name: string;
106
- uuid?: string | undefined;
107
- description?: string | undefined;
108
- meta?: Record<string, any> | undefined;
109
- state?: import("..").WorkspaceElementState | undefined;
110
- errors?: import("../..").ErrorDataSchema[] | undefined;
111
- revision?: string | undefined;
112
- createdAt?: string | undefined;
113
- updatedAt?: string | undefined;
114
- archivedAt?: string | undefined;
115
- isDeactivated?: boolean | undefined;
116
- integrationId?: string | undefined;
117
- parentId?: string | undefined;
118
- isCustomized?: boolean | undefined;
119
- scenarioTemplateId?: string | undefined;
120
- elements?: {
121
- type: IntegrationElementType;
122
- id: string;
123
- element?: any;
124
- }[] | undefined;
125
- }, {
126
- key: string;
127
- id: string;
128
- name: string;
129
- uuid?: string | undefined;
130
- description?: string | undefined;
131
- meta?: Record<string, any> | undefined;
132
- state?: import("..").WorkspaceElementState | undefined;
133
- errors?: import("../..").ErrorDataSchema[] | undefined;
134
- revision?: string | undefined;
135
- createdAt?: string | undefined;
136
- updatedAt?: string | undefined;
137
- archivedAt?: string | undefined;
138
- isDeactivated?: boolean | undefined;
139
- integrationId?: string | undefined;
140
- parentId?: string | undefined;
141
- isCustomized?: boolean | undefined;
142
- scenarioTemplateId?: string | undefined;
143
- elements?: {
144
- type: IntegrationElementType;
145
- id: string;
146
- element?: any;
147
- }[] | undefined;
148
- }>;
63
+ }, z.core.$strip>;
149
64
  integration: z.ZodObject<{
150
65
  id: z.ZodString;
151
66
  key: z.ZodOptional<z.ZodString>;
@@ -153,12 +68,11 @@ export declare const ScenarioApiResponse: z.ZodObject<{
153
68
  description: z.ZodOptional<z.ZodString>;
154
69
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
155
70
  name: z.ZodString;
156
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
157
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
71
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
72
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
158
73
  revision: z.ZodOptional<z.ZodString>;
159
74
  createdAt: z.ZodOptional<z.ZodString>;
160
75
  updatedAt: z.ZodOptional<z.ZodString>;
161
- } & {
162
76
  logoUri: z.ZodString;
163
77
  connectorId: z.ZodOptional<z.ZodString>;
164
78
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -178,353 +92,16 @@ export declare const ScenarioApiResponse: z.ZodObject<{
178
92
  isTest: z.ZodOptional<z.ZodBoolean>;
179
93
  appUuid: z.ZodOptional<z.ZodString>;
180
94
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
181
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
182
- }, "strip", z.ZodTypeAny, {
183
- id: string;
184
- name: string;
185
- logoUri: string;
186
- key?: string | undefined;
187
- uuid?: string | undefined;
188
- description?: string | undefined;
189
- meta?: Record<string, any> | undefined;
190
- state?: import("..").WorkspaceElementState | undefined;
191
- errors?: import("../..").ErrorDataSchema[] | undefined;
192
- revision?: string | undefined;
193
- createdAt?: string | undefined;
194
- updatedAt?: string | undefined;
195
- archivedAt?: string | undefined;
196
- isDeactivated?: boolean | undefined;
197
- parameters?: any;
198
- connectorId?: string | undefined;
199
- connectorVersion?: string | undefined;
200
- oAuthCallbackUri?: string | undefined;
201
- hasMissingParameters?: boolean | undefined;
202
- hasDocumentation?: boolean | undefined;
203
- hasOperations?: boolean | undefined;
204
- operationsCount?: number | undefined;
205
- hasData?: boolean | undefined;
206
- dataCollectionsCount?: number | undefined;
207
- hasEvents?: boolean | undefined;
208
- eventsCount?: number | undefined;
209
- hasGlobalWebhooks?: boolean | undefined;
210
- hasUdm?: boolean | undefined;
211
- isTest?: boolean | undefined;
212
- appUuid?: string | undefined;
213
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
214
- }, {
215
- id: string;
216
- name: string;
217
- logoUri: string;
218
- key?: string | undefined;
219
- uuid?: string | undefined;
220
- description?: string | undefined;
221
- meta?: Record<string, any> | undefined;
222
- state?: import("..").WorkspaceElementState | undefined;
223
- errors?: import("../..").ErrorDataSchema[] | undefined;
224
- revision?: string | undefined;
225
- createdAt?: string | undefined;
226
- updatedAt?: string | undefined;
227
- archivedAt?: string | undefined;
228
- isDeactivated?: boolean | undefined;
229
- parameters?: any;
230
- connectorId?: string | undefined;
231
- connectorVersion?: string | undefined;
232
- oAuthCallbackUri?: string | undefined;
233
- hasMissingParameters?: boolean | undefined;
234
- hasDocumentation?: boolean | undefined;
235
- hasOperations?: boolean | undefined;
236
- operationsCount?: number | undefined;
237
- hasData?: boolean | undefined;
238
- dataCollectionsCount?: number | undefined;
239
- hasEvents?: boolean | undefined;
240
- eventsCount?: number | undefined;
241
- hasGlobalWebhooks?: boolean | undefined;
242
- hasUdm?: boolean | undefined;
243
- isTest?: boolean | undefined;
244
- appUuid?: string | undefined;
245
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
246
- }>;
247
- }, "strip", z.ZodTypeAny, {
248
- integration: {
249
- id: string;
250
- name: string;
251
- logoUri: string;
252
- key?: string | undefined;
253
- uuid?: string | undefined;
254
- description?: string | undefined;
255
- meta?: Record<string, any> | undefined;
256
- state?: import("..").WorkspaceElementState | undefined;
257
- errors?: import("../..").ErrorDataSchema[] | undefined;
258
- revision?: string | undefined;
259
- createdAt?: string | undefined;
260
- updatedAt?: string | undefined;
261
- archivedAt?: string | undefined;
262
- isDeactivated?: boolean | undefined;
263
- parameters?: any;
264
- connectorId?: string | undefined;
265
- connectorVersion?: string | undefined;
266
- oAuthCallbackUri?: string | undefined;
267
- hasMissingParameters?: boolean | undefined;
268
- hasDocumentation?: boolean | undefined;
269
- hasOperations?: boolean | undefined;
270
- operationsCount?: number | undefined;
271
- hasData?: boolean | undefined;
272
- dataCollectionsCount?: number | undefined;
273
- hasEvents?: boolean | undefined;
274
- eventsCount?: number | undefined;
275
- hasGlobalWebhooks?: boolean | undefined;
276
- hasUdm?: boolean | undefined;
277
- isTest?: boolean | undefined;
278
- appUuid?: string | undefined;
279
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
280
- };
281
- element: {
282
- key: string;
283
- id: string;
284
- name: string;
285
- uuid?: string | undefined;
286
- description?: string | undefined;
287
- meta?: Record<string, any> | undefined;
288
- state?: import("..").WorkspaceElementState | undefined;
289
- errors?: import("../..").ErrorDataSchema[] | undefined;
290
- revision?: string | undefined;
291
- createdAt?: string | undefined;
292
- updatedAt?: string | undefined;
293
- archivedAt?: string | undefined;
294
- isDeactivated?: boolean | undefined;
295
- integrationId?: string | undefined;
296
- parentId?: string | undefined;
297
- isCustomized?: boolean | undefined;
298
- scenarioTemplateId?: string | undefined;
299
- elements?: {
300
- type: IntegrationElementType;
301
- id: string;
302
- element?: any;
303
- }[] | undefined;
304
- };
305
- }, {
306
- integration: {
307
- id: string;
308
- name: string;
309
- logoUri: string;
310
- key?: string | undefined;
311
- uuid?: string | undefined;
312
- description?: string | undefined;
313
- meta?: Record<string, any> | undefined;
314
- state?: import("..").WorkspaceElementState | undefined;
315
- errors?: import("../..").ErrorDataSchema[] | undefined;
316
- revision?: string | undefined;
317
- createdAt?: string | undefined;
318
- updatedAt?: string | undefined;
319
- archivedAt?: string | undefined;
320
- isDeactivated?: boolean | undefined;
321
- parameters?: any;
322
- connectorId?: string | undefined;
323
- connectorVersion?: string | undefined;
324
- oAuthCallbackUri?: string | undefined;
325
- hasMissingParameters?: boolean | undefined;
326
- hasDocumentation?: boolean | undefined;
327
- hasOperations?: boolean | undefined;
328
- operationsCount?: number | undefined;
329
- hasData?: boolean | undefined;
330
- dataCollectionsCount?: number | undefined;
331
- hasEvents?: boolean | undefined;
332
- eventsCount?: number | undefined;
333
- hasGlobalWebhooks?: boolean | undefined;
334
- hasUdm?: boolean | undefined;
335
- isTest?: boolean | undefined;
336
- appUuid?: string | undefined;
337
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
338
- };
339
- element: {
340
- key: string;
341
- id: string;
342
- name: string;
343
- uuid?: string | undefined;
344
- description?: string | undefined;
345
- meta?: Record<string, any> | undefined;
346
- state?: import("..").WorkspaceElementState | undefined;
347
- errors?: import("../..").ErrorDataSchema[] | undefined;
348
- revision?: string | undefined;
349
- createdAt?: string | undefined;
350
- updatedAt?: string | undefined;
351
- archivedAt?: string | undefined;
352
- isDeactivated?: boolean | undefined;
353
- integrationId?: string | undefined;
354
- parentId?: string | undefined;
355
- isCustomized?: boolean | undefined;
356
- scenarioTemplateId?: string | undefined;
357
- elements?: {
358
- type: IntegrationElementType;
359
- id: string;
360
- element?: any;
361
- }[] | undefined;
362
- };
363
- }>, "many">>;
364
- }, "strip", z.ZodTypeAny, {
365
- key: string;
366
- id: string;
367
- name: string;
368
- uuid?: string | undefined;
369
- description?: string | undefined;
370
- meta?: Record<string, any> | undefined;
371
- state?: import("..").WorkspaceElementState | undefined;
372
- errors?: import("../..").ErrorDataSchema[] | undefined;
373
- revision?: string | undefined;
374
- createdAt?: string | undefined;
375
- updatedAt?: string | undefined;
376
- archivedAt?: string | undefined;
377
- isDeactivated?: boolean | undefined;
378
- integrationId?: string | undefined;
379
- parentId?: string | undefined;
380
- isCustomized?: boolean | undefined;
381
- appliedToIntegrations?: {
382
- integration: {
383
- id: string;
384
- name: string;
385
- logoUri: string;
386
- key?: string | undefined;
387
- uuid?: string | undefined;
388
- description?: string | undefined;
389
- meta?: Record<string, any> | undefined;
390
- state?: import("..").WorkspaceElementState | undefined;
391
- errors?: import("../..").ErrorDataSchema[] | undefined;
392
- revision?: string | undefined;
393
- createdAt?: string | undefined;
394
- updatedAt?: string | undefined;
395
- archivedAt?: string | undefined;
396
- isDeactivated?: boolean | undefined;
397
- parameters?: any;
398
- connectorId?: string | undefined;
399
- connectorVersion?: string | undefined;
400
- oAuthCallbackUri?: string | undefined;
401
- hasMissingParameters?: boolean | undefined;
402
- hasDocumentation?: boolean | undefined;
403
- hasOperations?: boolean | undefined;
404
- operationsCount?: number | undefined;
405
- hasData?: boolean | undefined;
406
- dataCollectionsCount?: number | undefined;
407
- hasEvents?: boolean | undefined;
408
- eventsCount?: number | undefined;
409
- hasGlobalWebhooks?: boolean | undefined;
410
- hasUdm?: boolean | undefined;
411
- isTest?: boolean | undefined;
412
- appUuid?: string | undefined;
413
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
414
- };
415
- element: {
416
- key: string;
417
- id: string;
418
- name: string;
419
- uuid?: string | undefined;
420
- description?: string | undefined;
421
- meta?: Record<string, any> | undefined;
422
- state?: import("..").WorkspaceElementState | undefined;
423
- errors?: import("../..").ErrorDataSchema[] | undefined;
424
- revision?: string | undefined;
425
- createdAt?: string | undefined;
426
- updatedAt?: string | undefined;
427
- archivedAt?: string | undefined;
428
- isDeactivated?: boolean | undefined;
429
- integrationId?: string | undefined;
430
- parentId?: string | undefined;
431
- isCustomized?: boolean | undefined;
432
- scenarioTemplateId?: string | undefined;
433
- elements?: {
434
- type: IntegrationElementType;
435
- id: string;
436
- element?: any;
437
- }[] | undefined;
438
- };
439
- }[] | undefined;
440
- scenarioTemplateId?: string | undefined;
441
- elements?: {
442
- type: IntegrationElementType;
443
- id: string;
444
- element?: any;
445
- }[] | undefined;
446
- }, {
447
- key: string;
448
- id: string;
449
- name: string;
450
- uuid?: string | undefined;
451
- description?: string | undefined;
452
- meta?: Record<string, any> | undefined;
453
- state?: import("..").WorkspaceElementState | undefined;
454
- errors?: import("../..").ErrorDataSchema[] | undefined;
455
- revision?: string | undefined;
456
- createdAt?: string | undefined;
457
- updatedAt?: string | undefined;
458
- archivedAt?: string | undefined;
459
- isDeactivated?: boolean | undefined;
460
- integrationId?: string | undefined;
461
- parentId?: string | undefined;
462
- isCustomized?: boolean | undefined;
463
- appliedToIntegrations?: {
464
- integration: {
465
- id: string;
466
- name: string;
467
- logoUri: string;
468
- key?: string | undefined;
469
- uuid?: string | undefined;
470
- description?: string | undefined;
471
- meta?: Record<string, any> | undefined;
472
- state?: import("..").WorkspaceElementState | undefined;
473
- errors?: import("../..").ErrorDataSchema[] | undefined;
474
- revision?: string | undefined;
475
- createdAt?: string | undefined;
476
- updatedAt?: string | undefined;
477
- archivedAt?: string | undefined;
478
- isDeactivated?: boolean | undefined;
479
- parameters?: any;
480
- connectorId?: string | undefined;
481
- connectorVersion?: string | undefined;
482
- oAuthCallbackUri?: string | undefined;
483
- hasMissingParameters?: boolean | undefined;
484
- hasDocumentation?: boolean | undefined;
485
- hasOperations?: boolean | undefined;
486
- operationsCount?: number | undefined;
487
- hasData?: boolean | undefined;
488
- dataCollectionsCount?: number | undefined;
489
- hasEvents?: boolean | undefined;
490
- eventsCount?: number | undefined;
491
- hasGlobalWebhooks?: boolean | undefined;
492
- hasUdm?: boolean | undefined;
493
- isTest?: boolean | undefined;
494
- appUuid?: string | undefined;
495
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
496
- };
497
- element: {
498
- key: string;
499
- id: string;
500
- name: string;
501
- uuid?: string | undefined;
502
- description?: string | undefined;
503
- meta?: Record<string, any> | undefined;
504
- state?: import("..").WorkspaceElementState | undefined;
505
- errors?: import("../..").ErrorDataSchema[] | undefined;
506
- revision?: string | undefined;
507
- createdAt?: string | undefined;
508
- updatedAt?: string | undefined;
509
- archivedAt?: string | undefined;
510
- isDeactivated?: boolean | undefined;
511
- integrationId?: string | undefined;
512
- parentId?: string | undefined;
513
- isCustomized?: boolean | undefined;
514
- scenarioTemplateId?: string | undefined;
515
- elements?: {
516
- type: IntegrationElementType;
517
- id: string;
518
- element?: any;
519
- }[] | undefined;
520
- };
521
- }[] | undefined;
522
- scenarioTemplateId?: string | undefined;
523
- elements?: {
524
- type: IntegrationElementType;
525
- id: string;
526
- element?: any;
527
- }[] | undefined;
528
- }>;
95
+ authType: z.ZodOptional<z.ZodEnum<{
96
+ proxy: "proxy";
97
+ "integration-app-token": "integration-app-token";
98
+ "membrane-token": "membrane-token";
99
+ oauth2: "oauth2";
100
+ oauth1: "oauth1";
101
+ "client-credentials": "client-credentials";
102
+ }>>;
103
+ }, z.core.$strip>;
104
+ }, z.core.$strip>>>;
105
+ }, z.core.$strip>;
529
106
  export type ScenarioApiResponse = z.infer<typeof ScenarioApiResponse>;
530
107
  export type Scenario = ScenarioApiResponse;
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { PaginationQuery } from '../../entity-repository';
2
3
  import { ScreenBlockType, ScreenType } from '../base/screens';
3
4
  export interface ScreenBlockApi {
@@ -21,35 +22,14 @@ export interface CreateScreenRequest extends UpdateScreenRequest {
21
22
  export interface FindScreensQuery extends PaginationQuery {
22
23
  type?: ScreenType;
23
24
  }
24
- export declare const ScreenApiResponse: import("zod").ZodObject<{
25
- id: import("zod").ZodString;
26
- name: import("zod").ZodString;
27
- } & {
28
- type: import("zod").ZodNativeEnum<typeof ScreenType>;
29
- key: import("zod").ZodOptional<import("zod").ZodString>;
30
- blocks: import("zod").ZodArray<import("zod").ZodIntersection<import("zod").ZodObject<{
31
- type: import("zod").ZodNativeEnum<typeof ScreenBlockType>;
32
- }, "strip", import("zod").ZodTypeAny, {
33
- type: ScreenBlockType;
34
- }, {
35
- type: ScreenBlockType;
36
- }>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, "many">;
37
- }, "strip", import("zod").ZodTypeAny, {
38
- type: ScreenType;
39
- id: string;
40
- name: string;
41
- blocks: ({
42
- type: ScreenBlockType;
43
- } & Record<string, any>)[];
44
- key?: string | undefined;
45
- }, {
46
- type: ScreenType;
47
- id: string;
48
- name: string;
49
- blocks: ({
50
- type: ScreenBlockType;
51
- } & Record<string, any>)[];
52
- key?: string | undefined;
53
- }>;
54
- export type ScreenApiResponse = typeof ScreenApiResponse._type;
25
+ export declare const ScreenApiResponse: z.ZodObject<{
26
+ id: z.ZodString;
27
+ name: z.ZodString;
28
+ type: z.ZodEnum<typeof ScreenType>;
29
+ key: z.ZodOptional<z.ZodString>;
30
+ blocks: z.ZodArray<z.ZodIntersection<z.ZodObject<{
31
+ type: z.ZodEnum<typeof ScreenBlockType>;
32
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
33
+ }, z.core.$strip>;
34
+ export type ScreenApiResponse = z.infer<typeof ScreenApiResponse>;
55
35
  export type Screen = ScreenApiResponse;
@@ -5,18 +5,10 @@ export declare enum ActionDependencyType {
5
5
  DataSource = "DataSource"
6
6
  }
7
7
  export declare const ActionDependency: z.ZodObject<{
8
- type: z.ZodNativeEnum<typeof ActionDependencyType>;
8
+ type: z.ZodEnum<typeof ActionDependencyType>;
9
9
  key: z.ZodString;
10
10
  element: z.ZodOptional<z.ZodAny>;
11
- }, "strip", z.ZodTypeAny, {
12
- key: string;
13
- type: ActionDependencyType;
14
- element?: any;
15
- }, {
16
- key: string;
17
- type: ActionDependencyType;
18
- element?: any;
19
- }>;
11
+ }, z.core.$strip>;
20
12
  export type ActionDependency = z.infer<typeof ActionDependency>;
21
13
  export declare const BaseActionInstance: z.ZodObject<{
22
14
  id: z.ZodString;
@@ -24,67 +16,21 @@ export declare const BaseActionInstance: z.ZodObject<{
24
16
  uuid: z.ZodOptional<z.ZodString>;
25
17
  description: z.ZodOptional<z.ZodString>;
26
18
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
27
- } & {
28
19
  name: z.ZodString;
29
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
30
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
20
+ state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
21
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
31
22
  revision: z.ZodOptional<z.ZodString>;
32
23
  createdAt: z.ZodOptional<z.ZodString>;
33
24
  updatedAt: z.ZodOptional<z.ZodString>;
34
25
  archivedAt: z.ZodOptional<z.ZodString>;
35
26
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
36
- } & {
37
27
  parentId: z.ZodOptional<z.ZodString>;
38
28
  universalParentId: z.ZodOptional<z.ZodString>;
39
29
  userId: z.ZodString;
40
30
  instanceKey: z.ZodOptional<z.ZodString>;
41
- type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
31
+ type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
42
32
  inputSchema: z.ZodOptional<z.ZodAny>;
43
33
  config: z.ZodOptional<z.ZodAny>;
44
34
  outputSchema: z.ZodOptional<z.ZodAny>;
45
- }, "strip", z.ZodTypeAny, {
46
- id: string;
47
- name: string;
48
- userId: string;
49
- key?: string | undefined;
50
- type?: ActionType | undefined;
51
- uuid?: string | undefined;
52
- description?: string | undefined;
53
- meta?: Record<string, any> | undefined;
54
- state?: import("../../types").WorkspaceElementState | undefined;
55
- errors?: import("../../..").ErrorDataSchema[] | undefined;
56
- revision?: string | undefined;
57
- createdAt?: string | undefined;
58
- updatedAt?: string | undefined;
59
- archivedAt?: string | undefined;
60
- isDeactivated?: boolean | undefined;
61
- parentId?: string | undefined;
62
- instanceKey?: string | undefined;
63
- inputSchema?: any;
64
- config?: any;
65
- outputSchema?: any;
66
- universalParentId?: string | undefined;
67
- }, {
68
- id: string;
69
- name: string;
70
- userId: string;
71
- key?: string | undefined;
72
- type?: ActionType | undefined;
73
- uuid?: string | undefined;
74
- description?: string | undefined;
75
- meta?: Record<string, any> | undefined;
76
- state?: import("../../types").WorkspaceElementState | undefined;
77
- errors?: import("../../..").ErrorDataSchema[] | undefined;
78
- revision?: string | undefined;
79
- createdAt?: string | undefined;
80
- updatedAt?: string | undefined;
81
- archivedAt?: string | undefined;
82
- isDeactivated?: boolean | undefined;
83
- parentId?: string | undefined;
84
- instanceKey?: string | undefined;
85
- inputSchema?: any;
86
- config?: any;
87
- outputSchema?: any;
88
- universalParentId?: string | undefined;
89
- }>;
35
+ }, z.core.$strip>;
90
36
  export type BaseActionInstance = z.infer<typeof BaseActionInstance>;