@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
|
@@ -2,6 +2,7 @@ import { MembraneApiClient } from '../api-client';
|
|
|
2
2
|
import { OpenConfigurationOptions } from '../iframe';
|
|
3
3
|
import { InstanceKeyQuery } from '../integration-elements/common';
|
|
4
4
|
import { ConnectionApiResponse, CreateConnectionRequest, FindConnectionsQuery, LateConnectionEvents, UpdateConnectionRequest } from '../workspace-elements/api/connections-api';
|
|
5
|
+
import { ConnectionType } from '../workspace-elements/base/connections';
|
|
5
6
|
import { OperationRunRequest, OperationRunResponse, OperationSpec } from '../workspace-elements/base/connectors/operations';
|
|
6
7
|
import { DataCollectionSpec, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionListRequest, DataCollectionListResponse, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionUpdateRequest, DataCollectionUpdateResponse } from '../workspace-elements/base/data-collections';
|
|
7
8
|
import { ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor } from './actions-accessors';
|
|
@@ -47,6 +48,7 @@ export declare class ConnectionAccessor {
|
|
|
47
48
|
createdAt: string;
|
|
48
49
|
updatedAt: string;
|
|
49
50
|
userId: string;
|
|
51
|
+
type?: "connector" | "mcp" | undefined;
|
|
50
52
|
key?: string | undefined;
|
|
51
53
|
isTest?: boolean | undefined;
|
|
52
54
|
connected?: boolean | undefined;
|
|
@@ -77,6 +79,7 @@ export declare class ConnectionAccessor {
|
|
|
77
79
|
uiUrl?: string | undefined;
|
|
78
80
|
agentInstructions?: string | undefined;
|
|
79
81
|
handoffAgentInstructions?: string | undefined;
|
|
82
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
80
83
|
} | undefined;
|
|
81
84
|
tenantId?: string | undefined;
|
|
82
85
|
user?: {
|
|
@@ -175,6 +178,7 @@ export declare class ConnectionProxy {
|
|
|
175
178
|
}
|
|
176
179
|
export declare function createOrUpdateConnection(options: {
|
|
177
180
|
client: MembraneApiClient;
|
|
181
|
+
type?: ConnectionType;
|
|
178
182
|
authOptionKey?: string;
|
|
179
183
|
name?: string;
|
|
180
184
|
input?: any;
|
|
@@ -189,6 +193,7 @@ export declare function createOrUpdateConnection(options: {
|
|
|
189
193
|
connectionRequestId?: string;
|
|
190
194
|
apiUri: string;
|
|
191
195
|
redirectUri?: string;
|
|
196
|
+
customState?: string;
|
|
192
197
|
onPopupClosed?: () => void;
|
|
193
198
|
lateEvents?: LateConnectionEvents;
|
|
194
199
|
}): Promise<ConnectionApiResponse | null>;
|
|
@@ -53,6 +53,7 @@ export declare class IntegrationAccessor extends ElementAccessor<IntegrationApiR
|
|
|
53
53
|
createdAt: string;
|
|
54
54
|
updatedAt: string;
|
|
55
55
|
userId: string;
|
|
56
|
+
type?: "connector" | "mcp" | undefined;
|
|
56
57
|
key?: string | undefined;
|
|
57
58
|
isTest?: boolean | undefined;
|
|
58
59
|
connected?: boolean | undefined;
|
|
@@ -83,6 +84,7 @@ export declare class IntegrationAccessor extends ElementAccessor<IntegrationApiR
|
|
|
83
84
|
uiUrl?: string | undefined;
|
|
84
85
|
agentInstructions?: string | undefined;
|
|
85
86
|
handoffAgentInstructions?: string | undefined;
|
|
87
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
86
88
|
} | undefined;
|
|
87
89
|
tenantId?: string | undefined;
|
|
88
90
|
user?: {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgentHarnessSnapshot: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
agentHarnessId: z.ZodString;
|
|
6
|
+
agentHarnessRevision: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
systemPrompt: z.ZodDefault<z.ZodString>;
|
|
11
|
+
defaultModel: z.ZodEnum<{
|
|
12
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
13
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
14
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
15
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
16
|
+
"anthropic/claude-haiku-4.5": "anthropic/claude-haiku-4.5";
|
|
17
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
18
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
19
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
20
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
21
|
+
}>;
|
|
22
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
23
|
+
toolIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
description: z.ZodString;
|
|
28
|
+
enabledByDefault: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
31
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
workspaceId: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
key: z.ZodString;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
body: z.ZodString;
|
|
38
|
+
sourceUrl: z.ZodOptional<z.ZodURL>;
|
|
39
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
40
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
41
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
42
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
instructionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
45
|
+
instructions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
workspaceId: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
key: z.ZodString;
|
|
50
|
+
text: z.ZodString;
|
|
51
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
52
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
53
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
54
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
57
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type AgentHarnessSnapshot = z.infer<typeof AgentHarnessSnapshot>;
|
|
60
|
+
export declare const FindAgentHarnessSnapshotQuery: z.ZodObject<{
|
|
61
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
62
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
63
|
+
agentHarnessId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type FindAgentHarnessSnapshotQuery = z.infer<typeof FindAgentHarnessSnapshotQuery>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgentHarness: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
defaultModel: z.ZodEnum<{
|
|
10
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
11
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
12
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
13
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
14
|
+
"anthropic/claude-haiku-4.5": "anthropic/claude-haiku-4.5";
|
|
15
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
16
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
17
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
18
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
19
|
+
}>;
|
|
20
|
+
toolIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
|
+
instructionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodString;
|
|
27
|
+
enabledByDefault: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
workspaceId: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
key: z.ZodString;
|
|
34
|
+
description: z.ZodString;
|
|
35
|
+
body: z.ZodString;
|
|
36
|
+
sourceUrl: z.ZodOptional<z.ZodURL>;
|
|
37
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
38
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
39
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
40
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
instructions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
workspaceId: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
key: z.ZodString;
|
|
47
|
+
text: z.ZodString;
|
|
48
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
49
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
50
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
51
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
54
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
55
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
56
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type AgentHarness = z.infer<typeof AgentHarness>;
|
|
59
|
+
export declare const CreateAgentHarnessRequest: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
key: z.ZodOptional<z.ZodString>;
|
|
62
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
64
|
+
defaultModel: z.ZodEnum<{
|
|
65
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
66
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
67
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
68
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
69
|
+
"anthropic/claude-haiku-4.5": "anthropic/claude-haiku-4.5";
|
|
70
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
71
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
72
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
73
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
74
|
+
}>;
|
|
75
|
+
toolIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
skillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
instructionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type CreateAgentHarnessRequest = z.infer<typeof CreateAgentHarnessRequest>;
|
|
80
|
+
export declare const UpdateAgentHarnessRequest: z.ZodObject<{
|
|
81
|
+
name: z.ZodOptional<z.ZodString>;
|
|
82
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
84
|
+
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
85
|
+
defaultModel: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
87
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
88
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
89
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
90
|
+
"anthropic/claude-haiku-4.5": "anthropic/claude-haiku-4.5";
|
|
91
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
92
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
93
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
94
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
95
|
+
}>>;
|
|
96
|
+
toolIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
97
|
+
skillIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
98
|
+
instructionIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type UpdateAgentHarnessRequest = z.infer<typeof UpdateAgentHarnessRequest>;
|
|
101
|
+
export declare const FindAgentHarnessQuery: z.ZodObject<{
|
|
102
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
103
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
104
|
+
search: z.ZodOptional<z.ZodString>;
|
|
105
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type FindAgentHarnessQuery = z.infer<typeof FindAgentHarnessQuery>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export * from './harness';
|
|
2
|
+
export * from './harness-snapshot';
|
|
3
|
+
export * from './instruction';
|
|
1
4
|
export * from './session';
|
|
5
|
+
export * from './skill';
|
|
6
|
+
export * from './tool';
|
|
2
7
|
export * from './session-cost';
|
|
3
8
|
export * from './worker-contracts';
|
|
9
|
+
export * from './workspace-element-context';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgentInstruction: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
text: z.ZodString;
|
|
8
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
9
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
10
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
11
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type AgentInstruction = z.infer<typeof AgentInstruction>;
|
|
14
|
+
export declare const CreateAgentInstructionRequest: z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
key: z.ZodOptional<z.ZodString>;
|
|
17
|
+
text: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type CreateAgentInstructionRequest = z.infer<typeof CreateAgentInstructionRequest>;
|
|
20
|
+
export declare const UpdateAgentInstructionRequest: z.ZodObject<{
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
text: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type UpdateAgentInstructionRequest = z.infer<typeof UpdateAgentInstructionRequest>;
|
|
26
|
+
export declare const FindAgentInstructionQuery: z.ZodObject<{
|
|
27
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
28
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
search: z.ZodOptional<z.ZodString>;
|
|
30
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type FindAgentInstructionQuery = z.infer<typeof FindAgentInstructionQuery>;
|
|
@@ -26,8 +26,8 @@ export declare const AgentSession: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
workspaceId: z.ZodString;
|
|
28
28
|
orgWorkspaceId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
workspaceElementType: z.ZodEnum<typeof WorkspaceElementType
|
|
30
|
-
workspaceElementId: z.ZodString
|
|
29
|
+
workspaceElementType: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementType>>;
|
|
30
|
+
workspaceElementId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
type: z.ZodString;
|
|
32
32
|
status: z.ZodEnum<typeof AgentSessionStatus>;
|
|
33
33
|
prompt: z.ZodString;
|
|
@@ -40,6 +40,8 @@ export declare const AgentSession: z.ZodObject<{
|
|
|
40
40
|
hasWorker: z.ZodBoolean;
|
|
41
41
|
isExternal: z.ZodOptional<z.ZodBoolean>;
|
|
42
42
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
43
|
+
agentHarnessId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
agentHarnessSnapshotId: z.ZodOptional<z.ZodString>;
|
|
43
45
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
44
46
|
createdAt: z.ZodISODateTime;
|
|
45
47
|
updatedAt: z.ZodISODateTime;
|
|
@@ -70,6 +72,7 @@ export declare const CreateAgentSession: z.ZodObject<{
|
|
|
70
72
|
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
71
73
|
}>>;
|
|
72
74
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
75
|
+
agentHarnessId: z.ZodOptional<z.ZodString>;
|
|
73
76
|
promptAttachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
77
|
title: z.ZodString;
|
|
75
78
|
data: z.ZodUnknown;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AgentSkill: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
description: z.ZodString;
|
|
8
|
+
body: z.ZodString;
|
|
9
|
+
sourceUrl: z.ZodOptional<z.ZodURL>;
|
|
10
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
13
|
+
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type AgentSkill = z.infer<typeof AgentSkill>;
|
|
16
|
+
export declare const CreateAgentSkillRequest: z.ZodObject<{
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
key: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
body: z.ZodString;
|
|
21
|
+
sourceUrl: z.ZodOptional<z.ZodURL>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type CreateAgentSkillRequest = z.infer<typeof CreateAgentSkillRequest>;
|
|
24
|
+
export declare const UpdateAgentSkillRequest: z.ZodObject<{
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
body: z.ZodOptional<z.ZodString>;
|
|
29
|
+
sourceUrl: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type UpdateAgentSkillRequest = z.infer<typeof UpdateAgentSkillRequest>;
|
|
32
|
+
export declare const PreviewAgentSkillSourceRequest: z.ZodObject<{
|
|
33
|
+
sourceUrl: z.ZodURL;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type PreviewAgentSkillSourceRequest = z.infer<typeof PreviewAgentSkillSourceRequest>;
|
|
36
|
+
export declare const PreviewAgentSkillSourceResponse: z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
key: z.ZodOptional<z.ZodString>;
|
|
39
|
+
description: z.ZodString;
|
|
40
|
+
body: z.ZodString;
|
|
41
|
+
sourceUrl: z.ZodURL;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type PreviewAgentSkillSourceResponse = z.infer<typeof PreviewAgentSkillSourceResponse>;
|
|
44
|
+
export declare const FindAgentSkillQuery: z.ZodObject<{
|
|
45
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
46
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
47
|
+
search: z.ZodOptional<z.ZodString>;
|
|
48
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type FindAgentSkillQuery = z.infer<typeof FindAgentSkillQuery>;
|
|
@@ -8,6 +8,7 @@ export declare const SessionCredentials: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare const SessionParameters: z.ZodObject<{
|
|
10
10
|
id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
leaseId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
accessToken: z.ZodOptional<z.ZodString>;
|
|
12
13
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
13
14
|
accessKeyId: z.ZodString;
|
|
@@ -24,6 +25,7 @@ export declare const SessionParameters: z.ZodObject<{
|
|
|
24
25
|
openRouterApiKey: z.ZodOptional<z.ZodString>;
|
|
25
26
|
modelId: z.ZodOptional<z.ZodString>;
|
|
26
27
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
28
|
+
agentHarnessSnapshotId: z.ZodOptional<z.ZodString>;
|
|
27
29
|
engine: z.ZodOptional<z.ZodEnum<{
|
|
28
30
|
opencode: "opencode";
|
|
29
31
|
inline: "inline";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { WorkspaceElementType } from '../workspace-elements';
|
|
2
|
+
export declare const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES: readonly [WorkspaceElementType.Integration, WorkspaceElementType.Connection, WorkspaceElementType.Action, WorkspaceElementType.Flow, WorkspaceElementType.DataSource, WorkspaceElementType.FieldMapping, WorkspaceElementType.DataLinkTable, WorkspaceElementType.AppDataSchema, WorkspaceElementType.AppEventType, WorkspaceElementType.ExternalEventType];
|
|
3
|
+
export declare function canFetchAgentWorkspaceElementContext(elementType: WorkspaceElementType | string | undefined): elementType is WorkspaceElementType;
|
|
@@ -37,6 +37,7 @@ export * from './dto';
|
|
|
37
37
|
export * from './async-requests';
|
|
38
38
|
export * from './self-hosting-tokens';
|
|
39
39
|
export * from './platform-user-tokens';
|
|
40
|
+
export * from './mcp-client';
|
|
40
41
|
export * from './workspace-tokens';
|
|
41
42
|
export * from './oauth';
|
|
42
43
|
export * from './console-paths';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MCP_PROTOCOL_VERSION = "2025-11-25";
|
|
3
|
+
export declare const McpConnectionInput: z.ZodObject<{
|
|
4
|
+
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type McpConnectionInput = z.infer<typeof McpConnectionInput>;
|
|
7
|
+
export declare const ProtectedResourceMetadata: z.ZodObject<{
|
|
8
|
+
resource: z.ZodString;
|
|
9
|
+
authorization_servers: z.ZodArray<z.ZodString>;
|
|
10
|
+
bearer_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
scopes_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type ProtectedResourceMetadata = z.infer<typeof ProtectedResourceMetadata>;
|
|
14
|
+
export declare const AuthorizationServerMetadata: z.ZodObject<{
|
|
15
|
+
issuer: z.ZodString;
|
|
16
|
+
authorization_endpoint: z.ZodString;
|
|
17
|
+
token_endpoint: z.ZodString;
|
|
18
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
19
|
+
scopes_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
response_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
grant_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
code_challenge_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
token_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
client_id_metadata_document_supported: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
export type AuthorizationServerMetadata = z.infer<typeof AuthorizationServerMetadata>;
|
|
27
|
+
export declare const DynamicClientRegistrationResponse: z.ZodObject<{
|
|
28
|
+
client_id: z.ZodString;
|
|
29
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
30
|
+
client_id_issued_at: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
client_secret_expires_at: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
registration_access_token: z.ZodOptional<z.ZodString>;
|
|
33
|
+
registration_client_uri: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
export type DynamicClientRegistrationResponse = z.infer<typeof DynamicClientRegistrationResponse>;
|
|
36
|
+
export declare const McpTokenResponse: z.ZodObject<{
|
|
37
|
+
access_token: z.ZodString;
|
|
38
|
+
token_type: z.ZodString;
|
|
39
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
41
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
export type McpTokenResponse = z.infer<typeof McpTokenResponse>;
|
|
44
|
+
export declare const McpTool: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
|
+
export type McpTool = z.infer<typeof McpTool>;
|
|
50
|
+
export declare const McpSynthesizedAction: z.ZodObject<{
|
|
51
|
+
mcp: z.ZodLiteral<true>;
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
connectionId: z.ZodString;
|
|
54
|
+
key: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
description: z.ZodOptional<z.ZodString>;
|
|
57
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
+
isReadOnly: z.ZodLiteral<true>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export type McpSynthesizedAction = z.infer<typeof McpSynthesizedAction>;
|
|
61
|
+
export declare const McpAuthState: z.ZodObject<{
|
|
62
|
+
asIssuer: z.ZodString;
|
|
63
|
+
tokenEndpoint: z.ZodString;
|
|
64
|
+
clientId: z.ZodString;
|
|
65
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
66
|
+
canonicalResource: z.ZodString;
|
|
67
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type McpAuthState = z.infer<typeof McpAuthState>;
|
|
70
|
+
export declare const McpCredentials: z.ZodObject<{
|
|
71
|
+
accessToken: z.ZodString;
|
|
72
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
73
|
+
expiresAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
74
|
+
tokenType: z.ZodDefault<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type McpCredentials = z.infer<typeof McpCredentials>;
|