profound-mcp 0.13.0 → 0.14.0

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 (117) hide show
  1. package/code-tool-types.d.mts +2 -0
  2. package/code-tool-types.d.mts.map +1 -1
  3. package/code-tool-types.d.ts +2 -0
  4. package/code-tool-types.d.ts.map +1 -1
  5. package/code-tool-worker.d.mts.map +1 -1
  6. package/code-tool-worker.d.ts.map +1 -1
  7. package/code-tool-worker.js +6 -0
  8. package/code-tool-worker.js.map +1 -1
  9. package/code-tool-worker.mjs +6 -0
  10. package/code-tool-worker.mjs.map +1 -1
  11. package/code-tool.d.mts.map +1 -1
  12. package/code-tool.d.ts.map +1 -1
  13. package/code-tool.js +18 -2
  14. package/code-tool.js.map +1 -1
  15. package/code-tool.mjs +18 -2
  16. package/code-tool.mjs.map +1 -1
  17. package/docs-search-tool.d.mts.map +1 -1
  18. package/docs-search-tool.d.ts.map +1 -1
  19. package/docs-search-tool.js +7 -2
  20. package/docs-search-tool.js.map +1 -1
  21. package/docs-search-tool.mjs +7 -2
  22. package/docs-search-tool.mjs.map +1 -1
  23. package/package.json +2 -2
  24. package/server.js +1 -1
  25. package/server.mjs +1 -1
  26. package/src/code-tool-types.ts +5 -1
  27. package/src/code-tool-worker.ts +6 -0
  28. package/src/code-tool.ts +23 -2
  29. package/src/docs-search-tool.ts +7 -3
  30. package/src/server.ts +1 -1
  31. package/src/tools/logs/raw/bots-logs-raw.ts +9 -2
  32. package/src/tools/logs/raw/logs-logs-raw.ts +9 -2
  33. package/src/tools/organizations/categories/assets-organizations-categories.ts +1 -1
  34. package/src/tools/organizations/categories/list-organizations-categories.ts +1 -1
  35. package/src/tools/organizations/categories/prompts-organizations-categories.ts +1 -1
  36. package/src/tools/organizations/categories/tags-organizations-categories.ts +1 -1
  37. package/src/tools/organizations/categories/topics-organizations-categories.ts +1 -1
  38. package/src/tools/organizations/domains-organizations.ts +1 -1
  39. package/src/tools/organizations/list-assets-organizations.ts +1 -1
  40. package/src/tools/organizations/models-organizations.ts +1 -1
  41. package/src/tools/organizations/regions-organizations.ts +1 -1
  42. package/src/tools/prompts/answers-prompts.ts +44 -2
  43. package/src/tools/reports/citations-reports.ts +41 -2
  44. package/src/tools/reports/sentiment-reports.ts +41 -2
  45. package/src/tools/reports/visibility-reports.ts +41 -3
  46. package/tools/logs/raw/bots-logs-raw.d.mts.map +1 -1
  47. package/tools/logs/raw/bots-logs-raw.d.ts.map +1 -1
  48. package/tools/logs/raw/bots-logs-raw.js +13 -1
  49. package/tools/logs/raw/bots-logs-raw.js.map +1 -1
  50. package/tools/logs/raw/bots-logs-raw.mjs +11 -2
  51. package/tools/logs/raw/bots-logs-raw.mjs.map +1 -1
  52. package/tools/logs/raw/logs-logs-raw.d.mts.map +1 -1
  53. package/tools/logs/raw/logs-logs-raw.d.ts.map +1 -1
  54. package/tools/logs/raw/logs-logs-raw.js +13 -1
  55. package/tools/logs/raw/logs-logs-raw.js.map +1 -1
  56. package/tools/logs/raw/logs-logs-raw.mjs +11 -2
  57. package/tools/logs/raw/logs-logs-raw.mjs.map +1 -1
  58. package/tools/organizations/categories/assets-organizations-categories.js +5 -1
  59. package/tools/organizations/categories/assets-organizations-categories.js.map +1 -1
  60. package/tools/organizations/categories/assets-organizations-categories.mjs +2 -1
  61. package/tools/organizations/categories/assets-organizations-categories.mjs.map +1 -1
  62. package/tools/organizations/categories/list-organizations-categories.js +5 -1
  63. package/tools/organizations/categories/list-organizations-categories.js.map +1 -1
  64. package/tools/organizations/categories/list-organizations-categories.mjs +2 -1
  65. package/tools/organizations/categories/list-organizations-categories.mjs.map +1 -1
  66. package/tools/organizations/categories/prompts-organizations-categories.js +5 -1
  67. package/tools/organizations/categories/prompts-organizations-categories.js.map +1 -1
  68. package/tools/organizations/categories/prompts-organizations-categories.mjs +2 -1
  69. package/tools/organizations/categories/prompts-organizations-categories.mjs.map +1 -1
  70. package/tools/organizations/categories/tags-organizations-categories.js +5 -1
  71. package/tools/organizations/categories/tags-organizations-categories.js.map +1 -1
  72. package/tools/organizations/categories/tags-organizations-categories.mjs +2 -1
  73. package/tools/organizations/categories/tags-organizations-categories.mjs.map +1 -1
  74. package/tools/organizations/categories/topics-organizations-categories.js +5 -1
  75. package/tools/organizations/categories/topics-organizations-categories.js.map +1 -1
  76. package/tools/organizations/categories/topics-organizations-categories.mjs +2 -1
  77. package/tools/organizations/categories/topics-organizations-categories.mjs.map +1 -1
  78. package/tools/organizations/domains-organizations.js +5 -1
  79. package/tools/organizations/domains-organizations.js.map +1 -1
  80. package/tools/organizations/domains-organizations.mjs +2 -1
  81. package/tools/organizations/domains-organizations.mjs.map +1 -1
  82. package/tools/organizations/list-assets-organizations.js +5 -1
  83. package/tools/organizations/list-assets-organizations.js.map +1 -1
  84. package/tools/organizations/list-assets-organizations.mjs +2 -1
  85. package/tools/organizations/list-assets-organizations.mjs.map +1 -1
  86. package/tools/organizations/models-organizations.js +5 -1
  87. package/tools/organizations/models-organizations.js.map +1 -1
  88. package/tools/organizations/models-organizations.mjs +2 -1
  89. package/tools/organizations/models-organizations.mjs.map +1 -1
  90. package/tools/organizations/regions-organizations.js +5 -1
  91. package/tools/organizations/regions-organizations.js.map +1 -1
  92. package/tools/organizations/regions-organizations.mjs +2 -1
  93. package/tools/organizations/regions-organizations.mjs.map +1 -1
  94. package/tools/prompts/answers-prompts.d.mts.map +1 -1
  95. package/tools/prompts/answers-prompts.d.ts.map +1 -1
  96. package/tools/prompts/answers-prompts.js +48 -1
  97. package/tools/prompts/answers-prompts.js.map +1 -1
  98. package/tools/prompts/answers-prompts.mjs +46 -2
  99. package/tools/prompts/answers-prompts.mjs.map +1 -1
  100. package/tools/reports/citations-reports.d.mts.map +1 -1
  101. package/tools/reports/citations-reports.d.ts.map +1 -1
  102. package/tools/reports/citations-reports.js +45 -1
  103. package/tools/reports/citations-reports.js.map +1 -1
  104. package/tools/reports/citations-reports.mjs +43 -2
  105. package/tools/reports/citations-reports.mjs.map +1 -1
  106. package/tools/reports/sentiment-reports.d.mts.map +1 -1
  107. package/tools/reports/sentiment-reports.d.ts.map +1 -1
  108. package/tools/reports/sentiment-reports.js +45 -1
  109. package/tools/reports/sentiment-reports.js.map +1 -1
  110. package/tools/reports/sentiment-reports.mjs +43 -2
  111. package/tools/reports/sentiment-reports.mjs.map +1 -1
  112. package/tools/reports/visibility-reports.d.mts.map +1 -1
  113. package/tools/reports/visibility-reports.d.ts.map +1 -1
  114. package/tools/reports/visibility-reports.js +45 -2
  115. package/tools/reports/visibility-reports.js.map +1 -1
  116. package/tools/reports/visibility-reports.mjs +43 -3
  117. package/tools/reports/visibility-reports.mjs.map +1 -1
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations.categories',
6
7
  operation: 'read',
