@inkeep/agents-manage-api 0.0.0-dev-20251217042024 → 0.0.0-dev-20251217094125

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/factory2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as or, c as F, d as R, f as T, g as x, h as u, l as L, m as h, n as Vr, p as U, r as ce, s as ur, t as C, u as P } from "./chunk-VBDAOXYI.js";
2
- import { AgentApiInsertSchema, AgentApiUpdateSchema, AgentListResponse, AgentResponse, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiUpdateSchema, ApiKeyListResponse, ApiKeyResponse, ArtifactComponentApiInsertSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentListResponse, ArtifactComponentResponse, ComponentAssociationListResponse, ContextConfigApiInsertSchema, ContextConfigApiUpdateSchema, ContextConfigListResponse, ContextConfigResponse, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialStoreListResponseSchema, CredentialStoreRegistry, CredentialStoreType, DataComponentApiInsertSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentListResponse, DataComponentResponse, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiUpdateSchema, ExternalAgentListResponse, ExternalAgentResponse, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiUpdateSchema, FunctionListResponse, FunctionResponse, FunctionToolApiInsertSchema, FunctionToolApiUpdateSchema, FunctionToolListResponse, FunctionToolResponse, ListResponseSchema, MCPCatalogListResponse, MCPTransportType, McpToolListResponse, McpToolResponse, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, ProjectApiInsertSchema, ProjectApiUpdateSchema, ProjectListResponse, ProjectResponse, RelatedAgentInfoListResponse, RemovedResponseSchema, SubAgentApiInsertSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentResponse, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentResponse, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentResponse, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiUpdateSchema, ToolStatusSchema, addUserToOrganization, associateArtifactComponentWithAgent, associateDataComponentWithAgent, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTool, dbResultToMcpTool, deleteAgent, deleteAgentToolRelation, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteTool, exchangeMcpAuthorizationCode, fetchComposioServers, fetchSingleComposioServer, formatMessagesForLLMContext, generateApiKey, generateId, getAgentById, getAgentRelationById, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getArtifactComponentById, getArtifactComponentsForAgent, getComposioOAuthRedirectUrl, getContextConfigById, getConversationHistory, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getLogger, getLogger as getLogger$1, getPendingInvitationsByEmail, getProject, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getToolById, getUserByEmail, getUserOrganizations, getUserScopedCredentialReference, handleApiError, initiateMcpOAuthFlow, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, listAgentRelations, listAgentToolRelations, listAgents, listApiKeysPaginated, listArtifactComponentsPaginated, listContextConfigsPaginated, listCredentialReferencesPaginated, listDataComponentsPaginated, listExternalAgentsPaginated, listFunctionTools, listFunctions, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgentsPaginated, listTools, loadEnvironmentFiles, member, organization, projectExists, removeArtifactComponentFromAgent, removeDataComponentFromAgent, signTempToken, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateArtifactComponent, updateContextConfig, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentTeamAgentRelation, updateTool, upsertFunction, validateAndGetApiKey, validatePropsAsJsonSchema, validateSubAgent } from "@inkeep/agents-core";
2
+ import { AgentApiInsertSchema, AgentApiUpdateSchema, AgentListResponse, AgentResponse, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiUpdateSchema, ApiKeyListResponse, ApiKeyResponse, ArtifactComponentApiInsertSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentListResponse, ArtifactComponentResponse, ComponentAssociationListResponse, ContextConfigApiInsertSchema, ContextConfigApiUpdateSchema, ContextConfigListResponse, ContextConfigResponse, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialStoreListResponseSchema, CredentialStoreRegistry, CredentialStoreType, DataComponentApiInsertSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentListResponse, DataComponentResponse, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiUpdateSchema, ExternalAgentListResponse, ExternalAgentResponse, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiUpdateSchema, FunctionListResponse, FunctionResponse, FunctionToolApiInsertSchema, FunctionToolApiUpdateSchema, FunctionToolListResponse, FunctionToolResponse, ListResponseSchema, MCPCatalogListResponse, MCPTransportType, McpToolListResponse, McpToolResponse, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, ProjectApiInsertSchema, ProjectApiUpdateSchema, ProjectListResponse, ProjectResponse, RelatedAgentInfoListResponse, RemovedResponseSchema, SubAgentApiInsertSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentResponse, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentResponse, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentResponse, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiUpdateSchema, ToolStatusSchema, addUserToOrganization, associateArtifactComponentWithAgent, associateDataComponentWithAgent, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTool, dbResultToMcpTool, deleteAgent, deleteAgentToolRelation, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteTool, exchangeMcpAuthorizationCode, fetchComposioServers, fetchSingleComposioServer, formatMessagesForLLMContext, generateApiKey, generateId, getAgentById, getAgentRelationById, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getArtifactComponentById, getArtifactComponentsForAgent, getComposioOAuthRedirectUrl, getContextConfigById, getConversationHistory, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getLogger, getLogger as getLogger$1, getPendingInvitationsByEmail, getProject, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getToolById, getUserByEmail, getUserOrganizations, getUserScopedCredentialReference, handleApiError, initiateMcpOAuthFlow, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, listAgentRelations, listAgentToolRelations, listAgentsPaginated, listApiKeysPaginated, listArtifactComponentsPaginated, listContextConfigsPaginated, listCredentialReferencesPaginated, listDataComponentsPaginated, listExternalAgentsPaginated, listFunctionTools, listFunctionsPaginated, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgentsPaginated, listTools, loadEnvironmentFiles, member, organization, projectExists, removeArtifactComponentFromAgent, removeDataComponentFromAgent, signTempToken, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateArtifactComponent, updateContextConfig, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentTeamAgentRelation, updateTool, upsertFunction, validateAndGetApiKey, validatePropsAsJsonSchema, validateSubAgent } from "@inkeep/agents-core";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
  import { Hono } from "hono";
