@greensecurity/javascript-sdk 0.31.4 → 0.31.7

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 (236) hide show
  1. package/README.md +12 -0
  2. package/bin/mcp-server.js +1232 -471
  3. package/bin/mcp-server.js.map +25 -12
  4. package/dist/commonjs/__tests__/vendors.test.js +94 -7
  5. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  7. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/zones.test.js +9 -9
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.d.ts +17 -0
  11. package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.js +118 -0
  13. package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.js.map +1 -0
  14. package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.d.ts +17 -0
  15. package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.js +122 -0
  17. package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.js.map +1 -0
  18. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +20 -0
  19. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +161 -0
  21. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -0
  22. package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +1 -1
  23. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.d.ts +17 -0
  24. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.js +123 -0
  26. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.js.map +1 -0
  27. package/dist/commonjs/lib/config.d.ts +2 -2
  28. package/dist/commonjs/lib/config.js +2 -2
  29. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  30. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/server.js +9 -1
  32. package/dist/commonjs/mcp-server/server.js.map +1 -1
  33. package/dist/commonjs/mcp-server/tools/vendorsAddVendorCredentialFile.d.ts +8 -0
  34. package/dist/commonjs/mcp-server/tools/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  35. package/dist/commonjs/mcp-server/tools/vendorsAddVendorCredentialFile.js +64 -0
  36. package/dist/commonjs/mcp-server/tools/vendorsAddVendorCredentialFile.js.map +1 -0
  37. package/dist/commonjs/mcp-server/tools/vendorsDeleteVendorCredentialFile.d.ts +8 -0
  38. package/dist/commonjs/mcp-server/tools/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  39. package/dist/commonjs/mcp-server/tools/vendorsDeleteVendorCredentialFile.js +64 -0
  40. package/dist/commonjs/mcp-server/tools/vendorsDeleteVendorCredentialFile.js.map +1 -0
  41. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialHistory.d.ts +8 -0
  42. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  43. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialHistory.js +64 -0
  44. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialHistory.js.map +1 -0
  45. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialFile.d.ts +8 -0
  46. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  47. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialFile.js +64 -0
  48. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialFile.js.map +1 -0
  49. package/dist/commonjs/models/components/contenttype.d.ts +163 -0
  50. package/dist/commonjs/models/components/contenttype.d.ts.map +1 -0
  51. package/dist/commonjs/models/components/contenttype.js +107 -0
  52. package/dist/commonjs/models/components/contenttype.js.map +1 -0
  53. package/dist/commonjs/models/components/index.d.ts +1 -0
  54. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  55. package/dist/commonjs/models/components/index.js +1 -0
  56. package/dist/commonjs/models/components/index.js.map +1 -1
  57. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +6 -2
  58. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/vendorcredentialsummary.js +8 -2
  60. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  61. package/dist/commonjs/models/operations/addvendorcredentialfile.d.ts +99 -0
  62. package/dist/commonjs/models/operations/addvendorcredentialfile.d.ts.map +1 -0
  63. package/dist/commonjs/models/operations/addvendorcredentialfile.js +159 -0
  64. package/dist/commonjs/models/operations/addvendorcredentialfile.js.map +1 -0
  65. package/dist/commonjs/models/operations/deletevendorcredentialfile.d.ts +37 -0
  66. package/dist/commonjs/models/operations/deletevendorcredentialfile.d.ts.map +1 -0
  67. package/dist/commonjs/models/operations/deletevendorcredentialfile.js +80 -0
  68. package/dist/commonjs/models/operations/deletevendorcredentialfile.js.map +1 -0
  69. package/dist/commonjs/models/operations/index.d.ts +4 -0
  70. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/index.js +4 -0
  72. package/dist/commonjs/models/operations/index.js.map +1 -1
  73. package/dist/commonjs/models/operations/listvendorcredentialhistory.d.ts +116 -0
  74. package/dist/commonjs/models/operations/listvendorcredentialhistory.d.ts.map +1 -0
  75. package/dist/commonjs/models/operations/listvendorcredentialhistory.js +157 -0
  76. package/dist/commonjs/models/operations/listvendorcredentialhistory.js.map +1 -0
  77. package/dist/commonjs/models/operations/updatevendorcredentialfile.d.ts +66 -0
  78. package/dist/commonjs/models/operations/updatevendorcredentialfile.d.ts.map +1 -0
  79. package/dist/commonjs/models/operations/updatevendorcredentialfile.js +121 -0
  80. package/dist/commonjs/models/operations/updatevendorcredentialfile.js.map +1 -0
  81. package/dist/commonjs/react-query/index.d.ts +4 -0
  82. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  83. package/dist/commonjs/react-query/index.js +4 -0
  84. package/dist/commonjs/react-query/index.js.map +1 -1
  85. package/dist/commonjs/react-query/vendorsAddVendorCredentialFile.d.ts +23 -0
  86. package/dist/commonjs/react-query/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  87. package/dist/commonjs/react-query/vendorsAddVendorCredentialFile.js +51 -0
  88. package/dist/commonjs/react-query/vendorsAddVendorCredentialFile.js.map +1 -0
  89. package/dist/commonjs/react-query/vendorsDeleteVendorCredentialFile.d.ts +23 -0
  90. package/dist/commonjs/react-query/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  91. package/dist/commonjs/react-query/vendorsDeleteVendorCredentialFile.js +51 -0
  92. package/dist/commonjs/react-query/vendorsDeleteVendorCredentialFile.js.map +1 -0
  93. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +79 -0
  94. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  95. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +161 -0
  96. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js.map +1 -0
  97. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialFile.d.ts +23 -0
  98. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  99. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialFile.js +51 -0
  100. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialFile.js.map +1 -0
  101. package/dist/commonjs/sdk/vendors.d.ts +30 -0
  102. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/vendors.js +40 -0
  104. package/dist/commonjs/sdk/vendors.js.map +1 -1
  105. package/dist/esm/__tests__/vendors.test.js +94 -7
  106. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  107. package/dist/esm/__tests__/webhooks.test.js +1 -1
  108. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  109. package/dist/esm/__tests__/zones.test.js +9 -9
  110. package/dist/esm/__tests__/zones.test.js.map +1 -1
  111. package/dist/esm/funcs/vendorsAddVendorCredentialFile.d.ts +17 -0
  112. package/dist/esm/funcs/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  113. package/dist/esm/funcs/vendorsAddVendorCredentialFile.js +82 -0
  114. package/dist/esm/funcs/vendorsAddVendorCredentialFile.js.map +1 -0
  115. package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.d.ts +17 -0
  116. package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  117. package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.js +86 -0
  118. package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.js.map +1 -0
  119. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +20 -0
  120. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  121. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +125 -0
  122. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -0
  123. package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +1 -1
  124. package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.d.ts +17 -0
  125. package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  126. package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.js +87 -0
  127. package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.js.map +1 -0
  128. package/dist/esm/lib/config.d.ts +2 -2
  129. package/dist/esm/lib/config.js +2 -2
  130. package/dist/esm/mcp-server/mcp-server.js +1 -1
  131. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  132. package/dist/esm/mcp-server/server.js +9 -1
  133. package/dist/esm/mcp-server/server.js.map +1 -1
  134. package/dist/esm/mcp-server/tools/vendorsAddVendorCredentialFile.d.ts +8 -0
  135. package/dist/esm/mcp-server/tools/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  136. package/dist/esm/mcp-server/tools/vendorsAddVendorCredentialFile.js +28 -0
  137. package/dist/esm/mcp-server/tools/vendorsAddVendorCredentialFile.js.map +1 -0
  138. package/dist/esm/mcp-server/tools/vendorsDeleteVendorCredentialFile.d.ts +8 -0
  139. package/dist/esm/mcp-server/tools/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  140. package/dist/esm/mcp-server/tools/vendorsDeleteVendorCredentialFile.js +28 -0
  141. package/dist/esm/mcp-server/tools/vendorsDeleteVendorCredentialFile.js.map +1 -0
  142. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialHistory.d.ts +8 -0
  143. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  144. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialHistory.js +28 -0
  145. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialHistory.js.map +1 -0
  146. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialFile.d.ts +8 -0
  147. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  148. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialFile.js +28 -0
  149. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialFile.js.map +1 -0
  150. package/dist/esm/models/components/contenttype.d.ts +163 -0
  151. package/dist/esm/models/components/contenttype.d.ts.map +1 -0
  152. package/dist/esm/models/components/contenttype.js +71 -0
  153. package/dist/esm/models/components/contenttype.js.map +1 -0
  154. package/dist/esm/models/components/index.d.ts +1 -0
  155. package/dist/esm/models/components/index.d.ts.map +1 -1
  156. package/dist/esm/models/components/index.js +1 -0
  157. package/dist/esm/models/components/index.js.map +1 -1
  158. package/dist/esm/models/components/vendorcredentialsummary.d.ts +6 -2
  159. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  160. package/dist/esm/models/components/vendorcredentialsummary.js +8 -2
  161. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  162. package/dist/esm/models/operations/addvendorcredentialfile.d.ts +99 -0
  163. package/dist/esm/models/operations/addvendorcredentialfile.d.ts.map +1 -0
  164. package/dist/esm/models/operations/addvendorcredentialfile.js +117 -0
  165. package/dist/esm/models/operations/addvendorcredentialfile.js.map +1 -0
  166. package/dist/esm/models/operations/deletevendorcredentialfile.d.ts +37 -0
  167. package/dist/esm/models/operations/deletevendorcredentialfile.d.ts.map +1 -0
  168. package/dist/esm/models/operations/deletevendorcredentialfile.js +42 -0
  169. package/dist/esm/models/operations/deletevendorcredentialfile.js.map +1 -0
  170. package/dist/esm/models/operations/index.d.ts +4 -0
  171. package/dist/esm/models/operations/index.d.ts.map +1 -1
  172. package/dist/esm/models/operations/index.js +4 -0
  173. package/dist/esm/models/operations/index.js.map +1 -1
  174. package/dist/esm/models/operations/listvendorcredentialhistory.d.ts +116 -0
  175. package/dist/esm/models/operations/listvendorcredentialhistory.d.ts.map +1 -0
  176. package/dist/esm/models/operations/listvendorcredentialhistory.js +115 -0
  177. package/dist/esm/models/operations/listvendorcredentialhistory.js.map +1 -0
  178. package/dist/esm/models/operations/updatevendorcredentialfile.d.ts +66 -0
  179. package/dist/esm/models/operations/updatevendorcredentialfile.d.ts.map +1 -0
  180. package/dist/esm/models/operations/updatevendorcredentialfile.js +81 -0
  181. package/dist/esm/models/operations/updatevendorcredentialfile.js.map +1 -0
  182. package/dist/esm/react-query/index.d.ts +4 -0
  183. package/dist/esm/react-query/index.d.ts.map +1 -1
  184. package/dist/esm/react-query/index.js +4 -0
  185. package/dist/esm/react-query/index.js.map +1 -1
  186. package/dist/esm/react-query/vendorsAddVendorCredentialFile.d.ts +23 -0
  187. package/dist/esm/react-query/vendorsAddVendorCredentialFile.d.ts.map +1 -0
  188. package/dist/esm/react-query/vendorsAddVendorCredentialFile.js +46 -0
  189. package/dist/esm/react-query/vendorsAddVendorCredentialFile.js.map +1 -0
  190. package/dist/esm/react-query/vendorsDeleteVendorCredentialFile.d.ts +23 -0
  191. package/dist/esm/react-query/vendorsDeleteVendorCredentialFile.d.ts.map +1 -0
  192. package/dist/esm/react-query/vendorsDeleteVendorCredentialFile.js +46 -0
  193. package/dist/esm/react-query/vendorsDeleteVendorCredentialFile.js.map +1 -0
  194. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +79 -0
  195. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -0
  196. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +148 -0
  197. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js.map +1 -0
  198. package/dist/esm/react-query/vendorsUpdateVendorCredentialFile.d.ts +23 -0
  199. package/dist/esm/react-query/vendorsUpdateVendorCredentialFile.d.ts.map +1 -0
  200. package/dist/esm/react-query/vendorsUpdateVendorCredentialFile.js +46 -0
  201. package/dist/esm/react-query/vendorsUpdateVendorCredentialFile.js.map +1 -0
  202. package/dist/esm/sdk/vendors.d.ts +30 -0
  203. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  204. package/dist/esm/sdk/vendors.js +40 -0
  205. package/dist/esm/sdk/vendors.js.map +1 -1
  206. package/jsr.json +1 -1
  207. package/package.json +1 -1
  208. package/src/__tests__/vendors.test.ts +106 -7
  209. package/src/__tests__/webhooks.test.ts +1 -1
  210. package/src/__tests__/zones.test.ts +9 -9
  211. package/src/funcs/vendorsAddVendorCredentialFile.ts +177 -0
  212. package/src/funcs/vendorsDeleteVendorCredentialFile.ts +181 -0
  213. package/src/funcs/vendorsListVendorCredentialHistory.ts +259 -0
  214. package/src/funcs/vendorsListVendorFacilityStatuses.ts +1 -1
  215. package/src/funcs/vendorsUpdateVendorCredentialFile.ts +182 -0
  216. package/src/lib/config.ts +2 -2
  217. package/src/mcp-server/mcp-server.ts +1 -1
  218. package/src/mcp-server/server.ts +9 -1
  219. package/src/mcp-server/tools/vendorsAddVendorCredentialFile.ts +38 -0
  220. package/src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts +39 -0
  221. package/src/mcp-server/tools/vendorsListVendorCredentialHistory.ts +39 -0
  222. package/src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts +39 -0
  223. package/src/models/components/contenttype.ts +84 -0
  224. package/src/models/components/index.ts +1 -0
  225. package/src/models/components/vendorcredentialsummary.ts +14 -4
  226. package/src/models/operations/addvendorcredentialfile.ts +248 -0
  227. package/src/models/operations/deletevendorcredentialfile.ts +88 -0
  228. package/src/models/operations/index.ts +4 -0
  229. package/src/models/operations/listvendorcredentialhistory.ts +272 -0
  230. package/src/models/operations/updatevendorcredentialfile.ts +173 -0
  231. package/src/react-query/index.ts +4 -0
  232. package/src/react-query/vendorsAddVendorCredentialFile.ts +93 -0
  233. package/src/react-query/vendorsDeleteVendorCredentialFile.ts +92 -0
  234. package/src/react-query/vendorsListVendorCredentialHistory.ts +360 -0
  235. package/src/react-query/vendorsUpdateVendorCredentialFile.ts +92 -0
  236. package/src/sdk/vendors.ts +77 -0
package/bin/mcp-server.js CHANGED
@@ -34236,9 +34236,9 @@ var init_config = __esm(() => {
34236
34236
  SDK_METADATA = {
34237
34237
  language: "typescript",
34238
34238
  openapiDocVersion: "0.0.3",
34239
- sdkVersion: "0.31.4",
34239
+ sdkVersion: "0.31.7",
34240
34240
  genVersion: "2.610.0",
34241
- userAgent: "speakeasy-sdk/typescript 0.31.4 2.610.0 0.0.3 @greensecurity/javascript-sdk"
34241
+ userAgent: "speakeasy-sdk/typescript 0.31.7 2.610.0 0.0.3 @greensecurity/javascript-sdk"
34242
34242
  };
34243
34243
  });
34244
34244
 
@@ -35675,124 +35675,6 @@ var init_errors2 = __esm(() => {
35675
35675
  init_sdkvalidationerror();
35676
35676
  });
35677
35677
 
35678
- // src/models/operations/addvendormanagedbycompany.ts
35679
- var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$;
35680
- var init_addvendormanagedbycompany = __esm(() => {
35681
- init_esm();
35682
- init_primitives();
35683
- AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
35684
- company_id: numberType().int()
35685
- }).transform((v2) => {
35686
- return remap(v2, {
35687
- company_id: "companyId"
35688
- });
35689
- });
35690
- AddVendorManagedByCompanyRequestBody$outboundSchema = objectType({
35691
- companyId: numberType().int()
35692
- }).transform((v2) => {
35693
- return remap(v2, {
35694
- companyId: "company_id"
35695
- });
35696
- });
35697
- ((AddVendorManagedByCompanyRequestBody$) => {
35698
- AddVendorManagedByCompanyRequestBody$.inboundSchema = AddVendorManagedByCompanyRequestBody$inboundSchema;
35699
- AddVendorManagedByCompanyRequestBody$.outboundSchema = AddVendorManagedByCompanyRequestBody$outboundSchema;
35700
- })(AddVendorManagedByCompanyRequestBody$ ||= {});
35701
- AddVendorManagedByCompanyRequest$inboundSchema = objectType({
35702
- vendor_id_or_me: stringType(),
35703
- RequestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$inboundSchema)
35704
- }).transform((v2) => {
35705
- return remap(v2, {
35706
- vendor_id_or_me: "vendorIdOrMe",
35707
- RequestBody: "requestBody"
35708
- });
35709
- });
35710
- AddVendorManagedByCompanyRequest$outboundSchema = objectType({
35711
- vendorIdOrMe: stringType(),
35712
- requestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$outboundSchema)
35713
- }).transform((v2) => {
35714
- return remap(v2, {
35715
- vendorIdOrMe: "vendor_id_or_me",
35716
- requestBody: "RequestBody"
35717
- });
35718
- });
35719
- ((AddVendorManagedByCompanyRequest$) => {
35720
- AddVendorManagedByCompanyRequest$.inboundSchema = AddVendorManagedByCompanyRequest$inboundSchema;
35721
- AddVendorManagedByCompanyRequest$.outboundSchema = AddVendorManagedByCompanyRequest$outboundSchema;
35722
- })(AddVendorManagedByCompanyRequest$ ||= {});
35723
- AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema = objectType({
35724
- success: booleanType()
35725
- });
35726
- AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema = objectType({
35727
- success: booleanType()
35728
- });
35729
- ((AddVendorManagedByCompanyAddVendorManagedByCompanyOk$) => {
35730
- AddVendorManagedByCompanyAddVendorManagedByCompanyOk$.inboundSchema = AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema;
35731
- AddVendorManagedByCompanyAddVendorManagedByCompanyOk$.outboundSchema = AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema;
35732
- })(AddVendorManagedByCompanyAddVendorManagedByCompanyOk$ ||= {});
35733
- });
35734
-
35735
- // src/models/operations/changepassword.ts
35736
- var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordChangePasswordOk$inboundSchema, ChangePasswordChangePasswordOk$outboundSchema, ChangePasswordChangePasswordOk$;
35737
- var init_changepassword = __esm(() => {
35738
- init_esm();
35739
- init_primitives();
35740
- ChangePasswordRequestBody$inboundSchema = objectType({
35741
- old_password: stringType(),
35742
- new_password: stringType()
35743
- }).transform((v2) => {
35744
- return remap(v2, {
35745
- old_password: "oldPassword",
35746
- new_password: "newPassword"
35747
- });
35748
- });
35749
- ChangePasswordRequestBody$outboundSchema = objectType({
35750
- oldPassword: stringType(),
35751
- newPassword: stringType()
35752
- }).transform((v2) => {
35753
- return remap(v2, {
35754
- oldPassword: "old_password",
35755
- newPassword: "new_password"
35756
- });
35757
- });
35758
- ((ChangePasswordRequestBody$) => {
35759
- ChangePasswordRequestBody$.inboundSchema = ChangePasswordRequestBody$inboundSchema;
35760
- ChangePasswordRequestBody$.outboundSchema = ChangePasswordRequestBody$outboundSchema;
35761
- })(ChangePasswordRequestBody$ ||= {});
35762
- ChangePasswordRequest$inboundSchema = objectType({
35763
- id_or_me: stringType(),
35764
- RequestBody: lazyType(() => ChangePasswordRequestBody$inboundSchema)
35765
- }).transform((v2) => {
35766
- return remap(v2, {
35767
- id_or_me: "idOrMe",
35768
- RequestBody: "requestBody"
35769
- });
35770
- });
35771
- ChangePasswordRequest$outboundSchema = objectType({
35772
- idOrMe: stringType(),
35773
- requestBody: lazyType(() => ChangePasswordRequestBody$outboundSchema)
35774
- }).transform((v2) => {
35775
- return remap(v2, {
35776
- idOrMe: "id_or_me",
35777
- requestBody: "RequestBody"
35778
- });
35779
- });
35780
- ((ChangePasswordRequest$) => {
35781
- ChangePasswordRequest$.inboundSchema = ChangePasswordRequest$inboundSchema;
35782
- ChangePasswordRequest$.outboundSchema = ChangePasswordRequest$outboundSchema;
35783
- })(ChangePasswordRequest$ ||= {});
35784
- ChangePasswordChangePasswordOk$inboundSchema = objectType({
35785
- success: booleanType()
35786
- });
35787
- ChangePasswordChangePasswordOk$outboundSchema = objectType({
35788
- success: booleanType()
35789
- });
35790
- ((ChangePasswordChangePasswordOk$) => {
35791
- ChangePasswordChangePasswordOk$.inboundSchema = ChangePasswordChangePasswordOk$inboundSchema;
35792
- ChangePasswordChangePasswordOk$.outboundSchema = ChangePasswordChangePasswordOk$outboundSchema;
35793
- })(ChangePasswordChangePasswordOk$ ||= {});
35794
- });
35795
-
35796
35678
  // src/models/components/activestatus.ts
35797
35679
  var ActiveStatus, ActiveStatus$inboundSchema, ActiveStatus$outboundSchema, ActiveStatus$;
35798
35680
  var init_activestatus = __esm(() => {
@@ -36419,6 +36301,65 @@ var init_contact = __esm(() => {
36419
36301
  })(Contact$ ||= {});
36420
36302
  });
36421
36303
 
36304
+ // src/models/components/contenttype.ts
36305
+ var ContentType, ContentType$inboundSchema, ContentType$outboundSchema, ContentType$;
36306
+ var init_contenttype = __esm(() => {
36307
+ init_esm();
36308
+ ContentType = {
36309
+ ApplicationBinary: "application/binary",
36310
+ ApplicationCsv: "application/csv",
36311
+ ApplicationJson: "application/json",
36312
+ ApplicationMsword: "application/msword",
36313
+ ApplicationOctetStream: "application/octet-stream",
36314
+ ApplicationPdf: "application/pdf",
36315
+ ApplicationRtf: "application/rtf",
36316
+ ApplicationVndMsExcel: "application/vnd.ms-excel",
36317
+ ApplicationVndMsTnef: "application/vnd.ms-tnef",
36318
+ ApplicationVndOasisOpendocumentText: "application/vnd.oasis.opendocument.text",
36319
+ ApplicationVndOpenxmlformatsOfficedocumentPresentationmlPresentation: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
36320
+ ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
36321
+ ApplicationVndOpenxmlformatsOfficedocumentWordprocessingmlDocument: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
36322
+ ApplicationVndPdf: "application/vnd.pdf",
36323
+ ApplicationWpsOfficeDocx: "application/wps-office.docx",
36324
+ ApplicationX7zCompressed: "application/x-7z-compressed",
36325
+ ApplicationXDownload: "application/x-download",
36326
+ ApplicationXhtmlPlusXml: "application/xhtml+xml",
36327
+ ApplicationXml: "application/xml",
36328
+ ApplicationXMsDosExecutable: "application/x-ms-dos-executable",
36329
+ ApplicationXOleStorage: "application/x-ole-storage",
36330
+ ApplicationZip: "application/zip",
36331
+ ImageBmp: "image/bmp",
36332
+ ImageGif: "image/gif",
36333
+ ImageHeic: "image/heic",
36334
+ ImageHeif: "image/heif",
36335
+ ImageJp2: "image/jp2",
36336
+ ImageJpeg: "image/jpeg",
36337
+ ImageJpg: "image/jpg",
36338
+ ImagePjpeg: "image/pjpeg",
36339
+ ImagePng: "image/png",
36340
+ ImageTiff: "image/tiff",
36341
+ ImageVndAdobePhotoshop: "image/vnd.adobe.photoshop",
36342
+ ImageVndMicrosoftIcon: "image/vnd.microsoft.icon",
36343
+ ImageWebp: "image/webp",
36344
+ ImageXPng: "image/x-png",
36345
+ InodeXEmpty: "inode/x-empty",
36346
+ MessageRfc822: "message/rfc822",
36347
+ PdfSignoSign2: "pdf/signoSign.2",
36348
+ TextHtml: "text/html",
36349
+ TextPdf: "text/pdf",
36350
+ TextPlain: "text/plain",
36351
+ TextVcard: "text/vcard",
36352
+ VideoMp4: "video/mp4",
36353
+ VideoQuicktime: "video/quicktime"
36354
+ };
36355
+ ContentType$inboundSchema = nativeEnumType(ContentType);
36356
+ ContentType$outboundSchema = ContentType$inboundSchema;
36357
+ ((ContentType$) => {
36358
+ ContentType$.inboundSchema = ContentType$inboundSchema;
36359
+ ContentType$.outboundSchema = ContentType$outboundSchema;
36360
+ })(ContentType$ ||= {});
36361
+ });
36362
+
36422
36363
  // src/models/components/credentialdocument.ts
36423
36364
  var CredentialDocumentCredential$inboundSchema, CredentialDocumentCredential$outboundSchema, CredentialDocumentCredential$, FileT$inboundSchema, FileT$outboundSchema, FileT$, CredentialDocument$inboundSchema, CredentialDocument$outboundSchema, CredentialDocument$;
