@greensecurity/javascript-sdk 0.21.8 → 0.22.1

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 (237) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +1231 -190
  3. package/bin/mcp-server.js.map +49 -32
  4. package/funcs/organizationsGetFacility.js +1 -1
  5. package/funcs/organizationsGetFacility.js.map +1 -1
  6. package/funcs/organizationsListOrSearchFacilities.js +1 -1
  7. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  8. package/funcs/supportArticlesGetSupportArticle.js +1 -1
  9. package/funcs/supportArticlesGetSupportArticle.js.map +1 -1
  10. package/funcs/supportArticlesListOrSearchSupportArticles.js +1 -1
  11. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  12. package/funcs/usersGetCurrentUser.js +1 -1
  13. package/funcs/usersGetCurrentUser.js.map +1 -1
  14. package/funcs/usersGetUserById.js +1 -1
  15. package/funcs/usersGetUserById.js.map +1 -1
  16. package/funcs/usersLogsUserIntoTheSystem.js +1 -1
  17. package/funcs/usersLogsUserIntoTheSystem.js.map +1 -1
  18. package/funcs/usersMagiclink.js +1 -1
  19. package/funcs/usersMagiclink.js.map +1 -1
  20. package/funcs/usersPassword.js +1 -1
  21. package/funcs/usersPassword.js.map +1 -1
  22. package/funcs/usersPasswordResetRequest.js +1 -1
  23. package/funcs/usersPasswordResetRequest.js.map +1 -1
  24. package/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts +20 -0
  25. package/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts.map +1 -0
  26. package/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.js +160 -0
  27. package/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.js.map +1 -0
  28. package/funcs/vendorScansVendorScanOut.js +1 -1
  29. package/funcs/vendorScansVendorScanOut.js.map +1 -1
  30. package/funcs/vendorsAddVendorManagedByCompany.d.ts +17 -0
  31. package/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -0
  32. package/funcs/vendorsAddVendorManagedByCompany.js +121 -0
  33. package/funcs/vendorsAddVendorManagedByCompany.js.map +1 -0
  34. package/funcs/vendorsCreateVendorRegistration.js +1 -1
  35. package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
  36. package/funcs/vendorsDeleteVendorManagedByCompany.d.ts +17 -0
  37. package/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -0
  38. package/funcs/vendorsDeleteVendorManagedByCompany.js +121 -0
  39. package/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -0
  40. package/funcs/vendorsExpediteTimeRemaining.js +1 -1
  41. package/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
  42. package/funcs/vendorsGetVendorInvoiceDetails.js +1 -1
  43. package/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  44. package/funcs/vendorsGetVendorsDetails.js +1 -1
  45. package/funcs/vendorsGetVendorsDetails.js.map +1 -1
  46. package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +20 -0
  47. package/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  48. package/funcs/vendorsListVendorAdditionalFacilityFields.js +158 -0
  49. package/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  50. package/funcs/vendorsListVendorCredentials.js +1 -1
  51. package/funcs/vendorsListVendorCredentials.js.map +1 -1
  52. package/funcs/vendorsListVendorCredits.js +1 -1
  53. package/funcs/vendorsListVendorCredits.js.map +1 -1
  54. package/funcs/vendorsListVendorFacilityStatuses.js +1 -1
  55. package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  56. package/funcs/vendorsListVendorInvoices.js +1 -1
  57. package/funcs/vendorsListVendorInvoices.js.map +1 -1
  58. package/funcs/vendorsListVendorJobTitles.js +1 -1
  59. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  60. package/funcs/vendorsListVendorScrubDetails.js +1 -1
  61. package/funcs/vendorsListVendorScrubDetails.js.map +1 -1
  62. package/funcs/vendorsListVendorScrubPurchases.js +1 -1
  63. package/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
  64. package/funcs/vendorsUpdateVendorManagedByCompany.d.ts +17 -0
  65. package/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  66. package/funcs/vendorsUpdateVendorManagedByCompany.js +121 -0
  67. package/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  68. package/funcs/webhooksGetWebhookEndpoint.js +1 -1
  69. package/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  70. package/funcs/webhooksListAllWebhookEndpoints.js +1 -1
  71. package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
  72. package/hooks/types.d.ts +1 -1
  73. package/hooks/types.d.ts.map +1 -1
  74. package/jsr.json +1 -1
  75. package/lib/config.d.ts +3 -3
  76. package/lib/config.js +3 -3
  77. package/mcp-server/mcp-server.js +1 -1
  78. package/mcp-server/server.d.ts.map +1 -1
  79. package/mcp-server/server.js +11 -1
  80. package/mcp-server/server.js.map +1 -1
  81. package/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts +8 -0
  82. package/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts.map +1 -0
  83. package/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.js +64 -0
  84. package/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.js.map +1 -0
  85. package/mcp-server/tools/vendorsAddVendorManagedByCompany.d.ts +8 -0
  86. package/mcp-server/tools/vendorsAddVendorManagedByCompany.d.ts.map +1 -0
  87. package/mcp-server/tools/vendorsAddVendorManagedByCompany.js +64 -0
  88. package/mcp-server/tools/vendorsAddVendorManagedByCompany.js.map +1 -0
  89. package/mcp-server/tools/vendorsDeleteVendorManagedByCompany.d.ts +8 -0
  90. package/mcp-server/tools/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -0
  91. package/mcp-server/tools/vendorsDeleteVendorManagedByCompany.js +64 -0
  92. package/mcp-server/tools/vendorsDeleteVendorManagedByCompany.js.map +1 -0
  93. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts +8 -0
  94. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  95. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js +64 -0
  96. package/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  97. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.d.ts +8 -0
  98. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  99. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.js +64 -0
  100. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  101. package/models/components/credit.d.ts +2 -2
  102. package/models/components/credit.d.ts.map +1 -1
  103. package/models/components/credit.js +4 -4
  104. package/models/components/credit.js.map +1 -1
  105. package/models/components/index.d.ts +2 -0
  106. package/models/components/index.d.ts.map +1 -1
  107. package/models/components/index.js +2 -0
  108. package/models/components/index.js.map +1 -1
  109. package/models/components/vendoradditionalfacilityfields.d.ts +37 -0
  110. package/models/components/vendoradditionalfacilityfields.d.ts.map +1 -0
  111. package/models/components/vendoradditionalfacilityfields.js +77 -0
  112. package/models/components/vendoradditionalfacilityfields.js.map +1 -0
  113. package/models/components/vendormanagedbycompany.d.ts +72 -0
  114. package/models/components/vendormanagedbycompany.d.ts.map +1 -0
  115. package/models/components/vendormanagedbycompany.js +136 -0
  116. package/models/components/vendormanagedbycompany.js.map +1 -0
  117. package/models/operations/addvendormanagedbycompany.d.ts +90 -0
  118. package/models/operations/addvendormanagedbycompany.d.ts.map +1 -0
  119. package/models/operations/addvendormanagedbycompany.js +144 -0
  120. package/models/operations/addvendormanagedbycompany.js.map +1 -0
  121. package/models/operations/deletevendormanagedbycompany.d.ts +90 -0
  122. package/models/operations/deletevendormanagedbycompany.d.ts.map +1 -0
  123. package/models/operations/deletevendormanagedbycompany.js +144 -0
  124. package/models/operations/deletevendormanagedbycompany.js.map +1 -0
  125. package/models/operations/index.d.ts +5 -0
  126. package/models/operations/index.d.ts.map +1 -1
  127. package/models/operations/index.js +5 -0
  128. package/models/operations/index.js.map +1 -1
  129. package/models/operations/listvendoradditionalfacilityfields.d.ts +111 -0
  130. package/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -0
  131. package/models/operations/listvendoradditionalfacilityfields.js +153 -0
  132. package/models/operations/listvendoradditionalfacilityfields.js.map +1 -0
  133. package/models/operations/listvendormanagedbycompanies.d.ts +111 -0
  134. package/models/operations/listvendormanagedbycompanies.d.ts.map +1 -0
  135. package/models/operations/listvendormanagedbycompanies.js +153 -0
  136. package/models/operations/listvendormanagedbycompanies.js.map +1 -0
  137. package/models/operations/updatevendormanagedbycompany.d.ts +125 -0
  138. package/models/operations/updatevendormanagedbycompany.d.ts.map +1 -0
  139. package/models/operations/updatevendormanagedbycompany.js +172 -0
  140. package/models/operations/updatevendormanagedbycompany.js.map +1 -0
  141. package/package.json +1 -1
  142. package/react-query/index.d.ts +5 -0
  143. package/react-query/index.d.ts.map +1 -1
  144. package/react-query/index.js +5 -0
  145. package/react-query/index.js.map +1 -1
  146. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts +77 -0
  147. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts.map +1 -0
  148. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.js +160 -0
  149. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.js.map +1 -0
  150. package/react-query/vendorsAddVendorManagedByCompany.d.ts +23 -0
  151. package/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -0
  152. package/react-query/vendorsAddVendorManagedByCompany.js +51 -0
  153. package/react-query/vendorsAddVendorManagedByCompany.js.map +1 -0
  154. package/react-query/vendorsDeleteVendorManagedByCompany.d.ts +23 -0
  155. package/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -0
  156. package/react-query/vendorsDeleteVendorManagedByCompany.js +51 -0
  157. package/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -0
  158. package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +77 -0
  159. package/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -0
  160. package/react-query/vendorsListVendorAdditionalFacilityFields.js +160 -0
  161. package/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -0
  162. package/react-query/vendorsUpdateVendorManagedByCompany.d.ts +23 -0
  163. package/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  164. package/react-query/vendorsUpdateVendorManagedByCompany.js +51 -0
  165. package/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  166. package/sdk/sdk.d.ts +3 -0
  167. package/sdk/sdk.d.ts.map +1 -1
  168. package/sdk/sdk.js +4 -0
  169. package/sdk/sdk.js.map +1 -1
  170. package/sdk/vendormanagedbycompanies.d.ts +15 -0
  171. package/sdk/vendormanagedbycompanies.d.ts.map +1 -0
  172. package/sdk/vendormanagedbycompanies.js +22 -0
  173. package/sdk/vendormanagedbycompanies.js.map +1 -0
  174. package/sdk/vendors.d.ts +30 -0
  175. package/sdk/vendors.d.ts.map +1 -1
  176. package/sdk/vendors.js +40 -0
  177. package/sdk/vendors.js.map +1 -1
  178. package/src/__tests__/vendormanagedbycompanies.test.ts +44 -0
  179. package/src/__tests__/vendors.test.ts +104 -0
  180. package/src/__tests__/webhooks.test.ts +1 -1
  181. package/src/funcs/organizationsGetFacility.ts +1 -1
  182. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -1
  183. package/src/funcs/supportArticlesGetSupportArticle.ts +1 -1
  184. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +1 -1
  185. package/src/funcs/usersGetCurrentUser.ts +1 -1
  186. package/src/funcs/usersGetUserById.ts +1 -1
  187. package/src/funcs/usersLogsUserIntoTheSystem.ts +1 -1
  188. package/src/funcs/usersMagiclink.ts +1 -1
  189. package/src/funcs/usersPassword.ts +1 -1
  190. package/src/funcs/usersPasswordResetRequest.ts +1 -1
  191. package/src/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.ts +256 -0
  192. package/src/funcs/vendorScansVendorScanOut.ts +1 -1
  193. package/src/funcs/vendorsAddVendorManagedByCompany.ts +176 -0
  194. package/src/funcs/vendorsCreateVendorRegistration.ts +1 -1
  195. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +181 -0
  196. package/src/funcs/vendorsExpediteTimeRemaining.ts +1 -1
  197. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +1 -1
  198. package/src/funcs/vendorsGetVendorsDetails.ts +1 -1
  199. package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +258 -0
  200. package/src/funcs/vendorsListVendorCredentials.ts +1 -1
  201. package/src/funcs/vendorsListVendorCredits.ts +1 -1
  202. package/src/funcs/vendorsListVendorFacilityStatuses.ts +1 -1
  203. package/src/funcs/vendorsListVendorInvoices.ts +1 -1
  204. package/src/funcs/vendorsListVendorJobTitles.ts +1 -1
  205. package/src/funcs/vendorsListVendorScrubDetails.ts +1 -1
  206. package/src/funcs/vendorsListVendorScrubPurchases.ts +1 -1
  207. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +181 -0
  208. package/src/funcs/webhooksGetWebhookEndpoint.ts +1 -1
  209. package/src/funcs/webhooksListAllWebhookEndpoints.ts +1 -1
  210. package/src/hooks/types.ts +1 -1
  211. package/src/lib/config.ts +3 -3
  212. package/src/mcp-server/mcp-server.ts +1 -1
  213. package/src/mcp-server/server.ts +11 -1
  214. package/src/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.ts +39 -0
  215. package/src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts +39 -0
  216. package/src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts +39 -0
  217. package/src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts +39 -0
  218. package/src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts +39 -0
  219. package/src/models/components/credit.ts +6 -6
  220. package/src/models/components/index.ts +2 -0
  221. package/src/models/components/vendoradditionalfacilityfields.ts +84 -0
  222. package/src/models/components/vendormanagedbycompany.ts +184 -0
  223. package/src/models/operations/addvendormanagedbycompany.ts +228 -0
  224. package/src/models/operations/deletevendormanagedbycompany.ts +245 -0
  225. package/src/models/operations/index.ts +5 -0
  226. package/src/models/operations/listvendoradditionalfacilityfields.ts +283 -0
  227. package/src/models/operations/listvendormanagedbycompanies.ts +264 -0
  228. package/src/models/operations/updatevendormanagedbycompany.ts +308 -0
  229. package/src/react-query/index.ts +5 -0
  230. package/src/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.ts +377 -0
  231. package/src/react-query/vendorsAddVendorManagedByCompany.ts +93 -0
  232. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +93 -0
  233. package/src/react-query/vendorsListVendorAdditionalFacilityFields.ts +361 -0
  234. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +93 -0
  235. package/src/sdk/sdk.ts +8 -0
  236. package/src/sdk/vendormanagedbycompanies.ts +34 -0
  237. package/src/sdk/vendors.ts +77 -0
package/bin/mcp-server.js CHANGED
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
34172
34172
  SDK_METADATA = {
34173
34173
  language: "typescript",
34174
34174
  openapiDocVersion: "0.0.3",
34175
- sdkVersion: "0.21.8",
34176
- genVersion: "2.559.0",
34177
- userAgent: "speakeasy-sdk/typescript 0.21.8 2.559.0 0.0.3 @greensecurity/javascript-sdk"
34175
+ sdkVersion: "0.22.1",
34176
+ genVersion: "2.562.2",
34177
+ userAgent: "speakeasy-sdk/typescript 0.22.1 2.562.2 0.0.3 @greensecurity/javascript-sdk"
34178
34178
  };
34179
34179
  });
34180
34180
 
@@ -35901,10 +35901,10 @@ var init_credit = __esm(() => {
35901
35901
  balance: numberType().int().optional(),
35902
35902
  from: nullableType(stringType()).optional(),
35903
35903
  to: nullableType(stringType()).optional(),
35904
- invoice_id: nullableType(numberType().int()).optional()
35904
+ invoice_number: nullableType(stringType()).optional()
35905
35905
  }).transform((v2) => {
35906
35906
  return remap(v2, {
35907
- invoice_id: "invoiceId"
35907
+ invoice_number: "invoiceNumber"
35908
35908
  });
35909
35909
  });