@@ -37,7 +38,7 @@ export const handler = async (client, args) => {
37
38
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.categories.assets(category_id)));
38
39
  }
39
40
  catch (error) {
40
- if (isJqError(error)) {
41
+ if (error instanceof Profound.APIError || isJqError(error)) {
41
42
  return asErrorResult(error.message);
42
43
  }
43
44
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"assets-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/assets-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,gEAAgE;CAC9E,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,m2CAAm2C;IACr2C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CACxF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"assets-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/assets-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;O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KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations.categories',
9
13
  operation: 'read',
@@ -36,7 +40,7 @@ const handler = async (client, args) => {
36
40
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.categories.list()));
37
41
  }
38
42
  catch (error) {
39
- if ((0, filtering_1.isJqError)(error)) {
43
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
40
44
  return (0, types_1.asErrorResult)(error.message);
41
45
  }
42
46
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"list-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/list-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/list-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations.categories',
6
7
  operation: 'read',
@@ -33,7 +34,7 @@ export const handler = async (client, args) => {
33
34
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.categories.list()));
34
35
  }
35
36
  catch (error) {
36
- if (isJqError(error)) {
37
+ if (error instanceof Profound.APIError || isJqError(error)) {
37
38
  return asErrorResult(error.message);
38
39
  }
39
40
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"list-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/list-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/list-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations.categories',
9
13
  operation: 'read',
@@ -40,7 +44,7 @@ const handler = async (client, args) => {
40
44
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.categories.prompts(category_id)));
41
45
  }
