@inkeep/agents-core 0.35.7 → 0.35.9
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/auth/auth.d.ts +905 -5
- package/dist/auth/auth.js +20 -21
- package/dist/auth/permissions.d.ts +15 -261
- package/dist/index.d.ts +2 -2
- package/package.json +10 -6
package/dist/auth/auth.js
CHANGED
|
@@ -31,26 +31,6 @@ async function registerSSOProvider(dbClient, provider) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function createAuth(config) {
|
|
34
|
-
const plugins = [
|
|
35
|
-
sso(),
|
|
36
|
-
organization({
|
|
37
|
-
allowUserToCreateOrganization: true,
|
|
38
|
-
ac,
|
|
39
|
-
roles: {
|
|
40
|
-
member: memberRole,
|
|
41
|
-
admin: adminRole,
|
|
42
|
-
owner: ownerRole
|
|
43
|
-
},
|
|
44
|
-
async sendInvitationEmail(data) {
|
|
45
|
-
console.log("\u{1F4E7} Invitation created:", {
|
|
46
|
-
email: data.email,
|
|
47
|
-
invitedBy: data.inviter.user.name || data.inviter.user.email,
|
|
48
|
-
organization: data.organization.name,
|
|
49
|
-
invitationId: data.id
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
];
|
|
54
34
|
const auth2 = betterAuth({
|
|
55
35
|
baseURL: config.baseURL,
|
|
56
36
|
secret: config.secret,
|
|
@@ -77,7 +57,26 @@ function createAuth(config) {
|
|
|
77
57
|
}
|
|
78
58
|
},
|
|
79
59
|
trustedOrigins: ["http://localhost:3000", "http://localhost:3002", config.baseURL],
|
|
80
|
-
plugins
|
|
60
|
+
plugins: [
|
|
61
|
+
sso(),
|
|
62
|
+
organization({
|
|
63
|
+
allowUserToCreateOrganization: true,
|
|
64
|
+
ac,
|
|
65
|
+
roles: {
|
|
66
|
+
member: memberRole,
|
|
67
|
+
admin: adminRole,
|
|
68
|
+
owner: ownerRole
|
|
69
|
+
},
|
|
70
|
+
async sendInvitationEmail(data) {
|
|
71
|
+
console.log("\u{1F4E7} Invitation created:", {
|
|
72
|
+
email: data.email,
|
|
73
|
+
invitedBy: data.inviter.user.name || data.inviter.user.email,
|
|
74
|
+
organization: data.organization.name,
|
|
75
|
+
invitationId: data.id
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
]
|
|
81
80
|
});
|
|
82
81
|
if (config.ssoProviders?.length) {
|
|
83
82
|
const providers = config.ssoProviders;
|
|
@@ -1,273 +1,27 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins from 'better-auth/plugins';
|
|
2
|
+
import { AccessControl } from 'better-auth/plugins/access';
|
|
2
3
|
|
|
3
|
-
declare const ac:
|
|
4
|
-
newRole<K extends "function" | "organization" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "member" | "invitation" | "team">(statements: better_auth_plugins_access.Subset<K, {
|
|
5
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
6
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
7
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
8
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
9
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
10
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
11
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
12
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
13
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
14
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
15
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
16
|
-
readonly organization: readonly ["update", "delete"];
|
|
17
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
18
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
19
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
20
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
21
|
-
}>): {
|
|
22
|
-
authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?: better_auth_plugins_access.Subset<K, {
|
|
23
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
24
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
25
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
26
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
27
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
28
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
29
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
30
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
31
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
32
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
33
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
34
|
-
readonly organization: readonly ["update", "delete"];
|
|
35
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
36
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
37
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
38
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
39
|
-
}>[key] | {
|
|
40
|
-
actions: better_auth_plugins_access.Subset<K, {
|
|
41
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
42
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
43
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
44
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
45
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
46
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
47
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
48
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
49
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
50
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
51
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
52
|
-
readonly organization: readonly ["update", "delete"];
|
|
53
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
54
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
55
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
56
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
57
|
-
}>[key];
|
|
58
|
-
connector: "OR" | "AND";
|
|
59
|
-
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins_access.AuthorizeResponse;
|
|
60
|
-
statements: better_auth_plugins_access.Subset<K, {
|
|
61
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
62
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
63
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
64
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
65
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
66
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
67
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
68
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
69
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
70
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
71
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
72
|
-
readonly organization: readonly ["update", "delete"];
|
|
73
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
74
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
75
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
76
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
statements: {
|
|
80
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
81
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
82
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
83
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
84
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
85
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
86
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
87
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
88
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
89
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
90
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
91
|
-
readonly organization: readonly ["update", "delete"];
|
|
92
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
93
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
94
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
95
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
96
|
-
};
|
|
97
|
-
};
|
|
4
|
+
declare const ac: AccessControl;
|
|
98
5
|
declare const memberRole: {
|
|
99
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
100
|
-
|
|
101
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
102
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
103
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
104
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
105
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
106
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
107
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
108
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
109
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
110
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
111
|
-
readonly organization: readonly ["update", "delete"];
|
|
112
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
113
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
114
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
115
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
116
|
-
}>[key] | {
|
|
117
|
-
actions: better_auth_plugins_access.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
118
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
119
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
120
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
121
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
122
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
123
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
124
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
125
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
126
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
127
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
128
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
129
|
-
readonly organization: readonly ["update", "delete"];
|
|
130
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
131
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
132
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
133
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
134
|
-
}>[key];
|
|
6
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key] | {
|
|
7
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key];
|
|
135
8
|
connector: "OR" | "AND";
|
|
136
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
137
|
-
statements:
|
|
138
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
139
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
140
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
141
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
142
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
143
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
144
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
145
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
146
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
147
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
148
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
149
|
-
readonly organization: readonly ["update", "delete"];
|
|
150
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
151
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
152
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
153
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
154
|
-
}>;
|
|
9
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
10
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>;
|
|
155
11
|
};
|
|
156
12
|
declare const adminRole: {
|
|
157
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
158
|
-
|
|
159
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
160
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
161
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
162
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
163
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
164
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
165
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
166
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
167
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
168
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
169
|
-
readonly organization: readonly ["update", "delete"];
|
|
170
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
171
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
172
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
173
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
174
|
-
}>[key] | {
|
|
175
|
-
actions: better_auth_plugins_access.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
176
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
177
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
178
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
179
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
180
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
181
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
182
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
183
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
184
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
185
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
186
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
187
|
-
readonly organization: readonly ["update", "delete"];
|
|
188
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
189
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
190
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
191
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
192
|
-
}>[key];
|
|
13
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key] | {
|
|
14
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key];
|
|
193
15
|
connector: "OR" | "AND";
|
|
194
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
195
|
-
statements:
|
|
196
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
197
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
198
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
199
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
200
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
201
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
202
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
203
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
204
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
205
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
206
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
207
|
-
readonly organization: readonly ["update", "delete"];
|
|
208
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
209
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
210
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
211
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
212
|
-
}>;
|
|
16
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
17
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>;
|
|
213
18
|
};
|
|
214
19
|
declare const ownerRole: {
|
|
215
|
-
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
216
|
-
|
|
217
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
218
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
219
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
220
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
221
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
222
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
223
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
224
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
225
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
226
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
227
|
-
readonly organization: readonly ["update", "delete"];
|
|
228
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
229
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
230
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
231
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
232
|
-
}>[key] | {
|
|
233
|
-
actions: better_auth_plugins_access.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", {
|
|
234
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
235
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
236
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
237
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
238
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
239
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
240
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
241
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
242
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
243
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
244
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
245
|
-
readonly organization: readonly ["update", "delete"];
|
|
246
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
247
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
248
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
249
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
250
|
-
}>[key];
|
|
20
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key] | {
|
|
21
|
+
actions: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>[key];
|
|
251
22
|
connector: "OR" | "AND";
|
|
252
|
-
} | undefined; } : never, connector?: "OR" | "AND"):
|
|
253
|
-
statements:
|
|
254
|
-
readonly project: readonly ["create", "read", "update", "delete"];
|
|
255
|
-
readonly agent: readonly ["create", "read", "update", "delete"];
|
|
256
|
-
readonly sub_agent: readonly ["create", "read", "update", "delete"];
|
|
257
|
-
readonly tool: readonly ["create", "read", "update", "delete"];
|
|
258
|
-
readonly api_key: readonly ["create", "read", "update", "delete"];
|
|
259
|
-
readonly credential: readonly ["create", "read", "update", "delete"];
|
|
260
|
-
readonly data_component: readonly ["create", "read", "update", "delete"];
|
|
261
|
-
readonly artifact_component: readonly ["create", "read", "update", "delete"];
|
|
262
|
-
readonly external_agent: readonly ["create", "read", "update", "delete"];
|
|
263
|
-
readonly function: readonly ["create", "read", "update", "delete"];
|
|
264
|
-
readonly context_config: readonly ["create", "read", "update", "delete"];
|
|
265
|
-
readonly organization: readonly ["update", "delete"];
|
|
266
|
-
readonly member: readonly ["create", "update", "delete"];
|
|
267
|
-
readonly invitation: readonly ["create", "cancel"];
|
|
268
|
-
readonly team: readonly ["create", "update", "delete"];
|
|
269
|
-
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
270
|
-
}>;
|
|
23
|
+
} | undefined; } : never, connector?: "OR" | "AND"): better_auth_plugins.AuthorizeResponse;
|
|
24
|
+
statements: better_auth_plugins.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config", better_auth_plugins.Statements>;
|
|
271
25
|
};
|
|
272
26
|
|
|
273
27
|
export { ac, adminRole, memberRole, ownerRole };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
|
|
4
4
|
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, schemaValidationDefaults } from './constants/schema-validation/index.js';
|
|
5
|
-
import
|
|
5
|
+
import zod__default, { z } from 'zod';
|
|
6
6
|
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext, az as PrebuiltMCPServerSchema } from './utility-C4QAannk.js';
|
|
7
7
|
export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-C4QAannk.js';
|
|
8
8
|
import { CredentialStoreRegistry } from './credential-stores/index.js';
|
|
@@ -4425,7 +4425,7 @@ declare function verifyAuthorizationHeader(authHeader: string | undefined): Prom
|
|
|
4425
4425
|
* Handles all Composio-specific operations for MCP server integration
|
|
4426
4426
|
*/
|
|
4427
4427
|
|
|
4428
|
-
type PrebuiltMCPServer =
|
|
4428
|
+
type PrebuiltMCPServer = zod__default.infer<typeof PrebuiltMCPServerSchema>;
|
|
4429
4429
|
/**
|
|
4430
4430
|
* Extract server ID from a Composio MCP URL
|
|
4431
4431
|
* Example: https://backend.composio.dev/v3/mcp/1234-1234-1234?user_id=... -> 1234-1234-1234
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.9",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -74,9 +74,8 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@composio/core": "^0.2.4",
|
|
76
76
|
"@electric-sql/pglite": "^0.3.13",
|
|
77
|
-
"@better-auth/sso": "^1.
|
|
77
|
+
"@better-auth/sso": "^1.4.0",
|
|
78
78
|
"@hono/node-server": "^1.14.3",
|
|
79
|
-
"@hono/zod-openapi": "^1.0.2",
|
|
80
79
|
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
81
80
|
"@nangohq/node": "^0.69.5",
|
|
82
81
|
"@nangohq/types": "^0.69.5",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"ai": "5.0.11",
|
|
93
92
|
"ajv": "^8.17.1",
|
|
94
93
|
"ajv-formats": "^3.0.1",
|
|
95
|
-
"better-auth": "^1.
|
|
94
|
+
"better-auth": "^1.4.0",
|
|
96
95
|
"dotenv": "^17.2.1",
|
|
97
96
|
"dotenv-expand": "^12.0.3",
|
|
98
97
|
"drizzle-orm": "^0.44.4",
|
|
@@ -106,13 +105,17 @@
|
|
|
106
105
|
"pg": "^8.16.3",
|
|
107
106
|
"pino": "^9.11.0",
|
|
108
107
|
"pino-pretty": "^13.1.1",
|
|
109
|
-
"ts-pattern": "^5.7.1"
|
|
108
|
+
"ts-pattern": "^5.7.1"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
110
112
|
"zod": "^4.1.11"
|
|
111
113
|
},
|
|
112
114
|
"optionalDependencies": {
|
|
113
115
|
"keytar": "^7.9.0"
|
|
114
116
|
},
|
|
115
117
|
"devDependencies": {
|
|
118
|
+
"@hono/zod-openapi": "^1.0.2",
|
|
116
119
|
"@types/jmespath": "^0.15.2",
|
|
117
120
|
"@types/node": "^20.11.24",
|
|
118
121
|
"@types/pg": "^8.15.6",
|
|
@@ -121,7 +124,8 @@
|
|
|
121
124
|
"drizzle-kit": "^0.31.6",
|
|
122
125
|
"tsx": "^4.19.2",
|
|
123
126
|
"typescript": "^5.9.2",
|
|
124
|
-
"vitest": "^3.2.4"
|
|
127
|
+
"vitest": "^3.2.4",
|
|
128
|
+
"zod": "^4.1.11"
|
|
125
129
|
},
|
|
126
130
|
"engines": {
|
|
127
131
|
"node": ">=22.0.0"
|