@inkeep/agents-core 0.0.0-dev-20250910233133 → 0.0.0-dev-20250910233151

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 (279) hide show
  1. package/dist/chunk-BIIFENNH.js +11 -0
  2. package/dist/chunk-H2F72PDA.js +15 -0
  3. package/dist/chunk-MKBO26DX.js +9 -0
  4. package/dist/chunk-ODONDMHT.js +665 -0
  5. package/dist/chunk-TSPWAF64.js +821 -0
  6. package/dist/client-exports.cjs +232 -0
  7. package/dist/client-exports.d.cts +302 -0
  8. package/dist/client-exports.d.ts +46 -43
  9. package/dist/client-exports.js +200 -247
  10. package/dist/db/schema.cjs +818 -0
  11. package/dist/db/schema.d.cts +7 -0
  12. package/dist/db/schema.d.ts +7 -4335
  13. package/dist/db/schema.js +1 -696
  14. package/dist/index.cjs +9809 -0
  15. package/dist/index.d.cts +3992 -0
  16. package/dist/index.d.ts +3992 -12
  17. package/dist/index.js +7807 -13
  18. package/dist/schema-B5YbTpz8.d.ts +4382 -0
  19. package/dist/schema-E0ulMd3k.d.cts +4382 -0
  20. package/dist/types/index.cjs +29 -0
  21. package/dist/types/index.d.cts +123 -0
  22. package/dist/types/index.d.ts +123 -5
  23. package/dist/types/index.js +2 -6
  24. package/dist/{validation/schemas.d.ts → utility-D2Lb-YAS.d.cts} +1350 -617
  25. package/dist/utility-D2Lb-YAS.d.ts +7946 -0
  26. package/dist/validation/index.cjs +1617 -0
  27. package/dist/validation/index.d.cts +63 -0
  28. package/dist/validation/index.d.ts +63 -4
  29. package/dist/validation/index.js +1 -5
  30. package/package.json +2 -2
  31. package/dist/__tests__/integration/helpers.d.ts +0 -5
  32. package/dist/__tests__/integration/helpers.d.ts.map +0 -1
  33. package/dist/__tests__/integration/helpers.js +0 -37
  34. package/dist/__tests__/integration/helpers.js.map +0 -1
  35. package/dist/__tests__/setup.d.ts +0 -3
  36. package/dist/__tests__/setup.d.ts.map +0 -1
  37. package/dist/__tests__/setup.js +0 -29
  38. package/dist/__tests__/setup.js.map +0 -1
  39. package/dist/client-exports.d.ts.map +0 -1
  40. package/dist/client-exports.js.map +0 -1
  41. package/dist/context/ContextConfig.d.ts +0 -54
  42. package/dist/context/ContextConfig.d.ts.map +0 -1
  43. package/dist/context/ContextConfig.js +0 -302
  44. package/dist/context/ContextConfig.js.map +0 -1
  45. package/dist/context/ContextFetcher.d.ts +0 -64
  46. package/dist/context/ContextFetcher.d.ts.map +0 -1
  47. package/dist/context/ContextFetcher.js +0 -325
  48. package/dist/context/ContextFetcher.js.map +0 -1
  49. package/dist/context/ContextResolver.d.ts +0 -52
  50. package/dist/context/ContextResolver.d.ts.map +0 -1
  51. package/dist/context/ContextResolver.js +0 -298
  52. package/dist/context/ContextResolver.js.map +0 -1
  53. package/dist/context/TemplateEngine.d.ts +0 -46
  54. package/dist/context/TemplateEngine.d.ts.map +0 -1
  55. package/dist/context/TemplateEngine.js +0 -175
  56. package/dist/context/TemplateEngine.js.map +0 -1
  57. package/dist/context/context.d.ts +0 -8
  58. package/dist/context/context.d.ts.map +0 -1
  59. package/dist/context/context.js +0 -157
  60. package/dist/context/context.js.map +0 -1
  61. package/dist/context/contextCache.d.ts +0 -50
  62. package/dist/context/contextCache.d.ts.map +0 -1
  63. package/dist/context/contextCache.js +0 -175
  64. package/dist/context/contextCache.js.map +0 -1
  65. package/dist/context/index.d.ts +0 -11
  66. package/dist/context/index.d.ts.map +0 -1
  67. package/dist/context/index.js +0 -8
  68. package/dist/context/index.js.map +0 -1
  69. package/dist/credential-stores/CredentialStoreRegistry.d.ts +0 -39
  70. package/dist/credential-stores/CredentialStoreRegistry.d.ts.map +0 -1
  71. package/dist/credential-stores/CredentialStoreRegistry.js +0 -65
  72. package/dist/credential-stores/CredentialStoreRegistry.js.map +0 -1
  73. package/dist/credential-stores/defaults.d.ts +0 -6
  74. package/dist/credential-stores/defaults.d.ts.map +0 -1
  75. package/dist/credential-stores/defaults.js +0 -22
  76. package/dist/credential-stores/defaults.js.map +0 -1
  77. package/dist/credential-stores/index.d.ts +0 -6
  78. package/dist/credential-stores/index.d.ts.map +0 -1
  79. package/dist/credential-stores/index.js +0 -6
  80. package/dist/credential-stores/index.js.map +0 -1
  81. package/dist/credential-stores/keychain-store.d.ts +0 -100
  82. package/dist/credential-stores/keychain-store.d.ts.map +0 -1
  83. package/dist/credential-stores/keychain-store.js +0 -225
  84. package/dist/credential-stores/keychain-store.js.map +0 -1
  85. package/dist/credential-stores/memory-store.d.ts +0 -39
  86. package/dist/credential-stores/memory-store.d.ts.map +0 -1
  87. package/dist/credential-stores/memory-store.js +0 -58
  88. package/dist/credential-stores/memory-store.js.map +0 -1
  89. package/dist/credential-stores/nango-store.d.ts +0 -59
  90. package/dist/credential-stores/nango-store.d.ts.map +0 -1
  91. package/dist/credential-stores/nango-store.js +0 -264
  92. package/dist/credential-stores/nango-store.js.map +0 -1
  93. package/dist/credential-stuffer/CredentialStuffer.d.ts +0 -80
  94. package/dist/credential-stuffer/CredentialStuffer.d.ts.map +0 -1
  95. package/dist/credential-stuffer/CredentialStuffer.js +0 -186
  96. package/dist/credential-stuffer/CredentialStuffer.js.map +0 -1
  97. package/dist/credential-stuffer/index.d.ts +0 -2
  98. package/dist/credential-stuffer/index.d.ts.map +0 -1
  99. package/dist/credential-stuffer/index.js +0 -2
  100. package/dist/credential-stuffer/index.js.map +0 -1
  101. package/dist/data-access/agentDataComponents.d.ts +0 -1
  102. package/dist/data-access/agentDataComponents.d.ts.map +0 -1
  103. package/dist/data-access/agentDataComponents.js +0 -2
  104. package/dist/data-access/agentDataComponents.js.map +0 -1
  105. package/dist/data-access/agentGraphs.d.ts +0 -399
  106. package/dist/data-access/agentGraphs.d.ts.map +0 -1
  107. package/dist/data-access/agentGraphs.js +0 -551
  108. package/dist/data-access/agentGraphs.js.map +0 -1
  109. package/dist/data-access/agentRelations.d.ts +0 -456
  110. package/dist/data-access/agentRelations.d.ts.map +0 -1
  111. package/dist/data-access/agentRelations.js +0 -471
  112. package/dist/data-access/agentRelations.js.map +0 -1
  113. package/dist/data-access/agents.d.ts +0 -218
  114. package/dist/data-access/agents.d.ts.map +0 -1
  115. package/dist/data-access/agents.js +0 -130
  116. package/dist/data-access/agents.js.map +0 -1
  117. package/dist/data-access/apiKeys.d.ts +0 -114
  118. package/dist/data-access/apiKeys.d.ts.map +0 -1
  119. package/dist/data-access/apiKeys.js +0 -185
  120. package/dist/data-access/apiKeys.js.map +0 -1
  121. package/dist/data-access/artifactComponents.d.ts +0 -152
  122. package/dist/data-access/artifactComponents.d.ts.map +0 -1
  123. package/dist/data-access/artifactComponents.js +0 -214
  124. package/dist/data-access/artifactComponents.js.map +0 -1
  125. package/dist/data-access/contextCache.d.ts +0 -68
  126. package/dist/data-access/contextCache.d.ts.map +0 -1
  127. package/dist/data-access/contextCache.js +0 -135
  128. package/dist/data-access/contextCache.js.map +0 -1
  129. package/dist/data-access/contextConfigs.d.ts +0 -110
  130. package/dist/data-access/contextConfigs.d.ts.map +0 -1
  131. package/dist/data-access/contextConfigs.js +0 -156
  132. package/dist/data-access/contextConfigs.js.map +0 -1
  133. package/dist/data-access/conversations.d.ts +0 -125
  134. package/dist/data-access/conversations.d.ts.map +0 -1
  135. package/dist/data-access/conversations.js +0 -244
  136. package/dist/data-access/conversations.js.map +0 -1
  137. package/dist/data-access/credentialReferences.d.ts +0 -86
  138. package/dist/data-access/credentialReferences.d.ts.map +0 -1
  139. package/dist/data-access/credentialReferences.js +0 -175
  140. package/dist/data-access/credentialReferences.js.map +0 -1
  141. package/dist/data-access/dataComponents.d.ts +0 -129
  142. package/dist/data-access/dataComponents.d.ts.map +0 -1
  143. package/dist/data-access/dataComponents.js +0 -213
  144. package/dist/data-access/dataComponents.js.map +0 -1
  145. package/dist/data-access/externalAgents.d.ts +0 -83
  146. package/dist/data-access/externalAgents.d.ts.map +0 -1
  147. package/dist/data-access/externalAgents.js +0 -163
  148. package/dist/data-access/externalAgents.js.map +0 -1
  149. package/dist/data-access/graphFull.d.ts +0 -32
  150. package/dist/data-access/graphFull.d.ts.map +0 -1
  151. package/dist/data-access/graphFull.js +0 -996
  152. package/dist/data-access/graphFull.js.map +0 -1
  153. package/dist/data-access/index.d.ts +0 -21
  154. package/dist/data-access/index.d.ts.map +0 -1
  155. package/dist/data-access/index.js +0 -22
  156. package/dist/data-access/index.js.map +0 -1
  157. package/dist/data-access/ledgerArtifacts.d.ts +0 -49
  158. package/dist/data-access/ledgerArtifacts.d.ts.map +0 -1
  159. package/dist/data-access/ledgerArtifacts.js +0 -112
  160. package/dist/data-access/ledgerArtifacts.js.map +0 -1
  161. package/dist/data-access/messages.d.ts +0 -209
  162. package/dist/data-access/messages.d.ts.map +0 -1
  163. package/dist/data-access/messages.js +0 -100
  164. package/dist/data-access/messages.js.map +0 -1
  165. package/dist/data-access/projects.d.ts +0 -67
  166. package/dist/data-access/projects.d.ts.map +0 -1
  167. package/dist/data-access/projects.js +0 -337
  168. package/dist/data-access/projects.js.map +0 -1
  169. package/dist/data-access/tasks.d.ts +0 -37
  170. package/dist/data-access/tasks.d.ts.map +0 -1
  171. package/dist/data-access/tasks.js +0 -40
  172. package/dist/data-access/tasks.js.map +0 -1
  173. package/dist/data-access/tools.d.ts +0 -277
  174. package/dist/data-access/tools.d.ts.map +0 -1
  175. package/dist/data-access/tools.js +0 -183
  176. package/dist/data-access/tools.js.map +0 -1
  177. package/dist/data-access/validation.d.ts +0 -17
  178. package/dist/data-access/validation.d.ts.map +0 -1
  179. package/dist/data-access/validation.js +0 -52
  180. package/dist/data-access/validation.js.map +0 -1
  181. package/dist/db/clean.d.ts +0 -6
  182. package/dist/db/clean.d.ts.map +0 -1
  183. package/dist/db/clean.js +0 -81
  184. package/dist/db/clean.js.map +0 -1
  185. package/dist/db/client.d.ts +0 -19
  186. package/dist/db/client.d.ts.map +0 -1
  187. package/dist/db/client.js +0 -24
  188. package/dist/db/client.js.map +0 -1
  189. package/dist/db/schema.d.ts.map +0 -1
  190. package/dist/db/schema.js.map +0 -1
  191. package/dist/db/test-client.d.ts +0 -25
  192. package/dist/db/test-client.d.ts.map +0 -1
  193. package/dist/db/test-client.js +0 -136
  194. package/dist/db/test-client.js.map +0 -1
  195. package/dist/env.d.ts +0 -19
  196. package/dist/env.d.ts.map +0 -1
  197. package/dist/env.js +0 -49
  198. package/dist/env.js.map +0 -1
  199. package/dist/index.d.ts.map +0 -1
  200. package/dist/index.js.map +0 -1
  201. package/dist/middleware/contextValidation.d.ts +0 -49
  202. package/dist/middleware/contextValidation.d.ts.map +0 -1
  203. package/dist/middleware/contextValidation.js +0 -473
  204. package/dist/middleware/contextValidation.js.map +0 -1
  205. package/dist/middleware/index.d.ts +0 -2
  206. package/dist/middleware/index.d.ts.map +0 -1
  207. package/dist/middleware/index.js +0 -2
  208. package/dist/middleware/index.js.map +0 -1
  209. package/dist/types/a2a.d.ts +0 -373
  210. package/dist/types/a2a.d.ts.map +0 -1
  211. package/dist/types/a2a.js +0 -14
  212. package/dist/types/a2a.js.map +0 -1
  213. package/dist/types/entities.d.ts +0 -147
  214. package/dist/types/entities.d.ts.map +0 -1
  215. package/dist/types/entities.js +0 -2
  216. package/dist/types/entities.js.map +0 -1
  217. package/dist/types/index.d.ts.map +0 -1
  218. package/dist/types/index.js.map +0 -1
  219. package/dist/types/server.d.ts +0 -116
  220. package/dist/types/server.d.ts.map +0 -1
  221. package/dist/types/server.js +0 -2
  222. package/dist/types/server.js.map +0 -1
  223. package/dist/types/utility.d.ts +0 -213
  224. package/dist/types/utility.d.ts.map +0 -1
  225. package/dist/types/utility.js +0 -9
  226. package/dist/types/utility.js.map +0 -1
  227. package/dist/utils/apiKeys.d.ts +0 -32
  228. package/dist/utils/apiKeys.d.ts.map +0 -1
  229. package/dist/utils/apiKeys.js +0 -117
  230. package/dist/utils/apiKeys.js.map +0 -1
  231. package/dist/utils/auth-detection.d.ts +0 -23
  232. package/dist/utils/auth-detection.d.ts.map +0 -1
  233. package/dist/utils/auth-detection.js +0 -148
  234. package/dist/utils/auth-detection.js.map +0 -1
  235. package/dist/utils/credential-store-utils.d.ts +0 -11
  236. package/dist/utils/credential-store-utils.d.ts.map +0 -1
  237. package/dist/utils/credential-store-utils.js +0 -19
  238. package/dist/utils/credential-store-utils.js.map +0 -1
  239. package/dist/utils/error.d.ts +0 -526
  240. package/dist/utils/error.d.ts.map +0 -1
  241. package/dist/utils/error.js +0 -282
  242. package/dist/utils/error.js.map +0 -1
  243. package/dist/utils/execution.d.ts +0 -18
  244. package/dist/utils/execution.d.ts.map +0 -1
  245. package/dist/utils/execution.js +0 -25
  246. package/dist/utils/execution.js.map +0 -1
  247. package/dist/utils/index.d.ts +0 -9
  248. package/dist/utils/index.d.ts.map +0 -1
  249. package/dist/utils/index.js +0 -9
  250. package/dist/utils/index.js.map +0 -1
  251. package/dist/utils/logger.d.ts +0 -79
  252. package/dist/utils/logger.d.ts.map +0 -1
  253. package/dist/utils/logger.js +0 -102
  254. package/dist/utils/logger.js.map +0 -1
  255. package/dist/utils/logging.d.ts +0 -11
  256. package/dist/utils/logging.d.ts.map +0 -1
  257. package/dist/utils/logging.js +0 -6
  258. package/dist/utils/logging.js.map +0 -1
  259. package/dist/utils/mcp-client.d.ts +0 -48
  260. package/dist/utils/mcp-client.d.ts.map +0 -1
  261. package/dist/utils/mcp-client.js +0 -174
  262. package/dist/utils/mcp-client.js.map +0 -1
  263. package/dist/utils/tracer.d.ts +0 -24
  264. package/dist/utils/tracer.d.ts.map +0 -1
  265. package/dist/utils/tracer.js +0 -110
  266. package/dist/utils/tracer.js.map +0 -1
  267. package/dist/validation/graphFull.d.ts +0 -36
  268. package/dist/validation/graphFull.d.ts.map +0 -1
  269. package/dist/validation/graphFull.js +0 -128
  270. package/dist/validation/graphFull.js.map +0 -1
  271. package/dist/validation/id-validation.d.ts +0 -38
  272. package/dist/validation/id-validation.d.ts.map +0 -1
  273. package/dist/validation/id-validation.js +0 -60
  274. package/dist/validation/id-validation.js.map +0 -1
  275. package/dist/validation/index.d.ts.map +0 -1
  276. package/dist/validation/index.js.map +0 -1
  277. package/dist/validation/schemas.d.ts.map +0 -1
  278. package/dist/validation/schemas.js +0 -576
  279. package/dist/validation/schemas.js.map +0 -1
