@membranehq/sdk 0.9.11 → 0.11.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 +75 -34
- package/dist/bundle.js +34 -17
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +18 -12
- package/dist/dts/accessors/integrations-accessors.d.ts +15 -11
- package/dist/dts/agent/session.d.ts +10 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +106 -13
- package/dist/dts/alerts/utils.d.ts +8 -0
- package/dist/dts/config/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts +3 -0
- package/dist/dts/functions/base.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/logging/index.d.ts +9 -0
- package/dist/dts/orgs/types.d.ts +68 -1
- package/dist/dts/platform-users.d.ts +17 -2
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/webhooks/types.d.ts +4 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +19 -4
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -4
- package/dist/dts/workspace-elements/api/packages-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -1
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +20 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +12 -490
- package/dist/dts/workspace-elements/base/connectors/functions.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +922 -478
- package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/methods/base.d.ts +1 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +9 -3
- package/dist/dts/workspaces/types.d.ts +39 -1
- package/dist/index.browser.d.mts +1420 -641
- package/dist/index.browser.d.ts +1420 -641
- package/dist/index.browser.js +608 -122
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +584 -123
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1370 -590
- package/dist/index.node.d.ts +1370 -590
- package/dist/index.node.js +615 -122
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +591 -123
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
|
@@ -1,491 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConnectorAuthType } from './auth';
|
|
2
|
+
import { Connector, ConnectorAuthWithFunctions, ConnectorOption } from './types';
|
|
2
3
|
import { DataSchema } from '../../../data-schema';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}>;
|
|
14
|
-
ui: z.ZodOptional<z.ZodObject<{
|
|
15
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
16
|
-
helpUri: z.ZodOptional<z.ZodString>;
|
|
17
|
-
}, z.core.$strip>>;
|
|
18
|
-
credentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
19
|
-
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
20
|
-
proxyKey: z.ZodOptional<z.ZodString>;
|
|
21
|
-
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
type: z.ZodEnum<{
|
|
23
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
24
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
25
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
26
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
27
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
28
|
-
}>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
type: z.ZodEnum<{
|
|
32
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
33
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
34
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
35
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
36
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
37
|
-
}>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
40
|
-
type: z.ZodEnum<{
|
|
41
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
42
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
43
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
44
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
45
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
46
|
-
}>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
49
|
-
type: z.ZodEnum<{
|
|
50
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
51
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
52
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
53
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
54
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
55
|
-
}>;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
type: z.ZodEnum<{
|
|
59
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
60
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
61
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
62
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
63
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
64
|
-
}>;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
|
-
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
type: z.ZodEnum<{
|
|
68
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
69
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
70
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
71
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
72
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
73
|
-
}>;
|
|
74
|
-
}, z.core.$strip>>;
|
|
75
|
-
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
76
|
-
type: z.ZodEnum<{
|
|
77
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
78
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
79
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
80
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
81
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
82
|
-
}>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
test: z.ZodOptional<z.ZodObject<{
|
|
85
|
-
type: z.ZodEnum<{
|
|
86
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
87
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
88
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
89
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
90
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
91
|
-
}>;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
export type ConnectorAuthWithFunctions = z.infer<typeof ConnectorAuthWithFunctions>;
|
|
95
|
-
export declare const ConnectorOption: z.ZodObject<{
|
|
96
|
-
title: z.ZodOptional<z.ZodString>;
|
|
97
|
-
description: z.ZodOptional<z.ZodString>;
|
|
98
|
-
type: z.ZodEnum<{
|
|
99
|
-
proxy: "proxy";
|
|
100
|
-
"integration-app-token": "integration-app-token";
|
|
101
|
-
"membrane-token": "membrane-token";
|
|
102
|
-
oauth2: "oauth2";
|
|
103
|
-
oauth1: "oauth1";
|
|
104
|
-
"client-credentials": "client-credentials";
|
|
105
|
-
}>;
|
|
106
|
-
ui: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
108
|
-
helpUri: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>>;
|
|
110
|
-
credentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
111
|
-
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
112
|
-
proxyKey: z.ZodOptional<z.ZodString>;
|
|
113
|
-
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
114
|
-
type: z.ZodEnum<{
|
|
115
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
116
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
117
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
118
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
119
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
120
|
-
}>;
|
|
121
|
-
}, z.core.$strip>>;
|
|
122
|
-
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
type: z.ZodEnum<{
|
|
124
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
125
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
126
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
127
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
128
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
129
|
-
}>;
|
|
130
|
-
}, z.core.$strip>>;
|
|
131
|
-
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
type: z.ZodEnum<{
|
|
133
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
134
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
135
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
136
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
137
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
138
|
-
}>;
|
|
139
|
-
}, z.core.$strip>>;
|
|
140
|
-
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
141
|
-
type: z.ZodEnum<{
|
|
142
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
143
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
144
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
145
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
146
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
147
|
-
}>;
|
|
148
|
-
}, z.core.$strip>>;
|
|
149
|
-
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
150
|
-
type: z.ZodEnum<{
|
|
151
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
152
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
153
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
154
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
155
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
156
|
-
}>;
|
|
157
|
-
}, z.core.$strip>>;
|
|
158
|
-
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
159
|
-
type: z.ZodEnum<{
|
|
160
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
161
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
162
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
163
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
164
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
165
|
-
}>;
|
|
166
|
-
}, z.core.$strip>>;
|
|
167
|
-
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
type: z.ZodEnum<{
|
|
169
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
170
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
171
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
172
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
173
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
174
|
-
}>;
|
|
175
|
-
}, z.core.$strip>>;
|
|
176
|
-
test: z.ZodOptional<z.ZodObject<{
|
|
177
|
-
type: z.ZodEnum<{
|
|
178
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
179
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
180
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
181
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
182
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
183
|
-
}>;
|
|
184
|
-
}, z.core.$strip>>;
|
|
185
|
-
enabled: z.ZodOptional<z.ZodAny>;
|
|
186
|
-
}, z.core.$strip>;
|
|
187
|
-
export type ConnectorOption = z.infer<typeof ConnectorOption>;
|
|
188
|
-
export declare const ConnectorOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
189
|
-
title: z.ZodOptional<z.ZodString>;
|
|
190
|
-
description: z.ZodOptional<z.ZodString>;
|
|
191
|
-
type: z.ZodEnum<{
|
|
192
|
-
proxy: "proxy";
|
|
193
|
-
"integration-app-token": "integration-app-token";
|
|
194
|
-
"membrane-token": "membrane-token";
|
|
195
|
-
oauth2: "oauth2";
|
|
196
|
-
oauth1: "oauth1";
|
|
197
|
-
"client-credentials": "client-credentials";
|
|
198
|
-
}>;
|
|
199
|
-
ui: z.ZodOptional<z.ZodObject<{
|
|
200
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
201
|
-
helpUri: z.ZodOptional<z.ZodString>;
|
|
202
|
-
}, z.core.$strip>>;
|
|
203
|
-
credentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
204
|
-
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
205
|
-
proxyKey: z.ZodOptional<z.ZodString>;
|
|
206
|
-
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
type: z.ZodEnum<{
|
|
208
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
209
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
210
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
211
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
212
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
213
|
-
}>;
|
|
214
|
-
}, z.core.$strip>>;
|
|
215
|
-
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
216
|
-
type: z.ZodEnum<{
|
|
217
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
218
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
219
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
220
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
221
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
222
|
-
}>;
|
|
223
|
-
}, z.core.$strip>>;
|
|
224
|
-
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
225
|
-
type: z.ZodEnum<{
|
|
226
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
227
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
228
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
229
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
230
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
231
|
-
}>;
|
|
232
|
-
}, z.core.$strip>>;
|
|
233
|
-
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
234
|
-
type: z.ZodEnum<{
|
|
235
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
236
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
237
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
238
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
239
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
240
|
-
}>;
|
|
241
|
-
}, z.core.$strip>>;
|
|
242
|
-
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
243
|
-
type: z.ZodEnum<{
|
|
244
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
245
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
246
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
247
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
248
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
249
|
-
}>;
|
|
250
|
-
}, z.core.$strip>>;
|
|
251
|
-
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
252
|
-
type: z.ZodEnum<{
|
|
253
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
254
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
255
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
256
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
257
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
258
|
-
}>;
|
|
259
|
-
}, z.core.$strip>>;
|
|
260
|
-
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
type: z.ZodEnum<{
|
|
262
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
263
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
264
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
265
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
266
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
267
|
-
}>;
|
|
268
|
-
}, z.core.$strip>>;
|
|
269
|
-
test: z.ZodOptional<z.ZodObject<{
|
|
270
|
-
type: z.ZodEnum<{
|
|
271
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
272
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
273
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
274
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
275
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
276
|
-
}>;
|
|
277
|
-
}, z.core.$strip>>;
|
|
278
|
-
enabled: z.ZodOptional<z.ZodAny>;
|
|
279
|
-
}, z.core.$strip>>;
|
|
280
|
-
export type ConnectorOptions = z.infer<typeof ConnectorOptions>;
|
|
281
|
-
export declare const ConnectorWithFunctions: z.ZodObject<{
|
|
282
|
-
id: z.ZodString;
|
|
283
|
-
key: z.ZodString;
|
|
284
|
-
uuid: z.ZodString;
|
|
285
|
-
name: z.ZodString;
|
|
286
|
-
logoUri: z.ZodString;
|
|
287
|
-
appUri: z.ZodString;
|
|
288
|
-
apiDocsUri: z.ZodString;
|
|
289
|
-
status: z.ZodOptional<z.ZodString>;
|
|
290
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
-
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
-
popularity: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
title: z.ZodOptional<z.ZodString>;
|
|
294
|
-
description: z.ZodOptional<z.ZodString>;
|
|
295
|
-
type: z.ZodEnum<{
|
|
296
|
-
proxy: "proxy";
|
|
297
|
-
"integration-app-token": "integration-app-token";
|
|
298
|
-
"membrane-token": "membrane-token";
|
|
299
|
-
oauth2: "oauth2";
|
|
300
|
-
oauth1: "oauth1";
|
|
301
|
-
"client-credentials": "client-credentials";
|
|
302
|
-
}>;
|
|
303
|
-
credentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
304
|
-
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
305
|
-
proxyKey: z.ZodOptional<z.ZodString>;
|
|
306
|
-
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
type: z.ZodEnum<{
|
|
308
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
309
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
310
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
311
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
312
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
313
|
-
}>;
|
|
314
|
-
}, z.core.$strip>>;
|
|
315
|
-
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
316
|
-
type: z.ZodEnum<{
|
|
317
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
318
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
319
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
320
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
321
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
322
|
-
}>;
|
|
323
|
-
}, z.core.$strip>>;
|
|
324
|
-
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
325
|
-
type: z.ZodEnum<{
|
|
326
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
327
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
328
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
329
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
330
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
331
|
-
}>;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
334
|
-
type: z.ZodEnum<{
|
|
335
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
336
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
337
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
338
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
339
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
340
|
-
}>;
|
|
341
|
-
}, z.core.$strip>>;
|
|
342
|
-
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
343
|
-
type: z.ZodEnum<{
|
|
344
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
345
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
346
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
347
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
348
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
349
|
-
}>;
|
|
350
|
-
}, z.core.$strip>>;
|
|
351
|
-
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
352
|
-
type: z.ZodEnum<{
|
|
353
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
354
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
355
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
356
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
357
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
358
|
-
}>;
|
|
359
|
-
}, z.core.$strip>>;
|
|
360
|
-
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
361
|
-
type: z.ZodEnum<{
|
|
362
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
363
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
364
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
365
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
366
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
367
|
-
}>;
|
|
368
|
-
}, z.core.$strip>>;
|
|
369
|
-
test: z.ZodOptional<z.ZodObject<{
|
|
370
|
-
type: z.ZodEnum<{
|
|
371
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
372
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
373
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
374
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
375
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
376
|
-
}>;
|
|
377
|
-
}, z.core.$strip>>;
|
|
378
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
379
|
-
title: z.ZodOptional<z.ZodString>;
|
|
380
|
-
description: z.ZodOptional<z.ZodString>;
|
|
381
|
-
type: z.ZodEnum<{
|
|
382
|
-
proxy: "proxy";
|
|
383
|
-
"integration-app-token": "integration-app-token";
|
|
384
|
-
"membrane-token": "membrane-token";
|
|
385
|
-
oauth2: "oauth2";
|
|
386
|
-
oauth1: "oauth1";
|
|
387
|
-
"client-credentials": "client-credentials";
|
|
388
|
-
}>;
|
|
389
|
-
ui: z.ZodOptional<z.ZodObject<{
|
|
390
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
391
|
-
helpUri: z.ZodOptional<z.ZodString>;
|
|
392
|
-
}, z.core.$strip>>;
|
|
393
|
-
credentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
394
|
-
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
395
|
-
proxyKey: z.ZodOptional<z.ZodString>;
|
|
396
|
-
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
397
|
-
type: z.ZodEnum<{
|
|
398
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
399
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
400
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
401
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
402
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
403
|
-
}>;
|
|
404
|
-
}, z.core.$strip>>;
|
|
405
|
-
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
406
|
-
type: z.ZodEnum<{
|
|
407
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
408
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
409
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
410
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
411
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
412
|
-
}>;
|
|
413
|
-
}, z.core.$strip>>;
|
|
414
|
-
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
415
|
-
type: z.ZodEnum<{
|
|
416
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
417
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
418
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
419
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
420
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
421
|
-
}>;
|
|
422
|
-
}, z.core.$strip>>;
|
|
423
|
-
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
424
|
-
type: z.ZodEnum<{
|
|
425
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
426
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
427
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
428
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
429
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
430
|
-
}>;
|
|
431
|
-
}, z.core.$strip>>;
|
|
432
|
-
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
433
|
-
type: z.ZodEnum<{
|
|
434
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
435
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
436
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
437
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
438
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
439
|
-
}>;
|
|
440
|
-
}, z.core.$strip>>;
|
|
441
|
-
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
442
|
-
type: z.ZodEnum<{
|
|
443
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
444
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
445
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
446
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
447
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
448
|
-
}>;
|
|
449
|
-
}, z.core.$strip>>;
|
|
450
|
-
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
451
|
-
type: z.ZodEnum<{
|
|
452
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
453
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
454
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
455
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
456
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
457
|
-
}>;
|
|
458
|
-
}, z.core.$strip>>;
|
|
459
|
-
test: z.ZodOptional<z.ZodObject<{
|
|
460
|
-
type: z.ZodEnum<{
|
|
461
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
462
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
463
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
464
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
465
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
466
|
-
}>;
|
|
467
|
-
}, z.core.$strip>>;
|
|
468
|
-
enabled: z.ZodOptional<z.ZodAny>;
|
|
469
|
-
}, z.core.$strip>>>;
|
|
470
|
-
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
471
|
-
ui: z.ZodOptional<z.ZodObject<{
|
|
472
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
473
|
-
description: z.ZodOptional<z.ZodString>;
|
|
474
|
-
helpUri: z.ZodOptional<z.ZodString>;
|
|
475
|
-
}, z.core.$strip>>;
|
|
476
|
-
connectorTest: z.ZodOptional<z.ZodObject<{
|
|
477
|
-
type: z.ZodEnum<{
|
|
478
|
-
mapping: import("../../../functions").FunctionType.mapping;
|
|
479
|
-
"operation-mapping": import("../../../functions").FunctionType.operationMapping;
|
|
480
|
-
"rest-api-mapping": import("../../../functions").FunctionType.restApiMapping;
|
|
481
|
-
"graphql-api-mapping": import("../../../functions").FunctionType.graphqlApiMapping;
|
|
482
|
-
javascript: import("../../../functions").FunctionType.javascript;
|
|
483
|
-
}>;
|
|
484
|
-
}, z.core.$strip>>;
|
|
485
|
-
udms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
|
-
hasReadme: z.ZodOptional<z.ZodBoolean>;
|
|
487
|
-
appUuid: z.ZodOptional<z.ZodString>;
|
|
488
|
-
knowledgeBaseUuid: z.ZodOptional<z.ZodString>;
|
|
489
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
490
|
-
}, z.core.$strip>;
|
|
491
|
-
export type ConnectorWithFunctions = z.infer<typeof ConnectorWithFunctions>;
|
|
4
|
+
import { FunctionType } from '../../../functions/base';
|
|
5
|
+
export declare function getEffectiveConnectorOption(connector: Connector, optionKey: string): ConnectorOption;
|
|
6
|
+
export interface ConnectorFunctionSpec {
|
|
7
|
+
authTypes?: ConnectorAuthType[];
|
|
8
|
+
getInputSchema?: (authConfig: ConnectorAuthWithFunctions) => DataSchema | undefined;
|
|
9
|
+
getOutputSchema?: (authConfig: ConnectorAuthWithFunctions) => DataSchema | undefined;
|
|
10
|
+
supportedFunctionTypes: FunctionType[];
|
|
11
|
+
isRequired: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ConnectorFunctionSpecs: Record<string, ConnectorFunctionSpec>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|