5
5
  import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
@@ -10212,6 +10212,49 @@ const requirePermission = (permissions) => createMiddleware(async (c, next) => {
10212
10212
  }
10213
10213
  });
10214
10214
 
10215
+ //#endregion
10216
+ //#region src/routes/shared.ts
10217
+ function createSpeakeasyPagination(type, config) {
10218
+ if (type === "offsetLimit") return { "x-speakeasy-pagination": {
10219
+ type: "offsetLimit",
10220
+ inputs: config?.inputs ?? [{
10221
+ name: "page",
10222
+ in: "parameters",
10223
+ type: "page"
10224
+ }, {
10225
+ name: "limit",
10226
+ in: "parameters",
10227
+ type: "limit"
10228
+ }],
10229
+ outputs: config?.outputs ?? { numPages: "$.pagination.pages" }
10230
+ } };
10231
+ return { "x-speakeasy-pagination": {
10232
+ type: "cursor",
10233
+ inputs: config?.inputs ?? [],
10234
+ outputs: config?.outputs ?? {}
10235
+ } };
10236
+ }
10237
+ /**
10238
+ * Speakeasy pagination extension for offset-limit pagination.
10239
+ * Use this in createRoute() calls for list endpoints that support pagination.
10240
+ *
10241
+ * IMPORTANT: Endpoints using this extension MUST return responses matching
10242
+ * the StandardPaginationResponse<T> shape with data from a *Paginated() function
10243
+ * (e.g., listAgentsPaginated, listProjectsPaginated) to ensure the JSONPath
10244
+ * '$.pagination.pages' correctly resolves.
10245
+ *
10246
+ * @example
10247
+ * ```ts
10248
+ * createRoute({
10249
+ * method: 'get',
10250
+ * path: '/',
10251
+ * // ... other config
10252
+ * ...speakeasyOffsetLimitPagination,
10253
+ * })
10254
+ * ```
10255
+ */
10256
+ const speakeasyOffsetLimitPagination = createSpeakeasyPagination("offsetLimit");
10257
+
10215
10258
  //#endregion
10216
10259
  //#region src/routes/agent.ts
10217
10260
  const app$28 = new OpenAPIHono();
