@inkeep/agents-core 0.0.0-dev-20260124111014 → 0.0.0-dev-20260125001234

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 (34) hide show
  1. package/dist/auth/auth-schema.d.ts +82 -82
  2. package/dist/auth/auth-validation-schemas.d.ts +129 -129
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/index.d.ts +2 -2
  6. package/dist/data-access/index.js +2 -2
  7. package/dist/data-access/manage/agents.d.ts +41 -41
  8. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  11. package/dist/data-access/manage/functionTools.d.ts +18 -18
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +15 -15
  16. package/dist/data-access/manage/tools.d.ts +37 -31
  17. package/dist/data-access/manage/tools.js +24 -7
  18. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  19. package/dist/data-access/runtime/conversations.d.ts +31 -31
  20. package/dist/data-access/runtime/messages.d.ts +9 -9
  21. package/dist/data-access/runtime/tasks.d.ts +6 -6
  22. package/dist/db/manage/manage-schema.d.ts +377 -377
  23. package/dist/db/runtime/runtime-schema.d.ts +181 -181
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.js +3 -3
  26. package/dist/utils/index.d.ts +2 -2
  27. package/dist/utils/index.js +2 -2
  28. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +13 -1
  29. package/dist/utils/third-party-mcp-servers/composio-client.js +24 -6
  30. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  31. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  32. package/dist/validation/dolt-schemas.d.ts +1 -1
  33. package/dist/validation/schemas.d.ts +1320 -1320
  34. package/package.json +1 -1
@@ -7,24 +7,30 @@ import "../../index.js";
7
7
  import { McpTool, ToolInsert, ToolSelect, ToolUpdate } from "../../types/entities.js";
8
8
 
9
9
  //#region src/data-access/manage/tools.d.ts
10
+ /**
11
+ * Convert DB result to McpTool skeleton WITHOUT MCP discovery.
12
+ * This is a fast path that returns status='unknown' and empty availableTools.
13
+ * Use this for list views where you want instant page load.
14
+ */
15
+ declare const dbResultToMcpToolSkeleton: (dbResult: ToolSelect, relationshipId?: string) => McpTool;
10
16
  declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: AgentsManageDatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string, userId?: string) => Promise<McpTool>;
11
17
  declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
18
  scopes: ProjectScopeConfig;
13
19
  toolId: string;
14
20
  }) => Promise<{
21
+ tenantId: string;
22
+ projectId: string;
15
23
  id: string;
16
24
  name: string;
17
- createdAt: string;
18
- updatedAt: string;
19
25
  description: string | null;
20
- headers: Record<string, string> | null;
21
- projectId: string;
22
- tenantId: string;
23
26
  config: {
24
27
  type: "mcp";
25
28
  mcp: ToolMcpConfig;
26
29
  };
27
30
  credentialReferenceId: string | null;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ headers: Record<string, string> | null;
28
34
  credentialScope: string;
29
35
  imageUrl: string | null;
30
36
  capabilities: ToolServerCapabilities | null;
@@ -68,19 +74,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
68
74
  };
69
75
  }>;
70
76
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
77
+ tenantId: string;
78
+ projectId: string;
71
79
  id: string;
72
80
  name: string;
73
- createdAt: string;
74
- updatedAt: string;
75
81
  description: string | null;
76
- headers: Record<string, string> | null;
77
- projectId: string;
78
- tenantId: string;
79
82
  config: {
80
83
  type: "mcp";
81
84
  mcp: ToolMcpConfig;
82
85
  };
83
86
  credentialReferenceId: string | null;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ headers: Record<string, string> | null;
84
90
  credentialScope: string;
85
91
  imageUrl: string | null;
86
92
  capabilities: ToolServerCapabilities | null;
@@ -123,18 +129,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
123
129
  needsApproval?: boolean;
124
130
  }> | null;
