@inkeep/agents-core 0.35.1 → 0.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/auth/auth-schema.d.ts +1097 -0
  2. package/dist/auth/auth-schema.js +1 -0
  3. package/dist/auth/auth-validation-schemas.d.ts +1881 -0
  4. package/dist/auth/auth-validation-schemas.js +39 -0
  5. package/dist/auth/auth.d.ts +118 -0
  6. package/dist/auth/auth.js +95 -0
  7. package/dist/auth/permissions.d.ts +273 -0
  8. package/dist/auth/permissions.js +1 -0
  9. package/dist/chunk-4JZT4QEE.js +162 -0
  10. package/dist/chunk-F5WWOOIX.js +62 -0
  11. package/dist/{chunk-YZ5ZBVHJ.js → chunk-NFYCSHD3.js} +3 -81
  12. package/dist/chunk-NOPEANIU.js +82 -0
  13. package/dist/{chunk-J5AHY6M2.js → chunk-SPRTYWRV.js} +1 -1
  14. package/dist/{chunk-OP3KPT4T.js → chunk-TGESM3JG.js} +1 -160
  15. package/dist/{chunk-DYGTCLJO.js → chunk-VBCCPAZK.js} +1 -1
  16. package/dist/chunk-ZYSTJ4XY.js +948 -0
  17. package/dist/client-CPYOMZF2.d.ts +19 -0
  18. package/dist/client-exports.js +4 -3
  19. package/dist/db/schema.d.ts +2 -1
  20. package/dist/db/schema.js +2 -1
  21. package/dist/index.d.ts +9 -154
  22. package/dist/index.js +1565 -2498
  23. package/dist/{schema-BWd551GM.d.ts → schema-5N2lPWNV.d.ts} +2 -1095
  24. package/dist/validation/index.js +2 -2
  25. package/package.json +17 -1
  26. package/dist/auth-detection-CGqhPDnj.d.cts +0 -435
  27. package/dist/client-exports.cjs +0 -2833
  28. package/dist/client-exports.d.cts +0 -289
  29. package/dist/constants/models.cjs +0 -40
  30. package/dist/constants/models.d.cts +0 -42
  31. package/dist/db/schema.cjs +0 -1090
  32. package/dist/db/schema.d.cts +0 -7
  33. package/dist/index.cjs +0 -227898
  34. package/dist/index.d.cts +0 -4893
  35. package/dist/props-validation-BMR1qNiy.d.cts +0 -15
  36. package/dist/schema-D4WR42em.d.cts +0 -6352
  37. package/dist/types/index.cjs +0 -39
  38. package/dist/types/index.d.cts +0 -132
  39. package/dist/utility-DbltUp2Q.d.cts +0 -17079
  40. package/dist/utils/schema-conversion.cjs +0 -232
  41. package/dist/utils/schema-conversion.d.cts +0 -26
  42. package/dist/validation/index.cjs +0 -2930
  43. package/dist/validation/index.d.cts +0 -279
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- // src/types/a2a.ts
4
- var TaskState = /* @__PURE__ */ ((TaskState2) => {
5
- TaskState2["Submitted"] = "submitted";
6
- TaskState2["Working"] = "working";
7
- TaskState2["InputRequired"] = "input-required";
8
- TaskState2["Completed"] = "completed";
9
- TaskState2["Canceled"] = "canceled";
10
- TaskState2["Failed"] = "failed";
11
- TaskState2["Rejected"] = "rejected";
12
- TaskState2["AuthRequired"] = "auth-required";
13
- TaskState2["Unknown"] = "unknown";
14
- return TaskState2;
15
- })(TaskState || {});
16
-
17
- // src/types/utility.ts
18
- var TOOL_STATUS_VALUES = ["healthy", "unhealthy", "unknown", "needs_auth"];
19
- var VALID_RELATION_TYPES = ["transfer", "delegate"];
20
- var MCPTransportType = {
21
- streamableHttp: "streamable_http",
22
- sse: "sse"
23
- };
24
- var MCPServerType = {
25
- nango: "nango",
26
- generic: "generic"
27
- };
28
- var CredentialStoreType = {
29
- memory: "memory",
30
- keychain: "keychain",
31
- nango: "nango"
32
- };
33
-
34
- exports.CredentialStoreType = CredentialStoreType;
35
- exports.MCPServerType = MCPServerType;
36
- exports.MCPTransportType = MCPTransportType;
37
- exports.TOOL_STATUS_VALUES = TOOL_STATUS_VALUES;
38
- exports.TaskState = TaskState;
39
- exports.VALID_RELATION_TYPES = VALID_RELATION_TYPES;
@@ -1,132 +0,0 @@
1
- import { h as CredentialStoreType } from '../utility-DbltUp2Q.cjs';
2
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, bU as AgentApiSelect, bW as AgentApiUpdate, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, y as AgentInsert, aI as AgentProvider, w as AgentScopeConfig, B as AgentSelect, aJ as AgentSkill, z as AgentUpdate, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, cR as ApiKeyApiInsert, cQ as ApiKeyApiSelect, cS as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cE as ArtifactComponentApiInsert, cD as ArtifactComponentApiSelect, cF as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, cr as ContextCacheApiSelect, ct as ContextCacheApiUpdate, dy as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, cq as ContextCacheUpdate, cm as ContextConfigApiInsert, cl as ContextConfigApiSelect, cn as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cf as ConversationApiInsert, ce as ConversationApiSelect, cg as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dw as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cU as CredentialReferenceApiSelect, cV as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Y as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cv as DataComponentApiInsert, cu as DataComponentApiSelect, cw as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, aF as DataPart, ay as ExecutionContext, cN as ExternalAgentApiInsert, cM as ExternalAgentApiSelect, cO as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, _ as ExternalAgentSelect, a5 as ExternalAgentUpdate, bT as ExternalSubAgentRelationApiInsert, bS as ExternalSubAgentRelationInsert, cp as FetchConfig, co as FetchDefinition, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, v as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, cb as FunctionApiSelect, cc as FunctionApiUpdate, c9 as FunctionInsert, c8 as FunctionSelect, a7 as FunctionToolApiInsert, cd as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, ca as FunctionUpdate, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, db as LedgerArtifactApiSelect, dd as LedgerArtifactApiUpdate, d9 as LedgerArtifactInsert, aa as LedgerArtifactSelect, da as LedgerArtifactUpdate, dG as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, av as McpTool, dD as McpToolDefinition, dB as McpTransportConfig, aW as Message, cj as MessageApiInsert, ci as MessageApiSelect, ck as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, dr as MessageMode, bI as MessagePart, dq as MessageRole, ch as MessageSelect, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ad as MessageUpdate, ab as MessageVisibility, b1 as MethodNotFoundError, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, x as PaginationConfig, ah as PaginationResult, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, dj as ProjectApiSelect, dl as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dt as ProjectModels, ai as ProjectResourceCounts, u as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, dv as StatusComponent, du as StatusUpdateSettings, bL as SubAgentApiInsert, bK as SubAgentApiSelect, bM as SubAgentApiUpdate, cK as SubAgentArtifactComponentApiInsert, cJ as SubAgentArtifactComponentApiSelect, cL as SubAgentArtifactComponentApiUpdate, cH as SubAgentArtifactComponentInsert, cG as SubAgentArtifactComponentSelect, cI as SubAgentArtifactComponentUpdate, cB as SubAgentDataComponentApiInsert, cA as SubAgentDataComponentApiSelect, cC as SubAgentDataComponentApiUpdate, cy as SubAgentDataComponentInsert, cx as SubAgentDataComponentSelect, cz as SubAgentDataComponentUpdate, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, d1 as SubAgentExternalAgentRelationApiSelect, d3 as SubAgentExternalAgentRelationApiUpdate, al as SubAgentExternalAgentRelationInsert, c$ as SubAgentExternalAgentRelationSelect, d0 as SubAgentExternalAgentRelationUpdate, ap as SubAgentInsert, bP as SubAgentRelationApiInsert, bO as SubAgentRelationApiSelect, bQ as SubAgentRelationApiUpdate, am as SubAgentRelationInsert, bR as SubAgentRelationQuery, bN as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, d7 as SubAgentTeamAgentRelationApiInsert, d6 as SubAgentTeamAgentRelationApiSelect, d8 as SubAgentTeamAgentRelationApiUpdate, as as SubAgentTeamAgentRelationInsert, d4 as SubAgentTeamAgentRelationSelect, d5 as SubAgentTeamAgentRelationUpdate, cZ as SubAgentToolRelationApiInsert, cY as SubAgentToolRelationApiSelect, c_ as SubAgentToolRelationApiUpdate, cX as SubAgentToolRelationInsert, cW as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, bY as TaskApiSelect, b_ as TaskApiUpdate, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, at as TaskInsert, T as TaskMetadataConfig, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, c2 as TaskRelationApiSelect, c4 as TaskRelationApiUpdate, c0 as TaskRelationInsert, b$ as TaskRelationSelect, c1 as TaskRelationUpdate, bt as TaskResubscriptionRequest, au as TaskSelect, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, aA as TextPart, c6 as ToolApiInsert, c5 as ToolApiSelect, c7 as ToolApiUpdate, di as ToolDefinition, aw as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, ax as ToolUpdate, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES } from '../utility-DbltUp2Q.cjs';
3
- import { Context } from 'hono';
4
- import 'zod';
5
- import 'drizzle-zod';
6
- import 'drizzle-orm/pg-core';
7
- import '@hono/zod-openapi';
8
-
9
- /**
10
- * Credential store interface for managing different types of credentials
11
- */
12
- interface CredentialStore {
13
- /**
14
- * Unique identifier for this credential store
15
- */
16
- id: string;
17
- /**
18
- * Type of credential store
19
- */
20
- type: keyof typeof CredentialStoreType;
21
- /**
22
- * Get a credential by key
23
- */
24
- get(key: string): Promise<string | null>;
25
- /**
26
- * Set a credential
27
- */
28
- set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
29
- /**
30
- * Check if a credential exists
31
- */
32
- has(key: string): Promise<boolean>;
33
- /**
34
- * Delete a credential
35
- */
36
- delete(key: string): Promise<boolean>;
37
- /**
38
- * Check if the credential store is available and functional
39
- * @returns Promise resolving to availability status and optional reason if unavailable
40
- */
41
- checkAvailability(): Promise<{
42
- available: boolean;
43
- reason?: string;
44
- }>;
45
- }
46
- /**
47
- * Server configuration options for HTTP server behavior
48
- * These settings control connection management, timeouts, and server behavior
49
- */
50
- interface ServerOptions {
51
- /**
52
- * Server port to listen on
53
- * Default: 3000
54
- */
55
- port?: number;
56
- /**
57
- * Keep alive timeout in milliseconds
58
- * Time to wait for additional data after the last response before closing the connection.
59
- * Used for persistent connections to improve performance by reusing connections.
60
- * Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
61
- * Default: 60000ms (60 seconds)
62
- */
63
- keepAliveTimeout?: number;
64
- /**
65
- * Enable keep alive connections
66
- * When true, allows connection reuse for multiple requests.
67
- * Improves performance but uses more server resources.
68
- * Scenario: Enable for APIs with frequent requests, disable for one-off services.
69
- * Default: true
70
- */
71
- keepAlive?: boolean;
72
- /**
73
- * Request timeout in milliseconds
74
- * Maximum time to wait for a complete request from the client.
75
- * Helps prevent DoS attacks by limiting resource consumption from slow clients.
76
- * Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
77
- * Default: 60000ms (60 seconds)
78
- */
79
- requestTimeout?: number;
80
- }
81
- /**
82
- * CORS configuration compatible with Hono's CORSOptions
83
- */
84
- interface CorsConfig {
85
- /**
86
- * Allowed origins - string, array of strings, or function
87
- */
88
- origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
89
- /**
90
- * Allowed methods
91
- */
92
- allowMethods?: string[];
93
- /**
94
- * Allowed headers
95
- */
96
- allowHeaders?: string[];
97
- /**
98
- * Exposed headers
99
- */
100
- exposeHeaders?: string[];
101
- /**
102
- * Max age for preflight requests
103
- */
104
- maxAge?: number;
105
- /**
106
- * Whether to allow credentials
107
- */
108
- credentials?: boolean;
109
- }
110
- /**
111
- * Base server configuration for all Inkeep services
112
- */
113
- interface ServerConfig {
114
- /**
115
- * Server port to listen on
116
- */
117
- port?: number;
118
- /**
119
- * Server options for HTTP behavior
120
- */
121
- serverOptions?: ServerOptions;
122
- /**
123
- * Array of credential stores for managing API keys, tokens, etc.
124
- */
125
- credentialStores?: CredentialStore[];
126
- /**
127
- * CORS configuration
128
- */
129
- cors?: CorsConfig;
130
- }
131
-
132
- export { type CorsConfig, type CredentialStore, CredentialStoreType, type ServerConfig, type ServerOptions };