@@ -10240,24 +10283,23 @@ app$28.openapi(createRoute({
10240
10283
  content: { "application/json": { schema: AgentListResponse } }
10241
10284
  },
10242
10285
  ...commonGetErrorResponses
10243
- }
10286
+ },
10287
+ ...speakeasyOffsetLimitPagination
10244
10288
  }), async (c) => {
10245
10289
  const { tenantId, projectId } = c.req.valid("param");
10246
10290
  const page = Number(c.req.query("page")) || 1;
10247
10291
  const limit = Math.min(Number(c.req.query("limit")) || 10, 100);
10248
- const agent = await listAgents(dbClient_default)({ scopes: {
10249
- tenantId,
10250
- projectId
10251
- } });
10252
- return c.json({
10253
- data: agent,
10292
+ const result = await listAgentsPaginated(dbClient_default)({
10293
+ scopes: {
10294
+ tenantId,
10295
+ projectId
10296
+ },
10254
10297
  pagination: {
10255
10298
  page,
10256
- limit,
10257
- total: agent.length,
10258
- pages: Math.ceil(agent.length / limit)
10299
+ limit
10259
10300
  }
10260
10301
  });
10302
+ return c.json(result);
10261
10303
  });
10262
10304
  app$28.openapi(createRoute({
10263
10305
  method: "get",
@@ -10660,7 +10702,8 @@ app$26.openapi(createRoute({
10660
10702
  content: { "application/json": { schema: ApiKeyListResponse } }
10661
10703
  },
10662
10704
  ...commonGetErrorResponses
10663
- }
10705
+ },
10706
+ ...speakeasyOffsetLimitPagination
10664
10707
  }), async (c) => {
10665
10708
  const { tenantId, projectId } = c.req.valid("param");
10666
10709
  const page = Number(c.req.query("page")) || 1;
@@ -10868,7 +10911,8 @@ app$25.openapi(createRoute({
10868
10911
  content: { "application/json": { schema: ArtifactComponentListResponse } }
10869
10912
  },
10870
10913
  ...commonGetErrorResponses
10871
- }
10914
+ },
10915
+ ...speakeasyOffsetLimitPagination
10872
10916
  }), async (c) => {
10873
10917
  const { tenantId, projectId } = c.req.valid("param");
10874
10918
  const page = Number(c.req.query("page")) || 1;
@@ -11064,7 +11108,8 @@ app$24.openapi(createRoute({
11064
11108
  content: { "application/json": { schema: ContextConfigListResponse } }
11065
11109
  },
11066
11110
  ...commonGetErrorResponses
11067
- }
11111
+ },
11112
+ ...speakeasyOffsetLimitPagination
11068
11113
  }), async (c) => {
11069
11114
  const { tenantId, projectId, agentId } = c.req.valid("param");
11070
11115
  const page = Number(c.req.query("page")) || 1;
@@ -11362,7 +11407,8 @@ app$21.openapi(createRoute({
11362
11407
  content: { "application/json": { schema: CredentialReferenceListResponse } }
11363
11408
  },
11364
11409
  ...commonGetErrorResponses
11365
- }
11410
+ },
11411
+ ...speakeasyOffsetLimitPagination
11366
11412
  }), async (c) => {
11367
11413
  const { tenantId, projectId } = c.req.valid("param");
11368
11414
  const page = Number(c.req.query("page")) || 1;
@@ -11558,7 +11604,8 @@ app$20.openapi(createRoute({
11558
11604
  content: { "application/json": { schema: DataComponentListResponse } }
11559
11605
  },
11560
11606
  ...commonGetErrorResponses
11561
- }
11607
+ },
11608
+ ...speakeasyOffsetLimitPagination
11562
11609
  }), async (c) => {
11563
11610
  const { tenantId, projectId } = c.req.valid("param");
11564
11611
  const page = Number(c.req.query("page")) || 1;
@@ -11738,7 +11785,8 @@ app$19.openapi(createRoute({
11738
11785
  content: { "application/json": { schema: ExternalAgentListResponse } }
11739
11786
  },
11740
11787
  ...commonGetErrorResponses
11741
- }
11788
+ },
11789
+ ...speakeasyOffsetLimitPagination
11742
11790
  }), async (c) => {
11743
11791
  const { tenantId, projectId } = c.req.valid("param");
11744
11792
  const { page, limit } = c.req.valid("query");
@@ -11926,23 +11974,24 @@ app$18.openapi(createRoute({
11926
11974
  content: { "application/json": { schema: FunctionListResponse } }
11927
11975
  },
11928
11976
  ...commonGetErrorResponses
11929
- }
11977
+ },
11978
+ ...speakeasyOffsetLimitPagination
11930
11979
  }), async (c) => {
11931
11980
  const { tenantId, projectId } = c.req.valid("param");
11981
+ const page = Number(c.req.query("page")) || 1;
11982
+ const limit = Math.min(Number(c.req.query("limit")) || 10, 100);
11932
11983
  try {
11933
- const functions = await listFunctions(dbClient_default)({ scopes: {
11934
- tenantId,
11935
- projectId
11936
- } });
11937
- return c.json({
11938
- data: functions,
11984
+ const result = await listFunctionsPaginated(dbClient_default)({
11985
+ scopes: {
11986
+ tenantId,
11987
+ projectId
11988
+ },
11939
11989
  pagination: {
11940
- page: 1,
11941
- limit: functions.length,
11942
- total: functions.length,
11943
- pages: 1
11990
+ page,
11991
+ limit
11944
11992
  }
11945
11993
  });
11994
+ return c.json(result);
11946
11995
  } catch (error) {
11947
11996
  logger$9.error({
11948
11997
  error,
@@ -12198,7 +12247,8 @@ app$17.openapi(createRoute({
12198
12247
  content: { "application/json": { schema: FunctionToolListResponse } }
12199
12248
  },
12200
12249
  ...commonGetErrorResponses
12201
- }
12250
+ },
12251
+ ...speakeasyOffsetLimitPagination
12202
12252
  }), async (c) => {
12203
12253
  const { tenantId, projectId, agentId } = c.req.valid("param");
12204
12254
  const { page, limit } = c.req.valid("query");
@@ -12891,7 +12941,8 @@ app$15.openapi(createRoute({
12891
12941
  content: { "application/json": { schema: ProjectListResponse } }
12892
12942
  },
12893
12943
  ...commonGetErrorResponses
12894
- }
12944
+ },
12945
+ ...speakeasyOffsetLimitPagination
12895
12946
  }), async (c) => {
12896
12947
  const { tenantId } = c.req.valid("param");
12897
12948
  const page = Number(c.req.query("page")) || 1;
@@ -13453,7 +13504,8 @@ app$12.openapi(createRoute({
13453
13504
  content: { "application/json": { schema: SubAgentExternalAgentRelationListResponse } }
13454
13505
  },
13455
13506
  ...commonGetErrorResponses
13456
- }
13507
+ },
13508
+ ...speakeasyOffsetLimitPagination
13457
13509
  }), async (c) => {
13458
13510
  const { tenantId, projectId, agentId, subAgentId } = c.req.valid("param");
13459
13511
  const { page = 1, limit = 10 } = c.req.valid("query");
@@ -13657,7 +13709,8 @@ app$11.openapi(createRoute({
13657
13709
  content: { "application/json": { schema: SubAgentRelationListResponse } }
13658
13710
  },
13659
13711
  ...commonGetErrorResponses
13660
- }
13712
+ },
13713
+ ...speakeasyOffsetLimitPagination
13661
13714
  }), async (c) => {
13662
13715
  const { tenantId, projectId, agentId } = c.req.valid("param");
13663
13716
  const { page = 1, limit = 10, sourceSubAgentId, targetSubAgentId } = c.req.valid("query");
@@ -13908,7 +13961,8 @@ app$10.openapi(createRoute({
13908
13961
  content: { "application/json": { schema: SubAgentListResponse } }
13909
13962
  },
13910
13963
  ...commonGetErrorResponses
13911
- }
13964
+ },
13965
+ ...speakeasyOffsetLimitPagination
13912
13966
  }), async (c) => {
13913
13967
  const { tenantId, projectId, agentId } = c.req.valid("param");
13914
13968
  const page = Number(c.req.query("page")) || 1;
@@ -14110,7 +14164,8 @@ app$9.openapi(createRoute({
14110
14164
  content: { "application/json": { schema: SubAgentTeamAgentRelationListResponse } }
14111
14165
  },
14112
14166
  ...commonGetErrorResponses
14113
- }
14167
+ },
14168
+ ...speakeasyOffsetLimitPagination
14114
14169
  }), async (c) => {
14115
14170
  const { tenantId, projectId, agentId, subAgentId } = c.req.valid("param");
14116
14171
  const { page = 1, limit = 10 } = c.req.valid("query");
@@ -14317,7 +14372,8 @@ app$8.openapi(createRoute({
14317
14372
  content: { "application/json": { schema: SubAgentToolRelationListResponse } }
14318
14373
  },
14319
14374
  ...commonGetErrorResponses
14320
- }
14375
+ },
14376
+ ...speakeasyOffsetLimitPagination
14321
14377
  }), async (c) => {
14322
14378
  const { tenantId, projectId, agentId } = c.req.valid("param");
14323
14379
  const { page, limit, subAgentId, toolId } = c.req.valid("query");
@@ -14659,7 +14715,8 @@ app$6.openapi(createRoute({
14659
14715
  content: { "application/json": { schema: McpToolListResponse } }
14660
14716
  },
14661
14717
  ...commonGetErrorResponses
14662
- }
14718
+ },
14719
+ ...speakeasyOffsetLimitPagination
14663
14720
  }), async (c) => {
14664
14721
  const { tenantId, projectId } = c.req.valid("param");
14665
14722
  const { page, limit, status } = c.req.valid("query");