@inkeep/agents-core 0.70.3 → 0.70.5

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.
Files changed (40) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +122 -122
  4. package/dist/auth/auth.js +26 -5
  5. package/dist/auth/init.js +10 -13
  6. package/dist/auth/password-policy-rules.d.ts +18 -0
  7. package/dist/auth/password-policy-rules.js +32 -0
  8. package/dist/auth/password-policy.d.ts +10 -0
  9. package/dist/auth/password-policy.js +88 -0
  10. package/dist/auth/permissions.d.ts +13 -13
  11. package/dist/constants/otel-attributes.d.ts +1 -0
  12. package/dist/constants/otel-attributes.js +1 -0
  13. package/dist/constants/signoz-queries.d.ts +3 -0
  14. package/dist/constants/signoz-queries.js +7 -2
  15. package/dist/data-access/manage/agents.d.ts +46 -46
  16. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  17. package/dist/data-access/manage/functionTools.d.ts +6 -6
  18. package/dist/data-access/manage/skills.d.ts +4 -4
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  20. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  22. package/dist/data-access/manage/subAgents.d.ts +18 -18
  23. package/dist/data-access/manage/tools.d.ts +12 -12
  24. package/dist/data-access/manage/triggers.d.ts +5 -5
  25. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  26. package/dist/data-access/runtime/apps.d.ts +9 -9
  27. package/dist/data-access/runtime/conversations.d.ts +24 -24
  28. package/dist/data-access/runtime/messages.d.ts +6 -6
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +6 -6
  32. package/dist/db/manage/manage-schema.d.ts +461 -461
  33. package/dist/db/runtime/runtime-schema.d.ts +435 -435
  34. package/dist/middleware/inherited-auth.d.ts +5 -5
  35. package/dist/middleware/no-auth.d.ts +2 -2
  36. package/dist/setup/setup.js +3 -2
  37. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  38. package/dist/validation/schemas/skills.d.ts +27 -27
  39. package/dist/validation/schemas.d.ts +2313 -2313
  40. package/package.json +9 -1
@@ -1,4 +1,4 @@
1
- import * as hono0 from "hono";
1
+ import { MiddlewareHandler } from "hono";
2
2
 
3
3
  //#region src/middleware/inherited-auth.d.ts
4
4
 
@@ -17,27 +17,27 @@ declare const inheritedAuth: (meta: {
17
17
  resource?: string;
18
18
  permission?: string;
19
19
  description: string;
20
- }) => hono0.MiddlewareHandler<any, string, {}, Response>;
20
+ }) => MiddlewareHandler;
21
21
  /**
22
22
  * Marker for routes under `/manage/tenants/*` whose auth is handled
23
23
  * by `manageBearerOrSessionAuth()` in createApp.ts.
24
24
  *
25
25
  * No auth check runs at the route level — this is purely for OpenAPI documentation.
26
26
  */
27
- declare const inheritedManageTenantAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
27
+ declare const inheritedManageTenantAuth: () => MiddlewareHandler;
28
28
  /**
29
29
  * Marker for routes under `/run/*` whose auth is handled
30
30
  * by `runApiKeyAuth()` in createApp.ts.
31
31
  *
32
32
  * No auth check runs at the route level — this is purely for OpenAPI documentation.
33
33
  */
34
- declare const inheritedRunApiKeyAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
34
+ declare const inheritedRunApiKeyAuth: () => MiddlewareHandler;
35
35
  /**
36
36
  * Marker for routes under `/work-apps/*` whose auth is handled
37
37
  * by `workAppsAuth()` in createApp.ts.
38
38
  *
39
39
  * No auth check runs at the route level — this is purely for OpenAPI documentation.
40
40
  */
41
- declare const inheritedWorkAppsAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
41
+ declare const inheritedWorkAppsAuth: () => MiddlewareHandler;
42
42
  //#endregion
