@greensecurity/javascript-sdk 0.30.25 → 0.30.29

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 (220) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +937 -518
  3. package/bin/mcp-server.js.map +25 -18
  4. package/dist/commonjs/__tests__/companies.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/companies.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/companies.test.js +51 -0
  7. package/dist/commonjs/__tests__/companies.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/vendors.test.js +25 -2
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/funcs/companiesListOrSearchCompanies.d.ts +20 -0
  13. package/dist/commonjs/funcs/companiesListOrSearchCompanies.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/companiesListOrSearchCompanies.js +155 -0
  15. package/dist/commonjs/funcs/companiesListOrSearchCompanies.js.map +1 -0
  16. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +17 -0
  17. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +121 -0
  19. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -0
  20. package/dist/commonjs/funcs/vendorsListVendorInvoices.js +1 -1
  21. package/dist/commonjs/funcs/vendorsListVendorInvoices.js.map +1 -1
  22. package/dist/commonjs/lib/config.d.ts +3 -3
  23. package/dist/commonjs/lib/config.js +3 -3
  24. package/dist/commonjs/lib/matchers.d.ts +3 -1
  25. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  26. package/dist/commonjs/lib/matchers.js +12 -0
  27. package/dist/commonjs/lib/matchers.js.map +1 -1
  28. package/dist/commonjs/lib/sdks.js +7 -2
  29. package/dist/commonjs/lib/sdks.js.map +1 -1
  30. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  31. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  32. package/dist/commonjs/mcp-server/server.js +5 -1
  33. package/dist/commonjs/mcp-server/server.js.map +1 -1
  34. package/dist/commonjs/mcp-server/tools/companiesListOrSearchCompanies.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/companiesListOrSearchCompanies.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/companiesListOrSearchCompanies.js +64 -0
  37. package/dist/commonjs/mcp-server/tools/companiesListOrSearchCompanies.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/vendorsCreateVendorCompany.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/vendorsCreateVendorCompany.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/vendorsCreateVendorCompany.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/vendorsCreateVendorCompany.js.map +1 -0
  42. package/dist/commonjs/models/components/index.d.ts +1 -0
  43. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/index.js +1 -0
  45. package/dist/commonjs/models/components/index.js.map +1 -1
  46. package/dist/commonjs/models/components/state.d.ts +181 -0
  47. package/dist/commonjs/models/components/state.d.ts.map +1 -0
  48. package/dist/commonjs/models/components/state.js +112 -0
  49. package/dist/commonjs/models/components/state.js.map +1 -0
  50. package/dist/commonjs/models/components/userlocation.d.ts +4 -172
  51. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/userlocation.js +4 -71
  53. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  54. package/dist/commonjs/models/operations/createvendorcompany.d.ts +116 -0
  55. package/dist/commonjs/models/operations/createvendorcompany.d.ts.map +1 -0
  56. package/dist/commonjs/models/operations/createvendorcompany.js +163 -0
  57. package/dist/commonjs/models/operations/createvendorcompany.js.map +1 -0
  58. package/dist/commonjs/models/operations/index.d.ts +2 -0
  59. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/index.js +2 -0
  61. package/dist/commonjs/models/operations/index.js.map +1 -1
  62. package/dist/commonjs/models/operations/listorsearchcompanies.d.ts +111 -0
  63. package/dist/commonjs/models/operations/listorsearchcompanies.d.ts.map +1 -0
  64. package/dist/commonjs/models/operations/listorsearchcompanies.js +153 -0
  65. package/dist/commonjs/models/operations/listorsearchcompanies.js.map +1 -0
  66. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +57 -27
  67. package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/listvendorinvoices.js +31 -21
  69. package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
  70. package/dist/commonjs/react-query/companiesListOrSearchCompanies.d.ts +78 -0
  71. package/dist/commonjs/react-query/companiesListOrSearchCompanies.d.ts.map +1 -0
  72. package/dist/commonjs/react-query/companiesListOrSearchCompanies.js +161 -0
  73. package/dist/commonjs/react-query/companiesListOrSearchCompanies.js.map +1 -0
  74. package/dist/commonjs/react-query/index.d.ts +2 -0
  75. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  76. package/dist/commonjs/react-query/index.js +2 -0
  77. package/dist/commonjs/react-query/index.js.map +1 -1
  78. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +23 -0
  79. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -0
  80. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +47 -0
  81. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -0
  82. package/dist/commonjs/react-query/vendorsListVendorInvoices.d.ts +3 -3
  83. package/dist/commonjs/react-query/vendorsListVendorInvoices.d.ts.map +1 -1
  84. package/dist/commonjs/react-query/vendorsListVendorInvoices.js +2 -2
  85. package/dist/commonjs/react-query/vendorsListVendorInvoices.js.map +1 -1
  86. package/dist/commonjs/sdk/companies.d.ts +15 -0
  87. package/dist/commonjs/sdk/companies.d.ts.map +1 -0
  88. package/dist/commonjs/sdk/companies.js +22 -0
  89. package/dist/commonjs/sdk/companies.js.map +1 -0
  90. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  91. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  92. package/dist/commonjs/sdk/sdk.js +4 -0
  93. package/dist/commonjs/sdk/sdk.js.map +1 -1
  94. package/dist/commonjs/sdk/vendors.d.ts +7 -0
  95. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  96. package/dist/commonjs/sdk/vendors.js +10 -0
  97. package/dist/commonjs/sdk/vendors.js.map +1 -1
  98. package/dist/esm/__tests__/companies.test.d.ts +2 -0
  99. package/dist/esm/__tests__/companies.test.d.ts.map +1 -0
  100. package/dist/esm/__tests__/companies.test.js +49 -0
  101. package/dist/esm/__tests__/companies.test.js.map +1 -0
  102. package/dist/esm/__tests__/vendors.test.js +25 -2
  103. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  104. package/dist/esm/__tests__/webhooks.test.js +1 -1
  105. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  106. package/dist/esm/funcs/companiesListOrSearchCompanies.d.ts +20 -0
  107. package/dist/esm/funcs/companiesListOrSearchCompanies.d.ts.map +1 -0
  108. package/dist/esm/funcs/companiesListOrSearchCompanies.js +119 -0
  109. package/dist/esm/funcs/companiesListOrSearchCompanies.js.map +1 -0
  110. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +17 -0
  111. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -0
  112. package/dist/esm/funcs/vendorsCreateVendorCompany.js +85 -0
  113. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -0
  114. package/dist/esm/funcs/vendorsListVendorInvoices.js +1 -1
  115. package/dist/esm/funcs/vendorsListVendorInvoices.js.map +1 -1
  116. package/dist/esm/lib/config.d.ts +3 -3
  117. package/dist/esm/lib/config.js +3 -3
  118. package/dist/esm/lib/matchers.d.ts +3 -1
  119. package/dist/esm/lib/matchers.d.ts.map +1 -1
  120. package/dist/esm/lib/matchers.js +10 -0
  121. package/dist/esm/lib/matchers.js.map +1 -1
  122. package/dist/esm/lib/sdks.js +7 -2
  123. package/dist/esm/lib/sdks.js.map +1 -1
  124. package/dist/esm/mcp-server/mcp-server.js +1 -1
  125. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  126. package/dist/esm/mcp-server/server.js +5 -1
  127. package/dist/esm/mcp-server/server.js.map +1 -1
  128. package/dist/esm/mcp-server/tools/companiesListOrSearchCompanies.d.ts +8 -0
  129. package/dist/esm/mcp-server/tools/companiesListOrSearchCompanies.d.ts.map +1 -0
  130. package/dist/esm/mcp-server/tools/companiesListOrSearchCompanies.js +28 -0
  131. package/dist/esm/mcp-server/tools/companiesListOrSearchCompanies.js.map +1 -0
  132. package/dist/esm/mcp-server/tools/vendorsCreateVendorCompany.d.ts +8 -0
  133. package/dist/esm/mcp-server/tools/vendorsCreateVendorCompany.d.ts.map +1 -0
  134. package/dist/esm/mcp-server/tools/vendorsCreateVendorCompany.js +28 -0
  135. package/dist/esm/mcp-server/tools/vendorsCreateVendorCompany.js.map +1 -0
  136. package/dist/esm/models/components/index.d.ts +1 -0
  137. package/dist/esm/models/components/index.d.ts.map +1 -1
  138. package/dist/esm/models/components/index.js +1 -0
  139. package/dist/esm/models/components/index.js.map +1 -1
  140. package/dist/esm/models/components/state.d.ts +181 -0
  141. package/dist/esm/models/components/state.d.ts.map +1 -0
  142. package/dist/esm/models/components/state.js +76 -0
  143. package/dist/esm/models/components/state.js.map +1 -0
  144. package/dist/esm/models/components/userlocation.d.ts +4 -172
  145. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  146. package/dist/esm/models/components/userlocation.js +1 -68
  147. package/dist/esm/models/components/userlocation.js.map +1 -1
  148. package/dist/esm/models/operations/createvendorcompany.d.ts +116 -0
  149. package/dist/esm/models/operations/createvendorcompany.d.ts.map +1 -0
  150. package/dist/esm/models/operations/createvendorcompany.js +121 -0
  151. package/dist/esm/models/operations/createvendorcompany.js.map +1 -0
  152. package/dist/esm/models/operations/index.d.ts +2 -0
  153. package/dist/esm/models/operations/index.d.ts.map +1 -1
  154. package/dist/esm/models/operations/index.js +2 -0
  155. package/dist/esm/models/operations/index.js.map +1 -1
  156. package/dist/esm/models/operations/listorsearchcompanies.d.ts +111 -0
  157. package/dist/esm/models/operations/listorsearchcompanies.d.ts.map +1 -0
  158. package/dist/esm/models/operations/listorsearchcompanies.js +111 -0
  159. package/dist/esm/models/operations/listorsearchcompanies.js.map +1 -0
  160. package/dist/esm/models/operations/listvendorinvoices.d.ts +57 -27
  161. package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
  162. package/dist/esm/models/operations/listvendorinvoices.js +30 -20
  163. package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
  164. package/dist/esm/react-query/companiesListOrSearchCompanies.d.ts +78 -0
  165. package/dist/esm/react-query/companiesListOrSearchCompanies.d.ts.map +1 -0
  166. package/dist/esm/react-query/companiesListOrSearchCompanies.js +148 -0
  167. package/dist/esm/react-query/companiesListOrSearchCompanies.js.map +1 -0
  168. package/dist/esm/react-query/index.d.ts +2 -0
  169. package/dist/esm/react-query/index.d.ts.map +1 -1
  170. package/dist/esm/react-query/index.js +2 -0
  171. package/dist/esm/react-query/index.js.map +1 -1
  172. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +23 -0
  173. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -0
  174. package/dist/esm/react-query/vendorsCreateVendorCompany.js +42 -0
  175. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -0
  176. package/dist/esm/react-query/vendorsListVendorInvoices.d.ts +3 -3
  177. package/dist/esm/react-query/vendorsListVendorInvoices.d.ts.map +1 -1
  178. package/dist/esm/react-query/vendorsListVendorInvoices.js +2 -2
  179. package/dist/esm/react-query/vendorsListVendorInvoices.js.map +1 -1
  180. package/dist/esm/sdk/companies.d.ts +15 -0
  181. package/dist/esm/sdk/companies.d.ts.map +1 -0
  182. package/dist/esm/sdk/companies.js +18 -0
  183. package/dist/esm/sdk/companies.js.map +1 -0
  184. package/dist/esm/sdk/sdk.d.ts +3 -0
  185. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  186. package/dist/esm/sdk/sdk.js +4 -0
  187. package/dist/esm/sdk/sdk.js.map +1 -1
  188. package/dist/esm/sdk/vendors.d.ts +7 -0
  189. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  190. package/dist/esm/sdk/vendors.js +10 -0
  191. package/dist/esm/sdk/vendors.js.map +1 -1
  192. package/jsr.json +1 -1
  193. package/package.json +1 -1
  194. package/src/__tests__/companies.test.ts +52 -0
  195. package/src/__tests__/vendors.test.ts +28 -2
  196. package/src/__tests__/webhooks.test.ts +1 -1
  197. package/src/funcs/companiesListOrSearchCompanies.ts +246 -0
  198. package/src/funcs/vendorsCreateVendorCompany.ts +174 -0
  199. package/src/funcs/vendorsListVendorInvoices.ts +1 -1
  200. package/src/lib/config.ts +3 -3
  201. package/src/lib/matchers.ts +20 -0
  202. package/src/lib/sdks.ts +8 -2
  203. package/src/mcp-server/mcp-server.ts +1 -1
  204. package/src/mcp-server/server.ts +5 -1
  205. package/src/mcp-server/tools/companiesListOrSearchCompanies.ts +38 -0
  206. package/src/mcp-server/tools/vendorsCreateVendorCompany.ts +37 -0
  207. package/src/models/components/index.ts +1 -0
  208. package/src/models/components/state.ts +87 -0
  209. package/src/models/components/userlocation.ts +4 -75
  210. package/src/models/operations/createvendorcompany.ts +262 -0
  211. package/src/models/operations/index.ts +2 -0
  212. package/src/models/operations/listorsearchcompanies.ts +264 -0
  213. package/src/models/operations/listvendorinvoices.ts +37 -27
  214. package/src/react-query/companiesListOrSearchCompanies.ts +345 -0
  215. package/src/react-query/index.ts +2 -0
  216. package/src/react-query/vendorsCreateVendorCompany.ts +89 -0
  217. package/src/react-query/vendorsListVendorInvoices.ts +5 -5
  218. package/src/sdk/companies.ts +29 -0
  219. package/src/sdk/sdk.ts +6 -0
  220. package/src/sdk/vendors.ts +18 -0
package/bin/mcp-server.js CHANGED
@@ -34166,9 +34166,9 @@ var init_config = __esm(() => {
34166
34166
  SDK_METADATA = {
34167
34167
  language: "typescript",
34168
34168
  openapiDocVersion: "0.0.3",
34169
- sdkVersion: "0.30.25",
34170
- genVersion: "2.570.3",
34171
- userAgent: "speakeasy-sdk/typescript 0.30.25 2.570.3 0.0.3 @greensecurity/javascript-sdk"
34169
+ sdkVersion: "0.30.29",
34170
+ genVersion: "2.578.0",
34171
+ userAgent: "speakeasy-sdk/typescript 0.30.29 2.578.0 0.0.3 @greensecurity/javascript-sdk"
34172
34172
  };
34173
34173
  });
34174
34174
 
@@ -34922,9 +34922,12 @@ async function logResponse(logger, res, req) {
34922
34922
  logger.groupEnd();
34923
34923
  logger.group("Body:");
34924
34924
  switch (true) {
34925
- case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct)):
34925
+ case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct)):
34926
34926
  logger.log(await res.clone().json());
34927
34927
  break;
34928
+ case (matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct)):
34929
+ logger.log(await res.clone().text());
34930
+ break;
34928
34931
  case matchContentType(res, "text/event-stream"):
34929
34932
  logger.log(`<${contentType2}>`);
34930
34933
  break;
@@ -34946,7 +34949,7 @@ async function logResponse(logger, res, req) {
34946
34949
  logger.groupEnd();
34947
34950
  logger.groupEnd();
34948
34951
  }