35910
35910
  Credit$outboundSchema = objectType({
@@ -35915,10 +35915,10 @@ var init_credit = __esm(() => {
35915
35915
  balance: numberType().int().optional(),
35916
35916
  from: nullableType(stringType()).optional(),
35917
35917
  to: nullableType(stringType()).optional(),
35918
- invoiceId: nullableType(numberType().int()).optional()
35918
+ invoiceNumber: nullableType(stringType()).optional()
35919
35919
  }).transform((v2) => {
35920
35920
  return remap(v2, {
35921
- invoiceId: "invoice_id"
35921
+ invoiceNumber: "invoice_number"
35922
35922
  });
35923
35923
  });
35924
35924
  ((Credit$) => {
@@ -37571,6 +37571,30 @@ var init_user = __esm(() => {
37571
37571
  })(User$ ||= {});
37572
37572
  });
37573
37573
 
37574
+ // src/models/components/vendoradditionalfacilityfields.ts
37575
+ var VendorAdditionalFacilityFields$inboundSchema, VendorAdditionalFacilityFields$outboundSchema, VendorAdditionalFacilityFields$;
37576
+ var init_vendoradditionalfacilityfields = __esm(() => {
37577
+ init_lib();
37578
+ VendorAdditionalFacilityFields$inboundSchema = objectType({
37579
+ id: numberType().int().optional(),
37580
+ system: nullableType(stringType()).optional(),
37581
+ facility: nullableType(stringType()).optional(),
37582
+ field: nullableType(stringType()).optional(),
37583
+ value: nullableType(stringType()).optional()
37584
+ });
37585
+ VendorAdditionalFacilityFields$outboundSchema = objectType({
37586
+ id: numberType().int().optional(),
37587
+ system: nullableType(stringType()).optional(),
37588
+ facility: nullableType(stringType()).optional(),
37589
+ field: nullableType(stringType()).optional(),
37590
+ value: nullableType(stringType()).optional()
37591
+ });
37592
+ ((VendorAdditionalFacilityFields$) => {
37593
+ VendorAdditionalFacilityFields$.inboundSchema = VendorAdditionalFacilityFields$inboundSchema;
37594
+ VendorAdditionalFacilityFields$.outboundSchema = VendorAdditionalFacilityFields$outboundSchema;
37595
+ })(VendorAdditionalFacilityFields$ ||= {});
37596
+ });
37597
+
37574
37598
  // src/models/components/vendorcredentialslim.ts
37575
37599
  var VendorCredentialSlim$inboundSchema, VendorCredentialSlim$outboundSchema, VendorCredentialSlim$;
37576
37600
  var init_vendorcredentialslim = __esm(() => {
@@ -37675,6 +37699,71 @@ var init_vendorjobtitle = __esm(() => {
37675
37699
  })(VendorJobTitle$ ||= {});
37676
37700
  });
37677
37701
 
37702
+ // src/models/components/vendormanagedbycompany.ts
37703
+ var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
37704
+ var init_vendormanagedbycompany = __esm(() => {
37705
+ init_lib();
37706
+ init_primitives();
37707
+ VendorManagedByCompanyCompany$inboundSchema = objectType({
37708
+ id: nullableType(numberType().int()).optional(),
37709
+ name: nullableType(stringType()).optional()
37710
+ });
37711
+ VendorManagedByCompanyCompany$outboundSchema = objectType({
37712
+ id: nullableType(numberType().int()).optional(),
37713
+ name: nullableType(stringType()).optional()
37714
+ });
37715
+ ((VendorManagedByCompanyCompany$) => {
37716
+ VendorManagedByCompanyCompany$.inboundSchema = VendorManagedByCompanyCompany$inboundSchema;
37717
+ VendorManagedByCompanyCompany$.outboundSchema = VendorManagedByCompanyCompany$outboundSchema;
37718
+ })(VendorManagedByCompanyCompany$ ||= {});
37719
+ VendorManagedByCompany$inboundSchema = objectType({
37720
+ id: numberType().int().optional(),
37721
+ company: lazyType(() => VendorManagedByCompanyCompany$inboundSchema).optional(),
37722
+ edit_profile: nullableType(booleanType()).optional(),
37723
+ edit_facilities: nullableType(booleanType()).optional(),
37724
+ upload_credentials: nullableType(booleanType()).optional(),
37725
+ edit_credentialing_subscription: nullableType(booleanType()).optional(),
37726
+ edit_scrubs_subscription: nullableType(booleanType()).optional(),
37727
+ purchase_scrub_credits: nullableType(booleanType()).optional(),
37728
+ pay_invoices: nullableType(booleanType()).optional()
37729
+ }).transform((v2) => {
37730
+ return remap(v2, {
37731
+ edit_profile: "editProfile",
37732
+ edit_facilities: "editFacilities",
37733
+ upload_credentials: "uploadCredentials",
37734
+ edit_credentialing_subscription: "editCredentialingSubscription",
37735
+ edit_scrubs_subscription: "editScrubsSubscription",
37736
+ purchase_scrub_credits: "purchaseScrubCredits",
37737
+ pay_invoices: "payInvoices"
37738
+ });
37739
+ });
37740
+ VendorManagedByCompany$outboundSchema = objectType({
37741
+ id: numberType().int().optional(),
37742
+ company: lazyType(() => VendorManagedByCompanyCompany$outboundSchema).optional(),
37743
+ editProfile: nullableType(booleanType()).optional(),
37744
+ editFacilities: nullableType(booleanType()).optional(),
37745
+ uploadCredentials: nullableType(booleanType()).optional(),
37746
+ editCredentialingSubscription: nullableType(booleanType()).optional(),
37747
+ editScrubsSubscription: nullableType(booleanType()).optional(),
37748
+ purchaseScrubCredits: nullableType(booleanType()).optional(),
37749
+ payInvoices: nullableType(booleanType()).optional()
37750
+ }).transform((v2) => {
37751
+ return remap(v2, {
37752
+ editProfile: "edit_profile",
37753
+ editFacilities: "edit_facilities",
37754
+ uploadCredentials: "upload_credentials",
37755
+ editCredentialingSubscription: "edit_credentialing_subscription",
37756
+ editScrubsSubscription: "edit_scrubs_subscription",
37757
+ purchaseScrubCredits: "purchase_scrub_credits",
37758
+ payInvoices: "pay_invoices"
37759
+ });
37760
+ });
37761
+ ((VendorManagedByCompany$) => {
37762
+ VendorManagedByCompany$.inboundSchema = VendorManagedByCompany$inboundSchema;
37763
+ VendorManagedByCompany$.outboundSchema = VendorManagedByCompany$outboundSchema;
37764
+ })(VendorManagedByCompany$ ||= {});
37765
+ });
37766
+
37678
37767
  // src/models/components/vendorrequiredcredential.ts
37679
37768
  var VendorRequiredCredential$inboundSchema, VendorRequiredCredential$outboundSchema, VendorRequiredCredential$;
37680
37769
  var init_vendorrequiredcredential = __esm(() => {
@@ -37901,9 +37990,11 @@ var init_components = __esm(() => {
37901
37990
  init_user();
37902
37991
  init_userlocation();
37903
37992
  init_vendor();
37993
+ init_vendoradditionalfacilityfields();
37904
37994
  init_vendorcredentialslim();
37905
37995
  init_vendorfacilitystatusview();
37906
37996
  init_vendorjobtitle();
37997
+ init_vendormanagedbycompany();
37907
37998
  init_vendorrequiredcredential();
37908
37999
  init_vendorscrubdetails();
37909
38000
  init_vendorscrubpurchase();
@@ -37957,6 +38048,63 @@ var init_errors = __esm(() => {
37957
38048
  init_sdkvalidationerror();
37958
38049
  });
37959
38050
 
38051
+ // src/models/operations/addvendormanagedbycompany.ts
38052
+ var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyResponseBody$inboundSchema, AddVendorManagedByCompanyResponseBody$outboundSchema, AddVendorManagedByCompanyResponseBody$;
38053
+ var init_addvendormanagedbycompany = __esm(() => {
38054
+ init_lib();
38055
+ init_primitives();
38056
+ AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
38057
+ company_id: numberType().int()
38058
+ }).transform((v2) => {
38059
+ return remap(v2, {
38060
+ company_id: "companyId"
38061
+ });
38062
+ });
38063
+ AddVendorManagedByCompanyRequestBody$outboundSchema = objectType({
38064
+ companyId: numberType().int()
38065
+ }).transform((v2) => {
38066
+ return remap(v2, {
38067
+ companyId: "company_id"
38068
+ });
38069
+ });
38070
+ ((AddVendorManagedByCompanyRequestBody$) => {
38071
+ AddVendorManagedByCompanyRequestBody$.inboundSchema = AddVendorManagedByCompanyRequestBody$inboundSchema;
38072
+ AddVendorManagedByCompanyRequestBody$.outboundSchema = AddVendorManagedByCompanyRequestBody$outboundSchema;
38073
+ })(AddVendorManagedByCompanyRequestBody$ ||= {});
38074
+ AddVendorManagedByCompanyRequest$inboundSchema = objectType({
38075
+ vendor_id_or_me: stringType(),
38076
+ RequestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$inboundSchema)
38077
+ }).transform((v2) => {
38078
+ return remap(v2, {
38079
+ vendor_id_or_me: "vendorIdOrMe",
38080
+ RequestBody: "requestBody"
38081
+ });
38082
+ });
38083
+ AddVendorManagedByCompanyRequest$outboundSchema = objectType({
38084
+ vendorIdOrMe: stringType(),
38085
+ requestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$outboundSchema)
38086
+ }).transform((v2) => {
38087
+ return remap(v2, {
38088
+ vendorIdOrMe: "vendor_id_or_me",
38089
+ requestBody: "RequestBody"
38090
+ });
38091
+ });
38092
+ ((AddVendorManagedByCompanyRequest$) => {
38093
+ AddVendorManagedByCompanyRequest$.inboundSchema = AddVendorManagedByCompanyRequest$inboundSchema;
38094
+ AddVendorManagedByCompanyRequest$.outboundSchema = AddVendorManagedByCompanyRequest$outboundSchema;
38095
+ })(AddVendorManagedByCompanyRequest$ ||= {});
38096
+ AddVendorManagedByCompanyResponseBody$inboundSchema = objectType({
38097
+ success: booleanType()
38098
+ });
38099
+ AddVendorManagedByCompanyResponseBody$outboundSchema = objectType({
38100
+ success: booleanType()
38101
+ });
38102
+ ((AddVendorManagedByCompanyResponseBody$) => {
38103
+ AddVendorManagedByCompanyResponseBody$.inboundSchema = AddVendorManagedByCompanyResponseBody$inboundSchema;
38104
+ AddVendorManagedByCompanyResponseBody$.outboundSchema = AddVendorManagedByCompanyResponseBody$outboundSchema;
38105
+ })(AddVendorManagedByCompanyResponseBody$ ||= {});
38106
+ });
38107
+
37960
38108
  // src/models/operations/createvendorregistration.ts
37961
38109
  var CreateVendorRegistrationRequestBody$inboundSchema, CreateVendorRegistrationRequestBody$outboundSchema, CreateVendorRegistrationRequestBody$, Data$inboundSchema, Data$outboundSchema, Data$, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema, CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema, CreateVendorRegistrationCreateVendorRegistrationCreated$;
37962
38110
  var init_createvendorregistration = __esm(() => {
@@ -38012,6 +38160,63 @@ var init_createvendorregistration = __esm(() => {
38012
38160
  })(CreateVendorRegistrationCreateVendorRegistrationCreated$ ||= {});
38013
38161
  });
38014
38162
 
38163
+ // src/models/operations/deletevendormanagedbycompany.ts
38164
+ var DeleteVendorManagedByCompanyRequestBody$inboundSchema, DeleteVendorManagedByCompanyRequestBody$outboundSchema, DeleteVendorManagedByCompanyRequestBody$, DeleteVendorManagedByCompanyRequest$inboundSchema, DeleteVendorManagedByCompanyRequest$outboundSchema, DeleteVendorManagedByCompanyRequest$, DeleteVendorManagedByCompanyResponseBody$inboundSchema, DeleteVendorManagedByCompanyResponseBody$outboundSchema, DeleteVendorManagedByCompanyResponseBody$;
38165
+ var init_deletevendormanagedbycompany = __esm(() => {
38166
+ init_lib();
38167
+ init_primitives();
38168
+ DeleteVendorManagedByCompanyRequestBody$inboundSchema = objectType({
38169
+ managed_vendor_id: numberType().int()
38170
+ }).transform((v2) => {
38171
+ return remap(v2, {
38172
+ managed_vendor_id: "managedVendorId"
38173
+ });
38174
+ });
38175
+ DeleteVendorManagedByCompanyRequestBody$outboundSchema = objectType({
38176
+ managedVendorId: numberType().int()
38177
+ }).transform((v2) => {
38178
+ return remap(v2, {
38179
+ managedVendorId: "managed_vendor_id"
38180
+ });
38181
+ });
38182
+ ((DeleteVendorManagedByCompanyRequestBody$) => {
38183
+ DeleteVendorManagedByCompanyRequestBody$.inboundSchema = DeleteVendorManagedByCompanyRequestBody$inboundSchema;
38184
+ DeleteVendorManagedByCompanyRequestBody$.outboundSchema = DeleteVendorManagedByCompanyRequestBody$outboundSchema;
38185
+ })(DeleteVendorManagedByCompanyRequestBody$ ||= {});
38186
+ DeleteVendorManagedByCompanyRequest$inboundSchema = objectType({
38187
+ vendor_id_or_me: stringType(),
38188
+ RequestBody: lazyType(() => DeleteVendorManagedByCompanyRequestBody$inboundSchema)
38189
+ }).transform((v2) => {
38190
+ return remap(v2, {
38191
+ vendor_id_or_me: "vendorIdOrMe",
38192
+ RequestBody: "requestBody"
38193
+ });
38194
+ });
38195
+ DeleteVendorManagedByCompanyRequest$outboundSchema = objectType({
38196
+ vendorIdOrMe: stringType(),
38197
+ requestBody: lazyType(() => DeleteVendorManagedByCompanyRequestBody$outboundSchema)
38198
+ }).transform((v2) => {
38199
+ return remap(v2, {
38200
+ vendorIdOrMe: "vendor_id_or_me",
38201
+ requestBody: "RequestBody"
38202
+ });
38203
+ });
38204
+ ((DeleteVendorManagedByCompanyRequest$) => {
38205
+ DeleteVendorManagedByCompanyRequest$.inboundSchema = DeleteVendorManagedByCompanyRequest$inboundSchema;
38206
+ DeleteVendorManagedByCompanyRequest$.outboundSchema = DeleteVendorManagedByCompanyRequest$outboundSchema;
38207
+ })(DeleteVendorManagedByCompanyRequest$ ||= {});
38208
+ DeleteVendorManagedByCompanyResponseBody$inboundSchema = objectType({
38209
+ success: booleanType()
38210
+ });
38211
+ DeleteVendorManagedByCompanyResponseBody$outboundSchema = objectType({
38212
+ success: booleanType()
38213
+ });
38214
+ ((DeleteVendorManagedByCompanyResponseBody$) => {
38215
+ DeleteVendorManagedByCompanyResponseBody$.inboundSchema = DeleteVendorManagedByCompanyResponseBody$inboundSchema;
38216
+ DeleteVendorManagedByCompanyResponseBody$.outboundSchema = DeleteVendorManagedByCompanyResponseBody$outboundSchema;
38217
+ })(DeleteVendorManagedByCompanyResponseBody$ ||= {});
38218
+ });
38219
+
38015
38220
  // src/models/operations/expeditetimeremaining.ts
38016
38221
  var ExpediteTimeRemainingRequest$inboundSchema, ExpediteTimeRemainingRequest$outboundSchema, ExpediteTimeRemainingRequest$, ExpediteTimeRemainingResponseBody$inboundSchema, ExpediteTimeRemainingResponseBody$outboundSchema, ExpediteTimeRemainingResponseBody$;
38017
38222
  var init_expeditetimeremaining = __esm(() => {
@@ -38359,6 +38564,72 @@ var init_listorsearchsupportarticles = __esm(() => {
38359
38564
  })(ListOrSearchSupportArticlesResponse$ ||= {});
38360
38565
  });
38361
38566
 
38567
+ // src/models/operations/listvendoradditionalfacilityfields.ts
38568
+ var ListVendorAdditionalFacilityFieldsRequest$inboundSchema, ListVendorAdditionalFacilityFieldsRequest$outboundSchema, ListVendorAdditionalFacilityFieldsRequest$, ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema, ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema, ListVendorAdditionalFacilityFieldsResponseBody$, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, ListVendorAdditionalFacilityFieldsResponse$outboundSchema, ListVendorAdditionalFacilityFieldsResponse$;
38569
+ var init_listvendoradditionalfacilityfields = __esm(() => {
38570
+ init_lib();
38571
+ init_primitives();
38572
+ init_components();
38573
+ ListVendorAdditionalFacilityFieldsRequest$inboundSchema = objectType({
38574
+ sort: nullableType(stringType()).optional(),
38575
+ desc: Desc$inboundSchema.optional(),
38576
+ page: numberType().int().optional(),
38577
+ items_per_page: numberType().int().optional(),
38578
+ vendor_id_or_me: stringType()
38579
+ }).transform((v2) => {
38580
+ return remap(v2, {
38581
+ items_per_page: "itemsPerPage",
38582
+ vendor_id_or_me: "vendorIdOrMe"
38583
+ });
38584
+ });
38585
+ ListVendorAdditionalFacilityFieldsRequest$outboundSchema = objectType({
38586
+ sort: nullableType(stringType()).optional(),
38587
+ desc: Desc$outboundSchema.optional(),
38588
+ page: numberType().int().optional(),
38589
+ itemsPerPage: numberType().int().optional(),
38590
+ vendorIdOrMe: stringType()
38591
+ }).transform((v2) => {
38592
+ return remap(v2, {
38593
+ itemsPerPage: "items_per_page",
38594
+ vendorIdOrMe: "vendor_id_or_me"
38595
+ });
38596
+ });
38597
+ ((ListVendorAdditionalFacilityFieldsRequest$) => {
38598
+ ListVendorAdditionalFacilityFieldsRequest$.inboundSchema = ListVendorAdditionalFacilityFieldsRequest$inboundSchema;
38599
+ ListVendorAdditionalFacilityFieldsRequest$.outboundSchema = ListVendorAdditionalFacilityFieldsRequest$outboundSchema;
38600
+ })(ListVendorAdditionalFacilityFieldsRequest$ ||= {});
38601
+ ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema = objectType({
38602
+ items: arrayType(VendorAdditionalFacilityFields$inboundSchema),
38603
+ pager: Pager$inboundSchema
38604
+ });
38605
+ ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema = objectType({
38606
+ items: arrayType(VendorAdditionalFacilityFields$outboundSchema),
38607
+ pager: Pager$outboundSchema
38608
+ });
38609
+ ((ListVendorAdditionalFacilityFieldsResponseBody$) => {
38610
+ ListVendorAdditionalFacilityFieldsResponseBody$.inboundSchema = ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema;
38611
+ ListVendorAdditionalFacilityFieldsResponseBody$.outboundSchema = ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema;
38612
+ })(ListVendorAdditionalFacilityFieldsResponseBody$ ||= {});
38613
+ ListVendorAdditionalFacilityFieldsResponse$inboundSchema = objectType({
38614
+ Result: lazyType(() => ListVendorAdditionalFacilityFieldsResponseBody$inboundSchema)
38615
+ }).transform((v2) => {
38616
+ return remap(v2, {
38617
+ Result: "result"
38618
+ });
38619
+ });
38620
+ ListVendorAdditionalFacilityFieldsResponse$outboundSchema = objectType({
38621
+ result: lazyType(() => ListVendorAdditionalFacilityFieldsResponseBody$outboundSchema)
38622
+ }).transform((v2) => {
38623
+ return remap(v2, {
38624
+ result: "Result"
38625
+ });
38626
+ });
38627
+ ((ListVendorAdditionalFacilityFieldsResponse$) => {
38628
+ ListVendorAdditionalFacilityFieldsResponse$.inboundSchema = ListVendorAdditionalFacilityFieldsResponse$inboundSchema;
38629
+ ListVendorAdditionalFacilityFieldsResponse$.outboundSchema = ListVendorAdditionalFacilityFieldsResponse$outboundSchema;
38630
+ })(ListVendorAdditionalFacilityFieldsResponse$ ||= {});
38631
+ });
38632
+
38362
38633
  // src/models/operations/listvendorcredentials.ts
38363
38634
  var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
38364
38635
  var init_listvendorcredentials = __esm(() => {
@@ -38767,6 +39038,72 @@ var init_listvendorjobtitles = __esm(() => {
38767
39038
  })(ListVendorJobTitlesResponse$ ||= {});
38768
39039
  });
38769
39040
 
39041
+ // src/models/operations/listvendormanagedbycompanies.ts
39042
+ var ListVendorManagedByCompaniesRequest$inboundSchema, ListVendorManagedByCompaniesRequest$outboundSchema, ListVendorManagedByCompaniesRequest$, ListVendorManagedByCompaniesResponseBody$inboundSchema, ListVendorManagedByCompaniesResponseBody$outboundSchema, ListVendorManagedByCompaniesResponseBody$, ListVendorManagedByCompaniesResponse$inboundSchema, ListVendorManagedByCompaniesResponse$outboundSchema, ListVendorManagedByCompaniesResponse$;
39043
+ var init_listvendormanagedbycompanies = __esm(() => {
39044
+ init_lib();
39045
+ init_primitives();
39046
+ init_components();
39047
+ ListVendorManagedByCompaniesRequest$inboundSchema = objectType({
39048
+ sort: nullableType(stringType()).optional(),
39049
+ desc: Desc$inboundSchema.optional(),
39050
+ page: numberType().int().optional(),
39051
+ items_per_page: numberType().int().optional(),
39052
+ vendor_id_or_me: stringType()
39053
+ }).transform((v2) => {
39054
+ return remap(v2, {
39055
+ items_per_page: "itemsPerPage",
39056
+ vendor_id_or_me: "vendorIdOrMe"
39057
+ });
39058
+ });
39059
+ ListVendorManagedByCompaniesRequest$outboundSchema = objectType({
39060
+ sort: nullableType(stringType()).optional(),
39061
+ desc: Desc$outboundSchema.optional(),
39062
+ page: numberType().int().optional(),
39063
+ itemsPerPage: numberType().int().optional(),
39064
+ vendorIdOrMe: stringType()
39065
+ }).transform((v2) => {
39066
+ return remap(v2, {
39067
+ itemsPerPage: "items_per_page",
39068
+ vendorIdOrMe: "vendor_id_or_me"
39069
+ });
39070
+ });
39071
+ ((ListVendorManagedByCompaniesRequest$) => {
39072
+ ListVendorManagedByCompaniesRequest$.inboundSchema = ListVendorManagedByCompaniesRequest$inboundSchema;
39073
+ ListVendorManagedByCompaniesRequest$.outboundSchema = ListVendorManagedByCompaniesRequest$outboundSchema;
39074
+ })(ListVendorManagedByCompaniesRequest$ ||= {});
39075
+ ListVendorManagedByCompaniesResponseBody$inboundSchema = objectType({
39076
+ items: arrayType(nullableType(VendorManagedByCompany$inboundSchema)),
39077
+ pager: Pager$inboundSchema
39078
+ });
39079
+ ListVendorManagedByCompaniesResponseBody$outboundSchema = objectType({
39080
+ items: arrayType(nullableType(VendorManagedByCompany$outboundSchema)),
39081
+ pager: Pager$outboundSchema
39082
+ });
39083
+ ((ListVendorManagedByCompaniesResponseBody$) => {
39084
+ ListVendorManagedByCompaniesResponseBody$.inboundSchema = ListVendorManagedByCompaniesResponseBody$inboundSchema;
39085
+ ListVendorManagedByCompaniesResponseBody$.outboundSchema = ListVendorManagedByCompaniesResponseBody$outboundSchema;
39086
+ })(ListVendorManagedByCompaniesResponseBody$ ||= {});
39087
+ ListVendorManagedByCompaniesResponse$inboundSchema = objectType({
39088
+ Result: lazyType(() => ListVendorManagedByCompaniesResponseBody$inboundSchema)
39089
+ }).transform((v2) => {
39090
+ return remap(v2, {
39091
+ Result: "result"
39092
+ });
39093
+ });
39094
+ ListVendorManagedByCompaniesResponse$outboundSchema = objectType({
39095
+ result: lazyType(() => ListVendorManagedByCompaniesResponseBody$outboundSchema)
39096
+ }).transform((v2) => {
39097
+ return remap(v2, {
39098
+ result: "Result"
39099
+ });
39100
+ });
39101
+ ((ListVendorManagedByCompaniesResponse$) => {
39102
+ ListVendorManagedByCompaniesResponse$.inboundSchema = ListVendorManagedByCompaniesResponse$inboundSchema;
39103
+ ListVendorManagedByCompaniesResponse$.outboundSchema = ListVendorManagedByCompaniesResponse$outboundSchema;
39104
+ })(ListVendorManagedByCompaniesResponse$ ||= {});
39105
+ });
39106
+
38770
39107
  // src/models/operations/listvendorscrubdetails.ts
38771
39108
  var ListVendorScrubDetailsRequest$inboundSchema, ListVendorScrubDetailsRequest$outboundSchema, ListVendorScrubDetailsRequest$;
38772
39109
  var init_listvendorscrubdetails = __esm(() => {
@@ -39024,6 +39361,91 @@ var init_passwordresetrequest = __esm(() => {
39024
39361
  })(PasswordResetRequestPasswordResetRequestOk$ ||= {});
39025
39362
  });
39026
39363
 
39364
+ // src/models/operations/updatevendormanagedbycompany.ts
39365
+ var UpdateVendorManagedByCompanyRequestBody$inboundSchema, UpdateVendorManagedByCompanyRequestBody$outboundSchema, UpdateVendorManagedByCompanyRequestBody$, UpdateVendorManagedByCompanyRequest$inboundSchema, UpdateVendorManagedByCompanyRequest$outboundSchema, UpdateVendorManagedByCompanyRequest$, UpdateVendorManagedByCompanyResponseBody$inboundSchema, UpdateVendorManagedByCompanyResponseBody$outboundSchema, UpdateVendorManagedByCompanyResponseBody$;
39366
+ var init_updatevendormanagedbycompany = __esm(() => {
39367
+ init_lib();
39368
+ init_primitives();
39369
+ UpdateVendorManagedByCompanyRequestBody$inboundSchema = objectType({
39370
+ managed_vendor_id: numberType().int().optional(),
39371
+ may_edit_profile: booleanType().optional(),
39372
+ may_edit_facilities: booleanType().optional(),
39373
+ may_upload_credentials: booleanType().optional(),
39374
+ may_edit_credentialing_subscription: booleanType().optional(),
39375
+ may_edit_scrubs_subscription: booleanType().optional(),
39376
+ may_purchase_scrub_credits: booleanType().optional(),
39377
+ may_pay_invoices: booleanType().optional()
39378
+ }).transform((v2) => {
39379
+ return remap(v2, {
39380
+ managed_vendor_id: "managedVendorId",
39381
+ may_edit_profile: "mayEditProfile",
39382
+ may_edit_facilities: "mayEditFacilities",
39383
+ may_upload_credentials: "mayUploadCredentials",
39384
+ may_edit_credentialing_subscription: "mayEditCredentialingSubscription",
39385
+ may_edit_scrubs_subscription: "mayEditScrubsSubscription",
39386
+ may_purchase_scrub_credits: "mayPurchaseScrubCredits",
39387
+ may_pay_invoices: "mayPayInvoices"
39388
+ });
39389
+ });
39390
+ UpdateVendorManagedByCompanyRequestBody$outboundSchema = objectType({
39391
+ managedVendorId: numberType().int().optional(),
39392
+ mayEditProfile: booleanType().optional(),
39393
+ mayEditFacilities: booleanType().optional(),
39394
+ mayUploadCredentials: booleanType().optional(),
39395
+ mayEditCredentialingSubscription: booleanType().optional(),
39396
+ mayEditScrubsSubscription: booleanType().optional(),
39397
+ mayPurchaseScrubCredits: booleanType().optional(),
39398
+ mayPayInvoices: booleanType().optional()
39399
+ }).transform((v2) => {
39400
+ return remap(v2, {
39401
+ managedVendorId: "managed_vendor_id",
39402
+ mayEditProfile: "may_edit_profile",
39403
+ mayEditFacilities: "may_edit_facilities",
39404
+ mayUploadCredentials: "may_upload_credentials",
39405
+ mayEditCredentialingSubscription: "may_edit_credentialing_subscription",
39406
+ mayEditScrubsSubscription: "may_edit_scrubs_subscription",
39407
+ mayPurchaseScrubCredits: "may_purchase_scrub_credits",
39408
+ mayPayInvoices: "may_pay_invoices"
39409
+ });
39410
+ });
39411
+ ((UpdateVendorManagedByCompanyRequestBody$) => {
39412
+ UpdateVendorManagedByCompanyRequestBody$.inboundSchema = UpdateVendorManagedByCompanyRequestBody$inboundSchema;
39413
+ UpdateVendorManagedByCompanyRequestBody$.outboundSchema = UpdateVendorManagedByCompanyRequestBody$outboundSchema;
39414
+ })(UpdateVendorManagedByCompanyRequestBody$ ||= {});
39415
+ UpdateVendorManagedByCompanyRequest$inboundSchema = objectType({
39416
+ vendor_id_or_me: stringType(),
39417
+ RequestBody: lazyType(() => UpdateVendorManagedByCompanyRequestBody$inboundSchema)
39418
+ }).transform((v2) => {
39419
+ return remap(v2, {
39420
+ vendor_id_or_me: "vendorIdOrMe",
39421
+ RequestBody: "requestBody"
39422
+ });
39423
+ });
39424
+ UpdateVendorManagedByCompanyRequest$outboundSchema = objectType({
39425
+ vendorIdOrMe: stringType(),
39426
+ requestBody: lazyType(() => UpdateVendorManagedByCompanyRequestBody$outboundSchema)
39427
+ }).transform((v2) => {
39428
+ return remap(v2, {
39429
+ vendorIdOrMe: "vendor_id_or_me",
39430
+ requestBody: "RequestBody"
39431
+ });
39432
+ });
39433
+ ((UpdateVendorManagedByCompanyRequest$) => {
39434
+ UpdateVendorManagedByCompanyRequest$.inboundSchema = UpdateVendorManagedByCompanyRequest$inboundSchema;
39435
+ UpdateVendorManagedByCompanyRequest$.outboundSchema = UpdateVendorManagedByCompanyRequest$outboundSchema;
39436
+ })(UpdateVendorManagedByCompanyRequest$ ||= {});
39437
+ UpdateVendorManagedByCompanyResponseBody$inboundSchema = objectType({
39438
+ success: booleanType()
39439
+ });
39440
+ UpdateVendorManagedByCompanyResponseBody$outboundSchema = objectType({
39441
+ success: booleanType()
39442
+ });
39443
+ ((UpdateVendorManagedByCompanyResponseBody$) => {
39444
+ UpdateVendorManagedByCompanyResponseBody$.inboundSchema = UpdateVendorManagedByCompanyResponseBody$inboundSchema;
39445
+ UpdateVendorManagedByCompanyResponseBody$.outboundSchema = UpdateVendorManagedByCompanyResponseBody$outboundSchema;
39446
+ })(UpdateVendorManagedByCompanyResponseBody$ ||= {});
39447
+ });
39448
+
39027
39449
  // src/models/operations/vendorscanout.ts
39028
39450
  var VendorScanOutRequest$inboundSchema, VendorScanOutRequest$outboundSchema, VendorScanOutRequest$, VendorScanOutResponseBody$inboundSchema, VendorScanOutResponseBody$outboundSchema, VendorScanOutResponseBody$;
39029
39451
  var init_vendorscanout = __esm(() => {
@@ -39056,7 +39478,9 @@ var init_vendorscanout = __esm(() => {
39056
39478
 
39057
39479
  // src/models/operations/index.ts
39058
39480
  var init_operations = __esm(() => {
39481
+ init_addvendormanagedbycompany();
39059
39482
  init_createvendorregistration();
39483
+ init_deletevendormanagedbycompany();
39060
39484
  init_expeditetimeremaining();
39061
39485
  init_getfacility();
39062
39486
  init_getsupportarticle();
@@ -39067,17 +39491,20 @@ var init_operations = __esm(() => {
39067
39491
  init_listallwebhookendpoints();
39068
39492
  init_listorsearchfacilities();
39069
39493
  init_listorsearchsupportarticles();
39494
+ init_listvendoradditionalfacilityfields();
39070
39495
  init_listvendorcredentials();
39071
39496
  init_listvendorcredits();
39072
39497
  init_listvendorfacilitystatuses();
39073
39498
  init_listvendorinvoices();
39074
39499
  init_listvendorjobtitles();
39500
+ init_listvendormanagedbycompanies();
39075
39501
  init_listvendorscrubdetails();
39076
39502
  init_listvendorscrubpurchases();
39077
39503
  init_logsuserintothesystem();
39078
39504
  init_magiclink();
39079
39505
  init_password();
39080
39506
  init_passwordresetrequest();
39507
+ init_updatevendormanagedbycompany();
39081
39508
  init_vendorscanout();
39082
39509
  });
39083
39510
 
@@ -39133,7 +39560,7 @@ async function $do(client, request, options) {
39133
39560
  const context = {
39134
39561
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39135
39562
  operationID: "getFacility",
39136
- oAuth2Scopes: [],
39563
+ oAuth2Scopes: null,
39137
39564
  resolvedSecurity: requestSecurity,
39138
39565
  securitySource: client._options.security,
39139
39566
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39277,7 +39704,7 @@ async function $do2(client, request, options) {
39277
39704
  const context = {
39278
39705
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39279
39706
  operationID: "listOrSearchFacilities",
39280
- oAuth2Scopes: [],
39707
+ oAuth2Scopes: null,
39281
39708
  resolvedSecurity: requestSecurity,
39282
39709
  securitySource: client._options.security,
39283
39710
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39431,7 +39858,7 @@ async function $do3(client, request, options) {
39431
39858
  const context = {
39432
39859
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39433
39860
  operationID: "getSupportArticle",
39434
- oAuth2Scopes: [],
39861
+ oAuth2Scopes: null,
39435
39862
  resolvedSecurity: requestSecurity,
39436
39863
  securitySource: client._options.security,
39437
39864
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39547,7 +39974,7 @@ async function $do4(client, request, options) {
39547
39974
  const context = {
39548
39975
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39549
39976
  operationID: "listOrSearchSupportArticles",
39550
- oAuth2Scopes: [],
39977
+ oAuth2Scopes: null,
39551
39978
  resolvedSecurity: requestSecurity,
39552
39979
  securitySource: client._options.security,
39553
39980
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39672,7 +40099,7 @@ async function $do5(client, options) {
39672
40099
  const context = {
39673
40100
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39674
40101
  operationID: "getCurrentUser",
39675
- oAuth2Scopes: [],
40102
+ oAuth2Scopes: null,
39676
40103
  resolvedSecurity: requestSecurity,
39677
40104
  securitySource: client._options.security,
39678
40105
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39769,7 +40196,7 @@ async function $do6(client, request, options) {
39769
40196
  const context = {
39770
40197
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39771
40198
  operationID: "getUserById",
39772
- oAuth2Scopes: [],
40199
+ oAuth2Scopes: null,
39773
40200
  resolvedSecurity: requestSecurity,
39774
40201
  securitySource: client._options.security,
39775
40202
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39868,7 +40295,7 @@ async function $do7(client, request, options) {
39868
40295
  const context = {
39869
40296
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39870
40297
  operationID: "logsUserIntoTheSystem",
39871
- oAuth2Scopes: [],
40298
+ oAuth2Scopes: null,
39872
40299
  resolvedSecurity: null,
39873
40300
  securitySource: null,
39874
40301
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39996,7 +40423,7 @@ async function $do8(client, request, options) {
39996
40423
  const context = {
39997
40424
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39998
40425
  operationID: "magiclink",
39999
- oAuth2Scopes: [],
40426
+ oAuth2Scopes: null,
40000
40427
  resolvedSecurity: requestSecurity,
40001
40428
  securitySource: client._options.security,
40002
40429
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40096,7 +40523,7 @@ async function $do9(client, request, options) {
40096
40523
  const context = {
40097
40524
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40098
40525
  operationID: "password",
40099
- oAuth2Scopes: [],
40526
+ oAuth2Scopes: null,
40100
40527
  resolvedSecurity: requestSecurity,
40101
40528
  securitySource: client._options.security,
40102
40529
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40197,7 +40624,7 @@ async function $do10(client, request, options) {
40197
40624
  const context = {
40198
40625
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40199
40626
  operationID: "passwordResetRequest",
40200
- oAuth2Scopes: [],
40627
+ oAuth2Scopes: null,
40201
40628
  resolvedSecurity: requestSecurity,
40202
40629
  securitySource: client._options.security,
40203
40630
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40276,24 +40703,30 @@ It sends an email with a link for resetting a user's password.`,
40276
40703
  };
40277
40704
  });
40278
40705
 
40279
- // src/funcs/vendorScansVendorScanOut.ts
40280
- function vendorScansVendorScanOut(client, request, options) {
40706
+ // src/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.ts
40707
+ function vendorManagedByCompaniesListVendorManagedByCompanies(client, request, options) {
40281
40708
  return new APIPromise($do11(client, request, options));
40282
40709
  }
40283
40710
  async function $do11(client, request, options) {
40284
- const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
40711
+ const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
40285
40712
  if (!parsed.ok) {
40286
- return [parsed, { status: "invalid" }];
40713
+ return [haltIterator(parsed), { status: "invalid" }];
40287
40714
  }
40288
40715
  const payload = parsed.value;
40289
40716
  const body = null;
40290
40717
  const pathParams = {
40291
- id: encodeSimple("id", payload.id, {
40718
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40292
40719
  explode: false,
40293
40720
  charEncoding: "percent"
40294
40721
  })
40295
40722
  };
40296
- const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
40723
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
40724
+ const query = encodeFormQuery({
40725
+ desc: payload.desc,
40726
+ items_per_page: payload.items_per_page,
40727
+ page: payload.page,
40728
+ sort: payload.sort
40729
+ });
40297
40730
  const headers = new Headers(compactMap({
40298
40731
  Accept: "application/json"
40299
40732
  }));
@@ -40301,8 +40734,8 @@ async function $do11(client, request, options) {
40301
40734
  const requestSecurity = resolveGlobalSecurity(securityInput);
40302
40735
  const context = {
40303
40736
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40304
- operationID: "vendorScanOut",
40305
- oAuth2Scopes: [],
40737
+ operationID: "listVendorManagedByCompanies",
40738
+ oAuth2Scopes: null,
40306
40739
  resolvedSecurity: requestSecurity,
40307
40740
  securitySource: client._options.security,
40308
40741
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40310,37 +40743,69 @@ async function $do11(client, request, options) {
40310
40743
  };
40311
40744
  const requestRes = client._createRequest(context, {
40312
40745
  security: requestSecurity,
40313
- method: "POST",
40746
+ method: "GET",
40314
40747
  baseURL: options?.serverURL,
40315
40748
  path,
40316
40749
  headers,
40750
+ query,
40317
40751
  body,
40318
40752
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40319
40753
  }, options);
40320
40754
  if (!requestRes.ok) {
40321
- return [requestRes, { status: "invalid" }];
40755
+ return [haltIterator(requestRes), { status: "invalid" }];
40322
40756
  }
40323
40757
  const req = requestRes.value;
40324
40758
  const doResult = await client._do(req, {
40325
40759
  context,
40326
- errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
40760
+ errorCodes: ["400", "401", "4XX", "500", "5XX"],
40327
40761
  retryConfig: context.retryConfig,
40328
40762
  retryCodes: context.retryCodes
40329
40763
  });
40330
40764
  if (!doResult.ok) {
40331
- return [doResult, { status: "request-error", request: req }];
40765
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40332
40766
  }
40333
40767
  const response = doResult.value;
40334
40768
  const responseFields = {
40335
40769
  HttpMeta: { Response: response, Request: req }
40336
40770
  };
40337
- 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 });
40771
+ const [result, raw] = await match(json(200, ListVendorManagedByCompaniesResponse$inboundSchema, {
40772
+ key: "Result"
40773
+ }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40338
40774
  if (!result.ok) {
40339
- return [result, { status: "complete", request: req, response }];
40775
+ return [haltIterator(result), {
40776
+ status: "complete",
40777
+ request: req,
40778
+ response
40779
+ }];
40340
40780
  }
40341
- return [result, { status: "complete", request: req, response }];
40781
+ const nextFunc = (responseData) => {
40782
+ const page2 = request?.page ?? 1;
40783
+ const nextPage = page2 + 1;
40784
+ if (!responseData) {
40785
+ return { next: () => null };
40786
+ }
40787
+ const results = dlv(responseData, "items");
40788
+ if (!Array.isArray(results) || !results.length) {
40789
+ return { next: () => null };
40790
+ }
40791
+ const limit = request?.itemsPerPage ?? 0;
40792
+ if (results.length < limit) {
40793
+ return { next: () => null };
40794
+ }
40795
+ const nextVal = () => vendorManagedByCompaniesListVendorManagedByCompanies(client, {
40796
+ ...request,
40797
+ page: nextPage
40798
+ }, options);
40799
+ return { next: nextVal, "~next": { page: nextPage } };
40800
+ };
40801
+ const page = { ...result, ...nextFunc(raw) };
40802
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40803
+ status: "complete",
40804
+ request: req,
40805
+ response
40806
+ }];
40342
40807
  }
40343
- var init_vendorScansVendorScanOut = __esm(() => {
40808
+ var init_vendorManagedByCompaniesListVendorManagedByCompanies = __esm(() => {
40344
40809
  init_encodings();
40345
40810
  init_matchers();
40346
40811
  init_primitives();
@@ -40350,48 +40815,260 @@ var init_vendorScansVendorScanOut = __esm(() => {
40350
40815
  init_errors();
40351
40816
  init_operations();
40352
40817
  init_async();
40818
+ init_operations2();
40353
40819
  });
40354
40820
 
40355
- // src/mcp-server/tools/vendorScansVendorScanOut.ts
40356
- var args10, tool$vendorScansVendorScanOut;
40357
- var init_vendorScansVendorScanOut2 = __esm(() => {
40358
- init_vendorScansVendorScanOut();
40821
+ // src/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.ts
40822
+ var args10, tool$vendorManagedByCompaniesListVendorManagedByCompanies;
40823
+ var init_vendorManagedByCompaniesListVendorManagedByCompanies2 = __esm(() => {
40824
+ init_vendorManagedByCompaniesListVendorManagedByCompanies();
40359
40825
  init_operations();
40360
40826
  init_tools();
40361
40827
  args10 = {
40362
- request: VendorScanOutRequest$inboundSchema
40828
+ request: ListVendorManagedByCompaniesRequest$inboundSchema
40363
40829
  };
40364
- tool$vendorScansVendorScanOut = {
40365
- name: "vendor-scans-vendor-scan-out",
40366
- description: `Vendor scan out
40830
+ tool$vendorManagedByCompaniesListVendorManagedByCompanies = {
40831
+ name: "vendor-managed-by-companies-list-vendor-managed-by-companies",
40832
+ description: `List of vendor managed by companies
40367
40833
 
40368
- It scans out vendor from facility`,
40834
+ List of vendor managed by companies`,
40369
40835
  args: args10,
40370
40836
  tool: async (client, args11, ctx) => {
40371
- const [result, apiCall] = await vendorScansVendorScanOut(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40837
+ const [result, apiCall] = await vendorManagedByCompaniesListVendorManagedByCompanies(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40372
40838
  if (!result.ok) {
40373
40839
  return {
40374
40840
  content: [{ type: "text", text: result.error.message }],
40375
40841
  isError: true
40376
40842
  };
40377
40843
  }
40378
- const value = result.value;
40844
+ const value = result.value.result;
40379
40845
  return formatResult(value, apiCall);
40380
40846
  }
40381
40847
  };
40382
40848
  });
40383
40849
 
40384
- // src/funcs/vendorsCreateVendorRegistration.ts
40385
- function vendorsCreateVendorRegistration(client, request, options) {
40850
+ // src/funcs/vendorsAddVendorManagedByCompany.ts
40851
+ function vendorsAddVendorManagedByCompany(client, request, options) {
40386
40852
  return new APIPromise($do12(client, request, options));
40387
40853
  }
40388
40854
  async function $do12(client, request, options) {
40389
- const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
40855
+ const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
40390
40856
  if (!parsed.ok) {
40391
40857
  return [parsed, { status: "invalid" }];
40392
40858
  }
40393
40859
  const payload = parsed.value;
40394
- const body = encodeJSON("body", payload, { explode: true });
40860
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
40861
+ const pathParams = {
40862
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40863
+ explode: false,
40864
+ charEncoding: "percent"
40865
+ })
40866
+ };
40867
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
40868
+ const headers = new Headers(compactMap({
40869
+ "Content-Type": "application/json",
40870
+ Accept: "application/json"
40871
+ }));
40872
+ const securityInput = await extractSecurity(client._options.security);
40873
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40874
+ const context = {
40875
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40876
+ operationID: "addVendorManagedByCompany",
40877
+ oAuth2Scopes: null,
40878
+ resolvedSecurity: requestSecurity,
40879
+ securitySource: client._options.security,
40880
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40881
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40882
+ };
40883
+ const requestRes = client._createRequest(context, {
40884
+ security: requestSecurity,
40885
+ method: "POST",
40886
+ baseURL: options?.serverURL,
40887
+ path,
40888
+ headers,
40889
+ body,
40890
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40891
+ }, options);
40892
+ if (!requestRes.ok) {
40893
+ return [requestRes, { status: "invalid" }];
40894
+ }
40895
+ const req = requestRes.value;
40896
+ const doResult = await client._do(req, {
40897
+ context,
40898
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
40899
+ retryConfig: context.retryConfig,
40900
+ retryCodes: context.retryCodes
40901
+ });
40902
+ if (!doResult.ok) {
40903
+ return [doResult, { status: "request-error", request: req }];
40904
+ }
40905
+ const response = doResult.value;
40906
+ const responseFields = {
40907
+ HttpMeta: { Response: response, Request: req }
40908
+ };
40909
+ 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 });
40910
+ if (!result.ok) {
40911
+ return [result, { status: "complete", request: req, response }];
40912
+ }
40913
+ return [result, { status: "complete", request: req, response }];
40914
+ }
40915
+ var init_vendorsAddVendorManagedByCompany = __esm(() => {
40916
+ init_encodings();
40917
+ init_matchers();
40918
+ init_primitives();
40919
+ init_schemas();
40920
+ init_security();
40921
+ init_url();
40922
+ init_errors();
40923
+ init_operations();
40924
+ init_async();
40925
+ });
40926
+
40927
+ // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
40928
+ var args11, tool$vendorsAddVendorManagedByCompany;
40929
+ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
40930
+ init_vendorsAddVendorManagedByCompany();
40931
+ init_operations();
40932
+ init_tools();
40933
+ args11 = {
40934
+ request: AddVendorManagedByCompanyRequest$inboundSchema
40935
+ };
40936
+ tool$vendorsAddVendorManagedByCompany = {
40937
+ name: "vendors-add-vendor-managed-by-company",
40938
+ description: `Add vendor managed by company
40939
+
40940
+ It will add a vendor managed by company`,
40941
+ args: args11,
40942
+ tool: async (client, args12, ctx) => {
40943
+ const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40944
+ if (!result.ok) {
40945
+ return {
40946
+ content: [{ type: "text", text: result.error.message }],
40947
+ isError: true
40948
+ };
40949
+ }
40950
+ const value = result.value;
40951
+ return formatResult(value, apiCall);
40952
+ }
40953
+ };
40954
+ });
40955
+
40956
+ // src/funcs/vendorScansVendorScanOut.ts
40957
+ function vendorScansVendorScanOut(client, request, options) {
40958
+ return new APIPromise($do13(client, request, options));
40959
+ }
40960
+ async function $do13(client, request, options) {
40961
+ const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
40962
+ if (!parsed.ok) {
40963
+ return [parsed, { status: "invalid" }];
40964
+ }
40965
+ const payload = parsed.value;
40966
+ const body = null;
40967
+ const pathParams = {
40968
+ id: encodeSimple("id", payload.id, {
40969
+ explode: false,
40970
+ charEncoding: "percent"
40971
+ })
40972
+ };
40973
+ const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
40974
+ const headers = new Headers(compactMap({
40975
+ Accept: "application/json"
40976
+ }));
40977
+ const securityInput = await extractSecurity(client._options.security);
40978
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40979
+ const context = {
40980
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40981
+ operationID: "vendorScanOut",
40982
+ oAuth2Scopes: null,
40983
+ resolvedSecurity: requestSecurity,
40984
+ securitySource: client._options.security,
40985
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40986
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40987
+ };
40988
+ const requestRes = client._createRequest(context, {
40989
+ security: requestSecurity,
40990
+ method: "POST",
40991
+ baseURL: options?.serverURL,
40992
+ path,
40993
+ headers,
40994
+ body,
40995
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40996
+ }, options);
40997
+ if (!requestRes.ok) {
40998
+ return [requestRes, { status: "invalid" }];
40999
+ }
41000
+ const req = requestRes.value;
41001
+ const doResult = await client._do(req, {
41002
+ context,
41003
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
41004
+ retryConfig: context.retryConfig,
41005
+ retryCodes: context.retryCodes
41006
+ });
41007
+ if (!doResult.ok) {
41008
+ return [doResult, { status: "request-error", request: req }];
41009
+ }
41010
+ const response = doResult.value;
41011
+ const responseFields = {
41012
+ HttpMeta: { Response: response, Request: req }
41013
+ };
41014
+ 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 });
41015
+ if (!result.ok) {
41016
+ return [result, { status: "complete", request: req, response }];
41017
+ }
41018
+ return [result, { status: "complete", request: req, response }];
41019
+ }
41020
+ var init_vendorScansVendorScanOut = __esm(() => {
41021
+ init_encodings();
41022
+ init_matchers();
41023
+ init_primitives();
41024
+ init_schemas();
41025
+ init_security();
41026
+ init_url();
41027
+ init_errors();
41028
+ init_operations();
41029
+ init_async();
41030
+ });
41031
+
41032
+ // src/mcp-server/tools/vendorScansVendorScanOut.ts
41033
+ var args12, tool$vendorScansVendorScanOut;
41034
+ var init_vendorScansVendorScanOut2 = __esm(() => {
41035
+ init_vendorScansVendorScanOut();
41036
+ init_operations();
41037
+ init_tools();
41038
+ args12 = {
41039
+ request: VendorScanOutRequest$inboundSchema
41040
+ };
41041
+ tool$vendorScansVendorScanOut = {
41042
+ name: "vendor-scans-vendor-scan-out",
41043
+ description: `Vendor scan out
41044
+
41045
+ It scans out vendor from facility`,
41046
+ args: args12,
41047
+ tool: async (client, args13, ctx) => {
41048
+ const [result, apiCall] = await vendorScansVendorScanOut(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41049
+ if (!result.ok) {
41050
+ return {
41051
+ content: [{ type: "text", text: result.error.message }],
41052
+ isError: true
41053
+ };
41054
+ }
41055
+ const value = result.value;
41056
+ return formatResult(value, apiCall);
41057
+ }
41058
+ };
41059
+ });
41060
+
41061
+ // src/funcs/vendorsCreateVendorRegistration.ts
41062
+ function vendorsCreateVendorRegistration(client, request, options) {
41063
+ return new APIPromise($do14(client, request, options));
41064
+ }
41065
+ async function $do14(client, request, options) {
41066
+ const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
41067
+ if (!parsed.ok) {
41068
+ return [parsed, { status: "invalid" }];
41069
+ }
41070
+ const payload = parsed.value;
41071
+ const body = encodeJSON("body", payload, { explode: true });
40395
41072
  const path = pathToFunc("/vendors/registration")();
40396
41073
  const headers = new Headers(compactMap({
40397
41074
  "Content-Type": "application/json",
@@ -40400,7 +41077,7 @@ async function $do12(client, request, options) {
40400
41077
  const context = {
40401
41078
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40402
41079
  operationID: "createVendorRegistration",
40403
- oAuth2Scopes: [],
41080
+ oAuth2Scopes: null,
40404
41081
  resolvedSecurity: null,
40405
41082
  securitySource: null,
40406
41083
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40449,12 +41126,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
40449
41126
  });
40450
41127
 
40451
41128
  // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
40452
- var args11, tool$vendorsCreateVendorRegistration;
41129
+ var args13, tool$vendorsCreateVendorRegistration;
40453
41130
  var init_vendorsCreateVendorRegistration2 = __esm(() => {
40454
41131
  init_vendorsCreateVendorRegistration();
40455
41132
  init_operations();
40456
41133
  init_tools();
40457
- args11 = {
41134
+ args13 = {
40458
41135
  request: CreateVendorRegistrationRequestBody$inboundSchema
40459
41136
  };
40460
41137
  tool$vendorsCreateVendorRegistration = {
@@ -40462,9 +41139,115 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
40462
41139
  description: `Create vendor registration
40463
41140
 
40464
41141
  Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
40465
- args: args11,
40466
- tool: async (client, args12, ctx) => {
40467
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41142
+ args: args13,
41143
+ tool: async (client, args14, ctx) => {
41144
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41145
+ if (!result.ok) {
41146
+ return {
41147
+ content: [{ type: "text", text: result.error.message }],
41148
+ isError: true
41149
+ };
41150
+ }
41151
+ const value = result.value;
41152
+ return formatResult(value, apiCall);
41153
+ }
41154
+ };
41155
+ });
41156
+
41157
+ // src/funcs/vendorsDeleteVendorManagedByCompany.ts
41158
+ function vendorsDeleteVendorManagedByCompany(client, request, options) {
41159
+ return new APIPromise($do15(client, request, options));
41160
+ }
41161
+ async function $do15(client, request, options) {
41162
+ const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
41163
+ if (!parsed.ok) {
41164
+ return [parsed, { status: "invalid" }];
41165
+ }
41166
+ const payload = parsed.value;
41167
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
41168
+ const pathParams = {
41169
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41170
+ explode: false,
41171
+ charEncoding: "percent"
41172
+ })
41173
+ };
41174
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
41175
+ const headers = new Headers(compactMap({
41176
+ "Content-Type": "application/json",
41177
+ Accept: "application/json"
41178
+ }));
41179
+ const securityInput = await extractSecurity(client._options.security);
41180
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41181
+ const context = {
41182
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41183
+ operationID: "deleteVendorManagedByCompany",
41184
+ oAuth2Scopes: null,
41185
+ resolvedSecurity: requestSecurity,
41186
+ securitySource: client._options.security,
41187
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41188
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41189
+ };
41190
+ const requestRes = client._createRequest(context, {
41191
+ security: requestSecurity,
41192
+ method: "DELETE",
41193
+ baseURL: options?.serverURL,
41194
+ path,
41195
+ headers,
41196
+ body,
41197
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41198
+ }, options);
41199
+ if (!requestRes.ok) {
41200
+ return [requestRes, { status: "invalid" }];
41201
+ }
41202
+ const req = requestRes.value;
41203
+ const doResult = await client._do(req, {
41204
+ context,
41205
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
41206
+ retryConfig: context.retryConfig,
41207
+ retryCodes: context.retryCodes
41208
+ });
41209
+ if (!doResult.ok) {
41210
+ return [doResult, { status: "request-error", request: req }];
41211
+ }
41212
+ const response = doResult.value;
41213
+ const responseFields = {
41214
+ HttpMeta: { Response: response, Request: req }
41215
+ };
41216
+ const [result] = await match(json(200, DeleteVendorManagedByCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41217
+ if (!result.ok) {
41218
+ return [result, { status: "complete", request: req, response }];
41219
+ }
41220
+ return [result, { status: "complete", request: req, response }];
41221
+ }
41222
+ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
41223
+ init_encodings();
41224
+ init_matchers();
41225
+ init_primitives();
41226
+ init_schemas();
41227
+ init_security();
41228
+ init_url();
41229
+ init_errors();
41230
+ init_operations();
41231
+ init_async();
41232
+ });
41233
+
41234
+ // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
41235
+ var args14, tool$vendorsDeleteVendorManagedByCompany;
41236
+ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
41237
+ init_vendorsDeleteVendorManagedByCompany();
41238
+ init_operations();
41239
+ init_tools();
41240
+ args14 = {
41241
+ request: DeleteVendorManagedByCompanyRequest$inboundSchema
41242
+ };
41243
+ tool$vendorsDeleteVendorManagedByCompany = {
41244
+ name: "vendors-delete-vendor-managed-by-company",
41245
+ description: `Delete vendor managed by company
41246
+
41247
+ It will delete the vendor managed by company`,
41248
+ args: args14,
41249
+ tool: async (client, args15, ctx) => {
41250
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40468
41251
  if (!result.ok) {
40469
41252
  return {
40470
41253
  content: [{ type: "text", text: result.error.message }],
@@ -40479,9 +41262,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
40479
41262
 
40480
41263
  // src/funcs/vendorsExpediteTimeRemaining.ts
40481
41264
  function vendorsExpediteTimeRemaining(client, request, options) {
40482
- return new APIPromise($do13(client, request, options));
41265
+ return new APIPromise($do16(client, request, options));
40483
41266
  }
40484
- async function $do13(client, request, options) {
41267
+ async function $do16(client, request, options) {
40485
41268
  const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
40486
41269
  if (!parsed.ok) {
40487
41270
  return [parsed, { status: "invalid" }];
@@ -40503,7 +41286,7 @@ async function $do13(client, request, options) {
40503
41286
  const context = {
40504
41287
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40505
41288
  operationID: "expediteTimeRemaining",
40506
- oAuth2Scopes: [],
41289
+ oAuth2Scopes: null,
40507
41290
  resolvedSecurity: requestSecurity,
40508
41291
  securitySource: client._options.security,
40509
41292
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40554,12 +41337,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
40554
41337
  });
40555
41338
 
40556
41339
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
40557
- var args12, tool$vendorsExpediteTimeRemaining;
41340
+ var args15, tool$vendorsExpediteTimeRemaining;
40558
41341
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
40559
41342
  init_vendorsExpediteTimeRemaining();
40560
41343
  init_operations();
40561
41344
  init_tools();
40562
- args12 = {
41345
+ args15 = {
40563
41346
  request: ExpediteTimeRemainingRequest$inboundSchema
40564
41347
  };
40565
41348
  tool$vendorsExpediteTimeRemaining = {
@@ -40567,9 +41350,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
40567
41350
  description: `Expedite time remaining
40568
41351
 
40569
41352
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
40570
- args: args12,
40571
- tool: async (client, args13, ctx) => {
40572
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41353
+ args: args15,
41354
+ tool: async (client, args16, ctx) => {
41355
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40573
41356
  if (!result.ok) {
40574
41357
  return {
40575
41358
  content: [{ type: "text", text: result.error.message }],
@@ -40584,9 +41367,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
40584
41367
 
40585
41368
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
40586
41369
  function vendorsGetVendorInvoiceDetails(client, request, options) {
40587
- return new APIPromise($do14(client, request, options));
41370
+ return new APIPromise($do17(client, request, options));
40588
41371
  }
40589
- async function $do14(client, request, options) {
41372
+ async function $do17(client, request, options) {
40590
41373
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
40591
41374
  if (!parsed.ok) {
40592
41375
  return [parsed, { status: "invalid" }];
@@ -40611,7 +41394,7 @@ async function $do14(client, request, options) {
40611
41394
  const context = {
40612
41395
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40613
41396
  operationID: "getVendorInvoiceDetails",
40614
- oAuth2Scopes: [],
41397
+ oAuth2Scopes: null,
40615
41398
  resolvedSecurity: requestSecurity,
40616
41399
  securitySource: client._options.security,
40617
41400
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40664,27 +41447,151 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
40664
41447
  });
40665
41448
 
40666
41449
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
40667
- var args13, tool$vendorsGetVendorInvoiceDetails;
41450
+ var args16, tool$vendorsGetVendorInvoiceDetails;
40668
41451
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
40669
41452
  init_vendorsGetVendorInvoiceDetails();
40670
41453
  init_operations();
40671
41454
  init_tools();
40672
- args13 = {
41455
+ args16 = {
40673
41456
  request: GetVendorInvoiceDetailsRequest$inboundSchema
40674
41457
  };
40675
- tool$vendorsGetVendorInvoiceDetails = {
40676
- name: "vendors-get-vendor-invoice-details",
40677
- description: `Get vendor invoice details
41458
+ tool$vendorsGetVendorInvoiceDetails = {
41459
+ name: "vendors-get-vendor-invoice-details",
41460
+ description: `Get vendor invoice details
41461
+
41462
+ Retrieve an individual vendor invoice detais.
41463
+
41464
+ Available \`expand\` scopes are:
41465
+
41466
+ invoice.line_items
41467
+ invoice.invoice_transactions`,
41468
+ args: args16,
41469
+ tool: async (client, args17, ctx) => {
41470
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41471
+ if (!result.ok) {
41472
+ return {
41473
+ content: [{ type: "text", text: result.error.message }],
41474
+ isError: true
41475
+ };
41476
+ }
41477
+ const value = result.value;
41478
+ return formatResult(value, apiCall);
41479
+ }
41480
+ };
41481
+ });
41482
+
41483
+ // src/funcs/vendorsGetVendorsDetails.ts
41484
+ function vendorsGetVendorsDetails(client, request, options) {
41485
+ return new APIPromise($do18(client, request, options));
41486
+ }
41487
+ async function $do18(client, request, options) {
41488
+ const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41489
+ if (!parsed.ok) {
41490
+ return [parsed, { status: "invalid" }];
41491
+ }
41492
+ const payload = parsed.value;
41493
+ const body = null;
41494
+ const pathParams = {
41495
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41496
+ explode: false,
41497
+ charEncoding: "percent"
41498
+ })
41499
+ };
41500
+ const path = pathToFunc("/vendors/{vendor_id_or_me}")(pathParams);
41501
+ const query = encodeFormQuery({
41502
+ expand: payload.expand
41503
+ }, { explode: false });
41504
+ const headers = new Headers(compactMap({
41505
+ Accept: "application/json"
41506
+ }));
41507
+ const securityInput = await extractSecurity(client._options.security);
41508
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41509
+ const context = {
41510
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41511
+ operationID: "getVendorsDetails",
41512
+ oAuth2Scopes: null,
41513
+ resolvedSecurity: requestSecurity,
41514
+ securitySource: client._options.security,
41515
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41516
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41517
+ };
41518
+ const requestRes = client._createRequest(context, {
41519
+ security: requestSecurity,
41520
+ method: "GET",
41521
+ baseURL: options?.serverURL,
41522
+ path,
41523
+ headers,
41524
+ query,
41525
+ body,
41526
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41527
+ }, options);
41528
+ if (!requestRes.ok) {
41529
+ return [requestRes, { status: "invalid" }];
41530
+ }
41531
+ const req = requestRes.value;
41532
+ const doResult = await client._do(req, {
41533
+ context,
41534
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
41535
+ retryConfig: context.retryConfig,
41536
+ retryCodes: context.retryCodes
41537
+ });
41538
+ if (!doResult.ok) {
41539
+ return [doResult, { status: "request-error", request: req }];
41540
+ }
41541
+ const response = doResult.value;
41542
+ const responseFields = {
41543
+ HttpMeta: { Response: response, Request: req }
41544
+ };
41545
+ const [result] = await match(json(200, Vendor$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41546
+ if (!result.ok) {
41547
+ return [result, { status: "complete", request: req, response }];
41548
+ }
41549
+ return [result, { status: "complete", request: req, response }];
41550
+ }
41551
+ var init_vendorsGetVendorsDetails = __esm(() => {
41552
+ init_encodings();
41553
+ init_matchers();
41554
+ init_primitives();
41555
+ init_schemas();
41556
+ init_security();
41557
+ init_url();
41558
+ init_components();
41559
+ init_errors();
41560
+ init_operations();
41561
+ init_async();
41562
+ });
41563
+
41564
+ // src/mcp-server/tools/vendorsGetVendorsDetails.ts
41565
+ var args17, tool$vendorsGetVendorsDetails;
41566
+ var init_vendorsGetVendorsDetails2 = __esm(() => {
41567
+ init_vendorsGetVendorsDetails();
41568
+ init_operations();
41569
+ init_tools();
41570
+ args17 = {
41571
+ request: GetVendorsDetailsRequest$inboundSchema
41572
+ };
41573
+ tool$vendorsGetVendorsDetails = {
41574
+ name: "vendors-get-vendors-details",
41575
+ description: `Get vendors details
40678
41576
 
40679
- Retrieve an individual vendor invoice detais.
41577
+ Retrieve an individual vendor detais.
40680
41578
 
40681
41579
  Available \`expand\` scopes are:
40682
41580
 
40683
- invoice.line_items
40684
- invoice.invoice_transactions`,
40685
- args: args13,
40686
- tool: async (client, args14, ctx) => {
40687
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41581
+ vendor.user
41582
+ vendor.vendor_type
41583
+ vendor.image_urls
41584
+ vendor.payment_profile
41585
+ vendor.primary_facility
41586
+ vendor.primary_department
41587
+ vendor.company
41588
+ vendor.credentialing_subscription
41589
+ vendor.scrubs_subscription
41590
+ vendor.payment_responsibility
41591
+ vendor.background_check_date_expires`,
41592
+ args: args17,
41593
+ tool: async (client, args18, ctx) => {
41594
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40688
41595
  if (!result.ok) {
40689
41596
  return {
40690
41597
  content: [{ type: "text", text: result.error.message }],
@@ -40697,14 +41604,14 @@ invoice.invoice_transactions`,
40697
41604
  };
40698
41605
  });
40699
41606
 
40700
- // src/funcs/vendorsGetVendorsDetails.ts
40701
- function vendorsGetVendorsDetails(client, request, options) {
40702
- return new APIPromise($do15(client, request, options));
41607
+ // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
41608
+ function vendorsListVendorAdditionalFacilityFields(client, request, options) {
41609
+ return new APIPromise($do19(client, request, options));
40703
41610
  }
40704
- async function $do15(client, request, options) {
40705
- const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41611
+ async function $do19(client, request, options) {
41612
+ const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
40706
41613
  if (!parsed.ok) {
40707
- return [parsed, { status: "invalid" }];
41614
+ return [haltIterator(parsed), { status: "invalid" }];
40708
41615
  }
40709
41616
  const payload = parsed.value;
40710
41617
  const body = null;
@@ -40714,10 +41621,13 @@ async function $do15(client, request, options) {
40714
41621
  charEncoding: "percent"
40715
41622
  })
40716
41623
  };
40717
- const path = pathToFunc("/vendors/{vendor_id_or_me}")(pathParams);
41624
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/additional-facility-fields")(pathParams);
40718
41625
  const query = encodeFormQuery({
40719
- expand: payload.expand
40720
- }, { explode: false });
41626
+ desc: payload.desc,
41627
+ items_per_page: payload.items_per_page,
41628
+ page: payload.page,
41629
+ sort: payload.sort
41630
+ });
40721
41631
  const headers = new Headers(compactMap({
40722
41632
  Accept: "application/json"
40723
41633
  }));
@@ -40725,8 +41635,8 @@ async function $do15(client, request, options) {
40725
41635
  const requestSecurity = resolveGlobalSecurity(securityInput);
40726
41636
  const context = {
40727
41637
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40728
- operationID: "getVendorsDetails",
40729
- oAuth2Scopes: [],
41638
+ operationID: "listVendorAdditionalFacilityFields",
41639
+ oAuth2Scopes: null,
40730
41640
  resolvedSecurity: requestSecurity,
40731
41641
  securitySource: client._options.security,
40732
41642
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40743,79 +41653,94 @@ async function $do15(client, request, options) {
40743
41653
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40744
41654
  }, options);
40745
41655
  if (!requestRes.ok) {
40746
- return [requestRes, { status: "invalid" }];
41656
+ return [haltIterator(requestRes), { status: "invalid" }];
40747
41657
  }
40748
41658
  const req = requestRes.value;
40749
41659
  const doResult = await client._do(req, {
40750
41660
  context,
40751
- errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
41661
+ errorCodes: ["400", "401", "4XX", "500", "5XX"],
40752
41662
  retryConfig: context.retryConfig,
40753
41663
  retryCodes: context.retryCodes
40754
41664
  });
40755
41665
  if (!doResult.ok) {
40756
- return [doResult, { status: "request-error", request: req }];
41666
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40757
41667
  }
40758
41668
  const response = doResult.value;
40759
41669
  const responseFields = {
40760
41670
  HttpMeta: { Response: response, Request: req }
40761
41671
  };
40762
- const [result] = await match(json(200, Vendor$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41672
+ const [result, raw] = await match(json(200, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, { key: "Result" }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40763
41673
  if (!result.ok) {
40764
- return [result, { status: "complete", request: req, response }];
41674
+ return [haltIterator(result), {
41675
+ status: "complete",
41676
+ request: req,
41677
+ response
41678
+ }];
40765
41679
  }
40766
- return [result, { status: "complete", request: req, response }];
41680
+ const nextFunc = (responseData) => {
41681
+ const page2 = request?.page ?? 1;
41682
+ const nextPage = page2 + 1;
41683
+ if (!responseData) {
41684
+ return { next: () => null };
41685
+ }
41686
+ const results = dlv(responseData, "items");
41687
+ if (!Array.isArray(results) || !results.length) {
41688
+ return { next: () => null };
41689
+ }
41690
+ const limit = request?.itemsPerPage ?? 0;
41691
+ if (results.length < limit) {
41692
+ return { next: () => null };
41693
+ }
41694
+ const nextVal = () => vendorsListVendorAdditionalFacilityFields(client, {
41695
+ ...request,
41696
+ page: nextPage
41697
+ }, options);
41698
+ return { next: nextVal, "~next": { page: nextPage } };
41699
+ };
41700
+ const page = { ...result, ...nextFunc(raw) };
41701
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
41702
+ status: "complete",
41703
+ request: req,
41704
+ response
41705
+ }];
40767
41706
  }
40768
- var init_vendorsGetVendorsDetails = __esm(() => {
41707
+ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
40769
41708
  init_encodings();
40770
41709
  init_matchers();
40771
41710
  init_primitives();
40772
41711
  init_schemas();
40773
41712
  init_security();
40774
41713
  init_url();
40775
- init_components();
40776
41714
  init_errors();
40777
41715
  init_operations();
40778
41716
  init_async();
41717
+ init_operations2();
40779
41718
  });
40780
41719
 
40781
- // src/mcp-server/tools/vendorsGetVendorsDetails.ts
40782
- var args14, tool$vendorsGetVendorsDetails;
40783
- var init_vendorsGetVendorsDetails2 = __esm(() => {
40784
- init_vendorsGetVendorsDetails();
41720
+ // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
41721
+ var args18, tool$vendorsListVendorAdditionalFacilityFields;
41722
+ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
41723
+ init_vendorsListVendorAdditionalFacilityFields();
40785
41724
  init_operations();
40786
41725
  init_tools();
40787
- args14 = {
40788
- request: GetVendorsDetailsRequest$inboundSchema
41726
+ args18 = {
41727
+ request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
40789
41728
  };
40790
- tool$vendorsGetVendorsDetails = {
40791
- name: "vendors-get-vendors-details",
40792
- description: `Get vendors details
40793
-
40794
- Retrieve an individual vendor detais.
41729
+ tool$vendorsListVendorAdditionalFacilityFields = {
41730
+ name: "vendors-list-vendor-additional-facility-fields",
41731
+ description: `List of vendor's additional facility fields
40795
41732
 
40796
- Available \`expand\` scopes are:
40797
-
40798
- vendor.user
40799
- vendor.vendor_type
40800
- vendor.image_urls
40801
- vendor.payment_profile
40802
- vendor.primary_facility
40803
- vendor.primary_department
40804
- vendor.company
40805
- vendor.credentialing_subscription
40806
- vendor.scrubs_subscription
40807
- vendor.payment_responsibility
40808
- vendor.background_check_date_expires`,
40809
- args: args14,
40810
- tool: async (client, args15, ctx) => {
40811
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41733
+ List of vendor's additional facility fields`,
41734
+ args: args18,
41735
+ tool: async (client, args19, ctx) => {
41736
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40812
41737
  if (!result.ok) {
40813
41738
  return {
40814
41739
  content: [{ type: "text", text: result.error.message }],
40815
41740
  isError: true
40816
41741
  };
40817
41742
  }
40818
- const value = result.value;
41743
+ const value = result.value.result;
40819
41744
  return formatResult(value, apiCall);
40820
41745
  }
40821
41746
  };
@@ -40823,9 +41748,9 @@ vendor.background_check_date_expires`,
40823
41748
 
40824
41749
  // src/funcs/vendorsListVendorCredentials.ts
40825
41750
  function vendorsListVendorCredentials(client, request, options) {
40826
- return new APIPromise($do16(client, request, options));
41751
+ return new APIPromise($do20(client, request, options));
40827
41752
  }
40828
- async function $do16(client, request, options) {
41753
+ async function $do20(client, request, options) {
40829
41754
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
40830
41755
  if (!parsed.ok) {
40831
41756
  return [haltIterator(parsed), { status: "invalid" }];
@@ -40858,7 +41783,7 @@ async function $do16(client, request, options) {
40858
41783
  const context = {
40859
41784
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40860
41785
  operationID: "listVendorCredentials",
40861
- oAuth2Scopes: [],
41786
+ oAuth2Scopes: null,
40862
41787
  resolvedSecurity: requestSecurity,
40863
41788
  securitySource: client._options.security,
40864
41789
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40941,12 +41866,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
40941
41866
  });
40942
41867
 
40943
41868
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
40944
- var args15, tool$vendorsListVendorCredentials;
41869
+ var args19, tool$vendorsListVendorCredentials;
40945
41870
  var init_vendorsListVendorCredentials2 = __esm(() => {
40946
41871
  init_vendorsListVendorCredentials();
40947
41872
  init_operations();
40948
41873
  init_tools();
40949
- args15 = {
41874
+ args19 = {
40950
41875
  request: ListVendorCredentialsRequest$inboundSchema
40951
41876
  };
40952
41877
  tool$vendorsListVendorCredentials = {
@@ -40954,9 +41879,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
40954
41879
  description: `List Vendor Credentials
40955
41880
 
40956
41881
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
40957
- args: args15,
40958
- tool: async (client, args16, ctx) => {
40959
- const [result, apiCall] = await vendorsListVendorCredentials(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41882
+ args: args19,
41883
+ tool: async (client, args20, ctx) => {
41884
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40960
41885
  if (!result.ok) {
40961
41886
  return {
40962
41887
  content: [{ type: "text", text: result.error.message }],
@@ -40971,9 +41896,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
40971
41896
 
40972
41897
  // src/funcs/vendorsListVendorCredits.ts
40973
41898
  function vendorsListVendorCredits(client, request, options) {
40974
- return new APIPromise($do17(client, request, options));
41899
+ return new APIPromise($do21(client, request, options));
40975
41900
  }
40976
- async function $do17(client, request, options) {
41901
+ async function $do21(client, request, options) {
40977
41902
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
40978
41903
  if (!parsed.ok) {
40979
41904
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41001,7 +41926,7 @@ async function $do17(client, request, options) {
41001
41926
  const context = {
41002
41927
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41003
41928
  operationID: "listVendorCredits",
41004
- oAuth2Scopes: [],
41929
+ oAuth2Scopes: null,
41005
41930
  resolvedSecurity: requestSecurity,
41006
41931
  securitySource: client._options.security,
41007
41932
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41085,12 +42010,12 @@ var init_vendorsListVendorCredits = __esm(() => {
41085
42010
  });
41086
42011
 
41087
42012
  // src/mcp-server/tools/vendorsListVendorCredits.ts
41088
- var args16, tool$vendorsListVendorCredits;
42013
+ var args20, tool$vendorsListVendorCredits;
41089
42014
  var init_vendorsListVendorCredits2 = __esm(() => {
41090
42015
  init_vendorsListVendorCredits();
41091
42016
  init_operations();
41092
42017
  init_tools();
41093
- args16 = {
42018
+ args20 = {
41094
42019
  request: ListVendorCreditsRequest$inboundSchema
41095
42020
  };
41096
42021
  tool$vendorsListVendorCredits = {
@@ -41098,9 +42023,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
41098
42023
  description: `List vendor credits
41099
42024
 
41100
42025
  List the credits for the vendor`,
41101
- args: args16,
41102
- tool: async (client, args17, ctx) => {
41103
- const [result, apiCall] = await vendorsListVendorCredits(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42026
+ args: args20,
42027
+ tool: async (client, args21, ctx) => {
42028
+ const [result, apiCall] = await vendorsListVendorCredits(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41104
42029
  if (!result.ok) {
41105
42030
  return {
41106
42031
  content: [{ type: "text", text: result.error.message }],
@@ -41115,9 +42040,9 @@ List the credits for the vendor`,
41115
42040
 
41116
42041
  // src/funcs/vendorsListVendorFacilityStatuses.ts
41117
42042
  function vendorsListVendorFacilityStatuses(client, request, options) {
41118
- return new APIPromise($do18(client, request, options));
42043
+ return new APIPromise($do22(client, request, options));
41119
42044
  }
41120
- async function $do18(client, request, options) {
42045
+ async function $do22(client, request, options) {
41121
42046
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
41122
42047
  if (!parsed.ok) {
41123
42048
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41140,7 +42065,7 @@ async function $do18(client, request, options) {
41140
42065
  const context = {
41141
42066
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41142
42067
  operationID: "listVendorFacilityStatuses",
41143
- oAuth2Scopes: [],
42068
+ oAuth2Scopes: null,
41144
42069
  resolvedSecurity: requestSecurity,
41145
42070
  securitySource: client._options.security,
41146
42071
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41224,12 +42149,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
41224
42149
  });
41225
42150
 
41226
42151
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
41227
- var args17, tool$vendorsListVendorFacilityStatuses;
42152
+ var args21, tool$vendorsListVendorFacilityStatuses;
41228
42153
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41229
42154
  init_vendorsListVendorFacilityStatuses();
41230
42155
  init_operations();
41231
42156
  init_tools();
41232
- args17 = {
42157
+ args21 = {
41233
42158
  request: ListVendorFacilityStatusesRequest$inboundSchema
41234
42159
  };
41235
42160
  tool$vendorsListVendorFacilityStatuses = {
@@ -41237,9 +42162,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41237
42162
  description: `List vendor facility statuses
41238
42163
 
41239
42164
  List the facilities for the vendor`,
41240
- args: args17,
41241
- tool: async (client, args18, ctx) => {
41242
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42165
+ args: args21,
42166
+ tool: async (client, args22, ctx) => {
42167
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41243
42168
  if (!result.ok) {
41244
42169
  return {
41245
42170
  content: [{ type: "text", text: result.error.message }],
@@ -41254,9 +42179,9 @@ List the facilities for the vendor`,
41254
42179
 
41255
42180
  // src/funcs/vendorsListVendorInvoices.ts
41256
42181
  function vendorsListVendorInvoices(client, request, options) {
41257
- return new APIPromise($do19(client, request, options));
42182
+ return new APIPromise($do23(client, request, options));
41258
42183
  }
41259
- async function $do19(client, request, options) {
42184
+ async function $do23(client, request, options) {
41260
42185
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
41261
42186
  if (!parsed.ok) {
41262
42187
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41286,7 +42211,7 @@ async function $do19(client, request, options) {
41286
42211
  const context = {
41287
42212
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41288
42213
  operationID: "listVendorInvoices",
41289
- oAuth2Scopes: [],
42214
+ oAuth2Scopes: null,
41290
42215
  resolvedSecurity: requestSecurity,
41291
42216
  securitySource: client._options.security,
41292
42217
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41370,12 +42295,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
41370
42295
  });
41371
42296
 
41372
42297
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
41373
- var args18, tool$vendorsListVendorInvoices;
42298
+ var args22, tool$vendorsListVendorInvoices;
41374
42299
  var init_vendorsListVendorInvoices2 = __esm(() => {
41375
42300
  init_vendorsListVendorInvoices();
41376
42301
  init_operations();
41377
42302
  init_tools();
41378
- args18 = {
42303
+ args22 = {
41379
42304
  request: ListVendorInvoicesRequest$inboundSchema
41380
42305
  };
41381
42306
  tool$vendorsListVendorInvoices = {
@@ -41387,9 +42312,9 @@ List invoices for Vendors
41387
42312
  Available \`expand\` scopes are:
41388
42313
 
41389
42314
  invoice.line_items`,
41390
- args: args18,
41391
- tool: async (client, args19, ctx) => {
41392
- const [result, apiCall] = await vendorsListVendorInvoices(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42315
+ args: args22,
42316
+ tool: async (client, args23, ctx) => {
42317
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41393
42318
  if (!result.ok) {
41394
42319
  return {
41395
42320
  content: [{ type: "text", text: result.error.message }],
@@ -41404,9 +42329,9 @@ invoice.line_items`,
41404
42329
 
41405
42330
  // src/funcs/vendorsListVendorScrubDetails.ts
41406
42331
  function vendorsListVendorScrubDetails(client, request, options) {
41407
- return new APIPromise($do20(client, request, options));
42332
+ return new APIPromise($do24(client, request, options));
41408
42333
  }
41409
- async function $do20(client, request, options) {
42334
+ async function $do24(client, request, options) {
41410
42335
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41411
42336
  if (!parsed.ok) {
41412
42337
  return [parsed, { status: "invalid" }];
@@ -41428,7 +42353,7 @@ async function $do20(client, request, options) {
41428
42353
  const context = {
41429
42354
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41430
42355
  operationID: "listVendorScrubDetails",
41431
- oAuth2Scopes: [],
42356
+ oAuth2Scopes: null,
41432
42357
  resolvedSecurity: requestSecurity,
41433
42358
  securitySource: client._options.security,
41434
42359
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41480,12 +42405,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
41480
42405
  });
41481
42406
 
41482
42407
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
41483
- var args19, tool$vendorsListVendorScrubDetails;
42408
+ var args23, tool$vendorsListVendorScrubDetails;
41484
42409
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
41485
42410
  init_vendorsListVendorScrubDetails();
41486
42411
  init_operations();
41487
42412
  init_tools();
41488
- args19 = {
42413
+ args23 = {
41489
42414
  request: ListVendorScrubDetailsRequest$inboundSchema
41490
42415
  };
41491
42416
  tool$vendorsListVendorScrubDetails = {
@@ -41493,9 +42418,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
41493
42418
  description: `List vendor scrub details
41494
42419
 
41495
42420
  List vendor scrub details`,
41496
- args: args19,
41497
- tool: async (client, args20, ctx) => {
41498
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42421
+ args: args23,
42422
+ tool: async (client, args24, ctx) => {
42423
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41499
42424
  if (!result.ok) {
41500
42425
  return {
41501
42426
  content: [{ type: "text", text: result.error.message }],
@@ -41510,9 +42435,9 @@ List vendor scrub details`,
41510
42435
 
41511
42436
  // src/funcs/vendorsListVendorScrubPurchases.ts
41512
42437
  function vendorsListVendorScrubPurchases(client, request, options) {
41513
- return new APIPromise($do21(client, request, options));
42438
+ return new APIPromise($do25(client, request, options));
41514
42439
  }
41515
- async function $do21(client, request, options) {
42440
+ async function $do25(client, request, options) {
41516
42441
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
41517
42442
  if (!parsed.ok) {
41518
42443
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41540,7 +42465,7 @@ async function $do21(client, request, options) {
41540
42465
  const context = {
41541
42466
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41542
42467
  operationID: "listVendorScrubPurchases",
41543
- oAuth2Scopes: [],
42468
+ oAuth2Scopes: null,
41544
42469
  resolvedSecurity: requestSecurity,
41545
42470
  securitySource: client._options.security,
41546
42471
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41624,12 +42549,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
41624
42549
  });
41625
42550
 
41626
42551
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
41627
- var args20, tool$vendorsListVendorScrubPurchases;
42552
+ var args24, tool$vendorsListVendorScrubPurchases;
41628
42553
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41629
42554
  init_vendorsListVendorScrubPurchases();
41630
42555
  init_operations();
41631
42556
  init_tools();
41632
- args20 = {
42557
+ args24 = {
41633
42558
  request: ListVendorScrubPurchasesRequest$inboundSchema
41634
42559
  };
41635
42560
  tool$vendorsListVendorScrubPurchases = {
@@ -41637,9 +42562,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41637
42562
  description: `List vendor scrub purchases
41638
42563
 
41639
42564
  List vendor scrub purchases`,
41640
- args: args20,
41641
- tool: async (client, args21, ctx) => {
41642
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42565
+ args: args24,
42566
+ tool: async (client, args25, ctx) => {
42567
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41643
42568
  if (!result.ok) {
41644
42569
  return {
41645
42570
  content: [{ type: "text", text: result.error.message }],
@@ -41652,11 +42577,117 @@ List vendor scrub purchases`,
41652
42577
  };
41653
42578
  });
41654
42579
 
42580
+ // src/funcs/vendorsUpdateVendorManagedByCompany.ts
42581
+ function vendorsUpdateVendorManagedByCompany(client, request, options) {
42582
+ return new APIPromise($do26(client, request, options));
42583
+ }
42584
+ async function $do26(client, request, options) {
42585
+ const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
42586
+ if (!parsed.ok) {
42587
+ return [parsed, { status: "invalid" }];
42588
+ }
42589
+ const payload = parsed.value;
42590
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
42591
+ const pathParams = {
42592
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
42593
+ explode: false,
42594
+ charEncoding: "percent"
42595
+ })
42596
+ };
42597
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
42598
+ const headers = new Headers(compactMap({
42599
+ "Content-Type": "application/json",
42600
+ Accept: "application/json"
42601
+ }));
42602
+ const securityInput = await extractSecurity(client._options.security);
42603
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42604
+ const context = {
42605
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
42606
+ operationID: "updateVendorManagedByCompany",
42607
+ oAuth2Scopes: null,
42608
+ resolvedSecurity: requestSecurity,
42609
+ securitySource: client._options.security,
42610
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
42611
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
42612
+ };
42613
+ const requestRes = client._createRequest(context, {
42614
+ security: requestSecurity,
42615
+ method: "PUT",
42616
+ baseURL: options?.serverURL,
42617
+ path,
42618
+ headers,
42619
+ body,
42620
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
42621
+ }, options);
42622
+ if (!requestRes.ok) {
42623
+ return [requestRes, { status: "invalid" }];
42624
+ }
42625
+ const req = requestRes.value;
42626
+ const doResult = await client._do(req, {
42627
+ context,
42628
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
42629
+ retryConfig: context.retryConfig,
42630
+ retryCodes: context.retryCodes
42631
+ });
42632
+ if (!doResult.ok) {
42633
+ return [doResult, { status: "request-error", request: req }];
42634
+ }
42635
+ const response = doResult.value;
42636
+ const responseFields = {
42637
+ HttpMeta: { Response: response, Request: req }
42638
+ };
42639
+ const [result] = await match(json(200, UpdateVendorManagedByCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42640
+ if (!result.ok) {
42641
+ return [result, { status: "complete", request: req, response }];
42642
+ }
42643
+ return [result, { status: "complete", request: req, response }];
42644
+ }
42645
+ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
42646
+ init_encodings();
42647
+ init_matchers();
42648
+ init_primitives();
42649
+ init_schemas();
42650
+ init_security();
42651
+ init_url();
42652
+ init_errors();
42653
+ init_operations();
42654
+ init_async();
42655
+ });
42656
+
42657
+ // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
42658
+ var args25, tool$vendorsUpdateVendorManagedByCompany;
42659
+ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
42660
+ init_vendorsUpdateVendorManagedByCompany();
42661
+ init_operations();
42662
+ init_tools();
42663
+ args25 = {
42664
+ request: UpdateVendorManagedByCompanyRequest$inboundSchema
42665
+ };
42666
+ tool$vendorsUpdateVendorManagedByCompany = {
42667
+ name: "vendors-update-vendor-managed-by-company",
42668
+ description: `Update vendor managed by company access rights
42669
+
42670
+ It will update the vendor managed by company access rights`,
42671
+ args: args25,
42672
+ tool: async (client, args26, ctx) => {
42673
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42674
+ if (!result.ok) {
42675
+ return {
42676
+ content: [{ type: "text", text: result.error.message }],
42677
+ isError: true
42678
+ };
42679
+ }
42680
+ const value = result.value;
42681
+ return formatResult(value, apiCall);
42682
+ }
42683
+ };
42684
+ });
42685
+
41655
42686
  // src/funcs/webhooksGetWebhookEndpoint.ts
41656
42687
  function webhooksGetWebhookEndpoint(client, request, options) {
41657
- return new APIPromise($do22(client, request, options));
42688
+ return new APIPromise($do27(client, request, options));
41658
42689
  }
41659
- async function $do22(client, request, options) {
42690
+ async function $do27(client, request, options) {
41660
42691
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
41661
42692
  if (!parsed.ok) {
41662
42693
  return [parsed, { status: "invalid" }];
@@ -41678,7 +42709,7 @@ async function $do22(client, request, options) {
41678
42709
  const context = {
41679
42710
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41680
42711
  operationID: "getWebhookEndpoint",
41681
- oAuth2Scopes: [],
42712
+ oAuth2Scopes: null,
41682
42713
  resolvedSecurity: requestSecurity,
41683
42714
  securitySource: client._options.security,
41684
42715
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41730,12 +42761,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
41730
42761
  });
41731
42762
 
41732
42763
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
41733
- var args21, tool$webhooksGetWebhookEndpoint;
42764
+ var args26, tool$webhooksGetWebhookEndpoint;
41734
42765
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41735
42766
  init_webhooksGetWebhookEndpoint();
41736
42767
  init_operations();
41737
42768
  init_tools();
41738
- args21 = {
42769
+ args26 = {
41739
42770
  request: GetWebhookEndpointRequest$inboundSchema
41740
42771
  };
41741
42772
  tool$webhooksGetWebhookEndpoint = {
@@ -41743,9 +42774,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41743
42774
  description: `Retrieves the webhook endpoint with the given ID.
41744
42775
 
41745
42776
  Returns the definition of a webhook endpoint by ID.`,
41746
- args: args21,
41747
- tool: async (client, args22, ctx) => {
41748
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42777
+ args: args26,
42778
+ tool: async (client, args27, ctx) => {
42779
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41749
42780
  if (!result.ok) {
41750
42781
  return {
41751
42782
  content: [{ type: "text", text: result.error.message }],
@@ -41760,9 +42791,9 @@ Returns the definition of a webhook endpoint by ID.`,
41760
42791
 
41761
42792
  // src/funcs/webhooksListAllWebhookEndpoints.ts
41762
42793
  function webhooksListAllWebhookEndpoints(client, request, options) {
41763
- return new APIPromise($do23(client, request, options));
42794
+ return new APIPromise($do28(client, request, options));
41764
42795
  }
41765
- async function $do23(client, request, options) {
42796
+ async function $do28(client, request, options) {
41766
42797
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
41767
42798
  if (!parsed.ok) {
41768
42799
  return [parsed, { status: "invalid" }];
@@ -41784,7 +42815,7 @@ async function $do23(client, request, options) {
41784
42815
  const context = {
41785
42816
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41786
42817
  operationID: "listAllWebhookEndpoints",
41787
- oAuth2Scopes: [],
42818
+ oAuth2Scopes: null,
41788
42819
  resolvedSecurity: requestSecurity,
41789
42820
  securitySource: client._options.security,
41790
42821
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41836,12 +42867,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
41836
42867
  });
41837
42868
 
41838
42869
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
41839
- var args22, tool$webhooksListAllWebhookEndpoints;
42870
+ var args27, tool$webhooksListAllWebhookEndpoints;
41840
42871
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
41841
42872
  init_webhooksListAllWebhookEndpoints();
41842
42873
  init_operations();
41843
42874
  init_tools();
41844
- args22 = {
42875
+ args27 = {
41845
42876
  request: ListAllWebhookEndpointsRequest$inboundSchema
41846
42877
  };
41847
42878
  tool$webhooksListAllWebhookEndpoints = {
@@ -41849,9 +42880,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
41849
42880
  description: `List all webhook endpoints
41850
42881
 
41851
42882
  Returns a list of your webhook endpoints.`,
41852
- args: args22,
41853
- tool: async (client, args23, ctx) => {
41854
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42883
+ args: args27,
42884
+ tool: async (client, args28, ctx) => {
42885
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41855
42886
  if (!result.ok) {
41856
42887
  return {
41857
42888
  content: [{ type: "text", text: result.error.message }],
@@ -41868,7 +42899,7 @@ Returns a list of your webhook endpoints.`,
41868
42899
  function createMCPServer(deps) {
41869
42900
  const server = new McpServer({
41870
42901
  name: "GreenSecurity",
41871
- version: "0.21.8"
42902
+ version: "0.22.1"
41872
42903
  });
41873
42904
  const client = new GreenSecurityCore({
41874
42905
  security: deps.security,
@@ -41892,6 +42923,10 @@ function createMCPServer(deps) {
41892
42923
  tool(tool$vendorsListVendorScrubDetails);
41893
42924
  tool(tool$vendorsGetVendorsDetails);
41894
42925
  tool(tool$vendorsListVendorCredits);
42926
+ tool(tool$vendorsListVendorAdditionalFacilityFields);
42927
+ tool(tool$vendorsAddVendorManagedByCompany);
42928
+ tool(tool$vendorsDeleteVendorManagedByCompany);
42929
+ tool(tool$vendorsUpdateVendorManagedByCompany);
41895
42930
  tool(tool$usersGetCurrentUser);
41896
42931
  tool(tool$usersGetUserById);
41897
42932
  tool(tool$usersLogsUserIntoTheSystem);
@@ -41905,6 +42940,7 @@ function createMCPServer(deps) {
41905
42940
  tool(tool$webhooksListAllWebhookEndpoints);
41906
42941
  tool(tool$webhooksGetWebhookEndpoint);
41907
42942
  tool(tool$vendorScansVendorScanOut);
42943
+ tool(tool$vendorManagedByCompaniesListVendorManagedByCompanies);
41908
42944
  return server;
41909
42945
  }
41910
42946
  var init_server2 = __esm(() => {
@@ -41923,17 +42959,22 @@ var init_server2 = __esm(() => {
41923
42959
  init_usersMagiclink2();
41924
42960
  init_usersPassword2();
41925
42961
  init_usersPasswordResetRequest2();
42962
+ init_vendorManagedByCompaniesListVendorManagedByCompanies2();
42963
+ init_vendorsAddVendorManagedByCompany2();
41926
42964
  init_vendorScansVendorScanOut2();
41927
42965
  init_vendorsCreateVendorRegistration2();
42966
+ init_vendorsDeleteVendorManagedByCompany2();
41928
42967
  init_vendorsExpediteTimeRemaining2();
41929
42968
  init_vendorsGetVendorInvoiceDetails2();
41930
42969
  init_vendorsGetVendorsDetails2();
42970
+ init_vendorsListVendorAdditionalFacilityFields2();
41931
42971
  init_vendorsListVendorCredentials2();
41932
42972
  init_vendorsListVendorCredits2();
41933
42973
  init_vendorsListVendorFacilityStatuses2();
41934
42974
  init_vendorsListVendorInvoices2();
41935
42975
  init_vendorsListVendorScrubDetails2();
41936
42976
  init_vendorsListVendorScrubPurchases2();
42977
+ init_vendorsUpdateVendorManagedByCompany2();
41937
42978
  init_webhooksGetWebhookEndpoint2();
41938
42979
  init_webhooksListAllWebhookEndpoints2();
41939
42980
  });
@@ -43133,7 +44174,7 @@ var routes = rn({
43133
44174
  var app = Ve(routes, {
43134
44175
  name: "mcp",
43135
44176
  versionInfo: {
43136
- currentVersion: "0.21.8"
44177
+ currentVersion: "0.22.1"
43137
44178
  }
43138
44179
  });
43139
44180
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -43141,5 +44182,5 @@ export {
43141
44182
  app
43142
44183
  };
43143
44184
 
43144
- //# debugId=14F0AE68447A696364756E2164756E21
44185
+ //# debugId=6F68FBCBFD2C6B3264756E2164756E21
43145
44186
  //# sourceMappingURL=mcp-server.js.map