@membranehq/sdk 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/bundle.d.ts +2063 -13949
  2. package/dist/bundle.js +3949 -4253
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +28 -28
  5. package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
  6. package/dist/dts/config/index.d.ts +1 -11
  7. package/dist/dts/date-time/business-day.d.ts +2 -0
  8. package/dist/dts/date-time/business-day.test.d.ts +1 -0
  9. package/dist/dts/date-time/index.d.ts +1 -0
  10. package/dist/dts/entity-repository.d.ts +13 -64
  11. package/dist/dts/http-requests.d.ts +2 -14
  12. package/dist/dts/iframe.d.ts +4 -12
  13. package/dist/dts/scenario-templates/index.d.ts +60 -484
  14. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
  15. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
  17. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
  18. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
  19. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
  20. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
  21. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
  23. package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
  24. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
  25. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
  26. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +79 -1341
  27. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +52 -767
  28. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
  29. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
  30. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
  31. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
  32. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +109 -2321
  33. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +47 -702
  34. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
  35. package/dist/dts/workspace-elements/api/flows-api.d.ts +149 -1836
  36. package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
  37. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
  38. package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
  47. package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
  48. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
  49. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
  50. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
  51. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
  52. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
  53. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
  54. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -104
  55. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
  56. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
  57. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
  58. package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
  59. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +9 -76
  60. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +13 -133
  61. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
  63. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
  64. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
  65. package/dist/dts/workspace-elements/base/flows/index.d.ts +20 -240
  66. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +7 -56
  67. package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
  68. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
  69. package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
  70. package/dist/dts/workspace-elements/types.d.ts +15 -153
  71. package/dist/index.browser.d.mts +5926 -24800
  72. package/dist/index.browser.d.ts +5926 -24800
  73. package/dist/index.browser.js +287 -281
  74. package/dist/index.browser.js.map +1 -1
  75. package/dist/index.browser.mjs +285 -279
  76. package/dist/index.browser.mjs.map +1 -1
  77. package/dist/index.node.d.mts +5956 -24840
  78. package/dist/index.node.d.ts +5956 -24840
  79. package/dist/index.node.js +287 -281
  80. package/dist/index.node.js.map +1 -1
  81. package/dist/index.node.mjs +285 -279
  82. package/dist/index.node.mjs.map +1 -1
  83. package/package.json +2 -2
@@ -9,22 +9,20 @@ export declare const ActionApiResponse: z.ZodObject<{
9
9
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
10
  integrationId: z.ZodOptional<z.ZodString>;
11
11
  parentId: z.ZodOptional<z.ZodString>;
12
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
13
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>;
12
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
13
+ type: z.ZodOptional<z.ZodEnum<typeof import("../base/actions").ActionType>>;
14
14
  config: z.ZodOptional<z.ZodAny>;
15
15
  outputMapping: z.ZodOptional<z.ZodAny>;
16
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
17
- } & {
16
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
18
17
  name: z.ZodString;
19
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
20
- 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>>>>;
21
20
  revision: z.ZodOptional<z.ZodString>;
22
21
  createdAt: z.ZodOptional<z.ZodString>;
23
22
  updatedAt: z.ZodOptional<z.ZodString>;
24
23
  archivedAt: z.ZodOptional<z.ZodString>;
25
24
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
26
25
  isCustomized: z.ZodOptional<z.ZodBoolean>;
27
- } & {
28
26
  integration: z.ZodOptional<z.ZodObject<{
29
27
  id: z.ZodString;
30
28
  key: z.ZodOptional<z.ZodString>;
@@ -32,12 +30,11 @@ export declare const ActionApiResponse: z.ZodObject<{
32
30
  description: z.ZodOptional<z.ZodString>;
33
31
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
34
32
  name: z.ZodString;
35
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
36
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
33
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
34
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
37
35
  revision: z.ZodOptional<z.ZodString>;
38
36
  createdAt: z.ZodOptional<z.ZodString>;
39
37
  updatedAt: z.ZodOptional<z.ZodString>;
40
- } & {
41
38
  logoUri: z.ZodString;
42
39
  connectorId: z.ZodOptional<z.ZodString>;
43
40
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -57,72 +54,15 @@ export declare const ActionApiResponse: z.ZodObject<{
57
54
  isTest: z.ZodOptional<z.ZodBoolean>;
58
55
  appUuid: z.ZodOptional<z.ZodString>;
59
56
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
60
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
61
- }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- name: string;
64
- logoUri: string;
65
- key?: string | undefined;
66
- uuid?: string | undefined;
67
- description?: string | undefined;
68
- meta?: Record<string, any> | undefined;
69
- state?: import("..").WorkspaceElementState | undefined;
70
- errors?: import("../..").ErrorDataSchema[] | undefined;
71
- revision?: string | undefined;
72
- createdAt?: string | undefined;
73
- updatedAt?: string | undefined;
74
- archivedAt?: string | undefined;
75
- isDeactivated?: boolean | undefined;
76
- parameters?: any;
77
- connectorId?: string | undefined;
78
- connectorVersion?: string | undefined;
79
- oAuthCallbackUri?: string | undefined;
80
- hasMissingParameters?: boolean | undefined;
81
- hasDocumentation?: boolean | undefined;
82
- hasOperations?: boolean | undefined;
83
- operationsCount?: number | undefined;
84
- hasData?: boolean | undefined;
85
- dataCollectionsCount?: number | undefined;
86
- hasEvents?: boolean | undefined;
87
- eventsCount?: number | undefined;
88
- hasGlobalWebhooks?: boolean | undefined;
89
- hasUdm?: boolean | undefined;
90
- isTest?: boolean | undefined;
91
- appUuid?: string | undefined;
92
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
93
- }, {
94
- id: string;
95
- name: string;
96
- logoUri: string;
97
- key?: string | undefined;
98
- uuid?: string | undefined;
99
- description?: string | undefined;
100
- meta?: Record<string, any> | undefined;
101
- state?: import("..").WorkspaceElementState | undefined;
102
- errors?: import("../..").ErrorDataSchema[] | undefined;
103
- revision?: string | undefined;
104
- createdAt?: string | undefined;
105
- updatedAt?: string | undefined;
106
- archivedAt?: string | undefined;
107
- isDeactivated?: boolean | undefined;
108
- parameters?: any;
109
- connectorId?: string | undefined;
110
- connectorVersion?: string | undefined;
111
- oAuthCallbackUri?: string | undefined;
112
- hasMissingParameters?: boolean | undefined;
113
- hasDocumentation?: boolean | undefined;
114
- hasOperations?: boolean | undefined;
115
- operationsCount?: number | undefined;
116
- hasData?: boolean | undefined;
117
- dataCollectionsCount?: number | undefined;
118
- hasEvents?: boolean | undefined;
119
- eventsCount?: number | undefined;
120
- hasGlobalWebhooks?: boolean | undefined;
121
- hasUdm?: boolean | undefined;
122
- isTest?: boolean | undefined;
123
- appUuid?: string | undefined;
124
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
125
- }>>;
57
+ authType: z.ZodOptional<z.ZodEnum<{
58
+ proxy: "proxy";
59
+ "integration-app-token": "integration-app-token";
60
+ "membrane-token": "membrane-token";
61
+ oauth2: "oauth2";
62
+ oauth1: "oauth1";
63
+ "client-credentials": "client-credentials";
64
+ }>>;
65
+ }, z.core.$strip>>;
126
66
  appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
67
  element: z.ZodObject<{
128
68
  id: z.ZodString;
@@ -132,66 +72,21 @@ export declare const ActionApiResponse: z.ZodObject<{
132
72
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
133
73
  integrationId: z.ZodOptional<z.ZodString>;
134
74
  parentId: z.ZodOptional<z.ZodString>;
135
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
136
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>;
75
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
76
+ type: z.ZodOptional<z.ZodEnum<typeof import("../base/actions").ActionType>>;
137
77
  config: z.ZodOptional<z.ZodAny>;
138
78
  outputMapping: z.ZodOptional<z.ZodAny>;
139
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
140
- } & {
79
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
141
80
  name: z.ZodString;
142
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
143
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
81
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
82
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
144
83
  revision: z.ZodOptional<z.ZodString>;
145
84
  createdAt: z.ZodOptional<z.ZodString>;
146
85
  updatedAt: z.ZodOptional<z.ZodString>;
147
86
  archivedAt: z.ZodOptional<z.ZodString>;
148
87
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
149
88
  isCustomized: z.ZodOptional<z.ZodBoolean>;
150
- }, "strip", z.ZodTypeAny, {
151
- id: string;
152
- name: string;
153
- key?: string | undefined;
154
- type?: import("../base/actions").ActionType | undefined;
155
- uuid?: string | undefined;
156
- description?: string | undefined;
157
- meta?: Record<string, any> | undefined;
158
- state?: import("..").WorkspaceElementState | undefined;
159
- errors?: import("../..").ErrorDataSchema[] | undefined;
160
- revision?: string | undefined;
161
- createdAt?: string | undefined;
162
- updatedAt?: string | undefined;
163
- archivedAt?: string | undefined;
164
- isDeactivated?: boolean | undefined;
165
- integrationId?: string | undefined;
166
- parentId?: string | undefined;
167
- isCustomized?: boolean | undefined;
168
- inputSchema?: DataSchema | undefined;
169
- config?: any;
170
- outputMapping?: any;
171
- customOutputSchema?: DataSchema | undefined;
172
- }, {
173
- id: string;
174
- name: string;
175
- key?: string | undefined;
176
- type?: import("../base/actions").ActionType | undefined;
177
- uuid?: string | undefined;
178
- description?: string | undefined;
179
- meta?: Record<string, any> | undefined;
180
- state?: import("..").WorkspaceElementState | undefined;
181
- errors?: import("../..").ErrorDataSchema[] | undefined;
182
- revision?: string | undefined;
183
- createdAt?: string | undefined;
184
- updatedAt?: string | undefined;
185
- archivedAt?: string | undefined;
186
- isDeactivated?: boolean | undefined;
187
- integrationId?: string | undefined;
188
- parentId?: string | undefined;
189
- isCustomized?: boolean | undefined;
190
- inputSchema?: DataSchema | undefined;
191
- config?: any;
192
- outputMapping?: any;
193
- customOutputSchema?: DataSchema | undefined;
194
- }>;
89
+ }, z.core.$strip>;
195
90
  integration: z.ZodObject<{
196
91
  id: z.ZodString;
197
92
  key: z.ZodOptional<z.ZodString>;
@@ -199,12 +94,11 @@ export declare const ActionApiResponse: z.ZodObject<{
199
94
  description: z.ZodOptional<z.ZodString>;
200
95
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
201
96
  name: z.ZodString;
202
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
203
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
97
+ state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
98
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../..").ErrorDataSchema, unknown>>>>;
204
99
  revision: z.ZodOptional<z.ZodString>;
205
100
  createdAt: z.ZodOptional<z.ZodString>;
206
101
  updatedAt: z.ZodOptional<z.ZodString>;
207
- } & {
208
102
  logoUri: z.ZodString;
209
103
  connectorId: z.ZodOptional<z.ZodString>;
210
104
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -224,454 +118,32 @@ export declare const ActionApiResponse: z.ZodObject<{
224
118
  isTest: z.ZodOptional<z.ZodBoolean>;
225
119
  appUuid: z.ZodOptional<z.ZodString>;
226
120
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
227
- authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
228
- }, "strip", z.ZodTypeAny, {
229
- id: string;
230
- name: string;
231
- logoUri: string;
232
- key?: string | undefined;
233
- uuid?: string | undefined;
234
- description?: string | undefined;
235
- meta?: Record<string, any> | undefined;
236
- state?: import("..").WorkspaceElementState | undefined;
237
- errors?: import("../..").ErrorDataSchema[] | undefined;
238
- revision?: string | undefined;
239
- createdAt?: string | undefined;
240
- updatedAt?: string | undefined;
241
- archivedAt?: string | undefined;
242
- isDeactivated?: boolean | undefined;
243
- parameters?: any;
244
- connectorId?: string | undefined;
245
- connectorVersion?: string | undefined;
246
- oAuthCallbackUri?: string | undefined;
247
- hasMissingParameters?: boolean | undefined;
248
- hasDocumentation?: boolean | undefined;
249
- hasOperations?: boolean | undefined;
250
- operationsCount?: number | undefined;
251
- hasData?: boolean | undefined;
252
- dataCollectionsCount?: number | undefined;
253
- hasEvents?: boolean | undefined;
254
- eventsCount?: number | undefined;
255
- hasGlobalWebhooks?: boolean | undefined;
256
- hasUdm?: boolean | undefined;
257
- isTest?: boolean | undefined;
258
- appUuid?: string | undefined;
259
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
260
- }, {
261
- id: string;
262
- name: string;
263
- logoUri: string;
264
- key?: string | undefined;
265
- uuid?: string | undefined;
266
- description?: string | undefined;
267
- meta?: Record<string, any> | undefined;
268
- state?: import("..").WorkspaceElementState | undefined;
269
- errors?: import("../..").ErrorDataSchema[] | undefined;
270
- revision?: string | undefined;
271
- createdAt?: string | undefined;
272
- updatedAt?: string | undefined;
273
- archivedAt?: string | undefined;
274
- isDeactivated?: boolean | undefined;
275
- parameters?: any;
276
- connectorId?: string | undefined;
277
- connectorVersion?: string | undefined;
278
- oAuthCallbackUri?: string | undefined;
279
- hasMissingParameters?: boolean | undefined;
280
- hasDocumentation?: boolean | undefined;
281
- hasOperations?: boolean | undefined;
282
- operationsCount?: number | undefined;
283
- hasData?: boolean | undefined;
284
- dataCollectionsCount?: number | undefined;
285
- hasEvents?: boolean | undefined;
286
- eventsCount?: number | undefined;
287
- hasGlobalWebhooks?: boolean | undefined;
288
- hasUdm?: boolean | undefined;
289
- isTest?: boolean | undefined;
290
- appUuid?: string | undefined;
291
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
292
- }>;
293
- }, "strip", z.ZodTypeAny, {
294
- integration: {
295
- id: string;
296
- name: string;
297
- logoUri: string;
298
- key?: string | undefined;
299
- uuid?: string | undefined;
300
- description?: string | undefined;
301
- meta?: Record<string, any> | undefined;
302
- state?: import("..").WorkspaceElementState | undefined;
303
- errors?: import("../..").ErrorDataSchema[] | undefined;
304
- revision?: string | undefined;
305
- createdAt?: string | undefined;
306
- updatedAt?: string | undefined;
307
- archivedAt?: string | undefined;
308
- isDeactivated?: boolean | undefined;
309
- parameters?: any;
310
- connectorId?: string | undefined;
311
- connectorVersion?: string | undefined;
312
- oAuthCallbackUri?: string | undefined;
313
- hasMissingParameters?: boolean | undefined;
314
- hasDocumentation?: boolean | undefined;
315
- hasOperations?: boolean | undefined;
316
- operationsCount?: number | undefined;
317
- hasData?: boolean | undefined;
318
- dataCollectionsCount?: number | undefined;
319
- hasEvents?: boolean | undefined;
320
- eventsCount?: number | undefined;
321
- hasGlobalWebhooks?: boolean | undefined;
322
- hasUdm?: boolean | undefined;
323
- isTest?: boolean | undefined;
324
- appUuid?: string | undefined;
325
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
326
- };
327
- element: {
328
- id: string;
329
- name: string;
330
- key?: string | undefined;
331
- type?: import("../base/actions").ActionType | undefined;
332
- uuid?: string | undefined;
333
- description?: string | undefined;
334
- meta?: Record<string, any> | undefined;
335
- state?: import("..").WorkspaceElementState | undefined;
336
- errors?: import("../..").ErrorDataSchema[] | undefined;
337
- revision?: string | undefined;
338
- createdAt?: string | undefined;
339
- updatedAt?: string | undefined;
340
- archivedAt?: string | undefined;
341
- isDeactivated?: boolean | undefined;
342
- integrationId?: string | undefined;
343
- parentId?: string | undefined;
344
- isCustomized?: boolean | undefined;
345
- inputSchema?: DataSchema | undefined;
346
- config?: any;
347
- outputMapping?: any;
348
- customOutputSchema?: DataSchema | undefined;
349
- };
350
- }, {
351
- integration: {
352
- id: string;
353
- name: string;
354
- logoUri: string;
355
- key?: string | undefined;
356
- uuid?: string | undefined;
357
- description?: string | undefined;
358
- meta?: Record<string, any> | undefined;
359
- state?: import("..").WorkspaceElementState | undefined;
360
- errors?: import("../..").ErrorDataSchema[] | undefined;
361
- revision?: string | undefined;
362
- createdAt?: string | undefined;
363
- updatedAt?: string | undefined;
364
- archivedAt?: string | undefined;
365
- isDeactivated?: boolean | undefined;
366
- parameters?: any;
367
- connectorId?: string | undefined;
368
- connectorVersion?: string | undefined;
369
- oAuthCallbackUri?: string | undefined;
370
- hasMissingParameters?: boolean | undefined;
371
- hasDocumentation?: boolean | undefined;
372
- hasOperations?: boolean | undefined;
373
- operationsCount?: number | undefined;
374
- hasData?: boolean | undefined;
375
- dataCollectionsCount?: number | undefined;
376
- hasEvents?: boolean | undefined;
377
- eventsCount?: number | undefined;
378
- hasGlobalWebhooks?: boolean | undefined;
379
- hasUdm?: boolean | undefined;
380
- isTest?: boolean | undefined;
381
- appUuid?: string | undefined;
382
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
383
- };
384
- element: {
385
- id: string;
386
- name: string;
387
- key?: string | undefined;
388
- type?: import("../base/actions").ActionType | undefined;
389
- uuid?: string | undefined;
390
- description?: string | undefined;
391
- meta?: Record<string, any> | undefined;
392
- state?: import("..").WorkspaceElementState | undefined;
393
- errors?: import("../..").ErrorDataSchema[] | undefined;
394
- revision?: string | undefined;
395
- createdAt?: string | undefined;
396
- updatedAt?: string | undefined;
397
- archivedAt?: string | undefined;
398
- isDeactivated?: boolean | undefined;
399
- integrationId?: string | undefined;
400
- parentId?: string | undefined;
401
- isCustomized?: boolean | undefined;
402
- inputSchema?: DataSchema | undefined;
403
- config?: any;
404
- outputMapping?: any;
405
- customOutputSchema?: DataSchema | undefined;
406
- };
407
- }>, "many">>;
408
- defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
409
- transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
410
- outputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
411
- dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
412
- }, "strip", z.ZodTypeAny, {
413
- id: string;
414
- name: string;
415
- key?: string | undefined;
416
- type?: import("../base/actions").ActionType | undefined;
417
- integration?: {
418
- id: string;
419
- name: string;
420
- logoUri: string;
421
- key?: string | undefined;
422
- uuid?: string | undefined;
423
- description?: string | undefined;
424
- meta?: Record<string, any> | undefined;
425
- state?: import("..").WorkspaceElementState | undefined;
426
- errors?: import("../..").ErrorDataSchema[] | undefined;
427
- revision?: string | undefined;
428
- createdAt?: string | undefined;
429
- updatedAt?: string | undefined;
430
- archivedAt?: string | undefined;
431
- isDeactivated?: boolean | undefined;
432
- parameters?: any;
433
- connectorId?: string | undefined;
434
- connectorVersion?: string | undefined;
435
- oAuthCallbackUri?: string | undefined;
436
- hasMissingParameters?: boolean | undefined;
437
- hasDocumentation?: boolean | undefined;
438
- hasOperations?: boolean | undefined;
439
- operationsCount?: number | undefined;
440
- hasData?: boolean | undefined;
441
- dataCollectionsCount?: number | undefined;
442
- hasEvents?: boolean | undefined;
443
- eventsCount?: number | undefined;
444
- hasGlobalWebhooks?: boolean | undefined;
445
- hasUdm?: boolean | undefined;
446
- isTest?: boolean | undefined;
447
- appUuid?: string | undefined;
448
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
449
- } | undefined;
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
- inputSchema?: DataSchema | undefined;
464
- config?: any;
465
- outputMapping?: any;
466
- customOutputSchema?: DataSchema | undefined;
467
- appliedToIntegrations?: {
468
- integration: {
469
- id: string;
470
- name: string;
471
- logoUri: string;
472
- key?: string | undefined;
473
- uuid?: string | undefined;
474
- description?: string | undefined;
475
- meta?: Record<string, any> | undefined;
476
- state?: import("..").WorkspaceElementState | undefined;
477
- errors?: import("../..").ErrorDataSchema[] | undefined;
478
- revision?: string | undefined;
479
- createdAt?: string | undefined;
480
- updatedAt?: string | undefined;
481
- archivedAt?: string | undefined;
482
- isDeactivated?: boolean | undefined;
483
- parameters?: any;
484
- connectorId?: string | undefined;
485
- connectorVersion?: string | undefined;
486
- oAuthCallbackUri?: string | undefined;
487
- hasMissingParameters?: boolean | undefined;
488
- hasDocumentation?: boolean | undefined;
489
- hasOperations?: boolean | undefined;
490
- operationsCount?: number | undefined;
491
- hasData?: boolean | undefined;
492
- dataCollectionsCount?: number | undefined;
493
- hasEvents?: boolean | undefined;
494
- eventsCount?: number | undefined;
495
- hasGlobalWebhooks?: boolean | undefined;
496
- hasUdm?: boolean | undefined;
497
- isTest?: boolean | undefined;
498
- appUuid?: string | undefined;
499
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
500
- };
501
- element: {
502
- id: string;
503
- name: string;
504
- key?: string | undefined;
505
- type?: import("../base/actions").ActionType | undefined;
506
- uuid?: string | undefined;
507
- description?: string | undefined;
508
- meta?: Record<string, any> | undefined;
509
- state?: import("..").WorkspaceElementState | undefined;
510
- errors?: import("../..").ErrorDataSchema[] | undefined;
511
- revision?: string | undefined;
512
- createdAt?: string | undefined;
513
- updatedAt?: string | undefined;
514
- archivedAt?: string | undefined;
515
- isDeactivated?: boolean | undefined;
516
- integrationId?: string | undefined;
517
- parentId?: string | undefined;
518
- isCustomized?: boolean | undefined;
519
- inputSchema?: DataSchema | undefined;
520
- config?: any;
521
- outputMapping?: any;
522
- customOutputSchema?: DataSchema | undefined;
523
- };
524
- }[] | undefined;
525
- defaultOutputSchema?: DataSchema | undefined;
526
- transformedOutputSchema?: DataSchema | undefined;
527
- outputSchema?: DataSchema | undefined;
528
- dependencies?: any[] | undefined;
529
- }, {
530
- id: string;
531
- name: string;
532
- key?: string | undefined;
533
- type?: import("../base/actions").ActionType | undefined;
534
- integration?: {
535
- id: string;
536
- name: string;
537
- logoUri: string;
538
- key?: string | undefined;
539
- uuid?: string | undefined;
540
- description?: string | undefined;
541
- meta?: Record<string, any> | undefined;
542
- state?: import("..").WorkspaceElementState | undefined;
543
- errors?: import("../..").ErrorDataSchema[] | undefined;
544
- revision?: string | undefined;
545
- createdAt?: string | undefined;
546
- updatedAt?: string | undefined;
547
- archivedAt?: string | undefined;
548
- isDeactivated?: boolean | undefined;
549
- parameters?: any;
550
- connectorId?: string | undefined;
551
- connectorVersion?: string | undefined;
552
- oAuthCallbackUri?: string | undefined;
553
- hasMissingParameters?: boolean | undefined;
554
- hasDocumentation?: boolean | undefined;
555
- hasOperations?: boolean | undefined;
556
- operationsCount?: number | undefined;
557
- hasData?: boolean | undefined;
558
- dataCollectionsCount?: number | undefined;
559
- hasEvents?: boolean | undefined;
560
- eventsCount?: number | undefined;
561
- hasGlobalWebhooks?: boolean | undefined;
562
- hasUdm?: boolean | undefined;
563
- isTest?: boolean | undefined;
564
- appUuid?: string | undefined;
565
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
566
- } | undefined;
567
- uuid?: string | undefined;
568
- description?: string | undefined;
569
- meta?: Record<string, any> | undefined;
570
- state?: import("..").WorkspaceElementState | undefined;
571
- errors?: import("../..").ErrorDataSchema[] | undefined;
572
- revision?: string | undefined;
573
- createdAt?: string | undefined;
574
- updatedAt?: string | undefined;
575
- archivedAt?: string | undefined;
576
- isDeactivated?: boolean | undefined;
577
- integrationId?: string | undefined;
578
- parentId?: string | undefined;
579
- isCustomized?: boolean | undefined;
580
- inputSchema?: DataSchema | undefined;
581
- config?: any;
582
- outputMapping?: any;
583
- customOutputSchema?: DataSchema | undefined;
584
- appliedToIntegrations?: {
585
- integration: {
586
- id: string;
587
- name: string;
588
- logoUri: string;
589
- key?: string | undefined;
590
- uuid?: string | undefined;
591
- description?: string | undefined;
592
- meta?: Record<string, any> | undefined;
593
- state?: import("..").WorkspaceElementState | undefined;
594
- errors?: import("../..").ErrorDataSchema[] | undefined;
595
- revision?: string | undefined;
596
- createdAt?: string | undefined;
597
- updatedAt?: string | undefined;
598
- archivedAt?: string | undefined;
599
- isDeactivated?: boolean | undefined;
600
- parameters?: any;
601
- connectorId?: string | undefined;
602
- connectorVersion?: string | undefined;
603
- oAuthCallbackUri?: string | undefined;
604
- hasMissingParameters?: boolean | undefined;
605
- hasDocumentation?: boolean | undefined;
606
- hasOperations?: boolean | undefined;
607
- operationsCount?: number | undefined;
608
- hasData?: boolean | undefined;
609
- dataCollectionsCount?: number | undefined;
610
- hasEvents?: boolean | undefined;
611
- eventsCount?: number | undefined;
612
- hasGlobalWebhooks?: boolean | undefined;
613
- hasUdm?: boolean | undefined;
614
- isTest?: boolean | undefined;
615
- appUuid?: string | undefined;
616
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
617
- };
618
- element: {
619
- id: string;
620
- name: string;
621
- key?: string | undefined;
622
- type?: import("../base/actions").ActionType | undefined;
623
- uuid?: string | undefined;
624
- description?: string | undefined;
625
- meta?: Record<string, any> | undefined;
626
- state?: import("..").WorkspaceElementState | undefined;
627
- errors?: import("../..").ErrorDataSchema[] | undefined;
628
- revision?: string | undefined;
629
- createdAt?: string | undefined;
630
- updatedAt?: string | undefined;
631
- archivedAt?: string | undefined;
632
- isDeactivated?: boolean | undefined;
633
- integrationId?: string | undefined;
634
- parentId?: string | undefined;
635
- isCustomized?: boolean | undefined;
636
- inputSchema?: DataSchema | undefined;
637
- config?: any;
638
- outputMapping?: any;
639
- customOutputSchema?: DataSchema | undefined;
640
- };
641
- }[] | undefined;
642
- defaultOutputSchema?: DataSchema | undefined;
643
- transformedOutputSchema?: DataSchema | undefined;
644
- outputSchema?: DataSchema | undefined;
645
- dependencies?: any[] | undefined;
646
- }>;
121
+ authType: z.ZodOptional<z.ZodEnum<{
122
+ proxy: "proxy";
123
+ "integration-app-token": "integration-app-token";
124
+ "membrane-token": "membrane-token";
125
+ oauth2: "oauth2";
126
+ oauth1: "oauth1";
127
+ "client-credentials": "client-credentials";
128
+ }>>;
129
+ }, z.core.$strip>;
130
+ }, z.core.$strip>>>;
131
+ defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
132
+ transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
133
+ outputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
134
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodAny>>;
135
+ }, z.core.$strip>;
647
136
  export type ActionApiResponse = z.infer<typeof ActionApiResponse>;
