attio-mcp 1.2.2 → 1.3.5

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 (66) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +19 -1
  3. package/dist/api/attio-client.d.ts.map +1 -1
  4. package/dist/api/attio-client.js +11 -4
  5. package/dist/api/attio-client.js.map +1 -1
  6. package/dist/api/client-context.d.ts +4 -2
  7. package/dist/api/client-context.d.ts.map +1 -1
  8. package/dist/api/client-context.js +18 -6
  9. package/dist/api/client-context.js.map +1 -1
  10. package/dist/cli/commands/attributes.js +1 -1
  11. package/dist/cli/commands/attributes.js.map +1 -1
  12. package/dist/cli/discover.js +1 -1
  13. package/dist/cli/discover.js.map +1 -1
  14. package/dist/errors/api-errors.d.ts +9 -0
  15. package/dist/errors/api-errors.d.ts.map +1 -1
  16. package/dist/errors/api-errors.js +20 -2
  17. package/dist/errors/api-errors.js.map +1 -1
  18. package/dist/handlers/tool-configs/universal/core/crud-operations.d.ts +1 -4
  19. package/dist/handlers/tool-configs/universal/core/crud-operations.d.ts.map +1 -1
  20. package/dist/handlers/tool-configs/universal/core/index.d.ts +0 -8
  21. package/dist/handlers/tool-configs/universal/core/index.d.ts.map +1 -1
  22. package/dist/handlers/tool-configs/universal/core/metadata-operations.d.ts +0 -2
  23. package/dist/handlers/tool-configs/universal/core/metadata-operations.d.ts.map +1 -1
  24. package/dist/handlers/tool-configs/universal/core/notes-operations.d.ts +0 -1
  25. package/dist/handlers/tool-configs/universal/core/notes-operations.d.ts.map +1 -1
  26. package/dist/handlers/tool-configs/universal/core/record-details-operations.d.ts +1 -2
  27. package/dist/handlers/tool-configs/universal/core/record-details-operations.d.ts.map +1 -1
  28. package/dist/handlers/tool-configs/universal/core/search-operations.d.ts +1 -2
  29. package/dist/handlers/tool-configs/universal/core/search-operations.d.ts.map +1 -1
  30. package/dist/handlers/tool-configs/universal/index.d.ts +0 -12
  31. package/dist/handlers/tool-configs/universal/index.d.ts.map +1 -1
  32. package/dist/handlers/tool-configs/universal/operations/index.d.ts +0 -4
  33. package/dist/handlers/tool-configs/universal/operations/index.d.ts.map +1 -1
  34. package/dist/handlers/tool-configs/universal/schemas/advanced-schemas.d.ts +0 -4
  35. package/dist/handlers/tool-configs/universal/schemas/advanced-schemas.d.ts.map +1 -1
  36. package/dist/handlers/tool-configs/universal/schemas/common/properties.d.ts +5 -1
  37. package/dist/handlers/tool-configs/universal/schemas/common/properties.d.ts.map +1 -1
  38. package/dist/handlers/tool-configs/universal/schemas/common/properties.js +7 -2
  39. package/dist/handlers/tool-configs/universal/schemas/common/properties.js.map +1 -1
  40. package/dist/handlers/tool-configs/universal/schemas/core-schemas.d.ts +0 -5
  41. package/dist/handlers/tool-configs/universal/schemas/core-schemas.d.ts.map +1 -1
  42. package/dist/handlers/tool-configs/universal/schemas/utility-schemas.d.ts +0 -1
  43. package/dist/handlers/tool-configs/universal/schemas/utility-schemas.d.ts.map +1 -1
  44. package/dist/handlers/tool-configs/universal/schemas/validation-schemas.d.ts +0 -2
  45. package/dist/handlers/tool-configs/universal/schemas/validation-schemas.d.ts.map +1 -1
  46. package/dist/handlers/tools/dispatcher/utils.d.ts +5 -1
  47. package/dist/handlers/tools/dispatcher/utils.d.ts.map +1 -1
  48. package/dist/handlers/tools/dispatcher/utils.js +23 -8
  49. package/dist/handlers/tools/dispatcher/utils.js.map +1 -1
  50. package/dist/handlers/tools/registry.d.ts +0 -12
  51. package/dist/handlers/tools/registry.d.ts.map +1 -1
  52. package/dist/server/createServer.d.ts +17 -0
  53. package/dist/server/createServer.d.ts.map +1 -1
  54. package/dist/services/UniversalSearchService.d.ts +10 -0
  55. package/dist/services/UniversalSearchService.d.ts.map +1 -1
  56. package/dist/services/UniversalSearchService.js +43 -2
  57. package/dist/services/UniversalSearchService.js.map +1 -1
  58. package/dist/smithery.d.ts +20 -0
  59. package/dist/smithery.d.ts.map +1 -1
  60. package/dist/smithery.js +20 -4
  61. package/dist/smithery.js.map +1 -1
  62. package/dist/utils/config-loader.d.ts +6 -0
  63. package/dist/utils/config-loader.d.ts.map +1 -1
  64. package/dist/utils/config-loader.js +21 -0
  65. package/dist/utils/config-loader.js.map +1 -1
  66. package/package.json +6 -1
@@ -1 +1 @@
1
- {"version":3,"file":"notes-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/notes-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,MAAM,4CAA4C,CAAC;AAoBpD,eAAO,MAAM,gBAAgB,EAAE,mBAAmB,CAChD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6DxB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAC/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAuD1B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa/B,CAAC"}
1
+ {"version":3,"file":"notes-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/notes-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,MAAM,4CAA4C,CAAC;AAoBpD,eAAO,MAAM,gBAAgB,EAAE,mBAAmB,CAChD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6DxB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAC/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAuD1B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa/B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UniversalToolConfig, UniversalRecordDetailsParams, UniversalResourceType } from '../types.js';
1
+ import { UniversalToolConfig, UniversalRecordDetailsParams } from '../types.js';
2
2
  import { AttioRecord } from '../../../../types/attio.js';
3
3
  export declare const getRecordDetailsConfig: UniversalToolConfig<UniversalRecordDetailsParams, AttioRecord>;
4
4
  export declare const getRecordDetailsDefinition: {
@@ -9,7 +9,6 @@ export declare const getRecordDetailsDefinition: {
9
9
  properties: {
10
10
  resource_type: {
11
11
  type: "string";
12
- enum: UniversalResourceType[];
13
12
  description: string;
14
13
  };
15
14
  record_id: {
@@ -1 +1 @@
1
- {"version":3,"file":"record-details-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/record-details-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,CACtD,4BAA4B,EAC5B,WAAW,CAsIZ,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAetC,CAAC"}
1
+ {"version":3,"file":"record-details-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/record-details-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,CACtD,4BAA4B,EAC5B,WAAW,CAsIZ,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAetC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UniversalToolConfig, UniversalSearchParams, UniversalResourceType } from '../types.js';
1
+ import { UniversalToolConfig, UniversalSearchParams } from '../types.js';
2
2
  import { AttioRecord } from '../../../../types/attio.js';
3
3
  /**
4
4
  * Universal search records tool configuration.
@@ -26,7 +26,6 @@ export declare const searchRecordsDefinition: {
26
26
  };
27
27
  resource_type: {
28
28
  type: "string";
29
- enum: UniversalResourceType[];
30
29
  description: string;
31
30
  };
32
31
  query: {
@@ -1 +1 @@
1
- {"version":3,"file":"search-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/search-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAUzD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CACnD,qBAAqB,EACrB,WAAW,EAAE,CA0Hd,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanC,CAAC"}
1
+ {"version":3,"file":"search-operations.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/core/search-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAUzD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CACnD,qBAAqB,EACrB,WAAW,EAAE,CA0Hd,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanC,CAAC"}
@@ -221,7 +221,6 @@ export declare const universalToolDefinitions: {
221
221
  };
222
222
  resource_type: {
223
223
  type: "string";
224
- enum: import("./types.js").UniversalResourceType[];
225
224
  description: string;
226
225
  };
227
226
  query: {
@@ -338,7 +337,6 @@ export declare const universalToolDefinitions: {
338
337
  };
339
338
  resource_type: {
340
339
  type: "string";
341
- enum: import("./types.js").UniversalResourceType[];
342
340
  description: string;
343
341
  };
344
342
  content_type: {
@@ -386,7 +384,6 @@ export declare const universalToolDefinitions: {
386
384
  };
387
385
  resource_type: {
388
386
  type: "string";
389
- enum: import("./types.js").UniversalResourceType[];
390
387
  description: string;
391
388
  };
392
389
  timeframe_type: {
@@ -440,7 +437,6 @@ export declare const universalToolDefinitions: {
440
437
  };
441
438
  resource_type: {
442
439
  type: "string";
443
- enum: import("./types.js").UniversalResourceType[];
444
440
  description: string;
445
441
  };
446
442
  operations: {
@@ -522,7 +518,6 @@ export declare const universalToolDefinitions: {
522
518
  };
523
519
  resource_type: {
524
520
  type: "string";
525
- enum: import("./types.js").UniversalResourceType[];
526
521
  description: string;
527
522
  };
528
523
  query: {
@@ -639,7 +634,6 @@ export declare const universalToolDefinitions: {
639
634
  properties: {
640
635
  resource_type: {
641
636
  type: "string";
642
- enum: import("./types.js").UniversalResourceType[];
643
637
  description: string;
644
638
  };
645
639
  record_id: {
@@ -675,7 +669,6 @@ export declare const universalToolDefinitions: {
675
669
  properties: {
676
670
  resource_type: {
677
671
  type: "string";
678
- enum: import("./types.js").UniversalResourceType[];
679
672
  description: string;
680
673
  };
681
674
  record_data: {
@@ -715,7 +708,6 @@ export declare const universalToolDefinitions: {
715
708
  properties: {
716
709
  resource_type: {
717
710
  type: "string";
718
- enum: import("./types.js").UniversalResourceType[];
719
711
  description: string;
720
712
  };
721
713
  record_id: {
@@ -757,7 +749,6 @@ export declare const universalToolDefinitions: {
757
749
  properties: {
758
750
  resource_type: {
759
751
  type: "string";
760
- enum: import("./types.js").UniversalResourceType[];
761
752
  description: string;
762
753
  };
763
754
  record_id: {
@@ -785,7 +776,6 @@ export declare const universalToolDefinitions: {
785
776
  properties: {
786
777
  resource_type: {
787
778
  type: "string";
788
- enum: import("./types.js").UniversalResourceType[];
789
779
  description: string;
790
780
  };
791
781
  record_id: {
@@ -827,7 +817,6 @@ export declare const universalToolDefinitions: {
827
817
  properties: {
828
818
  resource_type: {
829
819
  type: "string";
830
- enum: import("./types.js").UniversalResourceType[];
831
820
  description: string;
832
821
  };
833
822
  categories: {
@@ -937,7 +926,6 @@ export declare const universalToolDefinitions: {
937
926
  };
938
927
  resource_type: {
939
928
  type: "string";
940
- enum: import("./types.js").UniversalResourceType[];
941
929
  description: string;
942
930
  };
943
931
  record_id: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/handlers/tool-configs/universal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EAClC,MAAM,uBAAuB,CAAC;AAa/B;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAoBrC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;sBAEJ;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE;;;;;;;wBAuB9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,MAAM;CAqBrD,CAAC;AAGF,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,GAClC,CAAC;AAGF,cAAc,YAAY,CA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;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgDvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAItD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ7D,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB;;;;;;EAepC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,kBAAkB,EAAE,MAAM,GACzB,MAAM,GAAG,SAAS,CAEpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4DzB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAS3D"}
@@ -36,7 +36,6 @@ export declare const advancedOperationsToolDefinitions: {
36
36
  };
37
37
  resource_type: {
38
38
  type: "string";
39
- enum: import("../types.js").UniversalResourceType[];
40
39
  description: string;
41
40
  };
42
41
  query: {
@@ -153,7 +152,6 @@ export declare const advancedOperationsToolDefinitions: {
153
152
  };
154
153
  resource_type: {
155
154
  type: "string";
156
- enum: import("../types.js").UniversalResourceType[];
157
155
  description: string;
158
156
  };
159
157
  content_type: {
@@ -201,7 +199,6 @@ export declare const advancedOperationsToolDefinitions: {
201
199
  };
202
200
  resource_type: {
203
201
  type: "string";
204
- enum: import("../types.js").UniversalResourceType[];
205
202
  description: string;
206
203
  };
207
204
  timeframe_type: {
@@ -255,7 +252,6 @@ export declare const advancedOperationsToolDefinitions: {
255
252
  };
256
253
  resource_type: {
257
254
  type: "string";
258
- enum: import("../types.js").UniversalResourceType[];
259
255
  description: string;
260
256
  };
261
257
  operations: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/operations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAW9D,eAAO,MAAM,6BAA6B;;;;;;CAMzC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoF7C,CAAC;AAEF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/operations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAW9D,eAAO,MAAM,6BAA6B;;;;;;CAMzC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoF7C,CAAC;AAEF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,CAAC"}
@@ -37,7 +37,6 @@ export declare const advancedSearchSchema: {
37
37
  };
38
38
  resource_type: {
39
39
  type: "string";
40
- enum: UniversalResourceType[];
41
40
  description: string;
42
41
  };
43
42
  query: {
@@ -138,7 +137,6 @@ export declare const searchByContentSchema: {
138
137
  };
139
138
  resource_type: {
140
139
  type: "string";
141
- enum: UniversalResourceType[];
142
140
  description: string;
143
141
  };
144
142
  content_type: {
@@ -178,7 +176,6 @@ export declare const searchByTimeframeSchema: {
178
176
  };
179
177
  resource_type: {
180
178
  type: "string";
181
- enum: UniversalResourceType[];
182
179
  description: string;
183
180
  };
184
181
  timeframe_type: {
@@ -224,7 +221,6 @@ export declare const batchOperationsSchema: {
224
221
  };
225
222
  resource_type: {
226
223
  type: "string";
227
- enum: UniversalResourceType[];
228
224
  description: string;
229
225
  };
230
226
  operations: {
@@ -1 +1 @@
1
- {"version":3,"file":"advanced-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/advanced-schemas.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;CAqBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DhC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDjC,CAAC"}
1
+ {"version":3,"file":"advanced-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/advanced-schemas.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;CAqBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DhC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDjC,CAAC"}
@@ -1,7 +1,11 @@
1
1
  import { UniversalResourceType } from '../../types.js';
2
+ /**
3
+ * Standard resource types for reference.
4
+ * Custom objects from mapping config are also supported.
5
+ */
6
+ export declare const STANDARD_RESOURCE_TYPES: UniversalResourceType[];
2
7
  export declare const resourceTypeProperty: {
3
8
  type: "string";
4
- enum: UniversalResourceType[];
5
9
  description: string;
6
10
  };
7
11
  export declare const paginationProperties: {
@@ -1 +1 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../../../src/handlers/tool-configs/universal/schemas/common/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;;CAKhC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAchC,CAAC"}
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../../../src/handlers/tool-configs/universal/schemas/common/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,yBAAuC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;;CAKhC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAchC,CAAC"}
@@ -1,8 +1,13 @@
1
1
  import { UniversalResourceType } from '../../types.js';
2
+ /**
3
+ * Standard resource types for reference.
4
+ * Custom objects from mapping config are also supported.
5
+ */
6
+ export const STANDARD_RESOURCE_TYPES = Object.values(UniversalResourceType);
2
7
  export const resourceTypeProperty = {
3
8
  type: 'string',
4
- enum: Object.values(UniversalResourceType),
5
- description: 'Type of resource to operate on (companies, people, deals, tasks, lists, records, notes)',
9
+ description: 'Type of resource to operate on. Standard types: companies, people, deals, tasks, lists, records, notes. ' +
10
+ 'Custom objects (e.g., "funds", "investment_opportunities") are also supported after running `attio-discover attributes -a`.',
6
11
  };
7
12
  export const paginationProperties = {
8
13
  limit: {
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../src/handlers/tool-configs/universal/schemas/common/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,QAAiB;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAC1C,WAAW,EACT,yFAAyF;CAC5F,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE;QACL,IAAI,EAAE,QAAiB;QACvB,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qCAAqC;KACnD;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAiB;QACvB,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,0CAA0C;KACxD;CACF,CAAC"}
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../src/handlers/tool-configs/universal/schemas/common/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,QAAiB;IACvB,WAAW,EACT,0GAA0G;QAC1G,6HAA6H;CAChI,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE;QACL,IAAI,EAAE,QAAiB;QACvB,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qCAAqC;KACnD;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAiB;QACvB,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,0CAA0C;KACxD;CACF,CAAC"}
@@ -16,7 +16,6 @@ export declare const searchRecordsSchema: {
16
16
  };
17
17
  resource_type: {
18
18
  type: "string";
19
- enum: import("../types.js").UniversalResourceType[];
20
19
  description: string;
21
20
  };
22
21
  query: {
@@ -125,7 +124,6 @@ export declare const getRecordDetailsSchema: {
125
124
  properties: {
126
125
  resource_type: {
127
126
  type: "string";
128
- enum: import("../types.js").UniversalResourceType[];
129
127
  description: string;
130
128
  };
131
129
  record_id: {
@@ -153,7 +151,6 @@ export declare const createRecordSchema: {
153
151
  properties: {
154
152
  resource_type: {
155
153
  type: "string";
156
- enum: import("../types.js").UniversalResourceType[];
157
154
  description: string;
158
155
  };
159
156
  record_data: {
@@ -185,7 +182,6 @@ export declare const updateRecordSchema: {
185
182
  properties: {
186
183
  resource_type: {
187
184
  type: "string";
188
- enum: import("../types.js").UniversalResourceType[];
189
185
  description: string;
190
186
  };
191
187
  record_id: {
@@ -219,7 +215,6 @@ export declare const deleteRecordSchema: {
219
215
  properties: {
220
216
  resource_type: {
221
217
  type: "string";
222
- enum: import("../types.js").UniversalResourceType[];
223
218
  description: string;
224
219
  };
225
220
  record_id: {
@@ -1 +1 @@
1
- {"version":3,"file":"core-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/core-schemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8J/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAc9B,CAAC"}
1
+ {"version":3,"file":"core-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/core-schemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8J/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAc9B,CAAC"}
@@ -123,7 +123,6 @@ export declare const listNotesSchema: {
123
123
  };
124
124
  resource_type: {
125
125
  type: "string";
126
- enum: UniversalResourceType[];
127
126
  description: string;
128
127
  };
129
128
  record_id: {
@@ -1 +1 @@
1
- {"version":3,"file":"utility-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/utility-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAMnF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;CAkB1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
1
+ {"version":3,"file":"utility-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/utility-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAMnF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;CAkB1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
@@ -3,7 +3,6 @@ export declare const getAttributesSchema: {
3
3
  properties: {
4
4
  resource_type: {
5
5
  type: "string";
6
- enum: import("../types.js").UniversalResourceType[];
7
6
  description: string;
8
7
  };
9
8
  record_id: {
@@ -37,7 +36,6 @@ export declare const discoverAttributesSchema: {
37
36
  properties: {
38
37
  resource_type: {
39
38
  type: "string";
40
- enum: import("../types.js").UniversalResourceType[];
41
39
  description: string;
42
40
  };
43
41
  categories: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/validation-schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B/B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;CAkBpC,CAAC"}
1
+ {"version":3,"file":"validation-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/tool-configs/universal/schemas/validation-schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B/B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAkBpC,CAAC"}
@@ -6,7 +6,11 @@
6
6
  */
7
7
  export declare function normalizeToolMsg(msg: string): string;
8
8
  /**
9
- * Canonicalize resource type to valid values and prevent mutations
9
+ * Canonicalize resource type to valid values and prevent mutations.
10
+ * Supports both standard types and custom objects discovered via config.
11
+ *
12
+ * Custom objects require running `attio-discover attributes -a` first
13
+ * to populate the mapping config.
10
14
  */
11
15
  export declare function canonicalizeResourceType(rt: unknown): string;
12
16
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/handlers/tools/dispatcher/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CAmB5D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/handlers/tools/dispatcher/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAeD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CAmB5D"}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Dispatcher utilities
3
3
  */
4
+ import { loadMappingConfig } from '../../../utils/config-loader.js';
4
5
  /**
5
6
  * Normalize error messages by stripping tool execution prefixes.
6
7
  */
@@ -8,18 +9,32 @@ export function normalizeToolMsg(msg) {
8
9
  return msg.replace(/^Error executing tool '.*?':\s*/, '');
9
10
  }
10
11
  /**
11
- * Canonicalize resource type to valid values and prevent mutations
12
+ * Standard resource types always available in the system
13
+ */
14
+ const STANDARD_RESOURCE_TYPES = [
15
+ 'records',
16
+ 'lists',
17
+ 'people',
18
+ 'companies',
19
+ 'tasks',
20
+ 'deals',
21
+ 'notes',
22
+ ];
23
+ /**
24
+ * Canonicalize resource type to valid values and prevent mutations.
25
+ * Supports both standard types and custom objects discovered via config.
26
+ *
27
+ * Custom objects require running `attio-discover attributes -a` first
28
+ * to populate the mapping config.
12
29
  */
13
30
  export function canonicalizeResourceType(rt) {
14
31
  const value = String(rt ?? '').toLowerCase();
32
+ // Load custom objects from mapping config (e.g., "funds", "investment_opportunities")
33
+ const config = loadMappingConfig();
34
+ const customObjects = Object.keys(config.mappings?.attributes?.objects || {});
35
+ // Merge standard + custom (deduplicated)
15
36
  const validTypes = [
16
- 'records',
17
- 'lists',
18
- 'people',
19
- 'companies',
20
- 'tasks',
21
- 'deals',
22
- 'notes',
37
+ ...new Set([...STANDARD_RESOURCE_TYPES, ...customObjects]),
23
38
  ];
24
39
  if (!validTypes.includes(value)) {
25
40
  throw new Error(`Invalid resource_type: ${value}. Must be one of: ${validTypes.join(', ')}`);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/handlers/tools/dispatcher/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,OAAO,GAAG,CAAC,OAAO,CAAC,iCAAiC,EAAE,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,EAAW;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7C,MAAM,UAAU,GAAG;QACjB,SAAS;QACT,OAAO;QACP,QAAQ;QACR,WAAW;QACX,OAAO;QACP,OAAO;QACP,OAAO;KACR,CAAC;IAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,0BAA0B,KAAK,qBAAqB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5E,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/handlers/tools/dispatcher/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,OAAO,GAAG,CAAC,OAAO,CAAC,iCAAiC,EAAE,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED;;GAEG;AACH,MAAM,uBAAuB,GAAG;IAC9B,SAAS;IACT,OAAO;IACP,QAAQ;IACR,WAAW;IACX,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,EAAW;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAE7C,sFAAsF;IACtF,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;IAE9E,yCAAyC;IACzC,MAAM,UAAU,GAAG;QACjB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,uBAAuB,EAAE,GAAG,aAAa,CAAC,CAAC;KAC3D,CAAC;IAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,0BAA0B,KAAK,qBAAqB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5E,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -305,7 +305,6 @@ export declare const TOOL_DEFINITIONS: {
305
305
  };
306
306
  resource_type: {
307
307
  type: "string";
308
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
309
308
  description: string;
310
309
  };
311
310
  query: {
@@ -422,7 +421,6 @@ export declare const TOOL_DEFINITIONS: {
422
421
  };
423
422
  resource_type: {
424
423
  type: "string";
425
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
426
424
  description: string;
427
425
  };
428
426
  content_type: {
@@ -470,7 +468,6 @@ export declare const TOOL_DEFINITIONS: {
470
468
  };
471
469
  resource_type: {
472
470
  type: "string";
473
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
474
471
  description: string;
475
472
  };
476
473
  timeframe_type: {
@@ -524,7 +521,6 @@ export declare const TOOL_DEFINITIONS: {
524
521
  };
525
522
  resource_type: {
526
523
  type: "string";
527
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
528
524
  description: string;
529
525
  };
530
526
  operations: {
@@ -606,7 +602,6 @@ export declare const TOOL_DEFINITIONS: {
606
602
  };
607
603
  resource_type: {
608
604
  type: "string";
609
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
610
605
  description: string;
611
606
  };
612
607
  query: {
@@ -723,7 +718,6 @@ export declare const TOOL_DEFINITIONS: {
723
718
  properties: {
724
719
  resource_type: {
725
720
  type: "string";
726
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
727
721
  description: string;
728
722
  };
729
723
  record_id: {
@@ -759,7 +753,6 @@ export declare const TOOL_DEFINITIONS: {
759
753
  properties: {
760
754
  resource_type: {
761
755
  type: "string";
762
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
763
756
  description: string;
764
757
  };
765
758
  record_data: {
@@ -799,7 +792,6 @@ export declare const TOOL_DEFINITIONS: {
799
792
  properties: {
800
793
  resource_type: {
801
794
  type: "string";
802
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
803
795
  description: string;
804
796
  };
805
797
  record_id: {
@@ -841,7 +833,6 @@ export declare const TOOL_DEFINITIONS: {
841
833
  properties: {
842
834
  resource_type: {
843
835
  type: "string";
844
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
845
836
  description: string;
846
837
  };
847
838
  record_id: {
@@ -869,7 +860,6 @@ export declare const TOOL_DEFINITIONS: {
869
860
  properties: {
870
861
  resource_type: {
871
862
  type: "string";
872
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
873
863
  description: string;
874
864
  };
875
865
  record_id: {
@@ -911,7 +901,6 @@ export declare const TOOL_DEFINITIONS: {
911
901
  properties: {
912
902
  resource_type: {
913
903
  type: "string";
914
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
915
904
  description: string;
916
905
  };
917
906
  categories: {
@@ -1021,7 +1010,6 @@ export declare const TOOL_DEFINITIONS: {
1021
1010
  };
1022
1011
  resource_type: {
1023
1012
  type: "string";
1024
- enum: import("../tool-configs/universal/types.js").UniversalResourceType[];
1025
1013
  description: string;
1026
1014
  };
1027
1015
  record_id: {
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/handlers/tools/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,KAAK,gBAAgB,GAAG;IACtB,YAAY,EAAE,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IACrD,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAoDF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBpB,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEN;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CA2I7E"}
@@ -42,9 +42,18 @@ export declare function createServer(context?: ServerContext): Server<{
42
42
  method: string;
43
43
  params?: {
44
44
  [x: string]: unknown;
45
+ task?: {
46
+ [x: string]: unknown;
47
+ ttl?: number | null | undefined;
48
+ pollInterval?: number | undefined;
49
+ } | undefined;
45
50
  _meta?: {
46
51
  [x: string]: unknown;
47
52
  progressToken?: string | number | undefined;
53
+ "io.modelcontextprotocol/related-task"?: {
54
+ [x: string]: unknown;
55
+ taskId: string;
56
+ } | undefined;
48
57
  } | undefined;
49
58
  } | undefined;
50
59
  }, {
@@ -53,12 +62,20 @@ export declare function createServer(context?: ServerContext): Server<{
53
62
  [x: string]: unknown;
54
63
  _meta?: {
55
64
  [x: string]: unknown;
65
+ "io.modelcontextprotocol/related-task"?: {
66
+ [x: string]: unknown;
67
+ taskId: string;
68
+ } | undefined;
56
69
  } | undefined;
57
70
  } | undefined;
58
71
  }, {
59
72
  [x: string]: unknown;
60
73
  _meta?: {
61
74
  [x: string]: unknown;
75
+ "io.modelcontextprotocol/related-task"?: {
76
+ [x: string]: unknown;
77
+ taskId: string;
78
+ } | undefined;
62
79
  } | undefined;
63
80
  }>;
64
81
  //# sourceMappingURL=createServer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;EAYvB,CAAC;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;GA0EnD"}
1
+ {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;EAYvB,CAAC;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EnD"}
@@ -29,6 +29,16 @@ export declare class UniversalSearchService {
29
29
  * Search records using object records API with filter support
30
30
  */
31
31
  private static searchRecords_ObjectType;
32
+ /**
33
+ * Search custom objects using generic records API
34
+ * Enables support for user-defined custom objects (Issue #918)
35
+ *
36
+ * @param objectSlug - The custom object type (e.g., "funds", "investment_opportunities")
37
+ * @param limit - Maximum results
38
+ * @param offset - Pagination offset
39
+ * @param filters - Optional filters
40
+ */
41
+ private static searchCustomObject;
32
42
  static searchByRelationship(sourceResourceType: UniversalResourceType, targetResourceType: UniversalResourceType, targetRecordId: string, limit?: number, offset?: number): Promise<AttioRecord[]>;
33
43
  static searchByTimeframe(resourceType: UniversalResourceType, timeframeConfig: TimeframeQuery, limit?: number, offset?: number): Promise<AttioRecord[]>;
34
44
  static searchByContent(resourceType: UniversalResourceType, query: string, searchFields?: string[], useOrLogic?: boolean, limit?: number, offset?: number): Promise<AttioRecord[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"UniversalSearchService.d.ts","sourceRoot":"","sources":["../../src/services/UniversalSearchService.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,qBAAqB,EAItB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA+DhD,OAAO,EAAqB,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA6B9E;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAqD;IAE9E;;OAEG;mBACkB,oBAAoB;IAiFzC;;OAEG;WACU,aAAa,CACxB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,WAAW,EAAE,CAAC;IAkLzB;;OAEG;mBACkB,2BAA2B;IAwIhD;;OAEG;mBACkB,wBAAwB;WAyBhC,oBAAoB,CAC/B,kBAAkB,EAAE,qBAAqB,EACzC,kBAAkB,EAAE,qBAAqB,EACzC,cAAc,EAAE,MAAM,EACtB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,EAAE,CAAC;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