@inkeep/agents-manage-api 0.41.0 → 0.41.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/index.d.ts
CHANGED
|
@@ -20,6 +20,34 @@ declare const auth: better_auth0.Auth<{
|
|
|
20
20
|
requireEmailVerification: false;
|
|
21
21
|
autoSignIn: true;
|
|
22
22
|
};
|
|
23
|
+
databaseHooks: {
|
|
24
|
+
session: {
|
|
25
|
+
create: {
|
|
26
|
+
before: (session: {
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
userId: string;
|
|
31
|
+
expiresAt: Date;
|
|
32
|
+
token: string;
|
|
33
|
+
ipAddress?: string | null | undefined;
|
|
34
|
+
userAgent?: string | null | undefined;
|
|
35
|
+
} & Record<string, unknown>) => Promise<{
|
|
36
|
+
data: {
|
|
37
|
+
activeOrganizationId: string | null;
|
|
38
|
+
id: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
userId: string;
|
|
42
|
+
expiresAt: Date;
|
|
43
|
+
token: string;
|
|
44
|
+
ipAddress?: string | null | undefined;
|
|
45
|
+
userAgent?: string | null | undefined;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
23
51
|
socialProviders: {
|
|
24
52
|
google: {
|
|
25
53
|
redirectURI?: string | undefined;
|
|
@@ -757,25 +785,25 @@ declare const auth: better_auth0.Auth<{
|
|
|
757
785
|
ac: better_auth_plugins0.AccessControl;
|
|
758
786
|
roles: {
|
|
759
787
|
member: {
|
|
760
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
761
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
788
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
789
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
762
790
|
connector: "OR" | "AND";
|
|
763
791
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
764
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
792
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
765
793
|
};
|
|
766
794
|
admin: {
|
|
767
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
768
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
795
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
796
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
769
797
|
connector: "OR" | "AND";
|
|
770
798
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
771
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
799
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
772
800
|
};
|
|
773
801
|
owner: {
|
|
774
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
775
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
802
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
803
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
776
804
|
connector: "OR" | "AND";
|
|
777
805
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
778
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
806
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
779
807
|
};
|
|
780
808
|
};
|
|
781
809
|
membershipLimit: number;
|
|
@@ -1036,25 +1064,25 @@ declare const auth: better_auth0.Auth<{
|
|
|
1036
1064
|
ac: better_auth_plugins0.AccessControl;
|
|
1037
1065
|
roles: {
|
|
1038
1066
|
member: {
|
|
1039
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1040
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1067
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1068
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1041
1069
|
connector: "OR" | "AND";
|
|
1042
1070
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1043
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1071
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1044
1072
|
};
|
|
1045
1073
|
admin: {
|
|
1046
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1047
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1074
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1075
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1048
1076
|
connector: "OR" | "AND";
|
|
1049
1077
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1050
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1078
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1051
1079
|
};
|
|
1052
1080
|
owner: {
|
|
1053
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1054
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1081
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1082
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1055
1083
|
connector: "OR" | "AND";
|
|
1056
1084
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1057
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1085
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "tool" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1058
1086
|
};
|
|
1059
1087
|
};
|
|
1060
1088
|
membershipLimit: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono1 from "hono";
|
|
2
2
|
import { ExecutionContext } from "@inkeep/agents-core";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
11
11
|
* 2. Better-auth session token (from device authorization flow)
|
|
12
12
|
* 3. Database API key
|
|
13
13
|
*/
|
|
14
|
-
declare const apiKeyAuth: () =>
|
|
14
|
+
declare const apiKeyAuth: () => hono1.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
executionContext: ExecutionContext;
|
|
17
17
|
userId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono2 from "hono";
|
|
2
2
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/require-permission.d.ts
|
|
@@ -14,6 +14,6 @@ type MinimalAuthVariables = {
|
|
|
14
14
|
tenantRole: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
declare const requirePermission: <Env$1 extends MinimalAuthVariables = MinimalAuthVariables>(permissions: Permission) =>
|
|
17
|
+
declare const requirePermission: <Env$1 extends MinimalAuthVariables = MinimalAuthVariables>(permissions: Permission) => hono2.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { requirePermission };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono0 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono0.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
package/dist/routes/mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types3 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
package/dist/routes/signoz.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseAppVariables } from "../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types5 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/routes/signoz.d.ts
|
|
6
6
|
declare const app: Hono<{
|
|
7
7
|
Variables: BaseAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types5.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-manage-api",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"nanoid": "^5.1.5",
|
|
29
29
|
"openid-client": "^6.6.4",
|
|
30
30
|
"pino": "^9.7.0",
|
|
31
|
-
"@inkeep/agents-core": "^0.41.
|
|
32
|
-
"@inkeep/agents-manage-mcp": "^0.41.
|
|
31
|
+
"@inkeep/agents-core": "^0.41.2",
|
|
32
|
+
"@inkeep/agents-manage-mcp": "^0.41.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@hono/zod-openapi": "^1.1.5",
|