@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.
- package/dist/chunk-BIIFENNH.js +11 -0
- package/dist/chunk-H2F72PDA.js +15 -0
- package/dist/chunk-MKBO26DX.js +9 -0
- package/dist/chunk-ODONDMHT.js +665 -0
- package/dist/chunk-TSPWAF64.js +821 -0
- package/dist/client-exports.cjs +232 -0
- package/dist/client-exports.d.cts +302 -0
- package/dist/client-exports.d.ts +46 -43
- package/dist/client-exports.js +200 -247
- package/dist/db/schema.cjs +818 -0
- package/dist/db/schema.d.cts +7 -0
- package/dist/db/schema.d.ts +7 -4335
- package/dist/db/schema.js +1 -696
- package/dist/index.cjs +9809 -0
- package/dist/index.d.cts +3992 -0
- package/dist/index.d.ts +3992 -12
- package/dist/index.js +7807 -13
- package/dist/schema-B5YbTpz8.d.ts +4382 -0
- package/dist/schema-E0ulMd3k.d.cts +4382 -0
- package/dist/types/index.cjs +29 -0
- package/dist/types/index.d.cts +123 -0
- package/dist/types/index.d.ts +123 -5
- package/dist/types/index.js +2 -6
- package/dist/{validation/schemas.d.ts → utility-D2Lb-YAS.d.cts} +1350 -617
- package/dist/utility-D2Lb-YAS.d.ts +7946 -0
- package/dist/validation/index.cjs +1617 -0
- package/dist/validation/index.d.cts +63 -0
- package/dist/validation/index.d.ts +63 -4
- package/dist/validation/index.js +1 -5
- package/package.json +2 -2
- package/dist/__tests__/integration/helpers.d.ts +0 -5
- package/dist/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/__tests__/integration/helpers.js +0 -37
- package/dist/__tests__/integration/helpers.js.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -3
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/setup.js +0 -29
- package/dist/__tests__/setup.js.map +0 -1
- package/dist/client-exports.d.ts.map +0 -1
- package/dist/client-exports.js.map +0 -1
- package/dist/context/ContextConfig.d.ts +0 -54
- package/dist/context/ContextConfig.d.ts.map +0 -1
- package/dist/context/ContextConfig.js +0 -302
- package/dist/context/ContextConfig.js.map +0 -1
- package/dist/context/ContextFetcher.d.ts +0 -64
- package/dist/context/ContextFetcher.d.ts.map +0 -1
- package/dist/context/ContextFetcher.js +0 -325
- package/dist/context/ContextFetcher.js.map +0 -1
- package/dist/context/ContextResolver.d.ts +0 -52
- package/dist/context/ContextResolver.d.ts.map +0 -1
- package/dist/context/ContextResolver.js +0 -298
- package/dist/context/ContextResolver.js.map +0 -1
- package/dist/context/TemplateEngine.d.ts +0 -46
- package/dist/context/TemplateEngine.d.ts.map +0 -1
- package/dist/context/TemplateEngine.js +0 -175
- package/dist/context/TemplateEngine.js.map +0 -1
- package/dist/context/context.d.ts +0 -8
- package/dist/context/context.d.ts.map +0 -1
- package/dist/context/context.js +0 -157
- package/dist/context/context.js.map +0 -1
- package/dist/context/contextCache.d.ts +0 -50
- package/dist/context/contextCache.d.ts.map +0 -1
- package/dist/context/contextCache.js +0 -175
- package/dist/context/contextCache.js.map +0 -1
- package/dist/context/index.d.ts +0 -11
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -8
- package/dist/context/index.js.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.d.ts +0 -39
- package/dist/credential-stores/CredentialStoreRegistry.d.ts.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.js +0 -65
- package/dist/credential-stores/CredentialStoreRegistry.js.map +0 -1
- package/dist/credential-stores/defaults.d.ts +0 -6
- package/dist/credential-stores/defaults.d.ts.map +0 -1
- package/dist/credential-stores/defaults.js +0 -22
- package/dist/credential-stores/defaults.js.map +0 -1
- package/dist/credential-stores/index.d.ts +0 -6
- package/dist/credential-stores/index.d.ts.map +0 -1
- package/dist/credential-stores/index.js +0 -6
- package/dist/credential-stores/index.js.map +0 -1
- package/dist/credential-stores/keychain-store.d.ts +0 -100
- package/dist/credential-stores/keychain-store.d.ts.map +0 -1
- package/dist/credential-stores/keychain-store.js +0 -225
- package/dist/credential-stores/keychain-store.js.map +0 -1
- package/dist/credential-stores/memory-store.d.ts +0 -39
- package/dist/credential-stores/memory-store.d.ts.map +0 -1
- package/dist/credential-stores/memory-store.js +0 -58
- package/dist/credential-stores/memory-store.js.map +0 -1
- package/dist/credential-stores/nango-store.d.ts +0 -59
- package/dist/credential-stores/nango-store.d.ts.map +0 -1
- package/dist/credential-stores/nango-store.js +0 -264
- package/dist/credential-stores/nango-store.js.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.d.ts +0 -80
- package/dist/credential-stuffer/CredentialStuffer.d.ts.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.js +0 -186
- package/dist/credential-stuffer/CredentialStuffer.js.map +0 -1
- package/dist/credential-stuffer/index.d.ts +0 -2
- package/dist/credential-stuffer/index.d.ts.map +0 -1
- package/dist/credential-stuffer/index.js +0 -2
- package/dist/credential-stuffer/index.js.map +0 -1
- package/dist/data-access/agentDataComponents.d.ts +0 -1
- package/dist/data-access/agentDataComponents.d.ts.map +0 -1
- package/dist/data-access/agentDataComponents.js +0 -2
- package/dist/data-access/agentDataComponents.js.map +0 -1
- package/dist/data-access/agentGraphs.d.ts +0 -399
- package/dist/data-access/agentGraphs.d.ts.map +0 -1
- package/dist/data-access/agentGraphs.js +0 -551
- package/dist/data-access/agentGraphs.js.map +0 -1
- package/dist/data-access/agentRelations.d.ts +0 -456
- package/dist/data-access/agentRelations.d.ts.map +0 -1
- package/dist/data-access/agentRelations.js +0 -471
- package/dist/data-access/agentRelations.js.map +0 -1
- package/dist/data-access/agents.d.ts +0 -218
- package/dist/data-access/agents.d.ts.map +0 -1
- package/dist/data-access/agents.js +0 -130
- package/dist/data-access/agents.js.map +0 -1
- package/dist/data-access/apiKeys.d.ts +0 -114
- package/dist/data-access/apiKeys.d.ts.map +0 -1
- package/dist/data-access/apiKeys.js +0 -185
- package/dist/data-access/apiKeys.js.map +0 -1
- package/dist/data-access/artifactComponents.d.ts +0 -152
- package/dist/data-access/artifactComponents.d.ts.map +0 -1
- package/dist/data-access/artifactComponents.js +0 -214
- package/dist/data-access/artifactComponents.js.map +0 -1
- package/dist/data-access/contextCache.d.ts +0 -68
- package/dist/data-access/contextCache.d.ts.map +0 -1
- package/dist/data-access/contextCache.js +0 -135
- package/dist/data-access/contextCache.js.map +0 -1
- package/dist/data-access/contextConfigs.d.ts +0 -110
- package/dist/data-access/contextConfigs.d.ts.map +0 -1
- package/dist/data-access/contextConfigs.js +0 -156
- package/dist/data-access/contextConfigs.js.map +0 -1
- package/dist/data-access/conversations.d.ts +0 -125
- package/dist/data-access/conversations.d.ts.map +0 -1
- package/dist/data-access/conversations.js +0 -244
- package/dist/data-access/conversations.js.map +0 -1
- package/dist/data-access/credentialReferences.d.ts +0 -86
- package/dist/data-access/credentialReferences.d.ts.map +0 -1
- package/dist/data-access/credentialReferences.js +0 -175
- package/dist/data-access/credentialReferences.js.map +0 -1
- package/dist/data-access/dataComponents.d.ts +0 -129
- package/dist/data-access/dataComponents.d.ts.map +0 -1
- package/dist/data-access/dataComponents.js +0 -213
- package/dist/data-access/dataComponents.js.map +0 -1
- package/dist/data-access/externalAgents.d.ts +0 -83
- package/dist/data-access/externalAgents.d.ts.map +0 -1
- package/dist/data-access/externalAgents.js +0 -163
- package/dist/data-access/externalAgents.js.map +0 -1
- package/dist/data-access/graphFull.d.ts +0 -32
- package/dist/data-access/graphFull.d.ts.map +0 -1
- package/dist/data-access/graphFull.js +0 -996
- package/dist/data-access/graphFull.js.map +0 -1
- package/dist/data-access/index.d.ts +0 -21
- package/dist/data-access/index.d.ts.map +0 -1
- package/dist/data-access/index.js +0 -22
- package/dist/data-access/index.js.map +0 -1
- package/dist/data-access/ledgerArtifacts.d.ts +0 -49
- package/dist/data-access/ledgerArtifacts.d.ts.map +0 -1
- package/dist/data-access/ledgerArtifacts.js +0 -112
- package/dist/data-access/ledgerArtifacts.js.map +0 -1
- package/dist/data-access/messages.d.ts +0 -209
- package/dist/data-access/messages.d.ts.map +0 -1
- package/dist/data-access/messages.js +0 -100
- package/dist/data-access/messages.js.map +0 -1
- package/dist/data-access/projects.d.ts +0 -67
- package/dist/data-access/projects.d.ts.map +0 -1
- package/dist/data-access/projects.js +0 -337
- package/dist/data-access/projects.js.map +0 -1
- package/dist/data-access/tasks.d.ts +0 -37
- package/dist/data-access/tasks.d.ts.map +0 -1
- package/dist/data-access/tasks.js +0 -40
- package/dist/data-access/tasks.js.map +0 -1
- package/dist/data-access/tools.d.ts +0 -277
- package/dist/data-access/tools.d.ts.map +0 -1
- package/dist/data-access/tools.js +0 -183
- package/dist/data-access/tools.js.map +0 -1
- package/dist/data-access/validation.d.ts +0 -17
- package/dist/data-access/validation.d.ts.map +0 -1
- package/dist/data-access/validation.js +0 -52
- package/dist/data-access/validation.js.map +0 -1
- package/dist/db/clean.d.ts +0 -6
- package/dist/db/clean.d.ts.map +0 -1
- package/dist/db/clean.js +0 -81
- package/dist/db/clean.js.map +0 -1
- package/dist/db/client.d.ts +0 -19
- package/dist/db/client.d.ts.map +0 -1
- package/dist/db/client.js +0 -24
- package/dist/db/client.js.map +0 -1
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/schema.js.map +0 -1
- package/dist/db/test-client.d.ts +0 -25
- package/dist/db/test-client.d.ts.map +0 -1
- package/dist/db/test-client.js +0 -136
- package/dist/db/test-client.js.map +0 -1
- package/dist/env.d.ts +0 -19
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -49
- package/dist/env.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware/contextValidation.d.ts +0 -49
- package/dist/middleware/contextValidation.d.ts.map +0 -1
- package/dist/middleware/contextValidation.js +0 -473
- package/dist/middleware/contextValidation.js.map +0 -1
- package/dist/middleware/index.d.ts +0 -2
- package/dist/middleware/index.d.ts.map +0 -1
- package/dist/middleware/index.js +0 -2
- package/dist/middleware/index.js.map +0 -1
- package/dist/types/a2a.d.ts +0 -373
- package/dist/types/a2a.d.ts.map +0 -1
- package/dist/types/a2a.js +0 -14
- package/dist/types/a2a.js.map +0 -1
- package/dist/types/entities.d.ts +0 -147
- package/dist/types/entities.d.ts.map +0 -1
- package/dist/types/entities.js +0 -2
- package/dist/types/entities.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/server.d.ts +0 -116
- package/dist/types/server.d.ts.map +0 -1
- package/dist/types/server.js +0 -2
- package/dist/types/server.js.map +0 -1
- package/dist/types/utility.d.ts +0 -213
- package/dist/types/utility.d.ts.map +0 -1
- package/dist/types/utility.js +0 -9
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/apiKeys.d.ts +0 -32
- package/dist/utils/apiKeys.d.ts.map +0 -1
- package/dist/utils/apiKeys.js +0 -117
- package/dist/utils/apiKeys.js.map +0 -1
- package/dist/utils/auth-detection.d.ts +0 -23
- package/dist/utils/auth-detection.d.ts.map +0 -1
- package/dist/utils/auth-detection.js +0 -148
- package/dist/utils/auth-detection.js.map +0 -1
- package/dist/utils/credential-store-utils.d.ts +0 -11
- package/dist/utils/credential-store-utils.d.ts.map +0 -1
- package/dist/utils/credential-store-utils.js +0 -19
- package/dist/utils/credential-store-utils.js.map +0 -1
- package/dist/utils/error.d.ts +0 -526
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.js +0 -282
- package/dist/utils/error.js.map +0 -1
- package/dist/utils/execution.d.ts +0 -18
- package/dist/utils/execution.d.ts.map +0 -1
- package/dist/utils/execution.js +0 -25
- package/dist/utils/execution.js.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -79
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -102
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/logging.d.ts +0 -11
- package/dist/utils/logging.d.ts.map +0 -1
- package/dist/utils/logging.js +0 -6
- package/dist/utils/logging.js.map +0 -1
- package/dist/utils/mcp-client.d.ts +0 -48
- package/dist/utils/mcp-client.d.ts.map +0 -1
- package/dist/utils/mcp-client.js +0 -174
- package/dist/utils/mcp-client.js.map +0 -1
- package/dist/utils/tracer.d.ts +0 -24
- package/dist/utils/tracer.d.ts.map +0 -1
- package/dist/utils/tracer.js +0 -110
- package/dist/utils/tracer.js.map +0 -1
- package/dist/validation/graphFull.d.ts +0 -36
- package/dist/validation/graphFull.d.ts.map +0 -1
- package/dist/validation/graphFull.js +0 -128
- package/dist/validation/graphFull.js.map +0 -1
- package/dist/validation/id-validation.d.ts +0 -38
- package/dist/validation/id-validation.d.ts.map +0 -1
- package/dist/validation/id-validation.js +0 -60
- package/dist/validation/id-validation.js.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/schemas.d.ts.map +0 -1
- package/dist/validation/schemas.js +0 -576
- package/dist/validation/schemas.js.map +0 -1
package/dist/client-exports.d.ts
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
declare const TenantParamsSchema: z.ZodObject<{
|
|
10
12
|
tenantId: z.ZodString;
|
|
11
13
|
}, z.core.$strip>;
|
|
12
|
-
|
|
14
|
+
declare const TenantProjectParamsSchema: z.ZodObject<{
|
|
13
15
|
tenantId: z.ZodString;
|
|
14
16
|
projectId: z.ZodString;
|
|
15
17
|
}, z.core.$strip>;
|
|
16
|
-
|
|
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
|
-
|
|
23
|
+
declare const IdParamsSchema: z.ZodObject<{
|
|
22
24
|
id: z.ZodString;
|
|
23
25
|
}, z.core.$strip>;
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
41
|
+
declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
|
|
40
42
|
data: T;
|
|
41
43
|
}, z.core.$strip>;
|
|
42
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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 };
|
package/dist/client-exports.js
CHANGED
|
@@ -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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
//
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
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 };
|