42
46
  catch (error) {
43
- if ((0, filtering_1.isJqError)(error)) {
47
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
44
48
  return (0, types_1.asErrorResult)(error.message);
45
49
  }
46
50
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/prompts-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAA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ourceRoot":"","sources":["../../../src/tools/organizations/categories/prompts-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,0CAA0C;IACpD,WAAW,EAAE,kEAAkE;CAChF,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,s1EAAs1E;IACx1E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CACzF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations.categories',
6
7
  operation: 'read',
@@ -37,7 +38,7 @@ export const handler = async (client, args) => {
37
38
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.categories.prompts(category_id)));
38
39
  }
39
40
  catch (error) {
40
- if (isJqError(error)) {
41
+ if (error instanceof Profound.APIError || isJqError(error)) {
41
42
  return asErrorResult(error.message);
42
43
  }
43
44
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/prompts-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,0CAA0C;IACpD,WAAW,EAAE,kEAAkE;CAChF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,s1EAAs1E;IACx1E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CACzF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"prompts-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/prompts-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR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= (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations.categories',
9
13
  operation: 'read',
@@ -40,7 +44,7 @@ const handler = async (client, args) => {
40
44
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.categories.tags(category_id)));
41
45
  }
42
46
  catch (error) {
43
- if ((0, filtering_1.isJqError)(error)) {
47
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
44
48
  return (0, types_1.asErrorResult)(error.message);
45
49
  }
46
50
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"tags-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/tags-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4DAA4D;CAC1E,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,20BAA20B;IAC70B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CACtF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"tags-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/tags-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4DAA4D;CAC1E,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,20BAA20B;IAC70B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CACtF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations.categories',
6
7
  operation: 'read',
@@ -37,7 +38,7 @@ export const handler = async (client, args) => {
37
38
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.categories.tags(category_id)));
38
39
  }
39
40
  catch (error) {
40
- if (isJqError(error)) {
41
+ if (error instanceof Profound.APIError || isJqError(error)) {
41
42
  return asErrorResult(error.message);
42
43
  }
43
44
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"tags-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/tags-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4DAA4D;CAC1E,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,20BAA20B;IAC70B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CACtF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"tags-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/tags-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4DAA4D;CAC1E,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,20BAA20B;IAC70B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CACtF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations.categories',
9
13
  operation: 'read',
@@ -40,7 +44,7 @@ const handler = async (client, args) => {
40
44
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.categories.topics(category_id)));
41
45
  }
42
46
  catch (error) {
43
- if ((0, filtering_1.isJqError)(error)) {
47
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
44
48
  return (0, types_1.asErrorResult)(error.message);
45
49
  }
46
50
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"topics-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/topics-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,gEAAgE;CAC9E,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,i0BAAi0B;IACn0B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CACxF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"topics-organizations-categories.js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/topics-organizations-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,gEAAgE;CAC9E,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,i0BAAi0B;IACn0B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CACxF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations.categories',
6
7
  operation: 'read',
@@ -37,7 +38,7 @@ export const handler = async (client, args) => {
37
38
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.categories.topics(category_id)));
38
39
  }
39
40
  catch (error) {
40
- if (isJqError(error)) {
41
+ if (error instanceof Profound.APIError || isJqError(error)) {
41
42
  return asErrorResult(error.message);
42
43
  }
43
44
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"topics-organizations-categories.mjs","sourceRoot":"","sources":["../../../src/tools/organizations/categories/topics-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CA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js","sourceRoot":"","sources":["../../../src/tools/organizations/categories/topics-organizations-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,gEAAgE;CAC9E,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,i0BAAi0B;IACn0B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CACxF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations',
9
13
  operation: 'read',
@@ -36,7 +40,7 @@ const handler = async (client, args) => {
36
40
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.domains()));
37
41
  }
38
42
  catch (error) {
39
- if ((0, filtering_1.isJqError)(error)) {
43
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
40
44
  return (0, types_1.asErrorResult)(error.message);
41
45
  }
42
46
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"domains-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/domains-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,46BAA46B;IAC96B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"domains-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/domains-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,46BAA46B;IAC96B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations',
6
7
  operation: 'read',
@@ -33,7 +34,7 @@ export const handler = async (client, args) => {
33
34
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.domains()));
34
35
  }
35
36
  catch (error) {
36
- if (isJqError(error)) {
37
+ if (error instanceof Profound.APIError || isJqError(error)) {
37
38
  return asErrorResult(error.message);
38
39
  }
39
40
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"domains-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/domains-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,46BAA46B;IAC96B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"domains-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/domains-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,46BAA46B;IAC96B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations',
9
13
  operation: 'read',
@@ -36,7 +40,7 @@ const handler = async (client, args) => {
36
40
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.listAssets()));
37
41
  }
38
42
  catch (error) {
39
- if ((0, filtering_1.isJqError)(error)) {
43
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
40
44
  return (0, types_1.asErrorResult)(error.message);
41
45
  }
42
46
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"list-assets-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/list-assets-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,yjEAAyjE;IAC3jE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-assets-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/list-assets-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAEr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.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations',
6
7
  operation: 'read',
@@ -33,7 +34,7 @@ export const handler = async (client, args) => {
33
34
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.listAssets()));
34
35
  }
35
36
  catch (error) {
36
- if (isJqError(error)) {
37
+ if (error instanceof Profound.APIError || isJqError(error)) {
37
38
  return asErrorResult(error.message);
38
39
  }
39
40
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"list-assets-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/list-assets-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,yjEAAyjE;IAC3jE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-assets-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/list-assets-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,yjEAAyjE;IAC3jE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations',
9
13
  operation: 'read',
@@ -36,7 +40,7 @@ const handler = async (client, args) => {
36
40
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.models()));
37
41
  }
38
42
  catch (error) {
39
- if ((0, filtering_1.isJqError)(error)) {
43
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
40
44
  return (0, types_1.asErrorResult)(error.message);
41
45
  }
42
46
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"models-organizations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C"}
1
+ {"version":3,"file":"models-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/models-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations',
6
7
  operation: 'read',
@@ -33,7 +34,7 @@ export const handler = async (client, args) => {
33
34
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.models()));
34
35
  }
