@inkeep/agents-core 0.0.0-dev-20251222083114 → 0.0.0-dev-20251222193909
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 +37 -37
- 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 +483 -467
- package/dist/client.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/schema-conversion.d.ts.map +1 -1
- package/dist/signoz-queries.js +13 -1
- package/dist/signoz-queries.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 better_auth_social_providers0 from "better-auth/social-providers";
|
|
10
10
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
11
11
|
import * as zod0 from "zod";
|
|
@@ -773,7 +773,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
773
773
|
};
|
|
774
774
|
}, {
|
|
775
775
|
id: "oauth-proxy";
|
|
776
|
-
options:
|
|
776
|
+
options: better_auth_plugins0.OAuthProxyOptions | undefined;
|
|
777
777
|
endpoints: {
|
|
778
778
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
779
779
|
method: "GET";
|
|
@@ -824,30 +824,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
824
824
|
};
|
|
825
825
|
}, {
|
|
826
826
|
id: "organization";
|
|
827
|
-
endpoints:
|
|
827
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
828
828
|
allowUserToCreateOrganization: true;
|
|
829
|
-
ac:
|
|
829
|
+
ac: better_auth_plugins0.AccessControl;
|
|
830
830
|
roles: {
|
|
831
831
|
member: {
|
|
832
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
833
|
-
actions:
|
|
832
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
833
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
834
834
|
connector: "OR" | "AND";
|
|
835
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
836
|
-
statements:
|
|
835
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
836
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
837
837
|
};
|
|
838
838
|
admin: {
|
|
839
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
840
|
-
actions:
|
|
839
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
840
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
841
841
|
connector: "OR" | "AND";
|
|
842
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
843
|
-
statements:
|
|
842
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
843
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
844
844
|
};
|
|
845
845
|
owner: {
|
|
846
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
847
|
-
actions:
|
|
846
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
847
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
848
848
|
connector: "OR" | "AND";
|
|
849
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
850
|
-
statements:
|
|
849
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
850
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
851
851
|
};
|
|
852
852
|
};
|
|
853
853
|
membershipLimit: number;
|
|
@@ -857,9 +857,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
857
857
|
id: string;
|
|
858
858
|
role: string;
|
|
859
859
|
email: string;
|
|
860
|
-
organization:
|
|
861
|
-
invitation:
|
|
862
|
-
inviter:
|
|
860
|
+
organization: better_auth_plugins0.Organization;
|
|
861
|
+
invitation: better_auth_plugins0.Invitation;
|
|
862
|
+
inviter: better_auth_plugins0.Member & {
|
|
863
863
|
user: better_auth0.User;
|
|
864
864
|
};
|
|
865
865
|
}): Promise<void>;
|
|
@@ -992,7 +992,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
992
992
|
organizationId: string;
|
|
993
993
|
email: string;
|
|
994
994
|
role: "member" | "admin" | "owner";
|
|
995
|
-
status:
|
|
995
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
996
996
|
inviterId: string;
|
|
997
997
|
expiresAt: Date;
|
|
998
998
|
createdAt: Date;
|
|
@@ -1031,7 +1031,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1031
1031
|
organizationId: string;
|
|
1032
1032
|
email: string;
|
|
1033
1033
|
role: "member" | "admin" | "owner";
|
|
1034
|
-
status:
|
|
1034
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1035
1035
|
inviterId: string;
|
|
1036
1036
|
expiresAt: Date;
|
|
1037
1037
|
createdAt: Date;
|
|
@@ -1105,28 +1105,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1105
1105
|
};
|
|
1106
1106
|
options: {
|
|
1107
1107
|
allowUserToCreateOrganization: true;
|
|
1108
|
-
ac:
|
|
1108
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1109
1109
|
roles: {
|
|
1110
1110
|
member: {
|
|
1111
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1112
|
-
actions:
|
|
1111
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1112
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
1113
1113
|
connector: "OR" | "AND";
|
|
1114
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1115
|
-
statements:
|
|
1114
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1115
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
1116
1116
|
};
|
|
1117
1117
|
admin: {
|
|
1118
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1119
|
-
actions:
|
|
1118
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1119
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
1120
1120
|
connector: "OR" | "AND";
|
|
1121
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1122
|
-
statements:
|
|
1121
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1122
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
1123
1123
|
};
|
|
1124
1124
|
owner: {
|
|
1125
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1126
|
-
actions:
|
|
1125
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1126
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
1127
1127
|
connector: "OR" | "AND";
|
|
1128
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1129
|
-
statements:
|
|
1128
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1129
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
1130
1130
|
};
|
|
1131
1131
|
};
|
|
1132
1132
|
membershipLimit: number;
|
|
@@ -1136,9 +1136,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1136
1136
|
id: string;
|
|
1137
1137
|
role: string;
|
|
1138
1138
|
email: string;
|
|
1139
|
-
organization:
|
|
1140
|
-
invitation:
|
|
1141
|
-
inviter:
|
|
1139
|
+
organization: better_auth_plugins0.Organization;
|
|
1140
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1141
|
+
inviter: better_auth_plugins0.Member & {
|
|
1142
1142
|
user: better_auth0.User;
|
|
1143
1143
|
};
|
|
1144
1144
|
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins53 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" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
11
|
-
statements:
|
|
10
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
11
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>;
|
|
12
12
|
};
|
|
13
13
|
declare const adminRole: {
|
|
14
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
15
|
-
actions:
|
|
14
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
18
|
-
statements:
|
|
17
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
18
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>;
|
|
19
19
|
};
|
|
20
20
|
declare const ownerRole: {
|
|
21
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
22
|
-
actions:
|
|
21
|
+
authorize<K_1 extends "function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
25
|
-
statements:
|
|
24
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
25
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "ac" | "member" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "invitation" | "team", better_auth_plugins53.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,IAAA,GAAA,QAAA,GAAA,SAAA,GAAA,OAAA,GAAA,WAAA,GAAA,MAAA,GAAA,SAAA,GAAA,YAAA,GAAA,gBAAA,GAAA,oBAAA,GAAA,gBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,MAAA,mCAAA,IAAA,CAAA;IAEpD,SAaX,EAAA,IAAA,GAAA,KAAA;;;;cAEW;;;;;;;cAeA;;;IAfA,SAaX,EAAA,IAAA,GAAA,KAAA"}
|