@inkeep/agents-core 0.69.0 → 0.70.0

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 (36) 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/permissions.d.ts +9 -9
  4. package/dist/constants/allowed-file-formats.d.ts +6 -1
  5. package/dist/constants/allowed-file-formats.js +256 -24
  6. package/dist/constants/index.d.ts +2 -2
  7. package/dist/constants/index.js +2 -2
  8. package/dist/constants/signoz-queries.d.ts +1 -0
  9. package/dist/constants/signoz-queries.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +20 -20
  11. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/functionTools.d.ts +16 -16
  15. package/dist/data-access/manage/skills.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  19. package/dist/data-access/manage/subAgents.d.ts +12 -12
  20. package/dist/data-access/manage/tools.d.ts +33 -33
  21. package/dist/data-access/manage/triggers.d.ts +1 -1
  22. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  23. package/dist/data-access/runtime/apps.d.ts +8 -8
  24. package/dist/data-access/runtime/conversations.d.ts +16 -16
  25. package/dist/data-access/runtime/feedback.d.ts +4 -4
  26. package/dist/data-access/runtime/messages.d.ts +15 -15
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  28. package/dist/data-access/runtime/tasks.d.ts +5 -5
  29. package/dist/db/manage/manage-schema.d.ts +358 -358
  30. package/dist/db/runtime/runtime-schema.d.ts +415 -415
  31. package/dist/middleware/no-auth.d.ts +2 -2
  32. package/dist/utils/error.d.ts +51 -51
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/schemas/skills.d.ts +58 -58
  35. package/dist/validation/schemas.d.ts +2263 -2263
  36. package/package.json +1 -1
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "organization" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
12
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "organization" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
19
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "organization" | "project" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
26
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -1,11 +1,16 @@
1
1
  //#region src/constants/allowed-file-formats.d.ts
2
2
  declare const ALLOWED_IMAGE_MIME_TYPES: Set<string>;
3
3
  declare const ALLOWED_TEXT_DOCUMENT_MIME_TYPES: Set<string>;
4
+ declare const ZIP_DOCUMENT_EXTENSIONS: string[];
5
+ declare const ZIP_DOCUMENT_EXTENSIONS_LABEL: string;
6
+ declare const ALLOWED_OFFICE_DOCUMENT_MIME_TYPES: Set<string>;
4
7
  declare const DATA_URI_IMAGE_BASE64_REGEX: RegExp;
5
8
  declare const DATA_URI_PDF_BASE64_REGEX: RegExp;
6
9
  declare const DATA_URI_TEXT_BASE64_REGEX: RegExp;
10
+ declare const DATA_URI_OFFICE_BASE64_REGEX: RegExp;
7
11
  declare function normalizeMimeType(mimeType: string): string;
8
12
  declare function getExtensionFromMimeType(mimeType?: string): string;
13
+ declare function isOfficeDocumentMimeType(mimeType?: string): boolean;
9
14
  declare function getMimeTypeFromExtension(extension?: string): string;
10
15
  //#endregion
11
- export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
16
+ export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType };
@@ -4,50 +4,278 @@ const ALLOWED_IMAGE_MIME_TYPES = new Set([
4
4
  "image/jpeg",
5
5
  "image/webp"
6
6
  ]);