125
131
  }) => Promise<{
132
+ tenantId: string;
133
+ projectId: string;
126
134
  id: string;
135
+ agentId: string;
127
136
  createdAt: string;
128
137
  updatedAt: string;
138
+ toolId: string;
129
139
  headers: Record<string, string> | null;
130
- agentId: string;
131
- projectId: string;
132
- tenantId: string;
133
- subAgentId: string;
134
140
  toolPolicies: Record<string, {
135
141
  needsApproval?: boolean;
136
142
  }> | null;
137
- toolId: string;
143
+ subAgentId: string;
138
144
  selectedTools: string[] | null;
139
145
  }>;
140
146
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -142,18 +148,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
142
148
  subAgentId: string;
143
149
  toolId: string;
144
150
  }) => Promise<{
151
+ tenantId: string;
152
+ projectId: string;
145
153
  id: string;
154
+ agentId: string;
146
155
  createdAt: string;
147
156
  updatedAt: string;
157
+ toolId: string;
148
158
  headers: Record<string, string> | null;
149
- agentId: string;
150
- projectId: string;
151
- tenantId: string;
152
- subAgentId: string;
153
159
  toolPolicies: Record<string, {
154
160
  needsApproval?: boolean;
155
161
  }> | null;
156
- toolId: string;
162
+ subAgentId: string;
157
163
  selectedTools: string[] | null;
158
164
  }>;