648
137
  export type Action = ActionApiResponse;
649
138
  export declare const FindActionsQuery: z.ZodObject<{
650
- limit: z.ZodOptional<z.ZodNumber>;
139
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
651
140
  cursor: z.ZodOptional<z.ZodString>;
652
- } & {
653
141
  integrationId: z.ZodOptional<z.ZodString>;
654
142
  parentId: z.ZodOptional<z.ZodString>;
655
143
  integrationKey: z.ZodOptional<z.ZodString>;
656
144
  search: z.ZodOptional<z.ZodString>;
657
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
658
- }, "strip", z.ZodTypeAny, {
659
- search?: string | undefined;
660
- integrationId?: string | undefined;
661
- parentId?: string | undefined;
662
- includeArchived?: boolean | undefined;
663
- limit?: number | undefined;
664
- cursor?: string | undefined;
665
- integrationKey?: string | undefined;
666
- }, {
667
- search?: string | undefined;
668
- integrationId?: string | undefined;
669
- parentId?: string | undefined;
670
- includeArchived?: unknown;
671
- limit?: number | undefined;
672
- cursor?: string | undefined;
673
- integrationKey?: string | undefined;
674
- }>;
145
+ includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
146
+ }, z.core.$strip>;
675
147
  export type FindActionsQuery = z.infer<typeof FindActionsQuery>;
676
148
  export declare const CreateActionRequest: z.ZodObject<{
677
149
  key: z.ZodOptional<z.ZodString>;
@@ -679,41 +151,14 @@ export declare const CreateActionRequest: z.ZodObject<{
679
151
  uuid: z.ZodOptional<z.ZodString>;
680
152
  description: z.ZodOptional<z.ZodString>;
681
153
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
682
- } & {
683
154
  integrationId: z.ZodOptional<z.ZodString>;
684
155
  parentId: z.ZodOptional<z.ZodString>;
685
- inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
686
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>;
156
+ inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
157
+ type: z.ZodOptional<z.ZodEnum<typeof import("../base/actions").ActionType>>;
687
158
  config: z.ZodOptional<z.ZodAny>;
688
159
  outputMapping: z.ZodOptional<z.ZodAny>;
689
- customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
690
- }, "strip", z.ZodTypeAny, {
691
- key?: string | undefined;
692
- type?: import("../base/actions").ActionType | undefined;
693
- name?: string | undefined;
694
- uuid?: string | undefined;
695
- description?: string | undefined;
696
- meta?: Record<string, any> | undefined;
697
- integrationId?: string | undefined;
698
- parentId?: string | undefined;
699
- inputSchema?: DataSchema | undefined;
700
- config?: any;
701
- outputMapping?: any;
702
- customOutputSchema?: DataSchema | undefined;
703
- }, {
704
- key?: string | undefined;
705
- type?: import("../base/actions").ActionType | undefined;
706
- name?: string | undefined;
707
- uuid?: string | undefined;
708
- description?: string | undefined;
709
- meta?: Record<string, any> | undefined;
710
- integrationId?: string | undefined;
711
- parentId?: string | undefined;
712
- inputSchema?: DataSchema | undefined;
713
- config?: any;
714
- outputMapping?: any;
715
- customOutputSchema?: DataSchema | undefined;
716
- }>;
160
+ customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
161
+ }, z.core.$strip>;
717
162
  export type CreateActionRequest = z.infer<typeof CreateActionRequest>;