7
- const ALLOWED_TEXT_DOCUMENT_MIME_TYPES = new Set([
8
- "text/plain",
9
- "text/markdown",
10
- "text/html",
11
- "text/csv",
12
- "text/x-log",
13
- "application/json"
14
- ]);
15
- const FILE_MIME_TYPE_TO_EXTENSION = {
16
- "image/png": "png",
17
- "image/jpeg": "jpg",
18
- "image/jpg": "jpg",
19
- "image/webp": "webp",
20
- "application/pdf": "pdf",
7
+ const TEXT_DOCUMENT_MIME_TYPE_TO_EXTENSION = {
21
8
  "text/plain": "txt",
22
9
  "text/markdown": "md",
23
10
  "text/html": "html",
24
11
  "text/csv": "csv",
25
12
  "text/x-log": "log",
26
- "application/json": "json"
13
+ "application/json": "json",
14
+ "application/javascript": "js",
15
+ "application/typescript": "ts",
16
+ "text/xml": "xml",
17
+ "text/x-shellscript": "sh",
18
+ "text/x-rst": "rst",
19
+ "text/x-makefile": "makefile",
20
+ "text/x-lisp": "lisp",
21
+ "text/x-asm": "asm",
22
+ "text/vbscript": "vbs",
23
+ "text/css": "css",
24
+ "message/rfc822": "eml",
25
+ "application/x-sql": "sql",
26
+ "application/x-scala": "scala",
27
+ "application/x-rust": "rs",
28
+ "application/x-powershell": "ps1",
29
+ "text/x-diff": "diff",
30
+ "text/x-patch": "patch",
31
+ "application/x-patch": "patch",
32
+ "text/x-java": "java",
33
+ "text/x-script.python": "py",
34
+ "text/x-python": "py",
35
+ "text/x-c": "c",
36
+ "text/x-c++": "cpp",
37
+ "text/x-golang": "go",
38
+ "text/x-php": "php",
39
+ "application/x-php": "php",
40
+ "application/x-httpd-php": "php",
41
+ "application/x-httpd-php-source": "php",
42
+ "text/x-ruby": "rb",
43
+ "text/x-sh": "sh",
44
+ "text/x-bash": "bash",
45
+ "application/x-bash": "bash",
46
+ "text/x-zsh": "zsh",
47
+ "text/x-tex": "tex",
48
+ "text/x-csharp": "cs",
49
+ "text/x-typescript": "ts",
50
+ "text/javascript": "js",
51
+ "text/x-go": "go",
52
+ "text/x-rust": "rs",
53
+ "text/x-scala": "scala",
54
+ "text/x-kotlin": "kt",
55
+ "text/x-swift": "swift",
56
+ "text/x-lua": "lua",
57
+ "text/x-r": "r",
58
+ "text/x-R": "r",
59
+ "text/x-julia": "jl",
60
+ "text/x-perl": "pl",
61
+ "text/x-objectivec": "m",
62
+ "text/x-objectivec++": "mm",
63
+ "text/x-erlang": "erl",
64
+ "text/x-elixir": "ex",
65
+ "text/x-haskell": "hs",
66
+ "text/x-clojure": "clj",
67
+ "text/x-groovy": "groovy",
68
+ "text/x-dart": "dart",
69
+ "text/x-awk": "awk",
70
+ "application/x-awk": "awk",
71
+ "text/jsx": "jsx",
72
+ "text/tsx": "tsx",
73
+ "text/x-handlebars": "hbs",
74
+ "text/x-mustache": "mustache",
75
+ "text/x-ejs": "ejs",
76
+ "text/x-jinja2": "jinja2",
77
+ "text/x-liquid": "liquid",
78
+ "text/x-erb": "erb",
79
+ "text/x-twig": "twig",
80
+ "text/x-pug": "pug",
81
+ "text/x-jade": "jade",
82
+ "text/x-tmpl": "tmpl",
83
+ "text/x-cmake": "cmake",
84
+ "text/x-dockerfile": "dockerfile",
85
+ "text/x-gradle": "gradle",
86
+ "text/x-ini": "ini",
87
+ "text/x-properties": "properties",
88
+ "text/x-protobuf": "proto",
89
+ "application/x-protobuf": "proto",
90
+ "text/x-sql": "sql",
91
+ "text/x-sass": "sass",
92
+ "text/x-scss": "scss",
93
+ "text/x-less": "less",
94
+ "text/x-hcl": "hcl",
95
+ "text/x-terraform": "tf",
96
+ "application/x-terraform": "tf",
97
+ "text/x-toml": "toml",
98
+ "application/x-toml": "toml",
99
+ "application/graphql": "graphql",
100
+ "application/x-graphql": "graphql",
101
+ "text/x-graphql": "graphql",
102
+ "application/x-ndjson": "ndjson",
103
+ "application/json5": "json5",
104
+ "application/x-json5": "json5",
105
+ "text/x-yaml": "yaml",
106
+ "application/toml": "toml",
107
+ "application/x-yaml": "yaml",
108
+ "application/yaml": "yaml",
109
+ "text/x-astro": "astro",
110
+ "text/srt": "srt",
111
+ "application/x-subrip": "srt",
112
+ "text/x-subrip": "srt",
113
+ "text/vtt": "vtt",
114
+ "text/x-vcard": "vcf",
115
+ "text/calendar": "ics"
27
116
  };
28
- const FILE_EXTENSION_TO_MIME_TYPE = {
29
- png: "image/png",
30
- jpg: "image/jpeg",
31
- jpeg: "image/jpeg",
32
- webp: "image/webp",
33
- pdf: "application/pdf",
117
+ const TEXT_DOCUMENT_EXTENSION_TO_MIME_TYPE = {
34
118
  txt: "text/plain",
35
119
  text: "text/plain",
120
+ bat: "text/plain",
121
+ cfg: "text/plain",
122
+ conf: "text/plain",
123
+ def: "text/plain",
124
+ dic: "text/plain",
125
+ in: "text/plain",
126
+ list: "text/plain",
36
127
  md: "text/markdown",
37
128
  markdown: "text/markdown",
38
129
  html: "text/html",
39
130
  htm: "text/html",
40
131
  csv: "text/csv",
41
132
  log: "text/x-log",
42
- json: "application/json"
133
+ json: "application/json",
134
+ js: "application/javascript",
135
+ mjs: "application/javascript",
136
+ ts: "application/typescript",
137
+ jsx: "text/jsx",
138
+ tsx: "text/tsx",
139
+ xml: "text/xml",
140
+ sh: "text/x-sh",
141
+ bash: "text/x-bash",
142
+ zsh: "text/x-zsh",
143
+ ksh: "text/x-shellscript",
144
+ rst: "text/x-rst",
145
+ makefile: "text/x-makefile",
146
+ mk: "text/x-makefile",
147
+ lisp: "text/x-lisp",
148
+ asm: "text/x-asm",
149
+ s: "text/x-asm",
150
+ vbs: "text/vbscript",
151
+ css: "text/css",
152
+ eml: "message/rfc822",
153
+ mht: "message/rfc822",
154
+ mhtml: "message/rfc822",
155
+ mime: "message/rfc822",
156
+ nws: "message/rfc822",
157
+ sql: "text/x-sql",
158
+ scala: "text/x-scala",
159
+ rs: "text/x-rust",
160
+ ps1: "application/x-powershell",
161
+ diff: "text/x-diff",
162
+ patch: "text/x-patch",
163
+ java: "text/x-java",
164
+ py: "text/x-python",
165
+ c: "text/x-c",
166
+ h: "text/x-c",
167
+ cpp: "text/x-c++",
168
+ cc: "text/x-c++",
169
+ cxx: "text/x-c++",
170
+ hh: "text/x-c++",
171
+ go: "text/x-go",
172
+ php: "text/x-php",
173
+ rb: "text/x-ruby",
174
+ tex: "text/x-tex",
175
+ cs: "text/x-csharp",
176
+ kt: "text/x-kotlin",
177
+ swift: "text/x-swift",
178
+ lua: "text/x-lua",
179
+ r: "text/x-r",
180
+ jl: "text/x-julia",
181
+ pl: "text/x-perl",
182
+ m: "text/x-objectivec",
183
+ mm: "text/x-objectivec++",
184
+ erl: "text/x-erlang",
185
+ ex: "text/x-elixir",
186
+ hs: "text/x-haskell",
187
+ clj: "text/x-clojure",
188
+ groovy: "text/x-groovy",
189
+ dart: "text/x-dart",
190
+ awk: "text/x-awk",
191
+ hbs: "text/x-handlebars",
192
+ mustache: "text/x-mustache",
193
+ ejs: "text/x-ejs",
194
+ jinja: "text/x-jinja2",
195
+ jinja2: "text/x-jinja2",
196
+ liquid: "text/x-liquid",
197
+ erb: "text/x-erb",
198
+ twig: "text/x-twig",
199
+ pug: "text/x-pug",
200
+ jade: "text/x-jade",
201
+ tmpl: "text/x-tmpl",
202
+ cmake: "text/x-cmake",
203
+ dockerfile: "text/x-dockerfile",
204
+ gradle: "text/x-gradle",
205
+ ini: "text/x-ini",
206
+ properties: "text/x-properties",
207
+ proto: "text/x-protobuf",
208
+ sass: "text/x-sass",
209
+ scss: "text/x-scss",
210
+ less: "text/x-less",
211
+ hcl: "text/x-hcl",
212
+ tf: "text/x-terraform",
213
+ toml: "application/toml",
214
+ graphql: "application/graphql",
215
+ gql: "application/graphql",
216
+ ndjson: "application/x-ndjson",
217
+ json5: "application/json5",
218
+ yaml: "application/yaml",
219
+ yml: "application/yaml",
220
+ astro: "text/x-astro",
221
+ srt: "text/srt",
222
+ vtt: "text/vtt",
223
+ vcf: "text/x-vcard",
224
+ ics: "text/calendar",
225
+ ifb: "text/calendar"
226
+ };
227
+ const ALLOWED_TEXT_DOCUMENT_MIME_TYPES = new Set(Object.keys(TEXT_DOCUMENT_MIME_TYPE_TO_EXTENSION));
228
+ const ZIP_DOCUMENT_MIME_TYPE_TO_EXTENSION = {
229
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
230
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
231
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
232
+ "application/vnd.oasis.opendocument.text": "odt",
233
+ "application/vnd.oasis.opendocument.spreadsheet": "ods",
234
+ "application/vnd.oasis.opendocument.presentation": "odp",
235
+ "application/vnd.apple.pages": "pages",
236
+ "application/vnd.apple.numbers": "numbers",
237
+ "application/vnd.apple.keynote": "key"
238
+ };
239
+ const ZIP_DOCUMENT_EXTENSIONS = Object.values(ZIP_DOCUMENT_MIME_TYPE_TO_EXTENSION);
240
+ const ZIP_DOCUMENT_EXTENSIONS_LABEL = ZIP_DOCUMENT_EXTENSIONS.map((ext) => `.${ext}`).join(", ");
241
+ const ALLOWED_OFFICE_DOCUMENT_MIME_TYPES = new Set(Object.keys(ZIP_DOCUMENT_MIME_TYPE_TO_EXTENSION));
242
+ const FILE_MIME_TYPE_TO_EXTENSION = {
243
+ "image/png": "png",
244
+ "image/jpeg": "jpg",
245
+ "image/jpg": "jpg",
246
+ "image/webp": "webp",
247
+ "application/pdf": "pdf",
248
+ ...TEXT_DOCUMENT_MIME_TYPE_TO_EXTENSION,
249
+ ...ZIP_DOCUMENT_MIME_TYPE_TO_EXTENSION
250
+ };
251
+ const FILE_EXTENSION_TO_MIME_TYPE = {
252
+ png: "image/png",
253
+ jpg: "image/jpeg",
254
+ jpeg: "image/jpeg",
255
+ webp: "image/webp",
256
+ pdf: "application/pdf",
257
+ ...TEXT_DOCUMENT_EXTENSION_TO_MIME_TYPE,
258
+ docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
259
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
260
+ pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
261
+ odt: "application/vnd.oasis.opendocument.text",
262
+ ods: "application/vnd.oasis.opendocument.spreadsheet",
263
+ odp: "application/vnd.oasis.opendocument.presentation",
264
+ pages: "application/vnd.apple.pages",
265
+ numbers: "application/vnd.apple.numbers",
266
+ key: "application/vnd.apple.keynote"
43
267
  };
44
268
  const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
45
269
  const subtype = mime.replace("image/", "");
46
270
  return subtype === "jpeg" ? ["jpeg", "jpg"] : [subtype];
47
271
  });
272
+ const escapeForRegex = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
273
+ const officeDataUriMimePattern = Object.keys(ZIP_DOCUMENT_MIME_TYPE_TO_EXTENSION).map(escapeForRegex).join("|");
274
+ const textDocumentDataUriMimePattern = Array.from(ALLOWED_TEXT_DOCUMENT_MIME_TYPES).map(escapeForRegex).join("|");
48
275
  const DATA_URI_IMAGE_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:image/(${dataUriSubtypes.join("|")});base64,`);
49
276
  const DATA_URI_PDF_BASE64_REGEX = /^data:application\/pdf;base64,/;
50
- const DATA_URI_TEXT_BASE64_REGEX = /^data:(text\/(plain|markdown|html|csv|x-log)|application\/json);base64,/;
277
+ const DATA_URI_TEXT_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:(?:${textDocumentDataUriMimePattern});base64,`);
278
+ const DATA_URI_OFFICE_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:(?:${officeDataUriMimePattern});base64,`);
51
279
  function normalizeMimeType(mimeType) {
52
280
  return mimeType.split(";")[0]?.trim().toLowerCase() || "";
53
281
  }
@@ -56,10 +284,14 @@ function getExtensionFromMimeType(mimeType) {
56
284
  const normalizedMimeType = normalizeMimeType(mimeType);
57
285
  return FILE_MIME_TYPE_TO_EXTENSION[normalizedMimeType] || normalizedMimeType.split("/")[1] || "bin";
58
286
  }
287
+ function isOfficeDocumentMimeType(mimeType) {
288
+ if (!mimeType) return false;
289
+ return ALLOWED_OFFICE_DOCUMENT_MIME_TYPES.has(normalizeMimeType(mimeType));
290
+ }
59
291
  function getMimeTypeFromExtension(extension) {
60
292
  if (!extension) return "application/octet-stream";
61
293
  return FILE_EXTENSION_TO_MIME_TYPE[extension.replace(/^\./, "").trim().toLowerCase()] || "application/octet-stream";
62
294
  }
63
295
 
64
296
  //#endregion
65
- export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
297
+ export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType };
@@ -10,5 +10,5 @@ import { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EV
10
10
  import { FIELD_CONTEXTS, FIELD_DATA_TYPES, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, REQUEST_TYPES, SIGNALS, buildFilterExpression } from "./signoz-queries.js";
11
11
  import { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX } from "./tool-names.js";
12
12
  import { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX } from "./workflow.js";
13
- import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType } from "./allowed-file-formats.js";
14
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, AnthropicModel, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ContextBreakdown, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, GoogleModel, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, ModelName, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, OpenAIModel, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
13
+ import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType } from "./allowed-file-formats.js";
14
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, AnthropicModel, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ContextBreakdown, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, GoogleModel, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, ModelName, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, OpenAIModel, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
@@ -10,6 +10,6 @@ import { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_
10
10
  import { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER } from "./session-events.js";
11
11
  import { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX } from "./tool-names.js";
12
12
  import { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX } from "./workflow.js";
13
- import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType } from "./allowed-file-formats.js";
13
+ import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType } from "./allowed-file-formats.js";
14
14
 
15
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
15
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_OFFICE_DOCUMENT_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_OFFICE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, ZIP_DOCUMENT_EXTENSIONS, ZIP_DOCUMENT_EXTENSIONS_LABEL, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, isOfficeDocumentMimeType, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
@@ -74,6 +74,7 @@ declare const QUERY_EXPRESSIONS: {
74
74
  readonly MAX_STEPS_REACHED: "maxStepsReached";
75
75
  readonly STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded";
76
76
  readonly DURABLE_TOOL_EXECUTIONS: "durableToolExecutions";
77
+ readonly USAGE_EVENTS: "usageEvents";
77
78
  };
78
79
  /** Query Order Directions */
79
80
  declare const ORDER_DIRECTIONS: {
@@ -96,7 +96,8 @@ const QUERY_EXPRESSIONS = {
96
96
  COMPRESSION: "compression",
97
97
  MAX_STEPS_REACHED: "maxStepsReached",
98
98
  STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded",
99
- DURABLE_TOOL_EXECUTIONS: "durableToolExecutions"
99
+ DURABLE_TOOL_EXECUTIONS: "durableToolExecutions",
100
+ USAGE_EVENTS: "usageEvents"
100
101
  };
101
102
  /** Query Order Directions */
102
103
  const ORDER_DIRECTIONS = {
@@ -10,12 +10,12 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
+ id: string;
14
+ tenantId: string;
15
+ createdAt: string;
13
16
  name: string;
14
17
  description: string | null;
15
- tenantId: string;
16
18
  projectId: string;
17
- id: string;
18
- createdAt: string;
19
19
  updatedAt: string;
20
20
  models: {
21
21
  base?: {
@@ -40,9 +40,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  stopWhen: {
41
41
  transferCountIs?: number | undefined;
42
42
  } | null;
43
- prompt: string | null;
44
43
  defaultSubAgentId: string | null;
45
44
  contextConfigId: string | null;
45
+ prompt: string | null;
46
46
  statusUpdates: {
47
47
  enabled?: boolean | undefined;
48
48
  numEvents?: number | undefined;
@@ -63,12 +63,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
64
64
  scopes: AgentScopeConfig;
65
65
  }) => Promise<{
66
+ id: string;
67
+ tenantId: string;
68
+ createdAt: string;
66
69
  name: string;
67
70
  description: string | null;
68
- tenantId: string;
69
71
  projectId: string;
70
- id: string;
71
- createdAt: string;
72
72
  updatedAt: string;
73
73
  models: {
74
74
  base?: {
@@ -93,9 +93,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
93
93
  stopWhen: {
94
94
  transferCountIs?: number | undefined;
95
95
  } | null;
96
- prompt: string | null;
97
96
  defaultSubAgentId: string | null;
98
97
  contextConfigId: string | null;
98
+ prompt: string | null;
99
99
  statusUpdates: {
100
100
  enabled?: boolean | undefined;
101
101
  numEvents?: number | undefined;
@@ -113,12 +113,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
113
113
  } | null;
114
114
  executionMode: "classic" | "durable";
115
115
  defaultSubAgent: {
116
+ id: string;
117
+ tenantId: string;
118
+ createdAt: string;
116
119
  name: string;
117
120
  description: string | null;
118
- tenantId: string;
119
121
  projectId: string;
120
- id: string;
121
- createdAt: string;
122
+ agentId: string;
122
123
  updatedAt: string;
123
124
  models: {
124
125
  base?: {
@@ -145,18 +146,17 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
145
146
  } | null;
146
147
  prompt: string | null;
147
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
148
- agentId: string;
149
149
  } | null;
150
150
  } | null>;
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: ProjectScopeConfig;
153
153
  }) => Promise<{
154
+ id: string;
155
+ tenantId: string;
156
+ createdAt: string;
154
157
  name: string;
155
158
  description: string | null;
156
- tenantId: string;
157
159
  projectId: string;
158
- id: string;
159
- createdAt: string;
160
160
  updatedAt: string;
161
161
  models: {
162
162
  base?: {
@@ -181,9 +181,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
181
181
  stopWhen: {
182
182
  transferCountIs?: number | undefined;
183
183
  } | null;
184
- prompt: string | null;
185
184
  defaultSubAgentId: string | null;
186
185
  contextConfigId: string | null;
186
+ prompt: string | null;
187
187
  statusUpdates: {
188
188
  enabled?: boolean | undefined;
189
189
  numEvents?: number | undefined;
@@ -281,12 +281,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
281
281
  projectIds: string[];
282
282
  }): Promise<AvailableAgentInfo[]>;
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
+ id: string;
285
+ tenantId: string;
286
+ createdAt: string;
284
287
  name: string;
285
288
  description: string | null;
286
- tenantId: string;
287
289
  projectId: string;
288
- id: string;
289
- createdAt: string;
290
290
  updatedAt: string;
291
291
  models: {
292
292
  base?: {
@@ -311,9 +311,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
311
311
  stopWhen: {
312
312
  transferCountIs?: number | undefined;
313
313
  } | null;
314
- prompt: string | null;
315
314
  defaultSubAgentId: string | null;
316
315
  contextConfigId: string | null;
316
+ prompt: string | null;
317
317
  statusUpdates: {
318
318
  enabled?: boolean | undefined;
319
319
  numEvents?: number | undefined;
@@ -9,11 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
+ id: string;
13
+ tenantId: string;
14
+ createdAt: string;
12
15
  name: string;
13
16
  description: string | null;
14
- tenantId: string;
15
17
  projectId: string;
16
- id: string;
18
+ updatedAt: string;
17
19
  props: {
18
20
  [x: string]: unknown;
19
21
  type: "object";
@@ -26,8 +28,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
26
28
  component: string;
27
29
  mockData: Record<string, unknown>;
28
30
  } | null;
29
- createdAt: string;
30
- updatedAt: string;
31
31
  } | undefined>;
32
32
  declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: ProjectScopeConfig;
@@ -65,11 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
+ id: string;
69
+ tenantId: string;
70
+ createdAt: string;
68
71
  name: string;
69
72
  description: string | null;
70
- tenantId: string;
71
73
  projectId: string;
72
- id: string;
74
+ updatedAt: string;
73
75
  props: {
74
76
  [x: string]: unknown;
75
77
  type: "object";
@@ -82,8 +84,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
82
84
  component: string;
83
85
  mockData: Record<string, unknown>;
84
86
  } | null;
85
- createdAt: string;
86
- updatedAt: string;
87
87
  }>;
88
88
  declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
89
89
  scopes: ProjectScopeConfig;
@@ -141,10 +141,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
141
141
  scopes: SubAgentScopeConfig;
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
- tenantId: string;
145
- projectId: string;
146
144
  id: string;
145
+ tenantId: string;
147
146
  createdAt: string;
147
+ projectId: string;
148
148
  agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
@@ -184,10 +184,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
184
184
  scopes: SubAgentScopeConfig;
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
- tenantId: string;
188
- projectId: string;
189
187
  id: string;
188
+ tenantId: string;
190
189
  createdAt: string;
190
+ projectId: string;
191
191
  agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;