@inkeep/agents-core 0.0.0-dev-20251012062813 → 0.0.0-dev-20251012070910

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/index.cjs CHANGED
@@ -214352,9 +214352,13 @@ var CredentialStoreType = {
214352
214352
  var StopWhenSchema = zodOpenapi.z.object({
214353
214353
  transferCountIs: zodOpenapi.z.number().min(1).max(100).optional(),
214354
214354
  stepCountIs: zodOpenapi.z.number().min(1).max(1e3).optional()
214355
- });
214356
- var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true });
214357
- var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true });
214355
+ }).openapi("StopWhen");
214356
+ var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi(
214357
+ "AgentStopWhen"
214358
+ );
214359
+ var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
214360
+ "SubAgentStopWhen"
214361
+ );
214358
214362
  var MIN_ID_LENGTH = 1;
214359
214363
  var MAX_ID_LENGTH = 255;
214360
214364
  var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
@@ -214367,23 +214371,23 @@ var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGT
214367
214371
  var ModelSettingsSchema = zodOpenapi.z.object({
214368
214372
  model: zodOpenapi.z.string().optional(),
214369
214373
  providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional()
214370
- });
214374
+ }).openapi("ModelSettings");
214371
214375
  var ModelSchema = zodOpenapi.z.object({
214372
214376
  base: ModelSettingsSchema.optional(),
214373
214377
  structuredOutput: ModelSettingsSchema.optional(),
214374
214378
  summarizer: ModelSettingsSchema.optional()
214375
- });
214379
+ }).openapi("Model");
214376
214380
  var ProjectModelSchema = zodOpenapi.z.object({
214377
214381
  base: ModelSettingsSchema,
214378
214382
  structuredOutput: ModelSettingsSchema.optional(),
214379
214383
  summarizer: ModelSettingsSchema.optional()
214380
- });
214384
+ }).openapi("ProjectModel");
214381
214385
  var SandboxConfigSchema = zodOpenapi.z.object({
214382
214386
  provider: zodOpenapi.z.enum(["vercel", "local"]),
214383
214387
  runtime: zodOpenapi.z.enum(["node22", "typescript"]),
214384
214388
  timeout: zodOpenapi.z.number().min(1e3).max(3e5).optional(),
214385
214389
  vcpus: zodOpenapi.z.number().min(1).max(8).optional()
214386
- });
214390
+ }).openapi("SandboxConfig");
214387
214391
  var FunctionToolConfigSchema = zodOpenapi.z.object({
214388
214392
  name: zodOpenapi.z.string(),
214389
214393
  description: zodOpenapi.z.string(),
@@ -214403,9 +214407,15 @@ var SubAgentInsertSchema = drizzleZod.createInsertSchema(subAgents).extend({
214403
214407
  models: ModelSchema.optional()
214404
214408
  });
214405
214409
  var SubAgentUpdateSchema = SubAgentInsertSchema.partial();
214406
- var SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema);
214407
- var SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(SubAgentInsertSchema);
214408
- var SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentUpdateSchema);
214410
+ var SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema).openapi(
214411
+ "SubAgent"
214412
+ );
214413
+ var SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(
214414
+ SubAgentInsertSchema
214415
+ ).openapi("SubAgentCreate");
214416
+ var SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(
214417
+ SubAgentUpdateSchema
214418
+ ).openapi("SubAgentUpdate");
214409
214419
  var SubAgentRelationSelectSchema = drizzleZod.createSelectSchema(subAgentRelations);
214410
214420
  var SubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
214411
214421
  id: resourceIdSchema,
@@ -214417,7 +214427,7 @@ var SubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelatio
214417
214427
  var SubAgentRelationUpdateSchema = SubAgentRelationInsertSchema.partial();
214418
214428
  var SubAgentRelationApiSelectSchema = createAgentScopedApiSchema(
214419
214429
  SubAgentRelationSelectSchema
214420
- );
214430
+ ).openapi("SubAgentRelation");
214421
214431
  var SubAgentRelationApiInsertSchema = createAgentScopedApiInsertSchema(
214422
214432
  SubAgentRelationInsertSchema
214423
214433
  ).extend({
@@ -214432,7 +214442,7 @@ var SubAgentRelationApiInsertSchema = createAgentScopedApiInsertSchema(
214432
214442
  message: "Must specify exactly one of targetSubAgentId or externalSubAgentId",
214433
214443
  path: ["targetSubAgentId", "externalSubAgentId"]
214434
214444
  }
214435
- );
214445
+ ).openapi("SubAgentRelationCreate");
214436
214446
  var SubAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
214437
214447
  SubAgentRelationUpdateSchema
214438
214448
  ).extend({
@@ -214450,7 +214460,7 @@ var SubAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
214450
214460
  message: "Must specify exactly one of targetSubAgentId or externalSubAgentId when updating sub-agent relationships",
214451
214461
  path: ["targetSubAgentId", "externalSubAgentId"]
214452
214462
  }
214453
- );
214463
+ ).openapi("SubAgentRelationUpdate");
214454
214464
  var SubAgentRelationQuerySchema = zodOpenapi.z.object({
214455
214465
  sourceSubAgentId: zodOpenapi.z.string().optional(),
214456
214466
  targetSubAgentId: zodOpenapi.z.string().optional(),
@@ -214470,11 +214480,13 @@ var AgentInsertSchema = drizzleZod.createInsertSchema(agents).extend({
214470
214480
  id: resourceIdSchema
214471
214481
  });
214472
214482
  var AgentUpdateSchema = AgentInsertSchema.partial();
214473
- var AgentApiSelectSchema = createApiSchema(AgentSelectSchema);
214483
+ var AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
214474
214484
  var AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({
214475
214485
  id: resourceIdSchema
214476
- });
214477
- var AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema);
214486
+ }).openapi("AgentCreate");
214487
+ var AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi(
214488
+ "AgentUpdate"
214489
+ );
214478
214490
  var TaskSelectSchema = drizzleZod.createSelectSchema(tasks);
214479
214491
  var TaskInsertSchema = drizzleZod.createInsertSchema(tasks).extend({
214480
214492
  id: resourceIdSchema,
@@ -214522,7 +214534,7 @@ var McpTransportConfigSchema = zodOpenapi.z.object({
214522
214534
  description: "Reconnection options for streamable HTTP transport"
214523
214535
  }),
214524
214536
  sessionId: zodOpenapi.z.string().optional()
214525
- });
214537
+ }).openapi("McpTransportConfig");
214526
214538
  var ToolStatusSchema = zodOpenapi.z.enum(TOOL_STATUS_VALUES);
214527
214539
  var McpToolDefinitionSchema = zodOpenapi.z.object({
214528
214540
  name: zodOpenapi.z.string(),
@@ -214559,9 +214571,15 @@ var ConversationInsertSchema = drizzleZod.createInsertSchema(conversations).exte
214559
214571
  contextConfigId: resourceIdSchema.optional()
214560
214572
  });
214561
214573
  var ConversationUpdateSchema = ConversationInsertSchema.partial();
214562
- var ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema);
214563
- var ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema);
214564
- var ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema);
214574
+ var ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi(
214575
+ "Conversation"
214576
+ );
214577
+ var ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema).openapi(
214578
+ "ConversationCreate"
214579
+ );
214580
+ var ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi(
214581
+ "ConversationUpdate"
214582
+ );
214565
214583
  var MessageSelectSchema = drizzleZod.createSelectSchema(messages);
214566
214584
  var MessageInsertSchema = drizzleZod.createInsertSchema(messages).extend({
214567
214585
  id: resourceIdSchema,
@@ -214569,9 +214587,13 @@ var MessageInsertSchema = drizzleZod.createInsertSchema(messages).extend({
214569
214587
  taskId: resourceIdSchema.optional()
214570
214588
  });
214571
214589
  var MessageUpdateSchema = MessageInsertSchema.partial();
214572
- var MessageApiSelectSchema = createApiSchema(MessageSelectSchema);
214573
- var MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema);
214574
- var MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema);
214590
+ var MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
214591
+ var MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi(
214592
+ "MessageCreate"
214593
+ );
214594
+ var MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi(
214595
+ "MessageUpdate"
214596
+ );
214575
214597
  var ContextCacheSelectSchema = drizzleZod.createSelectSchema(contextCache);