718
163
  export declare const UpdateActionRequest: z.ZodObject<{
719
164
  key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -723,49 +168,17 @@ export declare const UpdateActionRequest: z.ZodObject<{
723
168
  meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
724
169
  integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
725
170
  parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
726
- inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>>;
727
- type: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>>;
171
+ inputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
172
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof import("../base/actions").ActionType>>>;
728
173
  config: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
729
174
  outputMapping: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
730
- customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>>;
731
- }, "strip", z.ZodTypeAny, {
732
- key?: string | undefined;
733
- type?: import("../base/actions").ActionType | undefined;
734
- name?: string | undefined;
735
- uuid?: string | undefined;
736
- description?: string | undefined;
737
- meta?: Record<string, any> | undefined;
738
- integrationId?: string | undefined;
739
- parentId?: string | undefined;
740
- inputSchema?: DataSchema | undefined;
741
- config?: any;
742
- outputMapping?: any;
743
- customOutputSchema?: DataSchema | undefined;
744
- }, {
745
- key?: string | undefined;
746
- type?: import("../base/actions").ActionType | undefined;
747
- name?: string | undefined;
748
- uuid?: string | undefined;
749
- description?: string | undefined;
750
- meta?: Record<string, any> | undefined;
751
- integrationId?: string | undefined;
752
- parentId?: string | undefined;
753
- inputSchema?: DataSchema | undefined;
754
- config?: any;
755
- outputMapping?: any;
756
- customOutputSchema?: DataSchema | undefined;
757
- }>;
175
+ customOutputSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>>;
176
+ }, z.core.$strip>;
758
177
  export type UpdateActionRequest = z.infer<typeof UpdateActionRequest>;
759
178
  export declare const ActionRunResponse: z.ZodObject<{
760
179
  output: z.ZodOptional<z.ZodAny>;
761
- logs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
762
- }, "strip", z.ZodTypeAny, {
763
- logs?: any[] | undefined;
764
- output?: any;
765
- }, {
766
- logs?: any[] | undefined;
767
- output?: any;
768
- }>;
180
+ logs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
181
+ }, z.core.$strip>;
769
182
  export type ActionRunResponse = z.infer<typeof ActionRunResponse>;
770
183
  export interface ActionSelector extends IntegrationSpecificElementSelector {
771
184
  }