@inkeep/agents-core 0.53.6 → 0.53.7
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-schema.d.ts +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +20 -20
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +20 -20
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/db/manage/manage-schema.d.ts +357 -357
- package/dist/db/runtime/runtime-schema.d.ts +272 -272
- package/dist/utils/service-token-auth.d.ts +1 -1
- package/dist/utils/service-token-auth.js +2 -2
- package/dist/utils/slack-user-token.js +1 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1982 -1982
- package/dist/validation/schemas.js +7 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ interface GenerateServiceTokenParams {
|
|
|
36
36
|
type VerifyServiceTokenResult = JwtVerifyResult<ServiceTokenPayload>;
|
|
37
37
|
/**
|
|
38
38
|
* Generate a JWT token for agent-to-agent authentication.
|
|
39
|
-
* Token expires in
|
|
39
|
+
* Token expires in 1 hour.
|
|
40
40
|
*/
|
|
41
41
|
declare function generateServiceToken(params: GenerateServiceTokenParams): Promise<string>;
|
|
42
42
|
/**
|
|
@@ -6,7 +6,7 @@ const logger = getLogger("service-token-auth");
|
|
|
6
6
|
const ISSUER = "inkeep-agents";
|
|
7
7
|
/**
|
|
8
8
|
* Generate a JWT token for agent-to-agent authentication.
|
|
9
|
-
* Token expires in
|
|
9
|
+
* Token expires in 1 hour.
|
|
10
10
|
*/
|
|
11
11
|
async function generateServiceToken(params) {
|
|
12
12
|
try {
|
|
@@ -14,7 +14,7 @@ async function generateServiceToken(params) {
|
|
|
14
14
|
issuer: ISSUER,
|
|
15
15
|
subject: params.originAgentId,
|
|
16
16
|
audience: params.targetAgentId,
|
|
17
|
-
expiresIn: "
|
|
17
|
+
expiresIn: "1h",
|
|
18
18
|
claims: {
|
|
19
19
|
tenantId: params.tenantId,
|
|
20
20
|
projectId: params.projectId
|
|
@@ -8,7 +8,7 @@ const ISSUER = "inkeep-auth";
|
|
|
8
8
|
const AUDIENCE = "inkeep-api";
|
|
9
9
|
const TOKEN_USE = "slackUser";
|
|
10
10
|
const ACTOR_SUB = "inkeep-work-app-slack";
|
|
11
|
-
const TOKEN_TTL = "
|
|
11
|
+
const TOKEN_TTL = "1h";
|
|
12
12
|
/**
|
|
13
13
|
* Zod schema for validating Slack user access token JWT payload.
|
|
14
14
|
* This is the canonical schema from the work_apps_slack spec.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod0 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"select", T["_"]["columns"], drizzle_zod0.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"insert", T["_"]["columns"], drizzle_zod0.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|