@@ -1,3 +1,5 @@
1
+ import { z } from 'zod';
2
+
1
3
  /**
2
4
  * Client-Safe Schema Exports
3
5
  *
@@ -5,29 +7,29 @@
5
7
  * in client-side applications (like Next.js builds) without importing
6
8
  * server-side database dependencies.
7
9
  */
8
- import { z } from 'zod';
9
- export declare const TenantParamsSchema: z.ZodObject<{
10
+
11
+ declare const TenantParamsSchema: z.ZodObject<{
10
12
  tenantId: z.ZodString;
11
13
  }, z.core.$strip>;
12
- export declare const TenantProjectParamsSchema: z.ZodObject<{
14
+ declare const TenantProjectParamsSchema: z.ZodObject<{
13
15
  tenantId: z.ZodString;
14
16
  projectId: z.ZodString;
15
17
  }, z.core.$strip>;
16
- export declare const TenantProjectIdParamsSchema: z.ZodObject<{
18
+ declare const TenantProjectIdParamsSchema: z.ZodObject<{
17
19
  tenantId: z.ZodString;
18
20
  projectId: z.ZodString;
19
21
  id: z.ZodString;
20
22
  }, z.core.$strip>;
21
- export declare const IdParamsSchema: z.ZodObject<{
23
+ declare const IdParamsSchema: z.ZodObject<{
22
24
  id: z.ZodString;
23
25
  }, z.core.$strip>;
24
- export declare const PaginationSchema: z.ZodObject<{
26
+ declare const PaginationSchema: z.ZodObject<{
25
27
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
26
28
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
27
29
  total: z.ZodNumber;
28
30
  pages: z.ZodNumber;
29
31
  }, z.core.$strip>;
30
- export declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
32
+ declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
31
33
  data: z.ZodArray<T>;
32
34
  pagination: z.ZodObject<{
33
35
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -36,21 +38,21 @@ export declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T)
36
38
  pages: z.ZodNumber;
37
39
  }, z.core.$strip>;
38
40
  }, z.core.$strip>;
39
- export declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
41
+ declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
40
42
  data: T;
41
43
  }, z.core.$strip>;
42
- export declare const ErrorResponseSchema: z.ZodObject<{
44
+ declare const ErrorResponseSchema: z.ZodObject<{
43
45
  error: z.ZodString;
44
46
  message: z.ZodOptional<z.ZodString>;
45
47
  details: z.ZodOptional<z.ZodUnknown>;
46
48
  }, z.core.$strip>;
47
- export declare const ModelSettingsSchema: z.ZodObject<{
49
+ declare const ModelSettingsSchema: z.ZodObject<{
48
50
  model: z.ZodOptional<z.ZodString>;
49
51
  structuredOutput: z.ZodOptional<z.ZodString>;
50
52
  summarizer: z.ZodOptional<z.ZodString>;
51
53
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
54
  }, z.core.$strip>;
53
- export declare const AgentApiInsertSchema: z.ZodObject<{
55
+ declare const AgentApiInsertSchema: z.ZodObject<{
54
56
  id: z.ZodOptional<z.ZodString>;
55
57
  name: z.ZodString;
56
58
  description: z.ZodOptional<z.ZodString>;
@@ -71,7 +73,7 @@ export declare const AgentApiInsertSchema: z.ZodObject<{
71
73
  external: "external";
72
74
  }>>;
73
75
  }, z.core.$strip>;
74
- export declare const ToolApiInsertSchema: z.ZodObject<{
76
+ declare const ToolApiInsertSchema: z.ZodObject<{
75
77
  id: z.ZodOptional<z.ZodString>;
76
78
  name: z.ZodString;
77
79
  description: z.ZodOptional<z.ZodString>;
@@ -82,7 +84,7 @@ export declare const ToolApiInsertSchema: z.ZodObject<{
82
84
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
83
85
  credentialReferenceId: z.ZodOptional<z.ZodString>;
84
86
  }, z.core.$strip>;
85
- export declare const ApiKeyApiSelectSchema: z.ZodObject<{
87
+ declare const ApiKeyApiSelectSchema: z.ZodObject<{
86
88
  id: z.ZodString;
87
89
  tenantId: z.ZodString;
88
90
  projectId: z.ZodString;
@@ -96,7 +98,7 @@ export declare const ApiKeyApiSelectSchema: z.ZodObject<{
96
98
  createdAt: z.ZodString;
97
99
  updatedAt: z.ZodString;
98
100
  }, z.core.$strip>;
99
- export declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
101
+ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
100
102
  data: z.ZodObject<{
101
103
  apiKey: z.ZodObject<{
102
104
  id: z.ZodString;
@@ -115,7 +117,7 @@ export declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
115
117
  key: z.ZodString;
116
118
  }, z.core.$strip>;
117
119
  }, z.core.$strip>;
118
- export declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
120
+ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
119
121
  id: z.ZodString;
120
122
  tenantId: z.ZodOptional<z.ZodString>;
121
123
  projectId: z.ZodOptional<z.ZodString>;
@@ -123,40 +125,40 @@ export declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
123
125
  credentialStoreId: z.ZodString;
124
126
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
125
127
  }, z.core.$strip>;
126
- export declare const DataComponentApiInsertSchema: z.ZodObject<{
128
+ declare const DataComponentApiInsertSchema: z.ZodObject<{
127
129
  id: z.ZodOptional<z.ZodString>;
128
130
  name: z.ZodString;
129
131
  description: z.ZodOptional<z.ZodString>;
130
132
  props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
131
133
  }, z.core.$strip>;
132
- export declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
134
+ declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
133
135
  id: z.ZodOptional<z.ZodString>;
134
136
  name: z.ZodString;
135
137
  description: z.ZodOptional<z.ZodString>;
136
138
  summaryProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
137
139
  fullProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
138
140
  }, z.core.$strip>;
139
- export declare const ContextConfigApiInsertSchema: z.ZodObject<{
141
+ declare const ContextConfigApiInsertSchema: z.ZodObject<{
140
142
  id: z.ZodOptional<z.ZodString>;
141
143
  name: z.ZodOptional<z.ZodString>;
142
144
  description: z.ZodOptional<z.ZodString>;
143
145
  type: z.ZodOptional<z.ZodString>;
144
146
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
147
  }, z.core.$strip>;
146
- export declare const ExternalAgentApiInsertSchema: z.ZodObject<{
148
+ declare const ExternalAgentApiInsertSchema: z.ZodObject<{
147
149
  id: z.ZodOptional<z.ZodString>;
148
150
  name: z.ZodString;
149
151
  description: z.ZodOptional<z.ZodString>;
150
152
  baseUrl: z.ZodString;
151
153
  type: z.ZodOptional<z.ZodLiteral<"external">>;
152
154
  }, z.core.$strip>;
153
- export declare const AgentGraphApiInsertSchema: z.ZodObject<{
155
+ declare const AgentGraphApiInsertSchema: z.ZodObject<{
154
156
  id: z.ZodOptional<z.ZodString>;
155
157
  name: z.ZodString;
156
158
  description: z.ZodOptional<z.ZodString>;
157
159
  defaultAgentId: z.ZodOptional<z.ZodString>;
158
160
  }, z.core.$strip>;
159
- export declare const FullGraphDefinitionSchema: z.ZodObject<{
161
+ declare const FullGraphDefinitionSchema: z.ZodObject<{
160
162
  id: z.ZodOptional<z.ZodString>;
161
163
  name: z.ZodString;
162
164
  description: z.ZodOptional<z.ZodString>;
@@ -275,25 +277,26 @@ export declare const FullGraphDefinitionSchema: z.ZodObject<{
275
277
  }, z.core.$strip>>>;
276
278
  }, z.core.$strip>>;
277
279
  }, z.core.$strip>;
278
- export type AgentApiInsert = z.infer<typeof AgentApiInsertSchema>;
279
- export type ToolApiInsert = z.infer<typeof ToolApiInsertSchema>;
280
- export type ApiKeyApiSelect = z.infer<typeof ApiKeyApiSelectSchema>;
281
- export type ApiKeyApiCreationResponse = z.infer<typeof ApiKeyApiCreationResponseSchema>;
282
- export type CredentialReferenceApiInsert = z.infer<typeof CredentialReferenceApiInsertSchema>;
283
- export type DataComponentApiInsert = z.infer<typeof DataComponentApiInsertSchema>;
284
- export type ArtifactComponentApiInsert = z.infer<typeof ArtifactComponentApiInsertSchema>;
285
- export type ContextConfigApiInsert = z.infer<typeof ContextConfigApiInsertSchema>;
286
- export type ExternalAgentApiInsert = z.infer<typeof ExternalAgentApiInsertSchema>;
287
- export type AgentGraphApiInsert = z.infer<typeof AgentGraphApiInsertSchema>;
288
- export type FullGraphDefinition = z.infer<typeof FullGraphDefinitionSchema>;
289
- export type TenantParams = z.infer<typeof TenantParamsSchema>;
290
- export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
291
- export type ModelSettings = z.infer<typeof ModelSettingsSchema>;
292
- export declare const MIN_ID_LENGTH = 1;
293
- export declare const MAX_ID_LENGTH = 255;
294
- export declare const URL_SAFE_ID_PATTERN: RegExp;
295
- export declare const resourceIdSchema: z.ZodString;
296
- export declare function generateIdFromName(name: string): string;
297
- export type ToolInsert = ToolApiInsert;
298
- export type AgentGraphInsert = AgentGraphApiInsert;
299
- //# sourceMappingURL=client-exports.d.ts.map
280
+ type AgentApiInsert = z.infer<typeof AgentApiInsertSchema>;
281
+ type ToolApiInsert = z.infer<typeof ToolApiInsertSchema>;
282
+ type ApiKeyApiSelect = z.infer<typeof ApiKeyApiSelectSchema>;
283
+ type ApiKeyApiCreationResponse = z.infer<typeof ApiKeyApiCreationResponseSchema>;
284
+ type CredentialReferenceApiInsert = z.infer<typeof CredentialReferenceApiInsertSchema>;
285
+ type DataComponentApiInsert = z.infer<typeof DataComponentApiInsertSchema>;
286
+ type ArtifactComponentApiInsert = z.infer<typeof ArtifactComponentApiInsertSchema>;
287
+ type ContextConfigApiInsert = z.infer<typeof ContextConfigApiInsertSchema>;
288
+ type ExternalAgentApiInsert = z.infer<typeof ExternalAgentApiInsertSchema>;
289
+ type AgentGraphApiInsert = z.infer<typeof AgentGraphApiInsertSchema>;
290
+ type FullGraphDefinition = z.infer<typeof FullGraphDefinitionSchema>;
291
+ type TenantParams = z.infer<typeof TenantParamsSchema>;
292
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
293
+ type ModelSettings = z.infer<typeof ModelSettingsSchema>;
294
+ declare const MIN_ID_LENGTH = 1;
295
+ declare const MAX_ID_LENGTH = 255;
296
+ declare const URL_SAFE_ID_PATTERN: RegExp;
297
+ declare const resourceIdSchema: z.ZodString;
298
+ declare function generateIdFromName(name: string): string;
299
+ type ToolInsert = ToolApiInsert;
300
+ type AgentGraphInsert = AgentGraphApiInsert;
301
+
302
+ export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, type ModelSettings, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -1,252 +1,205 @@
1
- /**
2
- * Client-Safe Schema Exports
3
- *
4
- * This file exports only the Zod schemas and types that are safe to use
5
- * in client-side applications (like Next.js builds) without importing
6
- * server-side database dependencies.
7
- */
8
1
  import { z } from 'zod';
9
- // Common parameter schemas
10
- export const TenantParamsSchema = z.object({
11
- tenantId: z.string(),
12
- });
13
- export const TenantProjectParamsSchema = TenantParamsSchema.extend({
14
- projectId: z.string(),
15
- });
16
- export const TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({
17
- id: z.string(),
18
- });
19
- export const IdParamsSchema = z.object({
20
- id: z.string(),
21
- });
22
- // Response wrapper schemas
23
- export const PaginationSchema = z.object({
24
- page: z.coerce.number().min(1).default(1),
25
- limit: z.coerce.number().min(1).max(100).default(10),
26
- total: z.number(),
27
- pages: z.number(),
28
- });
29
- export const ListResponseSchema = (itemSchema) => z.object({
30
- data: z.array(itemSchema),
31
- pagination: PaginationSchema,
32
- });
33
- export const SingleResponseSchema = (itemSchema) => z.object({
34
- data: itemSchema,
35
- });
36
- export const ErrorResponseSchema = z.object({
37
- error: z.string(),
38
- message: z.string().optional(),
39
- details: z.unknown().optional(),
40
- });
41
- // Model Settings Schema
42
- export const ModelSettingsSchema = z.object({
43
- model: z.string().optional(),
44
- structuredOutput: z.string().optional(),
45
- summarizer: z.string().optional(),
46
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
47
- });
48
- // Agent API schemas (inline definitions to avoid DB imports)
49
- export const AgentApiInsertSchema = z.object({
50
- id: z.string().optional(),
51
- name: z.string(),
52
- description: z.string().optional(),
53
- prompt: z.string().optional(),
54
- model: ModelSettingsSchema.optional(),
55
- tools: z.array(z.string()).optional(),
56
- dataComponents: z.array(z.string()).optional(),
57
- artifactComponents: z.array(z.string()).optional(),
58
- canTransferTo: z.array(z.string()).optional(),
59
- canDelegateTo: z.array(z.string()).optional(),
60
- type: z.enum(['internal', 'external']).optional(),
61
- });
62
- // Tool API schemas (inline definitions)
63
- export const ToolApiInsertSchema = z.object({
64
- id: z.string().optional(),
65
- name: z.string(),
66
- description: z.string().optional(),
67
- type: z.enum(['mcp', 'hosted']),
68
- config: z.record(z.string(), z.unknown()),
69
- credentialReferenceId: z.string().optional(),
70
- });
71
- // API Key schemas
72
- export const ApiKeyApiSelectSchema = z.object({
73
- id: z.string(),
74
- tenantId: z.string(),
75
- projectId: z.string(),
76
- graphId: z.string(),
77
- publicId: z.string(),
78
- keyHash: z.string(),
79
- keyPrefix: z.string(),
80
- name: z.string().optional(),
81
- lastUsedAt: z.string().optional(),
82
- expiresAt: z.string().optional(),
83
- createdAt: z.string(),
84
- updatedAt: z.string(),
85
- });
86
- export const ApiKeyApiCreationResponseSchema = z.object({
87
- data: z.object({
88
- apiKey: ApiKeyApiSelectSchema,
89
- key: z.string(),
90
- }),
91
- });
92
- // Credential Reference API schemas
93
- export const CredentialReferenceApiInsertSchema = z.object({
94
- id: z.string(),
95
- tenantId: z.string().optional(),
96
- projectId: z.string().optional(),
97
- type: z.string(), // 'memory', 'vault', 'nango', etc.
98
- credentialStoreId: z.string(),
99
- retrievalParams: z.record(z.string(), z.unknown()).nullish(),
100
- });
101
- // Data Component API schemas (inline definitions)
102
- export const DataComponentApiInsertSchema = z.object({
103
- id: z.string().optional(),
104
- name: z.string(),
105
- description: z.string().optional(),
106
- props: z.record(z.string(), z.unknown()),
107
- });
108
- // Artifact Component API schemas (inline definitions)
109
- export const ArtifactComponentApiInsertSchema = z.object({
110
- id: z.string().optional(),
111
- name: z.string(),
112
- description: z.string().optional(),
113
- summaryProps: z.record(z.string(), z.unknown()),
114
- fullProps: z.record(z.string(), z.unknown()),
115
- });
116
- // Context Config API schemas (inline definitions)
117
- export const ContextConfigApiInsertSchema = z.object({
118
- id: z.string().optional(),
119
- name: z.string().optional(),
120
- description: z.string().optional(),
121
- type: z.string().optional(),
122
- config: z.record(z.string(), z.unknown()).optional(),
123
- });
124
- // External Agent API schemas (inline definitions)
125
- export const ExternalAgentApiInsertSchema = z.object({
126
- id: z.string().optional(),
127
- name: z.string(),
128
- description: z.string().optional(),
129
- baseUrl: z.string(),
130
- type: z.literal('external').optional(),
131
- });
132
- // Agent Graph API schemas (inline definitions)
133
- export const AgentGraphApiInsertSchema = z.object({
134
- id: z.string().optional(),
135
- name: z.string(),
136
- description: z.string().optional(),
137
- defaultAgentId: z.string().optional(),
138
- });
139
- // Full Graph Definition Schema - extends AgentGraph with agents and tools
140
- export const FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
141
- agents: z.record(z.string(), z.union([
142
- AgentApiInsertSchema.extend({
143
- id: z.string(),
144
- tools: z.array(z.string()),
145
- dataComponents: z.array(z.string()).optional(),
146
- artifactComponents: z.array(z.string()).optional(),
147
- canTransferTo: z.array(z.string()).optional(),
148
- canDelegateTo: z.array(z.string()).optional(),
149
- type: z.enum(['internal', 'external']).optional(),
150
- models: z
151
- .object({
152
- base: z
153
- .object({
154
- model: z.string(),
155
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
156
- })
157
- .optional(),
158
- structuredOutput: z
159
- .object({
160
- model: z.string(),
161
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
162
- })
163
- .optional(),
164
- summarizer: z
165
- .object({
166
- model: z.string(),
167
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
168
- })
169
- .optional(),
170
- })
171
- .optional(),
172
- }),
173
- ExternalAgentApiInsertSchema.extend({
174
- id: z.string(),
175
- }),
176
- ])),
177
- tools: z.record(z.string(), ToolApiInsertSchema),
178
- credentialReferences: z.array(CredentialReferenceApiInsertSchema).optional(),
179
- dataComponents: z.record(z.string(), DataComponentApiInsertSchema).optional(),
180
- artifactComponents: z.record(z.string(), ArtifactComponentApiInsertSchema).optional(),
181
- contextConfig: z.optional(ContextConfigApiInsertSchema),
182
- models: z
183
- .object({
184
- base: z
185
- .object({
2
+
3
+ var TenantParamsSchema = z.object({
4
+ tenantId: z.string()
5
+ });
6
+ var TenantProjectParamsSchema = TenantParamsSchema.extend({
7
+ projectId: z.string()
8
+ });
9
+ var TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({
10
+ id: z.string()
11
+ });
12
+ var IdParamsSchema = z.object({
13
+ id: z.string()
14
+ });
15
+ var PaginationSchema = z.object({
16
+ page: z.coerce.number().min(1).default(1),
17
+ limit: z.coerce.number().min(1).max(100).default(10),
18
+ total: z.number(),
19
+ pages: z.number()
20
+ });
21
+ var ListResponseSchema = (itemSchema) => z.object({
22
+ data: z.array(itemSchema),
23
+ pagination: PaginationSchema
24
+ });
25
+ var SingleResponseSchema = (itemSchema) => z.object({
26
+ data: itemSchema
27
+ });
28
+ var ErrorResponseSchema = z.object({
29
+ error: z.string(),
30
+ message: z.string().optional(),
31
+ details: z.unknown().optional()
32
+ });
33
+ var ModelSettingsSchema = z.object({
34
+ model: z.string().optional(),
35
+ structuredOutput: z.string().optional(),
36
+ summarizer: z.string().optional(),
37
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
38
+ });
39
+ var AgentApiInsertSchema = z.object({
40
+ id: z.string().optional(),
41
+ name: z.string(),
42
+ description: z.string().optional(),
43
+ prompt: z.string().optional(),
44
+ model: ModelSettingsSchema.optional(),
45
+ tools: z.array(z.string()).optional(),
46
+ dataComponents: z.array(z.string()).optional(),
47
+ artifactComponents: z.array(z.string()).optional(),
48
+ canTransferTo: z.array(z.string()).optional(),
49
+ canDelegateTo: z.array(z.string()).optional(),
50
+ type: z.enum(["internal", "external"]).optional()
51
+ });
52
+ var ToolApiInsertSchema = z.object({
53
+ id: z.string().optional(),
54
+ name: z.string(),
55
+ description: z.string().optional(),
56
+ type: z.enum(["mcp", "hosted"]),
57
+ config: z.record(z.string(), z.unknown()),
58
+ credentialReferenceId: z.string().optional()
59
+ });
60
+ var ApiKeyApiSelectSchema = z.object({
61
+ id: z.string(),
62
+ tenantId: z.string(),
63
+ projectId: z.string(),
64
+ graphId: z.string(),
65
+ publicId: z.string(),
66
+ keyHash: z.string(),
67
+ keyPrefix: z.string(),
68
+ name: z.string().optional(),
69
+ lastUsedAt: z.string().optional(),
70
+ expiresAt: z.string().optional(),
71
+ createdAt: z.string(),
72
+ updatedAt: z.string()
73
+ });
74
+ var ApiKeyApiCreationResponseSchema = z.object({
75
+ data: z.object({
76
+ apiKey: ApiKeyApiSelectSchema,
77
+ key: z.string()
78
+ })
79
+ });
80
+ var CredentialReferenceApiInsertSchema = z.object({
81
+ id: z.string(),
82
+ tenantId: z.string().optional(),
83
+ projectId: z.string().optional(),
84
+ type: z.string(),
85
+ // 'memory', 'vault', 'nango', etc.
86
+ credentialStoreId: z.string(),
87
+ retrievalParams: z.record(z.string(), z.unknown()).nullish()
88
+ });
89
+ var DataComponentApiInsertSchema = z.object({
90
+ id: z.string().optional(),
91
+ name: z.string(),
92
+ description: z.string().optional(),
93
+ props: z.record(z.string(), z.unknown())
94
+ });
95
+ var ArtifactComponentApiInsertSchema = z.object({
96
+ id: z.string().optional(),
97
+ name: z.string(),
98
+ description: z.string().optional(),
99
+ summaryProps: z.record(z.string(), z.unknown()),
100
+ fullProps: z.record(z.string(), z.unknown())
101
+ });
102
+ var ContextConfigApiInsertSchema = z.object({
103
+ id: z.string().optional(),
104
+ name: z.string().optional(),
105
+ description: z.string().optional(),
106
+ type: z.string().optional(),
107
+ config: z.record(z.string(), z.unknown()).optional()
108
+ });
109
+ var ExternalAgentApiInsertSchema = z.object({
110
+ id: z.string().optional(),
111
+ name: z.string(),
112
+ description: z.string().optional(),
113
+ baseUrl: z.string(),
114
+ type: z.literal("external").optional()
115
+ });
116
+ var AgentGraphApiInsertSchema = z.object({
117
+ id: z.string().optional(),
118
+ name: z.string(),
119
+ description: z.string().optional(),
120
+ defaultAgentId: z.string().optional()
121
+ });
122
+ var FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
123
+ agents: z.record(
124
+ z.string(),
125
+ z.union([
126
+ AgentApiInsertSchema.extend({
127
+ id: z.string(),
128
+ tools: z.array(z.string()),
129
+ dataComponents: z.array(z.string()).optional(),
130
+ artifactComponents: z.array(z.string()).optional(),
131
+ canTransferTo: z.array(z.string()).optional(),
132
+ canDelegateTo: z.array(z.string()).optional(),
133
+ type: z.enum(["internal", "external"]).optional(),
134
+ models: z.object({
135
+ base: z.object({
186
136
  model: z.string(),
187
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
188
- })
189
- .optional(),
190
- structuredOutput: z
191
- .object({
137
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
138
+ }).optional(),
139
+ structuredOutput: z.object({
192
140
  model: z.string(),
193
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
194
- })
195
- .optional(),
196
- summarizer: z
197
- .object({
141
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
142
+ }).optional(),
143
+ summarizer: z.object({
198
144
  model: z.string(),
199
- providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
200
- })
201
- .optional(),
202
- })
203
- .optional(),
204
- stopWhen: z
205
- .object({
206
- transferCountIs: z.number().min(1).max(100).optional(),
207
- })
208
- .optional(),
209
- graphPrompt: z.string().max(5000).optional(),
210
- statusUpdates: z
211
- .object({
212
- enabled: z.boolean().optional(),
213
- numEvents: z.number().min(1).max(100).optional(),
214
- timeInSeconds: z.number().min(1).max(600).optional(),
215
- prompt: z.string().max(2000).optional(),
216
- statusComponents: z
217
- .array(z.object({
218
- type: z.string(),
219
- description: z.string().optional(),
220
- detailsSchema: z
221
- .object({
222
- type: z.literal('object'),
223
- properties: z.record(z.string(), z.any()),
224
- required: z.array(z.string()).optional(),
225
- })
226
- .optional(),
227
- }))
228
- .optional(),
229
- })
230
- .optional(),
231
- });
232
- // Resource ID validation utilities (client-safe)
233
- export const MIN_ID_LENGTH = 1;
234
- export const MAX_ID_LENGTH = 255;
235
- export const URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
236
- export const resourceIdSchema = z
237
- .string()
238
- .min(MIN_ID_LENGTH)
239
- .max(MAX_ID_LENGTH)
240
- .regex(URL_SAFE_ID_PATTERN, {
241
- message: 'ID must contain only letters, numbers, hyphens, underscores, and dots',
242
- });
243
- // ID generation utility
244
- export function generateIdFromName(name) {
245
- return name
246
- .toLowerCase()
247
- .replace(/[^a-zA-Z0-9]/g, '-')
248
- .replace(/-+/g, '-')
249
- .replace(/^-|-$/g, '')
250
- .slice(0, MAX_ID_LENGTH);
145
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
146
+ }).optional()
147
+ }).optional()
148
+ }),
149
+ ExternalAgentApiInsertSchema.extend({
150
+ id: z.string()
151
+ })
152
+ ])
153
+ ),
154
+ tools: z.record(z.string(), ToolApiInsertSchema),
155
+ credentialReferences: z.array(CredentialReferenceApiInsertSchema).optional(),
156
+ dataComponents: z.record(z.string(), DataComponentApiInsertSchema).optional(),
157
+ artifactComponents: z.record(z.string(), ArtifactComponentApiInsertSchema).optional(),
158
+ contextConfig: z.optional(ContextConfigApiInsertSchema),
159
+ models: z.object({
160
+ base: z.object({
161
+ model: z.string(),
162
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
163
+ }).optional(),
164
+ structuredOutput: z.object({
165
+ model: z.string(),
166
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
167
+ }).optional(),
168
+ summarizer: z.object({
169
+ model: z.string(),
170
+ providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
171
+ }).optional()
172
+ }).optional(),
173
+ stopWhen: z.object({
174
+ transferCountIs: z.number().min(1).max(100).optional()
175
+ }).optional(),
176
+ graphPrompt: z.string().max(5e3).optional(),
177
+ statusUpdates: z.object({
178
+ enabled: z.boolean().optional(),
179
+ numEvents: z.number().min(1).max(100).optional(),
180
+ timeInSeconds: z.number().min(1).max(600).optional(),
181
+ prompt: z.string().max(2e3).optional(),
182
+ statusComponents: z.array(
183
+ z.object({
184
+ type: z.string(),
185
+ description: z.string().optional(),
186
+ detailsSchema: z.object({
187
+ type: z.literal("object"),
188
+ properties: z.record(z.string(), z.any()),
189
+ required: z.array(z.string()).optional()
190
+ }).optional()
191
+ })
192
+ ).optional()
193
+ }).optional()
194
+ });
195
+ var MIN_ID_LENGTH = 1;
196
+ var MAX_ID_LENGTH = 255;
197
+ var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
198
+ var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
199
+ message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
200
+ });
201
+ function generateIdFromName(name) {
202
+ return name.toLowerCase().replace(/[^a-zA-Z0-9]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_ID_LENGTH);
251
203
  }
252
- //# sourceMappingURL=client-exports.js.map
204
+
205
+ export { AgentApiInsertSchema, AgentGraphApiInsertSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FullGraphDefinitionSchema, IdParamsSchema, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };