@greensecurity/javascript-sdk 0.21.10 → 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 (212) hide show
  1. package/README.md +15 -0
  2. package/bin/mcp-server.js +974 -169
  3. package/bin/mcp-server.js.map +45 -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.js +1 -1
  47. package/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
  48. package/funcs/vendorsListVendorCredentials.js +1 -1
  49. package/funcs/vendorsListVendorCredentials.js.map +1 -1
  50. package/funcs/vendorsListVendorCredits.js +1 -1
  51. package/funcs/vendorsListVendorCredits.js.map +1 -1
  52. package/funcs/vendorsListVendorFacilityStatuses.js +1 -1
  53. package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  54. package/funcs/vendorsListVendorInvoices.js +1 -1
  55. package/funcs/vendorsListVendorInvoices.js.map +1 -1
  56. package/funcs/vendorsListVendorJobTitles.js +1 -1
  57. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  58. package/funcs/vendorsListVendorScrubDetails.js +1 -1
  59. package/funcs/vendorsListVendorScrubDetails.js.map +1 -1
  60. package/funcs/vendorsListVendorScrubPurchases.js +1 -1
  61. package/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
  62. package/funcs/vendorsUpdateVendorManagedByCompany.d.ts +17 -0
  63. package/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  64. package/funcs/vendorsUpdateVendorManagedByCompany.js +121 -0
  65. package/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  66. package/funcs/webhooksGetWebhookEndpoint.js +1 -1
  67. package/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  68. package/funcs/webhooksListAllWebhookEndpoints.js +1 -1
  69. package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
  70. package/hooks/types.d.ts +1 -1
  71. package/hooks/types.d.ts.map +1 -1
  72. package/jsr.json +1 -1
  73. package/lib/config.d.ts +3 -3
  74. package/lib/config.js +3 -3
  75. package/lib/config.js.map +1 -1
  76. package/mcp-server/mcp-server.js +1 -1
  77. package/mcp-server/mcp-server.js.map +1 -1
  78. package/mcp-server/server.d.ts.map +1 -1
  79. package/mcp-server/server.js +9 -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/vendorsUpdateVendorManagedByCompany.d.ts +8 -0
  94. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  95. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.js +64 -0
  96. package/mcp-server/tools/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  97. package/models/components/index.d.ts +1 -0
  98. package/models/components/index.d.ts.map +1 -1
  99. package/models/components/index.js +1 -0
  100. package/models/components/index.js.map +1 -1
  101. package/models/components/vendormanagedbycompany.d.ts +72 -0
  102. package/models/components/vendormanagedbycompany.d.ts.map +1 -0
  103. package/models/components/vendormanagedbycompany.js +136 -0
  104. package/models/components/vendormanagedbycompany.js.map +1 -0
  105. package/models/operations/addvendormanagedbycompany.d.ts +90 -0
  106. package/models/operations/addvendormanagedbycompany.d.ts.map +1 -0
  107. package/models/operations/addvendormanagedbycompany.js +144 -0
  108. package/models/operations/addvendormanagedbycompany.js.map +1 -0
  109. package/models/operations/deletevendormanagedbycompany.d.ts +90 -0
  110. package/models/operations/deletevendormanagedbycompany.d.ts.map +1 -0
  111. package/models/operations/deletevendormanagedbycompany.js +144 -0
  112. package/models/operations/deletevendormanagedbycompany.js.map +1 -0
  113. package/models/operations/index.d.ts +4 -0
  114. package/models/operations/index.d.ts.map +1 -1
  115. package/models/operations/index.js +4 -0
  116. package/models/operations/index.js.map +1 -1
  117. package/models/operations/listvendormanagedbycompanies.d.ts +111 -0
  118. package/models/operations/listvendormanagedbycompanies.d.ts.map +1 -0
  119. package/models/operations/listvendormanagedbycompanies.js +153 -0
  120. package/models/operations/listvendormanagedbycompanies.js.map +1 -0
  121. package/models/operations/updatevendormanagedbycompany.d.ts +125 -0
  122. package/models/operations/updatevendormanagedbycompany.d.ts.map +1 -0
  123. package/models/operations/updatevendormanagedbycompany.js +172 -0
  124. package/models/operations/updatevendormanagedbycompany.js.map +1 -0
  125. package/package.json +1 -1
  126. package/react-query/index.d.ts +4 -0
  127. package/react-query/index.d.ts.map +1 -1
  128. package/react-query/index.js +4 -0
  129. package/react-query/index.js.map +1 -1
  130. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts +77 -0
  131. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.d.ts.map +1 -0
  132. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.js +160 -0
  133. package/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.js.map +1 -0
  134. package/react-query/vendorsAddVendorManagedByCompany.d.ts +23 -0
  135. package/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -0
  136. package/react-query/vendorsAddVendorManagedByCompany.js +51 -0
  137. package/react-query/vendorsAddVendorManagedByCompany.js.map +1 -0
  138. package/react-query/vendorsDeleteVendorManagedByCompany.d.ts +23 -0
  139. package/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -0
  140. package/react-query/vendorsDeleteVendorManagedByCompany.js +51 -0
  141. package/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -0
  142. package/react-query/vendorsUpdateVendorManagedByCompany.d.ts +23 -0
  143. package/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -0
  144. package/react-query/vendorsUpdateVendorManagedByCompany.js +51 -0
  145. package/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -0
  146. package/sdk/sdk.d.ts +3 -0
  147. package/sdk/sdk.d.ts.map +1 -1
  148. package/sdk/sdk.js +4 -0
  149. package/sdk/sdk.js.map +1 -1
  150. package/sdk/vendormanagedbycompanies.d.ts +15 -0
  151. package/sdk/vendormanagedbycompanies.d.ts.map +1 -0
  152. package/sdk/vendormanagedbycompanies.js +22 -0
  153. package/sdk/vendormanagedbycompanies.js.map +1 -0
  154. package/sdk/vendors.d.ts +21 -0
  155. package/sdk/vendors.d.ts.map +1 -1
  156. package/sdk/vendors.js +30 -0
  157. package/sdk/vendors.js.map +1 -1
  158. package/src/__tests__/vendormanagedbycompanies.test.ts +44 -0
  159. package/src/__tests__/vendors.test.ts +68 -1
  160. package/src/__tests__/webhooks.test.ts +1 -1
  161. package/src/funcs/organizationsGetFacility.ts +1 -1
  162. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -1
  163. package/src/funcs/supportArticlesGetSupportArticle.ts +1 -1
  164. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +1 -1
  165. package/src/funcs/usersGetCurrentUser.ts +1 -1
  166. package/src/funcs/usersGetUserById.ts +1 -1
  167. package/src/funcs/usersLogsUserIntoTheSystem.ts +1 -1
  168. package/src/funcs/usersMagiclink.ts +1 -1
  169. package/src/funcs/usersPassword.ts +1 -1
  170. package/src/funcs/usersPasswordResetRequest.ts +1 -1
  171. package/src/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.ts +256 -0
  172. package/src/funcs/vendorScansVendorScanOut.ts +1 -1
  173. package/src/funcs/vendorsAddVendorManagedByCompany.ts +176 -0
  174. package/src/funcs/vendorsCreateVendorRegistration.ts +1 -1
  175. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +181 -0
  176. package/src/funcs/vendorsExpediteTimeRemaining.ts +1 -1
  177. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +1 -1
  178. package/src/funcs/vendorsGetVendorsDetails.ts +1 -1
  179. package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +1 -1
  180. package/src/funcs/vendorsListVendorCredentials.ts +1 -1
  181. package/src/funcs/vendorsListVendorCredits.ts +1 -1
  182. package/src/funcs/vendorsListVendorFacilityStatuses.ts +1 -1
  183. package/src/funcs/vendorsListVendorInvoices.ts +1 -1
  184. package/src/funcs/vendorsListVendorJobTitles.ts +1 -1
  185. package/src/funcs/vendorsListVendorScrubDetails.ts +1 -1
  186. package/src/funcs/vendorsListVendorScrubPurchases.ts +1 -1
  187. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +181 -0
  188. package/src/funcs/webhooksGetWebhookEndpoint.ts +1 -1
  189. package/src/funcs/webhooksListAllWebhookEndpoints.ts +1 -1
  190. package/src/hooks/types.ts +1 -1
  191. package/src/lib/config.ts +3 -3
  192. package/src/mcp-server/mcp-server.ts +1 -1
  193. package/src/mcp-server/server.ts +9 -1
  194. package/src/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.ts +39 -0
  195. package/src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts +39 -0
  196. package/src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts +39 -0
  197. package/src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts +39 -0
  198. package/src/models/components/index.ts +1 -0
  199. package/src/models/components/vendormanagedbycompany.ts +184 -0
  200. package/src/models/operations/addvendormanagedbycompany.ts +228 -0
  201. package/src/models/operations/deletevendormanagedbycompany.ts +245 -0
  202. package/src/models/operations/index.ts +4 -0
  203. package/src/models/operations/listvendormanagedbycompanies.ts +264 -0
  204. package/src/models/operations/updatevendormanagedbycompany.ts +308 -0
  205. package/src/react-query/index.ts +4 -0
  206. package/src/react-query/vendorManagedByCompaniesListVendorManagedByCompanies.ts +377 -0
  207. package/src/react-query/vendorsAddVendorManagedByCompany.ts +93 -0
  208. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +93 -0
  209. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +93 -0
  210. package/src/sdk/sdk.ts +8 -0
  211. package/src/sdk/vendormanagedbycompanies.ts +34 -0
  212. package/src/sdk/vendors.ts +54 -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.10",