35
36
  catch (error) {
36
- if (isJqError(error)) {
37
+ if (error instanceof Profound.APIError || isJqError(error)) {
37
38
  return asErrorResult(error.message);
38
39
  }
39
40
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"models-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/models-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"models-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/models-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,myBAAmyB;IACryB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("profound-mcp/filtering");
6
9
  const types_1 = require("profound-mcp/tools/types");
10
+ const profoundai_1 = __importDefault(require("profoundai"));
7
11
  exports.metadata = {
8
12
  resource: 'organizations',
9
13
  operation: 'read',
@@ -36,7 +40,7 @@ const handler = async (client, args) => {
36
40
  return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.organizations.regions()));
37
41
  }
38
42
  catch (error) {
39
- if ((0, filtering_1.isJqError)(error)) {
43
+ if (error instanceof profoundai_1.default.APIError || (0, filtering_1.isJqError)(error)) {
40
44
  return (0, types_1.asErrorResult)(error.message);
41
45
  }
42
46
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"regions-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/regions-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAK3E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,wyBAAwyB;IAC1yB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"regions-organizations.js","sourceRoot":"","sources":["../../src/tools/organizations/regions-organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,sDAAgE;AAChE,oDAAwF;AAGxF,4DAAkC;AAErB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,wyBAAwyB;IAC1yB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { isJqError, maybeFilter } from 'profound-mcp/filtering';
3
3
  import { asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
4
+ import Profound from 'profoundai';
4
5
  export const metadata = {
5
6
  resource: 'organizations',
6
7
  operation: 'read',
@@ -33,7 +34,7 @@ export const handler = async (client, args) => {
33
34
  return asTextContentResult(await maybeFilter(jq_filter, await client.organizations.regions()));
34
35
  }
35
36
  catch (error) {
36
- if (isJqError(error)) {
37
+ if (error instanceof Profound.APIError || isJqError(error)) {
37
38
  return asErrorResult(error.message);
38
39
  }
39
40
  throw error;
@@ -1 +1 @@
1
- {"version":3,"file":"regions-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/regions-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;AAKvF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,wyBAAwyB;IAC1yB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"regions-organizations.mjs","sourceRoot":"","sources":["../../src/tools/organizations/regions-organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB;OACxD,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B;OAGhF,QAAQ,MAAM,YAAY;AAEjC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WA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AAG,SAAS,+DAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"answers-prompts.d.mts","sourceRoot":"","sources":["../../src/tools/prompts/answers-prompts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,0BAA0B;OAEhF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmVlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+DAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"answers-prompts.d.ts","sourceRoot":"","sources":["../../src/tools/prompts/answers-prompts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,0BAA0B;OAEjE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAgTlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+DAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"answers-prompts.d.ts","sourceRoot":"","sources":["../../src/tools/prompts/answers-prompts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,0BAA0B;OAEhF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmVlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+DAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const types_1 = require("profound-mcp/tools/types");
9
+ const profoundai_1 = __importDefault(require("profoundai"));
6
10
  exports.metadata = {
7
11
  resource: 'prompts',
8
12
  operation: 'write',
@@ -219,6 +223,37 @@ exports.tool = {
219
223
  },
220
224
  required: ['field', 'operator', 'value'],
221
225
  },
226
+ {
227
+ type: 'object',
228
+ title: 'PersonaIdFilter',
229
+ properties: {
230
+ field: {
231
+ type: 'string',
232
+ title: 'Field',
233
+ enum: ['persona_id'],
234
+ },
235
+ operator: {
236
+ type: 'string',
237
+ title: 'Operator',
238
+ enum: ['is', 'not_is', 'in', 'not_in'],
239
+ },
240
+ value: {
241
+ anyOf: [
242
+ {
243
+ type: 'string',
244
+ },
245
+ {
246
+ type: 'array',
247
+ items: {
248
+ type: 'string',
249
+ },
250
+ },
251
+ ],
252
+ title: 'Value',
253
+ },
254
+ },
255
+ required: ['field', 'operator', 'value'],
256
+ },
222
257
  ],
223
258
  description: 'Filter by prompt type (visibility or sentiment)',
224
259
  },
@@ -247,6 +282,10 @@ exports.tool = {
247
282
  type: 'boolean',
248
283
  title: 'Model',
249
284
  },
285
+ persona: {
286
+ type: 'boolean',
287
+ title: 'Persona',
288
+ },
250
289
  prompt: {
251
290
  type: 'boolean',
252
291
  title: 'Prompt',
@@ -318,7 +357,15 @@ exports.tool = {
318
357
  };
319
358
  const handler = async (client, args) => {
320
359
  const body = args;
321
- return (0, types_1.asTextContentResult)(await client.prompts.answers(body));
360
+ try {
361
+ return (0, types_1.asTextContentResult)(await client.prompts.answers(body));
362
+ }
363
+ catch (error) {
364
+ if (error instanceof profoundai_1.default.APIError) {
365
+ return (0, types_1.asErrorResult)(error.message);
366
+ }
367
+ throw error;
368
+ }
322
369
  };
323
370
  exports.handler = handler;
324
371
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };