codemie-sdk 0.1.430 → 0.1.431

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
@@ -68,6 +68,7 @@ __export(index_exports, {
68
68
  IntegrationUpdateParamsSchema: () => IntegrationUpdateParamsSchema,
69
69
  LLMProvider: () => LLMProvider,
70
70
  LLMService: () => LLMService,
71
+ MCPServerConfigSchema: () => MCPServerConfigSchema,
71
72
  NotFoundError: () => NotFoundError,
72
73
  PaginatedAnalyticsQueryParamsSchema: () => PaginatedAnalyticsQueryParamsSchema,
73
74
  SkillCategory: () => SkillCategory,
@@ -474,6 +475,25 @@ var PromptVariableSchema = import_zod2.z.object({
474
475
  description: import_zod2.z.string().optional(),
475
476
  default_value: import_zod2.z.string()
476
477
  });
478
+ var MCPServerConfigObjectSchema = import_zod2.z.object({
479
+ url: import_zod2.z.string().optional(),
480
+ command: import_zod2.z.string().optional(),
481
+ args: import_zod2.z.array(import_zod2.z.string()).optional(),
482
+ env: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.unknown()).optional(),
483
+ auth_token: import_zod2.z.string().optional(),
484
+ headers: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.string()).optional(),
485
+ type: import_zod2.z.string().optional(),
486
+ single_usage: import_zod2.z.boolean().optional(),
487
+ audience: import_zod2.z.string().optional()
488
+ });
489
+ var MCPServerConfigSchema = MCPServerConfigObjectSchema.optional().refine((config) => {
490
+ if (!config) {
491
+ return true;
492
+ }
493
+ const hasUrl = !!config.url;
494
+ const hasCommand = !!config.command;
495
+ return hasUrl !== hasCommand;
496
+ }, "Either 'url' or 'command' must be provided in config, but not both");
477
497
  var AssistantCreateParamsSchema = import_zod2.z.object({
478
498
  name: import_zod2.z.string(),
479
499
  description: import_zod2.z.string(),
@@ -517,23 +537,7 @@ var AssistantCreateParamsSchema = import_zod2.z.object({
517
537
  name: import_zod2.z.string(),
518
538
  description: import_zod2.z.string().optional(),
519
539
  enabled: import_zod2.z.boolean(),
520
- config: import_zod2.z.object({
521
- url: import_zod2.z.string().optional(),
522
- command: import_zod2.z.string().optional(),
523
- args: import_zod2.z.array(import_zod2.z.string()).optional(),
524
- env: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.unknown()).optional(),
525
- auth_token: import_zod2.z.string().optional()
526
- }).optional().refine(
527
- (config) => {
528
- if (!config) {
529
- return true;
530
- }
531
- const hasUrl = !!config.url;
532
- const hasCommand = !!config.command;
533
- return hasUrl !== hasCommand;
534
- },
535
- "Either 'url' or 'command' must be provided in config, but not both"
536
- ),
540
+ config: MCPServerConfigSchema,
537
541
  mcp_connect_url: import_zod2.z.string().optional(),
538
542
  tools_tokens_size_limit: import_zod2.z.number().optional(),
539
543
  command: import_zod2.z.string().optional(),
@@ -2611,6 +2615,7 @@ var BackgroundTaskStatus = {
2611
2615
  IntegrationUpdateParamsSchema,
2612
2616
  LLMProvider,
2613
2617
  LLMService,
2618
+ MCPServerConfigSchema,
2614
2619
  NotFoundError,
2615
2620
  PaginatedAnalyticsQueryParamsSchema,
2616
2621
  SkillCategory,