@inkeep/agents-core 0.0.0-dev-20251217213442 → 0.0.0-dev-20251218053358
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 +82 -82
- package/dist/auth-validation-schemas.d.ts +129 -129
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.d.ts.map +1 -1
- package/dist/client.d.ts +400 -400
- package/dist/client.d.ts.map +1 -1
- package/dist/models.d.ts +1 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +1 -0
- package/dist/models.js.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_plugins0 from "better-auth/plugins";
|
|
9
9
|
import * as zod0 from "zod";
|
|
10
10
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
11
11
|
|
|
@@ -728,30 +728,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
728
728
|
};
|
|
729
729
|
}, {
|
|
730
730
|
id: "organization";
|
|
731
|
-
endpoints:
|
|
731
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
732
732
|
allowUserToCreateOrganization: true;
|
|
733
|
-
ac:
|
|
733
|
+
ac: better_auth_plugins0.AccessControl;
|
|
734
734
|
roles: {
|
|
735
735
|
member: {
|
|
736
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
737
|
-
actions:
|
|
736
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
737
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
738
738
|
connector: "OR" | "AND";
|
|
739
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
740
|
-
statements:
|
|
739
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
740
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
741
741
|
};
|
|
742
742
|
admin: {
|
|
743
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
744
|
-
actions:
|
|
743
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
744
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
745
745
|
connector: "OR" | "AND";
|
|
746
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
747
|
-
statements:
|
|
746
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
747
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
748
748
|
};
|
|
749
749
|
owner: {
|
|
750
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
751
|
-
actions:
|
|
750
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
751
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
752
752
|
connector: "OR" | "AND";
|
|
753
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
754
|
-
statements:
|
|
753
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
754
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
755
755
|
};
|
|
756
756
|
};
|
|
757
757
|
membershipLimit: number;
|
|
@@ -761,9 +761,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
761
761
|
id: string;
|
|
762
762
|
role: string;
|
|
763
763
|
email: string;
|
|
764
|
-
organization:
|
|
765
|
-
invitation:
|
|
766
|
-
inviter:
|
|
764
|
+
organization: better_auth_plugins0.Organization;
|
|
765
|
+
invitation: better_auth_plugins0.Invitation;
|
|
766
|
+
inviter: better_auth_plugins0.Member & {
|
|
767
767
|
user: better_auth0.User;
|
|
768
768
|
};
|
|
769
769
|
}): Promise<void>;
|
|
@@ -896,7 +896,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
896
896
|
organizationId: string;
|
|
897
897
|
email: string;
|
|
898
898
|
role: "member" | "admin" | "owner";
|
|
899
|
-
status:
|
|
899
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
900
900
|
inviterId: string;
|
|
901
901
|
expiresAt: Date;
|
|
902
902
|
createdAt: Date;
|
|
@@ -935,7 +935,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
935
935
|
organizationId: string;
|
|
936
936
|
email: string;
|
|
937
937
|
role: "member" | "admin" | "owner";
|
|
938
|
-
status:
|
|
938
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
939
939
|
inviterId: string;
|
|
940
940
|
expiresAt: Date;
|
|
941
941
|
createdAt: Date;
|
|
@@ -1009,28 +1009,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1009
1009
|
};
|
|
1010
1010
|
options: {
|
|
1011
1011
|
allowUserToCreateOrganization: true;
|
|
1012
|
-
ac:
|
|
1012
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1013
1013
|
roles: {
|
|
1014
1014
|
member: {
|
|
1015
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
1016
|
-
actions:
|
|
1015
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1016
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1017
1017
|
connector: "OR" | "AND";
|
|
1018
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1019
|
-
statements:
|
|
1018
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1019
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1020
1020
|
};
|
|
1021
1021
|
admin: {
|
|
1022
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
1023
|
-
actions:
|
|
1022
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1023
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1024
1024
|
connector: "OR" | "AND";
|
|
1025
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1026
|
-
statements:
|
|
1025
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1026
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1027
1027
|
};
|
|
1028
1028
|
owner: {
|
|
1029
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
1030
|
-
actions:
|
|
1029
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1030
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1031
1031
|
connector: "OR" | "AND";
|
|
1032
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1033
|
-
statements:
|
|
1032
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1033
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1034
1034
|
};
|
|
1035
1035
|
};
|
|
1036
1036
|
membershipLimit: number;
|
|
@@ -1040,9 +1040,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1040
1040
|
id: string;
|
|
1041
1041
|
role: string;
|
|
1042
1042
|
email: string;
|
|
1043
|
-
organization:
|
|
1044
|
-
invitation:
|
|
1045
|
-
inviter:
|
|
1043
|
+
organization: better_auth_plugins0.Organization;
|
|
1044
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1045
|
+
inviter: better_auth_plugins0.Member & {
|
|
1046
1046
|
user: better_auth0.User;
|
|
1047
1047
|
};
|
|
1048
1048
|
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins52 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" | "agent" | "project" | "tool" | "
|
|
8
|
-
actions:
|
|
7
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
11
|
-
statements:
|
|
10
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins52.AuthorizeResponse;
|
|
11
|
+
statements: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>;
|
|
12
12
|
};
|
|
13
13
|
declare const adminRole: {
|
|
14
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
15
|
-
actions:
|
|
14
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
18
|
-
statements:
|
|
17
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins52.AuthorizeResponse;
|
|
18
|
+
statements: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>;
|
|
19
19
|
};
|
|
20
20
|
declare const ownerRole: {
|
|
21
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "
|
|
22
|
-
actions:
|
|
21
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "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_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
25
|
-
statements:
|
|
24
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins52.AuthorizeResponse;
|
|
25
|
+
statements: better_auth_plugins52.Subset<"function" | "organization" | "agent" | "project" | "tool" | "member" | "invitation" | "ac" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins52.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,8BAAA,CAAA,UAAA,GAAA,cAAA,GAAA,OAAA,GAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,YAAA,GAAA,IAAA,GAAA,WAAA,GAAA,SAAA,GAAA,YAAA,GAAA,gBAAA,GAAA,oBAAA,GAAA,gBAAA,GAAA,gBAAA,GAAA,MAAA,mCAAA,IAAA,CAAA;IAEpD,SAaX,EAAA,IAAA,GAAA,KAAA;;;;cAEW;;;;;;;cAeA;;;IAfA,SAaX,EAAA,IAAA,GAAA,KAAA"}
|