43
43
  export { inheritedAuth, inheritedManageTenantAuth, inheritedRunApiKeyAuth, inheritedWorkAppsAuth };
@@ -1,6 +1,6 @@
1
- import * as hono3 from "hono";
1
+ import { MiddlewareHandler } from "hono";
2
2
 
3
3
  //#region src/middleware/no-auth.d.ts
4
- declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const noAuth: () => MiddlewareHandler;
5
5
  //#endregion
6
6
  export { noAuth };
@@ -1,4 +1,5 @@
1
1
  import { loadEnvironmentFiles } from "../env.js";
2
+ import { generateCompliantPassword } from "../auth/password-policy.js";
2
3
  import { copyFileSync, existsSync, openSync, writeFileSync } from "node:fs";
3
4
  import { tmpdir } from "node:os";
4
5
  import { join } from "node:path";
@@ -249,8 +250,8 @@ async function generateSecrets() {
249
250
  },
250
251
  {
251
252
  varName: "INKEEP_AGENTS_MANAGE_UI_PASSWORD",
252
- placeholders: ["adminADMIN!@12"],
253
- generate: () => randomBytes(6).toString("base64url")
253
+ placeholders: ["change-me-Pass!@1234"],
254
+ generate: () => generateCompliantPassword()
254
255
  },