214576
214598
  var ContextCacheInsertSchema = drizzleZod.createInsertSchema(contextCache);
214577
214599
  var ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
@@ -214587,9 +214609,15 @@ var DataComponentBaseSchema = DataComponentInsertSchema.omit({
214587
214609
  updatedAt: true
214588
214610
  });
214589
214611
  var DataComponentUpdateSchema = DataComponentInsertSchema.partial();
214590
- var DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema);
214591
- var DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema);
214592
- var DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema);
214612
+ var DataComponentApiSelectSchema = createApiSchema(
214613
+ DataComponentSelectSchema
214614
+ ).openapi("DataComponent");
214615
+ var DataComponentApiInsertSchema = createApiInsertSchema(
214616
+ DataComponentInsertSchema
214617
+ ).openapi("DataComponentCreate");
214618
+ var DataComponentApiUpdateSchema = createApiUpdateSchema(
214619
+ DataComponentUpdateSchema
214620
+ ).openapi("DataComponentUpdate");
214593
214621
  var SubAgentDataComponentSelectSchema = drizzleZod.createSelectSchema(subAgentDataComponents);
214594
214622
  var SubAgentDataComponentInsertSchema = drizzleZod.createInsertSchema(subAgentDataComponents);
214595
214623
  var SubAgentDataComponentUpdateSchema = SubAgentDataComponentInsertSchema.partial();
@@ -214610,16 +214638,18 @@ var ArtifactComponentInsertSchema = drizzleZod.createInsertSchema(artifactCompon
214610
214638
  id: resourceIdSchema
214611
214639
  });
214612
214640
  var ArtifactComponentUpdateSchema = ArtifactComponentInsertSchema.partial();
214613
- var ArtifactComponentApiSelectSchema = createApiSchema(ArtifactComponentSelectSchema);
214641
+ var ArtifactComponentApiSelectSchema = createApiSchema(
214642
+ ArtifactComponentSelectSchema
214643
+ ).openapi("ArtifactComponent");
214614
214644
  var ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
214615
214645
  tenantId: true,
214616
214646
  projectId: true,
214617
214647
  createdAt: true,
214618
214648
  updatedAt: true
214619
- });
214649
+ }).openapi("ArtifactComponentCreate");
214620
214650
  var ArtifactComponentApiUpdateSchema = createApiUpdateSchema(
214621
214651
  ArtifactComponentUpdateSchema
214622
- );
214652
+ ).openapi("ArtifactComponentUpdate");
214623
214653
  var SubAgentArtifactComponentSelectSchema = drizzleZod.createSelectSchema(subAgentArtifactComponents);
214624
214654
  var SubAgentArtifactComponentInsertSchema = drizzleZod.createInsertSchema(
214625
214655
  subAgentArtifactComponents
@@ -214649,9 +214679,15 @@ var ExternalAgentInsertSchema = drizzleZod.createInsertSchema(externalAgents).ex
214649
214679
  id: resourceIdSchema
214650
214680
  });
214651
214681
  var ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
214652
- var ExternalAgentApiSelectSchema = createAgentScopedApiSchema(ExternalAgentSelectSchema);
214653
- var ExternalAgentApiInsertSchema = createAgentScopedApiInsertSchema(ExternalAgentInsertSchema);
214654
- var ExternalAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(ExternalAgentUpdateSchema);
214682
+ var ExternalAgentApiSelectSchema = createAgentScopedApiSchema(
214683
+ ExternalAgentSelectSchema
214684
+ ).openapi("ExternalAgent");
214685
+ var ExternalAgentApiInsertSchema = createAgentScopedApiInsertSchema(
214686
+ ExternalAgentInsertSchema
214687
+ ).openapi("ExternalAgentCreate");
214688
+ var ExternalAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(
214689
+ ExternalAgentUpdateSchema
214690
+ ).openapi("ExternalAgentUpdate");
214655
214691
  var AllAgentSchema = zodOpenapi.z.discriminatedUnion("type", [
214656
214692
  SubAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("internal") }),
214657
214693
  ExternalAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("external") })
@@ -214675,7 +214711,7 @@ var ApiKeyApiSelectSchema = ApiKeySelectSchema.omit({
214675
214711
  projectId: true,
214676
214712
  keyHash: true
214677
214713
  // Never expose the hash
214678
- });
214714
+ }).openapi("ApiKey");
214679
214715
  var ApiKeyApiCreationResponseSchema = zodOpenapi.z.object({
214680
214716
  data: zodOpenapi.z.object({
214681
214717
  apiKey: ApiKeyApiSelectSchema,
@@ -214695,8 +214731,8 @@ var ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
214695
214731
  // Auto-generated
214696
214732
  lastUsedAt: true
214697
214733
  // Not set on creation
214698
- });
214699
- var ApiKeyApiUpdateSchema = ApiKeyUpdateSchema;
214734
+ }).openapi("ApiKeyCreate");
214735
+ var ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
214700
214736
  var CredentialReferenceSelectSchema = zodOpenapi.z.object({
214701
214737
  id: zodOpenapi.z.string(),
214702
214738
  tenantId: zodOpenapi.z.string(),
@@ -214719,17 +214755,17 @@ var CredentialReferenceApiSelectSchema = createApiSchema(
214719
214755
  ).extend({
214720
214756
  type: zodOpenapi.z.enum(CredentialStoreType),
214721
214757
  tools: zodOpenapi.z.array(ToolSelectSchema).optional()
214722
- });
214758
+ }).openapi("CredentialReference");
214723
214759
  var CredentialReferenceApiInsertSchema = createApiInsertSchema(
214724
214760
  CredentialReferenceInsertSchema
214725
214761
  ).extend({
214726
214762
  type: zodOpenapi.z.enum(CredentialStoreType)
214727
- });
214763
+ }).openapi("CredentialReferenceCreate");
214728
214764
  var CredentialReferenceApiUpdateSchema = createApiUpdateSchema(
214729
214765
  CredentialReferenceUpdateSchema
214730
214766
  ).extend({
214731
214767
  type: zodOpenapi.z.enum(CredentialStoreType).optional()
214732
- });
214768
+ }).openapi("CredentialReferenceUpdate");
214733
214769
  var McpToolSchema = ToolInsertSchema.extend({
214734
214770
  imageUrl: imageUrlSchema,
214735
214771
  availableTools: zodOpenapi.z.array(McpToolDefinitionSchema).optional(),
@@ -214758,25 +214794,35 @@ var MCPToolConfigSchema = McpToolSchema.omit({
214758
214794
  credential: CredentialReferenceApiInsertSchema.optional()
214759
214795
  });
214760
214796
  var ToolUpdateSchema = ToolInsertSchema.partial();
214761
- var ToolApiSelectSchema = createApiSchema(ToolSelectSchema);
214762
- var ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema);
214763
- var ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema);
214797
+ var ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
214798
+ var ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
214799
+ var ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
214764
214800
  var FunctionToolSelectSchema = drizzleZod.createSelectSchema(functionTools);
214765
214801
  var FunctionToolInsertSchema = drizzleZod.createInsertSchema(functionTools).extend({
214766
214802
  id: resourceIdSchema
214767
214803
  });
214768
214804
  var FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
214769
- var FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema);
214770
- var FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema);
214771
- var FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema);
214805
+ var FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi(
214806
+ "FunctionTool"
214807
+ );
214808
+ var FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(
214809
+ FunctionToolInsertSchema
214810
+ ).openapi("FunctionToolCreate");
214811
+ var FunctionToolApiUpdateSchema = createApiUpdateSchema(
214812
+ FunctionToolUpdateSchema
214813
+ ).openapi("FunctionToolUpdate");
214772
214814
  var FunctionSelectSchema = drizzleZod.createSelectSchema(functions);
214773
214815
  var FunctionInsertSchema = drizzleZod.createInsertSchema(functions).extend({
214774
214816
  id: resourceIdSchema
214775
214817
  });
214776
214818
  var FunctionUpdateSchema = FunctionInsertSchema.partial();
214777
- var FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema);
214778
- var FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema);
214779
- var FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema);
214819
+ var FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema).openapi("Function");
214820
+ var FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi(
214821
+ "FunctionCreate"
214822
+ );
214823
+ var FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema).openapi(
214824
+ "FunctionUpdate"
214825
+ );
214780
214826
  var FetchConfigSchema = zodOpenapi.z.object({
214781
214827
  url: zodOpenapi.z.string().min(1, "URL is required"),
214782
214828
  method: zodOpenapi.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH"]).optional().default("GET"),
@@ -214785,7 +214831,7 @@ var FetchConfigSchema = zodOpenapi.z.object({
214785
214831
  transform: zodOpenapi.z.string().optional(),
214786
214832
  // JSONPath or JS transform function
214787
214833
  timeout: zodOpenapi.z.number().min(0).optional().default(1e4).optional()
214788
- });
214834
+ }).openapi("FetchConfig");
214789
214835
  var FetchDefinitionSchema = zodOpenapi.z.object({
214790
214836
  id: zodOpenapi.z.string().min(1, "Fetch definition ID is required"),
214791
214837
  name: zodOpenapi.z.string().optional(),
@@ -214797,7 +214843,7 @@ var FetchDefinitionSchema = zodOpenapi.z.object({
214797
214843
  description: "Default value if fetch fails"
214798
214844
  }),
214799
214845
  credential: CredentialReferenceApiInsertSchema.optional()
214800
- });
214846
+ }).openapi("FetchDefinition");
214801
214847
  var ContextConfigSelectSchema = drizzleZod.createSelectSchema(contextConfigs).extend({
214802
214848
  headersSchema: zodOpenapi.z.any().optional().openapi({
214803
214849
  type: "object",
@@ -214821,13 +214867,13 @@ var ContextConfigInsertSchema = drizzleZod.createInsertSchema(contextConfigs).ex
214821
214867
  var ContextConfigUpdateSchema = ContextConfigInsertSchema.partial();
214822
214868
  var ContextConfigApiSelectSchema = createApiSchema(ContextConfigSelectSchema).omit({
214823
214869
  agentId: true
214824
- });
214870
+ }).openapi("ContextConfig");
214825
214871
  var ContextConfigApiInsertSchema = createApiInsertSchema(ContextConfigInsertSchema).omit({
214826
214872
  agentId: true
214827
- });
214873
+ }).openapi("ContextConfigCreate");
214828
214874
  var ContextConfigApiUpdateSchema = createApiUpdateSchema(ContextConfigUpdateSchema).omit({
214829
214875
  agentId: true
214830
- });
214876
+ }).openapi("ContextConfigUpdate");
214831
214877
  var SubAgentToolRelationSelectSchema = drizzleZod.createSelectSchema(subAgentToolRelations);
214832
214878
  var SubAgentToolRelationInsertSchema = drizzleZod.createInsertSchema(subAgentToolRelations).extend({
214833
214879
  id: resourceIdSchema,
@@ -214839,13 +214885,13 @@ var SubAgentToolRelationInsertSchema = drizzleZod.createInsertSchema(subAgentToo
214839
214885
  var SubAgentToolRelationUpdateSchema = SubAgentToolRelationInsertSchema.partial();
214840
214886
  var SubAgentToolRelationApiSelectSchema = createAgentScopedApiSchema(
214841
214887
  SubAgentToolRelationSelectSchema
214842
- );
214888
+ ).openapi("SubAgentToolRelation");
214843
214889
  var SubAgentToolRelationApiInsertSchema = createAgentScopedApiInsertSchema(
214844
214890
  SubAgentToolRelationInsertSchema
214845
- );
214891
+ ).openapi("SubAgentToolRelationCreate");
214846
214892
  var SubAgentToolRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
214847
214893
  SubAgentToolRelationUpdateSchema
214848
- );
214894
+ ).openapi("SubAgentToolRelationUpdate");
214849
214895
  var LedgerArtifactSelectSchema = drizzleZod.createSelectSchema(ledgerArtifacts);
214850
214896
  var LedgerArtifactInsertSchema = drizzleZod.createInsertSchema(ledgerArtifacts);
214851
214897
  var LedgerArtifactUpdateSchema = LedgerArtifactInsertSchema.partial();
@@ -214860,20 +214906,20 @@ var StatusComponentSchema = zodOpenapi.z.object({
214860
214906
  properties: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()),
214861
214907
  required: zodOpenapi.z.array(zodOpenapi.z.string()).optional()
214862
214908
  }).optional()
214863
- });
214909
+ }).openapi("StatusComponent");
214864
214910
  var StatusUpdateSchema = zodOpenapi.z.object({
214865
214911
  enabled: zodOpenapi.z.boolean().optional(),
214866
214912
  numEvents: zodOpenapi.z.number().min(1).max(100).optional(),
214867
214913
  timeInSeconds: zodOpenapi.z.number().min(1).max(600).optional(),
214868
214914
  prompt: zodOpenapi.z.string().max(2e3, "Custom prompt cannot exceed 2000 characters").optional(),
214869
214915
  statusComponents: zodOpenapi.z.array(StatusComponentSchema).optional()
214870
- });
214916
+ }).openapi("StatusUpdate");
214871
214917
  var CanUseItemSchema = zodOpenapi.z.object({
214872
214918
  agentToolRelationId: zodOpenapi.z.string().optional(),
214873
214919
  toolId: zodOpenapi.z.string(),
214874
214920
  toolSelection: zodOpenapi.z.array(zodOpenapi.z.string()).nullish(),
214875
214921
  headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
214876
- });
214922
+ }).openapi("CanUseItem");
214877
214923
  var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
214878
214924
  type: zodOpenapi.z.literal("internal"),
214879
214925
  canUse: zodOpenapi.z.array(CanUseItemSchema),
@@ -214906,7 +214952,7 @@ var PaginationSchema = zodOpenapi.z.object({
214906
214952
  limit: zodOpenapi.z.coerce.number().min(1).max(100).default(10),
214907
214953
  total: zodOpenapi.z.number(),
214908
214954
  pages: zodOpenapi.z.number()
214909
- });
214955
+ }).openapi("Pagination");
214910
214956
  var ListResponseSchema = (itemSchema) => zodOpenapi.z.object({
214911
214957
  data: zodOpenapi.z.array(itemSchema),
214912
214958
  pagination: PaginationSchema
@@ -214938,9 +214984,15 @@ var ProjectInsertSchema = drizzleZod.createInsertSchema(projects).extend({
214938
214984
  updatedAt: true
214939
214985
  });
214940
214986
  var ProjectUpdateSchema = ProjectInsertSchema.partial();
214941
- var ProjectApiSelectSchema = ProjectSelectSchema.omit({ tenantId: true });
214942
- var ProjectApiInsertSchema = ProjectInsertSchema.omit({ tenantId: true });
214943
- var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true });
214987
+ var ProjectApiSelectSchema = ProjectSelectSchema.omit({ tenantId: true }).openapi(
214988
+ "Project"
214989
+ );
214990
+ var ProjectApiInsertSchema = ProjectInsertSchema.omit({ tenantId: true }).openapi(
214991
+ "ProjectCreate"
214992
+ );
214993
+ var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openapi(
214994
+ "ProjectUpdate"
214995
+ );
214944
214996
  var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
214945
214997
  agents: zodOpenapi.z.record(zodOpenapi.z.string(), AgentWithinContextOfProjectSchema),
214946
214998
  tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
2
2
  export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE } from './signoz-queries-CuWMQh1H.cjs';
3
3
  import { z } from 'zod';
4
- import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-BxbySenH.cjs';
5
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, aI as AgentProvider, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g1 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, 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, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, df as MessageMode, bI as MessagePart, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, ga as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, dB as ProjectModelSchema, dh as ProjectModels, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, 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, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, g3 as TenantIdParamsSchema, g2 as TenantParamsSchema, g7 as TenantProjectAgentIdParamsSchema, g6 as TenantProjectAgentParamsSchema, g9 as TenantProjectAgentSubAgentIdParamsSchema, g8 as TenantProjectAgentSubAgentParamsSchema, g5 as TenantProjectIdParamsSchema, g4 as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-BxbySenH.cjs';
4
+ import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-C81bmoNF.cjs';
5
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, aI as AgentProvider, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g1 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, 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, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, df as MessageMode, bI as MessagePart, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, ga as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, dB as ProjectModelSchema, dh as ProjectModels, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, 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, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, g3 as TenantIdParamsSchema, g2 as TenantParamsSchema, g7 as TenantProjectAgentIdParamsSchema, g6 as TenantProjectAgentParamsSchema, g9 as TenantProjectAgentSubAgentIdParamsSchema, g8 as TenantProjectAgentSubAgentParamsSchema, g5 as TenantProjectIdParamsSchema, g4 as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-C81bmoNF.cjs';
6
6
  import { CredentialStore } from './types/index.cjs';
7
7
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
8
8
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
9
- import { s as schema } from './schema-DrDaCn6H.cjs';
10
- export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-DrDaCn6H.cjs';
9
+ import { s as schema } from './schema-Dl66M9ug.cjs';
10
+ export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-Dl66M9ug.cjs';
11
11
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
12
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -1586,9 +1586,9 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
1586
1586
  tenantId: string;
1587
1587
  projectId: string;
1588
1588
  id: string;
1589
+ title: string | null;
1589
1590
  createdAt: string;
1590
1591
  updatedAt: string;
1591
- title: string | null;
1592
1592
  metadata: ConversationMetadata | null;
1593
1593
  userId: string | null;
1594
1594
  activeSubAgentId: string;
@@ -1602,9 +1602,9 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1602
1602
  tenantId: string;
1603
1603
  projectId: string;
1604
1604
  id: string;
1605
+ title: string | null;
1605
1606
  createdAt: string;
1606
1607
  updatedAt: string;
1607
- title: string | null;
1608
1608
  metadata: ConversationMetadata | null;
1609
1609
  userId: string | null;
1610
1610
  activeSubAgentId: string;
@@ -1622,9 +1622,9 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1622
1622
  tenantId: string;
1623
1623
  projectId: string;
1624
1624
  id: string;
1625
+ title: string | null;
1625
1626
  createdAt: string;
1626
1627
  updatedAt: string;
1627
- title: string | null;
1628
1628
  metadata: ConversationMetadata | null;
1629
1629
  userId: string | null;
1630
1630
  activeSubAgentId: string;
@@ -1637,9 +1637,9 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1637
1637
  tenantId: string;
1638
1638
  projectId: string;
1639
1639
  id: string;
1640
+ title: string | null;
1640
1641
  createdAt: string;
1641
1642
  updatedAt: string;
1642
- title: string | null;
1643
1643
  metadata: ConversationMetadata | null;
1644
1644
  userId: string | null;
1645
1645
  activeSubAgentId: string;
@@ -1661,9 +1661,9 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1661
1661
  tenantId: string;
1662
1662
  projectId: string;
1663
1663
  id: string;
1664
+ title: string | null;
1664
1665
  createdAt: string;
1665
1666
  updatedAt: string;
1666
- title: string | null;
1667
1667
  metadata: ConversationMetadata | null;
1668
1668
  userId: string | null;
1669
1669
  activeSubAgentId: string;
@@ -1687,9 +1687,9 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1687
1687
  tenantId: string;
1688
1688
  projectId: string;
1689
1689
  id: string;
1690
+ title: string | null;
1690
1691
  createdAt: string;
1691
1692
  updatedAt: string;
1692
- title: string | null;
1693
1693
  metadata: ConversationMetadata | null;
1694
1694
  userId: string | null;
1695
1695
  activeSubAgentId: string;