159
165
  /**
@@ -170,18 +176,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
170
176
  }> | null;
171
177
  relationId?: string;
172
178
  }) => Promise<{
179
+ tenantId: string;
180
+ projectId: string;
173
181
  id: string;
182
+ agentId: string;
174
183
  createdAt: string;
175
184
  updatedAt: string;
185
+ toolId: string;
176
186
  headers: Record<string, string> | null;
177
- agentId: string;
178
- projectId: string;
179
- tenantId: string;
180
- subAgentId: string;
181
187
  toolPolicies: Record<string, {
182
188
  needsApproval?: boolean;
183
189
  }> | null;
184
- toolId: string;
190
+ subAgentId: string;
185
191
  selectedTools: string[] | null;
186
192
  }>;
187
193
  /**
@@ -190,23 +196,23 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
196
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
191
197
  data: ToolInsert;
192
198
  }) => Promise<{
199
+ tenantId: string;
200
+ projectId: string;
193
201
  id: string;
194
202
  name: string;
195
- createdAt: string;
196
- updatedAt: string;
197
203
  description: string | null;
198
- headers: Record<string, string> | null;
199
- projectId: string;
200
- tenantId: string;
201
204
  config: {
202
205
  type: "mcp";
203
206
  mcp: ToolMcpConfig;
204
207
  };
205
208
  credentialReferenceId: string | null;
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ headers: Record<string, string> | null;
206
212
  credentialScope: string;
207
213
  imageUrl: string | null;
208
214
  capabilities: ToolServerCapabilities | null;
209
215
  lastError: string | null;
210
216
  }>;
211
217
  //#endregion
212
- export { addToolToAgent, createTool, dbResultToMcpTool, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
218
+ export { addToolToAgent, createTool, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
@@ -9,6 +9,7 @@ import { generateId } from "../../utils/conversations.js";
9
9
  import { updateAgentToolRelation } from "./subAgentRelations.js";
10
10
  import { toISODateString } from "../../utils/date.js";
11
11
  import { McpClient } from "../../utils/mcp-client.js";
12
+ import { buildComposioMCPUrl } from "../../utils/third-party-mcp-servers/composio-client.js";
12
13
  import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
13
14
  import "../../utils/index.js";
14
15
  import { getCredentialReference, getUserScopedCredentialReference } from "./credentialReferences.js";
@@ -97,12 +98,7 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
97
98
  reconnectionOptions: tool.config.mcp.transport?.reconnectionOptions,
98
99
  sessionId: tool.config.mcp.transport?.sessionId
99
100
  };
100
- if (serverConfig.url?.toString().includes("composio.dev")) {
101
- const urlObj = new URL(serverConfig.url.toString());
102
- if (tool.credentialScope === "user" && userId) urlObj.searchParams.set("user_id", userId);
103
- else urlObj.searchParams.set("user_id", `${tool.tenantId}||${tool.projectId}`);
104
- serverConfig.url = urlObj.toString();
105
- }
101
+ if (serverConfig.url) serverConfig.url = buildComposioMCPUrl(serverConfig.url.toString(), tool.tenantId, tool.projectId, tool.credentialScope === "user" ? "user" : "project", userId);
106
102
  const client = new McpClient({
107
103
  name: tool.name,
108
104
  server: serverConfig
@@ -127,6 +123,27 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
127
123
  throw error;
128
124
  }
129
125
  };
126
+ /**
127
+ * Convert DB result to McpTool skeleton WITHOUT MCP discovery.
128
+ * This is a fast path that returns status='unknown' and empty availableTools.
129
+ * Use this for list views where you want instant page load.
130
+ */
131
+ const dbResultToMcpToolSkeleton = (dbResult, relationshipId) => {
132
+ const { headers, capabilities, credentialReferenceId, imageUrl, createdAt, ...rest } = dbResult;
133
+ return {
134
+ ...rest,
135
+ status: "unknown",
136
+ availableTools: [],
137
+ capabilities: capabilities || void 0,
138
+ credentialReferenceId: credentialReferenceId || void 0,
139
+ createdAt: toISODateString(createdAt),
140
+ updatedAt: toISODateString(dbResult.updatedAt),
141
+ lastError: dbResult.lastError || null,
142
+ headers: headers || void 0,
143
+ imageUrl: imageUrl || void 0,
144
+ relationshipId
145
+ };
146
+ };
130
147
  const dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, relationshipId, userId) => {
131
148
  const { headers, capabilities, credentialReferenceId, imageUrl, createdAt, ...rest } = dbResult;
132
149
  if (dbResult.config.type !== "mcp") return {
@@ -337,4 +354,4 @@ const upsertTool = (db) => async (params) => {
337
354
  };
338
355
 
339
356
  //#endregion
340
- export { addToolToAgent, createTool, dbResultToMcpTool, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
357
+ export { addToolToAgent, createTool, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
13
  name: string | null;
12
- createdAt: string;
13
- updatedAt: string;
14
- expiresAt: string | null;
15
14
  agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  publicId: string;
19
16
  keyHash: string;
20
17
  keyPrefix: string;
21
18
  lastUsedAt: string | null;
19
+ expiresAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
+ tenantId: string;
25
+ projectId: string;
24
26
  id: string;
25
27
  name: string | null;
26
- createdAt: string;
27
- updatedAt: string;
28
- expiresAt: string | null;
29
28
  agentId: string;
30
- projectId: string;
31
- tenantId: string;
32
29
  publicId: string;
33
30
  keyHash: string;
34
31
  keyPrefix: string;
35
32
  lastUsedAt: string | null;
33
+ expiresAt: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
+ tenantId: string;
42
+ projectId: string;
41
43
  id: string;
42
44
  name: string | null;
43
- createdAt: string;
44
- updatedAt: string;
45
- expiresAt: string | null;
46
45
  agentId: string;
47
- projectId: string;
48
- tenantId: string;
49
46
  publicId: string;
50
47
  keyHash: string;
51
48
  keyPrefix: string;
52
49
  lastUsedAt: string | null;
50
+ expiresAt: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
+ tenantId: string;
69
+ projectId: string;
68
70
  id: string;
69
71
  name: string | null;
70
- createdAt: string;
71
- updatedAt: string;
72
- expiresAt: string | null;
73
72
  agentId: string;
74
- projectId: string;
75
- tenantId: string;
76
73
  publicId: string;
77
74
  keyHash: string;
78
75
  keyPrefix: string;
79
76
  lastUsedAt: string | null;
77
+ expiresAt: string | null;
78
+ createdAt: string;
79
+ updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ tenantId: string;
19
+ projectId: string;
18
20
  id: string;
21
+ title: string | null;
22
+ agentId: string | null;
19
23
  createdAt: string;
20
24
  updatedAt: string;
25
+ userId: string | null;
26
+ metadata: ConversationMetadata | null;
21
27
  ref: {
22
- type: "tag" | "commit" | "branch";
28
+ type: "commit" | "tag" | "branch";
23
29
  name: string;
24
30
  hash: string;
25
31
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
- title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ tenantId: string;
88
+ projectId: string;
87
89
  id: string;
90
+ title: string | null;
91
+ agentId: string | null;
88
92
  createdAt: string;
89
93
  updatedAt: string;
94
+ userId: string | null;
95
+ metadata: ConversationMetadata | null;
90
96
  ref: {
91
- type: "tag" | "commit" | "branch";
97
+ type: "commit" | "tag" | "branch";
92
98
  name: string;
93
99
  hash: string;
94
100
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- agentId: string | null;
98
- projectId: string;
99
- tenantId: string;
100
- title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ tenantId: string;
124
+ projectId: string;
123
125
  id: string;
126
+ title: string | null;
127
+ agentId: string | null;
124
128
  createdAt: string;
125
129
  updatedAt: string;
130
+ userId: string | null;
131
+ metadata: ConversationMetadata | null;
126
132
  ref: {
127
- type: "tag" | "commit" | "branch";
133
+ type: "commit" | "tag" | "branch";
128
134
  name: string;
129
135
  hash: string;
130
136
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- agentId: string | null;
134
- projectId: string;
135
- tenantId: string;
136
- title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ tenantId: string;
156
+ projectId: string;
155
157
  id: string;
158
+ title: string | null;
159
+ agentId: string | null;
156
160
  createdAt: string;
157
161
  updatedAt: string;
162
+ userId: string | null;
163
+ metadata: ConversationMetadata | null;
158
164
  ref: {
159
- type: "tag" | "commit" | "branch";
165
+ type: "commit" | "tag" | "branch";
160
166
  name: string;
161
167
  hash: string;
162
168
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- agentId: string | null;
166
- projectId: string;
167
- tenantId: string;
168
- title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -9,14 +9,14 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
12
14
  id: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
17
  metadata: MessageMetadata | null;
16
- role: string;
17
- projectId: string;
18
- tenantId: string;
19
18
  content: MessageContent;
19
+ role: string;
20
20
  fromSubAgentId: string | null;
21
21
  toSubAgentId: string | null;
22
22
  fromExternalAgentId: string | null;
@@ -140,14 +140,14 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
+ tenantId: string;
144
+ projectId: string;
143
145
  id: string;
144
146
  createdAt: string;
145
147
  updatedAt: string;
146
148
  metadata: MessageMetadata | null;
147
- role: string;
148
- projectId: string;
149
- tenantId: string;
150
149
  content: MessageContent;
150
+ role: string;
151
151
  fromSubAgentId: string | null;
152
152
  toSubAgentId: string | null;
153
153
  fromExternalAgentId: string | null;
@@ -193,14 +193,14 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
+ tenantId: string;
197
+ projectId: string;
196
198
  id: string;
197
199
  createdAt: string;
198
200
  updatedAt: string;
199
201
  metadata: MessageMetadata | null;
200
- role: string;
201
- projectId: string;
202
- tenantId: string;
203
202
  content: MessageContent;
203
+ role: string;
204
204
  fromSubAgentId: string | null;
205
205
  toSubAgentId: string | null;
206
206
  fromExternalAgentId: string | null;
@@ -6,19 +6,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
+ tenantId: string;
10
+ projectId: string;
9
11
  id: string;
12
+ agentId: string;
10
13
  createdAt: string;
11
14
  updatedAt: string;
15
+ metadata: TaskMetadataConfig | null;
12
16
  ref: {
13
- type: "tag" | "commit" | "branch";
17
+ type: "commit" | "tag" | "branch";
14
18
  name: string;
15
19
  hash: string;
16
20
  } | null;
17
- metadata: TaskMetadataConfig | null;
18
21
  status: string;
19
- agentId: string;
20
- projectId: string;
21
- tenantId: string;
22
22
  subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;