34176
- genVersion: "2.560.1",
34177
- userAgent: "speakeasy-sdk/typescript 0.21.10 2.560.1 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
 
@@ -37699,6 +37699,71 @@ var init_vendorjobtitle = __esm(() => {
37699
37699
  })(VendorJobTitle$ ||= {});
37700
37700
  });
37701
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
+
37702
37767
  // src/models/components/vendorrequiredcredential.ts
37703
37768
  var VendorRequiredCredential$inboundSchema, VendorRequiredCredential$outboundSchema, VendorRequiredCredential$;
37704
37769
  var init_vendorrequiredcredential = __esm(() => {
@@ -37929,6 +37994,7 @@ var init_components = __esm(() => {
37929
37994
  init_vendorcredentialslim();
37930
37995
  init_vendorfacilitystatusview();
37931
37996
  init_vendorjobtitle();
37997
+ init_vendormanagedbycompany();
37932
37998
  init_vendorrequiredcredential();
37933
37999
  init_vendorscrubdetails();
37934
38000
  init_vendorscrubpurchase();
@@ -37982,6 +38048,63 @@ var init_errors = __esm(() => {
37982
38048
  init_sdkvalidationerror();
37983
38049
  });
37984
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
+
37985
38108
  // src/models/operations/createvendorregistration.ts
37986
38109
  var CreateVendorRegistrationRequestBody$inboundSchema, CreateVendorRegistrationRequestBody$outboundSchema, CreateVendorRegistrationRequestBody$, Data$inboundSchema, Data$outboundSchema, Data$, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema, CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema, CreateVendorRegistrationCreateVendorRegistrationCreated$;
37987
38110
  var init_createvendorregistration = __esm(() => {
@@ -38037,6 +38160,63 @@ var init_createvendorregistration = __esm(() => {
38037
38160
  })(CreateVendorRegistrationCreateVendorRegistrationCreated$ ||= {});
38038
38161
  });
38039
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
+
38040
38220
  // src/models/operations/expeditetimeremaining.ts
38041
38221
  var ExpediteTimeRemainingRequest$inboundSchema, ExpediteTimeRemainingRequest$outboundSchema, ExpediteTimeRemainingRequest$, ExpediteTimeRemainingResponseBody$inboundSchema, ExpediteTimeRemainingResponseBody$outboundSchema, ExpediteTimeRemainingResponseBody$;
38042
38222
  var init_expeditetimeremaining = __esm(() => {
@@ -38858,6 +39038,72 @@ var init_listvendorjobtitles = __esm(() => {
38858
39038
  })(ListVendorJobTitlesResponse$ ||= {});
38859
39039
  });
38860
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
+
38861
39107
  // src/models/operations/listvendorscrubdetails.ts
38862
39108
  var ListVendorScrubDetailsRequest$inboundSchema, ListVendorScrubDetailsRequest$outboundSchema, ListVendorScrubDetailsRequest$;
38863
39109
  var init_listvendorscrubdetails = __esm(() => {
@@ -39115,6 +39361,91 @@ var init_passwordresetrequest = __esm(() => {
39115
39361
  })(PasswordResetRequestPasswordResetRequestOk$ ||= {});
39116
39362
  });
39117
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
+
39118
39449
  // src/models/operations/vendorscanout.ts
39119
39450
  var VendorScanOutRequest$inboundSchema, VendorScanOutRequest$outboundSchema, VendorScanOutRequest$, VendorScanOutResponseBody$inboundSchema, VendorScanOutResponseBody$outboundSchema, VendorScanOutResponseBody$;
39120
39451
  var init_vendorscanout = __esm(() => {
@@ -39147,7 +39478,9 @@ var init_vendorscanout = __esm(() => {
39147
39478
 
39148
39479
  // src/models/operations/index.ts
39149
39480
  var init_operations = __esm(() => {
39481
+ init_addvendormanagedbycompany();
39150
39482
  init_createvendorregistration();
39483
+ init_deletevendormanagedbycompany();
39151
39484
  init_expeditetimeremaining();
39152
39485
  init_getfacility();
39153
39486
  init_getsupportarticle();
@@ -39164,12 +39497,14 @@ var init_operations = __esm(() => {
39164
39497
  init_listvendorfacilitystatuses();
39165
39498
  init_listvendorinvoices();
39166
39499
  init_listvendorjobtitles();
39500
+ init_listvendormanagedbycompanies();
39167
39501
  init_listvendorscrubdetails();
39168
39502
  init_listvendorscrubpurchases();
39169
39503
  init_logsuserintothesystem();
39170
39504
  init_magiclink();
39171
39505
  init_password();
39172
39506
  init_passwordresetrequest();
39507
+ init_updatevendormanagedbycompany();
39173
39508
  init_vendorscanout();
39174
39509
  });
39175
39510
 
@@ -39225,7 +39560,7 @@ async function $do(client, request, options) {
39225
39560
  const context = {
39226
39561
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39227
39562
  operationID: "getFacility",
39228
- oAuth2Scopes: [],
39563
+ oAuth2Scopes: null,
39229
39564
  resolvedSecurity: requestSecurity,
39230
39565
  securitySource: client._options.security,
39231
39566
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39369,7 +39704,7 @@ async function $do2(client, request, options) {
39369
39704
  const context = {
39370
39705
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39371
39706
  operationID: "listOrSearchFacilities",
39372
- oAuth2Scopes: [],
39707
+ oAuth2Scopes: null,
39373
39708
  resolvedSecurity: requestSecurity,
39374
39709
  securitySource: client._options.security,
39375
39710
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39523,7 +39858,7 @@ async function $do3(client, request, options) {
39523
39858
  const context = {
39524
39859
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39525
39860
  operationID: "getSupportArticle",
39526
- oAuth2Scopes: [],
39861
+ oAuth2Scopes: null,
39527
39862
  resolvedSecurity: requestSecurity,
39528
39863
  securitySource: client._options.security,
39529
39864
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39639,7 +39974,7 @@ async function $do4(client, request, options) {
39639
39974
  const context = {
39640
39975
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39641
39976
  operationID: "listOrSearchSupportArticles",
39642
- oAuth2Scopes: [],
39977
+ oAuth2Scopes: null,
39643
39978
  resolvedSecurity: requestSecurity,
39644
39979
  securitySource: client._options.security,
39645
39980
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39764,7 +40099,7 @@ async function $do5(client, options) {
39764
40099
  const context = {
39765
40100
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39766
40101
  operationID: "getCurrentUser",
39767
- oAuth2Scopes: [],
40102
+ oAuth2Scopes: null,
39768
40103
  resolvedSecurity: requestSecurity,
39769
40104
  securitySource: client._options.security,
39770
40105
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39861,7 +40196,7 @@ async function $do6(client, request, options) {
39861
40196
  const context = {
39862
40197
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39863
40198
  operationID: "getUserById",
39864
- oAuth2Scopes: [],
40199
+ oAuth2Scopes: null,
39865
40200
  resolvedSecurity: requestSecurity,
39866
40201
  securitySource: client._options.security,
39867
40202
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39960,7 +40295,7 @@ async function $do7(client, request, options) {
39960
40295
  const context = {
39961
40296
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39962
40297
  operationID: "logsUserIntoTheSystem",
39963
- oAuth2Scopes: [],
40298
+ oAuth2Scopes: null,
39964
40299
  resolvedSecurity: null,
39965
40300
  securitySource: null,
39966
40301
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40088,7 +40423,7 @@ async function $do8(client, request, options) {
40088
40423
  const context = {
40089
40424
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40090
40425
  operationID: "magiclink",
40091
- oAuth2Scopes: [],
40426
+ oAuth2Scopes: null,
40092
40427
  resolvedSecurity: requestSecurity,
40093
40428
  securitySource: client._options.security,
40094
40429
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40188,7 +40523,7 @@ async function $do9(client, request, options) {
40188
40523
  const context = {
40189
40524
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40190
40525
  operationID: "password",
40191
- oAuth2Scopes: [],
40526
+ oAuth2Scopes: null,
40192
40527
  resolvedSecurity: requestSecurity,
40193
40528
  securitySource: client._options.security,
40194
40529
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40289,7 +40624,7 @@ async function $do10(client, request, options) {
40289
40624
  const context = {
40290
40625
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40291
40626
  operationID: "passwordResetRequest",
40292
- oAuth2Scopes: [],
40627
+ oAuth2Scopes: null,
40293
40628
  resolvedSecurity: requestSecurity,
40294
40629
  securitySource: client._options.security,
40295
40630
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40368,24 +40703,30 @@ It sends an email with a link for resetting a user's password.`,
40368
40703
  };
40369
40704
  });
40370
40705
 
40371
- // src/funcs/vendorScansVendorScanOut.ts
40372
- function vendorScansVendorScanOut(client, request, options) {
40706
+ // src/funcs/vendorManagedByCompaniesListVendorManagedByCompanies.ts
40707
+ function vendorManagedByCompaniesListVendorManagedByCompanies(client, request, options) {
40373
40708
  return new APIPromise($do11(client, request, options));
40374
40709
  }
40375
40710
  async function $do11(client, request, options) {
40376
- 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");
40377
40712
  if (!parsed.ok) {
40378
- return [parsed, { status: "invalid" }];
40713
+ return [haltIterator(parsed), { status: "invalid" }];
40379
40714
  }
40380
40715
  const payload = parsed.value;
40381
40716
  const body = null;
40382
40717
  const pathParams = {
40383
- id: encodeSimple("id", payload.id, {
40718
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40384
40719
  explode: false,
40385
40720
  charEncoding: "percent"
40386
40721
  })
40387
40722
  };
40388
- 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
+ });
40389
40730
  const headers = new Headers(compactMap({
40390
40731
  Accept: "application/json"
40391
40732
  }));
@@ -40393,8 +40734,8 @@ async function $do11(client, request, options) {
40393
40734
  const requestSecurity = resolveGlobalSecurity(securityInput);
40394
40735
  const context = {
40395
40736
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40396
- operationID: "vendorScanOut",
40397
- oAuth2Scopes: [],
40737
+ operationID: "listVendorManagedByCompanies",
40738
+ oAuth2Scopes: null,
40398
40739
  resolvedSecurity: requestSecurity,
40399
40740
  securitySource: client._options.security,
40400
40741
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40402,37 +40743,69 @@ async function $do11(client, request, options) {
40402
40743
  };
40403
40744
  const requestRes = client._createRequest(context, {
40404
40745
  security: requestSecurity,
40405
- method: "POST",
40746
+ method: "GET",
40406
40747
  baseURL: options?.serverURL,
40407
40748
  path,
40408
40749
  headers,
40750
+ query,
40409
40751
  body,
40410
40752
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40411
40753
  }, options);
40412
40754
  if (!requestRes.ok) {
40413
- return [requestRes, { status: "invalid" }];
40755
+ return [haltIterator(requestRes), { status: "invalid" }];
40414
40756
  }
40415
40757
  const req = requestRes.value;
40416
40758
  const doResult = await client._do(req, {
40417
40759
  context,
40418
- errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
40760
+ errorCodes: ["400", "401", "4XX", "500", "5XX"],
40419
40761
  retryConfig: context.retryConfig,
40420
40762
  retryCodes: context.retryCodes
40421
40763
  });
40422
40764
  if (!doResult.ok) {
40423
- return [doResult, { status: "request-error", request: req }];
40765
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40424
40766
  }
40425
40767
  const response = doResult.value;
40426
40768
  const responseFields = {
40427
40769
  HttpMeta: { Response: response, Request: req }
40428
40770
  };
40429
- 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 });
40430
40774
  if (!result.ok) {
40431
- return [result, { status: "complete", request: req, response }];
40775
+ return [haltIterator(result), {
40776
+ status: "complete",
40777
+ request: req,
40778
+ response
40779
+ }];
40432
40780
  }
40433
- 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
+ }];
40434
40807
  }
40435
- var init_vendorScansVendorScanOut = __esm(() => {
40808
+ var init_vendorManagedByCompaniesListVendorManagedByCompanies = __esm(() => {
40436
40809
  init_encodings();
40437
40810
  init_matchers();
40438
40811
  init_primitives();
@@ -40442,63 +40815,73 @@ var init_vendorScansVendorScanOut = __esm(() => {
40442
40815
  init_errors();
40443
40816
  init_operations();
40444
40817
  init_async();
40818
+ init_operations2();
40445
40819
  });
40446
40820
 
40447
- // src/mcp-server/tools/vendorScansVendorScanOut.ts
40448
- var args10, tool$vendorScansVendorScanOut;
40449
- var init_vendorScansVendorScanOut2 = __esm(() => {
40450
- init_vendorScansVendorScanOut();
40821
+ // src/mcp-server/tools/vendorManagedByCompaniesListVendorManagedByCompanies.ts
40822
+ var args10, tool$vendorManagedByCompaniesListVendorManagedByCompanies;
40823
+ var init_vendorManagedByCompaniesListVendorManagedByCompanies2 = __esm(() => {
40824
+ init_vendorManagedByCompaniesListVendorManagedByCompanies();
40451
40825
  init_operations();
40452
40826
  init_tools();
40453
40827
  args10 = {
40454
- request: VendorScanOutRequest$inboundSchema
40828
+ request: ListVendorManagedByCompaniesRequest$inboundSchema
40455
40829
  };
40456
- tool$vendorScansVendorScanOut = {
40457
- name: "vendor-scans-vendor-scan-out",
40458
- 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
40459
40833
 
40460
- It scans out vendor from facility`,
40834
+ List of vendor managed by companies`,
40461
40835
  args: args10,
40462
40836
  tool: async (client, args11, ctx) => {
40463
- 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();
40464
40838
  if (!result.ok) {
40465
40839
  return {
40466
40840
  content: [{ type: "text", text: result.error.message }],
40467
40841
  isError: true
40468
40842
  };
40469
40843
  }
40470
- const value = result.value;
40844
+ const value = result.value.result;
40471
40845
  return formatResult(value, apiCall);
40472
40846
  }
40473
40847
  };
40474
40848
  });
40475
40849
 
40476
- // src/funcs/vendorsCreateVendorRegistration.ts
40477
- function vendorsCreateVendorRegistration(client, request, options) {
40850
+ // src/funcs/vendorsAddVendorManagedByCompany.ts
40851
+ function vendorsAddVendorManagedByCompany(client, request, options) {
40478
40852
  return new APIPromise($do12(client, request, options));
40479
40853
  }
40480
40854
  async function $do12(client, request, options) {
40481
- 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");
40482
40856
  if (!parsed.ok) {
40483
40857
  return [parsed, { status: "invalid" }];
40484
40858
  }
40485
40859
  const payload = parsed.value;
40486
- const body = encodeJSON("body", payload, { explode: true });
40487
- const path = pathToFunc("/vendors/registration")();
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);
40488
40868
  const headers = new Headers(compactMap({
40489
40869
  "Content-Type": "application/json",
40490
40870
  Accept: "application/json"
40491
40871
  }));
40872
+ const securityInput = await extractSecurity(client._options.security);
40873
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40492
40874
  const context = {
40493
40875
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40494
- operationID: "createVendorRegistration",
40495
- oAuth2Scopes: [],
40496
- resolvedSecurity: null,
40497
- securitySource: null,
40876
+ operationID: "addVendorManagedByCompany",
40877
+ oAuth2Scopes: null,
40878
+ resolvedSecurity: requestSecurity,
40879
+ securitySource: client._options.security,
40498
40880
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40499
40881
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40500
40882
  };
40501
40883
  const requestRes = client._createRequest(context, {
40884
+ security: requestSecurity,
40502
40885
  method: "POST",
40503
40886
  baseURL: options?.serverURL,
40504
40887
  path,
@@ -40512,7 +40895,7 @@ async function $do12(client, request, options) {
40512
40895
  const req = requestRes.value;
40513
40896
  const doResult = await client._do(req, {
40514
40897
  context,
40515
- errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
40898
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
40516
40899
  retryConfig: context.retryConfig,
40517
40900
  retryCodes: context.retryCodes
40518
40901
  });
@@ -40523,40 +40906,41 @@ async function $do12(client, request, options) {
40523
40906
  const responseFields = {
40524
40907
  HttpMeta: { Response: response, Request: req }
40525
40908
  };
40526
- const [result] = await match(json(201, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
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 });
40527
40910
  if (!result.ok) {
40528
40911
  return [result, { status: "complete", request: req, response }];
40529
40912
  }
40530
40913
  return [result, { status: "complete", request: req, response }];
40531
40914
  }
40532
- var init_vendorsCreateVendorRegistration = __esm(() => {
40915
+ var init_vendorsAddVendorManagedByCompany = __esm(() => {
40533
40916
  init_encodings();
40534
40917
  init_matchers();
40535
40918
  init_primitives();
40536
40919
  init_schemas();
40920
+ init_security();
40537
40921
  init_url();
40538
40922
  init_errors();
40539
40923
  init_operations();
40540
40924
  init_async();
40541
40925
  });
40542
40926
 
40543
- // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
40544
- var args11, tool$vendorsCreateVendorRegistration;
40545
- var init_vendorsCreateVendorRegistration2 = __esm(() => {
40546
- init_vendorsCreateVendorRegistration();
40927
+ // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
40928
+ var args11, tool$vendorsAddVendorManagedByCompany;
40929
+ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
40930
+ init_vendorsAddVendorManagedByCompany();
40547
40931
  init_operations();
40548
40932
  init_tools();
40549
40933
  args11 = {
40550
- request: CreateVendorRegistrationRequestBody$inboundSchema
40934
+ request: AddVendorManagedByCompanyRequest$inboundSchema
40551
40935
  };
40552
- tool$vendorsCreateVendorRegistration = {
40553
- name: "vendors-create-vendor-registration",
40554
- description: `Create vendor registration
40936
+ tool$vendorsAddVendorManagedByCompany = {
40937
+ name: "vendors-add-vendor-managed-by-company",
40938
+ description: `Add vendor managed by company
40555
40939
 
40556
- Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
40940
+ It will add a vendor managed by company`,
40557
40941
  args: args11,
40558
40942
  tool: async (client, args12, ctx) => {
40559
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40943
+ const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40560
40944
  if (!result.ok) {
40561
40945
  return {
40562
40946
  content: [{ type: "text", text: result.error.message }],
@@ -40569,24 +40953,24 @@ Create an initial vendor registration. Once successful, the vendor will be able
40569
40953
  };
40570
40954
  });
40571
40955
 
40572
- // src/funcs/vendorsExpediteTimeRemaining.ts
40573
- function vendorsExpediteTimeRemaining(client, request, options) {
40956
+ // src/funcs/vendorScansVendorScanOut.ts
40957
+ function vendorScansVendorScanOut(client, request, options) {
40574
40958
  return new APIPromise($do13(client, request, options));
40575
40959
  }
40576
40960
  async function $do13(client, request, options) {
40577
- const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
40961
+ const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
40578
40962
  if (!parsed.ok) {
40579
40963
  return [parsed, { status: "invalid" }];
40580
40964
  }
40581
40965
  const payload = parsed.value;
40582
40966
  const body = null;
40583
40967
  const pathParams = {
40584
- vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40968
+ id: encodeSimple("id", payload.id, {
40585
40969
  explode: false,
40586
40970
  charEncoding: "percent"
40587
40971
  })
40588
40972
  };
40589
- const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
40973
+ const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
40590
40974
  const headers = new Headers(compactMap({
40591
40975
  Accept: "application/json"
40592
40976
  }));
@@ -40594,8 +40978,8 @@ async function $do13(client, request, options) {
40594
40978
  const requestSecurity = resolveGlobalSecurity(securityInput);
40595
40979
  const context = {
40596
40980
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40597
- operationID: "expediteTimeRemaining",
40598
- oAuth2Scopes: [],
40981
+ operationID: "vendorScanOut",
40982
+ oAuth2Scopes: null,
40599
40983
  resolvedSecurity: requestSecurity,
40600
40984
  securitySource: client._options.security,
40601
40985
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40603,7 +40987,7 @@ async function $do13(client, request, options) {
40603
40987
  };
40604
40988
  const requestRes = client._createRequest(context, {
40605
40989
  security: requestSecurity,
40606
- method: "GET",
40990
+ method: "POST",
40607
40991
  baseURL: options?.serverURL,
40608
40992
  path,
40609
40993
  headers,
@@ -40616,7 +41000,7 @@ async function $do13(client, request, options) {
40616
41000
  const req = requestRes.value;
40617
41001
  const doResult = await client._do(req, {
40618
41002
  context,
40619
- errorCodes: ["400", "401", "4XX", "5XX"],
41003
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
40620
41004
  retryConfig: context.retryConfig,
40621
41005
  retryCodes: context.retryCodes
40622
41006
  });
@@ -40627,13 +41011,320 @@ async function $do13(client, request, options) {
40627
41011
  const responseFields = {
40628
41012
  HttpMeta: { Response: response, Request: req }
40629
41013
  };
40630
- const [result] = await match(json(200, ExpediteTimeRemainingResponseBody$inboundSchema), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
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 });
40631
41015
  if (!result.ok) {
40632
41016
  return [result, { status: "complete", request: req, response }];
40633
41017
  }
40634
41018
  return [result, { status: "complete", request: req, response }];
40635
41019
  }
40636
- var init_vendorsExpediteTimeRemaining = __esm(() => {
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 });
41072
+ const path = pathToFunc("/vendors/registration")();
41073
+ const headers = new Headers(compactMap({
41074
+ "Content-Type": "application/json",
41075
+ Accept: "application/json"
41076
+ }));
41077
+ const context = {
41078
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41079
+ operationID: "createVendorRegistration",
41080
+ oAuth2Scopes: null,
41081
+ resolvedSecurity: null,
41082
+ securitySource: null,
41083
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41084
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41085
+ };
41086
+ const requestRes = client._createRequest(context, {
41087
+ method: "POST",
41088
+ baseURL: options?.serverURL,
41089
+ path,
41090
+ headers,
41091
+ body,
41092
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41093
+ }, options);
41094
+ if (!requestRes.ok) {
41095
+ return [requestRes, { status: "invalid" }];
41096
+ }
41097
+ const req = requestRes.value;
41098
+ const doResult = await client._do(req, {
41099
+ context,
41100
+ errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
41101
+ retryConfig: context.retryConfig,
41102
+ retryCodes: context.retryCodes
41103
+ });
41104
+ if (!doResult.ok) {
41105
+ return [doResult, { status: "request-error", request: req }];
41106
+ }
41107
+ const response = doResult.value;
41108
+ const responseFields = {
41109
+ HttpMeta: { Response: response, Request: req }
41110
+ };
41111
+ const [result] = await match(json(201, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41112
+ if (!result.ok) {
41113
+ return [result, { status: "complete", request: req, response }];
41114
+ }
41115
+ return [result, { status: "complete", request: req, response }];
41116
+ }
41117
+ var init_vendorsCreateVendorRegistration = __esm(() => {
41118
+ init_encodings();
41119
+ init_matchers();
41120
+ init_primitives();
41121
+ init_schemas();
41122
+ init_url();
41123
+ init_errors();
41124
+ init_operations();
41125
+ init_async();
41126
+ });
41127
+
41128
+ // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
41129
+ var args13, tool$vendorsCreateVendorRegistration;
41130
+ var init_vendorsCreateVendorRegistration2 = __esm(() => {
41131
+ init_vendorsCreateVendorRegistration();
41132
+ init_operations();
41133
+ init_tools();
41134
+ args13 = {
41135
+ request: CreateVendorRegistrationRequestBody$inboundSchema
41136
+ };
41137
+ tool$vendorsCreateVendorRegistration = {
41138
+ name: "vendors-create-vendor-registration",
41139
+ description: `Create vendor registration
41140
+
41141
+ Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
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();
41251
+ if (!result.ok) {
41252
+ return {
41253
+ content: [{ type: "text", text: result.error.message }],
41254
+ isError: true
41255
+ };
41256
+ }
41257
+ const value = result.value;
41258
+ return formatResult(value, apiCall);
41259
+ }
41260
+ };
41261
+ });
41262
+
41263
+ // src/funcs/vendorsExpediteTimeRemaining.ts
41264
+ function vendorsExpediteTimeRemaining(client, request, options) {
41265
+ return new APIPromise($do16(client, request, options));
41266
+ }
41267
+ async function $do16(client, request, options) {
41268
+ const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
41269
+ if (!parsed.ok) {
41270
+ return [parsed, { status: "invalid" }];
41271
+ }
41272
+ const payload = parsed.value;
41273
+ const body = null;
41274
+ const pathParams = {
41275
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41276
+ explode: false,
41277
+ charEncoding: "percent"
41278
+ })
41279
+ };
41280
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
41281
+ const headers = new Headers(compactMap({
41282
+ Accept: "application/json"
41283
+ }));
41284
+ const securityInput = await extractSecurity(client._options.security);
41285
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41286
+ const context = {
41287
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41288
+ operationID: "expediteTimeRemaining",
41289
+ oAuth2Scopes: null,
41290
+ resolvedSecurity: requestSecurity,
41291
+ securitySource: client._options.security,
41292
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41293
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41294
+ };
41295
+ const requestRes = client._createRequest(context, {
41296
+ security: requestSecurity,
41297
+ method: "GET",
41298
+ baseURL: options?.serverURL,
41299
+ path,
41300
+ headers,
41301
+ body,
41302
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41303
+ }, options);
41304
+ if (!requestRes.ok) {
41305
+ return [requestRes, { status: "invalid" }];
41306
+ }
41307
+ const req = requestRes.value;
41308
+ const doResult = await client._do(req, {
41309
+ context,
41310
+ errorCodes: ["400", "401", "4XX", "5XX"],
41311
+ retryConfig: context.retryConfig,
41312
+ retryCodes: context.retryCodes
41313
+ });
41314
+ if (!doResult.ok) {
41315
+ return [doResult, { status: "request-error", request: req }];
41316
+ }
41317
+ const response = doResult.value;
41318
+ const responseFields = {
41319
+ HttpMeta: { Response: response, Request: req }
41320
+ };
41321
+ const [result] = await match(json(200, ExpediteTimeRemainingResponseBody$inboundSchema), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41322
+ if (!result.ok) {
41323
+ return [result, { status: "complete", request: req, response }];
41324
+ }
41325
+ return [result, { status: "complete", request: req, response }];
41326
+ }
41327
+ var init_vendorsExpediteTimeRemaining = __esm(() => {
40637
41328
  init_encodings();
40638
41329
  init_matchers();
40639
41330
  init_primitives();
@@ -40646,12 +41337,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
40646
41337
  });
40647
41338
 
40648
41339
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
40649
- var args12, tool$vendorsExpediteTimeRemaining;
41340
+ var args15, tool$vendorsExpediteTimeRemaining;
40650
41341
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
40651
41342
  init_vendorsExpediteTimeRemaining();
40652
41343
  init_operations();
40653
41344
  init_tools();
40654
- args12 = {
41345
+ args15 = {
40655
41346
  request: ExpediteTimeRemainingRequest$inboundSchema
40656
41347
  };
40657
41348
  tool$vendorsExpediteTimeRemaining = {
@@ -40659,9 +41350,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
40659
41350
  description: `Expedite time remaining
40660
41351
 
40661
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.`,
40662
- args: args12,
40663
- tool: async (client, args13, ctx) => {
40664
- 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();
40665
41356
  if (!result.ok) {
40666
41357
  return {
40667
41358
  content: [{ type: "text", text: result.error.message }],
@@ -40676,9 +41367,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
40676
41367
 
40677
41368
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
40678
41369
  function vendorsGetVendorInvoiceDetails(client, request, options) {
40679
- return new APIPromise($do14(client, request, options));
41370
+ return new APIPromise($do17(client, request, options));
40680
41371
  }
40681
- async function $do14(client, request, options) {
41372
+ async function $do17(client, request, options) {
40682
41373
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
40683
41374
  if (!parsed.ok) {
40684
41375
  return [parsed, { status: "invalid" }];
@@ -40703,7 +41394,7 @@ async function $do14(client, request, options) {
40703
41394
  const context = {
40704
41395
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40705
41396
  operationID: "getVendorInvoiceDetails",
40706
- oAuth2Scopes: [],
41397
+ oAuth2Scopes: null,
40707
41398
  resolvedSecurity: requestSecurity,
40708
41399
  securitySource: client._options.security,
40709
41400
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40756,12 +41447,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
40756
41447
  });
40757
41448
 
40758
41449
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
40759
- var args13, tool$vendorsGetVendorInvoiceDetails;
41450
+ var args16, tool$vendorsGetVendorInvoiceDetails;
40760
41451
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
40761
41452
  init_vendorsGetVendorInvoiceDetails();
40762
41453
  init_operations();
40763
41454
  init_tools();
40764
- args13 = {
41455
+ args16 = {
40765
41456
  request: GetVendorInvoiceDetailsRequest$inboundSchema
40766
41457
  };
40767
41458
  tool$vendorsGetVendorInvoiceDetails = {
@@ -40774,9 +41465,9 @@ Available \`expand\` scopes are:
40774
41465
 
40775
41466
  invoice.line_items
40776
41467
  invoice.invoice_transactions`,
40777
- args: args13,
40778
- tool: async (client, args14, ctx) => {
40779
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41468
+ args: args16,
41469
+ tool: async (client, args17, ctx) => {
41470
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40780
41471
  if (!result.ok) {
40781
41472
  return {
40782
41473
  content: [{ type: "text", text: result.error.message }],
@@ -40791,9 +41482,9 @@ invoice.invoice_transactions`,
40791
41482
 
40792
41483
  // src/funcs/vendorsGetVendorsDetails.ts
40793
41484
  function vendorsGetVendorsDetails(client, request, options) {
40794
- return new APIPromise($do15(client, request, options));
41485
+ return new APIPromise($do18(client, request, options));
40795
41486
  }
40796
- async function $do15(client, request, options) {
41487
+ async function $do18(client, request, options) {
40797
41488
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
40798
41489
  if (!parsed.ok) {
40799
41490
  return [parsed, { status: "invalid" }];
@@ -40818,7 +41509,7 @@ async function $do15(client, request, options) {
40818
41509
  const context = {
40819
41510
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40820
41511
  operationID: "getVendorsDetails",
40821
- oAuth2Scopes: [],
41512
+ oAuth2Scopes: null,
40822
41513
  resolvedSecurity: requestSecurity,
40823
41514
  securitySource: client._options.security,
40824
41515
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40871,12 +41562,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
40871
41562
  });
40872
41563
 
40873
41564
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
40874
- var args14, tool$vendorsGetVendorsDetails;
41565
+ var args17, tool$vendorsGetVendorsDetails;
40875
41566
  var init_vendorsGetVendorsDetails2 = __esm(() => {
40876
41567
  init_vendorsGetVendorsDetails();
40877
41568
  init_operations();
40878
41569
  init_tools();
40879
- args14 = {
41570
+ args17 = {
40880
41571
  request: GetVendorsDetailsRequest$inboundSchema
40881
41572
  };
40882
41573
  tool$vendorsGetVendorsDetails = {
@@ -40898,9 +41589,9 @@ vendor.credentialing_subscription
40898
41589
  vendor.scrubs_subscription
40899
41590
  vendor.payment_responsibility
40900
41591
  vendor.background_check_date_expires`,
40901
- args: args14,
40902
- tool: async (client, args15, ctx) => {
40903
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41592
+ args: args17,
41593
+ tool: async (client, args18, ctx) => {
41594
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40904
41595
  if (!result.ok) {
40905
41596
  return {
40906
41597
  content: [{ type: "text", text: result.error.message }],
@@ -40915,9 +41606,9 @@ vendor.background_check_date_expires`,
40915
41606
 
40916
41607
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
40917
41608
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
40918
- return new APIPromise($do16(client, request, options));
41609
+ return new APIPromise($do19(client, request, options));
40919
41610
  }
40920
- async function $do16(client, request, options) {
41611
+ async function $do19(client, request, options) {
40921
41612
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
40922
41613
  if (!parsed.ok) {
40923
41614
  return [haltIterator(parsed), { status: "invalid" }];
@@ -40945,7 +41636,7 @@ async function $do16(client, request, options) {
40945
41636
  const context = {
40946
41637
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40947
41638
  operationID: "listVendorAdditionalFacilityFields",
40948
- oAuth2Scopes: [],
41639
+ oAuth2Scopes: null,
40949
41640
  resolvedSecurity: requestSecurity,
40950
41641
  securitySource: client._options.security,
40951
41642
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41027,12 +41718,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
41027
41718
  });
41028
41719
 
41029
41720
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
41030
- var args15, tool$vendorsListVendorAdditionalFacilityFields;
41721
+ var args18, tool$vendorsListVendorAdditionalFacilityFields;
41031
41722
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
41032
41723
  init_vendorsListVendorAdditionalFacilityFields();
41033
41724
  init_operations();
41034
41725
  init_tools();
41035
- args15 = {
41726
+ args18 = {
41036
41727
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
41037
41728
  };
41038
41729
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -41040,9 +41731,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
41040
41731
  description: `List of vendor's additional facility fields
41041
41732
 
41042
41733
  List of vendor's additional facility fields`,
41043
- args: args15,
41044
- tool: async (client, args16, ctx) => {
41045
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41734
+ args: args18,
41735
+ tool: async (client, args19, ctx) => {
41736
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41046
41737
  if (!result.ok) {
41047
41738
  return {
41048
41739
  content: [{ type: "text", text: result.error.message }],
@@ -41057,9 +41748,9 @@ List of vendor's additional facility fields`,
41057
41748
 
41058
41749
  // src/funcs/vendorsListVendorCredentials.ts
41059
41750
  function vendorsListVendorCredentials(client, request, options) {
41060
- return new APIPromise($do17(client, request, options));
41751
+ return new APIPromise($do20(client, request, options));
41061
41752
  }
41062
- async function $do17(client, request, options) {
41753
+ async function $do20(client, request, options) {
41063
41754
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
41064
41755
  if (!parsed.ok) {
41065
41756
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41092,7 +41783,7 @@ async function $do17(client, request, options) {
41092
41783
  const context = {
41093
41784
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41094
41785
  operationID: "listVendorCredentials",
41095
- oAuth2Scopes: [],
41786
+ oAuth2Scopes: null,
41096
41787
  resolvedSecurity: requestSecurity,
41097
41788
  securitySource: client._options.security,
41098
41789
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41175,12 +41866,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
41175
41866
  });
41176
41867
 
41177
41868
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
41178
- var args16, tool$vendorsListVendorCredentials;
41869
+ var args19, tool$vendorsListVendorCredentials;
41179
41870
  var init_vendorsListVendorCredentials2 = __esm(() => {
41180
41871
  init_vendorsListVendorCredentials();
41181
41872
  init_operations();
41182
41873
  init_tools();
41183
- args16 = {
41874
+ args19 = {
41184
41875
  request: ListVendorCredentialsRequest$inboundSchema
41185
41876
  };
41186
41877
  tool$vendorsListVendorCredentials = {
@@ -41188,9 +41879,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
41188
41879
  description: `List Vendor Credentials
41189
41880
 
41190
41881
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
41191
- args: args16,
41192
- tool: async (client, args17, ctx) => {
41193
- const [result, apiCall] = await vendorsListVendorCredentials(client, args17.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();
41194
41885
  if (!result.ok) {
41195
41886
  return {
41196
41887
  content: [{ type: "text", text: result.error.message }],
@@ -41205,9 +41896,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
41205
41896
 
41206
41897
  // src/funcs/vendorsListVendorCredits.ts
41207
41898
  function vendorsListVendorCredits(client, request, options) {
41208
- return new APIPromise($do18(client, request, options));
41899
+ return new APIPromise($do21(client, request, options));
41209
41900
  }
41210
- async function $do18(client, request, options) {
41901
+ async function $do21(client, request, options) {
41211
41902
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
41212
41903
  if (!parsed.ok) {
41213
41904
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41235,7 +41926,7 @@ async function $do18(client, request, options) {
41235
41926
  const context = {
41236
41927
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41237
41928
  operationID: "listVendorCredits",
41238
- oAuth2Scopes: [],
41929
+ oAuth2Scopes: null,
41239
41930
  resolvedSecurity: requestSecurity,
41240
41931
  securitySource: client._options.security,
41241
41932
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41319,12 +42010,12 @@ var init_vendorsListVendorCredits = __esm(() => {
41319
42010
  });
41320
42011
 
41321
42012
  // src/mcp-server/tools/vendorsListVendorCredits.ts
41322
- var args17, tool$vendorsListVendorCredits;
42013
+ var args20, tool$vendorsListVendorCredits;
41323
42014
  var init_vendorsListVendorCredits2 = __esm(() => {
41324
42015
  init_vendorsListVendorCredits();
41325
42016
  init_operations();
41326
42017
  init_tools();
41327
- args17 = {
42018
+ args20 = {
41328
42019
  request: ListVendorCreditsRequest$inboundSchema
41329
42020
  };
41330
42021
  tool$vendorsListVendorCredits = {
@@ -41332,9 +42023,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
41332
42023
  description: `List vendor credits
41333
42024
 
41334
42025
  List the credits for the vendor`,
41335
- args: args17,
41336
- tool: async (client, args18, ctx) => {
41337
- const [result, apiCall] = await vendorsListVendorCredits(client, args18.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();
41338
42029
  if (!result.ok) {
41339
42030
  return {
41340
42031
  content: [{ type: "text", text: result.error.message }],
@@ -41349,9 +42040,9 @@ List the credits for the vendor`,
41349
42040
 
41350
42041
  // src/funcs/vendorsListVendorFacilityStatuses.ts
41351
42042
  function vendorsListVendorFacilityStatuses(client, request, options) {
41352
- return new APIPromise($do19(client, request, options));
42043
+ return new APIPromise($do22(client, request, options));
41353
42044
  }
41354
- async function $do19(client, request, options) {
42045
+ async function $do22(client, request, options) {
41355
42046
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
41356
42047
  if (!parsed.ok) {
41357
42048
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41374,7 +42065,7 @@ async function $do19(client, request, options) {
41374
42065
  const context = {
41375
42066
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41376
42067
  operationID: "listVendorFacilityStatuses",
41377
- oAuth2Scopes: [],
42068
+ oAuth2Scopes: null,
41378
42069
  resolvedSecurity: requestSecurity,
41379
42070
  securitySource: client._options.security,
41380
42071
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41458,12 +42149,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
41458
42149
  });
41459
42150
 
41460
42151
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
41461
- var args18, tool$vendorsListVendorFacilityStatuses;
42152
+ var args21, tool$vendorsListVendorFacilityStatuses;
41462
42153
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41463
42154
  init_vendorsListVendorFacilityStatuses();
41464
42155
  init_operations();
41465
42156
  init_tools();
41466
- args18 = {
42157
+ args21 = {
41467
42158
  request: ListVendorFacilityStatusesRequest$inboundSchema
41468
42159
  };
41469
42160
  tool$vendorsListVendorFacilityStatuses = {
@@ -41471,9 +42162,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
41471
42162
  description: `List vendor facility statuses
41472
42163
 
41473
42164
  List the facilities for the vendor`,
41474
- args: args18,
41475
- tool: async (client, args19, ctx) => {
41476
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args19.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();
41477
42168
  if (!result.ok) {
41478
42169
  return {
41479
42170
  content: [{ type: "text", text: result.error.message }],
@@ -41488,9 +42179,9 @@ List the facilities for the vendor`,
41488
42179
 
41489
42180
  // src/funcs/vendorsListVendorInvoices.ts
41490
42181
  function vendorsListVendorInvoices(client, request, options) {
41491
- return new APIPromise($do20(client, request, options));
42182
+ return new APIPromise($do23(client, request, options));
41492
42183
  }
41493
- async function $do20(client, request, options) {
42184
+ async function $do23(client, request, options) {
41494
42185
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
41495
42186
  if (!parsed.ok) {
41496
42187
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41520,7 +42211,7 @@ async function $do20(client, request, options) {
41520
42211
  const context = {
41521
42212
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41522
42213
  operationID: "listVendorInvoices",
41523
- oAuth2Scopes: [],
42214
+ oAuth2Scopes: null,
41524
42215
  resolvedSecurity: requestSecurity,
41525
42216
  securitySource: client._options.security,
41526
42217
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41604,12 +42295,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
41604
42295
  });
41605
42296
 
41606
42297
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
41607
- var args19, tool$vendorsListVendorInvoices;
42298
+ var args22, tool$vendorsListVendorInvoices;
41608
42299
  var init_vendorsListVendorInvoices2 = __esm(() => {
41609
42300
  init_vendorsListVendorInvoices();
41610
42301
  init_operations();
41611
42302
  init_tools();
41612
- args19 = {
42303
+ args22 = {
41613
42304
  request: ListVendorInvoicesRequest$inboundSchema
41614
42305
  };
41615
42306
  tool$vendorsListVendorInvoices = {
@@ -41621,9 +42312,9 @@ List invoices for Vendors
41621
42312
  Available \`expand\` scopes are:
41622
42313
 
41623
42314
  invoice.line_items`,
41624
- args: args19,
41625
- tool: async (client, args20, ctx) => {
41626
- const [result, apiCall] = await vendorsListVendorInvoices(client, args20.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();
41627
42318
  if (!result.ok) {
41628
42319
  return {
41629
42320
  content: [{ type: "text", text: result.error.message }],
@@ -41638,9 +42329,9 @@ invoice.line_items`,
41638
42329
 
41639
42330
  // src/funcs/vendorsListVendorScrubDetails.ts
41640
42331
  function vendorsListVendorScrubDetails(client, request, options) {
41641
- return new APIPromise($do21(client, request, options));
42332
+ return new APIPromise($do24(client, request, options));
41642
42333
  }
41643
- async function $do21(client, request, options) {
42334
+ async function $do24(client, request, options) {
41644
42335
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41645
42336
  if (!parsed.ok) {
41646
42337
  return [parsed, { status: "invalid" }];
@@ -41662,7 +42353,7 @@ async function $do21(client, request, options) {
41662
42353
  const context = {
41663
42354
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41664
42355
  operationID: "listVendorScrubDetails",
41665
- oAuth2Scopes: [],
42356
+ oAuth2Scopes: null,
41666
42357
  resolvedSecurity: requestSecurity,
41667
42358
  securitySource: client._options.security,
41668
42359
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41714,12 +42405,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
41714
42405
  });
41715
42406
 
41716
42407
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
41717
- var args20, tool$vendorsListVendorScrubDetails;
42408
+ var args23, tool$vendorsListVendorScrubDetails;
41718
42409
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
41719
42410
  init_vendorsListVendorScrubDetails();
41720
42411
  init_operations();
41721
42412
  init_tools();
41722
- args20 = {
42413
+ args23 = {
41723
42414
  request: ListVendorScrubDetailsRequest$inboundSchema
41724
42415
  };
41725
42416
  tool$vendorsListVendorScrubDetails = {
@@ -41727,9 +42418,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
41727
42418
  description: `List vendor scrub details
41728
42419
 
41729
42420
  List vendor scrub details`,
41730
- args: args20,
41731
- tool: async (client, args21, ctx) => {
41732
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args21.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();
41733
42424
  if (!result.ok) {
41734
42425
  return {
41735
42426
  content: [{ type: "text", text: result.error.message }],
@@ -41744,9 +42435,9 @@ List vendor scrub details`,
41744
42435
 
41745
42436
  // src/funcs/vendorsListVendorScrubPurchases.ts
41746
42437
  function vendorsListVendorScrubPurchases(client, request, options) {
41747
- return new APIPromise($do22(client, request, options));
42438
+ return new APIPromise($do25(client, request, options));
41748
42439
  }
41749
- async function $do22(client, request, options) {
42440
+ async function $do25(client, request, options) {
41750
42441
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
41751
42442
  if (!parsed.ok) {
41752
42443
  return [haltIterator(parsed), { status: "invalid" }];
@@ -41774,7 +42465,7 @@ async function $do22(client, request, options) {
41774
42465
  const context = {
41775
42466
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41776
42467
  operationID: "listVendorScrubPurchases",
41777
- oAuth2Scopes: [],
42468
+ oAuth2Scopes: null,
41778
42469
  resolvedSecurity: requestSecurity,
41779
42470
  securitySource: client._options.security,
41780
42471
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41858,12 +42549,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
41858
42549
  });
41859
42550
 
41860
42551
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
41861
- var args21, tool$vendorsListVendorScrubPurchases;
42552
+ var args24, tool$vendorsListVendorScrubPurchases;
41862
42553
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41863
42554
  init_vendorsListVendorScrubPurchases();
41864
42555
  init_operations();
41865
42556
  init_tools();
41866
- args21 = {
42557
+ args24 = {
41867
42558
  request: ListVendorScrubPurchasesRequest$inboundSchema
41868
42559
  };
41869
42560
  tool$vendorsListVendorScrubPurchases = {
@@ -41871,9 +42562,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41871
42562
  description: `List vendor scrub purchases
41872
42563
 
41873
42564
  List vendor scrub purchases`,
41874
- args: args21,
41875
- tool: async (client, args22, ctx) => {
41876
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args22.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();
41877
42568
  if (!result.ok) {
41878
42569
  return {
41879
42570
  content: [{ type: "text", text: result.error.message }],
@@ -41886,11 +42577,117 @@ List vendor scrub purchases`,
41886
42577
  };
41887
42578
  });
41888
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
+
41889
42686
  // src/funcs/webhooksGetWebhookEndpoint.ts
41890
42687
  function webhooksGetWebhookEndpoint(client, request, options) {
41891
- return new APIPromise($do23(client, request, options));
42688
+ return new APIPromise($do27(client, request, options));
41892
42689
  }
41893
- async function $do23(client, request, options) {
42690
+ async function $do27(client, request, options) {
41894
42691
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
41895
42692
  if (!parsed.ok) {
41896
42693
  return [parsed, { status: "invalid" }];
@@ -41912,7 +42709,7 @@ async function $do23(client, request, options) {
41912
42709
  const context = {
41913
42710
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41914
42711
  operationID: "getWebhookEndpoint",
41915
- oAuth2Scopes: [],
42712
+ oAuth2Scopes: null,
41916
42713
  resolvedSecurity: requestSecurity,
41917
42714
  securitySource: client._options.security,
41918
42715
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41964,12 +42761,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
41964
42761
  });
41965
42762
 
41966
42763
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
41967
- var args22, tool$webhooksGetWebhookEndpoint;
42764
+ var args26, tool$webhooksGetWebhookEndpoint;
41968
42765
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41969
42766
  init_webhooksGetWebhookEndpoint();
41970
42767
  init_operations();
41971
42768
  init_tools();
41972
- args22 = {
42769
+ args26 = {
41973
42770
  request: GetWebhookEndpointRequest$inboundSchema
41974
42771
  };
41975
42772
  tool$webhooksGetWebhookEndpoint = {
@@ -41977,9 +42774,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41977
42774
  description: `Retrieves the webhook endpoint with the given ID.
41978
42775
 
41979
42776
  Returns the definition of a webhook endpoint by ID.`,
41980
- args: args22,
41981
- tool: async (client, args23, ctx) => {
41982
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args23.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();
41983
42780
  if (!result.ok) {
41984
42781
  return {
41985
42782
  content: [{ type: "text", text: result.error.message }],
@@ -41994,9 +42791,9 @@ Returns the definition of a webhook endpoint by ID.`,
41994
42791
 
41995
42792
  // src/funcs/webhooksListAllWebhookEndpoints.ts
41996
42793
  function webhooksListAllWebhookEndpoints(client, request, options) {
41997
- return new APIPromise($do24(client, request, options));
42794
+ return new APIPromise($do28(client, request, options));
41998
42795
  }
41999
- async function $do24(client, request, options) {
42796
+ async function $do28(client, request, options) {
42000
42797
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
42001
42798
  if (!parsed.ok) {
42002
42799
  return [parsed, { status: "invalid" }];
@@ -42018,7 +42815,7 @@ async function $do24(client, request, options) {
42018
42815
  const context = {
42019
42816
  baseURL: options?.serverURL ?? client._baseURL ?? "",
42020
42817
  operationID: "listAllWebhookEndpoints",
42021
- oAuth2Scopes: [],
42818
+ oAuth2Scopes: null,
42022
42819
  resolvedSecurity: requestSecurity,
42023
42820
  securitySource: client._options.security,
42024
42821
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -42070,12 +42867,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
42070
42867
  });
42071
42868
 
42072
42869
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
42073
- var args23, tool$webhooksListAllWebhookEndpoints;
42870
+ var args27, tool$webhooksListAllWebhookEndpoints;
42074
42871
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
42075
42872
  init_webhooksListAllWebhookEndpoints();
42076
42873
  init_operations();
42077
42874
  init_tools();
42078
- args23 = {
42875
+ args27 = {
42079
42876
  request: ListAllWebhookEndpointsRequest$inboundSchema
42080
42877
  };
42081
42878
  tool$webhooksListAllWebhookEndpoints = {
@@ -42083,9 +42880,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
42083
42880
  description: `List all webhook endpoints
42084
42881
 
42085
42882
  Returns a list of your webhook endpoints.`,
42086
- args: args23,
42087
- tool: async (client, args24, ctx) => {
42088
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args24.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();
42089
42886
  if (!result.ok) {
42090
42887
  return {
42091
42888
  content: [{ type: "text", text: result.error.message }],
@@ -42102,7 +42899,7 @@ Returns a list of your webhook endpoints.`,
42102
42899
  function createMCPServer(deps) {
42103
42900
  const server = new McpServer({
42104
42901
  name: "GreenSecurity",
42105
- version: "0.21.10"
42902
+ version: "0.22.1"
42106
42903
  });
42107
42904
  const client = new GreenSecurityCore({
42108
42905
  security: deps.security,
@@ -42127,6 +42924,9 @@ function createMCPServer(deps) {
42127
42924
  tool(tool$vendorsGetVendorsDetails);
42128
42925
  tool(tool$vendorsListVendorCredits);
42129
42926
  tool(tool$vendorsListVendorAdditionalFacilityFields);
42927
+ tool(tool$vendorsAddVendorManagedByCompany);
42928
+ tool(tool$vendorsDeleteVendorManagedByCompany);
42929
+ tool(tool$vendorsUpdateVendorManagedByCompany);
42130
42930
  tool(tool$usersGetCurrentUser);
42131
42931
  tool(tool$usersGetUserById);
42132
42932
  tool(tool$usersLogsUserIntoTheSystem);
@@ -42140,6 +42940,7 @@ function createMCPServer(deps) {
42140
42940
  tool(tool$webhooksListAllWebhookEndpoints);
42141
42941
  tool(tool$webhooksGetWebhookEndpoint);
42142
42942
  tool(tool$vendorScansVendorScanOut);
42943
+ tool(tool$vendorManagedByCompaniesListVendorManagedByCompanies);
42143
42944
  return server;
42144
42945
  }
42145
42946
  var init_server2 = __esm(() => {
@@ -42158,8 +42959,11 @@ var init_server2 = __esm(() => {
42158
42959
  init_usersMagiclink2();
42159
42960
  init_usersPassword2();
42160
42961
  init_usersPasswordResetRequest2();
42962
+ init_vendorManagedByCompaniesListVendorManagedByCompanies2();
42963
+ init_vendorsAddVendorManagedByCompany2();
42161
42964
  init_vendorScansVendorScanOut2();
42162
42965
  init_vendorsCreateVendorRegistration2();
42966
+ init_vendorsDeleteVendorManagedByCompany2();
42163
42967
  init_vendorsExpediteTimeRemaining2();
42164
42968
  init_vendorsGetVendorInvoiceDetails2();
42165
42969
  init_vendorsGetVendorsDetails2();
@@ -42170,6 +42974,7 @@ var init_server2 = __esm(() => {
42170
42974
  init_vendorsListVendorInvoices2();
42171
42975
  init_vendorsListVendorScrubDetails2();
42172
42976
  init_vendorsListVendorScrubPurchases2();
42977
+ init_vendorsUpdateVendorManagedByCompany2();
42173
42978
  init_webhooksGetWebhookEndpoint2();
42174
42979
  init_webhooksListAllWebhookEndpoints2();
42175
42980
  });
@@ -43369,7 +44174,7 @@ var routes = rn({
43369
44174
  var app = Ve(routes, {
43370
44175
  name: "mcp",
43371
44176
  versionInfo: {
43372
- currentVersion: "0.21.10"
44177
+ currentVersion: "0.22.1"
43373
44178
  }
43374
44179
  });
43375
44180
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -43377,5 +44182,5 @@ export {
43377
44182
  app
43378
44183
  };
43379
44184
 
43380
- //# debugId=CD77BF622D5F7D0164756E2164756E21
44185
+ //# debugId=6F68FBCBFD2C6B3264756E2164756E21
43381
44186
  //# sourceMappingURL=mcp-server.js.map