36424
36365
  var init_credentialdocument = __esm(() => {
@@ -39536,14 +39477,16 @@ var init_vendorcredentialsummary = __esm(() => {
39536
39477
  VendorCredentialSummary$inboundSchema = objectType({
39537
39478
  id: numberType().int(),
39538
39479
  status: nullableType(stringType()).optional(),
39480
+ version: numberType().int().optional(),
39539
39481
  company: nullableType(Company$inboundSchema).optional(),
39540
39482
  date_due: nullableType(stringType()).optional(),
39541
39483
  date_expires: nullableType(stringType()).optional(),
39542
39484
  date_expedited: nullableType(stringType()).optional(),
39543
39485
  date_valid: nullableType(stringType()).optional(),
39544
39486
  notes: nullableType(stringType()).optional(),
39545
- expedited: booleanType().optional(),
39546
39487
  json_data: nullableType(stringType()).optional(),
39488
+ filename: nullableType(stringType()).optional(),
39489
+ alternate_id: nullableType(numberType().int()).optional(),
39547
39490
  credential: nullableType(unionType([Credential$inboundSchema, numberType().int()])).optional(),
39548
39491
  vendor: nullableType(unionType([Vendor$inboundSchema, numberType().int()])).optional(),
39549
39492
  invoice: nullableType(unionType([Invoice$inboundSchema, numberType().int()])).optional(),
@@ -39566,6 +39509,7 @@ var init_vendorcredentialsummary = __esm(() => {
39566
39509
  date_expedited: "dateExpedited",
39567
39510
  date_valid: "dateValid",
39568
39511
  json_data: "jsonData",
39512
+ alternate_id: "alternateId",
39569
39513
  vendor_credential_files: "vendorCredentialFiles",
39570
39514
  latest_vendor_credential_id: "latestVendorCredentialId",
39571
39515
  previously_approved: "previouslyApproved",
@@ -39583,14 +39527,16 @@ var init_vendorcredentialsummary = __esm(() => {
39583
39527
  VendorCredentialSummary$outboundSchema = objectType({
39584
39528
  id: numberType().int(),
39585
39529
  status: nullableType(stringType()).optional(),
39530
+ version: numberType().int().optional(),
39586
39531
  company: nullableType(Company$outboundSchema).optional(),
39587
39532
  dateDue: nullableType(stringType()).optional(),
39588
39533
  dateExpires: nullableType(stringType()).optional(),
39589
39534
  dateExpedited: nullableType(stringType()).optional(),
39590
39535
  dateValid: nullableType(stringType()).optional(),
39591
39536
  notes: nullableType(stringType()).optional(),
39592
- expedited: booleanType().optional(),
39593
39537
  jsonData: nullableType(stringType()).optional(),
39538
+ filename: nullableType(stringType()).optional(),
39539
+ alternateId: nullableType(numberType().int()).optional(),
39594
39540
  credential: nullableType(unionType([Credential$outboundSchema, numberType().int()])).optional(),
39595
39541
  vendor: nullableType(unionType([Vendor$outboundSchema, numberType().int()])).optional(),
39596
39542
  invoice: nullableType(unionType([Invoice$outboundSchema, numberType().int()])).optional(),
@@ -39613,6 +39559,7 @@ var init_vendorcredentialsummary = __esm(() => {
39613
39559
  dateExpedited: "date_expedited",
39614
39560
  dateValid: "date_valid",
39615
39561
  jsonData: "json_data",
39562
+ alternateId: "alternate_id",
39616
39563
  vendorCredentialFiles: "vendor_credential_files",
39617
39564
  latestVendorCredentialId: "latest_vendor_credential_id",
39618
39565
  previouslyApproved: "previously_approved",
@@ -40159,6 +40106,7 @@ var init_components = __esm(() => {
40159
40106
  init_backgroundcheckresult();
40160
40107
  init_company();
40161
40108
  init_contact();
40109
+ init_contenttype();
40162
40110
  init_credential();
40163
40111
  init_credentialdocument();
40164
40112
  init_credentialstatus();
@@ -40213,149 +40161,366 @@ var init_components = __esm(() => {
40213
40161
  init_zoneconfig();
40214
40162
  });
40215
40163
 
40216
- // src/models/operations/createvendorcompany.ts
40217
- var CreateVendorCompanyRequestBody$inboundSchema, CreateVendorCompanyRequestBody$outboundSchema, CreateVendorCompanyRequestBody$, CreateVendorCompanyRequest$inboundSchema, CreateVendorCompanyRequest$outboundSchema, CreateVendorCompanyRequest$, CreateVendorCompanyResponseBody$inboundSchema, CreateVendorCompanyResponseBody$outboundSchema, CreateVendorCompanyResponseBody$;
40218
- var init_createvendorcompany = __esm(() => {
40164
+ // src/models/operations/addvendorcredentialfile.ts
40165
+ var AddVendorCredentialFileRequestBody$inboundSchema, AddVendorCredentialFileRequestBody$outboundSchema, AddVendorCredentialFileRequestBody$, AddVendorCredentialFileRequest$inboundSchema, AddVendorCredentialFileRequest$outboundSchema, AddVendorCredentialFileRequest$, AddVendorCredentialFileResponseBody$inboundSchema, AddVendorCredentialFileResponseBody$outboundSchema, AddVendorCredentialFileResponseBody$;
40166
+ var init_addvendorcredentialfile = __esm(() => {
40219
40167
  init_esm();
40220
40168
  init_primitives();
40221
40169
  init_components();
40222
- CreateVendorCompanyRequestBody$inboundSchema = objectType({
40223
- name: stringType(),
40224
- address: stringType(),
40225
- city: stringType(),
40226
- state: nullableType(State$inboundSchema),
40227
- zip: stringType(),
40228
- tax_id: stringType()
40170
+ AddVendorCredentialFileRequestBody$inboundSchema = objectType({
40171
+ file_name: stringType(),
40172
+ content_type: ContentType$inboundSchema,
40173
+ file_size: numberType().int(),
40174
+ is_decline: booleanType().optional(),
40175
+ name: stringType().optional()
40229
40176
  }).transform((v2) => {
40230
40177
  return remap(v2, {
40231
- tax_id: "taxId"
40178
+ file_name: "fileName",
40179
+ content_type: "contentType",
40180
+ file_size: "fileSize",
40181
+ is_decline: "isDecline"
40232
40182
  });
40233
40183
  });
40234
- CreateVendorCompanyRequestBody$outboundSchema = objectType({
40235
- name: stringType(),
40236
- address: stringType(),
40237
- city: stringType(),
40238
- state: nullableType(State$outboundSchema),
40239
- zip: stringType(),
40240
- taxId: stringType()
40184
+ AddVendorCredentialFileRequestBody$outboundSchema = objectType({
40185
+ fileName: stringType(),
40186
+ contentType: ContentType$outboundSchema,
40187
+ fileSize: numberType().int(),
40188
+ isDecline: booleanType().optional(),
40189
+ name: stringType().optional()
40241
40190
  }).transform((v2) => {
40242
40191
  return remap(v2, {
40243
- taxId: "tax_id"
40192
+ fileName: "file_name",
40193
+ contentType: "content_type",
40194
+ fileSize: "file_size",
40195
+ isDecline: "is_decline"
40244
40196
  });
40245
40197
  });
40246
- ((CreateVendorCompanyRequestBody$) => {
40247
- CreateVendorCompanyRequestBody$.inboundSchema = CreateVendorCompanyRequestBody$inboundSchema;
40248
- CreateVendorCompanyRequestBody$.outboundSchema = CreateVendorCompanyRequestBody$outboundSchema;
40249
- })(CreateVendorCompanyRequestBody$ ||= {});
40250
- CreateVendorCompanyRequest$inboundSchema = objectType({
40251
- vendor_id_or_me: stringType(),
40252
- RequestBody: lazyType(() => CreateVendorCompanyRequestBody$inboundSchema)
40198
+ ((AddVendorCredentialFileRequestBody$) => {
40199
+ AddVendorCredentialFileRequestBody$.inboundSchema = AddVendorCredentialFileRequestBody$inboundSchema;
40200
+ AddVendorCredentialFileRequestBody$.outboundSchema = AddVendorCredentialFileRequestBody$outboundSchema;
40201
+ })(AddVendorCredentialFileRequestBody$ ||= {});
40202
+ AddVendorCredentialFileRequest$inboundSchema = objectType({
40203
+ vendor_credential_id: numberType().int(),
40204
+ RequestBody: lazyType(() => AddVendorCredentialFileRequestBody$inboundSchema)
40253
40205
  }).transform((v2) => {
40254
40206
  return remap(v2, {
40255
- vendor_id_or_me: "vendorIdOrMe",
40207
+ vendor_credential_id: "vendorCredentialId",
40256
40208
  RequestBody: "requestBody"
40257
40209
  });
40258
40210
  });
40259
- CreateVendorCompanyRequest$outboundSchema = objectType({
40260
- vendorIdOrMe: stringType(),
40261
- requestBody: lazyType(() => CreateVendorCompanyRequestBody$outboundSchema)
40211
+ AddVendorCredentialFileRequest$outboundSchema = objectType({
40212
+ vendorCredentialId: numberType().int(),
40213
+ requestBody: lazyType(() => AddVendorCredentialFileRequestBody$outboundSchema)
40262
40214
  }).transform((v2) => {
40263
40215
  return remap(v2, {
40264
- vendorIdOrMe: "vendor_id_or_me",
40216
+ vendorCredentialId: "vendor_credential_id",
40265
40217
  requestBody: "RequestBody"
40266
40218
  });
40267
40219
  });
40268
- ((CreateVendorCompanyRequest$) => {
40269
- CreateVendorCompanyRequest$.inboundSchema = CreateVendorCompanyRequest$inboundSchema;
40270
- CreateVendorCompanyRequest$.outboundSchema = CreateVendorCompanyRequest$outboundSchema;
40271
- })(CreateVendorCompanyRequest$ ||= {});
40272
- CreateVendorCompanyResponseBody$inboundSchema = objectType({
40273
- company_id: numberType().int().optional()
40274
- }).transform((v2) => {
40275
- return remap(v2, {
40276
- company_id: "companyId"
40277
- });
40220
+ ((AddVendorCredentialFileRequest$) => {
40221
+ AddVendorCredentialFileRequest$.inboundSchema = AddVendorCredentialFileRequest$inboundSchema;
40222
+ AddVendorCredentialFileRequest$.outboundSchema = AddVendorCredentialFileRequest$outboundSchema;
40223
+ })(AddVendorCredentialFileRequest$ ||= {});
40224
+ AddVendorCredentialFileResponseBody$inboundSchema = objectType({
40225
+ id: numberType().int().optional()
40278
40226
  });
40279
- CreateVendorCompanyResponseBody$outboundSchema = objectType({
40280
- companyId: numberType().int().optional()
40281
- }).transform((v2) => {
40282
- return remap(v2, {
40283
- companyId: "company_id"
40284
- });
40227
+ AddVendorCredentialFileResponseBody$outboundSchema = objectType({
40228
+ id: numberType().int().optional()
40285
40229
  });
40286
- ((CreateVendorCompanyResponseBody$) => {
40287
- CreateVendorCompanyResponseBody$.inboundSchema = CreateVendorCompanyResponseBody$inboundSchema;
40288
- CreateVendorCompanyResponseBody$.outboundSchema = CreateVendorCompanyResponseBody$outboundSchema;
40289
- })(CreateVendorCompanyResponseBody$ ||= {});
40230
+ ((AddVendorCredentialFileResponseBody$) => {
40231
+ AddVendorCredentialFileResponseBody$.inboundSchema = AddVendorCredentialFileResponseBody$inboundSchema;
40232
+ AddVendorCredentialFileResponseBody$.outboundSchema = AddVendorCredentialFileResponseBody$outboundSchema;
40233
+ })(AddVendorCredentialFileResponseBody$ ||= {});
40290
40234
  });
40291
40235
 
40292
- // src/models/operations/createvendorregistration.ts
40293
- var CreateVendorRegistrationRequestBody$inboundSchema, CreateVendorRegistrationRequestBody$outboundSchema, CreateVendorRegistrationRequestBody$;
40294
- var init_createvendorregistration = __esm(() => {
40236
+ // src/models/operations/addvendormanagedbycompany.ts
40237
+ var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$;
40238
+ var init_addvendormanagedbycompany = __esm(() => {
40295
40239
  init_esm();
40296
40240
  init_primitives();
40297
- CreateVendorRegistrationRequestBody$inboundSchema = objectType({
40298
- email: stringType(),
40299
- password: stringType(),
40300
- timezone: stringType().optional(),
40301
- affiliate_id: numberType().int().optional(),
40302
- vendor_group_id: numberType().int().optional(),
40303
- managing_company_id: numberType().int().optional()
40241
+ AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
40242
+ company_id: numberType().int()
40304
40243
  }).transform((v2) => {
40305
40244
  return remap(v2, {
40306
- affiliate_id: "affiliateId",
40307
- vendor_group_id: "vendorGroupId",
40308
- managing_company_id: "managingCompanyId"
40245
+ company_id: "companyId"
40309
40246
  });
40310
40247
  });
40311
- CreateVendorRegistrationRequestBody$outboundSchema = objectType({
40312
- email: stringType(),
40313
- password: stringType(),
40314
- timezone: stringType().optional(),
40315
- affiliateId: numberType().int().optional(),
40316
- vendorGroupId: numberType().int().optional(),
40317
- managingCompanyId: numberType().int().optional()
40248
+ AddVendorManagedByCompanyRequestBody$outboundSchema = objectType({
40249
+ companyId: numberType().int()
40318
40250
  }).transform((v2) => {
40319
40251
  return remap(v2, {
40320
- affiliateId: "affiliate_id",
40321
- vendorGroupId: "vendor_group_id",
40322
- managingCompanyId: "managing_company_id"
40252
+ companyId: "company_id"
40323
40253
  });
40324
40254
  });
40325
- ((CreateVendorRegistrationRequestBody$) => {
40326
- CreateVendorRegistrationRequestBody$.inboundSchema = CreateVendorRegistrationRequestBody$inboundSchema;
40327
- CreateVendorRegistrationRequestBody$.outboundSchema = CreateVendorRegistrationRequestBody$outboundSchema;
40328
- })(CreateVendorRegistrationRequestBody$ ||= {});
40329
- });
40330
-
40331
- // src/models/operations/declinevendorcredential.ts
40332
- var DeclineVendorCredentialRequest$inboundSchema, DeclineVendorCredentialRequest$outboundSchema, DeclineVendorCredentialRequest$;
40333
- var init_declinevendorcredential = __esm(() => {
40334
- init_esm();
40335
- init_primitives();
40336
- DeclineVendorCredentialRequest$inboundSchema = objectType({
40337
- vendor_credential_id: numberType().int()
40255
+ ((AddVendorManagedByCompanyRequestBody$) => {
40256
+ AddVendorManagedByCompanyRequestBody$.inboundSchema = AddVendorManagedByCompanyRequestBody$inboundSchema;
40257
+ AddVendorManagedByCompanyRequestBody$.outboundSchema = AddVendorManagedByCompanyRequestBody$outboundSchema;
40258
+ })(AddVendorManagedByCompanyRequestBody$ ||= {});
40259
+ AddVendorManagedByCompanyRequest$inboundSchema = objectType({
40260
+ vendor_id_or_me: stringType(),
40261
+ RequestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$inboundSchema)
40338
40262
  }).transform((v2) => {
40339
40263
  return remap(v2, {
40340
- vendor_credential_id: "vendorCredentialId"
40264
+ vendor_id_or_me: "vendorIdOrMe",
40265
+ RequestBody: "requestBody"
40341
40266
  });
40342
40267
  });
40343
- DeclineVendorCredentialRequest$outboundSchema = objectType({
40344
- vendorCredentialId: numberType().int()
40268
+ AddVendorManagedByCompanyRequest$outboundSchema = objectType({
40269
+ vendorIdOrMe: stringType(),
40270
+ requestBody: lazyType(() => AddVendorManagedByCompanyRequestBody$outboundSchema)
40345
40271
  }).transform((v2) => {
40346
40272
  return remap(v2, {
40347
- vendorCredentialId: "vendor_credential_id"
40273
+ vendorIdOrMe: "vendor_id_or_me",
40274
+ requestBody: "RequestBody"
40348
40275
  });
40349
40276
  });
40350
- ((DeclineVendorCredentialRequest$) => {
40351
- DeclineVendorCredentialRequest$.inboundSchema = DeclineVendorCredentialRequest$inboundSchema;
40352
- DeclineVendorCredentialRequest$.outboundSchema = DeclineVendorCredentialRequest$outboundSchema;
40353
- })(DeclineVendorCredentialRequest$ ||= {});
40354
- });
40355
-
40356
- // src/models/operations/deletevendormanagedbycompany.ts
40357
- var DeleteVendorManagedByCompanyRequestBody$inboundSchema, DeleteVendorManagedByCompanyRequestBody$outboundSchema, DeleteVendorManagedByCompanyRequestBody$, DeleteVendorManagedByCompanyRequest$inboundSchema, DeleteVendorManagedByCompanyRequest$outboundSchema, DeleteVendorManagedByCompanyRequest$, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$outboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$;
40358
- var init_deletevendormanagedbycompany = __esm(() => {
40277
+ ((AddVendorManagedByCompanyRequest$) => {
40278
+ AddVendorManagedByCompanyRequest$.inboundSchema = AddVendorManagedByCompanyRequest$inboundSchema;
40279
+ AddVendorManagedByCompanyRequest$.outboundSchema = AddVendorManagedByCompanyRequest$outboundSchema;
40280
+ })(AddVendorManagedByCompanyRequest$ ||= {});
40281
+ AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema = objectType({
40282
+ success: booleanType()
40283
+ });
40284
+ AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema = objectType({
40285
+ success: booleanType()
40286
+ });
40287
+ ((AddVendorManagedByCompanyAddVendorManagedByCompanyOk$) => {
40288
+ AddVendorManagedByCompanyAddVendorManagedByCompanyOk$.inboundSchema = AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema;
40289
+ AddVendorManagedByCompanyAddVendorManagedByCompanyOk$.outboundSchema = AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema;
40290
+ })(AddVendorManagedByCompanyAddVendorManagedByCompanyOk$ ||= {});
40291
+ });
40292
+
40293
+ // src/models/operations/changepassword.ts
40294
+ var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordChangePasswordOk$inboundSchema, ChangePasswordChangePasswordOk$outboundSchema, ChangePasswordChangePasswordOk$;
40295
+ var init_changepassword = __esm(() => {
40296
+ init_esm();
40297
+ init_primitives();
40298
+ ChangePasswordRequestBody$inboundSchema = objectType({
40299
+ old_password: stringType(),
40300
+ new_password: stringType()
40301
+ }).transform((v2) => {
40302
+ return remap(v2, {
40303
+ old_password: "oldPassword",
40304
+ new_password: "newPassword"
40305
+ });
40306
+ });
40307
+ ChangePasswordRequestBody$outboundSchema = objectType({
40308
+ oldPassword: stringType(),
40309
+ newPassword: stringType()
40310
+ }).transform((v2) => {
40311
+ return remap(v2, {
40312
+ oldPassword: "old_password",
40313
+ newPassword: "new_password"
40314
+ });
40315
+ });
40316
+ ((ChangePasswordRequestBody$) => {
40317
+ ChangePasswordRequestBody$.inboundSchema = ChangePasswordRequestBody$inboundSchema;
40318
+ ChangePasswordRequestBody$.outboundSchema = ChangePasswordRequestBody$outboundSchema;
40319
+ })(ChangePasswordRequestBody$ ||= {});
40320
+ ChangePasswordRequest$inboundSchema = objectType({
40321
+ id_or_me: stringType(),
40322
+ RequestBody: lazyType(() => ChangePasswordRequestBody$inboundSchema)
40323
+ }).transform((v2) => {
40324
+ return remap(v2, {
40325
+ id_or_me: "idOrMe",
40326
+ RequestBody: "requestBody"
40327
+ });
40328
+ });
40329
+ ChangePasswordRequest$outboundSchema = objectType({
40330
+ idOrMe: stringType(),
40331
+ requestBody: lazyType(() => ChangePasswordRequestBody$outboundSchema)
40332
+ }).transform((v2) => {
40333
+ return remap(v2, {
40334
+ idOrMe: "id_or_me",
40335
+ requestBody: "RequestBody"
40336
+ });
40337
+ });
40338
+ ((ChangePasswordRequest$) => {
40339
+ ChangePasswordRequest$.inboundSchema = ChangePasswordRequest$inboundSchema;
40340
+ ChangePasswordRequest$.outboundSchema = ChangePasswordRequest$outboundSchema;
40341
+ })(ChangePasswordRequest$ ||= {});
40342
+ ChangePasswordChangePasswordOk$inboundSchema = objectType({
40343
+ success: booleanType()
40344
+ });
40345
+ ChangePasswordChangePasswordOk$outboundSchema = objectType({
40346
+ success: booleanType()
40347
+ });
40348
+ ((ChangePasswordChangePasswordOk$) => {
40349
+ ChangePasswordChangePasswordOk$.inboundSchema = ChangePasswordChangePasswordOk$inboundSchema;
40350
+ ChangePasswordChangePasswordOk$.outboundSchema = ChangePasswordChangePasswordOk$outboundSchema;
40351
+ })(ChangePasswordChangePasswordOk$ ||= {});
40352
+ });
40353
+
40354
+ // src/models/operations/createvendorcompany.ts
40355
+ var CreateVendorCompanyRequestBody$inboundSchema, CreateVendorCompanyRequestBody$outboundSchema, CreateVendorCompanyRequestBody$, CreateVendorCompanyRequest$inboundSchema, CreateVendorCompanyRequest$outboundSchema, CreateVendorCompanyRequest$, CreateVendorCompanyResponseBody$inboundSchema, CreateVendorCompanyResponseBody$outboundSchema, CreateVendorCompanyResponseBody$;
40356
+ var init_createvendorcompany = __esm(() => {
40357
+ init_esm();
40358
+ init_primitives();
40359
+ init_components();
40360
+ CreateVendorCompanyRequestBody$inboundSchema = objectType({
40361
+ name: stringType(),
40362
+ address: stringType(),
40363
+ city: stringType(),
40364
+ state: nullableType(State$inboundSchema),
40365
+ zip: stringType(),
40366
+ tax_id: stringType()
40367
+ }).transform((v2) => {
40368
+ return remap(v2, {
40369
+ tax_id: "taxId"
40370
+ });
40371
+ });
40372
+ CreateVendorCompanyRequestBody$outboundSchema = objectType({
40373
+ name: stringType(),
40374
+ address: stringType(),
40375
+ city: stringType(),
40376
+ state: nullableType(State$outboundSchema),
40377
+ zip: stringType(),
40378
+ taxId: stringType()
40379
+ }).transform((v2) => {
40380
+ return remap(v2, {
40381
+ taxId: "tax_id"
40382
+ });
40383
+ });
40384
+ ((CreateVendorCompanyRequestBody$) => {
40385
+ CreateVendorCompanyRequestBody$.inboundSchema = CreateVendorCompanyRequestBody$inboundSchema;
40386
+ CreateVendorCompanyRequestBody$.outboundSchema = CreateVendorCompanyRequestBody$outboundSchema;
40387
+ })(CreateVendorCompanyRequestBody$ ||= {});
40388
+ CreateVendorCompanyRequest$inboundSchema = objectType({
40389
+ vendor_id_or_me: stringType(),
40390
+ RequestBody: lazyType(() => CreateVendorCompanyRequestBody$inboundSchema)
40391
+ }).transform((v2) => {
40392
+ return remap(v2, {
40393
+ vendor_id_or_me: "vendorIdOrMe",
40394
+ RequestBody: "requestBody"
40395
+ });
40396
+ });
40397
+ CreateVendorCompanyRequest$outboundSchema = objectType({
40398
+ vendorIdOrMe: stringType(),
40399
+ requestBody: lazyType(() => CreateVendorCompanyRequestBody$outboundSchema)
40400
+ }).transform((v2) => {
40401
+ return remap(v2, {
40402
+ vendorIdOrMe: "vendor_id_or_me",
40403
+ requestBody: "RequestBody"
40404
+ });
40405
+ });
40406
+ ((CreateVendorCompanyRequest$) => {
40407
+ CreateVendorCompanyRequest$.inboundSchema = CreateVendorCompanyRequest$inboundSchema;
40408
+ CreateVendorCompanyRequest$.outboundSchema = CreateVendorCompanyRequest$outboundSchema;
40409
+ })(CreateVendorCompanyRequest$ ||= {});
40410
+ CreateVendorCompanyResponseBody$inboundSchema = objectType({
40411
+ company_id: numberType().int().optional()
40412
+ }).transform((v2) => {
40413
+ return remap(v2, {
40414
+ company_id: "companyId"
40415
+ });
40416
+ });
40417
+ CreateVendorCompanyResponseBody$outboundSchema = objectType({
40418
+ companyId: numberType().int().optional()
40419
+ }).transform((v2) => {
40420
+ return remap(v2, {
40421
+ companyId: "company_id"
40422
+ });
40423
+ });
40424
+ ((CreateVendorCompanyResponseBody$) => {
40425
+ CreateVendorCompanyResponseBody$.inboundSchema = CreateVendorCompanyResponseBody$inboundSchema;
40426
+ CreateVendorCompanyResponseBody$.outboundSchema = CreateVendorCompanyResponseBody$outboundSchema;
40427
+ })(CreateVendorCompanyResponseBody$ ||= {});
40428
+ });
40429
+
40430
+ // src/models/operations/createvendorregistration.ts
40431
+ var CreateVendorRegistrationRequestBody$inboundSchema, CreateVendorRegistrationRequestBody$outboundSchema, CreateVendorRegistrationRequestBody$;
40432
+ var init_createvendorregistration = __esm(() => {
40433
+ init_esm();
40434
+ init_primitives();
40435
+ CreateVendorRegistrationRequestBody$inboundSchema = objectType({
40436
+ email: stringType(),
40437
+ password: stringType(),
40438
+ timezone: stringType().optional(),
40439
+ affiliate_id: numberType().int().optional(),
40440
+ vendor_group_id: numberType().int().optional(),
40441
+ managing_company_id: numberType().int().optional()
40442
+ }).transform((v2) => {
40443
+ return remap(v2, {
40444
+ affiliate_id: "affiliateId",
40445
+ vendor_group_id: "vendorGroupId",
40446
+ managing_company_id: "managingCompanyId"
40447
+ });
40448
+ });
40449
+ CreateVendorRegistrationRequestBody$outboundSchema = objectType({
40450
+ email: stringType(),
40451
+ password: stringType(),
40452
+ timezone: stringType().optional(),
40453
+ affiliateId: numberType().int().optional(),
40454
+ vendorGroupId: numberType().int().optional(),
40455
+ managingCompanyId: numberType().int().optional()
40456
+ }).transform((v2) => {
40457
+ return remap(v2, {
40458
+ affiliateId: "affiliate_id",
40459
+ vendorGroupId: "vendor_group_id",
40460
+ managingCompanyId: "managing_company_id"
40461
+ });
40462
+ });
40463
+ ((CreateVendorRegistrationRequestBody$) => {
40464
+ CreateVendorRegistrationRequestBody$.inboundSchema = CreateVendorRegistrationRequestBody$inboundSchema;
40465
+ CreateVendorRegistrationRequestBody$.outboundSchema = CreateVendorRegistrationRequestBody$outboundSchema;
40466
+ })(CreateVendorRegistrationRequestBody$ ||= {});
40467
+ });
40468
+
40469
+ // src/models/operations/declinevendorcredential.ts
40470
+ var DeclineVendorCredentialRequest$inboundSchema, DeclineVendorCredentialRequest$outboundSchema, DeclineVendorCredentialRequest$;
40471
+ var init_declinevendorcredential = __esm(() => {
40472
+ init_esm();
40473
+ init_primitives();
40474
+ DeclineVendorCredentialRequest$inboundSchema = objectType({
40475
+ vendor_credential_id: numberType().int()
40476
+ }).transform((v2) => {
40477
+ return remap(v2, {
40478
+ vendor_credential_id: "vendorCredentialId"
40479
+ });
40480
+ });
40481
+ DeclineVendorCredentialRequest$outboundSchema = objectType({
40482
+ vendorCredentialId: numberType().int()
40483
+ }).transform((v2) => {
40484
+ return remap(v2, {
40485
+ vendorCredentialId: "vendor_credential_id"
40486
+ });
40487
+ });
40488
+ ((DeclineVendorCredentialRequest$) => {
40489
+ DeclineVendorCredentialRequest$.inboundSchema = DeclineVendorCredentialRequest$inboundSchema;
40490
+ DeclineVendorCredentialRequest$.outboundSchema = DeclineVendorCredentialRequest$outboundSchema;
40491
+ })(DeclineVendorCredentialRequest$ ||= {});
40492
+ });
40493
+
40494
+ // src/models/operations/deletevendorcredentialfile.ts
40495
+ var DeleteVendorCredentialFileRequest$inboundSchema, DeleteVendorCredentialFileRequest$outboundSchema, DeleteVendorCredentialFileRequest$;
40496
+ var init_deletevendorcredentialfile = __esm(() => {
40497
+ init_esm();
40498
+ init_primitives();
40499
+ DeleteVendorCredentialFileRequest$inboundSchema = objectType({
40500
+ vendor_credential_id: numberType().int(),
40501
+ id: numberType().int()
40502
+ }).transform((v2) => {
40503
+ return remap(v2, {
40504
+ vendor_credential_id: "vendorCredentialId"
40505
+ });
40506
+ });
40507
+ DeleteVendorCredentialFileRequest$outboundSchema = objectType({
40508
+ vendorCredentialId: numberType().int(),
40509
+ id: numberType().int()
40510
+ }).transform((v2) => {
40511
+ return remap(v2, {
40512
+ vendorCredentialId: "vendor_credential_id"
40513
+ });
40514
+ });
40515
+ ((DeleteVendorCredentialFileRequest$) => {
40516
+ DeleteVendorCredentialFileRequest$.inboundSchema = DeleteVendorCredentialFileRequest$inboundSchema;
40517
+ DeleteVendorCredentialFileRequest$.outboundSchema = DeleteVendorCredentialFileRequest$outboundSchema;
40518
+ })(DeleteVendorCredentialFileRequest$ ||= {});
40519
+ });
40520
+
40521
+ // src/models/operations/deletevendormanagedbycompany.ts
40522
+ var DeleteVendorManagedByCompanyRequestBody$inboundSchema, DeleteVendorManagedByCompanyRequestBody$outboundSchema, DeleteVendorManagedByCompanyRequestBody$, DeleteVendorManagedByCompanyRequest$inboundSchema, DeleteVendorManagedByCompanyRequest$outboundSchema, DeleteVendorManagedByCompanyRequest$, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$outboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$;
40523
+ var init_deletevendormanagedbycompany = __esm(() => {
40359
40524
  init_esm();
40360
40525
  init_primitives();
40361
40526
  DeleteVendorManagedByCompanyRequestBody$inboundSchema = objectType({
@@ -41085,10 +41250,80 @@ var init_listvendorcredentialfiles = __esm(() => {
41085
41250
  vendorCredentialId: "vendor_credential_id"
41086
41251
  });
41087
41252
  });
41088
- ((ListVendorCredentialFilesRequest$) => {
41089
- ListVendorCredentialFilesRequest$.inboundSchema = ListVendorCredentialFilesRequest$inboundSchema;
41090
- ListVendorCredentialFilesRequest$.outboundSchema = ListVendorCredentialFilesRequest$outboundSchema;
41091
- })(ListVendorCredentialFilesRequest$ ||= {});
41253
+ ((ListVendorCredentialFilesRequest$) => {
41254
+ ListVendorCredentialFilesRequest$.inboundSchema = ListVendorCredentialFilesRequest$inboundSchema;
41255
+ ListVendorCredentialFilesRequest$.outboundSchema = ListVendorCredentialFilesRequest$outboundSchema;
41256
+ })(ListVendorCredentialFilesRequest$ ||= {});
41257
+ });
41258
+
41259
+ // src/models/operations/listvendorcredentialhistory.ts
41260
+ var ListVendorCredentialHistoryRequest$inboundSchema, ListVendorCredentialHistoryRequest$outboundSchema, ListVendorCredentialHistoryRequest$, ListVendorCredentialHistoryResponseBody$inboundSchema, ListVendorCredentialHistoryResponseBody$outboundSchema, ListVendorCredentialHistoryResponseBody$, ListVendorCredentialHistoryResponse$inboundSchema, ListVendorCredentialHistoryResponse$outboundSchema, ListVendorCredentialHistoryResponse$;
41261
+ var init_listvendorcredentialhistory = __esm(() => {
41262
+ init_esm();
41263
+ init_primitives();
41264
+ init_components();
41265
+ ListVendorCredentialHistoryRequest$inboundSchema = objectType({
41266
+ sort: nullableType(stringType()).optional(),
41267
+ desc: Desc$inboundSchema.optional(),
41268
+ page: numberType().int().optional(),
41269
+ items_per_page: numberType().int().optional(),
41270
+ vendor_id_or_me: stringType(),
41271
+ vendor_credential_id: numberType().int()
41272
+ }).transform((v2) => {
41273
+ return remap(v2, {
41274
+ items_per_page: "itemsPerPage",
41275
+ vendor_id_or_me: "vendorIdOrMe",
41276
+ vendor_credential_id: "vendorCredentialId"
41277
+ });
41278
+ });
41279
+ ListVendorCredentialHistoryRequest$outboundSchema = objectType({
41280
+ sort: nullableType(stringType()).optional(),
41281
+ desc: Desc$outboundSchema.optional(),
41282
+ page: numberType().int().optional(),
41283
+ itemsPerPage: numberType().int().optional(),
41284
+ vendorIdOrMe: stringType(),
41285
+ vendorCredentialId: numberType().int()
41286
+ }).transform((v2) => {
41287
+ return remap(v2, {
41288
+ itemsPerPage: "items_per_page",
41289
+ vendorIdOrMe: "vendor_id_or_me",
41290
+ vendorCredentialId: "vendor_credential_id"
41291
+ });
41292
+ });
41293
+ ((ListVendorCredentialHistoryRequest$) => {
41294
+ ListVendorCredentialHistoryRequest$.inboundSchema = ListVendorCredentialHistoryRequest$inboundSchema;
41295
+ ListVendorCredentialHistoryRequest$.outboundSchema = ListVendorCredentialHistoryRequest$outboundSchema;
41296
+ })(ListVendorCredentialHistoryRequest$ ||= {});
41297
+ ListVendorCredentialHistoryResponseBody$inboundSchema = objectType({
41298
+ pager: Pager$inboundSchema,
41299
+ items: arrayType(nullableType(VendorCredentialSummary$inboundSchema))
41300
+ });
41301
+ ListVendorCredentialHistoryResponseBody$outboundSchema = objectType({
41302
+ pager: Pager$outboundSchema,
41303
+ items: arrayType(nullableType(VendorCredentialSummary$outboundSchema))
41304
+ });
41305
+ ((ListVendorCredentialHistoryResponseBody$) => {
41306
+ ListVendorCredentialHistoryResponseBody$.inboundSchema = ListVendorCredentialHistoryResponseBody$inboundSchema;
41307
+ ListVendorCredentialHistoryResponseBody$.outboundSchema = ListVendorCredentialHistoryResponseBody$outboundSchema;
41308
+ })(ListVendorCredentialHistoryResponseBody$ ||= {});
41309
+ ListVendorCredentialHistoryResponse$inboundSchema = objectType({
41310
+ Result: lazyType(() => ListVendorCredentialHistoryResponseBody$inboundSchema)
41311
+ }).transform((v2) => {
41312
+ return remap(v2, {
41313
+ Result: "result"
41314
+ });
41315
+ });
41316
+ ListVendorCredentialHistoryResponse$outboundSchema = objectType({
41317
+ result: lazyType(() => ListVendorCredentialHistoryResponseBody$outboundSchema)
41318
+ }).transform((v2) => {
41319
+ return remap(v2, {
41320
+ result: "Result"
41321
+ });
41322
+ });
41323
+ ((ListVendorCredentialHistoryResponse$) => {
41324
+ ListVendorCredentialHistoryResponse$.inboundSchema = ListVendorCredentialHistoryResponse$inboundSchema;
41325
+ ListVendorCredentialHistoryResponse$.outboundSchema = ListVendorCredentialHistoryResponse$outboundSchema;
41326
+ })(ListVendorCredentialHistoryResponse$ ||= {});
41092
41327
  });
41093
41328
 
41094
41329
  // src/models/operations/listvendorcredentials.ts
@@ -42296,6 +42531,57 @@ var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
42296
42531
  })(UpdatesTheWebhookEndpointWithTheGivenIdRequest$ ||= {});
42297
42532
  });
42298
42533
 
42534
+ // src/models/operations/updatevendorcredentialfile.ts
42535
+ var UpdateVendorCredentialFileRequestBody$inboundSchema, UpdateVendorCredentialFileRequestBody$outboundSchema, UpdateVendorCredentialFileRequestBody$, UpdateVendorCredentialFileRequest$inboundSchema, UpdateVendorCredentialFileRequest$outboundSchema, UpdateVendorCredentialFileRequest$;
42536
+ var init_updatevendorcredentialfile = __esm(() => {
42537
+ init_esm();
42538
+ init_primitives();
42539
+ UpdateVendorCredentialFileRequestBody$inboundSchema = objectType({
42540
+ file_name: stringType().optional(),
42541
+ name: stringType().optional()
42542
+ }).transform((v2) => {
42543
+ return remap(v2, {
42544
+ file_name: "fileName"
42545
+ });
42546
+ });
42547
+ UpdateVendorCredentialFileRequestBody$outboundSchema = objectType({
42548
+ fileName: stringType().optional(),
42549
+ name: stringType().optional()
42550
+ }).transform((v2) => {
42551
+ return remap(v2, {
42552
+ fileName: "file_name"
42553
+ });
42554
+ });
42555
+ ((UpdateVendorCredentialFileRequestBody$) => {
42556
+ UpdateVendorCredentialFileRequestBody$.inboundSchema = UpdateVendorCredentialFileRequestBody$inboundSchema;
42557
+ UpdateVendorCredentialFileRequestBody$.outboundSchema = UpdateVendorCredentialFileRequestBody$outboundSchema;
42558
+ })(UpdateVendorCredentialFileRequestBody$ ||= {});
42559
+ UpdateVendorCredentialFileRequest$inboundSchema = objectType({
42560
+ vendor_credential_id: numberType().int(),
42561
+ id: numberType().int(),
42562
+ RequestBody: lazyType(() => UpdateVendorCredentialFileRequestBody$inboundSchema)
42563
+ }).transform((v2) => {
42564
+ return remap(v2, {
42565
+ vendor_credential_id: "vendorCredentialId",
42566
+ RequestBody: "requestBody"
42567
+ });
42568
+ });
42569
+ UpdateVendorCredentialFileRequest$outboundSchema = objectType({
42570
+ vendorCredentialId: numberType().int(),
42571
+ id: numberType().int(),
42572
+ requestBody: lazyType(() => UpdateVendorCredentialFileRequestBody$outboundSchema)
42573
+ }).transform((v2) => {
42574
+ return remap(v2, {
42575
+ vendorCredentialId: "vendor_credential_id",
42576
+ requestBody: "RequestBody"
42577
+ });
42578
+ });
42579
+ ((UpdateVendorCredentialFileRequest$) => {
42580
+ UpdateVendorCredentialFileRequest$.inboundSchema = UpdateVendorCredentialFileRequest$inboundSchema;
42581
+ UpdateVendorCredentialFileRequest$.outboundSchema = UpdateVendorCredentialFileRequest$outboundSchema;
42582
+ })(UpdateVendorCredentialFileRequest$ ||= {});
42583
+ });
42584
+
42299
42585
  // src/models/operations/updatevendordetails.ts
42300
42586
  var EmailRecepient, EmailRecepient$inboundSchema, EmailRecepient$outboundSchema, EmailRecepient$, UpdateVendorDetailsRequestBody$inboundSchema, UpdateVendorDetailsRequestBody$outboundSchema, UpdateVendorDetailsRequestBody$, UpdateVendorDetailsRequest$inboundSchema, UpdateVendorDetailsRequest$outboundSchema, UpdateVendorDetailsRequest$;
42301
42587
  var init_updatevendordetails = __esm(() => {
@@ -42577,11 +42863,13 @@ var init_vendorscanout = __esm(() => {
42577
42863
 
42578
42864
  // src/models/operations/index.ts
42579
42865
  var init_operations = __esm(() => {
42866
+ init_addvendorcredentialfile();
42580
42867
  init_addvendormanagedbycompany();
42581
42868
  init_changepassword();
42582
42869
  init_createvendorcompany();
42583
42870
  init_createvendorregistration();
42584
42871
  init_declinevendorcredential();
42872
+ init_deletevendorcredentialfile();
42585
42873
  init_deletevendormanagedbycompany();
42586
42874
  init_expeditetimeremaining();
42587
42875
  init_getfacility();
@@ -42599,6 +42887,7 @@ var init_operations = __esm(() => {
42599
42887
  init_listorsearchsupportarticles();
42600
42888
  init_listvendoradditionalfacilityfields();
42601
42889
  init_listvendorcredentialfiles();
42890
+ init_listvendorcredentialhistory();
42602
42891
  init_listvendorcredentials();
42603
42892
  init_listvendorcredits();
42604
42893
  init_listvendorfacilitystatuses();
@@ -42616,6 +42905,7 @@ var init_operations = __esm(() => {
42616
42905
  init_securityzonecheckin();
42617
42906
  init_submitvendorcredential();
42618
42907
  init_updatesthewebhookendpointwiththegivenid();
42908
+ init_updatevendorcredentialfile();
42619
42909
  init_updatevendordetails();
42620
42910
  init_updatevendormanagedbycompany();
42621
42911
  init_updatevendorscrubdetails();
@@ -44065,11 +44355,114 @@ Requires: \`saml_login\`
44065
44355
  };
44066
44356
  });
44067
44357
 
44068
- // src/funcs/vendorsAddVendorManagedByCompany.ts
44069
- function vendorsAddVendorManagedByCompany(client, request, options) {
44358
+ // src/funcs/vendorsAddVendorCredentialFile.ts
44359
+ function vendorsAddVendorCredentialFile(client, request, options) {
44070
44360
  return new APIPromise($do13(client, request, options));
44071
44361
  }
44072
44362
  async function $do13(client, request, options) {
44363
+ const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
44364
+ if (!parsed.ok) {
44365
+ return [parsed, { status: "invalid" }];
44366
+ }
44367
+ const payload = parsed.value;
44368
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
44369
+ const pathParams = {
44370
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
44371
+ };
44372
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files")(pathParams);
44373
+ const headers = new Headers(compactMap({
44374
+ "Content-Type": "application/json",
44375
+ Accept: "application/json"
44376
+ }));
44377
+ const securityInput = await extractSecurity(client._options.security);
44378
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44379
+ const context = {
44380
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44381
+ operationID: "addVendorCredentialFile",
44382
+ oAuth2Scopes: [],
44383
+ resolvedSecurity: requestSecurity,
44384
+ securitySource: client._options.security,
44385
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
44386
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44387
+ };
44388
+ const requestRes = client._createRequest(context, {
44389
+ security: requestSecurity,
44390
+ method: "POST",
44391
+ baseURL: options?.serverURL,
44392
+ path,
44393
+ headers,
44394
+ body,
44395
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44396
+ }, options);
44397
+ if (!requestRes.ok) {
44398
+ return [requestRes, { status: "invalid" }];
44399
+ }
44400
+ const req = requestRes.value;
44401
+ const doResult = await client._do(req, {
44402
+ context,
44403
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
44404
+ retryConfig: context.retryConfig,
44405
+ retryCodes: context.retryCodes
44406
+ });
44407
+ if (!doResult.ok) {
44408
+ return [doResult, { status: "request-error", request: req }];
44409
+ }
44410
+ const response = doResult.value;
44411
+ const responseFields = {
44412
+ HttpMeta: { Response: response, Request: req }
44413
+ };
44414
+ const [result] = await match(json(200, AddVendorCredentialFileResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44415
+ if (!result.ok) {
44416
+ return [result, { status: "complete", request: req, response }];
44417
+ }
44418
+ return [result, { status: "complete", request: req, response }];
44419
+ }
44420
+ var init_vendorsAddVendorCredentialFile = __esm(() => {
44421
+ init_encodings();
44422
+ init_matchers();
44423
+ init_primitives();
44424
+ init_schemas();
44425
+ init_security();
44426
+ init_url();
44427
+ init_errors2();
44428
+ init_operations();
44429
+ init_async();
44430
+ });
44431
+
44432
+ // src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
44433
+ var args12, tool$vendorsAddVendorCredentialFile;
44434
+ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
44435
+ init_vendorsAddVendorCredentialFile();
44436
+ init_operations();
44437
+ init_tools();
44438
+ args12 = {
44439
+ request: AddVendorCredentialFileRequest$inboundSchema
44440
+ };
44441
+ tool$vendorsAddVendorCredentialFile = {
44442
+ name: "vendors-add-vendor-credential-file",
44443
+ description: `Add vendor credential file
44444
+
44445
+ It will add a new vendor credential file`,
44446
+ args: args12,
44447
+ tool: async (client, args13, ctx) => {
44448
+ const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44449
+ if (!result.ok) {
44450
+ return {
44451
+ content: [{ type: "text", text: result.error.message }],
44452
+ isError: true
44453
+ };
44454
+ }
44455
+ const value = result.value;
44456
+ return formatResult(value, apiCall);
44457
+ }
44458
+ };
44459
+ });
44460
+
44461
+ // src/funcs/vendorsAddVendorManagedByCompany.ts
44462
+ function vendorsAddVendorManagedByCompany(client, request, options) {
44463
+ return new APIPromise($do14(client, request, options));
44464
+ }
44465
+ async function $do14(client, request, options) {
44073
44466
  const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44074
44467
  if (!parsed.ok) {
44075
44468
  return [parsed, { status: "invalid" }];
@@ -44143,12 +44536,12 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
44143
44536
  });
44144
44537
 
44145
44538
  // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
44146
- var args12, tool$vendorsAddVendorManagedByCompany;
44539
+ var args13, tool$vendorsAddVendorManagedByCompany;
44147
44540
  var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
44148
44541
  init_vendorsAddVendorManagedByCompany();
44149
44542
  init_operations();
44150
44543
  init_tools();
44151
- args12 = {
44544
+ args13 = {
44152
44545
  request: AddVendorManagedByCompanyRequest$inboundSchema
44153
44546
  };
44154
44547
  tool$vendorsAddVendorManagedByCompany = {
@@ -44156,9 +44549,9 @@ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
44156
44549
  description: `Add vendor managed by company
44157
44550
 
44158
44551
  It will add a vendor managed by company`,
44159
- args: args12,
44160
- tool: async (client, args13, ctx) => {
44161
- const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44552
+ args: args13,
44553
+ tool: async (client, args14, ctx) => {
44554
+ const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44162
44555
  if (!result.ok) {
44163
44556
  return {
44164
44557
  content: [{ type: "text", text: result.error.message }],
@@ -44173,9 +44566,9 @@ It will add a vendor managed by company`,
44173
44566
 
44174
44567
  // src/funcs/vendorScansVendorScanOut.ts
44175
44568
  function vendorScansVendorScanOut(client, request, options) {
44176
- return new APIPromise($do14(client, request, options));
44569
+ return new APIPromise($do15(client, request, options));
44177
44570
  }
44178
- async function $do14(client, request, options) {
44571
+ async function $do15(client, request, options) {
44179
44572
  const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
44180
44573
  if (!parsed.ok) {
44181
44574
  return [parsed, { status: "invalid" }];
@@ -44248,12 +44641,12 @@ var init_vendorScansVendorScanOut = __esm(() => {
44248
44641
  });
44249
44642
 
44250
44643
  // src/mcp-server/tools/vendorScansVendorScanOut.ts
44251
- var args13, tool$vendorScansVendorScanOut;
44644
+ var args14, tool$vendorScansVendorScanOut;
44252
44645
  var init_vendorScansVendorScanOut2 = __esm(() => {
44253
44646
  init_vendorScansVendorScanOut();
44254
44647
  init_operations();
44255
44648
  init_tools();
44256
- args13 = {
44649
+ args14 = {
44257
44650
  request: VendorScanOutRequest$inboundSchema
44258
44651
  };
44259
44652
  tool$vendorScansVendorScanOut = {
@@ -44261,9 +44654,9 @@ var init_vendorScansVendorScanOut2 = __esm(() => {
44261
44654
  description: `Vendor scan out
44262
44655
 
44263
44656
  It scans out vendor from facility`,
44264
- args: args13,
44265
- tool: async (client, args14, ctx) => {
44266
- const [result, apiCall] = await vendorScansVendorScanOut(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44657
+ args: args14,
44658
+ tool: async (client, args15, ctx) => {
44659
+ const [result, apiCall] = await vendorScansVendorScanOut(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44267
44660
  if (!result.ok) {
44268
44661
  return {
44269
44662
  content: [{ type: "text", text: result.error.message }],
@@ -44278,9 +44671,9 @@ It scans out vendor from facility`,
44278
44671
 
44279
44672
  // src/funcs/vendorsCreateVendorCompany.ts
44280
44673
  function vendorsCreateVendorCompany(client, request, options) {
44281
- return new APIPromise($do15(client, request, options));
44674
+ return new APIPromise($do16(client, request, options));
44282
44675
  }
44283
- async function $do15(client, request, options) {
44676
+ async function $do16(client, request, options) {
44284
44677
  const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44285
44678
  if (!parsed.ok) {
44286
44679
  return [parsed, { status: "invalid" }];
@@ -44354,12 +44747,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
44354
44747
  });
44355
44748
 
44356
44749
  // src/mcp-server/tools/vendorsCreateVendorCompany.ts
44357
- var args14, tool$vendorsCreateVendorCompany;
44750
+ var args15, tool$vendorsCreateVendorCompany;
44358
44751
  var init_vendorsCreateVendorCompany2 = __esm(() => {
44359
44752
  init_vendorsCreateVendorCompany();
44360
44753
  init_operations();
44361
44754
  init_tools();
44362
- args14 = {
44755
+ args15 = {
44363
44756
  request: CreateVendorCompanyRequest$inboundSchema
44364
44757
  };
44365
44758
  tool$vendorsCreateVendorCompany = {
@@ -44367,9 +44760,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
44367
44760
  description: `Create vendor company
44368
44761
 
44369
44762
  Create vendor company`,
44370
- args: args14,
44371
- tool: async (client, args15, ctx) => {
44372
- const [result, apiCall] = await vendorsCreateVendorCompany(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44763
+ args: args15,
44764
+ tool: async (client, args16, ctx) => {
44765
+ const [result, apiCall] = await vendorsCreateVendorCompany(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44373
44766
  if (!result.ok) {
44374
44767
  return {
44375
44768
  content: [{ type: "text", text: result.error.message }],
@@ -44384,9 +44777,9 @@ Create vendor company`,
44384
44777
 
44385
44778
  // src/funcs/vendorsCreateVendorRegistration.ts
44386
44779
  function vendorsCreateVendorRegistration(client, request, options) {
44387
- return new APIPromise($do16(client, request, options));
44780
+ return new APIPromise($do17(client, request, options));
44388
44781
  }
44389
- async function $do16(client, request, options) {
44782
+ async function $do17(client, request, options) {
44390
44783
  const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
44391
44784
  if (!parsed.ok) {
44392
44785
  return [parsed, { status: "invalid" }];
@@ -44451,22 +44844,125 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
44451
44844
  });
44452
44845
 
44453
44846
  // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
44454
- var args15, tool$vendorsCreateVendorRegistration;
44847
+ var args16, tool$vendorsCreateVendorRegistration;
44455
44848
  var init_vendorsCreateVendorRegistration2 = __esm(() => {
44456
44849
  init_vendorsCreateVendorRegistration();
44457
44850
  init_operations();
44458
44851
  init_tools();
44459
- args15 = {
44852
+ args16 = {
44460
44853
  request: CreateVendorRegistrationRequestBody$inboundSchema
44461
44854
  };
44462
44855
  tool$vendorsCreateVendorRegistration = {
44463
44856
  name: "vendors-create-vendor-registration",
44464
44857
  description: `Create vendor registration
44465
44858
 
44466
- Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
44467
- args: args15,
44468
- tool: async (client, args16, ctx) => {
44469
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44859
+ Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
44860
+ args: args16,
44861
+ tool: async (client, args17, ctx) => {
44862
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44863
+ if (!result.ok) {
44864
+ return {
44865
+ content: [{ type: "text", text: result.error.message }],
44866
+ isError: true
44867
+ };
44868
+ }
44869
+ const value = result.value;
44870
+ return formatResult(value, apiCall);
44871
+ }
44872
+ };
44873
+ });
44874
+
44875
+ // src/funcs/vendorsDeclineVendorCredential.ts
44876
+ function vendorsDeclineVendorCredential(client, request, options) {
44877
+ return new APIPromise($do18(client, request, options));
44878
+ }
44879
+ async function $do18(client, request, options) {
44880
+ const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
44881
+ if (!parsed.ok) {
44882
+ return [parsed, { status: "invalid" }];
44883
+ }
44884
+ const payload = parsed.value;
44885
+ const body = null;
44886
+ const pathParams = {
44887
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
44888
+ };
44889
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/declination")(pathParams);
44890
+ const headers = new Headers(compactMap({
44891
+ Accept: "application/json"
44892
+ }));
44893
+ const securityInput = await extractSecurity(client._options.security);
44894
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44895
+ const context = {
44896
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44897
+ operationID: "declineVendorCredential",
44898
+ oAuth2Scopes: [],
44899
+ resolvedSecurity: requestSecurity,
44900
+ securitySource: client._options.security,
44901
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
44902
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44903
+ };
44904
+ const requestRes = client._createRequest(context, {
44905
+ security: requestSecurity,
44906
+ method: "POST",
44907
+ baseURL: options?.serverURL,
44908
+ path,
44909
+ headers,
44910
+ body,
44911
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44912
+ }, options);
44913
+ if (!requestRes.ok) {
44914
+ return [requestRes, { status: "invalid" }];
44915
+ }
44916
+ const req = requestRes.value;
44917
+ const doResult = await client._do(req, {
44918
+ context,
44919
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
44920
+ retryConfig: context.retryConfig,
44921
+ retryCodes: context.retryCodes
44922
+ });
44923
+ if (!doResult.ok) {
44924
+ return [doResult, { status: "request-error", request: req }];
44925
+ }
44926
+ const response = doResult.value;
44927
+ const responseFields = {
44928
+ HttpMeta: { Response: response, Request: req }
44929
+ };
44930
+ const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44931
+ if (!result.ok) {
44932
+ return [result, { status: "complete", request: req, response }];
44933
+ }
44934
+ return [result, { status: "complete", request: req, response }];
44935
+ }
44936
+ var init_vendorsDeclineVendorCredential = __esm(() => {
44937
+ init_esm();
44938
+ init_encodings();
44939
+ init_matchers();
44940
+ init_primitives();
44941
+ init_schemas();
44942
+ init_security();
44943
+ init_url();
44944
+ init_errors2();
44945
+ init_operations();
44946
+ init_async();
44947
+ });
44948
+
44949
+ // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
44950
+ var args17, tool$vendorsDeclineVendorCredential;
44951
+ var init_vendorsDeclineVendorCredential2 = __esm(() => {
44952
+ init_vendorsDeclineVendorCredential();
44953
+ init_operations();
44954
+ init_tools();
44955
+ args17 = {
44956
+ request: DeclineVendorCredentialRequest$inboundSchema
44957
+ };
44958
+ tool$vendorsDeclineVendorCredential = {
44959
+ name: "vendors-decline-vendor-credential",
44960
+ description: `Decline vendor credential
44961
+
44962
+ It will decline vendor credential`,
44963
+ args: args17,
44964
+ tool: async (client, args18, ctx) => {
44965
+ const [result, apiCall] = await vendorsDeclineVendorCredential(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44470
44966
  if (!result.ok) {
44471
44967
  return {
44472
44968
  content: [{ type: "text", text: result.error.message }],
@@ -44479,21 +44975,25 @@ Create an initial vendor registration. Once successful, the vendor will be able
44479
44975
  };
44480
44976
  });
44481
44977
 
44482
- // src/funcs/vendorsDeclineVendorCredential.ts
44483
- function vendorsDeclineVendorCredential(client, request, options) {
44484
- return new APIPromise($do17(client, request, options));
44978
+ // src/funcs/vendorsDeleteVendorCredentialFile.ts
44979
+ function vendorsDeleteVendorCredentialFile(client, request, options) {
44980
+ return new APIPromise($do19(client, request, options));
44485
44981
  }
44486
- async function $do17(client, request, options) {
44487
- const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
44982
+ async function $do19(client, request, options) {
44983
+ const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
44488
44984
  if (!parsed.ok) {
44489
44985
  return [parsed, { status: "invalid" }];
44490
44986
  }
44491
44987
  const payload = parsed.value;
44492
44988
  const body = null;
44493
44989
  const pathParams = {
44990
+ id: encodeSimple("id", payload.id, {
44991
+ explode: false,
44992
+ charEncoding: "percent"
44993
+ }),
44494
44994
  vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
44495
44995
  };
44496
- const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/declination")(pathParams);
44996
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
44497
44997
  const headers = new Headers(compactMap({
44498
44998
  Accept: "application/json"
44499
44999
  }));
@@ -44501,7 +45001,7 @@ async function $do17(client, request, options) {
44501
45001
  const requestSecurity = resolveGlobalSecurity(securityInput);
44502
45002
  const context = {
44503
45003
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44504
- operationID: "declineVendorCredential",
45004
+ operationID: "deleteVendorCredentialFile",
44505
45005
  oAuth2Scopes: [],
44506
45006
  resolvedSecurity: requestSecurity,
44507
45007
  securitySource: client._options.security,
@@ -44510,7 +45010,7 @@ async function $do17(client, request, options) {
44510
45010
  };
44511
45011
  const requestRes = client._createRequest(context, {
44512
45012
  security: requestSecurity,
44513
- method: "POST",
45013
+ method: "DELETE",
44514
45014
  baseURL: options?.serverURL,
44515
45015
  path,
44516
45016
  headers,
@@ -44540,7 +45040,7 @@ async function $do17(client, request, options) {
44540
45040
  }
44541
45041
  return [result, { status: "complete", request: req, response }];
44542
45042
  }
44543
- var init_vendorsDeclineVendorCredential = __esm(() => {
45043
+ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
44544
45044
  init_esm();
44545
45045
  init_encodings();
44546
45046
  init_matchers();
@@ -44553,23 +45053,23 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
44553
45053
  init_async();
44554
45054
  });
44555
45055
 
44556
- // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
44557
- var args16, tool$vendorsDeclineVendorCredential;
44558
- var init_vendorsDeclineVendorCredential2 = __esm(() => {
44559
- init_vendorsDeclineVendorCredential();
45056
+ // src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
45057
+ var args18, tool$vendorsDeleteVendorCredentialFile;
45058
+ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
45059
+ init_vendorsDeleteVendorCredentialFile();
44560
45060
  init_operations();
44561
45061
  init_tools();
44562
- args16 = {
44563
- request: DeclineVendorCredentialRequest$inboundSchema
45062
+ args18 = {
45063
+ request: DeleteVendorCredentialFileRequest$inboundSchema
44564
45064
  };
44565
- tool$vendorsDeclineVendorCredential = {
44566
- name: "vendors-decline-vendor-credential",
44567
- description: `Decline vendor credential
45065
+ tool$vendorsDeleteVendorCredentialFile = {
45066
+ name: "vendors-delete-vendor-credential-file",
45067
+ description: `Delete vendor credential file
44568
45068
 
44569
- It will decline vendor credential`,
44570
- args: args16,
44571
- tool: async (client, args17, ctx) => {
44572
- const [result, apiCall] = await vendorsDeclineVendorCredential(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45069
+ It will delete the vendor credential file`,
45070
+ args: args18,
45071
+ tool: async (client, args19, ctx) => {
45072
+ const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44573
45073
  if (!result.ok) {
44574
45074
  return {
44575
45075
  content: [{ type: "text", text: result.error.message }],
@@ -44584,9 +45084,9 @@ It will decline vendor credential`,
44584
45084
 
44585
45085
  // src/funcs/vendorsDeleteVendorManagedByCompany.ts
44586
45086
  function vendorsDeleteVendorManagedByCompany(client, request, options) {
44587
- return new APIPromise($do18(client, request, options));
45087
+ return new APIPromise($do20(client, request, options));
44588
45088
  }
44589
- async function $do18(client, request, options) {
45089
+ async function $do20(client, request, options) {
44590
45090
  const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44591
45091
  if (!parsed.ok) {
44592
45092
  return [parsed, { status: "invalid" }];
@@ -44660,12 +45160,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
44660
45160
  });
44661
45161
 
44662
45162
  // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
44663
- var args17, tool$vendorsDeleteVendorManagedByCompany;
45163
+ var args19, tool$vendorsDeleteVendorManagedByCompany;
44664
45164
  var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
44665
45165
  init_vendorsDeleteVendorManagedByCompany();
44666
45166
  init_operations();
44667
45167
  init_tools();
44668
- args17 = {
45168
+ args19 = {
44669
45169
  request: DeleteVendorManagedByCompanyRequest$inboundSchema
44670
45170
  };
44671
45171
  tool$vendorsDeleteVendorManagedByCompany = {
@@ -44673,9 +45173,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
44673
45173
  description: `Delete vendor managed by company
44674
45174
 
44675
45175
  It will delete the vendor managed by company`,
44676
- args: args17,
44677
- tool: async (client, args18, ctx) => {
44678
- const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45176
+ args: args19,
45177
+ tool: async (client, args20, ctx) => {
45178
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44679
45179
  if (!result.ok) {
44680
45180
  return {
44681
45181
  content: [{ type: "text", text: result.error.message }],
@@ -44690,9 +45190,9 @@ It will delete the vendor managed by company`,
44690
45190
 
44691
45191
  // src/funcs/vendorsExpediteTimeRemaining.ts
44692
45192
  function vendorsExpediteTimeRemaining(client, request, options) {
44693
- return new APIPromise($do19(client, request, options));
45193
+ return new APIPromise($do21(client, request, options));
44694
45194
  }
44695
- async function $do19(client, request, options) {
45195
+ async function $do21(client, request, options) {
44696
45196
  const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
44697
45197
  if (!parsed.ok) {
44698
45198
  return [parsed, { status: "invalid" }];
@@ -44765,12 +45265,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
44765
45265
  });
44766
45266
 
44767
45267
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
44768
- var args18, tool$vendorsExpediteTimeRemaining;
45268
+ var args20, tool$vendorsExpediteTimeRemaining;
44769
45269
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
44770
45270
  init_vendorsExpediteTimeRemaining();
44771
45271
  init_operations();
44772
45272
  init_tools();
44773
- args18 = {
45273
+ args20 = {
44774
45274
  request: ExpediteTimeRemainingRequest$inboundSchema
44775
45275
  };
44776
45276
  tool$vendorsExpediteTimeRemaining = {
@@ -44778,9 +45278,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
44778
45278
  description: `Expedite time remaining
44779
45279
 
44780
45280
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
44781
- args: args18,
44782
- tool: async (client, args19, ctx) => {
44783
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45281
+ args: args20,
45282
+ tool: async (client, args21, ctx) => {
45283
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44784
45284
  if (!result.ok) {
44785
45285
  return {
44786
45286
  content: [{ type: "text", text: result.error.message }],
@@ -44795,9 +45295,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
44795
45295
 
44796
45296
  // src/funcs/vendorsGetVendorCredentialDetails.ts
44797
45297
  function vendorsGetVendorCredentialDetails(client, request, options) {
44798
- return new APIPromise($do20(client, request, options));
45298
+ return new APIPromise($do22(client, request, options));
44799
45299
  }
44800
- async function $do20(client, request, options) {
45300
+ async function $do22(client, request, options) {
44801
45301
  const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
44802
45302
  if (!parsed.ok) {
44803
45303
  return [parsed, { status: "invalid" }];
@@ -44878,12 +45378,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
44878
45378
  });
44879
45379
 
44880
45380
  // src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
44881
- var args19, tool$vendorsGetVendorCredentialDetails;
45381
+ var args21, tool$vendorsGetVendorCredentialDetails;
44882
45382
  var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
44883
45383
  init_vendorsGetVendorCredentialDetails();
44884
45384
  init_operations();
44885
45385
  init_tools();
44886
- args19 = {
45386
+ args21 = {
44887
45387
  request: GetVendorCredentialDetailsRequest$inboundSchema
44888
45388
  };
44889
45389
  tool$vendorsGetVendorCredentialDetails = {
@@ -44908,9 +45408,9 @@ Available \`expand\` scopes are:
44908
45408
  - vendor_credential.vendor_credential_data_requests
44909
45409
  - vendor_credential.credential_variants
44910
45410
  - vendor_credential.targets_chop`,
44911
- args: args19,
44912
- tool: async (client, args20, ctx) => {
44913
- const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45411
+ args: args21,
45412
+ tool: async (client, args22, ctx) => {
45413
+ const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44914
45414
  if (!result.ok) {
44915
45415
  return {
44916
45416
  content: [{ type: "text", text: result.error.message }],
@@ -44925,9 +45425,9 @@ Available \`expand\` scopes are:
44925
45425
 
44926
45426
  // src/funcs/vendorsGetVendorCredentialFile.ts
44927
45427
  function vendorsGetVendorCredentialFile(client, request, options) {
44928
- return new APIPromise($do21(client, request, options));
45428
+ return new APIPromise($do23(client, request, options));
44929
45429
  }
44930
- async function $do21(client, request, options) {
45430
+ async function $do23(client, request, options) {
44931
45431
  const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
44932
45432
  if (!parsed.ok) {
44933
45433
  return [parsed, { status: "invalid" }];
@@ -45006,12 +45506,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
45006
45506
  });
45007
45507
 
45008
45508
  // src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
45009
- var args20, tool$vendorsGetVendorCredentialFile;
45509
+ var args22, tool$vendorsGetVendorCredentialFile;
45010
45510
  var init_vendorsGetVendorCredentialFile2 = __esm(() => {
45011
45511
  init_vendorsGetVendorCredentialFile();
45012
45512
  init_operations();
45013
45513
  init_tools();
45014
- args20 = {
45514
+ args22 = {
45015
45515
  request: GetVendorCredentialFileRequest$inboundSchema
45016
45516
  };
45017
45517
  tool$vendorsGetVendorCredentialFile = {
@@ -45024,9 +45524,9 @@ Available \`expand\` scopes are:
45024
45524
 
45025
45525
  - vendor_credential_file.vendor_credential
45026
45526
  - vendor_credential_file.credential_document`,
45027
- args: args20,
45028
- tool: async (client, args21, ctx) => {
45029
- const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45527
+ args: args22,
45528
+ tool: async (client, args23, ctx) => {
45529
+ const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45030
45530
  if (!result.ok) {
45031
45531
  return {
45032
45532
  content: [{ type: "text", text: result.error.message }],
@@ -45041,9 +45541,9 @@ Available \`expand\` scopes are:
45041
45541
 
45042
45542
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
45043
45543
  function vendorsGetVendorInvoiceDetails(client, request, options) {
45044
- return new APIPromise($do22(client, request, options));
45544
+ return new APIPromise($do24(client, request, options));
45045
45545
  }
45046
- async function $do22(client, request, options) {
45546
+ async function $do24(client, request, options) {
45047
45547
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45048
45548
  if (!parsed.ok) {
45049
45549
  return [parsed, { status: "invalid" }];
@@ -45121,12 +45621,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
45121
45621
  });
45122
45622
 
45123
45623
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
45124
- var args21, tool$vendorsGetVendorInvoiceDetails;
45624
+ var args23, tool$vendorsGetVendorInvoiceDetails;
45125
45625
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
45126
45626
  init_vendorsGetVendorInvoiceDetails();
45127
45627
  init_operations();
45128
45628
  init_tools();
45129
- args21 = {
45629
+ args23 = {
45130
45630
  request: GetVendorInvoiceDetailsRequest$inboundSchema
45131
45631
  };
45132
45632
  tool$vendorsGetVendorInvoiceDetails = {
@@ -45139,9 +45639,9 @@ Available \`expand\` scopes are:
45139
45639
 
45140
45640
  invoice.line_items
45141
45641
  invoice.invoice_transactions`,
45142
- args: args21,
45143
- tool: async (client, args22, ctx) => {
45144
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45642
+ args: args23,
45643
+ tool: async (client, args24, ctx) => {
45644
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45145
45645
  if (!result.ok) {
45146
45646
  return {
45147
45647
  content: [{ type: "text", text: result.error.message }],
@@ -45156,9 +45656,9 @@ invoice.invoice_transactions`,
45156
45656
 
45157
45657
  // src/funcs/vendorsGetVendorsDetails.ts
45158
45658
  function vendorsGetVendorsDetails(client, request, options) {
45159
- return new APIPromise($do23(client, request, options));
45659
+ return new APIPromise($do25(client, request, options));
45160
45660
  }
45161
- async function $do23(client, request, options) {
45661
+ async function $do25(client, request, options) {
45162
45662
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45163
45663
  if (!parsed.ok) {
45164
45664
  return [parsed, { status: "invalid" }];
@@ -45236,12 +45736,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
45236
45736
  });
45237
45737
 
45238
45738
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
45239
- var args22, tool$vendorsGetVendorsDetails;
45739
+ var args24, tool$vendorsGetVendorsDetails;
45240
45740
  var init_vendorsGetVendorsDetails2 = __esm(() => {
45241
45741
  init_vendorsGetVendorsDetails();
45242
45742
  init_operations();
45243
45743
  init_tools();
45244
- args22 = {
45744
+ args24 = {
45245
45745
  request: GetVendorsDetailsRequest$inboundSchema
45246
45746
  };
45247
45747
  tool$vendorsGetVendorsDetails = {
@@ -45266,9 +45766,9 @@ vendor.payment_responsibility
45266
45766
  vendor.background_check_date_expires
45267
45767
  vendor.registration_data
45268
45768
  vendor.registration_finished`,
45269
- args: args22,
45270
- tool: async (client, args23, ctx) => {
45271
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45769
+ args: args24,
45770
+ tool: async (client, args25, ctx) => {
45771
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45272
45772
  if (!result.ok) {
45273
45773
  return {
45274
45774
  content: [{ type: "text", text: result.error.message }],
@@ -45283,9 +45783,9 @@ vendor.registration_finished`,
45283
45783
 
45284
45784
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
45285
45785
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
45286
- return new APIPromise($do24(client, request, options));
45786
+ return new APIPromise($do26(client, request, options));
45287
45787
  }
45288
- async function $do24(client, request, options) {
45788
+ async function $do26(client, request, options) {
45289
45789
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
45290
45790
  if (!parsed.ok) {
45291
45791
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45395,12 +45895,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
45395
45895
  });
45396
45896
 
45397
45897
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
45398
- var args23, tool$vendorsListVendorAdditionalFacilityFields;
45898
+ var args25, tool$vendorsListVendorAdditionalFacilityFields;
45399
45899
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
45400
45900
  init_vendorsListVendorAdditionalFacilityFields();
45401
45901
  init_operations();
45402
45902
  init_tools();
45403
- args23 = {
45903
+ args25 = {
45404
45904
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
45405
45905
  };
45406
45906
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -45408,9 +45908,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
45408
45908
  description: `List of vendor's additional facility fields
45409
45909
 
45410
45910
  List of vendor's additional facility fields`,
45411
- args: args23,
45412
- tool: async (client, args24, ctx) => {
45413
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45911
+ args: args25,
45912
+ tool: async (client, args26, ctx) => {
45913
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45414
45914
  if (!result.ok) {
45415
45915
  return {
45416
45916
  content: [{ type: "text", text: result.error.message }],
@@ -45425,9 +45925,9 @@ List of vendor's additional facility fields`,
45425
45925
 
45426
45926
  // src/funcs/vendorsListVendorCredentialFiles.ts
45427
45927
  function vendorsListVendorCredentialFiles(client, request, options) {
45428
- return new APIPromise($do25(client, request, options));
45928
+ return new APIPromise($do27(client, request, options));
45429
45929
  }
45430
- async function $do25(client, request, options) {
45930
+ async function $do27(client, request, options) {
45431
45931
  const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
45432
45932
  if (!parsed.ok) {
45433
45933
  return [parsed, { status: "invalid" }];
@@ -45508,12 +46008,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
45508
46008
  });
45509
46009
 
45510
46010
  // src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
45511
- var args24, tool$vendorsListVendorCredentialFiles;
46011
+ var args26, tool$vendorsListVendorCredentialFiles;
45512
46012
  var init_vendorsListVendorCredentialFiles2 = __esm(() => {
45513
46013
  init_vendorsListVendorCredentialFiles();
45514
46014
  init_operations();
45515
46015
  init_tools();
45516
- args24 = {
46016
+ args26 = {
45517
46017
  request: ListVendorCredentialFilesRequest$inboundSchema
45518
46018
  };
45519
46019
  tool$vendorsListVendorCredentialFiles = {
@@ -45526,9 +46026,9 @@ Available \`expand\` scopes are:
45526
46026
 
45527
46027
  - vendor_credential_file.vendor_credential
45528
46028
  - vendor_credential_file.credential_document`,
45529
- args: args24,
45530
- tool: async (client, args25, ctx) => {
45531
- const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46029
+ args: args26,
46030
+ tool: async (client, args27, ctx) => {
46031
+ const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45532
46032
  if (!result.ok) {
45533
46033
  return {
45534
46034
  content: [{ type: "text", text: result.error.message }],
@@ -45541,11 +46041,156 @@ Available \`expand\` scopes are:
45541
46041
  };
45542
46042
  });
45543
46043
 
46044
+ // src/funcs/vendorsListVendorCredentialHistory.ts
46045
+ function vendorsListVendorCredentialHistory(client, request, options) {
46046
+ return new APIPromise($do28(client, request, options));
46047
+ }
46048
+ async function $do28(client, request, options) {
46049
+ const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
46050
+ if (!parsed.ok) {
46051
+ return [haltIterator(parsed), { status: "invalid" }];
46052
+ }
46053
+ const payload = parsed.value;
46054
+ const body = null;
46055
+ const pathParams = {
46056
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" }),
46057
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
46058
+ explode: false,
46059
+ charEncoding: "percent"
46060
+ })
46061
+ };
46062
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/credentials/{vendor_credential_id}/history")(pathParams);
46063
+ const query = encodeFormQuery({
46064
+ desc: payload.desc,
46065
+ items_per_page: payload.items_per_page,
46066
+ page: payload.page,
46067
+ sort: payload.sort
46068
+ });
46069
+ const headers = new Headers(compactMap({
46070
+ Accept: "application/json"
46071
+ }));
46072
+ const securityInput = await extractSecurity(client._options.security);
46073
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46074
+ const context = {
46075
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46076
+ operationID: "listVendorCredentialHistory",
46077
+ oAuth2Scopes: [],
46078
+ resolvedSecurity: requestSecurity,
46079
+ securitySource: client._options.security,
46080
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46081
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46082
+ };
46083
+ const requestRes = client._createRequest(context, {
46084
+ security: requestSecurity,
46085
+ method: "GET",
46086
+ baseURL: options?.serverURL,
46087
+ path,
46088
+ headers,
46089
+ query,
46090
+ body,
46091
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46092
+ }, options);
46093
+ if (!requestRes.ok) {
46094
+ return [haltIterator(requestRes), { status: "invalid" }];
46095
+ }
46096
+ const req = requestRes.value;
46097
+ const doResult = await client._do(req, {
46098
+ context,
46099
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
46100
+ retryConfig: context.retryConfig,
46101
+ retryCodes: context.retryCodes
46102
+ });
46103
+ if (!doResult.ok) {
46104
+ return [haltIterator(doResult), { status: "request-error", request: req }];
46105
+ }
46106
+ const response = doResult.value;
46107
+ const responseFields = {
46108
+ HttpMeta: { Response: response, Request: req }
46109
+ };
46110
+ const [result, raw] = await match(json(200, ListVendorCredentialHistoryResponse$inboundSchema, {
46111
+ key: "Result"
46112
+ }), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
46113
+ if (!result.ok) {
46114
+ return [haltIterator(result), {
46115
+ status: "complete",
46116
+ request: req,
46117
+ response
46118
+ }];
46119
+ }
46120
+ const nextFunc = (responseData) => {
46121
+ const page2 = request?.page ?? 1;
46122
+ const nextPage = page2 + 1;
46123
+ if (!responseData) {
46124
+ return { next: () => null };
46125
+ }
46126
+ const results = dlv(responseData, "items");
46127
+ if (!Array.isArray(results) || !results.length) {
46128
+ return { next: () => null };
46129
+ }
46130
+ const limit = request?.itemsPerPage ?? 0;
46131
+ if (results.length < limit) {
46132
+ return { next: () => null };
46133
+ }
46134
+ const nextVal = () => vendorsListVendorCredentialHistory(client, {
46135
+ ...request,
46136
+ page: nextPage
46137
+ }, options);
46138
+ return { next: nextVal, "~next": { page: nextPage } };
46139
+ };
46140
+ const page = { ...result, ...nextFunc(raw) };
46141
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
46142
+ status: "complete",
46143
+ request: req,
46144
+ response
46145
+ }];
46146
+ }
46147
+ var init_vendorsListVendorCredentialHistory = __esm(() => {
46148
+ init_encodings();
46149
+ init_matchers();
46150
+ init_primitives();
46151
+ init_schemas();
46152
+ init_security();
46153
+ init_url();
46154
+ init_errors2();
46155
+ init_operations();
46156
+ init_async();
46157
+ init_operations2();
46158
+ });
46159
+
46160
+ // src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
46161
+ var args27, tool$vendorsListVendorCredentialHistory;
46162
+ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
46163
+ init_vendorsListVendorCredentialHistory();
46164
+ init_operations();
46165
+ init_tools();
46166
+ args27 = {
46167
+ request: ListVendorCredentialHistoryRequest$inboundSchema
46168
+ };
46169
+ tool$vendorsListVendorCredentialHistory = {
46170
+ name: "vendors-list-vendor-credential-history",
46171
+ description: `List Vendor Credential History
46172
+
46173
+ Lists vendor credentials history`,
46174
+ args: args27,
46175
+ tool: async (client, args28, ctx) => {
46176
+ const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46177
+ if (!result.ok) {
46178
+ return {
46179
+ content: [{ type: "text", text: result.error.message }],
46180
+ isError: true
46181
+ };
46182
+ }
46183
+ const value = result.value.result;
46184
+ return formatResult(value, apiCall);
46185
+ }
46186
+ };
46187
+ });
46188
+
45544
46189
  // src/funcs/vendorsListVendorCredentials.ts
45545
46190
  function vendorsListVendorCredentials(client, request, options) {
45546
- return new APIPromise($do26(client, request, options));
46191
+ return new APIPromise($do29(client, request, options));
45547
46192
  }
45548
- async function $do26(client, request, options) {
46193
+ async function $do29(client, request, options) {
45549
46194
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
45550
46195
  if (!parsed.ok) {
45551
46196
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45663,22 +46308,22 @@ var init_vendorsListVendorCredentials = __esm(() => {
45663
46308
  });
45664
46309
 
45665
46310
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
45666
- var args25, tool$vendorsListVendorCredentials;
46311
+ var args28, tool$vendorsListVendorCredentials;
45667
46312
  var init_vendorsListVendorCredentials2 = __esm(() => {
45668
46313
  init_vendorsListVendorCredentials();
45669
46314
  init_operations();
45670
46315
  init_tools();
45671
- args25 = {
46316
+ args28 = {
45672
46317
  request: ListVendorCredentialsRequest$inboundSchema
45673
46318
  };
45674
46319
  tool$vendorsListVendorCredentials = {
45675
46320
  name: "vendors-list-vendor-credentials",
45676
46321
  description: `List Vendor Credentials
45677
46322
 
45678
- Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
45679
- args: args25,
45680
- tool: async (client, args26, ctx) => {
45681
- const [result, apiCall] = await vendorsListVendorCredentials(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46323
+ Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
46324
+ args: args28,
46325
+ tool: async (client, args29, ctx) => {
46326
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45682
46327
  if (!result.ok) {
45683
46328
  return {
45684
46329
  content: [{ type: "text", text: result.error.message }],
@@ -45693,9 +46338,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
45693
46338
 
45694
46339
  // src/funcs/vendorsListVendorCredits.ts
45695
46340
  function vendorsListVendorCredits(client, request, options) {
45696
- return new APIPromise($do27(client, request, options));
46341
+ return new APIPromise($do30(client, request, options));
45697
46342
  }
45698
- async function $do27(client, request, options) {
46343
+ async function $do30(client, request, options) {
45699
46344
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
45700
46345
  if (!parsed.ok) {
45701
46346
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45807,12 +46452,12 @@ var init_vendorsListVendorCredits = __esm(() => {
45807
46452
  });
45808
46453
 
45809
46454
  // src/mcp-server/tools/vendorsListVendorCredits.ts
45810
- var args26, tool$vendorsListVendorCredits;
46455
+ var args29, tool$vendorsListVendorCredits;
45811
46456
  var init_vendorsListVendorCredits2 = __esm(() => {
45812
46457
  init_vendorsListVendorCredits();
45813
46458
  init_operations();
45814
46459
  init_tools();
45815
- args26 = {
46460
+ args29 = {
45816
46461
  request: ListVendorCreditsRequest$inboundSchema
45817
46462
  };
45818
46463
  tool$vendorsListVendorCredits = {
@@ -45820,9 +46465,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
45820
46465
  description: `List vendor credits
45821
46466
 
45822
46467
  List the credits for the vendor`,
45823
- args: args26,
45824
- tool: async (client, args27, ctx) => {
45825
- const [result, apiCall] = await vendorsListVendorCredits(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46468
+ args: args29,
46469
+ tool: async (client, args30, ctx) => {
46470
+ const [result, apiCall] = await vendorsListVendorCredits(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45826
46471
  if (!result.ok) {
45827
46472
  return {
45828
46473
  content: [{ type: "text", text: result.error.message }],
@@ -45837,16 +46482,16 @@ List the credits for the vendor`,
45837
46482
 
45838
46483
  // src/funcs/vendorsListVendorFacilityStatuses.ts
45839
46484
  function vendorsListVendorFacilityStatuses(client, request, options) {
45840
- return new APIPromise($do28(client, request, options));
46485
+ return new APIPromise($do31(client, request, options));
45841
46486
  }
45842
- async function $do28(client, request, options) {
46487
+ async function $do31(client, request, options) {
45843
46488
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
45844
46489
  if (!parsed.ok) {
45845
46490
  return [haltIterator(parsed), { status: "invalid" }];
45846
46491
  }
45847
46492
  const payload = parsed.value;
45848
46493
  const body = null;
45849
- const path = pathToFunc("/vendors/facility_statuses")();
46494
+ const path = pathToFunc("/vendors/facility/statuses")();
45850
46495
  const query = encodeFormQuery({
45851
46496
  desc: payload.desc,
45852
46497
  facility_name_like: payload.facility_name_like,
@@ -45947,12 +46592,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
45947
46592
  });
45948
46593
 
45949
46594
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
45950
- var args27, tool$vendorsListVendorFacilityStatuses;
46595
+ var args30, tool$vendorsListVendorFacilityStatuses;
45951
46596
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45952
46597
  init_vendorsListVendorFacilityStatuses();
45953
46598
  init_operations();
45954
46599
  init_tools();
45955
- args27 = {
46600
+ args30 = {
45956
46601
  request: ListVendorFacilityStatusesRequest$inboundSchema
45957
46602
  };
45958
46603
  tool$vendorsListVendorFacilityStatuses = {
@@ -45960,9 +46605,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
45960
46605
  description: `List vendor facility statuses
45961
46606
 
45962
46607
  List the facilities for the vendor`,
45963
- args: args27,
45964
- tool: async (client, args28, ctx) => {
45965
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46608
+ args: args30,
46609
+ tool: async (client, args31, ctx) => {
46610
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45966
46611
  if (!result.ok) {
45967
46612
  return {
45968
46613
  content: [{ type: "text", text: result.error.message }],
@@ -45977,9 +46622,9 @@ List the facilities for the vendor`,
45977
46622
 
45978
46623
  // src/funcs/vendorsListVendorInvoices.ts
45979
46624
  function vendorsListVendorInvoices(client, request, options) {
45980
- return new APIPromise($do29(client, request, options));
46625
+ return new APIPromise($do32(client, request, options));
45981
46626
  }
45982
- async function $do29(client, request, options) {
46627
+ async function $do32(client, request, options) {
45983
46628
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
45984
46629
  if (!parsed.ok) {
45985
46630
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46095,12 +46740,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
46095
46740
  });
46096
46741
 
46097
46742
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
46098
- var args28, tool$vendorsListVendorInvoices;
46743
+ var args31, tool$vendorsListVendorInvoices;
46099
46744
  var init_vendorsListVendorInvoices2 = __esm(() => {
46100
46745
  init_vendorsListVendorInvoices();
46101
46746
  init_operations();
46102
46747
  init_tools();
46103
- args28 = {
46748
+ args31 = {
46104
46749
  request: ListVendorInvoicesRequest$inboundSchema
46105
46750
  };
46106
46751
  tool$vendorsListVendorInvoices = {
@@ -46112,9 +46757,9 @@ List invoices for Vendors
46112
46757
  Available \`expand\` scopes are:
46113
46758
 
46114
46759
  invoice.line_items`,
46115
- args: args28,
46116
- tool: async (client, args29, ctx) => {
46117
- const [result, apiCall] = await vendorsListVendorInvoices(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46760
+ args: args31,
46761
+ tool: async (client, args32, ctx) => {
46762
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46118
46763
  if (!result.ok) {
46119
46764
  return {
46120
46765
  content: [{ type: "text", text: result.error.message }],
@@ -46129,9 +46774,9 @@ invoice.line_items`,
46129
46774
 
46130
46775
  // src/funcs/vendorsListVendorJobTitles.ts
46131
46776
  function vendorsListVendorJobTitles(client, request, options) {
46132
- return new APIPromise($do30(client, request, options));
46777
+ return new APIPromise($do33(client, request, options));
46133
46778
  }
46134
- async function $do30(client, request, options) {
46779
+ async function $do33(client, request, options) {
46135
46780
  const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
46136
46781
  if (!parsed.ok) {
46137
46782
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46238,12 +46883,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
46238
46883
  });
46239
46884
 
46240
46885
  // src/mcp-server/tools/vendorsListVendorJobTitles.ts
46241
- var args29, tool$vendorsListVendorJobTitles;
46886
+ var args32, tool$vendorsListVendorJobTitles;
46242
46887
  var init_vendorsListVendorJobTitles2 = __esm(() => {
46243
46888
  init_vendorsListVendorJobTitles();
46244
46889
  init_operations();
46245
46890
  init_tools();
46246
- args29 = {
46891
+ args32 = {
46247
46892
  request: ListVendorJobTitlesRequest$inboundSchema
46248
46893
  };
46249
46894
  tool$vendorsListVendorJobTitles = {
@@ -46251,9 +46896,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
46251
46896
  description: `List vendor job titles
46252
46897
 
46253
46898
  List valid job titles for Vendors. This can be used during sign up or in a filter.`,
46254
- args: args29,
46255
- tool: async (client, args30, ctx) => {
46256
- const [result, apiCall] = await vendorsListVendorJobTitles(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46899
+ args: args32,
46900
+ tool: async (client, args33, ctx) => {
46901
+ const [result, apiCall] = await vendorsListVendorJobTitles(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46257
46902
  if (!result.ok) {
46258
46903
  return {
46259
46904
  content: [{ type: "text", text: result.error.message }],
@@ -46268,9 +46913,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
46268
46913
 
46269
46914
  // src/funcs/vendorsListVendorManagedByCompanies.ts
46270
46915
  function vendorsListVendorManagedByCompanies(client, request, options) {
46271
- return new APIPromise($do31(client, request, options));
46916
+ return new APIPromise($do34(client, request, options));
46272
46917
  }
46273
- async function $do31(client, request, options) {
46918
+ async function $do34(client, request, options) {
46274
46919
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
46275
46920
  if (!parsed.ok) {
46276
46921
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46382,12 +47027,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
46382
47027
  });
46383
47028
 
46384
47029
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
46385
- var args30, tool$vendorsListVendorManagedByCompanies;
47030
+ var args33, tool$vendorsListVendorManagedByCompanies;
46386
47031
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
46387
47032
  init_vendorsListVendorManagedByCompanies();
46388
47033
  init_operations();
46389
47034
  init_tools();
46390
- args30 = {
47035
+ args33 = {
46391
47036
  request: ListVendorManagedByCompaniesRequest$inboundSchema
46392
47037
  };
46393
47038
  tool$vendorsListVendorManagedByCompanies = {
@@ -46395,9 +47040,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
46395
47040
  description: `List of companies managing the vendor
46396
47041
 
46397
47042
  List of companies managing the vendor`,
46398
- args: args30,
46399
- tool: async (client, args31, ctx) => {
46400
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47043
+ args: args33,
47044
+ tool: async (client, args34, ctx) => {
47045
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46401
47046
  if (!result.ok) {
46402
47047
  return {
46403
47048
  content: [{ type: "text", text: result.error.message }],
@@ -46412,9 +47057,9 @@ List of companies managing the vendor`,
46412
47057
 
46413
47058
  // src/funcs/vendorsListVendorScrubDetails.ts
46414
47059
  function vendorsListVendorScrubDetails(client, request, options) {
46415
- return new APIPromise($do32(client, request, options));
47060
+ return new APIPromise($do35(client, request, options));
46416
47061
  }
46417
- async function $do32(client, request, options) {
47062
+ async function $do35(client, request, options) {
46418
47063
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
46419
47064
  if (!parsed.ok) {
46420
47065
  return [parsed, { status: "invalid" }];
@@ -46488,12 +47133,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
46488
47133
  });
46489
47134
 
46490
47135
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
46491
- var args31, tool$vendorsListVendorScrubDetails;
47136
+ var args34, tool$vendorsListVendorScrubDetails;
46492
47137
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
46493
47138
  init_vendorsListVendorScrubDetails();
46494
47139
  init_operations();
46495
47140
  init_tools();
46496
- args31 = {
47141
+ args34 = {
46497
47142
  request: ListVendorScrubDetailsRequest$inboundSchema
46498
47143
  };
46499
47144
  tool$vendorsListVendorScrubDetails = {
@@ -46501,9 +47146,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
46501
47146
  description: `List vendor scrub details
46502
47147
 
46503
47148
  List vendor scrub details`,
46504
- args: args31,
46505
- tool: async (client, args32, ctx) => {
46506
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47149
+ args: args34,
47150
+ tool: async (client, args35, ctx) => {
47151
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46507
47152
  if (!result.ok) {
46508
47153
  return {
46509
47154
  content: [{ type: "text", text: result.error.message }],
@@ -46518,9 +47163,9 @@ List vendor scrub details`,
46518
47163
 
46519
47164
  // src/funcs/vendorsListVendorScrubPackages.ts
46520
47165
  function vendorsListVendorScrubPackages(client, request, options) {
46521
- return new APIPromise($do33(client, request, options));
47166
+ return new APIPromise($do36(client, request, options));
46522
47167
  }
46523
- async function $do33(client, request, options) {
47168
+ async function $do36(client, request, options) {
46524
47169
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
46525
47170
  if (!parsed.ok) {
46526
47171
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46632,12 +47277,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
46632
47277
  });
46633
47278
 
46634
47279
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
46635
- var args32, tool$vendorsListVendorScrubPackages;
47280
+ var args35, tool$vendorsListVendorScrubPackages;
46636
47281
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
46637
47282
  init_vendorsListVendorScrubPackages();
46638
47283
  init_operations();
46639
47284
  init_tools();
46640
- args32 = {
47285
+ args35 = {
46641
47286
  request: ListVendorScrubPackagesRequest$inboundSchema
46642
47287
  };
46643
47288
  tool$vendorsListVendorScrubPackages = {
@@ -46645,9 +47290,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
46645
47290
  description: `List vendor scrub packages
46646
47291
 
46647
47292
  List vendor scrub packages`,
46648
- args: args32,
46649
- tool: async (client, args33, ctx) => {
46650
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47293
+ args: args35,
47294
+ tool: async (client, args36, ctx) => {
47295
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46651
47296
  if (!result.ok) {
46652
47297
  return {
46653
47298
  content: [{ type: "text", text: result.error.message }],
@@ -46662,9 +47307,9 @@ List vendor scrub packages`,
46662
47307
 
46663
47308
  // src/funcs/vendorsListVendorScrubPurchases.ts
46664
47309
  function vendorsListVendorScrubPurchases(client, request, options) {
46665
- return new APIPromise($do34(client, request, options));
47310
+ return new APIPromise($do37(client, request, options));
46666
47311
  }
46667
- async function $do34(client, request, options) {
47312
+ async function $do37(client, request, options) {
46668
47313
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
46669
47314
  if (!parsed.ok) {
46670
47315
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46776,12 +47421,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
46776
47421
  });
46777
47422
 
46778
47423
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
46779
- var args33, tool$vendorsListVendorScrubPurchases;
47424
+ var args36, tool$vendorsListVendorScrubPurchases;
46780
47425
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46781
47426
  init_vendorsListVendorScrubPurchases();
46782
47427
  init_operations();
46783
47428
  init_tools();
46784
- args33 = {
47429
+ args36 = {
46785
47430
  request: ListVendorScrubPurchasesRequest$inboundSchema
46786
47431
  };
46787
47432
  tool$vendorsListVendorScrubPurchases = {
@@ -46789,9 +47434,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
46789
47434
  description: `List vendor scrub purchases
46790
47435
 
46791
47436
  List vendor scrub purchases`,
46792
- args: args33,
46793
- tool: async (client, args34, ctx) => {
46794
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47437
+ args: args36,
47438
+ tool: async (client, args37, ctx) => {
47439
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46795
47440
  if (!result.ok) {
46796
47441
  return {
46797
47442
  content: [{ type: "text", text: result.error.message }],
@@ -46806,9 +47451,9 @@ List vendor scrub purchases`,
46806
47451
 
46807
47452
  // src/funcs/vendorsPurchaseScrubCredits.ts
46808
47453
  function vendorsPurchaseScrubCredits(client, request, options) {
46809
- return new APIPromise($do35(client, request, options));
47454
+ return new APIPromise($do38(client, request, options));
46810
47455
  }
46811
- async function $do35(client, request, options) {
47456
+ async function $do38(client, request, options) {
46812
47457
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
46813
47458
  if (!parsed.ok) {
46814
47459
  return [parsed, { status: "invalid" }];
@@ -46882,12 +47527,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
46882
47527
  });
46883
47528
 
46884
47529
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
46885
- var args34, tool$vendorsPurchaseScrubCredits;
47530
+ var args37, tool$vendorsPurchaseScrubCredits;
46886
47531
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46887
47532
  init_vendorsPurchaseScrubCredits();
46888
47533
  init_operations();
46889
47534
  init_tools();
46890
- args34 = {
47535
+ args37 = {
46891
47536
  request: PurchaseScrubCreditsRequest$inboundSchema
46892
47537
  };
46893
47538
  tool$vendorsPurchaseScrubCredits = {
@@ -46895,9 +47540,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
46895
47540
  description: `Purchase scrub credits
46896
47541
 
46897
47542
  Purchase scrub credits`,
46898
- args: args34,
46899
- tool: async (client, args35, ctx) => {
46900
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47543
+ args: args37,
47544
+ tool: async (client, args38, ctx) => {
47545
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46901
47546
  if (!result.ok) {
46902
47547
  return {
46903
47548
  content: [{ type: "text", text: result.error.message }],
@@ -46912,9 +47557,9 @@ Purchase scrub credits`,
46912
47557
 
46913
47558
  // src/funcs/vendorsSubmitVendorCredential.ts
46914
47559
  function vendorsSubmitVendorCredential(client, request, options) {
46915
- return new APIPromise($do36(client, request, options));
47560
+ return new APIPromise($do39(client, request, options));
46916
47561
  }
46917
- async function $do36(client, request, options) {
47562
+ async function $do39(client, request, options) {
46918
47563
  const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
46919
47564
  if (!parsed.ok) {
46920
47565
  return [parsed, { status: "invalid" }];
@@ -46986,12 +47631,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
46986
47631
  });
46987
47632
 
46988
47633
  // src/mcp-server/tools/vendorsSubmitVendorCredential.ts
46989
- var args35, tool$vendorsSubmitVendorCredential;
47634
+ var args38, tool$vendorsSubmitVendorCredential;
46990
47635
  var init_vendorsSubmitVendorCredential2 = __esm(() => {
46991
47636
  init_vendorsSubmitVendorCredential();
46992
47637
  init_operations();
46993
47638
  init_tools();
46994
- args35 = {
47639
+ args38 = {
46995
47640
  request: SubmitVendorCredentialRequest$inboundSchema
46996
47641
  };
46997
47642
  tool$vendorsSubmitVendorCredential = {
@@ -46999,9 +47644,117 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
46999
47644
  description: `Submit vendor credential
47000
47645
 
47001
47646
  It will submit vendor credential`,
47002
- args: args35,
47003
- tool: async (client, args36, ctx) => {
47004
- const [result, apiCall] = await vendorsSubmitVendorCredential(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47647
+ args: args38,
47648
+ tool: async (client, args39, ctx) => {
47649
+ const [result, apiCall] = await vendorsSubmitVendorCredential(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47650
+ if (!result.ok) {
47651
+ return {
47652
+ content: [{ type: "text", text: result.error.message }],
47653
+ isError: true
47654
+ };
47655
+ }
47656
+ const value = result.value;
47657
+ return formatResult(value, apiCall);
47658
+ }
47659
+ };
47660
+ });
47661
+
47662
+ // src/funcs/vendorsUpdateVendorCredentialFile.ts
47663
+ function vendorsUpdateVendorCredentialFile(client, request, options) {
47664
+ return new APIPromise($do40(client, request, options));
47665
+ }
47666
+ async function $do40(client, request, options) {
47667
+ const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
47668
+ if (!parsed.ok) {
47669
+ return [parsed, { status: "invalid" }];
47670
+ }
47671
+ const payload = parsed.value;
47672
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
47673
+ const pathParams = {
47674
+ id: encodeSimple("id", payload.id, {
47675
+ explode: false,
47676
+ charEncoding: "percent"
47677
+ }),
47678
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
47679
+ };
47680
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
47681
+ const headers = new Headers(compactMap({
47682
+ "Content-Type": "application/json",
47683
+ Accept: "application/json"
47684
+ }));
47685
+ const securityInput = await extractSecurity(client._options.security);
47686
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47687
+ const context = {
47688
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47689
+ operationID: "updateVendorCredentialFile",
47690
+ oAuth2Scopes: [],
47691
+ resolvedSecurity: requestSecurity,
47692
+ securitySource: client._options.security,
47693
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47694
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47695
+ };
47696
+ const requestRes = client._createRequest(context, {
47697
+ security: requestSecurity,
47698
+ method: "PUT",
47699
+ baseURL: options?.serverURL,
47700
+ path,
47701
+ headers,
47702
+ body,
47703
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47704
+ }, options);
47705
+ if (!requestRes.ok) {
47706
+ return [requestRes, { status: "invalid" }];
47707
+ }
47708
+ const req = requestRes.value;
47709
+ const doResult = await client._do(req, {
47710
+ context,
47711
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
47712
+ retryConfig: context.retryConfig,
47713
+ retryCodes: context.retryCodes
47714
+ });
47715
+ if (!doResult.ok) {
47716
+ return [doResult, { status: "request-error", request: req }];
47717
+ }
47718
+ const response = doResult.value;
47719
+ const responseFields = {
47720
+ HttpMeta: { Response: response, Request: req }
47721
+ };
47722
+ const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47723
+ if (!result.ok) {
47724
+ return [result, { status: "complete", request: req, response }];
47725
+ }
47726
+ return [result, { status: "complete", request: req, response }];
47727
+ }
47728
+ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
47729
+ init_esm();
47730
+ init_encodings();
47731
+ init_matchers();
47732
+ init_primitives();
47733
+ init_schemas();
47734
+ init_security();
47735
+ init_url();
47736
+ init_errors2();
47737
+ init_operations();
47738
+ init_async();
47739
+ });
47740
+
47741
+ // src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
47742
+ var args39, tool$vendorsUpdateVendorCredentialFile;
47743
+ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
47744
+ init_vendorsUpdateVendorCredentialFile();
47745
+ init_operations();
47746
+ init_tools();
47747
+ args39 = {
47748
+ request: UpdateVendorCredentialFileRequest$inboundSchema
47749
+ };
47750
+ tool$vendorsUpdateVendorCredentialFile = {
47751
+ name: "vendors-update-vendor-credential-file",
47752
+ description: `Update vendor credential file
47753
+
47754
+ It will update the vendor credential file properties`,
47755
+ args: args39,
47756
+ tool: async (client, args40, ctx) => {
47757
+ const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47005
47758
  if (!result.ok) {
47006
47759
  return {
47007
47760
  content: [{ type: "text", text: result.error.message }],
@@ -47016,9 +47769,9 @@ It will submit vendor credential`,
47016
47769
 
47017
47770
  // src/funcs/vendorsUpdateVendorDetails.ts
47018
47771
  function vendorsUpdateVendorDetails(client, request, options) {
47019
- return new APIPromise($do37(client, request, options));
47772
+ return new APIPromise($do41(client, request, options));
47020
47773
  }
47021
- async function $do37(client, request, options) {
47774
+ async function $do41(client, request, options) {
47022
47775
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
47023
47776
  if (!parsed.ok) {
47024
47777
  return [parsed, { status: "invalid" }];
@@ -47093,12 +47846,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
47093
47846
  });
47094
47847
 
47095
47848
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
47096
- var args36, tool$vendorsUpdateVendorDetails;
47849
+ var args40, tool$vendorsUpdateVendorDetails;
47097
47850
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
47098
47851
  init_vendorsUpdateVendorDetails();
47099
47852
  init_operations();
47100
47853
  init_tools();
47101
- args36 = {
47854
+ args40 = {
47102
47855
  request: UpdateVendorDetailsRequest$inboundSchema
47103
47856
  };
47104
47857
  tool$vendorsUpdateVendorDetails = {
@@ -47106,9 +47859,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
47106
47859
  description: `Update vendor details
47107
47860
 
47108
47861
  It will update the vendor details`,
47109
- args: args36,
47110
- tool: async (client, args37, ctx) => {
47111
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47862
+ args: args40,
47863
+ tool: async (client, args41, ctx) => {
47864
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47112
47865
  if (!result.ok) {
47113
47866
  return {
47114
47867
  content: [{ type: "text", text: result.error.message }],
@@ -47123,9 +47876,9 @@ It will update the vendor details`,
47123
47876
 
47124
47877
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
47125
47878
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
47126
- return new APIPromise($do38(client, request, options));
47879
+ return new APIPromise($do42(client, request, options));
47127
47880
  }
47128
- async function $do38(client, request, options) {
47881
+ async function $do42(client, request, options) {
47129
47882
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
47130
47883
  if (!parsed.ok) {
47131
47884
  return [parsed, { status: "invalid" }];
@@ -47199,12 +47952,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
47199
47952
  });
47200
47953
 
47201
47954
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
47202
- var args37, tool$vendorsUpdateVendorManagedByCompany;
47955
+ var args41, tool$vendorsUpdateVendorManagedByCompany;
47203
47956
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
47204
47957
  init_vendorsUpdateVendorManagedByCompany();
47205
47958
  init_operations();
47206
47959
  init_tools();
47207
- args37 = {
47960
+ args41 = {
47208
47961
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
47209
47962
  };
47210
47963
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -47212,9 +47965,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
47212
47965
  description: `Update vendor managed by company access rights
47213
47966
 
47214
47967
  It will update the vendor managed by company access rights`,
47215
- args: args37,
47216
- tool: async (client, args38, ctx) => {
47217
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47968
+ args: args41,
47969
+ tool: async (client, args42, ctx) => {
47970
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47218
47971
  if (!result.ok) {
47219
47972
  return {
47220
47973
  content: [{ type: "text", text: result.error.message }],
@@ -47229,9 +47982,9 @@ It will update the vendor managed by company access rights`,
47229
47982
 
47230
47983
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
47231
47984
  function vendorsUpdateVendorScrubDetails(client, request, options) {
47232
- return new APIPromise($do39(client, request, options));
47985
+ return new APIPromise($do43(client, request, options));
47233
47986
  }
47234
- async function $do39(client, request, options) {
47987
+ async function $do43(client, request, options) {
47235
47988
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
47236
47989
  if (!parsed.ok) {
47237
47990
  return [parsed, { status: "invalid" }];
@@ -47306,12 +48059,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
47306
48059
  });
47307
48060
 
47308
48061
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
47309
- var args38, tool$vendorsUpdateVendorScrubDetails;
48062
+ var args42, tool$vendorsUpdateVendorScrubDetails;
47310
48063
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
47311
48064
  init_vendorsUpdateVendorScrubDetails();
47312
48065
  init_operations();
47313
48066
  init_tools();
47314
- args38 = {
48067
+ args42 = {
47315
48068
  request: UpdateVendorScrubDetailsRequest$inboundSchema
47316
48069
  };
47317
48070
  tool$vendorsUpdateVendorScrubDetails = {
@@ -47319,9 +48072,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
47319
48072
  description: `Update vendor scrub details
47320
48073
 
47321
48074
  Update vendor scrub details`,
47322
- args: args38,
47323
- tool: async (client, args39, ctx) => {
47324
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48075
+ args: args42,
48076
+ tool: async (client, args43, ctx) => {
48077
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47325
48078
  if (!result.ok) {
47326
48079
  return {
47327
48080
  content: [{ type: "text", text: result.error.message }],
@@ -47336,9 +48089,9 @@ Update vendor scrub details`,
47336
48089
 
47337
48090
  // src/funcs/webhooksGetWebhookEndpoint.ts
47338
48091
  function webhooksGetWebhookEndpoint(client, request, options) {
47339
- return new APIPromise($do40(client, request, options));
48092
+ return new APIPromise($do44(client, request, options));
47340
48093
  }
47341
- async function $do40(client, request, options) {
48094
+ async function $do44(client, request, options) {
47342
48095
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
47343
48096
  if (!parsed.ok) {
47344
48097
  return [parsed, { status: "invalid" }];
@@ -47412,12 +48165,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
47412
48165
  });
47413
48166
 
47414
48167
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
47415
- var args39, tool$webhooksGetWebhookEndpoint;
48168
+ var args43, tool$webhooksGetWebhookEndpoint;
47416
48169
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
47417
48170
  init_webhooksGetWebhookEndpoint();
47418
48171
  init_operations();
47419
48172
  init_tools();
47420
- args39 = {
48173
+ args43 = {
47421
48174
  request: GetWebhookEndpointRequest$inboundSchema
47422
48175
  };
47423
48176
  tool$webhooksGetWebhookEndpoint = {
@@ -47425,9 +48178,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
47425
48178
  description: `Retrieves the webhook endpoint with the given ID.
47426
48179
 
47427
48180
  Returns the definition of a webhook endpoint by ID.`,
47428
- args: args39,
47429
- tool: async (client, args40, ctx) => {
47430
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48181
+ args: args43,
48182
+ tool: async (client, args44, ctx) => {
48183
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47431
48184
  if (!result.ok) {
47432
48185
  return {
47433
48186
  content: [{ type: "text", text: result.error.message }],
@@ -47442,9 +48195,9 @@ Returns the definition of a webhook endpoint by ID.`,
47442
48195
 
47443
48196
  // src/funcs/webhooksListAllWebhookEndpoints.ts
47444
48197
  function webhooksListAllWebhookEndpoints(client, request, options) {
47445
- return new APIPromise($do41(client, request, options));
48198
+ return new APIPromise($do45(client, request, options));
47446
48199
  }
47447
- async function $do41(client, request, options) {
48200
+ async function $do45(client, request, options) {
47448
48201
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
47449
48202
  if (!parsed.ok) {
47450
48203
  return [parsed, { status: "invalid" }];
@@ -47518,12 +48271,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
47518
48271
  });
47519
48272
 
47520
48273
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
47521
- var args40, tool$webhooksListAllWebhookEndpoints;
48274
+ var args44, tool$webhooksListAllWebhookEndpoints;
47522
48275
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
47523
48276
  init_webhooksListAllWebhookEndpoints();
47524
48277
  init_operations();
47525
48278
  init_tools();
47526
- args40 = {
48279
+ args44 = {
47527
48280
  request: ListAllWebhookEndpointsRequest$inboundSchema
47528
48281
  };
47529
48282
  tool$webhooksListAllWebhookEndpoints = {
@@ -47531,9 +48284,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
47531
48284
  description: `List all webhook endpoints
47532
48285
 
47533
48286
  Returns a list of your webhook endpoints.`,
47534
- args: args40,
47535
- tool: async (client, args41, ctx) => {
47536
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48287
+ args: args44,
48288
+ tool: async (client, args45, ctx) => {
48289
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47537
48290
  if (!result.ok) {
47538
48291
  return {
47539
48292
  content: [{ type: "text", text: result.error.message }],
@@ -47548,9 +48301,9 @@ Returns a list of your webhook endpoints.`,
47548
48301
 
47549
48302
  // src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
47550
48303
  function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
47551
- return new APIPromise($do42(client, request, options));
48304
+ return new APIPromise($do46(client, request, options));
47552
48305
  }
47553
- async function $do42(client, request, options) {
48306
+ async function $do46(client, request, options) {
47554
48307
  const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
47555
48308
  if (!parsed.ok) {
47556
48309
  return [parsed, { status: "invalid" }];
@@ -47625,12 +48378,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
47625
48378
  });
47626
48379
 
47627
48380
  // src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
47628
- var args41, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
48381
+ var args45, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
47629
48382
  var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
47630
48383
  init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
47631
48384
  init_operations();
47632
48385
  init_tools();
47633
- args41 = {
48386
+ args45 = {
47634
48387
  request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
47635
48388
  };
47636
48389
  tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
@@ -47638,9 +48391,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
47638
48391
  description: `Updates the webhook endpoint with the given ID.
47639
48392
 
47640
48393
  Updates the webhook endpoint with the given ID.`,
47641
- args: args41,
47642
- tool: async (client, args42, ctx) => {
47643
- const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48394
+ args: args45,
48395
+ tool: async (client, args46, ctx) => {
48396
+ const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47644
48397
  if (!result.ok) {
47645
48398
  return {
47646
48399
  content: [{ type: "text", text: result.error.message }],
@@ -47655,9 +48408,9 @@ Updates the webhook endpoint with the given ID.`,
47655
48408
 
47656
48409
  // src/funcs/zonesListOrSearchSecurityZones.ts
47657
48410
  function zonesListOrSearchSecurityZones(client, request, options) {
47658
- return new APIPromise($do43(client, request, options));
48411
+ return new APIPromise($do47(client, request, options));
47659
48412
  }
47660
- async function $do43(client, request, options) {
48413
+ async function $do47(client, request, options) {
47661
48414
  const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
47662
48415
  if (!parsed.ok) {
47663
48416
  return [haltIterator(parsed), { status: "invalid" }];
@@ -47769,12 +48522,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
47769
48522
  });
47770
48523
 
47771
48524
  // src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
47772
- var args42, tool$zonesListOrSearchSecurityZones;
48525
+ var args46, tool$zonesListOrSearchSecurityZones;
47773
48526
  var init_zonesListOrSearchSecurityZones2 = __esm(() => {
47774
48527
  init_zonesListOrSearchSecurityZones();
47775
48528
  init_operations();
47776
48529
  init_tools();
47777
- args42 = {
48530
+ args46 = {
47778
48531
  request: ListOrSearchSecurityZonesRequest$inboundSchema
47779
48532
  };
47780
48533
  tool$zonesListOrSearchSecurityZones = {
@@ -47782,9 +48535,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
47782
48535
  description: `List or search security zones
47783
48536
 
47784
48537
  List or search security zones`,
47785
- args: args42,
47786
- tool: async (client, args43, ctx) => {
47787
- const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48538
+ args: args46,
48539
+ tool: async (client, args47, ctx) => {
48540
+ const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47788
48541
  if (!result.ok) {
47789
48542
  return {
47790
48543
  content: [{ type: "text", text: result.error.message }],
@@ -47799,9 +48552,9 @@ List or search security zones`,
47799
48552
 
47800
48553
  // src/funcs/zonesSecurityZoneCheckin.ts
47801
48554
  function zonesSecurityZoneCheckin(client, request, options) {
47802
- return new APIPromise($do44(client, request, options));
48555
+ return new APIPromise($do48(client, request, options));
47803
48556
  }
47804
- async function $do44(client, request, options) {
48557
+ async function $do48(client, request, options) {
47805
48558
  const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
47806
48559
  if (!parsed.ok) {
47807
48560
  return [parsed, { status: "invalid" }];
@@ -47869,12 +48622,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
47869
48622
  });
47870
48623
 
47871
48624
  // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
47872
- var args43, tool$zonesSecurityZoneCheckin;
48625
+ var args47, tool$zonesSecurityZoneCheckin;
47873
48626
  var init_zonesSecurityZoneCheckin2 = __esm(() => {
47874
48627
  init_zonesSecurityZoneCheckin();
47875
48628
  init_operations();
47876
48629
  init_tools();
47877
- args43 = {
48630
+ args47 = {
47878
48631
  request: SecurityZoneCheckinRequestBody$inboundSchema
47879
48632
  };
47880
48633
  tool$zonesSecurityZoneCheckin = {
@@ -47882,9 +48635,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
47882
48635
  description: `Security zone checkin request
47883
48636
 
47884
48637
  Security zone checkin request`,
47885
- args: args43,
47886
- tool: async (client, args44, ctx) => {
47887
- const [result, apiCall] = await zonesSecurityZoneCheckin(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48638
+ args: args47,
48639
+ tool: async (client, args48, ctx) => {
48640
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47888
48641
  if (!result.ok) {
47889
48642
  return {
47890
48643
  content: [{ type: "text", text: result.error.message }],
@@ -47901,7 +48654,7 @@ Security zone checkin request`,
47901
48654
  function createMCPServer(deps) {
47902
48655
  const server = new McpServer({
47903
48656
  name: "GreenSecurity",
47904
- version: "0.31.4"
48657
+ version: "0.31.7"
47905
48658
  });
47906
48659
  const client = new GreenSecurityCore({
47907
48660
  security: deps.security,
@@ -47920,9 +48673,13 @@ function createMCPServer(deps) {
47920
48673
  tool(tool$vendorsListVendorCredentials);
47921
48674
  tool(tool$vendorsGetVendorCredentialDetails);
47922
48675
  tool(tool$vendorsGetVendorCredentialFile);
48676
+ tool(tool$vendorsUpdateVendorCredentialFile);
48677
+ tool(tool$vendorsDeleteVendorCredentialFile);
47923
48678
  tool(tool$vendorsDeclineVendorCredential);
47924
48679
  tool(tool$vendorsListVendorCredentialFiles);
48680
+ tool(tool$vendorsAddVendorCredentialFile);
47925
48681
  tool(tool$vendorsSubmitVendorCredential);
48682
+ tool(tool$vendorsListVendorCredentialHistory);
47926
48683
  tool(tool$vendorsExpediteTimeRemaining);
47927
48684
  tool(tool$vendorsListVendorInvoices);
47928
48685
  tool(tool$vendorsGetVendorInvoiceDetails);
@@ -47978,11 +48735,13 @@ var init_server2 = __esm(() => {
47978
48735
  init_usersPassword2();
47979
48736
  init_usersPasswordResetRequest2();
47980
48737
  init_usersPostAuthenticate2();
48738
+ init_vendorsAddVendorCredentialFile2();
47981
48739
  init_vendorsAddVendorManagedByCompany2();
47982
48740
  init_vendorScansVendorScanOut2();
47983
48741
  init_vendorsCreateVendorCompany2();
47984
48742
  init_vendorsCreateVendorRegistration2();
47985
48743
  init_vendorsDeclineVendorCredential2();
48744
+ init_vendorsDeleteVendorCredentialFile2();
47986
48745
  init_vendorsDeleteVendorManagedByCompany2();
47987
48746
  init_vendorsExpediteTimeRemaining2();
47988
48747
  init_vendorsGetVendorCredentialDetails2();
@@ -47991,6 +48750,7 @@ var init_server2 = __esm(() => {
47991
48750
  init_vendorsGetVendorsDetails2();
47992
48751
  init_vendorsListVendorAdditionalFacilityFields2();
47993
48752
  init_vendorsListVendorCredentialFiles2();
48753
+ init_vendorsListVendorCredentialHistory2();
47994
48754
  init_vendorsListVendorCredentials2();
47995
48755
  init_vendorsListVendorCredits2();
47996
48756
  init_vendorsListVendorFacilityStatuses2();
@@ -48002,6 +48762,7 @@ var init_server2 = __esm(() => {
48002
48762
  init_vendorsListVendorScrubPurchases2();
48003
48763
  init_vendorsPurchaseScrubCredits2();
48004
48764
  init_vendorsSubmitVendorCredential2();
48765
+ init_vendorsUpdateVendorCredentialFile2();
48005
48766
  init_vendorsUpdateVendorDetails2();
48006
48767
  init_vendorsUpdateVendorManagedByCompany2();
48007
48768
  init_vendorsUpdateVendorScrubDetails2();
@@ -49214,7 +49975,7 @@ var routes = an({
49214
49975
  var app = He(routes, {
49215
49976
  name: "mcp",
49216
49977
  versionInfo: {
49217
- currentVersion: "0.31.4"
49978
+ currentVersion: "0.31.7"
49218
49979
  }
49219
49980
  });
49220
49981
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -49222,5 +49983,5 @@ export {
49222
49983
  app
49223
49984
  };
49224
49985
 
49225
- //# debugId=8C605A9E060DFFFF64756E2164756E21
49986
+ //# debugId=48B75471684B2D4D64756E2164756E21
49226
49987
  //# sourceMappingURL=mcp-server.js.map