@membranehq/sdk 0.29.0 → 0.29.2
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 +97 -2
- package/dist/bundle.js +1055 -274
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +5 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -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 +5 -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 +2 -0
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/orgs/types.d.ts +528 -1
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +47 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +9 -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 +10 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +18 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +23 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +208 -0
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +14 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +50 -0
- package/dist/dts/workspace-elements/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +4 -1
- package/dist/dts/workspaces/api.d.ts +1 -0
- package/dist/index.browser.d.mts +1555 -150
- package/dist/index.browser.d.ts +1555 -150
- package/dist/index.browser.js +452 -19
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +416 -20
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1555 -150
- package/dist/index.node.d.ts +1555 -150
- package/dist/index.node.js +452 -19
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +416 -20
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -26,6 +26,10 @@ export declare const EnsureConnectionRequest: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
export type EnsureConnectionRequest = z.infer<typeof EnsureConnectionRequest>;
|
|
28
28
|
export declare const CreateConnectionRequest: z.ZodObject<{
|
|
29
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
connector: "connector";
|
|
31
|
+
mcp: "mcp";
|
|
32
|
+
}>>;
|
|
29
33
|
name: z.ZodOptional<z.ZodString>;
|
|
30
34
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
31
35
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -46,6 +50,10 @@ export declare const CreateConnectionRequest: z.ZodObject<{
|
|
|
46
50
|
}, z.core.$strip>;
|
|
47
51
|
export type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
|
|
48
52
|
export declare const UpdateConnectionRequest: z.ZodObject<{
|
|
53
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
connector: "connector";
|
|
55
|
+
mcp: "mcp";
|
|
56
|
+
}>>;
|
|
49
57
|
name: z.ZodOptional<z.ZodString>;
|
|
50
58
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
51
59
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -67,6 +75,10 @@ export declare const UpdateConnectionRequest: z.ZodObject<{
|
|
|
67
75
|
export type UpdateConnectionRequest = z.infer<typeof UpdateConnectionRequest>;
|
|
68
76
|
export declare const ConnectionExportProperties: z.ZodObject<{
|
|
69
77
|
key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
connector: "connector";
|
|
80
|
+
mcp: "mcp";
|
|
81
|
+
}>>;
|
|
70
82
|
name: z.ZodOptional<z.ZodString>;
|
|
71
83
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
72
84
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
@@ -109,6 +121,10 @@ export declare const ConnectionSelector: z.ZodObject<{
|
|
|
109
121
|
export type ConnectionSelector = z.infer<typeof ConnectionSelector>;
|
|
110
122
|
export declare const ConnectionApiResponse: z.ZodObject<{
|
|
111
123
|
id: z.ZodString;
|
|
124
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
connector: "connector";
|
|
126
|
+
mcp: "mcp";
|
|
127
|
+
}>>;
|
|
112
128
|
name: z.ZodString;
|
|
113
129
|
key: z.ZodOptional<z.ZodString>;
|
|
114
130
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -145,6 +161,11 @@ export declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
145
161
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
146
162
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
147
163
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
164
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
"provide-input": "provide-input";
|
|
166
|
+
authenticate: "authenticate";
|
|
167
|
+
reauthenticate: "reauthenticate";
|
|
168
|
+
}>>;
|
|
148
169
|
}, z.core.$strip>>;
|
|
149
170
|
userId: z.ZodString;
|
|
150
171
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -215,6 +236,10 @@ export declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
215
236
|
export type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
|
|
216
237
|
export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
|
|
217
238
|
id: z.ZodString;
|
|
239
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
240
|
+
connector: "connector";
|
|
241
|
+
mcp: "mcp";
|
|
242
|
+
}>>;
|
|
218
243
|
name: z.ZodString;
|
|
219
244
|
key: z.ZodOptional<z.ZodString>;
|
|
220
245
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -251,6 +276,11 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
|
|
|
251
276
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
252
277
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
253
278
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
279
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
"provide-input": "provide-input";
|
|
281
|
+
authenticate: "authenticate";
|
|
282
|
+
reauthenticate: "reauthenticate";
|
|
283
|
+
}>>;
|
|
254
284
|
}, z.core.$strip>>;
|
|
255
285
|
userId: z.ZodString;
|
|
256
286
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -327,6 +357,10 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
327
357
|
type: z.ZodLiteral<"newConnectionCreated">;
|
|
328
358
|
connection: z.ZodObject<{
|
|
329
359
|
id: z.ZodString;
|
|
360
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
connector: "connector";
|
|
362
|
+
mcp: "mcp";
|
|
363
|
+
}>>;
|
|
330
364
|
name: z.ZodString;
|
|
331
365
|
key: z.ZodOptional<z.ZodString>;
|
|
332
366
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -363,6 +397,11 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
363
397
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
364
398
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
365
399
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
400
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
"provide-input": "provide-input";
|
|
402
|
+
authenticate: "authenticate";
|
|
403
|
+
reauthenticate: "reauthenticate";
|
|
404
|
+
}>>;
|
|
366
405
|
}, z.core.$strip>>;
|
|
367
406
|
userId: z.ZodString;
|
|
368
407
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -460,6 +499,10 @@ export declare const GenerateOptionsRequest: z.ZodObject<{
|
|
|
460
499
|
}, z.core.$strip>;
|
|
461
500
|
export type GenerateOptionsRequest = z.infer<typeof GenerateOptionsRequest>;
|
|
462
501
|
export declare const ConnectPayload: z.ZodObject<{
|
|
502
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
503
|
+
connector: "connector";
|
|
504
|
+
mcp: "mcp";
|
|
505
|
+
}>>;
|
|
463
506
|
requestId: z.ZodOptional<z.ZodString>;
|
|
464
507
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
465
508
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
@@ -483,6 +526,10 @@ export declare const ConnectPayload: z.ZodObject<{
|
|
|
483
526
|
}, z.core.$strip>;
|
|
484
527
|
export type ConnectPayload = z.infer<typeof ConnectPayload>;
|
|
485
528
|
export declare const ConnectUIOptions: z.ZodObject<{
|
|
529
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
530
|
+
connector: "connector";
|
|
531
|
+
mcp: "mcp";
|
|
532
|
+
}>>;
|
|
486
533
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
487
534
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
488
535
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -141,6 +141,10 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
141
141
|
}, z.core.$strip>>;
|
|
142
142
|
connection: z.ZodOptional<z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
144
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
connector: "connector";
|
|
146
|
+
mcp: "mcp";
|
|
147
|
+
}>>;
|
|
144
148
|
name: z.ZodString;
|
|
145
149
|
key: z.ZodOptional<z.ZodString>;
|
|
146
150
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -177,6 +181,11 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
177
181
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
178
182
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
179
183
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
184
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
185
|
+
"provide-input": "provide-input";
|
|
186
|
+
authenticate: "authenticate";
|
|
187
|
+
reauthenticate: "reauthenticate";
|
|
188
|
+
}>>;
|
|
180
189
|
}, z.core.$strip>>;
|
|
181
190
|
userId: z.ZodString;
|
|
182
191
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -415,6 +415,10 @@ export declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
415
415
|
}, z.core.$strip>>;
|
|
416
416
|
connection: z.ZodOptional<z.ZodObject<{
|
|
417
417
|
id: z.ZodString;
|
|
418
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
419
|
+
connector: "connector";
|
|
420
|
+
mcp: "mcp";
|
|
421
|
+
}>>;
|
|
418
422
|
name: z.ZodString;
|
|
419
423
|
key: z.ZodOptional<z.ZodString>;
|
|
420
424
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -451,6 +455,11 @@ export declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
451
455
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
452
456
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
453
457
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
458
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
459
|
+
"provide-input": "provide-input";
|
|
460
|
+
authenticate: "authenticate";
|
|
461
|
+
reauthenticate: "reauthenticate";
|
|
462
|
+
}>>;
|
|
454
463
|
}, z.core.$strip>>;
|
|
455
464
|
userId: z.ZodString;
|
|
456
465
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -1022,6 +1031,10 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
1022
1031
|
}, z.core.$strip>>;
|
|
1023
1032
|
connection: z.ZodOptional<z.ZodObject<{
|
|
1024
1033
|
id: z.ZodString;
|
|
1034
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1035
|
+
connector: "connector";
|
|
1036
|
+
mcp: "mcp";
|
|
1037
|
+
}>>;
|
|
1025
1038
|
name: z.ZodString;
|
|
1026
1039
|
key: z.ZodOptional<z.ZodString>;
|
|
1027
1040
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1058,6 +1071,11 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
1058
1071
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
1059
1072
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
1060
1073
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
"provide-input": "provide-input";
|
|
1076
|
+
authenticate: "authenticate";
|
|
1077
|
+
reauthenticate: "reauthenticate";
|
|
1078
|
+
}>>;
|
|
1061
1079
|
}, z.core.$strip>>;
|
|
1062
1080
|
userId: z.ZodString;
|
|
1063
1081
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -45,6 +45,10 @@ export declare const ExternalApiLogApiResponse: z.ZodObject<{
|
|
|
45
45
|
}, z.core.$strip>>;
|
|
46
46
|
connection: z.ZodOptional<z.ZodObject<{
|
|
47
47
|
id: z.ZodString;
|
|
48
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
connector: "connector";
|
|
50
|
+
mcp: "mcp";
|
|
51
|
+
}>>;
|
|
48
52
|
name: z.ZodString;
|
|
49
53
|
key: z.ZodOptional<z.ZodString>;
|
|
50
54
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -81,6 +85,11 @@ export declare const ExternalApiLogApiResponse: z.ZodObject<{
|
|
|
81
85
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
82
86
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
83
87
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
88
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
"provide-input": "provide-input";
|
|
90
|
+
authenticate: "authenticate";
|
|
91
|
+
reauthenticate: "reauthenticate";
|
|
92
|
+
}>>;
|
|
84
93
|
}, z.core.$strip>>;
|
|
85
94
|
userId: z.ZodString;
|
|
86
95
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -29,6 +29,11 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
29
29
|
launchedFlowRunIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
30
|
status: z.ZodEnum<typeof ExternalEventLogStatus>;
|
|
31
31
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
32
|
+
flowTriggerSkipReason: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
code: z.ZodEnum<typeof import("../base/external-event-log-records").ExternalEventLogFlowTriggerSkipReasonCode>;
|
|
34
|
+
message: z.ZodString;
|
|
35
|
+
dependentFlowInstanceIds: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
32
37
|
user: z.ZodOptional<z.ZodObject<{
|
|
33
38
|
id: z.ZodString;
|
|
34
39
|
name: z.ZodString;
|
|
@@ -133,6 +138,10 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
133
138
|
}, z.core.$strip>>;
|
|
134
139
|
connection: z.ZodOptional<z.ZodObject<{
|
|
135
140
|
id: z.ZodString;
|
|
141
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
connector: "connector";
|
|
143
|
+
mcp: "mcp";
|
|
144
|
+
}>>;
|
|
136
145
|
name: z.ZodString;
|
|
137
146
|
key: z.ZodOptional<z.ZodString>;
|
|
138
147
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -169,6 +178,11 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
169
178
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
170
179
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
171
180
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
181
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
"provide-input": "provide-input";
|
|
183
|
+
authenticate: "authenticate";
|
|
184
|
+
reauthenticate: "reauthenticate";
|
|
185
|
+
}>>;
|
|
172
186
|
}, z.core.$strip>>;
|
|
173
187
|
userId: z.ZodString;
|
|
174
188
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -39,6 +39,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
39
39
|
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
status: z.ZodEnum<typeof ExternalEventPullStatus>;
|
|
41
41
|
collectedEventIds: z.ZodArray<z.ZodString>;
|
|
42
|
+
telemetryUri: z.ZodOptional<z.ZodString>;
|
|
42
43
|
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
43
44
|
user: z.ZodOptional<z.ZodObject<{
|
|
44
45
|
id: z.ZodString;
|
|
@@ -144,6 +145,10 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
144
145
|
}, z.core.$strip>>;
|
|
145
146
|
connection: z.ZodOptional<z.ZodObject<{
|
|
146
147
|
id: z.ZodString;
|
|
148
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
connector: "connector";
|
|
150
|
+
mcp: "mcp";
|
|
151
|
+
}>>;
|
|
147
152
|
name: z.ZodString;
|
|
148
153
|
key: z.ZodOptional<z.ZodString>;
|
|
149
154
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -180,6 +185,11 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
180
185
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
181
186
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
182
187
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
188
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
"provide-input": "provide-input";
|
|
190
|
+
authenticate: "authenticate";
|
|
191
|
+
reauthenticate: "reauthenticate";
|
|
192
|
+
}>>;
|
|
183
193
|
}, z.core.$strip>>;
|
|
184
194
|
userId: z.ZodString;
|
|
185
195
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -75,6 +75,10 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
connection: z.ZodOptional<z.ZodObject<{
|
|
77
77
|
id: z.ZodString;
|
|
78
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
connector: "connector";
|
|
80
|
+
mcp: "mcp";
|
|
81
|
+
}>>;
|
|
78
82
|
name: z.ZodString;
|
|
79
83
|
key: z.ZodOptional<z.ZodString>;
|
|
80
84
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -111,6 +115,11 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
111
115
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
112
116
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
113
117
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
118
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
"provide-input": "provide-input";
|
|
120
|
+
authenticate: "authenticate";
|
|
121
|
+
reauthenticate: "reauthenticate";
|
|
122
|
+
}>>;
|
|
114
123
|
}, z.core.$strip>>;
|
|
115
124
|
userId: z.ZodString;
|
|
116
125
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -215,6 +215,10 @@ export declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
215
215
|
}, z.core.$strip>>;
|
|
216
216
|
connection: z.ZodOptional<z.ZodObject<{
|
|
217
217
|
id: z.ZodString;
|
|
218
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
connector: "connector";
|
|
220
|
+
mcp: "mcp";
|
|
221
|
+
}>>;
|
|
218
222
|
name: z.ZodString;
|
|
219
223
|
key: z.ZodOptional<z.ZodString>;
|
|
220
224
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -251,6 +255,11 @@ export declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
251
255
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
252
256
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
253
257
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
258
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
"provide-input": "provide-input";
|
|
260
|
+
authenticate: "authenticate";
|
|
261
|
+
reauthenticate: "reauthenticate";
|
|
262
|
+
}>>;
|
|
254
263
|
}, z.core.$strip>>;
|
|
255
264
|
userId: z.ZodString;
|
|
256
265
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -521,6 +530,10 @@ export declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
521
530
|
}, z.core.$strip>>;
|
|
522
531
|
connection: z.ZodOptional<z.ZodObject<{
|
|
523
532
|
id: z.ZodString;
|
|
533
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
connector: "connector";
|
|
535
|
+
mcp: "mcp";
|
|
536
|
+
}>>;
|
|
524
537
|
name: z.ZodString;
|
|
525
538
|
key: z.ZodOptional<z.ZodString>;
|
|
526
539
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -557,6 +570,11 @@ export declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
557
570
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
558
571
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
559
572
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
573
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
574
|
+
"provide-input": "provide-input";
|
|
575
|
+
authenticate: "authenticate";
|
|
576
|
+
reauthenticate: "reauthenticate";
|
|
577
|
+
}>>;
|
|
560
578
|
}, z.core.$strip>>;
|
|
561
579
|
userId: z.ZodString;
|
|
562
580
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -132,6 +132,10 @@ export declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
132
132
|
}, z.core.$strip>>;
|
|
133
133
|
connection: z.ZodOptional<z.ZodObject<{
|
|
134
134
|
id: z.ZodString;
|
|
135
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
connector: "connector";
|
|
137
|
+
mcp: "mcp";
|
|
138
|
+
}>>;
|
|
135
139
|
name: z.ZodString;
|
|
136
140
|
key: z.ZodOptional<z.ZodString>;
|
|
137
141
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -168,6 +172,11 @@ export declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
168
172
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
169
173
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
170
174
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
175
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
"provide-input": "provide-input";
|
|
177
|
+
authenticate: "authenticate";
|
|
178
|
+
reauthenticate: "reauthenticate";
|
|
179
|
+
}>>;
|
|
171
180
|
}, z.core.$strip>>;
|
|
172
181
|
userId: z.ZodString;
|
|
173
182
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -338,6 +347,10 @@ export declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
338
347
|
}, z.core.$strip>>;
|
|
339
348
|
connection: z.ZodOptional<z.ZodObject<{
|
|
340
349
|
id: z.ZodString;
|
|
350
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
connector: "connector";
|
|
352
|
+
mcp: "mcp";
|
|
353
|
+
}>>;
|
|
341
354
|
name: z.ZodString;
|
|
342
355
|
key: z.ZodOptional<z.ZodString>;
|
|
343
356
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -374,6 +387,11 @@ export declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
374
387
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
375
388
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
376
389
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
390
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
391
|
+
"provide-input": "provide-input";
|
|
392
|
+
authenticate: "authenticate";
|
|
393
|
+
reauthenticate: "reauthenticate";
|
|
394
|
+
}>>;
|
|
377
395
|
}, z.core.$strip>>;
|
|
378
396
|
userId: z.ZodString;
|
|
379
397
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -252,6 +252,10 @@ export declare const FlowApiResponse: z.ZodObject<{
|
|
|
252
252
|
}, z.core.$strip>>;
|
|
253
253
|
connection: z.ZodOptional<z.ZodObject<{
|
|
254
254
|
id: z.ZodString;
|
|
255
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
connector: "connector";
|
|
257
|
+
mcp: "mcp";
|
|
258
|
+
}>>;
|
|
255
259
|
name: z.ZodString;
|
|
256
260
|
key: z.ZodOptional<z.ZodString>;
|
|
257
261
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -288,6 +292,11 @@ export declare const FlowApiResponse: z.ZodObject<{
|
|
|
288
292
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
289
293
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
290
294
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
295
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
"provide-input": "provide-input";
|
|
297
|
+
authenticate: "authenticate";
|
|
298
|
+
reauthenticate: "reauthenticate";
|
|
299
|
+
}>>;
|
|
291
300
|
}, z.core.$strip>>;
|
|
292
301
|
userId: z.ZodString;
|
|
293
302
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -614,6 +623,10 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
614
623
|
}, z.core.$strip>>;
|
|
615
624
|
connection: z.ZodOptional<z.ZodObject<{
|
|
616
625
|
id: z.ZodString;
|
|
626
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
627
|
+
connector: "connector";
|
|
628
|
+
mcp: "mcp";
|
|
629
|
+
}>>;
|
|
617
630
|
name: z.ZodString;
|
|
618
631
|
key: z.ZodOptional<z.ZodString>;
|
|
619
632
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -650,6 +663,11 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
650
663
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
651
664
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
652
665
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
666
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
667
|
+
"provide-input": "provide-input";
|
|
668
|
+
authenticate: "authenticate";
|
|
669
|
+
reauthenticate: "reauthenticate";
|
|
670
|
+
}>>;
|
|
653
671
|
}, z.core.$strip>>;
|
|
654
672
|
userId: z.ZodString;
|
|
655
673
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -44,6 +44,10 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
connection: z.ZodOptional<z.ZodObject<{
|
|
46
46
|
id: z.ZodString;
|
|
47
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
connector: "connector";
|
|
49
|
+
mcp: "mcp";
|
|
50
|
+
}>>;
|
|
47
51
|
name: z.ZodString;
|
|
48
52
|
key: z.ZodOptional<z.ZodString>;
|
|
49
53
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -80,6 +84,11 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
80
84
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
81
85
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
82
86
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
87
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
"provide-input": "provide-input";
|
|
89
|
+
authenticate: "authenticate";
|
|
90
|
+
reauthenticate: "reauthenticate";
|
|
91
|
+
}>>;
|
|
83
92
|
}, z.core.$strip>>;
|
|
84
93
|
userId: z.ZodString;
|
|
85
94
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -137,6 +137,10 @@ 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>;
|
|
@@ -173,6 +177,11 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
173
177
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
174
178
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
175
179
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
180
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
"provide-input": "provide-input";
|
|
182
|
+
authenticate: "authenticate";
|
|
183
|
+
reauthenticate: "reauthenticate";
|
|
184
|
+
}>>;
|
|
176
185
|
}, z.core.$strip>>;
|
|
177
186
|
userId: z.ZodString;
|
|
178
187
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -247,6 +256,10 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
247
256
|
}, z.core.$strip>>>;
|
|
248
257
|
connection: z.ZodOptional<z.ZodObject<{
|
|
249
258
|
id: z.ZodString;
|
|
259
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
connector: "connector";
|
|
261
|
+
mcp: "mcp";
|
|
262
|
+
}>>;
|
|
250
263
|
name: z.ZodString;
|
|
251
264
|
key: z.ZodOptional<z.ZodString>;
|
|
252
265
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -283,6 +296,11 @@ export declare const IntegrationListItem: z.ZodObject<{
|
|
|
283
296
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
284
297
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
285
298
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
299
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
300
|
+
"provide-input": "provide-input";
|
|
301
|
+
authenticate: "authenticate";
|
|
302
|
+
reauthenticate: "reauthenticate";
|
|
303
|
+
}>>;
|
|
286
304
|
}, z.core.$strip>>;
|
|
287
305
|
userId: z.ZodString;
|
|
288
306
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -18,6 +18,7 @@ export declare const CreateConnectionRequestPayload: z.ZodObject<{
|
|
|
18
18
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
20
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
21
|
+
customState: z.ZodOptional<z.ZodString>;
|
|
21
22
|
prompt: z.ZodOptional<z.ZodString>;
|
|
22
23
|
}, z.core.$strip>;
|
|
23
24
|
export type CreateConnectionRequestPayload = z.infer<typeof CreateConnectionRequestPayload>;
|
|
@@ -39,6 +40,7 @@ export declare const ConnectionRequest: z.ZodObject<{
|
|
|
39
40
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
40
41
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
42
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
43
|
+
customState: z.ZodOptional<z.ZodString>;
|
|
42
44
|
prompt: z.ZodOptional<z.ZodString>;
|
|
43
45
|
status: z.ZodEnum<{
|
|
44
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>;
|
|
@@ -30,10 +39,19 @@ export declare const ConnectionClientAction: z.ZodObject<{
|
|
|
30
39
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
31
40
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
32
41
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
42
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
"provide-input": "provide-input";
|
|
44
|
+
authenticate: "authenticate";
|
|
45
|
+
reauthenticate: "reauthenticate";
|
|
46
|
+
}>>;
|
|
33
47
|
}, z.core.$strip>;
|
|
34
48
|
export type ConnectionClientAction = z.infer<typeof ConnectionClientAction>;
|
|
35
49
|
export declare const BaseConnection: z.ZodObject<{
|
|
36
50
|
id: z.ZodString;
|
|
51
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
connector: "connector";
|
|
53
|
+
mcp: "mcp";
|
|
54
|
+
}>>;
|
|
37
55
|
name: z.ZodString;
|
|
38
56
|
key: z.ZodOptional<z.ZodString>;
|
|
39
57
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -70,6 +88,11 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
70
88
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
71
89
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
72
90
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
91
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
"provide-input": "provide-input";
|
|
93
|
+
authenticate: "authenticate";
|
|
94
|
+
reauthenticate: "reauthenticate";
|
|
95
|
+
}>>;
|
|
73
96
|
}, z.core.$strip>>;
|
|
74
97
|
userId: z.ZodString;
|
|
75
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;
|