@membranehq/sdk 0.28.2 → 0.29.0
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.
- package/dist/bundle.d.ts +49 -2
- package/dist/bundle.js +1899 -1388
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connection-events-listener.d.ts +14 -0
- package/dist/dts/accessors/connection-events-listener.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +6 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -0
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/agent/worker-contracts.d.ts +2 -1
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/api-version.generated.d.ts +1 -1
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/membrane-instances/types.d.ts +4 -0
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +682 -50
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +32 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +0 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +30 -3
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +28 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-types-api.d.ts +331 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +14 -7
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +19 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.d.ts +46 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +3 -2
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +4 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +5 -5
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/external-event-types/index.d.ts +190 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -2
- package/dist/dts/workspace-elements/types.d.ts +11 -2
- package/dist/dts/workspace-tokens/index.d.ts +1 -0
- package/dist/dts/{client-tokens → workspace-tokens}/types.d.ts +35 -22
- package/dist/dts/workspaces/api.d.ts +0 -6
- package/dist/dts/workspaces/compare.d.ts +4 -1
- package/dist/index.browser.d.mts +2279 -847
- package/dist/index.browser.d.ts +2279 -847
- package/dist/index.browser.js +692 -196
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +653 -190
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +2279 -847
- package/dist/index.node.d.ts +2279 -847
- package/dist/index.node.js +692 -196
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +653 -190
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CreateExternalEventTypeRequest: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
4
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
9
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
13
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
18
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
19
|
+
schema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
20
|
+
parametersSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
21
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
22
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("../base/external-event-types").ExternalEventTypeImplementationType>>;
|
|
23
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
mapping: "mapping";
|
|
26
|
+
"operation-mapping": "operation-mapping";
|
|
27
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
28
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
29
|
+
javascript: "javascript";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
mapping: "mapping";
|
|
35
|
+
"operation-mapping": "operation-mapping";
|
|
36
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
37
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
38
|
+
javascript: "javascript";
|
|
39
|
+
}>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
mapping: "mapping";
|
|
44
|
+
"operation-mapping": "operation-mapping";
|
|
45
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
46
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
47
|
+
javascript: "javascript";
|
|
48
|
+
}>>;
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
mapping: "mapping";
|
|
53
|
+
"operation-mapping": "operation-mapping";
|
|
54
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
55
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
56
|
+
javascript: "javascript";
|
|
57
|
+
}>>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type CreateExternalEventTypeRequest = z.infer<typeof CreateExternalEventTypeRequest>;
|
|
62
|
+
export declare const UpdateExternalEventTypeRequest: z.ZodObject<{
|
|
63
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
64
|
+
key: z.ZodOptional<z.ZodString>;
|
|
65
|
+
name: z.ZodOptional<z.ZodString>;
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
67
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
68
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
70
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
71
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
73
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
74
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
76
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
79
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
80
|
+
schema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
81
|
+
parametersSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
82
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
83
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("../base/external-event-types").ExternalEventTypeImplementationType>>;
|
|
84
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
mapping: "mapping";
|
|
87
|
+
"operation-mapping": "operation-mapping";
|
|
88
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
89
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
90
|
+
javascript: "javascript";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$loose>>;
|
|
93
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
mapping: "mapping";
|
|
96
|
+
"operation-mapping": "operation-mapping";
|
|
97
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
98
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
99
|
+
javascript: "javascript";
|
|
100
|
+
}>>;
|
|
101
|
+
}, z.core.$loose>>;
|
|
102
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
mapping: "mapping";
|
|
105
|
+
"operation-mapping": "operation-mapping";
|
|
106
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
107
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
108
|
+
javascript: "javascript";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$loose>>;
|
|
111
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
mapping: "mapping";
|
|
114
|
+
"operation-mapping": "operation-mapping";
|
|
115
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
116
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
117
|
+
javascript: "javascript";
|
|
118
|
+
}>>;
|
|
119
|
+
}, z.core.$loose>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export type UpdateExternalEventTypeRequest = z.infer<typeof UpdateExternalEventTypeRequest>;
|
|
122
|
+
export declare const FindExternalEventTypesQuery: z.ZodObject<{
|
|
123
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
124
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
connectionKey: z.ZodOptional<z.ZodString>;
|
|
127
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
128
|
+
search: z.ZodOptional<z.ZodString>;
|
|
129
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
130
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
131
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
132
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
layer: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
connection: "connection";
|
|
135
|
+
integration: "integration";
|
|
136
|
+
universal: "universal";
|
|
137
|
+
}>>;
|
|
138
|
+
isUniversal: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
139
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
universalParentId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type FindExternalEventTypesQuery = z.infer<typeof FindExternalEventTypesQuery>;
|
|
145
|
+
export declare const ExternalEventTypeApiResponse: z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
148
|
+
key: z.ZodOptional<z.ZodString>;
|
|
149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
150
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
151
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
152
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
153
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
154
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
155
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
156
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
157
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
158
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
159
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
162
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
165
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
166
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
167
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
168
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
169
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
170
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
schema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
174
|
+
parametersSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
175
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
176
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("../base/external-event-types").ExternalEventTypeImplementationType>>;
|
|
177
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
mapping: "mapping";
|
|
180
|
+
"operation-mapping": "operation-mapping";
|
|
181
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
182
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
183
|
+
javascript: "javascript";
|
|
184
|
+
}>>;
|
|
185
|
+
}, z.core.$loose>>;
|
|
186
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
mapping: "mapping";
|
|
189
|
+
"operation-mapping": "operation-mapping";
|
|
190
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
191
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
192
|
+
javascript: "javascript";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$loose>>;
|
|
195
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
mapping: "mapping";
|
|
198
|
+
"operation-mapping": "operation-mapping";
|
|
199
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
200
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
201
|
+
javascript: "javascript";
|
|
202
|
+
}>>;
|
|
203
|
+
}, z.core.$loose>>;
|
|
204
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
mapping: "mapping";
|
|
207
|
+
"operation-mapping": "operation-mapping";
|
|
208
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
209
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
210
|
+
javascript: "javascript";
|
|
211
|
+
}>>;
|
|
212
|
+
}, z.core.$loose>>;
|
|
213
|
+
appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
element: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
217
|
+
key: z.ZodOptional<z.ZodString>;
|
|
218
|
+
description: z.ZodOptional<z.ZodString>;
|
|
219
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
220
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
221
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
222
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
223
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
224
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
225
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
226
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
228
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
230
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
231
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
234
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
235
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
236
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
237
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
238
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
239
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
schema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
243
|
+
parametersSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
244
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
245
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("../base/external-event-types").ExternalEventTypeImplementationType>>;
|
|
246
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
mapping: "mapping";
|
|
249
|
+
"operation-mapping": "operation-mapping";
|
|
250
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
251
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
252
|
+
javascript: "javascript";
|
|
253
|
+
}>>;
|
|
254
|
+
}, z.core.$loose>>;
|
|
255
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
mapping: "mapping";
|
|
258
|
+
"operation-mapping": "operation-mapping";
|
|
259
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
260
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
261
|
+
javascript: "javascript";
|
|
262
|
+
}>>;
|
|
263
|
+
}, z.core.$loose>>;
|
|
264
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
mapping: "mapping";
|
|
267
|
+
"operation-mapping": "operation-mapping";
|
|
268
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
269
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
270
|
+
javascript: "javascript";
|
|
271
|
+
}>>;
|
|
272
|
+
}, z.core.$loose>>;
|
|
273
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
mapping: "mapping";
|
|
276
|
+
"operation-mapping": "operation-mapping";
|
|
277
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
278
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
279
|
+
javascript: "javascript";
|
|
280
|
+
}>>;
|
|
281
|
+
}, z.core.$loose>>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
integration: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
286
|
+
key: z.ZodOptional<z.ZodString>;
|
|
287
|
+
description: z.ZodOptional<z.ZodString>;
|
|
288
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
291
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
292
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
293
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
294
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
295
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
logoUri: z.ZodString;
|
|
297
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
298
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
299
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
300
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
301
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
302
|
+
hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
hasDocumentation: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
hasOperations: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
+
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
hasEvents: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
eventsCount: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
+
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
315
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
proxy: "proxy";
|
|
318
|
+
"integration-app-token": "integration-app-token";
|
|
319
|
+
"membrane-token": "membrane-token";
|
|
320
|
+
oauth2: "oauth2";
|
|
321
|
+
oauth1: "oauth1";
|
|
322
|
+
"client-credentials": "client-credentials";
|
|
323
|
+
}>>;
|
|
324
|
+
optionsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
325
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
327
|
+
}, z.core.$strip>>>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
}, z.core.$strip>>>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export type ExternalEventTypeApiResponse = z.infer<typeof ExternalEventTypeApiResponse>;
|
|
@@ -250,6 +250,7 @@ export declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
250
250
|
description: z.ZodString;
|
|
251
251
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
252
252
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
253
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
253
254
|
}, z.core.$strip>>;
|
|
254
255
|
userId: z.ZodString;
|
|
255
256
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -555,6 +556,7 @@ export declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
555
556
|
description: z.ZodString;
|
|
556
557
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
557
558
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
559
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
558
560
|
}, z.core.$strip>>;
|
|
559
561
|
userId: z.ZodString;
|
|
560
562
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -167,6 +167,7 @@ export declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
167
167
|
description: z.ZodString;
|
|
168
168
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
169
169
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
170
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
170
171
|
}, z.core.$strip>>;
|
|
171
172
|
userId: z.ZodString;
|
|
172
173
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -372,6 +373,7 @@ export declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
372
373
|
description: z.ZodString;
|
|
373
374
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
374
375
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
376
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
375
377
|
}, z.core.$strip>>;
|
|
376
378
|
userId: z.ZodString;
|
|
377
379
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -287,6 +287,7 @@ export declare const FlowApiResponse: z.ZodObject<{
|
|
|
287
287
|
description: z.ZodString;
|
|
288
288
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
289
289
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
290
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
290
291
|
}, z.core.$strip>>;
|
|
291
292
|
userId: z.ZodString;
|
|
292
293
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -648,6 +649,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
648
649
|
description: z.ZodString;
|
|
649
650
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
650
651
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
652
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
651
653
|
}, z.core.$strip>>;
|
|
652
654
|
userId: z.ZodString;
|
|
653
655
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6,6 +6,7 @@ export declare const ListIncomingWebhooksQuery: z.ZodObject<{
|
|
|
6
6
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
7
7
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
9
10
|
status: z.ZodOptional<z.ZodEnum<typeof IncomingWebhooksState>>;
|
|
10
11
|
externalAppId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -78,6 +79,7 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
78
79
|
description: z.ZodString;
|
|
79
80
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
80
81
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
82
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
81
83
|
}, z.core.$strip>>;
|
|
82
84
|
userId: z.ZodString;
|
|
83
85
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +91,7 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
89
91
|
name: z.ZodOptional<z.ZodString>;
|
|
90
92
|
connectionId: z.ZodString;
|
|
91
93
|
integrationId: z.ZodString;
|
|
94
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
92
95
|
config: z.ZodOptional<z.ZodObject<{
|
|
93
96
|
type: z.ZodEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
|
|
94
97
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -119,6 +122,7 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
119
122
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
120
123
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
121
124
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
125
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
122
126
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
123
127
|
}, z.core.$strip>>;
|
|
124
128
|
}, z.core.$strip>;
|
|
@@ -23,6 +23,7 @@ export * from './app-data-schema-instances-api';
|
|
|
23
23
|
export * from './external-event-log-records-api';
|
|
24
24
|
export * from './external-event-pulls-api';
|
|
25
25
|
export * from './external-event-subscriptions-api';
|
|
26
|
+
export * from './external-event-types-api';
|
|
26
27
|
export * from './app-event-log-records-api';
|
|
27
28
|
export * from './external-api-logs-api';
|
|
28
29
|
export * from './incoming-webhooks-api';
|
|
@@ -23,6 +23,7 @@ export declare const CreateIntegrationRequest: z.ZodObject<{
|
|
|
23
23
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
export type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
|
|
28
29
|
export declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
@@ -53,6 +54,7 @@ export declare const FindIntegrationsQuery: z.ZodObject<{
|
|
|
53
54
|
connectors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
54
55
|
externalApps: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
55
56
|
websearch: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
57
|
+
all: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
56
58
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
57
59
|
cursor: z.ZodOptional<z.ZodString>;
|
|
58
60
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -91,19 +93,17 @@ export declare const IntegrationAuthOption: z.ZodObject<{
|
|
|
91
93
|
}, z.core.$strip>;
|
|
92
94
|
export type IntegrationAuthOption = z.infer<typeof IntegrationAuthOption>;
|
|
93
95
|
export declare const IntegrationApiResponse: z.ZodObject<{
|
|
94
|
-
id: z.ZodString;
|
|
95
96
|
uuid: z.ZodOptional<z.ZodString>;
|
|
96
97
|
key: z.ZodOptional<z.ZodString>;
|
|
97
98
|
description: z.ZodOptional<z.ZodString>;
|
|
98
99
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
99
100
|
name: z.ZodString;
|
|
100
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
101
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
101
102
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
102
103
|
revision: z.ZodOptional<z.ZodString>;
|
|
103
104
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
104
105
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
105
106
|
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
logoUri: z.ZodString;
|
|
107
107
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
108
108
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
109
109
|
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
@@ -143,7 +143,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
143
143
|
connected: z.ZodOptional<z.ZodBoolean>;
|
|
144
144
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
145
145
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
146
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
147
147
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
148
148
|
requestError: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
149
149
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
@@ -172,6 +172,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
172
172
|
description: z.ZodString;
|
|
173
173
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
174
174
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
175
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
175
176
|
}, z.core.$strip>>;
|
|
176
177
|
userId: z.ZodString;
|
|
177
178
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -195,6 +196,10 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
195
196
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
196
197
|
}, z.core.$strip>>;
|
|
197
198
|
}, z.core.$strip>>>;
|
|
199
|
+
id: z.ZodOptional<z.ZodString>;
|
|
200
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
201
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
202
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
198
203
|
}, z.core.$strip>;
|
|
199
204
|
export type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
|
|
200
205
|
export declare const IntegrationListItem: z.ZodObject<{
|
|
@@ -203,7 +208,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
203
208
|
description: z.ZodOptional<z.ZodString>;
|
|
204
209
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
205
210
|
name: z.ZodString;
|
|
206
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
211
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
207
212
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
208
213
|
revision: z.ZodOptional<z.ZodString>;
|
|
209
214
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -248,7 +253,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
248
253
|
connected: z.ZodOptional<z.ZodBoolean>;
|
|
249
254
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
250
255
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
256
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
252
257
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
253
258
|
requestError: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
254
259
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
@@ -277,6 +282,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
277
282
|
description: z.ZodString;
|
|
278
283
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
279
284
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
285
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
280
286
|
}, z.core.$strip>>;
|
|
281
287
|
userId: z.ZodString;
|
|
282
288
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +309,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
303
309
|
id: z.ZodOptional<z.ZodString>;
|
|
304
310
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
305
311
|
appUri: z.ZodOptional<z.ZodString>;
|
|
312
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
306
313
|
}, z.core.$strip>;
|
|
307
|
-
export type IntegrationListItem =
|
|
314
|
+
export type IntegrationListItem = IntegrationApiResponse;
|
|
308
315
|
export type Integration = IntegrationApiResponse;
|
|
@@ -25,5 +25,24 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
25
25
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
26
26
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
31
|
+
key: z.ZodOptional<z.ZodString>;
|
|
32
|
+
connectionKey: z.ZodOptional<z.ZodString>;
|
|
33
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
type: z.ZodString;
|
|
35
|
+
api: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
method: z.ZodEnum<typeof import("../../../http-requests").HttpRequestMethod>;
|
|
37
|
+
path: z.ZodOptional<z.ZodString>;
|
|
38
|
+
url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
40
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
code: z.ZodOptional<z.ZodString>;
|
|
44
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
45
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
28
47
|
}, z.core.$strip>;
|
|
29
48
|
export type BaseActionRunLogRecord = z.infer<typeof BaseActionRunLogRecord>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpRequestMethod } from '../../../http-requests';
|
|
3
|
+
export declare const ActionApiPayload: z.ZodObject<{
|
|
4
|
+
method: z.ZodEnum<typeof HttpRequestMethod>;
|
|
5
|
+
path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
8
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type ActionApiPayload = z.infer<typeof ActionApiPayload>;
|
|
12
|
+
export declare const ActionSnapshot: z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
key: z.ZodOptional<z.ZodString>;
|
|
16
|
+
connectionKey: z.ZodOptional<z.ZodString>;
|
|
17
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
type: z.ZodString;
|
|
19
|
+
api: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
method: z.ZodEnum<typeof HttpRequestMethod>;
|
|
21
|
+
path: z.ZodOptional<z.ZodString>;
|
|
22
|
+
url: z.ZodOptional<z.ZodString>;
|
|
23
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
24
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
code: z.ZodOptional<z.ZodString>;
|
|
28
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type ActionSnapshot = z.infer<typeof ActionSnapshot>;
|
|
32
|
+
export declare function configToNamedPayload(type: string, config: unknown): {
|
|
33
|
+
api?: ActionApiPayload;
|
|
34
|
+
code?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function buildActionSnapshot(args: {
|
|
37
|
+
id?: string;
|
|
38
|
+
integrationKey?: string;
|
|
39
|
+
key?: string;
|
|
40
|
+
connectionId?: string;
|
|
41
|
+
connectionKey?: string;
|
|
42
|
+
type: string;
|
|
43
|
+
config: unknown;
|
|
44
|
+
input?: unknown;
|
|
45
|
+
meta?: Record<string, unknown>;
|
|
46
|
+
}): ActionSnapshot;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { DataSchema } from '../../../data-schema';
|
|
|
3
3
|
import { ActionType } from './action-types';
|
|
4
4
|
export { ActionType } from './action-types';
|
|
5
5
|
export * from './action-types';
|
|
6
|
+
export * from './action-payload';
|
|
6
7
|
export declare enum ActionDependencyType {
|
|
7
8
|
FieldMapping = "FieldMapping",
|
|
8
9
|
DataSource = "DataSource"
|
|
@@ -39,13 +40,13 @@ export declare const ActionEditableProperties: z.ZodObject<{
|
|
|
39
40
|
}, z.core.$strip>;
|
|
40
41
|
export type ActionEditableProperties = z.infer<typeof ActionEditableProperties>;
|
|
41
42
|
export declare const ActionExportProperties: z.ZodObject<{
|
|
42
|
-
key: z.ZodOptional<z.ZodString
|
|
43
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
43
44
|
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
44
45
|
description: z.ZodOptional<z.ZodString>;
|
|
45
46
|
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
46
47
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
47
48
|
name: z.ZodOptional<z.ZodString>;
|
|
48
|
-
uuid: z.ZodOptional<z.ZodString
|
|
49
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
49
50
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
50
51
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
51
52
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
@@ -13,12 +13,12 @@ export declare const AppDataSchemaEditableProperties: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export type AppDataSchemaEditableProperties = z.infer<typeof AppDataSchemaEditableProperties>;
|
|
15
15
|
export declare const AppDataSchemaExportProperties: z.ZodObject<{
|
|
16
|
-
key: z.ZodOptional<z.ZodString
|
|
16
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
code: z.ZodOptional<z.ZodString>;
|
|
18
18
|
description: z.ZodOptional<z.ZodString>;
|
|
19
19
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
20
20
|
name: z.ZodOptional<z.ZodString>;
|
|
21
|
-
uuid: z.ZodOptional<z.ZodString
|
|
21
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
22
22
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
23
|
schema: z.ZodOptional<z.ZodAny>;
|
|
24
24
|
}, z.core.$strip>;
|
|
@@ -50,8 +50,8 @@ export declare const AppEventTypeEditableProperties: z.ZodObject<{
|
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export type AppEventTypeEditableProperties = z.infer<typeof AppEventTypeEditableProperties>;
|
|
52
52
|
export declare const AppEventTypeExportProperties: z.ZodObject<{
|
|
53
|
-
uuid: z.ZodOptional<z.ZodString
|
|
54
|
-
key: z.ZodOptional<z.ZodString
|
|
53
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
55
55
|
name: z.ZodOptional<z.ZodString>;
|
|
56
56
|
description: z.ZodOptional<z.ZodString>;
|
|
57
57
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|