@membranehq/sdk 0.28.3 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +140 -4
- package/dist/bundle.js +1917 -1394
- 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 +9 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -0
- package/dist/dts/agent/harness-snapshot.d.ts +65 -0
- package/dist/dts/agent/harness.d.ts +107 -0
- package/dist/dts/agent/index.d.ts +6 -0
- package/dist/dts/agent/instruction.d.ts +32 -0
- package/dist/dts/agent/session.d.ts +6 -2
- package/dist/dts/agent/skill.d.ts +50 -0
- package/dist/dts/agent/tool.d.ts +8 -0
- package/dist/dts/agent/worker-contracts.d.ts +4 -1
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +3 -1
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +1183 -33
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +50 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +71 -1
- 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 +10 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +10 -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 +14 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +22 -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 +20 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +32 -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 +6 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +25 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +213 -5
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- 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-pulls/index.d.ts +50 -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/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +15 -3
- 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 +3654 -858
- package/dist/index.browser.d.ts +3654 -858
- package/dist/index.browser.js +1105 -213
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +1032 -207
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +3654 -858
- package/dist/index.node.d.ts +3654 -858
- package/dist/index.node.js +1105 -213
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +1032 -207
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
|
@@ -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>;
|
|
@@ -137,13 +137,17 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
137
137
|
}, z.core.$strip>>>;
|
|
138
138
|
connection: z.ZodOptional<z.ZodObject<{
|
|
139
139
|
id: z.ZodString;
|
|
140
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
141
|
+
connector: "connector";
|
|
142
|
+
mcp: "mcp";
|
|
143
|
+
}>>;
|
|
140
144
|
name: z.ZodString;
|
|
141
145
|
key: z.ZodOptional<z.ZodString>;
|
|
142
146
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
143
147
|
connected: z.ZodOptional<z.ZodBoolean>;
|
|
144
148
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
145
149
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
150
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
147
151
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
148
152
|
requestError: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
149
153
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
@@ -172,6 +176,12 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
172
176
|
description: z.ZodString;
|
|
173
177
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
174
178
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
179
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
180
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
"provide-input": "provide-input";
|
|
182
|
+
authenticate: "authenticate";
|
|
183
|
+
reauthenticate: "reauthenticate";
|
|
184
|
+
}>>;
|
|
175
185
|
}, z.core.$strip>>;
|
|
176
186
|
userId: z.ZodString;
|
|
177
187
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -195,6 +205,10 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
195
205
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
196
206
|
}, z.core.$strip>>;
|
|
197
207
|
}, z.core.$strip>>>;
|
|
208
|
+
id: z.ZodOptional<z.ZodString>;
|
|
209
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
210
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
211
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
198
212
|
}, z.core.$strip>;
|
|
199
213
|
export type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
|
|
200
214
|
export declare const IntegrationListItem: z.ZodObject<{
|
|
@@ -203,7 +217,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
203
217
|
description: z.ZodOptional<z.ZodString>;
|
|
204
218
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
205
219
|
name: z.ZodString;
|
|
206
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
220
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
207
221
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
208
222
|
revision: z.ZodOptional<z.ZodString>;
|
|
209
223
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -242,13 +256,17 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
242
256
|
}, z.core.$strip>>>;
|
|
243
257
|
connection: z.ZodOptional<z.ZodObject<{
|
|
244
258
|
id: z.ZodString;
|
|
259
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
connector: "connector";
|
|
261
|
+
mcp: "mcp";
|
|
262
|
+
}>>;
|
|
245
263
|
name: z.ZodString;
|
|
246
264
|
key: z.ZodOptional<z.ZodString>;
|
|
247
265
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
248
266
|
connected: z.ZodOptional<z.ZodBoolean>;
|
|
249
267
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
250
268
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
-
state: z.ZodOptional<z.ZodEnum<typeof import("
|
|
269
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../types").WorkspaceElementState>>;
|
|
252
270
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
253
271
|
requestError: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
254
272
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
@@ -277,6 +295,12 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
277
295
|
description: z.ZodString;
|
|
278
296
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
279
297
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
298
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
299
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
300
|
+
"provide-input": "provide-input";
|
|
301
|
+
authenticate: "authenticate";
|
|
302
|
+
reauthenticate: "reauthenticate";
|
|
303
|
+
}>>;
|
|
280
304
|
}, z.core.$strip>>;
|
|
281
305
|
userId: z.ZodString;
|
|
282
306
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +327,7 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
303
327
|
id: z.ZodOptional<z.ZodString>;
|
|
304
328
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
305
329
|
appUri: z.ZodOptional<z.ZodString>;
|
|
330
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
306
331
|
}, z.core.$strip>;
|
|
307
|
-
export type IntegrationListItem =
|
|
332
|
+
export type IntegrationListItem = IntegrationApiResponse;
|
|
308
333
|
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>>;
|
|
@@ -10,12 +10,15 @@ export declare const CreateConnectionRequestPayload: z.ZodObject<{
|
|
|
10
10
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
12
12
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
13
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
13
15
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
14
16
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
15
17
|
name: z.ZodOptional<z.ZodString>;
|
|
16
18
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
17
19
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
20
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
21
|
+
customState: z.ZodOptional<z.ZodString>;
|
|
19
22
|
prompt: z.ZodOptional<z.ZodString>;
|
|
20
23
|
}, z.core.$strip>;
|
|
21
24
|
export type CreateConnectionRequestPayload = z.infer<typeof CreateConnectionRequestPayload>;
|
|
@@ -29,12 +32,15 @@ export declare const ConnectionRequest: z.ZodObject<{
|
|
|
29
32
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
30
33
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
31
34
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
35
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
32
37
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
33
38
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
34
39
|
name: z.ZodOptional<z.ZodString>;
|
|
35
40
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
36
41
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
42
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
43
|
+
customState: z.ZodOptional<z.ZodString>;
|
|
38
44
|
prompt: z.ZodOptional<z.ZodString>;
|
|
39
45
|
status: z.ZodEnum<{
|
|
40
46
|
success: "success";
|
|
@@ -2,7 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ErrorDataSchema } from '../../../errors';
|
|
3
3
|
import { WorkspaceElementState } from '../../types';
|
|
4
4
|
import { ConnectorUiSpec, ConnectorSpec } from '../connectors';
|
|
5
|
+
export declare const ConnectionType: z.ZodEnum<{
|
|
6
|
+
connector: "connector";
|
|
7
|
+
mcp: "mcp";
|
|
8
|
+
}>;
|
|
9
|
+
export type ConnectionType = z.infer<typeof ConnectionType>;
|
|
5
10
|
export declare const ConnectionEditableProperties: z.ZodObject<{
|
|
11
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
connector: "connector";
|
|
13
|
+
mcp: "mcp";
|
|
14
|
+
}>>;
|
|
6
15
|
name: z.ZodOptional<z.ZodString>;
|
|
7
16
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8
17
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -29,10 +38,20 @@ export declare const ConnectionClientAction: z.ZodObject<{
|
|
|
29
38
|
description: z.ZodString;
|
|
30
39
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
31
40
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
41
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
42
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
"provide-input": "provide-input";
|
|
44
|
+
authenticate: "authenticate";
|
|
45
|
+
reauthenticate: "reauthenticate";
|
|
46
|
+
}>>;
|
|
32
47
|
}, z.core.$strip>;
|
|
33
48
|
export type ConnectionClientAction = z.infer<typeof ConnectionClientAction>;
|
|
34
49
|
export declare const BaseConnection: z.ZodObject<{
|
|
35
50
|
id: z.ZodString;
|
|
51
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
connector: "connector";
|
|
53
|
+
mcp: "mcp";
|
|
54
|
+
}>>;
|
|
36
55
|
name: z.ZodString;
|
|
37
56
|
key: z.ZodOptional<z.ZodString>;
|
|
38
57
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -68,6 +87,12 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
68
87
|
description: z.ZodString;
|
|
69
88
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
70
89
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
90
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
91
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
"provide-input": "provide-input";
|
|
93
|
+
authenticate: "authenticate";
|
|
94
|
+
reauthenticate: "reauthenticate";
|
|
95
|
+
}>>;
|
|
71
96
|
}, z.core.$strip>>;
|
|
72
97
|
userId: z.ZodString;
|
|
73
98
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -2576,6 +2576,7 @@ export interface ConnectorAuthOAuth2Config {
|
|
|
2576
2576
|
clientAuthLocation?: 'body' | 'headers';
|
|
2577
2577
|
noRefreshToken?: boolean;
|
|
2578
2578
|
skipPkce?: boolean;
|
|
2579
|
+
authorizationCodeParam?: string;
|
|
2579
2580
|
skipClientAuthInBody?: boolean;
|
|
2580
2581
|
skipClientAuthInHeaders?: boolean;
|
|
2581
2582
|
extra?: Record<string, any>;
|
|
@@ -2626,6 +2627,11 @@ export declare const OAUTH_CONFIG_SCHEMA: {
|
|
|
2626
2627
|
type: string;
|
|
2627
2628
|
description: string;
|
|
2628
2629
|
};
|
|
2630
|
+
authorizationCodeParam: {
|
|
2631
|
+
type: string;
|
|
2632
|
+
default: string;
|
|
2633
|
+
description: string;
|
|
2634
|
+
};
|
|
2629
2635
|
extra: {
|
|
2630
2636
|
type: string;
|
|
2631
2637
|
additionalProperties: boolean;
|
|
@@ -2671,7 +2671,7 @@ export declare const WritableConnectorVersionData: z.ZodObject<{
|
|
|
2671
2671
|
}, z.core.$strip>;
|
|
2672
2672
|
export type WritableConnectorVersionData = z.infer<typeof WritableConnectorVersionData>;
|
|
2673
2673
|
export declare const ConnectorVersionData: z.ZodObject<{
|
|
2674
|
-
baseUri: z.ZodString
|
|
2674
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
2675
2675
|
revision: z.ZodOptional<z.ZodString>;
|
|
2676
2676
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
2677
2677
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2889,7 +2889,7 @@ export declare const ConnectorVersionData: z.ZodObject<{
|
|
|
2889
2889
|
}, z.core.$strip>;
|
|
2890
2890
|
export type ConnectorVersionData = z.infer<typeof ConnectorVersionData>;
|
|
2891
2891
|
export declare const ConnectorVersion: z.ZodObject<{
|
|
2892
|
-
baseUri: z.ZodString
|
|
2892
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
2893
2893
|
revision: z.ZodOptional<z.ZodString>;
|
|
2894
2894
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
2895
2895
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3320,7 +3320,7 @@ export declare const WriteableConnectorFields: z.ZodObject<{
|
|
|
3320
3320
|
proxyKey: z.ZodOptional<z.ZodString>;
|
|
3321
3321
|
}, z.core.$strip>;
|
|
3322
3322
|
export declare const ConnectorExportProperties: z.ZodObject<{
|
|
3323
|
-
key: z.ZodOptional<z.ZodString
|
|
3323
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
3324
3324
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3325
3325
|
proxy: "proxy";
|
|
3326
3326
|
"integration-app-token": "integration-app-token";
|
|
@@ -3330,7 +3330,7 @@ export declare const ConnectorExportProperties: z.ZodObject<{
|
|
|
3330
3330
|
"client-credentials": "client-credentials";
|
|
3331
3331
|
}>>;
|
|
3332
3332
|
name: z.ZodOptional<z.ZodString>;
|
|
3333
|
-
uuid: z.
|
|
3333
|
+
uuid: z.ZodString;
|
|
3334
3334
|
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
3335
3335
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3336
3336
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3530,6 +3530,211 @@ export declare const ConnectorExportProperties: z.ZodObject<{
|
|
|
3530
3530
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3531
3531
|
}, z.core.$strip>;
|
|
3532
3532
|
export type ConnectorExportProperties = z.infer<typeof ConnectorExportProperties>;
|
|
3533
|
+
export declare const ConnectorVersionExportProperties: z.ZodObject<{
|
|
3534
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3535
|
+
proxy: "proxy";
|
|
3536
|
+
"integration-app-token": "integration-app-token";
|
|
3537
|
+
"membrane-token": "membrane-token";
|
|
3538
|
+
oauth2: "oauth2";
|
|
3539
|
+
oauth1: "oauth1";
|
|
3540
|
+
"client-credentials": "client-credentials";
|
|
3541
|
+
}>>;
|
|
3542
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3543
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3544
|
+
proxy: "proxy";
|
|
3545
|
+
"integration-app-token": "integration-app-token";
|
|
3546
|
+
"membrane-token": "membrane-token";
|
|
3547
|
+
oauth2: "oauth2";
|
|
3548
|
+
oauth1: "oauth1";
|
|
3549
|
+
"client-credentials": "client-credentials";
|
|
3550
|
+
}>>;
|
|
3551
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3552
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3553
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
3554
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3555
|
+
mapping: "mapping";
|
|
3556
|
+
"operation-mapping": "operation-mapping";
|
|
3557
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3558
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3559
|
+
javascript: "javascript";
|
|
3560
|
+
}>>;
|
|
3561
|
+
}, z.core.$loose>>;
|
|
3562
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
3563
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3564
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3565
|
+
helpUri: z.ZodOptional<z.ZodString>;
|
|
3566
|
+
}, z.core.$strip>>;
|
|
3567
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3568
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3569
|
+
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3570
|
+
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
3571
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3572
|
+
mapping: "mapping";
|
|
3573
|
+
"operation-mapping": "operation-mapping";
|
|
3574
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3575
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3576
|
+
javascript: "javascript";
|
|
3577
|
+
}>>;
|
|
3578
|
+
}, z.core.$loose>>;
|
|
3579
|
+
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
3580
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3581
|
+
mapping: "mapping";
|
|
3582
|
+
"operation-mapping": "operation-mapping";
|
|
3583
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3584
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3585
|
+
javascript: "javascript";
|
|
3586
|
+
}>>;
|
|
3587
|
+
}, z.core.$loose>>;
|
|
3588
|
+
disconnect: z.ZodOptional<z.ZodObject<{
|
|
3589
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3590
|
+
mapping: "mapping";
|
|
3591
|
+
"operation-mapping": "operation-mapping";
|
|
3592
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3593
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3594
|
+
javascript: "javascript";
|
|
3595
|
+
}>>;
|
|
3596
|
+
}, z.core.$loose>>;
|
|
3597
|
+
enabled: z.ZodOptional<z.ZodAny>;
|
|
3598
|
+
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
3599
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3600
|
+
mapping: "mapping";
|
|
3601
|
+
"operation-mapping": "operation-mapping";
|
|
3602
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3603
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3604
|
+
javascript: "javascript";
|
|
3605
|
+
}>>;
|
|
3606
|
+
}, z.core.$loose>>;
|
|
3607
|
+
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
3608
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3609
|
+
mapping: "mapping";
|
|
3610
|
+
"operation-mapping": "operation-mapping";
|
|
3611
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3612
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3613
|
+
javascript: "javascript";
|
|
3614
|
+
}>>;
|
|
3615
|
+
}, z.core.$loose>>;
|
|
3616
|
+
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
3617
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3618
|
+
mapping: "mapping";
|
|
3619
|
+
"operation-mapping": "operation-mapping";
|
|
3620
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3621
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3622
|
+
javascript: "javascript";
|
|
3623
|
+
}>>;
|
|
3624
|
+
}, z.core.$loose>>;
|
|
3625
|
+
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
3626
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3627
|
+
mapping: "mapping";
|
|
3628
|
+
"operation-mapping": "operation-mapping";
|
|
3629
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3630
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3631
|
+
javascript: "javascript";
|
|
3632
|
+
}>>;
|
|
3633
|
+
}, z.core.$loose>>;
|
|
3634
|
+
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
3635
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3636
|
+
mapping: "mapping";
|
|
3637
|
+
"operation-mapping": "operation-mapping";
|
|
3638
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3639
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3640
|
+
javascript: "javascript";
|
|
3641
|
+
}>>;
|
|
3642
|
+
}, z.core.$loose>>;
|
|
3643
|
+
proxyKey: z.ZodOptional<z.ZodString>;
|
|
3644
|
+
}, z.core.$strip>>>;
|
|
3645
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
3646
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3647
|
+
mapping: "mapping";
|
|
3648
|
+
"operation-mapping": "operation-mapping";
|
|
3649
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3650
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3651
|
+
javascript: "javascript";
|
|
3652
|
+
}>>;
|
|
3653
|
+
}, z.core.$loose>>;
|
|
3654
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
3655
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3656
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3657
|
+
helpUri: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
}, z.core.$strip>>;
|
|
3659
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3660
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3661
|
+
customCredentialsSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
3662
|
+
makeApiClient: z.ZodOptional<z.ZodObject<{
|
|
3663
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3664
|
+
mapping: "mapping";
|
|
3665
|
+
"operation-mapping": "operation-mapping";
|
|
3666
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3667
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3668
|
+
javascript: "javascript";
|
|
3669
|
+
}>>;
|
|
3670
|
+
}, z.core.$loose>>;
|
|
3671
|
+
refreshCredentials: z.ZodOptional<z.ZodObject<{
|
|
3672
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3673
|
+
mapping: "mapping";
|
|
3674
|
+
"operation-mapping": "operation-mapping";
|
|
3675
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3676
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3677
|
+
javascript: "javascript";
|
|
3678
|
+
}>>;
|
|
3679
|
+
}, z.core.$loose>>;
|
|
3680
|
+
disconnect: z.ZodOptional<z.ZodObject<{
|
|
3681
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3682
|
+
mapping: "mapping";
|
|
3683
|
+
"operation-mapping": "operation-mapping";
|
|
3684
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3685
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3686
|
+
javascript: "javascript";
|
|
3687
|
+
}>>;
|
|
3688
|
+
}, z.core.$loose>>;
|
|
3689
|
+
getOAuthConfig: z.ZodOptional<z.ZodObject<{
|
|
3690
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3691
|
+
mapping: "mapping";
|
|
3692
|
+
"operation-mapping": "operation-mapping";
|
|
3693
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3694
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3695
|
+
javascript: "javascript";
|
|
3696
|
+
}>>;
|
|
3697
|
+
}, z.core.$loose>>;
|
|
3698
|
+
getTokenData: z.ZodOptional<z.ZodObject<{
|
|
3699
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3700
|
+
mapping: "mapping";
|
|
3701
|
+
"operation-mapping": "operation-mapping";
|
|
3702
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3703
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3704
|
+
javascript: "javascript";
|
|
3705
|
+
}>>;
|
|
3706
|
+
}, z.core.$loose>>;
|
|
3707
|
+
getCredentialsFromAccessTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
3708
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3709
|
+
mapping: "mapping";
|
|
3710
|
+
"operation-mapping": "operation-mapping";
|
|
3711
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3712
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3713
|
+
javascript: "javascript";
|
|
3714
|
+
}>>;
|
|
3715
|
+
}, z.core.$loose>>;
|
|
3716
|
+
getCredentialsFromRefreshTokenResponse: z.ZodOptional<z.ZodObject<{
|
|
3717
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3718
|
+
mapping: "mapping";
|
|
3719
|
+
"operation-mapping": "operation-mapping";
|
|
3720
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3721
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3722
|
+
javascript: "javascript";
|
|
3723
|
+
}>>;
|
|
3724
|
+
}, z.core.$loose>>;
|
|
3725
|
+
getCredentialsFromConnectionParameters: z.ZodOptional<z.ZodObject<{
|
|
3726
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3727
|
+
mapping: "mapping";
|
|
3728
|
+
"operation-mapping": "operation-mapping";
|
|
3729
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
3730
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
3731
|
+
javascript: "javascript";
|
|
3732
|
+
}>>;
|
|
3733
|
+
}, z.core.$loose>>;
|
|
3734
|
+
proxyKey: z.ZodOptional<z.ZodString>;
|
|
3735
|
+
version: z.ZodString;
|
|
3736
|
+
}, z.core.$strip>;
|
|
3737
|
+
export type ConnectorVersionExportProperties = z.infer<typeof ConnectorVersionExportProperties>;
|
|
3533
3738
|
export interface ConnectorVersionExport {
|
|
3534
3739
|
version: string;
|
|
3535
3740
|
zipBuffer: Buffer;
|
|
@@ -3970,6 +4175,7 @@ export declare const BaseConnector: z.ZodObject<{
|
|
|
3970
4175
|
externalAppId: z.ZodOptional<z.ZodString>;
|
|
3971
4176
|
name: z.ZodString;
|
|
3972
4177
|
logoUri: z.ZodString;
|
|
4178
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
3973
4179
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3974
4180
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
3975
4181
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3984,12 +4190,13 @@ export declare const Connector: z.ZodObject<{
|
|
|
3984
4190
|
externalAppId: z.ZodOptional<z.ZodString>;
|
|
3985
4191
|
name: z.ZodString;
|
|
3986
4192
|
logoUri: z.ZodString;
|
|
4193
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
3987
4194
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3988
4195
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
3989
4196
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
3990
4197
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
3991
4198
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3992
|
-
baseUri: z.ZodString
|
|
4199
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
3993
4200
|
revision: z.ZodOptional<z.ZodString>;
|
|
3994
4201
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
3995
4202
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4211,6 +4418,7 @@ export declare const MinimalConnector: z.ZodObject<{
|
|
|
4211
4418
|
key: z.ZodString;
|
|
4212
4419
|
name: z.ZodString;
|
|
4213
4420
|
logoUri: z.ZodString;
|
|
4421
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
4214
4422
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
4215
4423
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
4216
4424
|
}, z.core.$strip>;
|