@inkeep/agents-core 0.0.0-dev-20251217042024 → 0.0.0-dev-20251217091232
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 +36 -36
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/auth/permissions.d.ts.map +1 -1
- package/dist/auth-schema.d.ts +104 -104
- package/dist/auth-schema.d.ts.map +1 -1
- package/dist/auth-validation-schemas.d.ts +129 -129
- package/dist/auth-validation-schemas.d.ts.map +1 -1
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.d.ts.map +1 -1
- package/dist/client.d.ts +446 -446
- package/dist/client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import "../schema-conversion.js";
|
|
|
5
5
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
6
6
|
import * as better_auth0 from "better-auth";
|
|
7
7
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
8
|
-
import * as
|
|
8
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
9
9
|
import * as zod0 from "zod";
|
|
10
10
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
11
11
|
|
|
@@ -728,39 +728,39 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
728
728
|
};
|
|
729
729
|
}, {
|
|
730
730
|
id: "organization";
|
|
731
|
-
endpoints:
|
|
731
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
732
732
|
allowUserToCreateOrganization: true;
|
|
733
|
-
ac:
|
|
733
|
+
ac: better_auth_plugins20.AccessControl;
|
|
734
734
|
roles: {
|
|
735
735
|
member: {
|
|
736
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
737
|
-
actions:
|
|
736
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
737
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
738
738
|
connector: "OR" | "AND";
|
|
739
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
740
|
-
statements:
|
|
739
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
740
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
741
741
|
};
|
|
742
742
|
admin: {
|
|
743
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
744
|
-
actions:
|
|
743
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
744
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
745
745
|
connector: "OR" | "AND";
|
|
746
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
747
|
-
statements:
|
|
746
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
747
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
748
748
|
};
|
|
749
749
|
owner: {
|
|
750
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
751
|
-
actions:
|
|
750
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
751
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
752
752
|
connector: "OR" | "AND";
|
|
753
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
754
|
-
statements:
|
|
753
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
754
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
755
755
|
};
|
|
756
756
|
};
|
|
757
757
|
sendInvitationEmail(data: {
|
|
758
758
|
id: string;
|
|
759
759
|
role: string;
|
|
760
760
|
email: string;
|
|
761
|
-
organization:
|
|
762
|
-
invitation:
|
|
763
|
-
inviter:
|
|
761
|
+
organization: better_auth_plugins20.Organization;
|
|
762
|
+
invitation: better_auth_plugins20.Invitation;
|
|
763
|
+
inviter: better_auth_plugins20.Member & {
|
|
764
764
|
user: better_auth0.User;
|
|
765
765
|
};
|
|
766
766
|
}): Promise<void>;
|
|
@@ -893,7 +893,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
893
893
|
organizationId: string;
|
|
894
894
|
email: string;
|
|
895
895
|
role: "member" | "admin" | "owner";
|
|
896
|
-
status:
|
|
896
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
897
897
|
inviterId: string;
|
|
898
898
|
expiresAt: Date;
|
|
899
899
|
createdAt: Date;
|
|
@@ -932,7 +932,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
932
932
|
organizationId: string;
|
|
933
933
|
email: string;
|
|
934
934
|
role: "member" | "admin" | "owner";
|
|
935
|
-
status:
|
|
935
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
936
936
|
inviterId: string;
|
|
937
937
|
expiresAt: Date;
|
|
938
938
|
createdAt: Date;
|
|
@@ -1006,37 +1006,37 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1006
1006
|
};
|
|
1007
1007
|
options: {
|
|
1008
1008
|
allowUserToCreateOrganization: true;
|
|
1009
|
-
ac:
|
|
1009
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1010
1010
|
roles: {
|
|
1011
1011
|
member: {
|
|
1012
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1013
|
-
actions:
|
|
1012
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1013
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
1014
1014
|
connector: "OR" | "AND";
|
|
1015
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1016
|
-
statements:
|
|
1015
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1016
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
1017
1017
|
};
|
|
1018
1018
|
admin: {
|
|
1019
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1020
|
-
actions:
|
|
1019
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1020
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
1021
1021
|
connector: "OR" | "AND";
|
|
1022
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1023
|
-
statements:
|
|
1022
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1023
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
1024
1024
|
};
|
|
1025
1025
|
owner: {
|
|
1026
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1027
|
-
actions:
|
|
1026
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1027
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>[key];
|
|
1028
1028
|
connector: "OR" | "AND";
|
|
1029
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1030
|
-
statements:
|
|
1029
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1030
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins20.Statements>;
|
|
1031
1031
|
};
|
|
1032
1032
|
};
|
|
1033
1033
|
sendInvitationEmail(data: {
|
|
1034
1034
|
id: string;
|
|
1035
1035
|
role: string;
|
|
1036
1036
|
email: string;
|
|
1037
|
-
organization:
|
|
1038
|
-
invitation:
|
|
1039
|
-
inviter:
|
|
1037
|
+
organization: better_auth_plugins20.Organization;
|
|
1038
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1039
|
+
inviter: better_auth_plugins20.Member & {
|
|
1040
1040
|
user: better_auth0.User;
|
|
1041
1041
|
};
|
|
1042
1042
|
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
|
|
4
4
|
//#region src/auth/permissions.d.ts
|
|
5
5
|
declare const ac: AccessControl;
|
|
6
6
|
declare const memberRole: {
|
|
7
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
8
|
-
actions:
|
|
7
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
11
|
-
statements:
|
|
10
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
11
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
12
12
|
};
|
|
13
13
|
declare const adminRole: {
|
|
14
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
15
|
-
actions:
|
|
14
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
18
|
-
statements:
|
|
17
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
18
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
19
19
|
};
|
|
20
20
|
declare const ownerRole: {
|
|
21
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
22
|
-
actions:
|
|
21
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
25
|
-
statements:
|
|
24
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
25
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ac, adminRole, memberRole, ownerRole };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","names":[],"sources":["../../src/auth/permissions.ts"],"sourcesContent":[],"mappings":";;;;cAwBa,IAAuC;cAEvC;;IAFA,OAAoD,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","names":[],"sources":["../../src/auth/permissions.ts"],"sourcesContent":[],"mappings":";;;;cAwBa,IAAuC;cAEvC;;IAFA,OAAoD,6BAAA,CAAA,UAAA,GAAA,cAAA,GAAA,QAAA,GAAA,YAAA,GAAA,SAAA,GAAA,OAAA,GAAA,WAAA,GAAA,MAAA,GAAA,SAAA,GAAA,YAAA,GAAA,gBAAA,GAAA,oBAAA,GAAA,gBAAA,GAAA,gBAAA,GAAA,IAAA,GAAA,MAAA,kCAAA,IAAA,CAAA;IAEpD,SAaX,EAAA,IAAA,GAAA,KAAA;;;;cAEW;;;;;;;cAeA;;;IAfA,SAaX,EAAA,IAAA,GAAA,KAAA"}
|