34949
- var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE;
34952
+ var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
34950
34953
  var init_sdks = __esm(() => {
34951
34954
  init_hooks();
34952
34955
  init_httpclienterrors();
@@ -34959,7 +34962,8 @@ var init_sdks = __esm(() => {
34959
34962
  gt = typeof globalThis === "undefined" ? null : globalThis;
34960
34963
  webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
34961
34964
  isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
34962
- jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
34965
+ jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
34966
+ jsonlLikeContentTypeRE = /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
34963
34967
  });
34964
34968
 
34965
34969
  // src/core.ts
@@ -35297,6 +35301,9 @@ function match(...matchers) {
35297
35301
  case "json":
35298
35302
  raw = await response.json();
35299
35303
  break;
35304
+ case "jsonl":
35305
+ raw = response.body;
35306
+ break;
35300
35307
  case "bytes":
35301
35308
  raw = new Uint8Array(await response.arrayBuffer());
35302
35309
  break;
@@ -35386,6 +35393,7 @@ var init_matchers = __esm(() => {
35386
35393
  init_http();
35387
35394
  init_schemas();
35388
35395
  DEFAULT_CONTENT_TYPES = {
35396
+ jsonl: "application/jsonl",
35389
35397
  json: "application/json",
35390
35398
  text: "text/plain",
35391
35399
  bytes: "application/octet-stream",
@@ -35557,6 +35565,170 @@ var init_security = __esm(() => {
35557
35565
  };
35558
35566
  });
35559
35567
 
35568
+ // src/models/errors/apierrorresponse.ts
35569
+ var ApiErrorResponse, ApiErrorResponse$inboundSchema, ApiErrorResponse$outboundSchema, ApiErrorResponse$;
35570
+ var init_apierrorresponse = __esm(() => {
35571
+ init_lib();
35572
+ ApiErrorResponse = class ApiErrorResponse extends Error {
35573
+ error;
35574
+ success;
35575
+ code;
35576
+ data$;
35577
+ constructor(err) {
35578
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
35579
+ super(message);
35580
+ this.data$ = err;
35581
+ this.error = err.error;
35582
+ this.success = err.success;
35583
+ if (err.code != null)
35584
+ this.code = err.code;
35585
+ this.name = "ApiErrorResponse";
35586
+ }
35587
+ };
35588
+ ApiErrorResponse$inboundSchema = objectType({
35589
+ error: stringType(),
35590
+ success: booleanType(),
35591
+ code: nullableType(numberType().int()).optional()
35592
+ }).transform((v2) => {
35593
+ return new ApiErrorResponse(v2);
35594
+ });
35595
+ ApiErrorResponse$outboundSchema = instanceOfType(ApiErrorResponse).transform((v2) => v2.data$).pipe(objectType({
35596
+ error: stringType(),
35597
+ success: booleanType(),
35598
+ code: nullableType(numberType().int()).optional()
35599
+ }));
35600
+ ((ApiErrorResponse$) => {
35601
+ ApiErrorResponse$.inboundSchema = ApiErrorResponse$inboundSchema;
35602
+ ApiErrorResponse$.outboundSchema = ApiErrorResponse$outboundSchema;
35603
+ })(ApiErrorResponse$ ||= {});
35604
+ });
35605
+
35606
+ // src/models/errors/index.ts
35607
+ var init_errors = __esm(() => {
35608
+ init_apierror();
35609
+ init_apierrorresponse();
35610
+ init_httpclienterrors();
35611
+ init_sdkvalidationerror();
35612
+ });
35613
+
35614
+ // src/models/operations/addvendormanagedbycompany.ts
35615
+ var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyResponseBody$inboundSchema, AddVendorManagedByCompanyResponseBody$outboundSchema, AddVendorManagedByCompanyResponseBody$;
35616
+ var init_addvendormanagedbycompany = __esm(() => {
35617
+ init_lib();
35618
+ init_primitives();
35619
+ AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
35620
+ company_id: numberType().int()
35621
+ }).transform((v2) => {
35622
+ return remap(v2, {
35623
+ company_id: "companyId"
35624
+ });
35625
+ });
35626
+ AddVendorManagedByCompanyRequestBody$outboundSchema = objectType({
35627
+ companyId: numberType().int()
35628
+ }).transform((v2) => {
35629
+ return remap(v2, {
35630
+ companyId: "company_id"
35631
+ });
35632
+ });
35633
+ ((AddVendorManagedByCompanyRequestBody$) => {
35634
+ AddVendorManagedByCompanyRequestBody$.inboundSchema = AddVendorManagedByCompanyRequestBody$inboundSchema;
35635
+ AddVendorManagedByCompanyRequestBody$.outboundSchema = AddVendorManagedByCompanyRequestBody$outboundSchema;
35636
+ })(AddVendorManagedByCompanyRequestBody$ ||= {});
35637
+ AddVendorManagedByCompanyRequest$inboundSchema = objectType({
35638
+ vendor_id_or_me: stringType(),
35639
+ RequestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$inboundSchema)
35640
+ }).transform((v2) => {
35641
+ return remap(v2, {
35642
+ vendor_id_or_me: "vendorIdOrMe",
35643
+ RequestBody: "requestBody"
35644
+ });
35645
+ });
35646
+ AddVendorManagedByCompanyRequest$outboundSchema = objectType({
35647
+ vendorIdOrMe: stringType(),
35648
+ requestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$outboundSchema)
35649
+ }).transform((v2) => {
35650
+ return remap(v2, {
35651
+ vendorIdOrMe: "vendor_id_or_me",
35652
+ requestBody: "RequestBody"
35653
+ });
35654
+ });
35655
+ ((AddVendorManagedByCompanyRequest$) => {
35656
+ AddVendorManagedByCompanyRequest$.inboundSchema = AddVendorManagedByCompanyRequest$inboundSchema;
35657
+ AddVendorManagedByCompanyRequest$.outboundSchema = AddVendorManagedByCompanyRequest$outboundSchema;
35658
+ })(AddVendorManagedByCompanyRequest$ ||= {});
35659
+ AddVendorManagedByCompanyResponseBody$inboundSchema = objectType({
35660
+ success: booleanType()
35661
+ });
35662
+ AddVendorManagedByCompanyResponseBody$outboundSchema = objectType({
35663
+ success: booleanType()
35664
+ });
35665
+ ((AddVendorManagedByCompanyResponseBody$) => {
35666
+ AddVendorManagedByCompanyResponseBody$.inboundSchema = AddVendorManagedByCompanyResponseBody$inboundSchema;
35667
+ AddVendorManagedByCompanyResponseBody$.outboundSchema = AddVendorManagedByCompanyResponseBody$outboundSchema;
35668
+ })(AddVendorManagedByCompanyResponseBody$ ||= {});
35669
+ });
35670
+
35671
+ // src/models/operations/changepassword.ts
35672
+ var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordResponseBody$inboundSchema, ChangePasswordResponseBody$outboundSchema, ChangePasswordResponseBody$;
35673
+ var init_changepassword = __esm(() => {
35674
+ init_lib();
35675
+ init_primitives();
35676
+ ChangePasswordRequestBody$inboundSchema = objectType({
35677
+ old_password: stringType(),
35678
+ new_password: stringType()
35679
+ }).transform((v2) => {
35680
+ return remap(v2, {
35681
+ old_password: "oldPassword",
35682
+ new_password: "newPassword"
35683
+ });
35684
+ });
35685
+ ChangePasswordRequestBody$outboundSchema = objectType({
35686
+ oldPassword: stringType(),
35687
+ newPassword: stringType()
35688
+ }).transform((v2) => {
35689
+ return remap(v2, {
35690
+ oldPassword: "old_password",
35691
+ newPassword: "new_password"
35692
+ });
35693
+ });
35694
+ ((ChangePasswordRequestBody$) => {
35695
+ ChangePasswordRequestBody$.inboundSchema = ChangePasswordRequestBody$inboundSchema;
35696
+ ChangePasswordRequestBody$.outboundSchema = ChangePasswordRequestBody$outboundSchema;
35697
+ })(ChangePasswordRequestBody$ ||= {});
35698
+ ChangePasswordRequest$inboundSchema = objectType({
35699
+ id_or_me: stringType(),
35700
+ RequestBody: lazyType(() => ChangePasswordRequestBody$inboundSchema)
35701
+ }).transform((v2) => {
35702
+ return remap(v2, {
35703
+ id_or_me: "idOrMe",
35704
+ RequestBody: "requestBody"
35705
+ });
35706
+ });
35707
+ ChangePasswordRequest$outboundSchema = objectType({
35708
+ idOrMe: stringType(),
35709
+ requestBody: lazyType(() => ChangePasswordRequestBody$outboundSchema)
35710
+ }).transform((v2) => {
35711
+ return remap(v2, {
35712
+ idOrMe: "id_or_me",
35713
+ requestBody: "RequestBody"
35714
+ });
35715
+ });
35716
+ ((ChangePasswordRequest$) => {
35717
+ ChangePasswordRequest$.inboundSchema = ChangePasswordRequest$inboundSchema;
35718
+ ChangePasswordRequest$.outboundSchema = ChangePasswordRequest$outboundSchema;
35719
+ })(ChangePasswordRequest$ ||= {});
35720
+ ChangePasswordResponseBody$inboundSchema = objectType({
35721
+ success: booleanType()
35722
+ });
35723
+ ChangePasswordResponseBody$outboundSchema = objectType({
35724
+ success: booleanType()
35725
+ });
35726
+ ((ChangePasswordResponseBody$) => {
35727
+ ChangePasswordResponseBody$.inboundSchema = ChangePasswordResponseBody$inboundSchema;
35728
+ ChangePasswordResponseBody$.outboundSchema = ChangePasswordResponseBody$outboundSchema;
35729
+ })(ChangePasswordResponseBody$ ||= {});
35730
+ });
35731
+
35560
35732
  // src/models/components/activestatus.ts
35561
35733
  var ActiveStatus, ActiveStatus$inboundSchema, ActiveStatus$outboundSchema, ActiveStatus$;
35562
35734
  var init_activestatus = __esm(() => {
@@ -37028,6 +37200,71 @@ var init_security2 = __esm(() => {
37028
37200
  })(Security$ ||= {});
37029
37201
  });
37030
37202
 
37203
+ // src/models/components/state.ts
37204
+ var State, State$inboundSchema, State$outboundSchema, State$;
37205
+ var init_state = __esm(() => {
37206
+ init_lib();
37207
+ State = {
37208
+ Al: "AL",
37209
+ Ak: "AK",
37210
+ Az: "AZ",
37211
+ Ar: "AR",
37212
+ Ca: "CA",
37213
+ Co: "CO",
37214
+ Ct: "CT",
37215
+ De: "DE",
37216
+ Dc: "DC",
37217
+ Fl: "FL",
37218
+ Ga: "GA",
37219
+ Hi: "HI",
37220
+ Id: "ID",
37221
+ Il: "IL",
37222
+ In: "IN",
37223
+ Ia: "IA",
37224
+ Ks: "KS",
37225
+ Ky: "KY",
37226
+ La: "LA",
37227
+ Me: "ME",
37228
+ Md: "MD",
37229
+ Ma: "MA",
37230
+ Mi: "MI",
37231
+ Mn: "MN",
37232
+ Ms: "MS",
37233
+ Mo: "MO",
37234
+ Mt: "MT",
37235
+ Ne: "NE",
37236
+ Nv: "NV",
37237
+ Nh: "NH",
37238
+ Nj: "NJ",
37239
+ Nm: "NM",
37240
+ Ny: "NY",
37241
+ Nc: "NC",
37242
+ Nd: "ND",
37243
+ Oh: "OH",
37244
+ Ok: "OK",
37245
+ Or: "OR",
37246
+ Pa: "PA",
37247
+ Ri: "RI",
37248
+ Sc: "SC",
37249
+ Sd: "SD",
37250
+ Tn: "TN",
37251
+ Tx: "TX",
37252
+ Ut: "UT",
37253
+ Vt: "VT",
37254
+ Va: "VA",
37255
+ Wa: "WA",
37256
+ Wv: "WV",
37257
+ Wi: "WI",
37258
+ Wy: "WY"
37259
+ };
37260
+ State$inboundSchema = nativeEnumType(State);
37261
+ State$outboundSchema = State$inboundSchema;
37262
+ ((State$) => {
37263
+ State$.inboundSchema = State$inboundSchema;
37264
+ State$.outboundSchema = State$outboundSchema;
37265
+ })(State$ ||= {});
37266
+ });
37267
+
37031
37268
  // src/models/components/subscription.ts
37032
37269
  var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
37033
37270
  var init_subscription = __esm(() => {
@@ -37127,63 +37364,11 @@ var init_supportarticle = __esm(() => {
37127
37364
  });
37128
37365
 
37129
37366
  // src/models/components/userlocation.ts
37130
- var State, Timezone, State$inboundSchema, State$outboundSchema, State$, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
37367
+ var Timezone, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
37131
37368
  var init_userlocation = __esm(() => {
37132
37369
  init_lib();
37133
37370
  init_primitives();
37134
- State = {
37135
- Al: "AL",
37136
- Ak: "AK",
37137
- Az: "AZ",
37138
- Ar: "AR",
37139
- Ca: "CA",
37140
- Co: "CO",
37141
- Ct: "CT",
37142
- De: "DE",
37143
- Dc: "DC",
37144
- Fl: "FL",
37145
- Ga: "GA",
37146
- Hi: "HI",
37147
- Id: "ID",
37148
- Il: "IL",
37149
- In: "IN",
37150
- Ia: "IA",
37151
- Ks: "KS",
37152
- Ky: "KY",
37153
- La: "LA",
37154
- Me: "ME",
37155
- Md: "MD",
37156
- Ma: "MA",
37157
- Mi: "MI",
37158
- Mn: "MN",
37159
- Ms: "MS",
37160
- Mo: "MO",
37161
- Mt: "MT",
37162
- Ne: "NE",
37163
- Nv: "NV",
37164
- Nh: "NH",
37165
- Nj: "NJ",
37166
- Nm: "NM",
37167
- Ny: "NY",
37168
- Nc: "NC",
37169
- Nd: "ND",
37170
- Oh: "OH",
37171
- Ok: "OK",
37172
- Or: "OR",
37173
- Pa: "PA",
37174
- Ri: "RI",
37175
- Sc: "SC",
37176
- Sd: "SD",
37177
- Tn: "TN",
37178
- Tx: "TX",
37179
- Ut: "UT",
37180
- Vt: "VT",
37181
- Va: "VA",
37182
- Wa: "WA",
37183
- Wv: "WV",
37184
- Wi: "WI",
37185
- Wy: "WY"
37186
- };
37371
+ init_state();
37187
37372
  Timezone = {
37188
37373
  InternationalDateLineWest: "International Date Line West",
37189
37374
  MidwayIsland: "Midway Island",
@@ -37337,12 +37522,6 @@ var init_userlocation = __esm(() => {
37337
37522
  ChathamIs: "Chatham Is.",
37338
37523
  Samoa: "Samoa"
37339
37524
  };
37340
- State$inboundSchema = nativeEnumType(State);
37341
- State$outboundSchema = State$inboundSchema;
37342
- ((State$) => {
37343
- State$.inboundSchema = State$inboundSchema;
37344
- State$.outboundSchema = State$outboundSchema;
37345
- })(State$ ||= {});
37346
37525
  Timezone$inboundSchema = nativeEnumType(Timezone);
37347
37526
  Timezone$outboundSchema = Timezone$inboundSchema;
37348
37527
  ((Timezone$) => {
@@ -38284,6 +38463,7 @@ var init_components = __esm(() => {
38284
38463
  init_samlloginrequiredresponse();
38285
38464
  init_scantype();
38286
38465
  init_security2();
38466
+ init_state();
38287
38467
  init_subscription();
38288
38468
  init_supervisor();
38289
38469
  init_supportarticle();
@@ -38304,168 +38484,80 @@ var init_components = __esm(() => {
38304
38484
  init_webhookendpoint();
38305
38485
  });
38306
38486
 
38307
- // src/models/errors/apierrorresponse.ts
38308
- var ApiErrorResponse, ApiErrorResponse$inboundSchema, ApiErrorResponse$outboundSchema, ApiErrorResponse$;
38309
- var init_apierrorresponse = __esm(() => {
38310
- init_lib();
38311
- ApiErrorResponse = class ApiErrorResponse extends Error {
38312
- error;
38313
- success;
38314
- code;
38315
- data$;
38316
- constructor(err) {
38317
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
38318
- super(message);
38319
- this.data$ = err;
38320
- this.error = err.error;
38321
- this.success = err.success;
38322
- if (err.code != null)
38323
- this.code = err.code;
38324
- this.name = "ApiErrorResponse";
38325
- }
38326
- };
38327
- ApiErrorResponse$inboundSchema = objectType({
38328
- error: stringType(),
38329
- success: booleanType(),
38330
- code: nullableType(numberType().int()).optional()
38331
- }).transform((v2) => {
38332
- return new ApiErrorResponse(v2);
38333
- });
38334
- ApiErrorResponse$outboundSchema = instanceOfType(ApiErrorResponse).transform((v2) => v2.data$).pipe(objectType({
38335
- error: stringType(),
38336
- success: booleanType(),
38337
- code: nullableType(numberType().int()).optional()
38338
- }));
38339
- ((ApiErrorResponse$) => {
38340
- ApiErrorResponse$.inboundSchema = ApiErrorResponse$inboundSchema;
38341
- ApiErrorResponse$.outboundSchema = ApiErrorResponse$outboundSchema;
38342
- })(ApiErrorResponse$ ||= {});
38343
- });
38344
-
38345
- // src/models/errors/index.ts
38346
- var init_errors = __esm(() => {
38347
- init_apierror();
38348
- init_apierrorresponse();
38349
- init_httpclienterrors();
38350
- init_sdkvalidationerror();
38351
- });
38352
-
38353
- // src/models/operations/addvendormanagedbycompany.ts
38354
- var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyResponseBody$inboundSchema, AddVendorManagedByCompanyResponseBody$outboundSchema, AddVendorManagedByCompanyResponseBody$;
38355
- var init_addvendormanagedbycompany = __esm(() => {
38487
+ // src/models/operations/createvendorcompany.ts
38488
+ var CreateVendorCompanyRequestBody$inboundSchema, CreateVendorCompanyRequestBody$outboundSchema, CreateVendorCompanyRequestBody$, CreateVendorCompanyRequest$inboundSchema, CreateVendorCompanyRequest$outboundSchema, CreateVendorCompanyRequest$, CreateVendorCompanyResponseBody$inboundSchema, CreateVendorCompanyResponseBody$outboundSchema, CreateVendorCompanyResponseBody$;
38489
+ var init_createvendorcompany = __esm(() => {
38356
38490
  init_lib();
38357
38491
  init_primitives();
38358
- AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
38359
- company_id: numberType().int()
38492
+ init_components();
38493
+ CreateVendorCompanyRequestBody$inboundSchema = objectType({
38494
+ name: stringType(),
38495
+ address: stringType(),
38496
+ city: stringType(),
38497
+ state: nullableType(State$inboundSchema),
38498
+ zip: stringType(),
38499
+ tax_id: stringType()
38360
38500
  }).transform((v2) => {
38361
38501
  return remap(v2, {
38362
- company_id: "companyId"
38502
+ tax_id: "taxId"
38363
38503
  });
38364
38504
  });
38365
- AddVendorManagedByCompanyRequestBody$outboundSchema = objectType({
38366
- companyId: numberType().int()
38505
+ CreateVendorCompanyRequestBody$outboundSchema = objectType({
38506
+ name: stringType(),
38507
+ address: stringType(),
38508
+ city: stringType(),
38509
+ state: nullableType(State$outboundSchema),
38510
+ zip: stringType(),
38511
+ taxId: stringType()
38367
38512
  }).transform((v2) => {
38368
38513
  return remap(v2, {
38369
- companyId: "company_id"
38514
+ taxId: "tax_id"
38370
38515
  });
38371
38516
  });
38372
- ((AddVendorManagedByCompanyRequestBody$) => {
38373
- AddVendorManagedByCompanyRequestBody$.inboundSchema = AddVendorManagedByCompanyRequestBody$inboundSchema;
38374
- AddVendorManagedByCompanyRequestBody$.outboundSchema = AddVendorManagedByCompanyRequestBody$outboundSchema;
38375
- })(AddVendorManagedByCompanyRequestBody$ ||= {});
38376
- AddVendorManagedByCompanyRequest$inboundSchema = objectType({
38517
+ ((CreateVendorCompanyRequestBody$) => {
38518
+ CreateVendorCompanyRequestBody$.inboundSchema = CreateVendorCompanyRequestBody$inboundSchema;
38519
+ CreateVendorCompanyRequestBody$.outboundSchema = CreateVendorCompanyRequestBody$outboundSchema;
38520
+ })(CreateVendorCompanyRequestBody$ ||= {});
38521
+ CreateVendorCompanyRequest$inboundSchema = objectType({
38377
38522
  vendor_id_or_me: stringType(),
38378
- RequestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$inboundSchema)
38523
+ RequestBody: lazyType(() => CreateVendorCompanyRequestBody$inboundSchema)
38379
38524
  }).transform((v2) => {
38380
38525
  return remap(v2, {
38381
38526
  vendor_id_or_me: "vendorIdOrMe",
38382
38527
  RequestBody: "requestBody"
38383
38528
  });
38384
38529
  });
38385
- AddVendorManagedByCompanyRequest$outboundSchema = objectType({
38530
+ CreateVendorCompanyRequest$outboundSchema = objectType({
38386
38531
  vendorIdOrMe: stringType(),
38387
- requestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$outboundSchema)
38532
+ requestBody: lazyType(() => CreateVendorCompanyRequestBody$outboundSchema)
38388
38533
  }).transform((v2) => {
38389
38534
  return remap(v2, {
38390
38535
  vendorIdOrMe: "vendor_id_or_me",
38391
38536
  requestBody: "RequestBody"
38392
38537
  });
38393
38538
  });
38394
- ((AddVendorManagedByCompanyRequest$) => {
38395
- AddVendorManagedByCompanyRequest$.inboundSchema = AddVendorManagedByCompanyRequest$inboundSchema;
38396
- AddVendorManagedByCompanyRequest$.outboundSchema = AddVendorManagedByCompanyRequest$outboundSchema;
38397
- })(AddVendorManagedByCompanyRequest$ ||= {});
38398
- AddVendorManagedByCompanyResponseBody$inboundSchema = objectType({
38399
- success: booleanType()
38400
- });
38401
- AddVendorManagedByCompanyResponseBody$outboundSchema = objectType({
38402
- success: booleanType()
38403
- });
38404
- ((AddVendorManagedByCompanyResponseBody$) => {
38405
- AddVendorManagedByCompanyResponseBody$.inboundSchema = AddVendorManagedByCompanyResponseBody$inboundSchema;
38406
- AddVendorManagedByCompanyResponseBody$.outboundSchema = AddVendorManagedByCompanyResponseBody$outboundSchema;
38407
- })(AddVendorManagedByCompanyResponseBody$ ||= {});
38408
- });
38409
-
38410
- // src/models/operations/changepassword.ts
38411
- var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordResponseBody$inboundSchema, ChangePasswordResponseBody$outboundSchema, ChangePasswordResponseBody$;
38412
- var init_changepassword = __esm(() => {
38413
- init_lib();
38414
- init_primitives();
38415
- ChangePasswordRequestBody$inboundSchema = objectType({
38416
- old_password: stringType(),
38417
- new_password: stringType()
38418
- }).transform((v2) => {
38419
- return remap(v2, {
38420
- old_password: "oldPassword",
38421
- new_password: "newPassword"
38422
- });
38423
- });
38424
- ChangePasswordRequestBody$outboundSchema = objectType({
38425
- oldPassword: stringType(),
38426
- newPassword: stringType()
38427
- }).transform((v2) => {
38428
- return remap(v2, {
38429
- oldPassword: "old_password",
38430
- newPassword: "new_password"
38431
- });
38432
- });
38433
- ((ChangePasswordRequestBody$) => {
38434
- ChangePasswordRequestBody$.inboundSchema = ChangePasswordRequestBody$inboundSchema;
38435
- ChangePasswordRequestBody$.outboundSchema = ChangePasswordRequestBody$outboundSchema;
38436
- })(ChangePasswordRequestBody$ ||= {});
38437
- ChangePasswordRequest$inboundSchema = objectType({
38438
- id_or_me: stringType(),
38439
- RequestBody: lazyType(() => ChangePasswordRequestBody$inboundSchema)
38539
+ ((CreateVendorCompanyRequest$) => {
38540
+ CreateVendorCompanyRequest$.inboundSchema = CreateVendorCompanyRequest$inboundSchema;
38541
+ CreateVendorCompanyRequest$.outboundSchema = CreateVendorCompanyRequest$outboundSchema;
38542
+ })(CreateVendorCompanyRequest$ ||= {});
38543
+ CreateVendorCompanyResponseBody$inboundSchema = objectType({
38544
+ company_id: numberType().int().optional()
38440
38545
  }).transform((v2) => {
38441
38546
  return remap(v2, {
38442
- id_or_me: "idOrMe",
38443
- RequestBody: "requestBody"
38547
+ company_id: "companyId"
38444
38548
  });
38445
38549
  });
38446
- ChangePasswordRequest$outboundSchema = objectType({
38447
- idOrMe: stringType(),
38448
- requestBody: lazyType(() => ChangePasswordRequestBody$outboundSchema)
38550
+ CreateVendorCompanyResponseBody$outboundSchema = objectType({
38551
+ companyId: numberType().int().optional()
38449
38552
  }).transform((v2) => {
38450
38553
  return remap(v2, {
38451
- idOrMe: "id_or_me",
38452
- requestBody: "RequestBody"
38554
+ companyId: "company_id"
38453
38555
  });
38454
38556
  });
38455
- ((ChangePasswordRequest$) => {
38456
- ChangePasswordRequest$.inboundSchema = ChangePasswordRequest$inboundSchema;
38457
- ChangePasswordRequest$.outboundSchema = ChangePasswordRequest$outboundSchema;
38458
- })(ChangePasswordRequest$ ||= {});
38459
- ChangePasswordResponseBody$inboundSchema = objectType({
38460
- success: booleanType()
38461
- });
38462
- ChangePasswordResponseBody$outboundSchema = objectType({
38463
- success: booleanType()
38464
- });
38465
- ((ChangePasswordResponseBody$) => {
38466
- ChangePasswordResponseBody$.inboundSchema = ChangePasswordResponseBody$inboundSchema;
38467
- ChangePasswordResponseBody$.outboundSchema = ChangePasswordResponseBody$outboundSchema;
38468
- })(ChangePasswordResponseBody$ ||= {});
38557
+ ((CreateVendorCompanyResponseBody$) => {
38558
+ CreateVendorCompanyResponseBody$.inboundSchema = CreateVendorCompanyResponseBody$inboundSchema;
38559
+ CreateVendorCompanyResponseBody$.outboundSchema = CreateVendorCompanyResponseBody$outboundSchema;
38560
+ })(CreateVendorCompanyResponseBody$ ||= {});
38469
38561
  });
38470
38562
 
38471
38563
  // src/models/operations/createvendorregistration.ts
@@ -38781,6 +38873,72 @@ var init_listallwebhookendpoints = __esm(() => {
38781
38873
  })(ListAllWebhookEndpointsResponseBody$ ||= {});
38782
38874
  });
38783
38875
 
38876
+ // src/models/operations/listorsearchcompanies.ts
38877
+ var ListOrSearchCompaniesRequest$inboundSchema, ListOrSearchCompaniesRequest$outboundSchema, ListOrSearchCompaniesRequest$, ListOrSearchCompaniesListOrSearchCompaniesOK$inboundSchema, ListOrSearchCompaniesListOrSearchCompaniesOK$outboundSchema, ListOrSearchCompaniesListOrSearchCompaniesOK$, ListOrSearchCompaniesResponse$inboundSchema, ListOrSearchCompaniesResponse$outboundSchema, ListOrSearchCompaniesResponse$;
38878
+ var init_listorsearchcompanies = __esm(() => {
38879
+ init_lib();
38880
+ init_primitives();
38881
+ init_components();
38882
+ ListOrSearchCompaniesRequest$inboundSchema = objectType({
38883
+ sort: nullableType(stringType()).optional(),
38884
+ desc: Desc$inboundSchema.optional(),
38885
+ page: numberType().int().optional(),
38886
+ items_per_page: numberType().int().optional(),
38887
+ name_like: stringType().optional()
38888
+ }).transform((v2) => {
38889
+ return remap(v2, {
38890
+ items_per_page: "itemsPerPage",
38891
+ name_like: "nameLike"
38892
+ });
38893
+ });
38894
+ ListOrSearchCompaniesRequest$outboundSchema = objectType({
38895
+ sort: nullableType(stringType()).optional(),
38896
+ desc: Desc$outboundSchema.optional(),
38897
+ page: numberType().int().optional(),
38898
+ itemsPerPage: numberType().int().optional(),
38899
+ nameLike: stringType().optional()
38900
+ }).transform((v2) => {
38901
+ return remap(v2, {
38902
+ itemsPerPage: "items_per_page",
38903
+ nameLike: "name_like"
38904
+ });
38905
+ });
38906
+ ((ListOrSearchCompaniesRequest$) => {
38907
+ ListOrSearchCompaniesRequest$.inboundSchema = ListOrSearchCompaniesRequest$inboundSchema;
38908
+ ListOrSearchCompaniesRequest$.outboundSchema = ListOrSearchCompaniesRequest$outboundSchema;
38909
+ })(ListOrSearchCompaniesRequest$ ||= {});
38910
+ ListOrSearchCompaniesListOrSearchCompaniesOK$inboundSchema = objectType({
38911
+ pager: Pager$inboundSchema,
38912
+ items: arrayType(nullableType(Company$inboundSchema))
38913
+ });
38914
+ ListOrSearchCompaniesListOrSearchCompaniesOK$outboundSchema = objectType({
38915
+ pager: Pager$outboundSchema,
38916
+ items: arrayType(nullableType(Company$outboundSchema))
38917
+ });
38918
+ ((ListOrSearchCompaniesListOrSearchCompaniesOK$) => {
38919
+ ListOrSearchCompaniesListOrSearchCompaniesOK$.inboundSchema = ListOrSearchCompaniesListOrSearchCompaniesOK$inboundSchema;
38920
+ ListOrSearchCompaniesListOrSearchCompaniesOK$.outboundSchema = ListOrSearchCompaniesListOrSearchCompaniesOK$outboundSchema;
38921
+ })(ListOrSearchCompaniesListOrSearchCompaniesOK$ ||= {});
38922
+ ListOrSearchCompaniesResponse$inboundSchema = objectType({
38923
+ Result: lazyType(() => ListOrSearchCompaniesListOrSearchCompaniesOK$inboundSchema)
38924
+ }).transform((v2) => {
38925
+ return remap(v2, {
38926
+ Result: "result"
38927
+ });
38928
+ });
38929
+ ListOrSearchCompaniesResponse$outboundSchema = objectType({
38930
+ result: lazyType(() => ListOrSearchCompaniesListOrSearchCompaniesOK$outboundSchema)
38931
+ }).transform((v2) => {
38932
+ return remap(v2, {
38933
+ result: "Result"
38934
+ });
38935
+ });
38936
+ ((ListOrSearchCompaniesResponse$) => {
38937
+ ListOrSearchCompaniesResponse$.inboundSchema = ListOrSearchCompaniesResponse$inboundSchema;
38938
+ ListOrSearchCompaniesResponse$.outboundSchema = ListOrSearchCompaniesResponse$outboundSchema;
38939
+ })(ListOrSearchCompaniesResponse$ ||= {});
38940
+ });
38941
+
38784
38942
  // src/models/operations/listorsearchfacilities.ts
38785
38943
  var ListOrSearchFacilitiesRequest$inboundSchema, ListOrSearchFacilitiesRequest$outboundSchema, ListOrSearchFacilitiesRequest$, ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$, ListOrSearchFacilitiesResponse$inboundSchema, ListOrSearchFacilitiesResponse$outboundSchema, ListOrSearchFacilitiesResponse$;
38786
38944
  var init_listorsearchfacilities = __esm(() => {
@@ -39254,25 +39412,35 @@ var init_listvendorfacilitystatuses = __esm(() => {
39254
39412
  });
39255
39413
 
39256
39414
  // src/models/operations/listvendorinvoices.ts
39257
- var InvoiceStatus, InvoiceStatus$inboundSchema, InvoiceStatus$outboundSchema, InvoiceStatus$, ListVendorInvoicesRequest$inboundSchema, ListVendorInvoicesRequest$outboundSchema, ListVendorInvoicesRequest$, ListVendorInvoicesResponseBody$inboundSchema, ListVendorInvoicesResponseBody$outboundSchema, ListVendorInvoicesResponseBody$, ListVendorInvoicesResponse$inboundSchema, ListVendorInvoicesResponse$outboundSchema, ListVendorInvoicesResponse$;
39415
+ var InvoiceFinancialStatus, InvoiceFinancialStatus$inboundSchema, InvoiceFinancialStatus$outboundSchema, InvoiceFinancialStatus$, ListVendorInvoicesRequest$inboundSchema, ListVendorInvoicesRequest$outboundSchema, ListVendorInvoicesRequest$, ListVendorInvoicesResponseBody$inboundSchema, ListVendorInvoicesResponseBody$outboundSchema, ListVendorInvoicesResponseBody$, ListVendorInvoicesResponse$inboundSchema, ListVendorInvoicesResponse$outboundSchema, ListVendorInvoicesResponse$;
39258
39416
  var init_listvendorinvoices = __esm(() => {
39259
39417
  init_lib();
39260
39418
  init_primitives();
39261
39419
  init_components();
39262
- InvoiceStatus = {
39263
- Cart: "cart",
39420
+ InvoiceFinancialStatus = {
39264
39421
  Pending: "pending",
39265
- Canceled: "canceled",
39266
- ReadyToShip: "ready to ship",
39267
- Processed: "processed",
39268
- UnderReview: "under review"
39269
- };
39270
- InvoiceStatus$inboundSchema = nativeEnumType(InvoiceStatus);
39271
- InvoiceStatus$outboundSchema = InvoiceStatus$inboundSchema;
39272
- ((InvoiceStatus$) => {
39273
- InvoiceStatus$.inboundSchema = InvoiceStatus$inboundSchema;
39274
- InvoiceStatus$.outboundSchema = InvoiceStatus$outboundSchema;
39275
- })(InvoiceStatus$ ||= {});
39422
+ Authorized: "authorized",
39423
+ Captured: "captured",
39424
+ Refunded: "refunded",
39425
+ RefundedToCredits: "refunded to credits",
39426
+ Voided: "voided",
39427
+ Waived: "waived",
39428
+ Overdue: "overdue",
39429
+ Paid: "paid",
39430
+ PaidByCredits: "paid by credits",
39431
+ PaidByCreditCard: "paid by credit card",
39432
+ PaidByCheck: "paid by check",
39433
+ PaidByShareback: "paid by shareback",
39434
+ PaidByPo: "paid by po",
39435
+ PaidByOtherMeans: "paid by other means",
39436
+ Credited: "credited"
39437
+ };
39438
+ InvoiceFinancialStatus$inboundSchema = nativeEnumType(InvoiceFinancialStatus);
39439
+ InvoiceFinancialStatus$outboundSchema = InvoiceFinancialStatus$inboundSchema;
39440
+ ((InvoiceFinancialStatus$) => {
39441
+ InvoiceFinancialStatus$.inboundSchema = InvoiceFinancialStatus$inboundSchema;
39442
+ InvoiceFinancialStatus$.outboundSchema = InvoiceFinancialStatus$outboundSchema;
39443
+ })(InvoiceFinancialStatus$ ||= {});
39276
39444
  ListVendorInvoicesRequest$inboundSchema = objectType({
39277
39445
  sort: nullableType(stringType()).optional(),
39278
39446
  desc: Desc$inboundSchema.optional(),
@@ -39281,13 +39449,13 @@ var init_listvendorinvoices = __esm(() => {
39281
39449
  expand: arrayType(Expand$inboundSchema).optional(),
39282
39450
  vendor_id_or_me: stringType(),
39283
39451
  invoice_number: stringType().optional(),
39284
- invoice_status: InvoiceStatus$inboundSchema.optional()
39452
+ invoice_financial_status: InvoiceFinancialStatus$inboundSchema.optional()
39285
39453
  }).transform((v2) => {
39286
39454
  return remap(v2, {
39287
39455
  items_per_page: "itemsPerPage",
39288
39456
  vendor_id_or_me: "vendorIdOrMe",
39289
39457
  invoice_number: "invoiceNumber",
39290
- invoice_status: "invoiceStatus"
39458
+ invoice_financial_status: "invoiceFinancialStatus"
39291
39459
  });
39292
39460
  });
39293
39461
  ListVendorInvoicesRequest$outboundSchema = objectType({
@@ -39298,13 +39466,13 @@ var init_listvendorinvoices = __esm(() => {
39298
39466
  expand: arrayType(Expand$outboundSchema).optional(),
39299
39467
  vendorIdOrMe: stringType(),
39300
39468
  invoiceNumber: stringType().optional(),
39301
- invoiceStatus: InvoiceStatus$outboundSchema.optional()
39469
+ invoiceFinancialStatus: InvoiceFinancialStatus$outboundSchema.optional()
39302
39470
  }).transform((v2) => {
39303
39471
  return remap(v2, {
39304
39472
  itemsPerPage: "items_per_page",
39305
39473
  vendorIdOrMe: "vendor_id_or_me",
39306
39474
  invoiceNumber: "invoice_number",
39307
- invoiceStatus: "invoice_status"
39475
+ invoiceFinancialStatus: "invoice_financial_status"
39308
39476
  });
39309
39477
  });
39310
39478
  ((ListVendorInvoicesRequest$) => {
@@ -40174,6 +40342,7 @@ var init_vendorscanout = __esm(() => {
40174
40342
  var init_operations = __esm(() => {
40175
40343
  init_addvendormanagedbycompany();
40176
40344
  init_changepassword();
40345
+ init_createvendorcompany();
40177
40346
  init_createvendorregistration();
40178
40347
  init_deletevendormanagedbycompany();
40179
40348
  init_expeditetimeremaining();
@@ -40184,6 +40353,7 @@ var init_operations = __esm(() => {
40184
40353
  init_getvendorsdetails();
40185
40354
  init_getwebhookendpoint();
40186
40355
  init_listallwebhookendpoints();
40356
+ init_listorsearchcompanies();
40187
40357
  init_listorsearchfacilities();
40188
40358
  init_listorsearchsupportarticles();
40189
40359
  init_listvendoradditionalfacilityfields();
@@ -40233,24 +40403,57 @@ var init_async = __esm(() => {
40233
40403
  };
40234
40404
  });
40235
40405
 
40236
- // src/funcs/organizationsGetFacility.ts
40237
- function organizationsGetFacility(client, request, options) {
40406
+ // src/types/operations.ts
40407
+ function createPageIterator(page, halt) {
40408
+ return {
40409
+ [Symbol.asyncIterator]: async function* paginator() {
40410
+ yield page;
40411
+ if (halt(page)) {
40412
+ return;
40413
+ }
40414
+ let p = page;
40415
+ for (p = await p.next();p != null; p = await p.next()) {
40416
+ yield p;
40417
+ if (halt(p)) {
40418
+ return;
40419
+ }
40420
+ }
40421
+ }
40422
+ };
40423
+ }
40424
+ function haltIterator(v2) {
40425
+ return {
40426
+ ...v2,
40427
+ next: () => null,
40428
+ [Symbol.asyncIterator]: async function* paginator() {
40429
+ yield v2;
40430
+ }
40431
+ };
40432
+ }
40433
+ var URL_OVERRIDE;
40434
+ var init_operations2 = __esm(() => {
40435
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
40436
+ });
40437
+
40438
+ // src/funcs/companiesListOrSearchCompanies.ts
40439
+ function companiesListOrSearchCompanies(client, request, options) {
40238
40440
  return new APIPromise($do(client, request, options));
40239
40441
  }
40240
40442
  async function $do(client, request, options) {
40241
- const parsed = safeParse(request, (value) => GetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
40443
+ const parsed = safeParse(request, (value) => ListOrSearchCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
40242
40444
  if (!parsed.ok) {
40243
- return [parsed, { status: "invalid" }];
40445
+ return [haltIterator(parsed), { status: "invalid" }];
40244
40446
  }
40245
40447
  const payload = parsed.value;
40246
40448
  const body = null;
40247
- const pathParams = {
40248
- id: encodeSimple("id", payload.id, {
40249
- explode: false,
40250
- charEncoding: "percent"
40251
- })
40252
- };
40253
- const path = pathToFunc("/facilities/{id}")(pathParams);
40449
+ const path = pathToFunc("/companies")();
40450
+ const query = encodeFormQuery({
40451
+ desc: payload.desc,
40452
+ items_per_page: payload.items_per_page,
40453
+ name_like: payload.name_like,
40454
+ page: payload.page,
40455
+ sort: payload.sort
40456
+ });
40254
40457
  const headers = new Headers(compactMap({
40255
40458
  Accept: "application/json"
40256
40459
  }));
@@ -40258,7 +40461,145 @@ async function $do(client, request, options) {
40258
40461
  const requestSecurity = resolveGlobalSecurity(securityInput);
40259
40462
  const context = {
40260
40463
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40261
- operationID: "getFacility",
40464
+ operationID: "listOrSearchCompanies",
40465
+ oAuth2Scopes: [],
40466
+ resolvedSecurity: requestSecurity,
40467
+ securitySource: client._options.security,
40468
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40469
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40470
+ };
40471
+ const requestRes = client._createRequest(context, {
40472
+ security: requestSecurity,
40473
+ method: "GET",
40474
+ baseURL: options?.serverURL,
40475
+ path,
40476
+ headers,
40477
+ query,
40478
+ body,
40479
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40480
+ }, options);
40481
+ if (!requestRes.ok) {
40482
+ return [haltIterator(requestRes), { status: "invalid" }];
40483
+ }
40484
+ const req = requestRes.value;
40485
+ const doResult = await client._do(req, {
40486
+ context,
40487
+ errorCodes: ["400", "403", "4XX", "500", "5XX"],
40488
+ retryConfig: context.retryConfig,
40489
+ retryCodes: context.retryCodes
40490
+ });
40491
+ if (!doResult.ok) {
40492
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40493
+ }
40494
+ const response = doResult.value;
40495
+ const responseFields = {
40496
+ HttpMeta: { Response: response, Request: req }
40497
+ };
40498
+ const [result, raw] = await match(json(200, ListOrSearchCompaniesResponse$inboundSchema, {
40499
+ key: "Result"
40500
+ }), jsonErr([400, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40501
+ if (!result.ok) {
40502
+ return [haltIterator(result), {
40503
+ status: "complete",
40504
+ request: req,
40505
+ response
40506
+ }];
40507
+ }
40508
+ const nextFunc = (responseData) => {
40509
+ const page2 = request?.page ?? 1;
40510
+ const nextPage = page2 + 1;
40511
+ if (!responseData) {
40512
+ return { next: () => null };
40513
+ }
40514
+ const results = dlv(responseData, "items");
40515
+ if (!Array.isArray(results) || !results.length) {
40516
+ return { next: () => null };
40517
+ }
40518
+ const limit = request?.itemsPerPage ?? 0;
40519
+ if (results.length < limit) {
40520
+ return { next: () => null };
40521
+ }
40522
+ const nextVal = () => companiesListOrSearchCompanies(client, {
40523
+ ...request,
40524
+ page: nextPage
40525
+ }, options);
40526
+ return { next: nextVal, "~next": { page: nextPage } };
40527
+ };
40528
+ const page = { ...result, ...nextFunc(raw) };
40529
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40530
+ status: "complete",
40531
+ request: req,
40532
+ response
40533
+ }];
40534
+ }
40535
+ var init_companiesListOrSearchCompanies = __esm(() => {
40536
+ init_encodings();
40537
+ init_matchers();
40538
+ init_primitives();
40539
+ init_schemas();
40540
+ init_security();
40541
+ init_url();
40542
+ init_errors();
40543
+ init_operations();
40544
+ init_async();
40545
+ init_operations2();
40546
+ });
40547
+
40548
+ // src/mcp-server/tools/companiesListOrSearchCompanies.ts
40549
+ var args, tool$companiesListOrSearchCompanies;
40550
+ var init_companiesListOrSearchCompanies2 = __esm(() => {
40551
+ init_companiesListOrSearchCompanies();
40552
+ init_operations();
40553
+ init_tools();
40554
+ args = {
40555
+ request: ListOrSearchCompaniesRequest$inboundSchema
40556
+ };
40557
+ tool$companiesListOrSearchCompanies = {
40558
+ name: "companies-list-or-search-companies",
40559
+ description: `List or search companies
40560
+
40561
+ List or search companies.`,
40562
+ args,
40563
+ tool: async (client, args2, ctx) => {
40564
+ const [result, apiCall] = await companiesListOrSearchCompanies(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40565
+ if (!result.ok) {
40566
+ return {
40567
+ content: [{ type: "text", text: result.error.message }],
40568
+ isError: true
40569
+ };
40570
+ }
40571
+ const value = result.value.result;
40572
+ return formatResult(value, apiCall);
40573
+ }
40574
+ };
40575
+ });
40576
+
40577
+ // src/funcs/organizationsGetFacility.ts
40578
+ function organizationsGetFacility(client, request, options) {
40579
+ return new APIPromise($do2(client, request, options));
40580
+ }
40581
+ async function $do2(client, request, options) {
40582
+ const parsed = safeParse(request, (value) => GetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
40583
+ if (!parsed.ok) {
40584
+ return [parsed, { status: "invalid" }];
40585
+ }
40586
+ const payload = parsed.value;
40587
+ const body = null;
40588
+ const pathParams = {
40589
+ id: encodeSimple("id", payload.id, {
40590
+ explode: false,
40591
+ charEncoding: "percent"
40592
+ })
40593
+ };
40594
+ const path = pathToFunc("/facilities/{id}")(pathParams);
40595
+ const headers = new Headers(compactMap({
40596
+ Accept: "application/json"
40597
+ }));
40598
+ const securityInput = await extractSecurity(client._options.security);
40599
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40600
+ const context = {
40601
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40602
+ operationID: "getFacility",
40262
40603
  oAuth2Scopes: [],
40263
40604
  resolvedSecurity: requestSecurity,
40264
40605
  securitySource: client._options.security,
@@ -40311,12 +40652,12 @@ var init_organizationsGetFacility = __esm(() => {
40311
40652
  });
40312
40653
 
40313
40654
  // src/mcp-server/tools/organizationsGetFacility.ts
40314
- var args, tool$organizationsGetFacility;
40655
+ var args2, tool$organizationsGetFacility;
40315
40656
  var init_organizationsGetFacility2 = __esm(() => {
40316
40657
  init_organizationsGetFacility();
40317
40658
  init_operations();
40318
40659
  init_tools();
40319
- args = {
40660
+ args2 = {
40320
40661
  request: GetFacilityRequest$inboundSchema
40321
40662
  };
40322
40663
  tool$organizationsGetFacility = {
@@ -40324,9 +40665,9 @@ var init_organizationsGetFacility2 = __esm(() => {
40324
40665
  description: `Get facility
40325
40666
 
40326
40667
  Retrieve an individual facility.`,
40327
- args,
40328
- tool: async (client, args2, ctx) => {
40329
- const [result, apiCall] = await organizationsGetFacility(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40668
+ args: args2,
40669
+ tool: async (client, args3, ctx) => {
40670
+ const [result, apiCall] = await organizationsGetFacility(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40330
40671
  if (!result.ok) {
40331
40672
  return {
40332
40673
  content: [{ type: "text", text: result.error.message }],
@@ -40339,43 +40680,11 @@ Retrieve an individual facility.`,
40339
40680
  };
40340
40681
  });
40341
40682
 
40342
- // src/types/operations.ts
40343
- function createPageIterator(page, halt) {
40344
- return {
40345
- [Symbol.asyncIterator]: async function* paginator() {
40346
- yield page;
40347
- if (halt(page)) {
40348
- return;
40349
- }
40350
- let p = page;
40351
- for (p = await p.next();p != null; p = await p.next()) {
40352
- yield p;
40353
- if (halt(p)) {
40354
- return;
40355
- }
40356
- }
40357
- }
40358
- };
40359
- }
40360
- function haltIterator(v2) {
40361
- return {
40362
- ...v2,
40363
- next: () => null,
40364
- [Symbol.asyncIterator]: async function* paginator() {
40365
- yield v2;
40366
- }
40367
- };
40368
- }
40369
- var URL_OVERRIDE;
40370
- var init_operations2 = __esm(() => {
40371
- URL_OVERRIDE = Symbol("URL_OVERRIDE");
40372
- });
40373
-
40374
40683
  // src/funcs/organizationsListOrSearchFacilities.ts
40375
40684
  function organizationsListOrSearchFacilities(client, request, options) {
40376
- return new APIPromise($do2(client, request, options));
40685
+ return new APIPromise($do3(client, request, options));
40377
40686
  }
40378
- async function $do2(client, request, options) {
40687
+ async function $do3(client, request, options) {
40379
40688
  const parsed = safeParse(request, (value) => ListOrSearchFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
40380
40689
  if (!parsed.ok) {
40381
40690
  return [haltIterator(parsed), { status: "invalid" }];
@@ -40487,12 +40796,12 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
40487
40796
  });
40488
40797
 
40489
40798
  // src/mcp-server/tools/organizationsListOrSearchFacilities.ts
40490
- var args2, tool$organizationsListOrSearchFacilities;
40799
+ var args3, tool$organizationsListOrSearchFacilities;
40491
40800
  var init_organizationsListOrSearchFacilities2 = __esm(() => {
40492
40801
  init_organizationsListOrSearchFacilities();
40493
40802
  init_operations();
40494
40803
  init_tools();
40495
- args2 = {
40804
+ args3 = {
40496
40805
  request: ListOrSearchFacilitiesRequest$inboundSchema
40497
40806
  };
40498
40807
  tool$organizationsListOrSearchFacilities = {
@@ -40513,9 +40822,9 @@ Available \`expand\` scopes are:
40513
40822
  - facility.vendor_policy
40514
40823
  - facility.visitor_policy
40515
40824
  - facility.workflow`,
40516
- args: args2,
40517
- tool: async (client, args3, ctx) => {
40518
- const [result, apiCall] = await organizationsListOrSearchFacilities(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40825
+ args: args3,
40826
+ tool: async (client, args4, ctx) => {
40827
+ const [result, apiCall] = await organizationsListOrSearchFacilities(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40519
40828
  if (!result.ok) {
40520
40829
  return {
40521
40830
  content: [{ type: "text", text: result.error.message }],
@@ -40530,9 +40839,9 @@ Available \`expand\` scopes are:
40530
40839
 
40531
40840
  // src/funcs/supportArticlesGetSupportArticle.ts
40532
40841
  function supportArticlesGetSupportArticle(client, request, options) {
40533
- return new APIPromise($do3(client, request, options));
40842
+ return new APIPromise($do4(client, request, options));
40534
40843
  }
40535
- async function $do3(client, request, options) {
40844
+ async function $do4(client, request, options) {
40536
40845
  const parsed = safeParse(request, (value) => GetSupportArticleRequest$outboundSchema.parse(value), "Input validation failed");
40537
40846
  if (!parsed.ok) {
40538
40847
  return [parsed, { status: "invalid" }];
@@ -40610,12 +40919,12 @@ var init_supportArticlesGetSupportArticle = __esm(() => {
40610
40919
  });
40611
40920
 
40612
40921
  // src/mcp-server/tools/supportArticlesGetSupportArticle.ts
40613
- var args3, tool$supportArticlesGetSupportArticle;
40922
+ var args4, tool$supportArticlesGetSupportArticle;
40614
40923
  var init_supportArticlesGetSupportArticle2 = __esm(() => {
40615
40924
  init_supportArticlesGetSupportArticle();
40616
40925
  init_operations();
40617
40926
  init_tools();
40618
- args3 = {
40927
+ args4 = {
40619
40928
  request: GetSupportArticleRequest$inboundSchema
40620
40929
  };
40621
40930
  tool$supportArticlesGetSupportArticle = {
@@ -40630,9 +40939,9 @@ Available \`expand\` scopes are:
40630
40939
  - support_article.published
40631
40940
  - support_article.notes
40632
40941
  - support_article.support_category`,
40633
- args: args3,
40634
- tool: async (client, args4, ctx) => {
40635
- const [result, apiCall] = await supportArticlesGetSupportArticle(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40942
+ args: args4,
40943
+ tool: async (client, args5, ctx) => {
40944
+ const [result, apiCall] = await supportArticlesGetSupportArticle(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40636
40945
  if (!result.ok) {
40637
40946
  return {
40638
40947
  content: [{ type: "text", text: result.error.message }],
@@ -40647,9 +40956,9 @@ Available \`expand\` scopes are:
40647
40956
 
40648
40957
  // src/funcs/supportArticlesListOrSearchSupportArticles.ts
40649
40958
  function supportArticlesListOrSearchSupportArticles(client, request, options) {
40650
- return new APIPromise($do4(client, request, options));
40959
+ return new APIPromise($do5(client, request, options));
40651
40960
  }
40652
- async function $do4(client, request, options) {
40961
+ async function $do5(client, request, options) {
40653
40962
  const parsed = safeParse(request, (value) => ListOrSearchSupportArticlesRequest$outboundSchema.parse(value), "Input validation failed");
40654
40963
  if (!parsed.ok) {
40655
40964
  return [haltIterator(parsed), { status: "invalid" }];
@@ -40756,12 +41065,12 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
40756
41065
  });
40757
41066
 
40758
41067
  // src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts
40759
- var args4, tool$supportArticlesListOrSearchSupportArticles;
41068
+ var args5, tool$supportArticlesListOrSearchSupportArticles;
40760
41069
  var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
40761
41070
  init_supportArticlesListOrSearchSupportArticles();
40762
41071
  init_operations();
40763
41072
  init_tools();
40764
- args4 = {
41073
+ args5 = {
40765
41074
  request: ListOrSearchSupportArticlesRequest$inboundSchema
40766
41075
  };
40767
41076
  tool$supportArticlesListOrSearchSupportArticles = {
@@ -40769,9 +41078,9 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
40769
41078
  description: `List or search support articles
40770
41079
 
40771
41080
  List or search support articles for FAQ.`,
40772
- args: args4,
40773
- tool: async (client, args5, ctx) => {
40774
- const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41081
+ args: args5,
41082
+ tool: async (client, args6, ctx) => {
41083
+ const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40775
41084
  if (!result.ok) {
40776
41085
  return {
40777
41086
  content: [{ type: "text", text: result.error.message }],
@@ -40786,9 +41095,9 @@ List or search support articles for FAQ.`,
40786
41095
 
40787
41096
  // src/funcs/usersChangePassword.ts
40788
41097
  function usersChangePassword(client, request, options) {
40789
- return new APIPromise($do5(client, request, options));
41098
+ return new APIPromise($do6(client, request, options));
40790
41099
  }
40791
- async function $do5(client, request, options) {
41100
+ async function $do6(client, request, options) {
40792
41101
  const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
40793
41102
  if (!parsed.ok) {
40794
41103
  return [parsed, { status: "invalid" }];
@@ -40862,12 +41171,12 @@ var init_usersChangePassword = __esm(() => {
40862
41171
  });
40863
41172
 
40864
41173
  // src/mcp-server/tools/usersChangePassword.ts
40865
- var args5, tool$usersChangePassword;
41174
+ var args6, tool$usersChangePassword;
40866
41175
  var init_usersChangePassword2 = __esm(() => {
40867
41176
  init_usersChangePassword();
40868
41177
  init_operations();
40869
41178
  init_tools();
40870
- args5 = {
41179
+ args6 = {
40871
41180
  request: ChangePasswordRequest$inboundSchema
40872
41181
  };
40873
41182
  tool$usersChangePassword = {
@@ -40875,9 +41184,9 @@ var init_usersChangePassword2 = __esm(() => {
40875
41184
  description: `Change password
40876
41185
 
40877
41186
  Change the user's password to the new passed as parameter`,
40878
- args: args5,
40879
- tool: async (client, args6, ctx) => {
40880
- const [result, apiCall] = await usersChangePassword(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41187
+ args: args6,
41188
+ tool: async (client, args7, ctx) => {
41189
+ const [result, apiCall] = await usersChangePassword(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40881
41190
  if (!result.ok) {
40882
41191
  return {
40883
41192
  content: [{ type: "text", text: result.error.message }],
@@ -40892,9 +41201,9 @@ Change the user's password to the new passed as parameter`,
40892
41201
 
40893
41202
  // src/funcs/usersGetCurrentUser.ts
40894
41203
  function usersGetCurrentUser(client, options) {
40895
- return new APIPromise($do6(client, options));
41204
+ return new APIPromise($do7(client, options));
40896
41205
  }
40897
- async function $do6(client, options) {
41206
+ async function $do7(client, options) {
40898
41207
  const path = pathToFunc("/users/me")();
40899
41208
  const headers = new Headers(compactMap({
40900
41209
  Accept: "application/json"
@@ -40977,9 +41286,9 @@ Returns a user object for the user represented by the authorization token`,
40977
41286
 
40978
41287
  // src/funcs/usersGetUserById.ts
40979
41288
  function usersGetUserById(client, request, options) {
40980
- return new APIPromise($do7(client, request, options));
41289
+ return new APIPromise($do8(client, request, options));
40981
41290
  }
40982
- async function $do7(client, request, options) {
41291
+ async function $do8(client, request, options) {
40983
41292
  const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
40984
41293
  if (!parsed.ok) {
40985
41294
  return [parsed, { status: "invalid" }];
@@ -41053,12 +41362,12 @@ var init_usersGetUserById = __esm(() => {
41053
41362
  });
41054
41363
 
41055
41364
  // src/mcp-server/tools/usersGetUserById.ts
41056
- var args6, tool$usersGetUserById;
41365
+ var args7, tool$usersGetUserById;
41057
41366
  var init_usersGetUserById2 = __esm(() => {
41058
41367
  init_usersGetUserById();
41059
41368
  init_operations();
41060
41369
  init_tools();
41061
- args6 = {
41370
+ args7 = {
41062
41371
  request: GetUserByIdRequest$inboundSchema
41063
41372
  };
41064
41373
  tool$usersGetUserById = {
@@ -41066,9 +41375,9 @@ var init_usersGetUserById2 = __esm(() => {
41066
41375
  description: `Get user by id
41067
41376
 
41068
41377
  Returns a user object for the user represented by the identifier in the path.`,
41069
- args: args6,
41070
- tool: async (client, args7, ctx) => {
41071
- const [result, apiCall] = await usersGetUserById(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41378
+ args: args7,
41379
+ tool: async (client, args8, ctx) => {
41380
+ const [result, apiCall] = await usersGetUserById(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41072
41381
  if (!result.ok) {
41073
41382
  return {
41074
41383
  content: [{ type: "text", text: result.error.message }],
@@ -41083,9 +41392,9 @@ Returns a user object for the user represented by the identifier in the path.`,
41083
41392
 
41084
41393
  // src/funcs/usersLogsUserIntoTheSystem.ts
41085
41394
  function usersLogsUserIntoTheSystem(client, request, options) {
41086
- return new APIPromise($do8(client, request, options));
41395
+ return new APIPromise($do9(client, request, options));
41087
41396
  }
41088
- async function $do8(client, request, options) {
41397
+ async function $do9(client, request, options) {
41089
41398
  const parsed = safeParse(request, (value) => LogsUserIntoTheSystemRequestBody$outboundSchema.parse(value), "Input validation failed");
41090
41399
  if (!parsed.ok) {
41091
41400
  return [parsed, { status: "invalid" }];
@@ -41149,12 +41458,12 @@ var init_usersLogsUserIntoTheSystem = __esm(() => {
41149
41458
  });
41150
41459
 
41151
41460
  // src/mcp-server/tools/usersLogsUserIntoTheSystem.ts
41152
- var args7, tool$usersLogsUserIntoTheSystem;
41461
+ var args8, tool$usersLogsUserIntoTheSystem;
41153
41462
  var init_usersLogsUserIntoTheSystem2 = __esm(() => {
41154
41463
  init_usersLogsUserIntoTheSystem();
41155
41464
  init_operations();
41156
41465
  init_tools();
41157
- args7 = {
41466
+ args8 = {
41158
41467
  request: LogsUserIntoTheSystemRequestBody$inboundSchema
41159
41468
  };
41160
41469
  tool$usersLogsUserIntoTheSystem = {
@@ -41192,9 +41501,9 @@ Requires: \`saml_login\`
41192
41501
  3. Site redirects to your selected \`return_url\`
41193
41502
  4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
41194
41503
  5. Fetch the user object from \`/users/me\` using the token`,
41195
- args: args7,
41196
- tool: async (client, args8, ctx) => {
41197
- const [result, apiCall] = await usersLogsUserIntoTheSystem(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41504
+ args: args8,
41505
+ tool: async (client, args9, ctx) => {
41506
+ const [result, apiCall] = await usersLogsUserIntoTheSystem(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41198
41507
  if (!result.ok) {
41199
41508
  return {
41200
41509
  content: [{ type: "text", text: result.error.message }],
@@ -41209,9 +41518,9 @@ Requires: \`saml_login\`
41209
41518
 
41210
41519
  // src/funcs/usersMagiclink.ts
41211
41520
  function usersMagiclink(client, request, options) {
41212
- return new APIPromise($do9(client, request, options));
41521
+ return new APIPromise($do10(client, request, options));
41213
41522
  }
41214
- async function $do9(client, request, options) {
41523
+ async function $do10(client, request, options) {
41215
41524
  const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
41216
41525
  if (!parsed.ok) {
41217
41526
  return [parsed, { status: "invalid" }];
@@ -41279,12 +41588,12 @@ var init_usersMagiclink = __esm(() => {
41279
41588
  });
41280
41589
 
41281
41590
  // src/mcp-server/tools/usersMagiclink.ts
41282
- var args8, tool$usersMagiclink;
41591
+ var args9, tool$usersMagiclink;
41283
41592
  var init_usersMagiclink2 = __esm(() => {
41284
41593
  init_usersMagiclink();
41285
41594
  init_operations();
41286
41595
  init_tools();
41287
- args8 = {
41596
+ args9 = {
41288
41597
  request: MagiclinkRequestBody$inboundSchema
41289
41598
  };
41290
41599
  tool$usersMagiclink = {
@@ -41292,9 +41601,9 @@ var init_usersMagiclink2 = __esm(() => {
41292
41601
  description: `Magic link
41293
41602
 
41294
41603
  It sends an email with a magic link to allow the user to log in.`,
41295
- args: args8,
41296
- tool: async (client, args9, ctx) => {
41297
- const [result, apiCall] = await usersMagiclink(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41604
+ args: args9,
41605
+ tool: async (client, args10, ctx) => {
41606
+ const [result, apiCall] = await usersMagiclink(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41298
41607
  if (!result.ok) {
41299
41608
  return {
41300
41609
  content: [{ type: "text", text: result.error.message }],
@@ -41309,9 +41618,9 @@ It sends an email with a magic link to allow the user to log in.`,
41309
41618
 
41310
41619
  // src/funcs/usersPassword.ts
41311
41620
  function usersPassword(client, request, options) {
41312
- return new APIPromise($do10(client, request, options));
41621
+ return new APIPromise($do11(client, request, options));
41313
41622
  }
41314
- async function $do10(client, request, options) {
41623
+ async function $do11(client, request, options) {
41315
41624
  const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
41316
41625
  if (!parsed.ok) {
41317
41626
  return [parsed, { status: "invalid" }];
@@ -41379,12 +41688,12 @@ var init_usersPassword = __esm(() => {
41379
41688
  });
41380
41689
 
41381
41690
  // src/mcp-server/tools/usersPassword.ts
41382
- var args9, tool$usersPassword;
41691
+ var args10, tool$usersPassword;
41383
41692
  var init_usersPassword2 = __esm(() => {
41384
41693
  init_usersPassword();
41385
41694
  init_operations();
41386
41695
  init_tools();
41387
- args9 = {
41696
+ args10 = {
41388
41697
  request: PasswordRequestBody$inboundSchema
41389
41698
  };
41390
41699
  tool$usersPassword = {
@@ -41393,9 +41702,9 @@ var init_usersPassword2 = __esm(() => {
41393
41702
 
41394
41703
  Resets the a user's password using a password_reset_id that was sent to them via email.
41395
41704
  See /users/passwordresetrequest to initiate a password reset flow.`,
41396
- args: args9,
41397
- tool: async (client, args10, ctx) => {
41398
- const [result, apiCall] = await usersPassword(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41705
+ args: args10,
41706
+ tool: async (client, args11, ctx) => {
41707
+ const [result, apiCall] = await usersPassword(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41399
41708
  if (!result.ok) {
41400
41709
  return {
41401
41710
  content: [{ type: "text", text: result.error.message }],
@@ -41410,9 +41719,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
41410
41719
 
41411
41720
  // src/funcs/usersPasswordResetRequest.ts
41412
41721
  function usersPasswordResetRequest(client, request, options) {
41413
- return new APIPromise($do11(client, request, options));
41722
+ return new APIPromise($do12(client, request, options));
41414
41723
  }
41415
- async function $do11(client, request, options) {
41724
+ async function $do12(client, request, options) {
41416
41725
  const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
41417
41726
  if (!parsed.ok) {
41418
41727
  return [parsed, { status: "invalid" }];
@@ -41480,12 +41789,12 @@ var init_usersPasswordResetRequest = __esm(() => {
41480
41789
  });
41481
41790
 
41482
41791
  // src/mcp-server/tools/usersPasswordResetRequest.ts
41483
- var args10, tool$usersPasswordResetRequest;
41792
+ var args11, tool$usersPasswordResetRequest;
41484
41793
  var init_usersPasswordResetRequest2 = __esm(() => {
41485
41794
  init_usersPasswordResetRequest();
41486
41795
  init_operations();
41487
41796
  init_tools();
41488
- args10 = {
41797
+ args11 = {
41489
41798
  request: PasswordResetRequestRequestBody$inboundSchema
41490
41799
  };
41491
41800
  tool$usersPasswordResetRequest = {
@@ -41493,9 +41802,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
41493
41802
  description: `Password reset request
41494
41803
 
41495
41804
  It sends an email with a link for resetting a user's password.`,
41496
- args: args10,
41497
- tool: async (client, args11, ctx) => {
41498
- const [result, apiCall] = await usersPasswordResetRequest(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41805
+ args: args11,
41806
+ tool: async (client, args12, ctx) => {
41807
+ const [result, apiCall] = await usersPasswordResetRequest(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41499
41808
  if (!result.ok) {
41500
41809
  return {
41501
41810
  content: [{ type: "text", text: result.error.message }],
@@ -41510,31 +41819,136 @@ It sends an email with a link for resetting a user's password.`,
41510
41819
 
41511
41820
  // src/funcs/vendorsAddVendorManagedByCompany.ts
41512
41821
  function vendorsAddVendorManagedByCompany(client, request, options) {
41513
- return new APIPromise($do12(client, request, options));
41822
+ return new APIPromise($do13(client, request, options));
41514
41823
  }
41515
- async function $do12(client, request, options) {
41824
+ async function $do13(client, request, options) {
41516
41825
  const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
41517
41826
  if (!parsed.ok) {
41518
41827
  return [parsed, { status: "invalid" }];
41519
41828
  }
41520
41829
  const payload = parsed.value;
41521
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
41830
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
41831
+ const pathParams = {
41832
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41833
+ explode: false,
41834
+ charEncoding: "percent"
41835
+ })
41836
+ };
41837
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
41838
+ const headers = new Headers(compactMap({
41839
+ "Content-Type": "application/json",
41840
+ Accept: "application/json"
41841
+ }));
41842
+ const securityInput = await extractSecurity(client._options.security);
41843
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41844
+ const context = {
41845
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41846
+ operationID: "addVendorManagedByCompany",
41847
+ oAuth2Scopes: [],
41848
+ resolvedSecurity: requestSecurity,
41849
+ securitySource: client._options.security,
41850
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41851
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41852
+ };
41853
+ const requestRes = client._createRequest(context, {
41854
+ security: requestSecurity,
41855
+ method: "POST",
41856
+ baseURL: options?.serverURL,
41857
+ path,
41858
+ headers,
41859
+ body,
41860
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41861
+ }, options);
41862
+ if (!requestRes.ok) {
41863
+ return [requestRes, { status: "invalid" }];
41864
+ }
41865
+ const req = requestRes.value;
41866
+ const doResult = await client._do(req, {
41867
+ context,
41868
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
41869
+ retryConfig: context.retryConfig,
41870
+ retryCodes: context.retryCodes
41871
+ });
41872
+ if (!doResult.ok) {
41873
+ return [doResult, { status: "request-error", request: req }];
41874
+ }
41875
+ const response = doResult.value;
41876
+ const responseFields = {
41877
+ HttpMeta: { Response: response, Request: req }
41878
+ };
41879
+ const [result] = await match(json(200, AddVendorManagedByCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41880
+ if (!result.ok) {
41881
+ return [result, { status: "complete", request: req, response }];
41882
+ }
41883
+ return [result, { status: "complete", request: req, response }];
41884
+ }
41885
+ var init_vendorsAddVendorManagedByCompany = __esm(() => {
41886
+ init_encodings();
41887
+ init_matchers();
41888
+ init_primitives();
41889
+ init_schemas();
41890
+ init_security();
41891
+ init_url();
41892
+ init_errors();
41893
+ init_operations();
41894
+ init_async();
41895
+ });
41896
+
41897
+ // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
41898
+ var args12, tool$vendorsAddVendorManagedByCompany;
41899
+ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
41900
+ init_vendorsAddVendorManagedByCompany();
41901
+ init_operations();
41902
+ init_tools();
41903
+ args12 = {
41904
+ request: AddVendorManagedByCompanyRequest$inboundSchema
41905
+ };
41906
+ tool$vendorsAddVendorManagedByCompany = {
41907
+ name: "vendors-add-vendor-managed-by-company",
41908
+ description: `Add vendor managed by company
41909
+
41910
+ It will add a vendor managed by company`,
41911
+ args: args12,
41912
+ tool: async (client, args13, ctx) => {
41913
+ const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41914
+ if (!result.ok) {
41915
+ return {
41916
+ content: [{ type: "text", text: result.error.message }],
41917
+ isError: true
41918
+ };
41919
+ }
41920
+ const value = result.value;
41921
+ return formatResult(value, apiCall);
41922
+ }
41923
+ };
41924
+ });
41925
+
41926
+ // src/funcs/vendorScansVendorScanOut.ts
41927
+ function vendorScansVendorScanOut(client, request, options) {
41928
+ return new APIPromise($do14(client, request, options));
41929
+ }
41930
+ async function $do14(client, request, options) {
41931
+ const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
41932
+ if (!parsed.ok) {
41933
+ return [parsed, { status: "invalid" }];
41934
+ }
41935
+ const payload = parsed.value;
41936
+ const body = null;
41522
41937
  const pathParams = {
41523
- vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41938
+ id: encodeSimple("id", payload.id, {
41524
41939
  explode: false,
41525
41940
  charEncoding: "percent"
41526
41941
  })
41527
41942
  };
41528
- const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
41943
+ const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
41529
41944
  const headers = new Headers(compactMap({
41530
- "Content-Type": "application/json",
41531
41945
  Accept: "application/json"
41532
41946
  }));
41533
41947
  const securityInput = await extractSecurity(client._options.security);
41534
41948
  const requestSecurity = resolveGlobalSecurity(securityInput);
41535
41949
  const context = {
41536
41950
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41537
- operationID: "addVendorManagedByCompany",
41951
+ operationID: "vendorScanOut",
41538
41952
  oAuth2Scopes: [],
41539
41953
  resolvedSecurity: requestSecurity,
41540
41954
  securitySource: client._options.security,
@@ -41567,13 +41981,13 @@ async function $do12(client, request, options) {
41567
41981
  const responseFields = {
41568
41982
  HttpMeta: { Response: response, Request: req }
41569
41983
  };
41570
- const [result] = await match(json(200, AddVendorManagedByCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41984
+ const [result] = await match(json(200, VendorScanOutResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41571
41985
  if (!result.ok) {
41572
41986
  return [result, { status: "complete", request: req, response }];
41573
41987
  }
41574
41988
  return [result, { status: "complete", request: req, response }];
41575
41989
  }
41576
- var init_vendorsAddVendorManagedByCompany = __esm(() => {
41990
+ var init_vendorScansVendorScanOut = __esm(() => {
41577
41991
  init_encodings();
41578
41992
  init_matchers();
41579
41993
  init_primitives();
@@ -41585,23 +41999,23 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
41585
41999
  init_async();
41586
42000
  });
41587
42001
 
41588
- // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
41589
- var args11, tool$vendorsAddVendorManagedByCompany;
41590
- var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
41591
- init_vendorsAddVendorManagedByCompany();
42002
+ // src/mcp-server/tools/vendorScansVendorScanOut.ts
42003
+ var args13, tool$vendorScansVendorScanOut;
42004
+ var init_vendorScansVendorScanOut2 = __esm(() => {
42005
+ init_vendorScansVendorScanOut();
41592
42006
  init_operations();
41593
42007
  init_tools();
41594
- args11 = {
41595
- request: AddVendorManagedByCompanyRequest$inboundSchema
42008
+ args13 = {
42009
+ request: VendorScanOutRequest$inboundSchema
41596
42010
  };
41597
- tool$vendorsAddVendorManagedByCompany = {
41598
- name: "vendors-add-vendor-managed-by-company",
41599
- description: `Add vendor managed by company
42011
+ tool$vendorScansVendorScanOut = {
42012
+ name: "vendor-scans-vendor-scan-out",
42013
+ description: `Vendor scan out
41600
42014
 
41601
- It will add a vendor managed by company`,
41602
- args: args11,
41603
- tool: async (client, args12, ctx) => {
41604
- const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42015
+ It scans out vendor from facility`,
42016
+ args: args13,
42017
+ tool: async (client, args14, ctx) => {
42018
+ const [result, apiCall] = await vendorScansVendorScanOut(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41605
42019
  if (!result.ok) {
41606
42020
  return {
41607
42021
  content: [{ type: "text", text: result.error.message }],
@@ -41614,32 +42028,33 @@ It will add a vendor managed by company`,
41614
42028
  };
41615
42029
  });
41616
42030
 
41617
- // src/funcs/vendorScansVendorScanOut.ts
41618
- function vendorScansVendorScanOut(client, request, options) {
41619
- return new APIPromise($do13(client, request, options));
42031
+ // src/funcs/vendorsCreateVendorCompany.ts
42032
+ function vendorsCreateVendorCompany(client, request, options) {
42033
+ return new APIPromise($do15(client, request, options));
41620
42034
  }
41621
- async function $do13(client, request, options) {
41622
- const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
42035
+ async function $do15(client, request, options) {
42036
+ const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
41623
42037
  if (!parsed.ok) {
41624
42038
  return [parsed, { status: "invalid" }];
41625
42039
  }
41626
42040
  const payload = parsed.value;
41627
- const body = null;
42041
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
41628
42042
  const pathParams = {
41629
- id: encodeSimple("id", payload.id, {
42043
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41630
42044
  explode: false,
41631
42045
  charEncoding: "percent"
41632
42046
  })
41633
42047
  };
41634
- const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
42048
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/company")(pathParams);
41635
42049
  const headers = new Headers(compactMap({
42050
+ "Content-Type": "application/json",
41636
42051
  Accept: "application/json"
41637
42052
  }));
41638
42053
  const securityInput = await extractSecurity(client._options.security);
41639
42054
  const requestSecurity = resolveGlobalSecurity(securityInput);
41640
42055
  const context = {
41641
42056
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41642
- operationID: "vendorScanOut",
42057
+ operationID: "createVendorCompany",
41643
42058
  oAuth2Scopes: [],
41644
42059
  resolvedSecurity: requestSecurity,
41645
42060
  securitySource: client._options.security,
@@ -41672,13 +42087,13 @@ async function $do13(client, request, options) {
41672
42087
  const responseFields = {
41673
42088
  HttpMeta: { Response: response, Request: req }
41674
42089
  };
41675
- const [result] = await match(json(200, VendorScanOutResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42090
+ const [result] = await match(json(200, CreateVendorCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41676
42091
  if (!result.ok) {
41677
42092
  return [result, { status: "complete", request: req, response }];
41678
42093
  }
41679
42094
  return [result, { status: "complete", request: req, response }];
41680
42095
  }
41681
- var init_vendorScansVendorScanOut = __esm(() => {
42096
+ var init_vendorsCreateVendorCompany = __esm(() => {
41682
42097
  init_encodings();
41683
42098
  init_matchers();
41684
42099
  init_primitives();
@@ -41690,23 +42105,23 @@ var init_vendorScansVendorScanOut = __esm(() => {
41690
42105
  init_async();
41691
42106
  });
41692
42107
 
41693
- // src/mcp-server/tools/vendorScansVendorScanOut.ts
41694
- var args12, tool$vendorScansVendorScanOut;
41695
- var init_vendorScansVendorScanOut2 = __esm(() => {
41696
- init_vendorScansVendorScanOut();
42108
+ // src/mcp-server/tools/vendorsCreateVendorCompany.ts
42109
+ var args14, tool$vendorsCreateVendorCompany;
42110
+ var init_vendorsCreateVendorCompany2 = __esm(() => {
42111
+ init_vendorsCreateVendorCompany();
41697
42112
  init_operations();
41698
42113
  init_tools();
41699
- args12 = {
41700
- request: VendorScanOutRequest$inboundSchema
42114
+ args14 = {
42115
+ request: CreateVendorCompanyRequest$inboundSchema
41701
42116
  };
41702
- tool$vendorScansVendorScanOut = {
41703
- name: "vendor-scans-vendor-scan-out",
41704
- description: `Vendor scan out
42117
+ tool$vendorsCreateVendorCompany = {
42118
+ name: "vendors-create-vendor-company",
42119
+ description: `Create vendor company
41705
42120
 
41706
- It scans out vendor from facility`,
41707
- args: args12,
41708
- tool: async (client, args13, ctx) => {
41709
- const [result, apiCall] = await vendorScansVendorScanOut(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42121
+ Create vendor company`,
42122
+ args: args14,
42123
+ tool: async (client, args15, ctx) => {
42124
+ const [result, apiCall] = await vendorsCreateVendorCompany(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41710
42125
  if (!result.ok) {
41711
42126
  return {
41712
42127
  content: [{ type: "text", text: result.error.message }],
@@ -41721,9 +42136,9 @@ It scans out vendor from facility`,
41721
42136
 
41722
42137
  // src/funcs/vendorsCreateVendorRegistration.ts
41723
42138
  function vendorsCreateVendorRegistration(client, request, options) {
41724
- return new APIPromise($do14(client, request, options));
42139
+ return new APIPromise($do16(client, request, options));
41725
42140
  }
41726
- async function $do14(client, request, options) {
42141
+ async function $do16(client, request, options) {
41727
42142
  const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
41728
42143
  if (!parsed.ok) {
41729
42144
  return [parsed, { status: "invalid" }];
@@ -41787,12 +42202,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
41787
42202
  });
41788
42203
 
41789
42204
  // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
41790
- var args13, tool$vendorsCreateVendorRegistration;
42205
+ var args15, tool$vendorsCreateVendorRegistration;
41791
42206
  var init_vendorsCreateVendorRegistration2 = __esm(() => {
41792
42207
  init_vendorsCreateVendorRegistration();
41793
42208
  init_operations();
41794
42209
  init_tools();
41795
- args13 = {
42210
+ args15 = {
41796
42211
  request: CreateVendorRegistrationRequestBody$inboundSchema
41797
42212
  };
41798
42213
  tool$vendorsCreateVendorRegistration = {
@@ -41800,9 +42215,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
41800
42215
  description: `Create vendor registration
41801
42216
 
41802
42217
  Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
41803
- args: args13,
41804
- tool: async (client, args14, ctx) => {
41805
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42218
+ args: args15,
42219
+ tool: async (client, args16, ctx) => {
42220
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41806
42221
  if (!result.ok) {
41807
42222
  return {
41808
42223
  content: [{ type: "text", text: result.error.message }],
@@ -41817,9 +42232,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
41817
42232
 
41818
42233
  // src/funcs/vendorsDeleteVendorManagedByCompany.ts
41819
42234
  function vendorsDeleteVendorManagedByCompany(client, request, options) {
41820
- return new APIPromise($do15(client, request, options));
42235
+ return new APIPromise($do17(client, request, options));
41821
42236
  }
41822
- async function $do15(client, request, options) {
42237
+ async function $do17(client, request, options) {
41823
42238
  const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
41824
42239
  if (!parsed.ok) {
41825
42240
  return [parsed, { status: "invalid" }];
@@ -41893,12 +42308,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
41893
42308
  });
41894
42309
 
41895
42310
  // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
41896
- var args14, tool$vendorsDeleteVendorManagedByCompany;
42311
+ var args16, tool$vendorsDeleteVendorManagedByCompany;
41897
42312
  var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
41898
42313
  init_vendorsDeleteVendorManagedByCompany();
41899
42314
  init_operations();
41900
42315
  init_tools();
41901
- args14 = {
42316
+ args16 = {
41902
42317
  request: DeleteVendorManagedByCompanyRequest$inboundSchema
41903
42318
  };
41904
42319
  tool$vendorsDeleteVendorManagedByCompany = {
@@ -41906,9 +42321,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
41906
42321
  description: `Delete vendor managed by company
41907
42322
 
41908
42323
  It will delete the vendor managed by company`,
41909
- args: args14,
41910
- tool: async (client, args15, ctx) => {
41911
- const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42324
+ args: args16,
42325
+ tool: async (client, args17, ctx) => {
42326
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41912
42327
  if (!result.ok) {
41913
42328
  return {
41914
42329
  content: [{ type: "text", text: result.error.message }],
@@ -41923,9 +42338,9 @@ It will delete the vendor managed by company`,
41923
42338
 
41924
42339
  // src/funcs/vendorsExpediteTimeRemaining.ts
41925
42340
  function vendorsExpediteTimeRemaining(client, request, options) {
41926
- return new APIPromise($do16(client, request, options));
42341
+ return new APIPromise($do18(client, request, options));
41927
42342
  }
41928
- async function $do16(client, request, options) {
42343
+ async function $do18(client, request, options) {
41929
42344
  const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
41930
42345
  if (!parsed.ok) {
41931
42346
  return [parsed, { status: "invalid" }];
@@ -41998,12 +42413,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
41998
42413
  });
41999
42414
 
42000
42415
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
42001
- var args15, tool$vendorsExpediteTimeRemaining;
42416
+ var args17, tool$vendorsExpediteTimeRemaining;
42002
42417
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
42003
42418
  init_vendorsExpediteTimeRemaining();
42004
42419
  init_operations();
42005
42420
  init_tools();
42006
- args15 = {
42421
+ args17 = {
42007
42422
  request: ExpediteTimeRemainingRequest$inboundSchema
42008
42423
  };
42009
42424
  tool$vendorsExpediteTimeRemaining = {
@@ -42011,9 +42426,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
42011
42426
  description: `Expedite time remaining
42012
42427
 
42013
42428
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
42014
- args: args15,
42015
- tool: async (client, args16, ctx) => {
42016
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42429
+ args: args17,
42430
+ tool: async (client, args18, ctx) => {
42431
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42017
42432
  if (!result.ok) {
42018
42433
  return {
42019
42434
  content: [{ type: "text", text: result.error.message }],
@@ -42028,9 +42443,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
42028
42443
 
42029
42444
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
42030
42445
  function vendorsGetVendorInvoiceDetails(client, request, options) {
42031
- return new APIPromise($do17(client, request, options));
42446
+ return new APIPromise($do19(client, request, options));
42032
42447
  }
42033
- async function $do17(client, request, options) {
42448
+ async function $do19(client, request, options) {
42034
42449
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
42035
42450
  if (!parsed.ok) {
42036
42451
  return [parsed, { status: "invalid" }];
@@ -42108,12 +42523,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
42108
42523
  });
42109
42524
 
42110
42525
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
42111
- var args16, tool$vendorsGetVendorInvoiceDetails;
42526
+ var args18, tool$vendorsGetVendorInvoiceDetails;
42112
42527
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
42113
42528
  init_vendorsGetVendorInvoiceDetails();
42114
42529
  init_operations();
42115
42530
  init_tools();
42116
- args16 = {
42531
+ args18 = {
42117
42532
  request: GetVendorInvoiceDetailsRequest$inboundSchema
42118
42533
  };
42119
42534
  tool$vendorsGetVendorInvoiceDetails = {
@@ -42126,9 +42541,9 @@ Available \`expand\` scopes are:
42126
42541
 
42127
42542
  invoice.line_items
42128
42543
  invoice.invoice_transactions`,
42129
- args: args16,
42130
- tool: async (client, args17, ctx) => {
42131
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42544
+ args: args18,
42545
+ tool: async (client, args19, ctx) => {
42546
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42132
42547
  if (!result.ok) {
42133
42548
  return {
42134
42549
  content: [{ type: "text", text: result.error.message }],
@@ -42143,9 +42558,9 @@ invoice.invoice_transactions`,
42143
42558
 
42144
42559
  // src/funcs/vendorsGetVendorsDetails.ts
42145
42560
  function vendorsGetVendorsDetails(client, request, options) {
42146
- return new APIPromise($do18(client, request, options));
42561
+ return new APIPromise($do20(client, request, options));
42147
42562
  }
42148
- async function $do18(client, request, options) {
42563
+ async function $do20(client, request, options) {
42149
42564
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
42150
42565
  if (!parsed.ok) {
42151
42566
  return [parsed, { status: "invalid" }];
@@ -42223,12 +42638,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
42223
42638
  });
42224
42639
 
42225
42640
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
42226
- var args17, tool$vendorsGetVendorsDetails;
42641
+ var args19, tool$vendorsGetVendorsDetails;
42227
42642
  var init_vendorsGetVendorsDetails2 = __esm(() => {
42228
42643
  init_vendorsGetVendorsDetails();
42229
42644
  init_operations();
42230
42645
  init_tools();
42231
- args17 = {
42646
+ args19 = {
42232
42647
  request: GetVendorsDetailsRequest$inboundSchema
42233
42648
  };
42234
42649
  tool$vendorsGetVendorsDetails = {
@@ -42250,9 +42665,9 @@ vendor.credentialing_subscription
42250
42665
  vendor.scrubs_subscription
42251
42666
  vendor.payment_responsibility
42252
42667
  vendor.background_check_date_expires`,
42253
- args: args17,
42254
- tool: async (client, args18, ctx) => {
42255
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42668
+ args: args19,
42669
+ tool: async (client, args20, ctx) => {
42670
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42256
42671
  if (!result.ok) {
42257
42672
  return {
42258
42673
  content: [{ type: "text", text: result.error.message }],
@@ -42267,9 +42682,9 @@ vendor.background_check_date_expires`,
42267
42682
 
42268
42683
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
42269
42684
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
42270
- return new APIPromise($do19(client, request, options));
42685
+ return new APIPromise($do21(client, request, options));
42271
42686
  }
42272
- async function $do19(client, request, options) {
42687
+ async function $do21(client, request, options) {
42273
42688
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
42274
42689
  if (!parsed.ok) {
42275
42690
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42379,12 +42794,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
42379
42794
  });
42380
42795
 
42381
42796
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
42382
- var args18, tool$vendorsListVendorAdditionalFacilityFields;
42797
+ var args20, tool$vendorsListVendorAdditionalFacilityFields;
42383
42798
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
42384
42799
  init_vendorsListVendorAdditionalFacilityFields();
42385
42800
  init_operations();
42386
42801
  init_tools();
42387
- args18 = {
42802
+ args20 = {
42388
42803
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
42389
42804
  };
42390
42805
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -42392,9 +42807,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
42392
42807
  description: `List of vendor's additional facility fields
42393
42808
 
42394
42809
  List of vendor's additional facility fields`,
42395
- args: args18,
42396
- tool: async (client, args19, ctx) => {
42397
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42810
+ args: args20,
42811
+ tool: async (client, args21, ctx) => {
42812
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42398
42813
  if (!result.ok) {
42399
42814
  return {
42400
42815
  content: [{ type: "text", text: result.error.message }],
@@ -42409,9 +42824,9 @@ List of vendor's additional facility fields`,
42409
42824
 
42410
42825
  // src/funcs/vendorsListVendorCredentials.ts
42411
42826
  function vendorsListVendorCredentials(client, request, options) {
42412
- return new APIPromise($do20(client, request, options));
42827
+ return new APIPromise($do22(client, request, options));
42413
42828
  }
42414
- async function $do20(client, request, options) {
42829
+ async function $do22(client, request, options) {
42415
42830
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
42416
42831
  if (!parsed.ok) {
42417
42832
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42528,12 +42943,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
42528
42943
  });
42529
42944
 
42530
42945
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
42531
- var args19, tool$vendorsListVendorCredentials;
42946
+ var args21, tool$vendorsListVendorCredentials;
42532
42947
  var init_vendorsListVendorCredentials2 = __esm(() => {
42533
42948
  init_vendorsListVendorCredentials();
42534
42949
  init_operations();
42535
42950
  init_tools();
42536
- args19 = {
42951
+ args21 = {
42537
42952
  request: ListVendorCredentialsRequest$inboundSchema
42538
42953
  };
42539
42954
  tool$vendorsListVendorCredentials = {
@@ -42541,9 +42956,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
42541
42956
  description: `List Vendor Credentials
42542
42957
 
42543
42958
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
42544
- args: args19,
42545
- tool: async (client, args20, ctx) => {
42546
- const [result, apiCall] = await vendorsListVendorCredentials(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42959
+ args: args21,
42960
+ tool: async (client, args22, ctx) => {
42961
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42547
42962
  if (!result.ok) {
42548
42963
  return {
42549
42964
  content: [{ type: "text", text: result.error.message }],
@@ -42558,9 +42973,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
42558
42973
 
42559
42974
  // src/funcs/vendorsListVendorCredits.ts
42560
42975
  function vendorsListVendorCredits(client, request, options) {
42561
- return new APIPromise($do21(client, request, options));
42976
+ return new APIPromise($do23(client, request, options));
42562
42977
  }
42563
- async function $do21(client, request, options) {
42978
+ async function $do23(client, request, options) {
42564
42979
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
42565
42980
  if (!parsed.ok) {
42566
42981
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42672,12 +43087,12 @@ var init_vendorsListVendorCredits = __esm(() => {
42672
43087
  });
42673
43088
 
42674
43089
  // src/mcp-server/tools/vendorsListVendorCredits.ts
42675
- var args20, tool$vendorsListVendorCredits;
43090
+ var args22, tool$vendorsListVendorCredits;
42676
43091
  var init_vendorsListVendorCredits2 = __esm(() => {
42677
43092
  init_vendorsListVendorCredits();
42678
43093
  init_operations();
42679
43094
  init_tools();
42680
- args20 = {
43095
+ args22 = {
42681
43096
  request: ListVendorCreditsRequest$inboundSchema
42682
43097
  };
42683
43098
  tool$vendorsListVendorCredits = {
@@ -42685,9 +43100,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
42685
43100
  description: `List vendor credits
42686
43101
 
42687
43102
  List the credits for the vendor`,
42688
- args: args20,
42689
- tool: async (client, args21, ctx) => {
42690
- const [result, apiCall] = await vendorsListVendorCredits(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43103
+ args: args22,
43104
+ tool: async (client, args23, ctx) => {
43105
+ const [result, apiCall] = await vendorsListVendorCredits(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42691
43106
  if (!result.ok) {
42692
43107
  return {
42693
43108
  content: [{ type: "text", text: result.error.message }],
@@ -42702,9 +43117,9 @@ List the credits for the vendor`,
42702
43117
 
42703
43118
  // src/funcs/vendorsListVendorFacilityStatuses.ts
42704
43119
  function vendorsListVendorFacilityStatuses(client, request, options) {
42705
- return new APIPromise($do22(client, request, options));
43120
+ return new APIPromise($do24(client, request, options));
42706
43121
  }
42707
- async function $do22(client, request, options) {
43122
+ async function $do24(client, request, options) {
42708
43123
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
42709
43124
  if (!parsed.ok) {
42710
43125
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42812,12 +43227,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
42812
43227
  });
42813
43228
 
42814
43229
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
42815
- var args21, tool$vendorsListVendorFacilityStatuses;
43230
+ var args23, tool$vendorsListVendorFacilityStatuses;
42816
43231
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
42817
43232
  init_vendorsListVendorFacilityStatuses();
42818
43233
  init_operations();
42819
43234
  init_tools();
42820
- args21 = {
43235
+ args23 = {
42821
43236
  request: ListVendorFacilityStatusesRequest$inboundSchema
42822
43237
  };
42823
43238
  tool$vendorsListVendorFacilityStatuses = {
@@ -42825,9 +43240,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
42825
43240
  description: `List vendor facility statuses
42826
43241
 
42827
43242
  List the facilities for the vendor`,
42828
- args: args21,
42829
- tool: async (client, args22, ctx) => {
42830
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43243
+ args: args23,
43244
+ tool: async (client, args24, ctx) => {
43245
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42831
43246
  if (!result.ok) {
42832
43247
  return {
42833
43248
  content: [{ type: "text", text: result.error.message }],
@@ -42842,9 +43257,9 @@ List the facilities for the vendor`,
42842
43257
 
42843
43258
  // src/funcs/vendorsListVendorInvoices.ts
42844
43259
  function vendorsListVendorInvoices(client, request, options) {
42845
- return new APIPromise($do23(client, request, options));
43260
+ return new APIPromise($do25(client, request, options));
42846
43261
  }
42847
- async function $do23(client, request, options) {
43262
+ async function $do25(client, request, options) {
42848
43263
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
42849
43264
  if (!parsed.ok) {
42850
43265
  return [haltIterator(parsed), { status: "invalid" }];
@@ -42862,8 +43277,8 @@ async function $do23(client, request, options) {
42862
43277
  expand: payload.expand
42863
43278
  }, { explode: false }), encodeFormQuery({
42864
43279
  desc: payload.desc,
43280
+ invoice_financial_status: payload.invoice_financial_status,
42865
43281
  invoice_number: payload.invoice_number,
42866
- invoice_status: payload.invoice_status,
42867
43282
  items_per_page: payload.items_per_page,
42868
43283
  page: payload.page,
42869
43284
  sort: payload.sort
@@ -42960,12 +43375,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
42960
43375
  });
42961
43376
 
42962
43377
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
42963
- var args22, tool$vendorsListVendorInvoices;
43378
+ var args24, tool$vendorsListVendorInvoices;
42964
43379
  var init_vendorsListVendorInvoices2 = __esm(() => {
42965
43380
  init_vendorsListVendorInvoices();
42966
43381
  init_operations();
42967
43382
  init_tools();
42968
- args22 = {
43383
+ args24 = {
42969
43384
  request: ListVendorInvoicesRequest$inboundSchema
42970
43385
  };
42971
43386
  tool$vendorsListVendorInvoices = {
@@ -42977,9 +43392,9 @@ List invoices for Vendors
42977
43392
  Available \`expand\` scopes are:
42978
43393
 
42979
43394
  invoice.line_items`,
42980
- args: args22,
42981
- tool: async (client, args23, ctx) => {
42982
- const [result, apiCall] = await vendorsListVendorInvoices(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43395
+ args: args24,
43396
+ tool: async (client, args25, ctx) => {
43397
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42983
43398
  if (!result.ok) {
42984
43399
  return {
42985
43400
  content: [{ type: "text", text: result.error.message }],
@@ -42994,9 +43409,9 @@ invoice.line_items`,
42994
43409
 
42995
43410
  // src/funcs/vendorsListVendorManagedByCompanies.ts
42996
43411
  function vendorsListVendorManagedByCompanies(client, request, options) {
42997
- return new APIPromise($do24(client, request, options));
43412
+ return new APIPromise($do26(client, request, options));
42998
43413
  }
42999
- async function $do24(client, request, options) {
43414
+ async function $do26(client, request, options) {
43000
43415
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
43001
43416
  if (!parsed.ok) {
43002
43417
  return [haltIterator(parsed), { status: "invalid" }];
@@ -43108,12 +43523,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
43108
43523
  });
43109
43524
 
43110
43525
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
43111
- var args23, tool$vendorsListVendorManagedByCompanies;
43526
+ var args25, tool$vendorsListVendorManagedByCompanies;
43112
43527
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
43113
43528
  init_vendorsListVendorManagedByCompanies();
43114
43529
  init_operations();
43115
43530
  init_tools();
43116
- args23 = {
43531
+ args25 = {
43117
43532
  request: ListVendorManagedByCompaniesRequest$inboundSchema
43118
43533
  };
43119
43534
  tool$vendorsListVendorManagedByCompanies = {
@@ -43121,9 +43536,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
43121
43536
  description: `List of companies managing the vendor
43122
43537
 
43123
43538
  List of companies managing the vendor`,
43124
- args: args23,
43125
- tool: async (client, args24, ctx) => {
43126
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43539
+ args: args25,
43540
+ tool: async (client, args26, ctx) => {
43541
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43127
43542
  if (!result.ok) {
43128
43543
  return {
43129
43544
  content: [{ type: "text", text: result.error.message }],
@@ -43138,9 +43553,9 @@ List of companies managing the vendor`,
43138
43553
 
43139
43554
  // src/funcs/vendorsListVendorScrubDetails.ts
43140
43555
  function vendorsListVendorScrubDetails(client, request, options) {
43141
- return new APIPromise($do25(client, request, options));
43556
+ return new APIPromise($do27(client, request, options));
43142
43557
  }
43143
- async function $do25(client, request, options) {
43558
+ async function $do27(client, request, options) {
43144
43559
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
43145
43560
  if (!parsed.ok) {
43146
43561
  return [parsed, { status: "invalid" }];
@@ -43214,12 +43629,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
43214
43629
  });
43215
43630
 
43216
43631
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
43217
- var args24, tool$vendorsListVendorScrubDetails;
43632
+ var args26, tool$vendorsListVendorScrubDetails;
43218
43633
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
43219
43634
  init_vendorsListVendorScrubDetails();
43220
43635
  init_operations();
43221
43636
  init_tools();
43222
- args24 = {
43637
+ args26 = {
43223
43638
  request: ListVendorScrubDetailsRequest$inboundSchema
43224
43639
  };
43225
43640
  tool$vendorsListVendorScrubDetails = {
@@ -43227,9 +43642,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
43227
43642
  description: `List vendor scrub details
43228
43643
 
43229
43644
  List vendor scrub details`,
43230
- args: args24,
43231
- tool: async (client, args25, ctx) => {
43232
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43645
+ args: args26,
43646
+ tool: async (client, args27, ctx) => {
43647
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43233
43648
  if (!result.ok) {
43234
43649
  return {
43235
43650
  content: [{ type: "text", text: result.error.message }],
@@ -43244,9 +43659,9 @@ List vendor scrub details`,
43244
43659
 
43245
43660
  // src/funcs/vendorsListVendorScrubPackages.ts
43246
43661
  function vendorsListVendorScrubPackages(client, request, options) {
43247
- return new APIPromise($do26(client, request, options));
43662
+ return new APIPromise($do28(client, request, options));
43248
43663
  }
43249
- async function $do26(client, request, options) {
43664
+ async function $do28(client, request, options) {
43250
43665
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
43251
43666
  if (!parsed.ok) {
43252
43667
  return [haltIterator(parsed), { status: "invalid" }];
@@ -43358,12 +43773,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
43358
43773
  });
43359
43774
 
43360
43775
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
43361
- var args25, tool$vendorsListVendorScrubPackages;
43776
+ var args27, tool$vendorsListVendorScrubPackages;
43362
43777
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
43363
43778
  init_vendorsListVendorScrubPackages();
43364
43779
  init_operations();
43365
43780
  init_tools();
43366
- args25 = {
43781
+ args27 = {
43367
43782
  request: ListVendorScrubPackagesRequest$inboundSchema
43368
43783
  };
43369
43784
  tool$vendorsListVendorScrubPackages = {
@@ -43371,9 +43786,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
43371
43786
  description: `List vendor scrub packages
43372
43787
 
43373
43788
  List vendor scrub packages`,
43374
- args: args25,
43375
- tool: async (client, args26, ctx) => {
43376
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43789
+ args: args27,
43790
+ tool: async (client, args28, ctx) => {
43791
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43377
43792
  if (!result.ok) {
43378
43793
  return {
43379
43794
  content: [{ type: "text", text: result.error.message }],
@@ -43388,9 +43803,9 @@ List vendor scrub packages`,
43388
43803
 
43389
43804
  // src/funcs/vendorsListVendorScrubPurchases.ts
43390
43805
  function vendorsListVendorScrubPurchases(client, request, options) {
43391
- return new APIPromise($do27(client, request, options));
43806
+ return new APIPromise($do29(client, request, options));
43392
43807
  }
43393
- async function $do27(client, request, options) {
43808
+ async function $do29(client, request, options) {
43394
43809
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
43395
43810
  if (!parsed.ok) {
43396
43811
  return [haltIterator(parsed), { status: "invalid" }];
@@ -43502,12 +43917,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
43502
43917
  });
43503
43918
 
43504
43919
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
43505
- var args26, tool$vendorsListVendorScrubPurchases;
43920
+ var args28, tool$vendorsListVendorScrubPurchases;
43506
43921
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
43507
43922
  init_vendorsListVendorScrubPurchases();
43508
43923
  init_operations();
43509
43924
  init_tools();
43510
- args26 = {
43925
+ args28 = {
43511
43926
  request: ListVendorScrubPurchasesRequest$inboundSchema
43512
43927
  };
43513
43928
  tool$vendorsListVendorScrubPurchases = {
@@ -43515,9 +43930,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
43515
43930
  description: `List vendor scrub purchases
43516
43931
 
43517
43932
  List vendor scrub purchases`,
43518
- args: args26,
43519
- tool: async (client, args27, ctx) => {
43520
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43933
+ args: args28,
43934
+ tool: async (client, args29, ctx) => {
43935
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43521
43936
  if (!result.ok) {
43522
43937
  return {
43523
43938
  content: [{ type: "text", text: result.error.message }],
@@ -43532,9 +43947,9 @@ List vendor scrub purchases`,
43532
43947
 
43533
43948
  // src/funcs/vendorsPurchaseScrubCredits.ts
43534
43949
  function vendorsPurchaseScrubCredits(client, request, options) {
43535
- return new APIPromise($do28(client, request, options));
43950
+ return new APIPromise($do30(client, request, options));
43536
43951
  }
43537
- async function $do28(client, request, options) {
43952
+ async function $do30(client, request, options) {
43538
43953
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
43539
43954
  if (!parsed.ok) {
43540
43955
  return [parsed, { status: "invalid" }];
@@ -43608,12 +44023,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
43608
44023
  });
43609
44024
 
43610
44025
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
43611
- var args27, tool$vendorsPurchaseScrubCredits;
44026
+ var args29, tool$vendorsPurchaseScrubCredits;
43612
44027
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
43613
44028
  init_vendorsPurchaseScrubCredits();
43614
44029
  init_operations();
43615
44030
  init_tools();
43616
- args27 = {
44031
+ args29 = {
43617
44032
  request: PurchaseScrubCreditsRequest$inboundSchema
43618
44033
  };
43619
44034
  tool$vendorsPurchaseScrubCredits = {
@@ -43621,9 +44036,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
43621
44036
  description: `Purchase scrub credits
43622
44037
 
43623
44038
  Purchase scrub credits`,
43624
- args: args27,
43625
- tool: async (client, args28, ctx) => {
43626
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44039
+ args: args29,
44040
+ tool: async (client, args30, ctx) => {
44041
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43627
44042
  if (!result.ok) {
43628
44043
  return {
43629
44044
  content: [{ type: "text", text: result.error.message }],
@@ -43638,9 +44053,9 @@ Purchase scrub credits`,
43638
44053
 
43639
44054
  // src/funcs/vendorsUpdateVendorDetails.ts
43640
44055
  function vendorsUpdateVendorDetails(client, request, options) {
43641
- return new APIPromise($do29(client, request, options));
44056
+ return new APIPromise($do31(client, request, options));
43642
44057
  }
43643
- async function $do29(client, request, options) {
44058
+ async function $do31(client, request, options) {
43644
44059
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
43645
44060
  if (!parsed.ok) {
43646
44061
  return [parsed, { status: "invalid" }];
@@ -43715,12 +44130,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
43715
44130
  });
43716
44131
 
43717
44132
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
43718
- var args28, tool$vendorsUpdateVendorDetails;
44133
+ var args30, tool$vendorsUpdateVendorDetails;
43719
44134
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
43720
44135
  init_vendorsUpdateVendorDetails();
43721
44136
  init_operations();
43722
44137
  init_tools();
43723
- args28 = {
44138
+ args30 = {
43724
44139
  request: UpdateVendorDetailsRequest$inboundSchema
43725
44140
  };
43726
44141
  tool$vendorsUpdateVendorDetails = {
@@ -43728,9 +44143,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
43728
44143
  description: `Update vendor details
43729
44144
 
43730
44145
  It will update the vendor details`,
43731
- args: args28,
43732
- tool: async (client, args29, ctx) => {
43733
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44146
+ args: args30,
44147
+ tool: async (client, args31, ctx) => {
44148
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43734
44149
  if (!result.ok) {
43735
44150
  return {
43736
44151
  content: [{ type: "text", text: result.error.message }],
@@ -43745,9 +44160,9 @@ It will update the vendor details`,
43745
44160
 
43746
44161
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
43747
44162
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
43748
- return new APIPromise($do30(client, request, options));
44163
+ return new APIPromise($do32(client, request, options));
43749
44164
  }
43750
- async function $do30(client, request, options) {
44165
+ async function $do32(client, request, options) {
43751
44166
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
43752
44167
  if (!parsed.ok) {
43753
44168
  return [parsed, { status: "invalid" }];
@@ -43821,12 +44236,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
43821
44236
  });
43822
44237
 
43823
44238
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
43824
- var args29, tool$vendorsUpdateVendorManagedByCompany;
44239
+ var args31, tool$vendorsUpdateVendorManagedByCompany;
43825
44240
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
43826
44241
  init_vendorsUpdateVendorManagedByCompany();
43827
44242
  init_operations();
43828
44243
  init_tools();
43829
- args29 = {
44244
+ args31 = {
43830
44245
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
43831
44246
  };
43832
44247
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -43834,9 +44249,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
43834
44249
  description: `Update vendor managed by company access rights
43835
44250
 
43836
44251
  It will update the vendor managed by company access rights`,
43837
- args: args29,
43838
- tool: async (client, args30, ctx) => {
43839
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44252
+ args: args31,
44253
+ tool: async (client, args32, ctx) => {
44254
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43840
44255
  if (!result.ok) {
43841
44256
  return {
43842
44257
  content: [{ type: "text", text: result.error.message }],
@@ -43851,9 +44266,9 @@ It will update the vendor managed by company access rights`,
43851
44266
 
43852
44267
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
43853
44268
  function vendorsUpdateVendorScrubDetails(client, request, options) {
43854
- return new APIPromise($do31(client, request, options));
44269
+ return new APIPromise($do33(client, request, options));
43855
44270
  }
43856
- async function $do31(client, request, options) {
44271
+ async function $do33(client, request, options) {
43857
44272
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
43858
44273
  if (!parsed.ok) {
43859
44274
  return [parsed, { status: "invalid" }];
@@ -43928,12 +44343,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
43928
44343
  });
43929
44344
 
43930
44345
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
43931
- var args30, tool$vendorsUpdateVendorScrubDetails;
44346
+ var args32, tool$vendorsUpdateVendorScrubDetails;
43932
44347
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
43933
44348
  init_vendorsUpdateVendorScrubDetails();
43934
44349
  init_operations();
43935
44350
  init_tools();
43936
- args30 = {
44351
+ args32 = {
43937
44352
  request: UpdateVendorScrubDetailsRequest$inboundSchema
43938
44353
  };
43939
44354
  tool$vendorsUpdateVendorScrubDetails = {
@@ -43941,9 +44356,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
43941
44356
  description: `Update vendor scrub details
43942
44357
 
43943
44358
  Update vendor scrub details`,
43944
- args: args30,
43945
- tool: async (client, args31, ctx) => {
43946
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44359
+ args: args32,
44360
+ tool: async (client, args33, ctx) => {
44361
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43947
44362
  if (!result.ok) {
43948
44363
  return {
43949
44364
  content: [{ type: "text", text: result.error.message }],
@@ -43958,9 +44373,9 @@ Update vendor scrub details`,
43958
44373
 
43959
44374
  // src/funcs/webhooksGetWebhookEndpoint.ts
43960
44375
  function webhooksGetWebhookEndpoint(client, request, options) {
43961
- return new APIPromise($do32(client, request, options));
44376
+ return new APIPromise($do34(client, request, options));
43962
44377
  }
43963
- async function $do32(client, request, options) {
44378
+ async function $do34(client, request, options) {
43964
44379
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
43965
44380
  if (!parsed.ok) {
43966
44381
  return [parsed, { status: "invalid" }];
@@ -44034,12 +44449,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
44034
44449
  });
44035
44450
 
44036
44451
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
44037
- var args31, tool$webhooksGetWebhookEndpoint;
44452
+ var args33, tool$webhooksGetWebhookEndpoint;
44038
44453
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
44039
44454
  init_webhooksGetWebhookEndpoint();
44040
44455
  init_operations();
44041
44456
  init_tools();
44042
- args31 = {
44457
+ args33 = {
44043
44458
  request: GetWebhookEndpointRequest$inboundSchema
44044
44459
  };
44045
44460
  tool$webhooksGetWebhookEndpoint = {
@@ -44047,9 +44462,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
44047
44462
  description: `Retrieves the webhook endpoint with the given ID.
44048
44463
 
44049
44464
  Returns the definition of a webhook endpoint by ID.`,
44050
- args: args31,
44051
- tool: async (client, args32, ctx) => {
44052
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44465
+ args: args33,
44466
+ tool: async (client, args34, ctx) => {
44467
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44053
44468
  if (!result.ok) {
44054
44469
  return {
44055
44470
  content: [{ type: "text", text: result.error.message }],
@@ -44064,9 +44479,9 @@ Returns the definition of a webhook endpoint by ID.`,
44064
44479
 
44065
44480
  // src/funcs/webhooksListAllWebhookEndpoints.ts
44066
44481
  function webhooksListAllWebhookEndpoints(client, request, options) {
44067
- return new APIPromise($do33(client, request, options));
44482
+ return new APIPromise($do35(client, request, options));
44068
44483
  }
44069
- async function $do33(client, request, options) {
44484
+ async function $do35(client, request, options) {
44070
44485
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
44071
44486
  if (!parsed.ok) {
44072
44487
  return [parsed, { status: "invalid" }];
@@ -44140,12 +44555,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
44140
44555
  });
44141
44556
 
44142
44557
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
44143
- var args32, tool$webhooksListAllWebhookEndpoints;
44558
+ var args34, tool$webhooksListAllWebhookEndpoints;
44144
44559
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
44145
44560
  init_webhooksListAllWebhookEndpoints();
44146
44561
  init_operations();
44147
44562
  init_tools();
44148
- args32 = {
44563
+ args34 = {
44149
44564
  request: ListAllWebhookEndpointsRequest$inboundSchema
44150
44565
  };
44151
44566
  tool$webhooksListAllWebhookEndpoints = {
@@ -44153,9 +44568,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
44153
44568
  description: `List all webhook endpoints
44154
44569
 
44155
44570
  Returns a list of your webhook endpoints.`,
44156
- args: args32,
44157
- tool: async (client, args33, ctx) => {
44158
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44571
+ args: args34,
44572
+ tool: async (client, args35, ctx) => {
44573
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44159
44574
  if (!result.ok) {
44160
44575
  return {
44161
44576
  content: [{ type: "text", text: result.error.message }],
@@ -44172,7 +44587,7 @@ Returns a list of your webhook endpoints.`,
44172
44587
  function createMCPServer(deps) {
44173
44588
  const server = new McpServer({
44174
44589
  name: "GreenSecurity",
44175
- version: "0.30.25"
44590
+ version: "0.30.29"
44176
44591
  });
44177
44592
  const client = new GreenSecurityCore({
44178
44593
  security: deps.security,
@@ -44205,6 +44620,7 @@ function createMCPServer(deps) {
44205
44620
  tool(tool$vendorsDeleteVendorManagedByCompany);
44206
44621
  tool(tool$vendorsUpdateVendorManagedByCompany);
44207
44622
  tool(tool$vendorsPurchaseScrubCredits);
44623
+ tool(tool$vendorsCreateVendorCompany);
44208
44624
  tool(tool$usersGetCurrentUser);
44209
44625
  tool(tool$usersGetUserById);
44210
44626
  tool(tool$usersLogsUserIntoTheSystem);
@@ -44219,6 +44635,7 @@ function createMCPServer(deps) {
44219
44635
  tool(tool$webhooksListAllWebhookEndpoints);
44220
44636
  tool(tool$webhooksGetWebhookEndpoint);
44221
44637
  tool(tool$vendorScansVendorScanOut);
44638
+ tool(tool$companiesListOrSearchCompanies);
44222
44639
  return server;
44223
44640
  }
44224
44641
  var init_server2 = __esm(() => {
@@ -44226,6 +44643,7 @@ var init_server2 = __esm(() => {
44226
44643
  init_core();
44227
44644
  init_resources();
44228
44645
  init_tools();
44646
+ init_companiesListOrSearchCompanies2();
44229
44647
  init_organizationsGetFacility2();
44230
44648
  init_organizationsListOrSearchFacilities2();
44231
44649
  init_supportArticlesGetSupportArticle2();
@@ -44239,6 +44657,7 @@ var init_server2 = __esm(() => {
44239
44657
  init_usersPasswordResetRequest2();
44240
44658
  init_vendorsAddVendorManagedByCompany2();
44241
44659
  init_vendorScansVendorScanOut2();
44660
+ init_vendorsCreateVendorCompany2();
44242
44661
  init_vendorsCreateVendorRegistration2();
44243
44662
  init_vendorsDeleteVendorManagedByCompany2();
44244
44663
  init_vendorsExpediteTimeRemaining2();
@@ -45460,7 +45879,7 @@ var routes = rn({
45460
45879
  var app = Ve(routes, {
45461
45880
  name: "mcp",
45462
45881
  versionInfo: {
45463
- currentVersion: "0.30.25"
45882
+ currentVersion: "0.30.29"
45464
45883
  }
45465
45884
  });
45466
45885
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -45468,5 +45887,5 @@ export {
45468
45887
  app
45469
45888
  };
45470
45889
 
45471
- //# debugId=13E36ACCA9661F5164756E2164756E21
45890
+ //# debugId=1F9D77C2209BA46564756E2164756E21
45472
45891
  //# sourceMappingURL=mcp-server.js.map