@inkeep/agents-core 0.74.2 → 0.74.3

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 (43) 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/client-exports.d.ts +2 -1
  4. package/dist/client-exports.js +2 -1
  5. package/dist/constants/models.d.ts +3 -0
  6. package/dist/constants/models.js +3 -0
  7. package/dist/constants/otel-attributes.d.ts +4 -0
  8. package/dist/constants/otel-attributes.js +4 -0
  9. package/dist/data-access/manage/agents.d.ts +5 -5
  10. package/dist/data-access/manage/skills.d.ts +3 -3
  11. package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
  12. package/dist/data-access/manage/subAgents.d.ts +3 -3
  13. package/dist/data-access/manage/tools.d.ts +3 -3
  14. package/dist/data-access/manage/triggers.d.ts +2 -2
  15. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  16. package/dist/data-access/runtime/apps.d.ts +9 -9
  17. package/dist/data-access/runtime/conversations.d.ts +12 -12
  18. package/dist/data-access/runtime/events.d.ts +1 -1
  19. package/dist/data-access/runtime/feedback.d.ts +2 -2
  20. package/dist/data-access/runtime/messages.d.ts +21 -21
  21. package/dist/data-access/runtime/tasks.d.ts +2 -2
  22. package/dist/db/manage/manage-schema.d.ts +484 -484
  23. package/dist/db/runtime/runtime-schema.d.ts +451 -451
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +2 -2
  26. package/dist/utils/cache-debug-query.d.ts +43 -0
  27. package/dist/utils/cache-debug-query.js +70 -0
  28. package/dist/utils/cache-debug-walk.d.ts +36 -0
  29. package/dist/utils/cache-debug-walk.js +91 -0
  30. package/dist/utils/cache-state.d.ts +36 -0
  31. package/dist/utils/cache-state.js +33 -0
  32. package/dist/utils/error.d.ts +51 -51
  33. package/dist/utils/index.d.ts +2 -2
  34. package/dist/utils/index.js +2 -2
  35. package/dist/utils/model-factory.d.ts +7 -0
  36. package/dist/utils/model-factory.js +18 -2
  37. package/dist/utils/token-estimator.d.ts +1 -0
  38. package/dist/utils/usage-cost-middleware.d.ts +3 -1
  39. package/dist/utils/usage-cost-middleware.js +70 -12
  40. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  41. package/dist/validation/schemas/skills.d.ts +34 -34
  42. package/dist/validation/schemas.d.ts +1930 -1930
  43. package/package.json +3 -2
@@ -1,17 +1,27 @@
1
1
  import { SPAN_KEYS } from "../constants/otel-attributes.js";
2
2
  import { GATEWAY_ROUTABLE_PROVIDERS_SET } from "../constants/models.js";
3
3
  import { getLogger } from "./logger.js";
4
+ import { createHash } from "node:crypto";
4
5
  import { trace } from "@opentelemetry/api";
5
6
 
6
7
  //#region src/utils/usage-cost-middleware.ts
7
8
  const logger = getLogger("usage-cost-middleware");
8
9
  function extractUsageTokens(usage) {
10
+ const inputTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.total ?? 0 : usage?.inputTokens ?? 0;
11
+ const outputTokens = typeof usage?.outputTokens === "object" ? usage.outputTokens.total ?? 0 : usage?.outputTokens ?? 0;
12
+ const reasoningTokens = typeof usage?.outputTokens === "object" ? usage.outputTokens.reasoning : void 0;
13
+ let cachedReadTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheRead : void 0;
14
+ const cachedWriteTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheWrite : void 0;
15
+ if (cachedReadTokens === void 0) {
16
+ const geminiCacheRead = usage?.inputTokenDetails?.cacheReadTokens ?? usage?.cachedInputTokens;
17
+ if (typeof geminiCacheRead === "number") cachedReadTokens = geminiCacheRead;
18
+ }
9
19
  return {
10
- inputTokens: typeof usage?.inputTokens === "object" ? usage.inputTokens.total ?? 0 : usage?.inputTokens ?? 0,
11
- outputTokens: typeof usage?.outputTokens === "object" ? usage.outputTokens.total ?? 0 : usage?.outputTokens ?? 0,
12
- reasoningTokens: typeof usage?.outputTokens === "object" ? usage.outputTokens.reasoning : void 0,
13
- cachedReadTokens: typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheRead : void 0,
14
- cachedWriteTokens: typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheWrite : void 0
20
+ inputTokens,
21
+ outputTokens,
22
+ reasoningTokens,
23
+ cachedReadTokens,
24
+ cachedWriteTokens
15
25
  };
16
26
  }
17
27
  function extractGatewayCost(providerMetadata) {
@@ -43,29 +53,77 @@ function setGatewayAttributesOnSpan(providerMetadata) {
43
53
  if (routing?.resolvedProvider) activeSpan.setAttribute(SPAN_KEYS.GEN_AI_REQUEST_PROVIDER, routing.resolvedProvider);
44
54
  }
45
55
  }
56
+ function countCacheMarkers(prompt, callProviderOptions) {
57
+ let count = 0;
58
+ const caching = callProviderOptions?.gateway?.caching;
59
+ if (caching && caching !== "off" && caching !== "disabled") count++;
60
+ for (const msg of prompt) if (msg.providerOptions?.anthropic?.cacheControl) count++;
61
+ return Math.min(count, 4);
62
+ }
63
+ function computePrefixSignature(prompt, tools) {
64
+ const systemParts = [];
65
+ for (const msg of prompt) {
66
+ if (msg.role !== "system") continue;
67
+ if (typeof msg.content === "string") systemParts.push(msg.content);
68
+ else if (Array.isArray(msg.content)) {
69
+ for (const part of msg.content) if (typeof part === "string") systemParts.push(part);
70
+ else if (part?.text) systemParts.push(part.text);
71
+ }
72
+ }
73
+ const toolParts = (tools ?? []).map((tool) => [
74
+ tool.name ?? "",
75
+ tool.description ?? "",
76
+ tool.parameters ? JSON.stringify(tool.parameters) : ""
77
+ ]);
78
+ return createHash("sha256").update(JSON.stringify([systemParts, toolParts])).digest("hex").slice(0, 10);
79
+ }
80
+ function setCacheAttributesOnSpan(params, usage) {
81
+ const activeSpan = trace.getActiveSpan();
82
+ if (!activeSpan) return;
83
+ const { cachedReadTokens, cachedWriteTokens } = extractUsageTokens(usage);
84
+ activeSpan.setAttribute(SPAN_KEYS.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, typeof cachedReadTokens === "number" ? cachedReadTokens : 0);
85
+ activeSpan.setAttribute(SPAN_KEYS.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, typeof cachedWriteTokens === "number" ? cachedWriteTokens : 0);
86
+ const prompt = params.prompt ?? [];
87
+ const markerCount = countCacheMarkers(prompt, params.providerOptions);
88
+ activeSpan.setAttribute(SPAN_KEYS.CACHE_INTENT_MARKER_COUNT, markerCount);
89
+ const prefixSignature = computePrefixSignature(prompt, params.tools);
90
+ activeSpan.setAttribute(SPAN_KEYS.CACHE_INTENT_PREFIX_SIGNATURE, prefixSignature);
91
+ }
46
92
  const gatewayCostMiddleware = {
47
93
  specificationVersion: "v3",
48
94
  overrideModelId({ model }) {
49
95
  return normalizeModelId(model.modelId);
50
96
  },
51
- async wrapGenerate({ doGenerate }) {
97
+ async wrapGenerate({ doGenerate, params }) {
52
98
  const result = await doGenerate();
53
99
  try {
54
100
  setGatewayAttributesOnSpan(result.providerMetadata);
55
101
  } catch (error) {
56
102
  logger.warn({ error }, "Failed to extract gateway cost in wrapGenerate");
57
103
  }
104
+ try {
105
+ setCacheAttributesOnSpan(params, result.usage);
106
+ } catch (error) {
107
+ logger.warn({ error }, "Failed to set cache attributes in wrapGenerate");
108
+ }
58
109
  return result;
59
110
  },
60
- async wrapStream({ doStream }) {
111
+ async wrapStream({ doStream, params }) {
61
112
  const { stream, ...rest } = await doStream();
62
113
  return {
63
114
  stream: stream.pipeThrough(new TransformStream({ transform(chunk, controller) {
64
115
  controller.enqueue(chunk);
65
- if (chunk.type === "finish") try {
66
- setGatewayAttributesOnSpan(chunk.providerMetadata);
67
- } catch (error) {
68
- logger.warn({ error }, "Failed to extract gateway cost in wrapStream");
116
+ if (chunk.type === "finish") {
117
+ try {
118
+ setGatewayAttributesOnSpan(chunk.providerMetadata);
119
+ } catch (error) {
120
+ logger.warn({ error }, "Failed to extract gateway cost in wrapStream");
121
+ }
122
+ try {
123
+ setCacheAttributesOnSpan(params, chunk.usage);
124
+ } catch (error) {
125
+ logger.warn({ error }, "Failed to set cache attributes in wrapStream");
126
+ }
69
127
  }
70
128
  } })),
71
129
  ...rest
@@ -74,4 +132,4 @@ const gatewayCostMiddleware = {
74
132
  };
75
133
 
76
134
  //#endregion
77
- export { extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
135
+ export { computePrefixSignature, countCacheMarkers, extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
@@ -1,10 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod385 from "drizzle-zod";
2
+ import * as drizzle_zod15 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_zod385.BuildSchema<"select", T["_"]["columns"], drizzle_zod385.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_zod385.BuildSchema<"insert", T["_"]["columns"], drizzle_zod385.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_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.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_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.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_core2053 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod389 from "drizzle-zod";
2
+ import * as drizzle_orm_pg_core1973 from "drizzle-orm/pg-core";
3
+ import * as drizzle_zod405 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_zod389.BuildSchema<"select", {
31
- createdAt: drizzle_orm_pg_core2053.PgColumn<{
30
+ declare const SkillFileSelectSchema: drizzle_zod405.BuildSchema<"select", {
31
+ createdAt: drizzle_orm_pg_core1973.PgColumn<{
32
32
  name: "created_at";
33
33
  tableName: "skill_files";
34
34
  dataType: "string";
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
45
45
  identity: undefined;
46
46
  generated: undefined;
47
47
  }, {}, {}>;
48
- updatedAt: drizzle_orm_pg_core2053.PgColumn<{
48
+ updatedAt: drizzle_orm_pg_core1973.PgColumn<{
49
49
  name: "updated_at";
50
50
  tableName: "skill_files";
51
51
  dataType: "string";
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
62
62
  identity: undefined;
63
63
  generated: undefined;
64
64
  }, {}, {}>;
65
- skillId: drizzle_orm_pg_core2053.PgColumn<{
65
+ skillId: drizzle_orm_pg_core1973.PgColumn<{
66
66
  name: "skill_id";
67
67
  tableName: "skill_files";
68
68
  dataType: "string";
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
81
81
  }, {}, {
82
82
  length: 64;
83
83
  }>;
84
- filePath: drizzle_orm_pg_core2053.PgColumn<{
84
+ filePath: drizzle_orm_pg_core1973.PgColumn<{
85
85
  name: "file_path";
86
86
  tableName: "skill_files";
87
87
  dataType: "string";
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
100
100
  }, {}, {
101
101
  length: 1024;
102
102
  }>;
103
- content: drizzle_orm_pg_core2053.PgColumn<{
103
+ content: drizzle_orm_pg_core1973.PgColumn<{
104
104
  name: "content";
105
105
  tableName: "skill_files";
106
106
  dataType: "string";
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
117
117
  identity: undefined;
118
118
  generated: undefined;
119
119
  }, {}, {}>;
120
- projectId: drizzle_orm_pg_core2053.PgColumn<{
120
+ projectId: drizzle_orm_pg_core1973.PgColumn<{
121
121
  name: "project_id";
122
122
  tableName: "skill_files";
123
123
  dataType: "string";
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
136
136
  }, {}, {
137
137
  length: 256;
138
138
  }>;
139
- tenantId: drizzle_orm_pg_core2053.PgColumn<{
139
+ tenantId: drizzle_orm_pg_core1973.PgColumn<{
140
140
  name: "tenant_id";
141
141
  tableName: "skill_files";
142
142
  dataType: "string";
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
155
155
  }, {}, {
156
156
  length: 256;
157
157
  }>;
158
- id: drizzle_orm_pg_core2053.PgColumn<{
158
+ id: drizzle_orm_pg_core1973.PgColumn<{
159
159
  name: "id";
160
160
  tableName: "skill_files";
161
161
  dataType: "string";
@@ -174,8 +174,8 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
174
174
  }, {}, {
175
175
  length: 256;
176
176
  }>;
177
- }, drizzle_zod389.BuildRefine<{
178
- createdAt: drizzle_orm_pg_core2053.PgColumn<{
177
+ }, drizzle_zod405.BuildRefine<{
178
+ createdAt: drizzle_orm_pg_core1973.PgColumn<{
179
179
  name: "created_at";
180
180
  tableName: "skill_files";
181
181
  dataType: "string";
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
192
192
  identity: undefined;
193
193
  generated: undefined;
194
194
  }, {}, {}>;
195
- updatedAt: drizzle_orm_pg_core2053.PgColumn<{
195
+ updatedAt: drizzle_orm_pg_core1973.PgColumn<{
196
196
  name: "updated_at";
197
197
  tableName: "skill_files";
198
198
  dataType: "string";
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
209
209
  identity: undefined;
210
210
  generated: undefined;
211
211
  }, {}, {}>;
212
- skillId: drizzle_orm_pg_core2053.PgColumn<{
212
+ skillId: drizzle_orm_pg_core1973.PgColumn<{
213
213
  name: "skill_id";
214
214
  tableName: "skill_files";
215
215
  dataType: "string";
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
228
228
  }, {}, {
229
229
  length: 64;
230
230
  }>;
231
- filePath: drizzle_orm_pg_core2053.PgColumn<{
231
+ filePath: drizzle_orm_pg_core1973.PgColumn<{
232
232
  name: "file_path";
233
233
  tableName: "skill_files";
234
234
  dataType: "string";
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
247
247
  }, {}, {
248
248
  length: 1024;
249
249
  }>;
250
- content: drizzle_orm_pg_core2053.PgColumn<{
250
+ content: drizzle_orm_pg_core1973.PgColumn<{
251
251
  name: "content";
252
252
  tableName: "skill_files";
253
253
  dataType: "string";
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
264
264
  identity: undefined;
265
265
  generated: undefined;
266
266
  }, {}, {}>;
267
- projectId: drizzle_orm_pg_core2053.PgColumn<{
267
+ projectId: drizzle_orm_pg_core1973.PgColumn<{
268
268
  name: "project_id";
269
269
  tableName: "skill_files";
270
270
  dataType: "string";
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
283
283
  }, {}, {
284
284
  length: 256;
285
285
  }>;
286
- tenantId: drizzle_orm_pg_core2053.PgColumn<{
286
+ tenantId: drizzle_orm_pg_core1973.PgColumn<{
287
287
  name: "tenant_id";
288
288
  tableName: "skill_files";
289
289
  dataType: "string";
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
302
302
  }, {}, {
303
303
  length: 256;
304
304
  }>;
305
- id: drizzle_orm_pg_core2053.PgColumn<{
305
+ id: drizzle_orm_pg_core1973.PgColumn<{
306
306
  name: "id";
307
307
  tableName: "skill_files";
308
308
  dataType: "string";
@@ -355,9 +355,9 @@ declare const SkillApiSelectSchema: z.ZodObject<{
355
355
  name: z.ZodString;
356
356
  id: z.ZodString;
357
357
  createdAt: z.ZodString;
358
+ updatedAt: z.ZodString;
358
359
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
359
360
  content: z.ZodString;
360
- updatedAt: z.ZodString;
361
361
  }, z.core.$strip>;
362
362
  declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
363
363
  files: z.ZodArray<z.ZodObject<{
@@ -411,8 +411,8 @@ declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
411
411
  declare const SkillFileApiSelectSchema: z.ZodObject<{
412
412
  id: z.ZodString;
413
413
  createdAt: z.ZodString;
414
- content: z.ZodString;
415
414
  updatedAt: z.ZodString;
415
+ content: z.ZodString;
416
416
  skillId: z.ZodString;
417
417
  filePath: z.ZodString;
418
418
  }, z.core.$strip>;
@@ -428,14 +428,14 @@ declare const SkillWithFilesApiSelectSchema: z.ZodObject<{
428
428
  name: z.ZodString;
429
429
  id: z.ZodString;
430
430
  createdAt: z.ZodString;
431
+ updatedAt: z.ZodString;
431
432
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
432
433
  content: z.ZodString;
433
- updatedAt: z.ZodString;
434
434
  files: z.ZodArray<z.ZodObject<{
435
435
  id: z.ZodString;
436
436
  createdAt: z.ZodString;
437
- content: z.ZodString;
438
437
  updatedAt: z.ZodString;
438
+ content: z.ZodString;
439
439
  skillId: z.ZodString;
440
440
  filePath: z.ZodString;
441
441
  }, z.core.$strip>>;
@@ -490,16 +490,16 @@ declare const SubAgentSkillApiSelectSchema: z.ZodObject<{
490
490
  id: z.ZodString;
491
491
  createdAt: z.ZodString;
492
492
  updatedAt: z.ZodString;
493
+ skillId: z.ZodString;
493
494
  index: z.ZodInt;
494
495
  alwaysLoaded: z.ZodBoolean;
495
- skillId: z.ZodString;
496
496
  }, z.core.$strip>;
497
497
  declare const SubAgentSkillApiInsertSchema: z.ZodObject<{
498
498
  agentId: z.ZodString;
499
499
  subAgentId: z.ZodString;
500
+ skillId: z.ZodString;
500
501
  index: z.ZodInt;
501
502
  alwaysLoaded: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
502
- skillId: z.ZodString;
503
503
  }, {
504
504
  out: {};
505
505
  in: {};
@@ -509,18 +509,18 @@ declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
509
509
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
510
510
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
511
511
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
512
+ skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
512
513
  index: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
513
514
  alwaysLoaded: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>>;
514
- skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
515
515
  }, z.core.$strip>;
516
516
  declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
517
517
  description: z.ZodString;
518
518
  name: z.ZodString;
519
519
  id: z.ZodString;
520
520
  createdAt: z.ZodString;
521
+ updatedAt: z.ZodString;
521
522
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
522
523
  content: z.ZodString;
523
- updatedAt: z.ZodString;
524
524
  subAgentSkillId: z.ZodString;
525
525
  subAgentId: z.ZodString;
526
526
  index: z.ZodInt;
@@ -530,8 +530,8 @@ declare const SkillFileResponse: z.ZodObject<{
530
530
  data: z.ZodObject<{
531
531
  id: z.ZodString;
532
532
  createdAt: z.ZodString;
533
- content: z.ZodString;
534
533
  updatedAt: z.ZodString;
534
+ content: z.ZodString;
535
535
  skillId: z.ZodString;
536
536
  filePath: z.ZodString;
537
537
  }, z.core.$strip>;
@@ -542,14 +542,14 @@ declare const SkillWithFilesResponse: z.ZodObject<{
542
542
  name: z.ZodString;
543
543
  id: z.ZodString;
544
544
  createdAt: z.ZodString;
545
+ updatedAt: z.ZodString;
545
546
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
546
547
  content: z.ZodString;
547
- updatedAt: z.ZodString;
548
548
  files: z.ZodArray<z.ZodObject<{
549
549
  id: z.ZodString;
550
550
  createdAt: z.ZodString;
551
- content: z.ZodString;
552
551
  updatedAt: z.ZodString;
552
+ content: z.ZodString;
553
553
  skillId: z.ZodString;
554
554
  filePath: z.ZodString;
555
555
  }, z.core.$strip>>;
@@ -561,9 +561,9 @@ declare const SkillListResponse: z.ZodObject<{
561
561
  name: z.ZodString;
562
562
  id: z.ZodString;
563
563
  createdAt: z.ZodString;
564
+ updatedAt: z.ZodString;
564
565
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
565
566
  content: z.ZodString;
566
- updatedAt: z.ZodString;
567
567
  }, z.core.$strip>>;
568
568
  pagination: z.ZodObject<{
569
569
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -578,9 +578,9 @@ declare const SubAgentSkillResponse: z.ZodObject<{
578
578
  id: z.ZodString;
579
579
  createdAt: z.ZodString;
580
580
  updatedAt: z.ZodString;
581
+ skillId: z.ZodString;
581
582
  index: z.ZodInt;
582
583
  alwaysLoaded: z.ZodBoolean;
583
- skillId: z.ZodString;
584
584
  }, z.core.$strip>;
585
585
  }, z.core.$strip>;
586
586
  declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
@@ -589,9 +589,9 @@ declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
589
589
  name: z.ZodString;
590
590
  id: z.ZodString;
591
591
  createdAt: z.ZodString;
592
+ updatedAt: z.ZodString;
592
593
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
593
594
  content: z.ZodString;
594
- updatedAt: z.ZodString;
595
595
  subAgentSkillId: z.ZodString;
596
596
  subAgentId: z.ZodString;
597
597
  index: z.ZodInt;