255
256
  {
256
257
  varName: "INKEEP_ANON_JWT_SECRET",
@@ -1,10 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod369 from "drizzle-zod";
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>>): drizzle_zod369.BuildSchema<"select", T["_"]["columns"], drizzle_zod369.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_zod369.BuildSchema<"insert", T["_"]["columns"], drizzle_zod369.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
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
  /**
@@ -1,6 +1,6 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_orm_pg_core2304 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod373 from "drizzle-zod";
2
+ import * as drizzle_orm_pg_core742 from "drizzle-orm/pg-core";
3
+ import * as drizzle_zod3 from "drizzle-zod";
4
4
 
5
5
  //#region src/validation/schemas/skills.d.ts
6
6
  declare const SkillIndexSchema: z.ZodInt;
@@ -27,8 +27,8 @@ declare const SkillFileContentInputSchema: z.ZodObject<{
27
27
  filePath: z.ZodString;
28
28
  content: z.ZodString;
29
29
  }, z.core.$strip>;
30
- declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
31
- createdAt: drizzle_orm_pg_core2304.PgColumn<{
30
+ declare const SkillFileSelectSchema: drizzle_zod3.BuildSchema<"select", {
31
+ createdAt: drizzle_orm_pg_core742.PgColumn<{
32
32
  name: "created_at";
33
33
  tableName: "skill_files";
34
34
  dataType: "string";
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
45
45
  identity: undefined;
46
46
  generated: undefined;
47
47
  }, {}, {}>;
48
- updatedAt: drizzle_orm_pg_core2304.PgColumn<{
48
+ updatedAt: drizzle_orm_pg_core742.PgColumn<{
49
49
  name: "updated_at";
50
50
  tableName: "skill_files";
51
51
  dataType: "string";
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
62
62
  identity: undefined;
63
63
  generated: undefined;
64
64
  }, {}, {}>;
65
- skillId: drizzle_orm_pg_core2304.PgColumn<{
65
+ skillId: drizzle_orm_pg_core742.PgColumn<{
66
66
  name: "skill_id";
67
67
  tableName: "skill_files";
68
68
  dataType: "string";
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
81
81
  }, {}, {
82
82
  length: 64;
83
83
  }>;
84
- filePath: drizzle_orm_pg_core2304.PgColumn<{
84
+ filePath: drizzle_orm_pg_core742.PgColumn<{
85
85
  name: "file_path";
86
86
  tableName: "skill_files";
87
87
  dataType: "string";
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
100
100
  }, {}, {
101
101
  length: 1024;
102
102
  }>;
103
- content: drizzle_orm_pg_core2304.PgColumn<{
103
+ content: drizzle_orm_pg_core742.PgColumn<{
104
104
  name: "content";
105
105
  tableName: "skill_files";
106
106
  dataType: "string";
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
117
117
  identity: undefined;
118
118
  generated: undefined;
119
119
  }, {}, {}>;
120
- projectId: drizzle_orm_pg_core2304.PgColumn<{
120
+ projectId: drizzle_orm_pg_core742.PgColumn<{
121
121
  name: "project_id";
122
122
  tableName: "skill_files";
123
123
  dataType: "string";
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
136
136
  }, {}, {
137
137
  length: 256;
138
138
  }>;
139
- tenantId: drizzle_orm_pg_core2304.PgColumn<{
139
+ tenantId: drizzle_orm_pg_core742.PgColumn<{
140
140
  name: "tenant_id";
141
141
  tableName: "skill_files";
142
142
  dataType: "string";
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
155
155
  }, {}, {
156
156
  length: 256;
157
157
  }>;
158
- id: drizzle_orm_pg_core2304.PgColumn<{
158
+ id: drizzle_orm_pg_core742.PgColumn<{
159
159
  name: "id";
160
160
  tableName: "skill_files";
161
161
  dataType: "string";
@@ -174,8 +174,8 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
174
174
  }, {}, {
175
175
  length: 256;
176
176
  }>;
177
- }, drizzle_zod373.BuildRefine<{
178
- createdAt: drizzle_orm_pg_core2304.PgColumn<{
177
+ }, drizzle_zod3.BuildRefine<{
178
+ createdAt: drizzle_orm_pg_core742.PgColumn<{
179
179
  name: "created_at";
180
180
  tableName: "skill_files";
181
181
  dataType: "string";
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
192
192
  identity: undefined;
193
193
  generated: undefined;
194
194
  }, {}, {}>;
195
- updatedAt: drizzle_orm_pg_core2304.PgColumn<{
195
+ updatedAt: drizzle_orm_pg_core742.PgColumn<{
196
196
  name: "updated_at";
197
197
  tableName: "skill_files";
198
198
  dataType: "string";
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
209
209
  identity: undefined;
210
210
  generated: undefined;
211
211
  }, {}, {}>;
212
- skillId: drizzle_orm_pg_core2304.PgColumn<{
212
+ skillId: drizzle_orm_pg_core742.PgColumn<{
213
213
  name: "skill_id";
214
214
  tableName: "skill_files";
215
215
  dataType: "string";
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
228
228
  }, {}, {
229
229
  length: 64;
230
230
  }>;
231
- filePath: drizzle_orm_pg_core2304.PgColumn<{
231
+ filePath: drizzle_orm_pg_core742.PgColumn<{
232
232
  name: "file_path";
233
233
  tableName: "skill_files";
234
234
  dataType: "string";
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
247
247
  }, {}, {
248
248
  length: 1024;
249
249
  }>;
250
- content: drizzle_orm_pg_core2304.PgColumn<{
250
+ content: drizzle_orm_pg_core742.PgColumn<{
251
251
  name: "content";
252
252
  tableName: "skill_files";
253
253
  dataType: "string";
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
264
264
  identity: undefined;
265
265
  generated: undefined;
266
266
  }, {}, {}>;
267
- projectId: drizzle_orm_pg_core2304.PgColumn<{
267
+ projectId: drizzle_orm_pg_core742.PgColumn<{
268
268
  name: "project_id";
269
269
  tableName: "skill_files";
270
270
  dataType: "string";
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
283
283
  }, {}, {
284
284
  length: 256;
285
285
  }>;
286
- tenantId: drizzle_orm_pg_core2304.PgColumn<{
286
+ tenantId: drizzle_orm_pg_core742.PgColumn<{
287
287
  name: "tenant_id";
288
288
  tableName: "skill_files";
289
289
  dataType: "string";
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod373.BuildSchema<"select", {
302
302
  }, {}, {
303
303
  length: 256;
304
304
  }>;
305
- id: drizzle_orm_pg_core2304.PgColumn<{
305
+ id: drizzle_orm_pg_core742.PgColumn<{
306
306
  name: "id";
307
307
  tableName: "skill_files";
308
308
  dataType: "string";
@@ -337,8 +337,8 @@ declare const SkillFileInsertSchema: z.ZodObject<{
337
337
  }>;
338
338
  declare const SkillInsertSchema: z.ZodObject<{
339
339
  name: z.ZodString;
340
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
341
340
  description: z.ZodString;
341
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
342
342
  content: z.ZodString;
343
343
  }, {
344
344
  out: {};
@@ -353,10 +353,10 @@ declare const SkillUpdateSchema: z.ZodObject<{
353
353
  declare const SkillApiSelectSchema: z.ZodObject<{
354
354
  id: z.ZodString;
355
355
  name: z.ZodString;
356
+ description: z.ZodString;
356
357
  createdAt: z.ZodString;
357
358
  updatedAt: z.ZodString;
358
359
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
359
- description: z.ZodString;
360
360
  content: z.ZodString;
361
361
  }, z.core.$strip>;
362
362
  declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
@@ -426,10 +426,10 @@ declare const SkillFileApiUpdateSchema: z.ZodObject<{
426
426
  declare const SkillWithFilesApiSelectSchema: z.ZodObject<{
427
427
  id: z.ZodString;
428
428
  name: z.ZodString;
429
+ description: z.ZodString;
429
430
  createdAt: z.ZodString;
430
431
  updatedAt: z.ZodString;
431
432
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
432
- description: z.ZodString;
433
433
  content: z.ZodString;
434
434
  files: z.ZodArray<z.ZodObject<{
435
435
  id: z.ZodString;
@@ -516,10 +516,10 @@ declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
516
516
  declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
517
517
  id: z.ZodString;
518
518
  name: z.ZodString;
519
+ description: z.ZodString;
519
520
  createdAt: z.ZodString;
520
521
  updatedAt: z.ZodString;
521
522
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
522
- description: z.ZodString;
523
523
  content: z.ZodString;
524
524
  subAgentSkillId: z.ZodString;
525
525
  subAgentId: z.ZodString;
@@ -540,10 +540,10 @@ declare const SkillWithFilesResponse: z.ZodObject<{
540
540
  data: z.ZodObject<{
541
541
  id: z.ZodString;
542
542
  name: z.ZodString;
543
+ description: z.ZodString;
543
544
  createdAt: z.ZodString;
544
545
  updatedAt: z.ZodString;
545
546
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
546
- description: z.ZodString;
547
547
  content: z.ZodString;
548
548
  files: z.ZodArray<z.ZodObject<{
549
549
  id: z.ZodString;
@@ -559,10 +559,10 @@ declare const SkillListResponse: z.ZodObject<{
559
559
  data: z.ZodArray<z.ZodObject<{
560
560
  id: z.ZodString;
561
561
  name: z.ZodString;
562
+ description: z.ZodString;
562
563
  createdAt: z.ZodString;
563
564
  updatedAt: z.ZodString;
564
565
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
565
- description: z.ZodString;
566
566
  content: z.ZodString;
567
567
  }, z.core.$strip>>;
568
568
  pagination: z.ZodObject<{
@@ -587,10 +587,10 @@ declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
587
587
  data: z.ZodArray<z.ZodObject<{
588
588
  id: z.ZodString;
589
589
  name: z.ZodString;
590
+ description: z.ZodString;
590
591
  createdAt: z.ZodString;
591
592
  updatedAt: z.ZodString;
592
593
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
593
- description: z.ZodString;
594
594
  content: z.ZodString;
595
595
  subAgentSkillId: z.ZodString;
596
596
  subAgentId: z.ZodString;