@greensecurity/javascript-sdk 0.31.15 → 0.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/README.md +12 -0
  2. package/bin/mcp-server.js +986 -345
  3. package/bin/mcp-server.js.map +20 -8
  4. package/dist/commonjs/__tests__/vendors.test.js +80 -3
  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 +32 -4
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.d.ts +17 -0
  11. package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.js +116 -0
  13. package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  14. package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.d.ts +17 -0
  15. package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.js +119 -0
  17. package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.js.map +1 -0
  18. package/dist/commonjs/funcs/vendorsGetVendorLegalName.d.ts +17 -0
  19. package/dist/commonjs/funcs/vendorsGetVendorLegalName.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/vendorsGetVendorLegalName.js +120 -0
  21. package/dist/commonjs/funcs/vendorsGetVendorLegalName.js.map +1 -0
  22. package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.d.ts +23 -0
  23. package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.js +133 -0
  25. package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.js.map +1 -0
  26. package/dist/commonjs/index.extras.js +1 -2
  27. package/dist/commonjs/index.extras.js.map +1 -1
  28. package/dist/commonjs/lib/config.d.ts +2 -2
  29. package/dist/commonjs/lib/config.js +2 -2
  30. package/dist/commonjs/lib/config.js.map +1 -1
  31. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  32. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  33. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  34. package/dist/commonjs/mcp-server/server.js +9 -1
  35. package/dist/commonjs/mcp-server/server.js.map +1 -1
  36. package/dist/commonjs/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.d.ts +8 -0
  37. package/dist/commonjs/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.js +64 -0
  39. package/dist/commonjs/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/vendorsCreateOrUpdateBcr.d.ts +8 -0
  41. package/dist/commonjs/mcp-server/tools/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/vendorsCreateOrUpdateBcr.js +64 -0
  43. package/dist/commonjs/mcp-server/tools/vendorsCreateOrUpdateBcr.js.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/vendorsGetVendorLegalName.d.ts +8 -0
  45. package/dist/commonjs/mcp-server/tools/vendorsGetVendorLegalName.d.ts.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/vendorsGetVendorLegalName.js +64 -0
  47. package/dist/commonjs/mcp-server/tools/vendorsGetVendorLegalName.js.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialDataRequests.d.ts +8 -0
  49. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialDataRequests.js +69 -0
  51. package/dist/commonjs/mcp-server/tools/vendorsListVendorCredentialDataRequests.js.map +1 -0
  52. package/dist/commonjs/models/components/expand.d.ts +6 -0
  53. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/expand.js +2 -0
  55. package/dist/commonjs/models/components/expand.js.map +1 -1
  56. package/dist/commonjs/models/operations/createnewvendorcredentialversion.d.ts +59 -0
  57. package/dist/commonjs/models/operations/createnewvendorcredentialversion.d.ts.map +1 -0
  58. package/dist/commonjs/models/operations/createnewvendorcredentialversion.js +107 -0
  59. package/dist/commonjs/models/operations/createnewvendorcredentialversion.js.map +1 -0
  60. package/dist/commonjs/models/operations/createorupdatebcr.d.ts +103 -0
  61. package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -0
  62. package/dist/commonjs/models/operations/createorupdatebcr.js +153 -0
  63. package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -0
  64. package/dist/commonjs/models/operations/getvendorlegalname.d.ts +64 -0
  65. package/dist/commonjs/models/operations/getvendorlegalname.d.ts.map +1 -0
  66. package/dist/commonjs/models/operations/getvendorlegalname.js +121 -0
  67. package/dist/commonjs/models/operations/getvendorlegalname.js.map +1 -0
  68. package/dist/commonjs/models/operations/index.d.ts +4 -0
  69. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/index.js +4 -0
  71. package/dist/commonjs/models/operations/index.js.map +1 -1
  72. package/dist/commonjs/models/operations/listvendorcredentialdatarequests.d.ts +58 -0
  73. package/dist/commonjs/models/operations/listvendorcredentialdatarequests.d.ts.map +1 -0
  74. package/dist/commonjs/models/operations/listvendorcredentialdatarequests.js +91 -0
  75. package/dist/commonjs/models/operations/listvendorcredentialdatarequests.js.map +1 -0
  76. package/dist/commonjs/react-query/index.d.ts +4 -0
  77. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  78. package/dist/commonjs/react-query/index.js +4 -0
  79. package/dist/commonjs/react-query/index.js.map +1 -1
  80. package/dist/commonjs/react-query/vendorsCreateNewVendorCredentialVersion.d.ts +23 -0
  81. package/dist/commonjs/react-query/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  82. package/dist/commonjs/react-query/vendorsCreateNewVendorCredentialVersion.js +51 -0
  83. package/dist/commonjs/react-query/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  84. package/dist/commonjs/react-query/vendorsCreateOrUpdateBcr.d.ts +23 -0
  85. package/dist/commonjs/react-query/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  86. package/dist/commonjs/react-query/vendorsCreateOrUpdateBcr.js +47 -0
  87. package/dist/commonjs/react-query/vendorsCreateOrUpdateBcr.js.map +1 -0
  88. package/dist/commonjs/react-query/vendorsGetVendorLegalName.d.ts +30 -0
  89. package/dist/commonjs/react-query/vendorsGetVendorLegalName.d.ts.map +1 -0
  90. package/dist/commonjs/react-query/vendorsGetVendorLegalName.js +96 -0
  91. package/dist/commonjs/react-query/vendorsGetVendorLegalName.js.map +1 -0
  92. package/dist/commonjs/react-query/vendorsListVendorCredentialDataRequests.d.ts +65 -0
  93. package/dist/commonjs/react-query/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  94. package/dist/commonjs/react-query/vendorsListVendorCredentialDataRequests.js +113 -0
  95. package/dist/commonjs/react-query/vendorsListVendorCredentialDataRequests.js.map +1 -0
  96. package/dist/commonjs/sdk/vendors.d.ts +33 -0
  97. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  98. package/dist/commonjs/sdk/vendors.js +45 -0
  99. package/dist/commonjs/sdk/vendors.js.map +1 -1
  100. package/dist/esm/__tests__/vendors.test.js +80 -3
  101. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  102. package/dist/esm/__tests__/webhooks.test.js +1 -1
  103. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  104. package/dist/esm/__tests__/zones.test.js +32 -4
  105. package/dist/esm/__tests__/zones.test.js.map +1 -1
  106. package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.d.ts +17 -0
  107. package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  108. package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.js +80 -0
  109. package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  110. package/dist/esm/funcs/vendorsCreateOrUpdateBcr.d.ts +17 -0
  111. package/dist/esm/funcs/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  112. package/dist/esm/funcs/vendorsCreateOrUpdateBcr.js +83 -0
  113. package/dist/esm/funcs/vendorsCreateOrUpdateBcr.js.map +1 -0
  114. package/dist/esm/funcs/vendorsGetVendorLegalName.d.ts +17 -0
  115. package/dist/esm/funcs/vendorsGetVendorLegalName.d.ts.map +1 -0
  116. package/dist/esm/funcs/vendorsGetVendorLegalName.js +84 -0
  117. package/dist/esm/funcs/vendorsGetVendorLegalName.js.map +1 -0
  118. package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.d.ts +23 -0
  119. package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  120. package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.js +97 -0
  121. package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.js.map +1 -0
  122. package/dist/esm/index.extras.js +1 -2
  123. package/dist/esm/index.extras.js.map +1 -1
  124. package/dist/esm/lib/config.d.ts +2 -2
  125. package/dist/esm/lib/config.js +2 -2
  126. package/dist/esm/lib/config.js.map +1 -1
  127. package/dist/esm/mcp-server/mcp-server.js +1 -1
  128. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  129. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  130. package/dist/esm/mcp-server/server.js +9 -1
  131. package/dist/esm/mcp-server/server.js.map +1 -1
  132. package/dist/esm/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.d.ts +8 -0
  133. package/dist/esm/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  134. package/dist/esm/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.js +28 -0
  135. package/dist/esm/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  136. package/dist/esm/mcp-server/tools/vendorsCreateOrUpdateBcr.d.ts +8 -0
  137. package/dist/esm/mcp-server/tools/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  138. package/dist/esm/mcp-server/tools/vendorsCreateOrUpdateBcr.js +28 -0
  139. package/dist/esm/mcp-server/tools/vendorsCreateOrUpdateBcr.js.map +1 -0
  140. package/dist/esm/mcp-server/tools/vendorsGetVendorLegalName.d.ts +8 -0
  141. package/dist/esm/mcp-server/tools/vendorsGetVendorLegalName.d.ts.map +1 -0
  142. package/dist/esm/mcp-server/tools/vendorsGetVendorLegalName.js +28 -0
  143. package/dist/esm/mcp-server/tools/vendorsGetVendorLegalName.js.map +1 -0
  144. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialDataRequests.d.ts +8 -0
  145. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  146. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialDataRequests.js +33 -0
  147. package/dist/esm/mcp-server/tools/vendorsListVendorCredentialDataRequests.js.map +1 -0
  148. package/dist/esm/models/components/expand.d.ts +6 -0
  149. package/dist/esm/models/components/expand.d.ts.map +1 -1
  150. package/dist/esm/models/components/expand.js +2 -0
  151. package/dist/esm/models/components/expand.js.map +1 -1
  152. package/dist/esm/models/operations/createnewvendorcredentialversion.d.ts +59 -0
  153. package/dist/esm/models/operations/createnewvendorcredentialversion.d.ts.map +1 -0
  154. package/dist/esm/models/operations/createnewvendorcredentialversion.js +67 -0
  155. package/dist/esm/models/operations/createnewvendorcredentialversion.js.map +1 -0
  156. package/dist/esm/models/operations/createorupdatebcr.d.ts +103 -0
  157. package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -0
  158. package/dist/esm/models/operations/createorupdatebcr.js +113 -0
  159. package/dist/esm/models/operations/createorupdatebcr.js.map +1 -0
  160. package/dist/esm/models/operations/getvendorlegalname.d.ts +64 -0
  161. package/dist/esm/models/operations/getvendorlegalname.d.ts.map +1 -0
  162. package/dist/esm/models/operations/getvendorlegalname.js +81 -0
  163. package/dist/esm/models/operations/getvendorlegalname.js.map +1 -0
  164. package/dist/esm/models/operations/index.d.ts +4 -0
  165. package/dist/esm/models/operations/index.d.ts.map +1 -1
  166. package/dist/esm/models/operations/index.js +4 -0
  167. package/dist/esm/models/operations/index.js.map +1 -1
  168. package/dist/esm/models/operations/listvendorcredentialdatarequests.d.ts +58 -0
  169. package/dist/esm/models/operations/listvendorcredentialdatarequests.d.ts.map +1 -0
  170. package/dist/esm/models/operations/listvendorcredentialdatarequests.js +53 -0
  171. package/dist/esm/models/operations/listvendorcredentialdatarequests.js.map +1 -0
  172. package/dist/esm/react-query/index.d.ts +4 -0
  173. package/dist/esm/react-query/index.d.ts.map +1 -1
  174. package/dist/esm/react-query/index.js +4 -0
  175. package/dist/esm/react-query/index.js.map +1 -1
  176. package/dist/esm/react-query/vendorsCreateNewVendorCredentialVersion.d.ts +23 -0
  177. package/dist/esm/react-query/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -0
  178. package/dist/esm/react-query/vendorsCreateNewVendorCredentialVersion.js +46 -0
  179. package/dist/esm/react-query/vendorsCreateNewVendorCredentialVersion.js.map +1 -0
  180. package/dist/esm/react-query/vendorsCreateOrUpdateBcr.d.ts +23 -0
  181. package/dist/esm/react-query/vendorsCreateOrUpdateBcr.d.ts.map +1 -0
  182. package/dist/esm/react-query/vendorsCreateOrUpdateBcr.js +42 -0
  183. package/dist/esm/react-query/vendorsCreateOrUpdateBcr.js.map +1 -0
  184. package/dist/esm/react-query/vendorsGetVendorLegalName.d.ts +30 -0
  185. package/dist/esm/react-query/vendorsGetVendorLegalName.d.ts.map +1 -0
  186. package/dist/esm/react-query/vendorsGetVendorLegalName.js +86 -0
  187. package/dist/esm/react-query/vendorsGetVendorLegalName.js.map +1 -0
  188. package/dist/esm/react-query/vendorsListVendorCredentialDataRequests.d.ts +65 -0
  189. package/dist/esm/react-query/vendorsListVendorCredentialDataRequests.d.ts.map +1 -0
  190. package/dist/esm/react-query/vendorsListVendorCredentialDataRequests.js +103 -0
  191. package/dist/esm/react-query/vendorsListVendorCredentialDataRequests.js.map +1 -0
  192. package/dist/esm/sdk/vendors.d.ts +33 -0
  193. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  194. package/dist/esm/sdk/vendors.js +45 -0
  195. package/dist/esm/sdk/vendors.js.map +1 -1
  196. package/jsr.json +1 -1
  197. package/package.json +1 -1
  198. package/src/__tests__/vendors.test.ts +96 -3
  199. package/src/__tests__/webhooks.test.ts +1 -1
  200. package/src/__tests__/zones.test.ts +32 -4
  201. package/src/funcs/vendorsCreateNewVendorCredentialVersion.ts +171 -0
  202. package/src/funcs/vendorsCreateOrUpdateBcr.ts +177 -0
  203. package/src/funcs/vendorsGetVendorLegalName.ts +172 -0
  204. package/src/funcs/vendorsListVendorCredentialDataRequests.ts +201 -0
  205. package/src/index.extras.ts +1 -3
  206. package/src/lib/config.ts +2 -2
  207. package/src/mcp-server/mcp-server.ts +1 -1
  208. package/src/mcp-server/server.ts +9 -1
  209. package/src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts +39 -0
  210. package/src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts +37 -0
  211. package/src/mcp-server/tools/vendorsGetVendorLegalName.ts +37 -0
  212. package/src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts +44 -0
  213. package/src/models/components/expand.ts +4 -0
  214. package/src/models/operations/createnewvendorcredentialversion.ts +166 -0
  215. package/src/models/operations/createorupdatebcr.ts +214 -0
  216. package/src/models/operations/getvendorlegalname.ts +161 -0
  217. package/src/models/operations/index.ts +4 -0
  218. package/src/models/operations/listvendorcredentialdatarequests.ts +127 -0
  219. package/src/react-query/index.ts +4 -0
  220. package/src/react-query/vendorsCreateNewVendorCredentialVersion.ts +93 -0
  221. package/src/react-query/vendorsCreateOrUpdateBcr.ts +88 -0
  222. package/src/react-query/vendorsGetVendorLegalName.ts +165 -0
  223. package/src/react-query/vendorsListVendorCredentialDataRequests.ts +222 -0
  224. 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.15",
34239
+ sdkVersion: "0.34.1",
34240
34240
  genVersion: "2.610.0",
34241
- userAgent: "speakeasy-sdk/typescript 0.31.15 2.610.0 0.0.3 @greensecurity/javascript-sdk"
34241
+ userAgent: "speakeasy-sdk/typescript 0.34.1 2.610.0 0.0.3 @greensecurity/javascript-sdk"
34242
34242
  };
34243
34243
  });
34244
34244
 
@@ -36820,7 +36820,9 @@ var init_expand = __esm(() => {
36820
36820
  VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
36821
36821
  VendorCredentialTargetsChop: "vendor_credential.targets_chop",
36822
36822
  VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential",
36823
- VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document"
36823
+ VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document",
36824
+ VendorCredentialDataRequestVendorCredential: "vendor_credential_data_request.vendor_credential",
36825
+ VendorCredentialDataRequestDataRequest: "vendor_credential_data_request.data_request"
36824
36826
  };
36825
36827
  Expand$inboundSchema = nativeEnumType(Expand);
36826
36828
  Expand$outboundSchema = Expand$inboundSchema;
@@ -40365,6 +40367,117 @@ var init_changepassword = __esm(() => {
40365
40367
  })(ChangePasswordChangePasswordOk$ ||= {});
40366
40368
  });
40367
40369
 
40370
+ // src/models/operations/createnewvendorcredentialversion.ts
40371
+ var CreateNewVendorCredentialVersionRequestBody$inboundSchema, CreateNewVendorCredentialVersionRequestBody$outboundSchema, CreateNewVendorCredentialVersionRequestBody$, CreateNewVendorCredentialVersionResponseBody$inboundSchema, CreateNewVendorCredentialVersionResponseBody$outboundSchema, CreateNewVendorCredentialVersionResponseBody$;
40372
+ var init_createnewvendorcredentialversion = __esm(() => {
40373
+ init_esm();
40374
+ init_primitives();
40375
+ CreateNewVendorCredentialVersionRequestBody$inboundSchema = objectType({
40376
+ vendor_credential_id: numberType().int()
40377
+ }).transform((v2) => {
40378
+ return remap(v2, {
40379
+ vendor_credential_id: "vendorCredentialId"
40380
+ });
40381
+ });
40382
+ CreateNewVendorCredentialVersionRequestBody$outboundSchema = objectType({
40383
+ vendorCredentialId: numberType().int()
40384
+ }).transform((v2) => {
40385
+ return remap(v2, {
40386
+ vendorCredentialId: "vendor_credential_id"
40387
+ });
40388
+ });
40389
+ ((CreateNewVendorCredentialVersionRequestBody$) => {
40390
+ CreateNewVendorCredentialVersionRequestBody$.inboundSchema = CreateNewVendorCredentialVersionRequestBody$inboundSchema;
40391
+ CreateNewVendorCredentialVersionRequestBody$.outboundSchema = CreateNewVendorCredentialVersionRequestBody$outboundSchema;
40392
+ })(CreateNewVendorCredentialVersionRequestBody$ ||= {});
40393
+ CreateNewVendorCredentialVersionResponseBody$inboundSchema = objectType({
40394
+ id: numberType().int().optional(),
40395
+ success: booleanType().optional()
40396
+ });
40397
+ CreateNewVendorCredentialVersionResponseBody$outboundSchema = objectType({
40398
+ id: numberType().int().optional(),
40399
+ success: booleanType().optional()
40400
+ });
40401
+ ((CreateNewVendorCredentialVersionResponseBody$) => {
40402
+ CreateNewVendorCredentialVersionResponseBody$.inboundSchema = CreateNewVendorCredentialVersionResponseBody$inboundSchema;
40403
+ CreateNewVendorCredentialVersionResponseBody$.outboundSchema = CreateNewVendorCredentialVersionResponseBody$outboundSchema;
40404
+ })(CreateNewVendorCredentialVersionResponseBody$ ||= {});
40405
+ });
40406
+
40407
+ // src/models/operations/createorupdatebcr.ts
40408
+ var DeliveryMethod2, DeliveryMethod$inboundSchema2, DeliveryMethod$outboundSchema2, DeliveryMethod$2, CreateOrUpdateBcrRequestBody$inboundSchema, CreateOrUpdateBcrRequestBody$outboundSchema, CreateOrUpdateBcrRequestBody$, CreateOrUpdateBcrRequest$inboundSchema, CreateOrUpdateBcrRequest$outboundSchema, CreateOrUpdateBcrRequest$;
40409
+ var init_createorupdatebcr = __esm(() => {
40410
+ init_esm();
40411
+ init_primitives();
40412
+ init_components();
40413
+ DeliveryMethod2 = {
40414
+ Email: "email",
40415
+ Mail: "mail"
40416
+ };
40417
+ DeliveryMethod$inboundSchema2 = nativeEnumType(DeliveryMethod2);
40418
+ DeliveryMethod$outboundSchema2 = DeliveryMethod$inboundSchema2;
40419
+ ((DeliveryMethod$) => {
40420
+ DeliveryMethod$.inboundSchema = DeliveryMethod$inboundSchema2;
40421
+ DeliveryMethod$.outboundSchema = DeliveryMethod$outboundSchema2;
40422
+ })(DeliveryMethod$2 ||= {});
40423
+ CreateOrUpdateBcrRequestBody$inboundSchema = objectType({
40424
+ electronic_signature: stringType().optional(),
40425
+ delivery_method: DeliveryMethod$inboundSchema2.optional(),
40426
+ email: stringType().optional(),
40427
+ address1: stringType().optional(),
40428
+ address2: stringType().optional(),
40429
+ city: stringType().optional(),
40430
+ state: nullableType(State$inboundSchema).optional(),
40431
+ zip: stringType().optional()
40432
+ }).transform((v2) => {
40433
+ return remap(v2, {
40434
+ electronic_signature: "electronicSignature",
40435
+ delivery_method: "deliveryMethod"
40436
+ });
40437
+ });
40438
+ CreateOrUpdateBcrRequestBody$outboundSchema = objectType({
40439
+ electronicSignature: stringType().optional(),
40440
+ deliveryMethod: DeliveryMethod$outboundSchema2.optional(),
40441
+ email: stringType().optional(),
40442
+ address1: stringType().optional(),
40443
+ address2: stringType().optional(),
40444
+ city: stringType().optional(),
40445
+ state: nullableType(State$outboundSchema).optional(),
40446
+ zip: stringType().optional()
40447
+ }).transform((v2) => {
40448
+ return remap(v2, {
40449
+ electronicSignature: "electronic_signature",
40450
+ deliveryMethod: "delivery_method"
40451
+ });
40452
+ });
40453
+ ((CreateOrUpdateBcrRequestBody$) => {
40454
+ CreateOrUpdateBcrRequestBody$.inboundSchema = CreateOrUpdateBcrRequestBody$inboundSchema;
40455
+ CreateOrUpdateBcrRequestBody$.outboundSchema = CreateOrUpdateBcrRequestBody$outboundSchema;
40456
+ })(CreateOrUpdateBcrRequestBody$ ||= {});
40457
+ CreateOrUpdateBcrRequest$inboundSchema = objectType({
40458
+ vendor_credential_id: numberType().int(),
40459
+ RequestBody: lazyType(() => CreateOrUpdateBcrRequestBody$inboundSchema)
40460
+ }).transform((v2) => {
40461
+ return remap(v2, {
40462
+ vendor_credential_id: "vendorCredentialId",
40463
+ RequestBody: "requestBody"
40464
+ });
40465
+ });
40466
+ CreateOrUpdateBcrRequest$outboundSchema = objectType({
40467
+ vendorCredentialId: numberType().int(),
40468
+ requestBody: lazyType(() => CreateOrUpdateBcrRequestBody$outboundSchema)
40469
+ }).transform((v2) => {
40470
+ return remap(v2, {
40471
+ vendorCredentialId: "vendor_credential_id",
40472
+ requestBody: "RequestBody"
40473
+ });
40474
+ });
40475
+ ((CreateOrUpdateBcrRequest$) => {
40476
+ CreateOrUpdateBcrRequest$.inboundSchema = CreateOrUpdateBcrRequest$inboundSchema;
40477
+ CreateOrUpdateBcrRequest$.outboundSchema = CreateOrUpdateBcrRequest$outboundSchema;
40478
+ })(CreateOrUpdateBcrRequest$ ||= {});
40479
+ });
40480
+
40368
40481
  // src/models/operations/createvendorcompany.ts
40369
40482
  var CreateVendorCompanyRequestBody$inboundSchema, CreateVendorCompanyRequestBody$outboundSchema, CreateVendorCompanyRequestBody$, CreateVendorCompanyRequest$inboundSchema, CreateVendorCompanyRequest$outboundSchema, CreateVendorCompanyRequest$, CreateVendorCompanyResponseBody$inboundSchema, CreateVendorCompanyResponseBody$outboundSchema, CreateVendorCompanyResponseBody$;
40370
40483
  var init_createvendorcompany = __esm(() => {
@@ -40780,6 +40893,57 @@ var init_getvendorinvoicedetails = __esm(() => {
40780
40893
  })(GetVendorInvoiceDetailsRequest$ ||= {});
40781
40894
  });
40782
40895
 
40896
+ // src/models/operations/getvendorlegalname.ts
40897
+ var GetVendorLegalNameRequest$inboundSchema, GetVendorLegalNameRequest$outboundSchema, GetVendorLegalNameRequest$, GetVendorLegalNameResponseBody$inboundSchema, GetVendorLegalNameResponseBody$outboundSchema, GetVendorLegalNameResponseBody$;
40898
+ var init_getvendorlegalname = __esm(() => {
40899
+ init_esm();
40900
+ init_primitives();
40901
+ GetVendorLegalNameRequest$inboundSchema = objectType({
40902
+ vendor_id_or_me: stringType()
40903
+ }).transform((v2) => {
40904
+ return remap(v2, {
40905
+ vendor_id_or_me: "vendorIdOrMe"
40906
+ });
40907
+ });
40908
+ GetVendorLegalNameRequest$outboundSchema = objectType({
40909
+ vendorIdOrMe: stringType()
40910
+ }).transform((v2) => {
40911
+ return remap(v2, {
40912
+ vendorIdOrMe: "vendor_id_or_me"
40913
+ });
40914
+ });
40915
+ ((GetVendorLegalNameRequest$) => {
40916
+ GetVendorLegalNameRequest$.inboundSchema = GetVendorLegalNameRequest$inboundSchema;
40917
+ GetVendorLegalNameRequest$.outboundSchema = GetVendorLegalNameRequest$outboundSchema;
40918
+ })(GetVendorLegalNameRequest$ ||= {});
40919
+ GetVendorLegalNameResponseBody$inboundSchema = objectType({
40920
+ first_name: stringType().optional(),
40921
+ middle_name: nullableType(stringType()).optional(),
40922
+ last_name: stringType().optional()
40923
+ }).transform((v2) => {
40924
+ return remap(v2, {
40925
+ first_name: "firstName",
40926
+ middle_name: "middleName",
40927
+ last_name: "lastName"
40928
+ });
40929
+ });
40930
+ GetVendorLegalNameResponseBody$outboundSchema = objectType({
40931
+ firstName: stringType().optional(),
40932
+ middleName: nullableType(stringType()).optional(),
40933
+ lastName: stringType().optional()
40934
+ }).transform((v2) => {
40935
+ return remap(v2, {
40936
+ firstName: "first_name",
40937
+ middleName: "middle_name",
40938
+ lastName: "last_name"
40939
+ });
40940
+ });
40941
+ ((GetVendorLegalNameResponseBody$) => {
40942
+ GetVendorLegalNameResponseBody$.inboundSchema = GetVendorLegalNameResponseBody$inboundSchema;
40943
+ GetVendorLegalNameResponseBody$.outboundSchema = GetVendorLegalNameResponseBody$outboundSchema;
40944
+ })(GetVendorLegalNameResponseBody$ ||= {});
40945
+ });
40946
+
40783
40947
  // src/models/operations/getvendorsdetails.ts
40784
40948
  var GetVendorsDetailsRequest$inboundSchema, GetVendorsDetailsRequest$outboundSchema, GetVendorsDetailsRequest$;
40785
40949
  var init_getvendorsdetails = __esm(() => {
@@ -41232,6 +41396,44 @@ var init_listvendoradditionalfacilityfields = __esm(() => {
41232
41396
  })(ListVendorAdditionalFacilityFieldsResponse$ ||= {});
41233
41397
  });
41234
41398
 
41399
+ // src/models/operations/listvendorcredentialdatarequests.ts
41400
+ var ListVendorCredentialDataRequestsRequest$inboundSchema, ListVendorCredentialDataRequestsRequest$outboundSchema, ListVendorCredentialDataRequestsRequest$;
41401
+ var init_listvendorcredentialdatarequests = __esm(() => {
41402
+ init_esm();
41403
+ init_primitives();
41404
+ init_components();
41405
+ ListVendorCredentialDataRequestsRequest$inboundSchema = objectType({
41406
+ sort: nullableType(stringType()).optional(),
41407
+ desc: Desc$inboundSchema.optional(),
41408
+ page: numberType().int().optional(),
41409
+ items_per_page: numberType().int().optional(),
41410
+ vendor_credential_id: numberType().int(),
41411
+ expand: arrayType(Expand$inboundSchema).optional()
41412
+ }).transform((v2) => {
41413
+ return remap(v2, {
41414
+ items_per_page: "itemsPerPage",
41415
+ vendor_credential_id: "vendorCredentialId"
41416
+ });
41417
+ });
41418
+ ListVendorCredentialDataRequestsRequest$outboundSchema = objectType({
41419
+ sort: nullableType(stringType()).optional(),
41420
+ desc: Desc$outboundSchema.optional(),
41421
+ page: numberType().int().optional(),
41422
+ itemsPerPage: numberType().int().optional(),
41423
+ vendorCredentialId: numberType().int(),
41424
+ expand: arrayType(Expand$outboundSchema).optional()
41425
+ }).transform((v2) => {
41426
+ return remap(v2, {
41427
+ itemsPerPage: "items_per_page",
41428
+ vendorCredentialId: "vendor_credential_id"
41429
+ });
41430
+ });
41431
+ ((ListVendorCredentialDataRequestsRequest$) => {
41432
+ ListVendorCredentialDataRequestsRequest$.inboundSchema = ListVendorCredentialDataRequestsRequest$inboundSchema;
41433
+ ListVendorCredentialDataRequestsRequest$.outboundSchema = ListVendorCredentialDataRequestsRequest$outboundSchema;
41434
+ })(ListVendorCredentialDataRequestsRequest$ ||= {});
41435
+ });
41436
+
41235
41437
  // src/models/operations/listvendorcredentialfiles.ts
41236
41438
  var ListVendorCredentialFilesRequest$inboundSchema, ListVendorCredentialFilesRequest$outboundSchema, ListVendorCredentialFilesRequest$;
41237
41439
  var init_listvendorcredentialfiles = __esm(() => {
@@ -42880,6 +43082,8 @@ var init_operations = __esm(() => {
42880
43082
  init_addvendorcredentialfile();
42881
43083
  init_addvendormanagedbycompany();
42882
43084
  init_changepassword();
43085
+ init_createnewvendorcredentialversion();
43086
+ init_createorupdatebcr();
42883
43087
  init_createvendorcompany();
42884
43088
  init_createvendorregistration();
42885
43089
  init_declinevendorcredential();
@@ -42892,6 +43096,7 @@ var init_operations = __esm(() => {
42892
43096
  init_getvendorcredentialdetails();
42893
43097
  init_getvendorcredentialfile();
42894
43098
  init_getvendorinvoicedetails();
43099
+ init_getvendorlegalname();
42895
43100
  init_getvendorsdetails();
42896
43101
  init_getwebhookendpoint();
42897
43102
  init_listallwebhookendpoints();
@@ -42900,6 +43105,7 @@ var init_operations = __esm(() => {
42900
43105
  init_listorsearchsecurityzones();
42901
43106
  init_listorsearchsupportarticles();
42902
43107
  init_listvendoradditionalfacilityfields();
43108
+ init_listvendorcredentialdatarequests();
42903
43109
  init_listvendorcredentialfiles();
42904
43110
  init_listvendorcredentialhistory();
42905
43111
  init_listvendorcredentials();
@@ -44683,24 +44889,18 @@ It scans out vendor from facility`,
44683
44889
  };
44684
44890
  });
44685
44891
 
44686
- // src/funcs/vendorsCreateVendorCompany.ts
44687
- function vendorsCreateVendorCompany(client, request, options) {
44892
+ // src/funcs/vendorsCreateNewVendorCredentialVersion.ts
44893
+ function vendorsCreateNewVendorCredentialVersion(client, request, options) {
44688
44894
  return new APIPromise($do16(client, request, options));
44689
44895
  }
44690
44896
  async function $do16(client, request, options) {
44691
- const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44897
+ const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
44692
44898
  if (!parsed.ok) {
44693
44899
  return [parsed, { status: "invalid" }];
44694
44900
  }
44695
44901
  const payload = parsed.value;
44696
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
44697
- const pathParams = {
44698
- vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
44699
- explode: false,
44700
- charEncoding: "percent"
44701
- })
44702
- };
44703
- const path = pathToFunc("/vendors/{vendor_id_or_me}/company")(pathParams);
44902
+ const body = encodeJSON("body", payload, { explode: true });
44903
+ const path = pathToFunc("/vendors/credentials")();
44704
44904
  const headers = new Headers(compactMap({
44705
44905
  "Content-Type": "application/json",
44706
44906
  Accept: "application/json"
@@ -44709,7 +44909,7 @@ async function $do16(client, request, options) {
44709
44909
  const requestSecurity = resolveGlobalSecurity(securityInput);
44710
44910
  const context = {
44711
44911
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44712
- operationID: "createVendorCompany",
44912
+ operationID: "createNewVendorCredentialVersion",
44713
44913
  oAuth2Scopes: [],
44714
44914
  resolvedSecurity: requestSecurity,
44715
44915
  securitySource: client._options.security,
@@ -44742,13 +44942,13 @@ async function $do16(client, request, options) {
44742
44942
  const responseFields = {
44743
44943
  HttpMeta: { Response: response, Request: req }
44744
44944
  };
44745
- const [result] = await match(json(200, CreateVendorCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44945
+ const [result] = await match(json(200, CreateNewVendorCredentialVersionResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44746
44946
  if (!result.ok) {
44747
44947
  return [result, { status: "complete", request: req, response }];
44748
44948
  }
44749
44949
  return [result, { status: "complete", request: req, response }];
44750
44950
  }
44751
- var init_vendorsCreateVendorCompany = __esm(() => {
44951
+ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
44752
44952
  init_encodings();
44753
44953
  init_matchers();
44754
44954
  init_primitives();
@@ -44760,23 +44960,23 @@ var init_vendorsCreateVendorCompany = __esm(() => {
44760
44960
  init_async();
44761
44961
  });
44762
44962
 
44763
- // src/mcp-server/tools/vendorsCreateVendorCompany.ts
44764
- var args15, tool$vendorsCreateVendorCompany;
44765
- var init_vendorsCreateVendorCompany2 = __esm(() => {
44766
- init_vendorsCreateVendorCompany();
44963
+ // src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
44964
+ var args15, tool$vendorsCreateNewVendorCredentialVersion;
44965
+ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
44966
+ init_vendorsCreateNewVendorCredentialVersion();
44767
44967
  init_operations();
44768
44968
  init_tools();
44769
44969
  args15 = {
44770
- request: CreateVendorCompanyRequest$inboundSchema
44970
+ request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
44771
44971
  };
44772
- tool$vendorsCreateVendorCompany = {
44773
- name: "vendors-create-vendor-company",
44774
- description: `Create vendor company
44972
+ tool$vendorsCreateNewVendorCredentialVersion = {
44973
+ name: "vendors-create-new-vendor-credential-version",
44974
+ description: `Create new vendor credential version
44775
44975
 
44776
- Create vendor company`,
44976
+ It will submit vendor credential`,
44777
44977
  args: args15,
44778
44978
  tool: async (client, args16, ctx) => {
44779
- const [result, apiCall] = await vendorsCreateVendorCompany(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44979
+ const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44780
44980
  if (!result.ok) {
44781
44981
  return {
44782
44982
  content: [{ type: "text", text: result.error.message }],
@@ -44789,32 +44989,38 @@ Create vendor company`,
44789
44989
  };
44790
44990
  });
44791
44991
 
44792
- // src/funcs/vendorsCreateVendorRegistration.ts
44793
- function vendorsCreateVendorRegistration(client, request, options) {
44992
+ // src/funcs/vendorsCreateOrUpdateBcr.ts
44993
+ function vendorsCreateOrUpdateBcr(client, request, options) {
44794
44994
  return new APIPromise($do17(client, request, options));
44795
44995
  }
44796
44996
  async function $do17(client, request, options) {
44797
- const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
44997
+ const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
44798
44998
  if (!parsed.ok) {
44799
44999
  return [parsed, { status: "invalid" }];
44800
45000
  }
44801
45001
  const payload = parsed.value;
44802
- const body = encodeJSON("body", payload, { explode: true });
44803
- const path = pathToFunc("/vendors/registration")();
45002
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
45003
+ const pathParams = {
45004
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45005
+ };
45006
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/bcr")(pathParams);
44804
45007
  const headers = new Headers(compactMap({
44805
45008
  "Content-Type": "application/json",
44806
45009
  Accept: "application/json"
44807
45010
  }));
45011
+ const securityInput = await extractSecurity(client._options.security);
45012
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44808
45013
  const context = {
44809
45014
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44810
- operationID: "createVendorRegistration",
45015
+ operationID: "createOrUpdateBcr",
44811
45016
  oAuth2Scopes: [],
44812
- resolvedSecurity: null,
44813
- securitySource: null,
45017
+ resolvedSecurity: requestSecurity,
45018
+ securitySource: client._options.security,
44814
45019
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
44815
45020
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44816
45021
  };
44817
45022
  const requestRes = client._createRequest(context, {
45023
+ security: requestSecurity,
44818
45024
  method: "POST",
44819
45025
  baseURL: options?.serverURL,
44820
45026
  path,
@@ -44828,7 +45034,7 @@ async function $do17(client, request, options) {
44828
45034
  const req = requestRes.value;
44829
45035
  const doResult = await client._do(req, {
44830
45036
  context,
44831
- errorCodes: ["400", "401", "403", "409", "4XX", "500", "5XX"],
45037
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
44832
45038
  retryConfig: context.retryConfig,
44833
45039
  retryCodes: context.retryCodes
44834
45040
  });
@@ -44839,41 +45045,42 @@ async function $do17(client, request, options) {
44839
45045
  const responseFields = {
44840
45046
  HttpMeta: { Response: response, Request: req }
44841
45047
  };
44842
- const [result] = await match(json(201, User$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45048
+ 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 });
44843
45049
  if (!result.ok) {
44844
45050
  return [result, { status: "complete", request: req, response }];
44845
45051
  }
44846
45052
  return [result, { status: "complete", request: req, response }];
44847
45053
  }
44848
- var init_vendorsCreateVendorRegistration = __esm(() => {
45054
+ var init_vendorsCreateOrUpdateBcr = __esm(() => {
45055
+ init_esm();
44849
45056
  init_encodings();
44850
45057
  init_matchers();
44851
45058
  init_primitives();
44852
45059
  init_schemas();
45060
+ init_security();
44853
45061
  init_url();
44854
- init_components();
44855
45062
  init_errors2();
44856
45063
  init_operations();
44857
45064
  init_async();
44858
45065
  });
44859
45066
 
44860
- // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
44861
- var args16, tool$vendorsCreateVendorRegistration;
44862
- var init_vendorsCreateVendorRegistration2 = __esm(() => {
44863
- init_vendorsCreateVendorRegistration();
45067
+ // src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
45068
+ var args16, tool$vendorsCreateOrUpdateBcr;
45069
+ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
45070
+ init_vendorsCreateOrUpdateBcr();
44864
45071
  init_operations();
44865
45072
  init_tools();
44866
45073
  args16 = {
44867
- request: CreateVendorRegistrationRequestBody$inboundSchema
45074
+ request: CreateOrUpdateBcrRequest$inboundSchema
44868
45075
  };
44869
- tool$vendorsCreateVendorRegistration = {
44870
- name: "vendors-create-vendor-registration",
44871
- description: `Create vendor registration
45076
+ tool$vendorsCreateOrUpdateBcr = {
45077
+ name: "vendors-create-or-update-bcr",
45078
+ description: `Create or update BackgroundCheckResults
44872
45079
 
44873
- Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
45080
+ It will create or update BackgroundCheckResults`,
44874
45081
  args: args16,
44875
45082
  tool: async (client, args17, ctx) => {
44876
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45083
+ const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44877
45084
  if (!result.ok) {
44878
45085
  return {
44879
45086
  content: [{ type: "text", text: result.error.message }],
@@ -44886,29 +45093,33 @@ Create an initial vendor registration. Once successful, the vendor will be able
44886
45093
  };
44887
45094
  });
44888
45095
 
44889
- // src/funcs/vendorsDeclineVendorCredential.ts
44890
- function vendorsDeclineVendorCredential(client, request, options) {
45096
+ // src/funcs/vendorsCreateVendorCompany.ts
45097
+ function vendorsCreateVendorCompany(client, request, options) {
44891
45098
  return new APIPromise($do18(client, request, options));
44892
45099
  }
44893
45100
  async function $do18(client, request, options) {
44894
- const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
45101
+ const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
44895
45102
  if (!parsed.ok) {
44896
45103
  return [parsed, { status: "invalid" }];
44897
45104
  }
44898
45105
  const payload = parsed.value;
44899
- const body = null;
45106
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
44900
45107
  const pathParams = {
44901
- vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45108
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
45109
+ explode: false,
45110
+ charEncoding: "percent"
45111
+ })
44902
45112
  };
44903
- const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/declination")(pathParams);
45113
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/company")(pathParams);
44904
45114
  const headers = new Headers(compactMap({
45115
+ "Content-Type": "application/json",
44905
45116
  Accept: "application/json"
44906
45117
  }));
44907
45118
  const securityInput = await extractSecurity(client._options.security);
44908
45119
  const requestSecurity = resolveGlobalSecurity(securityInput);
44909
45120
  const context = {
44910
45121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44911
- operationID: "declineVendorCredential",
45122
+ operationID: "createVendorCompany",
44912
45123
  oAuth2Scopes: [],
44913
45124
  resolvedSecurity: requestSecurity,
44914
45125
  securitySource: client._options.security,
@@ -44941,14 +45152,13 @@ async function $do18(client, request, options) {
44941
45152
  const responseFields = {
44942
45153
  HttpMeta: { Response: response, Request: req }
44943
45154
  };
44944
- 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 });
45155
+ const [result] = await match(json(200, CreateVendorCompanyResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44945
45156
  if (!result.ok) {
44946
45157
  return [result, { status: "complete", request: req, response }];
44947
45158
  }
44948
45159
  return [result, { status: "complete", request: req, response }];
44949
45160
  }
44950
- var init_vendorsDeclineVendorCredential = __esm(() => {
44951
- init_esm();
45161
+ var init_vendorsCreateVendorCompany = __esm(() => {
44952
45162
  init_encodings();
44953
45163
  init_matchers();
44954
45164
  init_primitives();
@@ -44960,23 +45170,23 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
44960
45170
  init_async();
44961
45171
  });
44962
45172
 
44963
- // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
44964
- var args17, tool$vendorsDeclineVendorCredential;
44965
- var init_vendorsDeclineVendorCredential2 = __esm(() => {
44966
- init_vendorsDeclineVendorCredential();
45173
+ // src/mcp-server/tools/vendorsCreateVendorCompany.ts
45174
+ var args17, tool$vendorsCreateVendorCompany;
45175
+ var init_vendorsCreateVendorCompany2 = __esm(() => {
45176
+ init_vendorsCreateVendorCompany();
44967
45177
  init_operations();
44968
45178
  init_tools();
44969
45179
  args17 = {
44970
- request: DeclineVendorCredentialRequest$inboundSchema
45180
+ request: CreateVendorCompanyRequest$inboundSchema
44971
45181
  };
44972
- tool$vendorsDeclineVendorCredential = {
44973
- name: "vendors-decline-vendor-credential",
44974
- description: `Decline vendor credential
45182
+ tool$vendorsCreateVendorCompany = {
45183
+ name: "vendors-create-vendor-company",
45184
+ description: `Create vendor company
44975
45185
 
44976
- It will decline vendor credential`,
45186
+ Create vendor company`,
44977
45187
  args: args17,
44978
45188
  tool: async (client, args18, ctx) => {
44979
- const [result, apiCall] = await vendorsDeclineVendorCredential(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45189
+ const [result, apiCall] = await vendorsCreateVendorCompany(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44980
45190
  if (!result.ok) {
44981
45191
  return {
44982
45192
  content: [{ type: "text", text: result.error.message }],
@@ -44989,42 +45199,33 @@ It will decline vendor credential`,
44989
45199
  };
44990
45200
  });
44991
45201
 
44992
- // src/funcs/vendorsDeleteVendorCredentialFile.ts
44993
- function vendorsDeleteVendorCredentialFile(client, request, options) {
45202
+ // src/funcs/vendorsCreateVendorRegistration.ts
45203
+ function vendorsCreateVendorRegistration(client, request, options) {
44994
45204
  return new APIPromise($do19(client, request, options));
44995
45205
  }
44996
45206
  async function $do19(client, request, options) {
44997
- const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
45207
+ const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
44998
45208
  if (!parsed.ok) {
44999
45209
  return [parsed, { status: "invalid" }];
45000
45210
  }
45001
45211
  const payload = parsed.value;
45002
- const body = null;
45003
- const pathParams = {
45004
- id: encodeSimple("id", payload.id, {
45005
- explode: false,
45006
- charEncoding: "percent"
45007
- }),
45008
- vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45009
- };
45010
- const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
45212
+ const body = encodeJSON("body", payload, { explode: true });
45213
+ const path = pathToFunc("/vendors/registration")();
45011
45214
  const headers = new Headers(compactMap({
45215
+ "Content-Type": "application/json",
45012
45216
  Accept: "application/json"
45013
45217
  }));
45014
- const securityInput = await extractSecurity(client._options.security);
45015
- const requestSecurity = resolveGlobalSecurity(securityInput);
45016
45218
  const context = {
45017
45219
  baseURL: options?.serverURL ?? client._baseURL ?? "",
45018
- operationID: "deleteVendorCredentialFile",
45220
+ operationID: "createVendorRegistration",
45019
45221
  oAuth2Scopes: [],
45020
- resolvedSecurity: requestSecurity,
45021
- securitySource: client._options.security,
45222
+ resolvedSecurity: null,
45223
+ securitySource: null,
45022
45224
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45023
45225
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45024
45226
  };
45025
45227
  const requestRes = client._createRequest(context, {
45026
- security: requestSecurity,
45027
- method: "DELETE",
45228
+ method: "POST",
45028
45229
  baseURL: options?.serverURL,
45029
45230
  path,
45030
45231
  headers,
@@ -45037,7 +45238,7 @@ async function $do19(client, request, options) {
45037
45238
  const req = requestRes.value;
45038
45239
  const doResult = await client._do(req, {
45039
45240
  context,
45040
- errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
45241
+ errorCodes: ["400", "401", "403", "409", "4XX", "500", "5XX"],
45041
45242
  retryConfig: context.retryConfig,
45042
45243
  retryCodes: context.retryCodes
45043
45244
  });
@@ -45048,42 +45249,41 @@ async function $do19(client, request, options) {
45048
45249
  const responseFields = {
45049
45250
  HttpMeta: { Response: response, Request: req }
45050
45251
  };
45051
- 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 });
45252
+ const [result] = await match(json(201, User$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45052
45253
  if (!result.ok) {
45053
45254
  return [result, { status: "complete", request: req, response }];
45054
45255
  }
45055
45256
  return [result, { status: "complete", request: req, response }];
45056
45257
  }
45057
- var init_vendorsDeleteVendorCredentialFile = __esm(() => {
45058
- init_esm();
45258
+ var init_vendorsCreateVendorRegistration = __esm(() => {
45059
45259
  init_encodings();
45060
45260
  init_matchers();
45061
45261
  init_primitives();
45062
45262
  init_schemas();
45063
- init_security();
45064
45263
  init_url();
45264
+ init_components();
45065
45265
  init_errors2();
45066
45266
  init_operations();
45067
45267
  init_async();
45068
45268
  });
45069
45269
 
45070
- // src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
45071
- var args18, tool$vendorsDeleteVendorCredentialFile;
45072
- var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
45073
- init_vendorsDeleteVendorCredentialFile();
45270
+ // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
45271
+ var args18, tool$vendorsCreateVendorRegistration;
45272
+ var init_vendorsCreateVendorRegistration2 = __esm(() => {
45273
+ init_vendorsCreateVendorRegistration();
45074
45274
  init_operations();
45075
45275
  init_tools();
45076
45276
  args18 = {
45077
- request: DeleteVendorCredentialFileRequest$inboundSchema
45277
+ request: CreateVendorRegistrationRequestBody$inboundSchema
45078
45278
  };
45079
- tool$vendorsDeleteVendorCredentialFile = {
45080
- name: "vendors-delete-vendor-credential-file",
45081
- description: `Delete vendor credential file
45279
+ tool$vendorsCreateVendorRegistration = {
45280
+ name: "vendors-create-vendor-registration",
45281
+ description: `Create vendor registration
45082
45282
 
45083
- It will delete the vendor credential file`,
45283
+ Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
45084
45284
  args: args18,
45085
45285
  tool: async (client, args19, ctx) => {
45086
- const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45286
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45087
45287
  if (!result.ok) {
45088
45288
  return {
45089
45289
  content: [{ type: "text", text: result.error.message }],
@@ -45096,11 +45296,221 @@ It will delete the vendor credential file`,
45096
45296
  };
45097
45297
  });
45098
45298
 
45099
- // src/funcs/vendorsDeleteVendorManagedByCompany.ts
45100
- function vendorsDeleteVendorManagedByCompany(client, request, options) {
45299
+ // src/funcs/vendorsDeclineVendorCredential.ts
45300
+ function vendorsDeclineVendorCredential(client, request, options) {
45101
45301
  return new APIPromise($do20(client, request, options));
45102
45302
  }
45103
45303
  async function $do20(client, request, options) {
45304
+ const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
45305
+ if (!parsed.ok) {
45306
+ return [parsed, { status: "invalid" }];
45307
+ }
45308
+ const payload = parsed.value;
45309
+ const body = null;
45310
+ const pathParams = {
45311
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45312
+ };
45313
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/declination")(pathParams);
45314
+ const headers = new Headers(compactMap({
45315
+ Accept: "application/json"
45316
+ }));
45317
+ const securityInput = await extractSecurity(client._options.security);
45318
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45319
+ const context = {
45320
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45321
+ operationID: "declineVendorCredential",
45322
+ oAuth2Scopes: [],
45323
+ resolvedSecurity: requestSecurity,
45324
+ securitySource: client._options.security,
45325
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45326
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45327
+ };
45328
+ const requestRes = client._createRequest(context, {
45329
+ security: requestSecurity,
45330
+ method: "POST",
45331
+ baseURL: options?.serverURL,
45332
+ path,
45333
+ headers,
45334
+ body,
45335
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45336
+ }, options);
45337
+ if (!requestRes.ok) {
45338
+ return [requestRes, { status: "invalid" }];
45339
+ }
45340
+ const req = requestRes.value;
45341
+ const doResult = await client._do(req, {
45342
+ context,
45343
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
45344
+ retryConfig: context.retryConfig,
45345
+ retryCodes: context.retryCodes
45346
+ });
45347
+ if (!doResult.ok) {
45348
+ return [doResult, { status: "request-error", request: req }];
45349
+ }
45350
+ const response = doResult.value;
45351
+ const responseFields = {
45352
+ HttpMeta: { Response: response, Request: req }
45353
+ };
45354
+ 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 });
45355
+ if (!result.ok) {
45356
+ return [result, { status: "complete", request: req, response }];
45357
+ }
45358
+ return [result, { status: "complete", request: req, response }];
45359
+ }
45360
+ var init_vendorsDeclineVendorCredential = __esm(() => {
45361
+ init_esm();
45362
+ init_encodings();
45363
+ init_matchers();
45364
+ init_primitives();
45365
+ init_schemas();
45366
+ init_security();
45367
+ init_url();
45368
+ init_errors2();
45369
+ init_operations();
45370
+ init_async();
45371
+ });
45372
+
45373
+ // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
45374
+ var args19, tool$vendorsDeclineVendorCredential;
45375
+ var init_vendorsDeclineVendorCredential2 = __esm(() => {
45376
+ init_vendorsDeclineVendorCredential();
45377
+ init_operations();
45378
+ init_tools();
45379
+ args19 = {
45380
+ request: DeclineVendorCredentialRequest$inboundSchema
45381
+ };
45382
+ tool$vendorsDeclineVendorCredential = {
45383
+ name: "vendors-decline-vendor-credential",
45384
+ description: `Decline vendor credential
45385
+
45386
+ It will decline vendor credential`,
45387
+ args: args19,
45388
+ tool: async (client, args20, ctx) => {
45389
+ const [result, apiCall] = await vendorsDeclineVendorCredential(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45390
+ if (!result.ok) {
45391
+ return {
45392
+ content: [{ type: "text", text: result.error.message }],
45393
+ isError: true
45394
+ };
45395
+ }
45396
+ const value = result.value;
45397
+ return formatResult(value, apiCall);
45398
+ }
45399
+ };
45400
+ });
45401
+
45402
+ // src/funcs/vendorsDeleteVendorCredentialFile.ts
45403
+ function vendorsDeleteVendorCredentialFile(client, request, options) {
45404
+ return new APIPromise($do21(client, request, options));
45405
+ }
45406
+ async function $do21(client, request, options) {
45407
+ const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
45408
+ if (!parsed.ok) {
45409
+ return [parsed, { status: "invalid" }];
45410
+ }
45411
+ const payload = parsed.value;
45412
+ const body = null;
45413
+ const pathParams = {
45414
+ id: encodeSimple("id", payload.id, {
45415
+ explode: false,
45416
+ charEncoding: "percent"
45417
+ }),
45418
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
45419
+ };
45420
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
45421
+ const headers = new Headers(compactMap({
45422
+ Accept: "application/json"
45423
+ }));
45424
+ const securityInput = await extractSecurity(client._options.security);
45425
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45426
+ const context = {
45427
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45428
+ operationID: "deleteVendorCredentialFile",
45429
+ oAuth2Scopes: [],
45430
+ resolvedSecurity: requestSecurity,
45431
+ securitySource: client._options.security,
45432
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45433
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45434
+ };
45435
+ const requestRes = client._createRequest(context, {
45436
+ security: requestSecurity,
45437
+ method: "DELETE",
45438
+ baseURL: options?.serverURL,
45439
+ path,
45440
+ headers,
45441
+ body,
45442
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45443
+ }, options);
45444
+ if (!requestRes.ok) {
45445
+ return [requestRes, { status: "invalid" }];
45446
+ }
45447
+ const req = requestRes.value;
45448
+ const doResult = await client._do(req, {
45449
+ context,
45450
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
45451
+ retryConfig: context.retryConfig,
45452
+ retryCodes: context.retryCodes
45453
+ });
45454
+ if (!doResult.ok) {
45455
+ return [doResult, { status: "request-error", request: req }];
45456
+ }
45457
+ const response = doResult.value;
45458
+ const responseFields = {
45459
+ HttpMeta: { Response: response, Request: req }
45460
+ };
45461
+ 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 });
45462
+ if (!result.ok) {
45463
+ return [result, { status: "complete", request: req, response }];
45464
+ }
45465
+ return [result, { status: "complete", request: req, response }];
45466
+ }
45467
+ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
45468
+ init_esm();
45469
+ init_encodings();
45470
+ init_matchers();
45471
+ init_primitives();
45472
+ init_schemas();
45473
+ init_security();
45474
+ init_url();
45475
+ init_errors2();
45476
+ init_operations();
45477
+ init_async();
45478
+ });
45479
+
45480
+ // src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
45481
+ var args20, tool$vendorsDeleteVendorCredentialFile;
45482
+ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
45483
+ init_vendorsDeleteVendorCredentialFile();
45484
+ init_operations();
45485
+ init_tools();
45486
+ args20 = {
45487
+ request: DeleteVendorCredentialFileRequest$inboundSchema
45488
+ };
45489
+ tool$vendorsDeleteVendorCredentialFile = {
45490
+ name: "vendors-delete-vendor-credential-file",
45491
+ description: `Delete vendor credential file
45492
+
45493
+ It will delete the vendor credential file`,
45494
+ args: args20,
45495
+ tool: async (client, args21, ctx) => {
45496
+ const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45497
+ if (!result.ok) {
45498
+ return {
45499
+ content: [{ type: "text", text: result.error.message }],
45500
+ isError: true
45501
+ };
45502
+ }
45503
+ const value = result.value;
45504
+ return formatResult(value, apiCall);
45505
+ }
45506
+ };
45507
+ });
45508
+
45509
+ // src/funcs/vendorsDeleteVendorManagedByCompany.ts
45510
+ function vendorsDeleteVendorManagedByCompany(client, request, options) {
45511
+ return new APIPromise($do22(client, request, options));
45512
+ }
45513
+ async function $do22(client, request, options) {
45104
45514
  const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
45105
45515
  if (!parsed.ok) {
45106
45516
  return [parsed, { status: "invalid" }];
@@ -45174,12 +45584,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
45174
45584
  });
45175
45585
 
45176
45586
  // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
45177
- var args19, tool$vendorsDeleteVendorManagedByCompany;
45587
+ var args21, tool$vendorsDeleteVendorManagedByCompany;
45178
45588
  var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
45179
45589
  init_vendorsDeleteVendorManagedByCompany();
45180
45590
  init_operations();
45181
45591
  init_tools();
45182
- args19 = {
45592
+ args21 = {
45183
45593
  request: DeleteVendorManagedByCompanyRequest$inboundSchema
45184
45594
  };
45185
45595
  tool$vendorsDeleteVendorManagedByCompany = {
@@ -45187,9 +45597,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
45187
45597
  description: `Delete vendor managed by company
45188
45598
 
45189
45599
  It will delete the vendor managed by company`,
45190
- args: args19,
45191
- tool: async (client, args20, ctx) => {
45192
- const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45600
+ args: args21,
45601
+ tool: async (client, args22, ctx) => {
45602
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45193
45603
  if (!result.ok) {
45194
45604
  return {
45195
45605
  content: [{ type: "text", text: result.error.message }],
@@ -45204,9 +45614,9 @@ It will delete the vendor managed by company`,
45204
45614
 
45205
45615
  // src/funcs/vendorsExpediteTimeRemaining.ts
45206
45616
  function vendorsExpediteTimeRemaining(client, request, options) {
45207
- return new APIPromise($do21(client, request, options));
45617
+ return new APIPromise($do23(client, request, options));
45208
45618
  }
45209
- async function $do21(client, request, options) {
45619
+ async function $do23(client, request, options) {
45210
45620
  const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
45211
45621
  if (!parsed.ok) {
45212
45622
  return [parsed, { status: "invalid" }];
@@ -45279,12 +45689,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
45279
45689
  });
45280
45690
 
45281
45691
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
45282
- var args20, tool$vendorsExpediteTimeRemaining;
45692
+ var args22, tool$vendorsExpediteTimeRemaining;
45283
45693
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
45284
45694
  init_vendorsExpediteTimeRemaining();
45285
45695
  init_operations();
45286
45696
  init_tools();
45287
- args20 = {
45697
+ args22 = {
45288
45698
  request: ExpediteTimeRemainingRequest$inboundSchema
45289
45699
  };
45290
45700
  tool$vendorsExpediteTimeRemaining = {
@@ -45292,9 +45702,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
45292
45702
  description: `Expedite time remaining
45293
45703
 
45294
45704
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
45295
- args: args20,
45296
- tool: async (client, args21, ctx) => {
45297
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45705
+ args: args22,
45706
+ tool: async (client, args23, ctx) => {
45707
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45298
45708
  if (!result.ok) {
45299
45709
  return {
45300
45710
  content: [{ type: "text", text: result.error.message }],
@@ -45309,9 +45719,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
45309
45719
 
45310
45720
  // src/funcs/vendorsGetVendorCredentialDetails.ts
45311
45721
  function vendorsGetVendorCredentialDetails(client, request, options) {
45312
- return new APIPromise($do22(client, request, options));
45722
+ return new APIPromise($do24(client, request, options));
45313
45723
  }
45314
- async function $do22(client, request, options) {
45724
+ async function $do24(client, request, options) {
45315
45725
  const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45316
45726
  if (!parsed.ok) {
45317
45727
  return [parsed, { status: "invalid" }];
@@ -45392,12 +45802,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
45392
45802
  });
45393
45803
 
45394
45804
  // src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
45395
- var args21, tool$vendorsGetVendorCredentialDetails;
45805
+ var args23, tool$vendorsGetVendorCredentialDetails;
45396
45806
  var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
45397
45807
  init_vendorsGetVendorCredentialDetails();
45398
45808
  init_operations();
45399
45809
  init_tools();
45400
- args21 = {
45810
+ args23 = {
45401
45811
  request: GetVendorCredentialDetailsRequest$inboundSchema
45402
45812
  };
45403
45813
  tool$vendorsGetVendorCredentialDetails = {
@@ -45422,9 +45832,9 @@ Available \`expand\` scopes are:
45422
45832
  - vendor_credential.vendor_credential_data_requests
45423
45833
  - vendor_credential.credential_variants
45424
45834
  - vendor_credential.targets_chop`,
45425
- args: args21,
45426
- tool: async (client, args22, ctx) => {
45427
- const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45835
+ args: args23,
45836
+ tool: async (client, args24, ctx) => {
45837
+ const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45428
45838
  if (!result.ok) {
45429
45839
  return {
45430
45840
  content: [{ type: "text", text: result.error.message }],
@@ -45439,9 +45849,9 @@ Available \`expand\` scopes are:
45439
45849
 
45440
45850
  // src/funcs/vendorsGetVendorCredentialFile.ts
45441
45851
  function vendorsGetVendorCredentialFile(client, request, options) {
45442
- return new APIPromise($do23(client, request, options));
45852
+ return new APIPromise($do25(client, request, options));
45443
45853
  }
45444
- async function $do23(client, request, options) {
45854
+ async function $do25(client, request, options) {
45445
45855
  const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
45446
45856
  if (!parsed.ok) {
45447
45857
  return [parsed, { status: "invalid" }];
@@ -45520,12 +45930,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
45520
45930
  });
45521
45931
 
45522
45932
  // src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
45523
- var args22, tool$vendorsGetVendorCredentialFile;
45933
+ var args24, tool$vendorsGetVendorCredentialFile;
45524
45934
  var init_vendorsGetVendorCredentialFile2 = __esm(() => {
45525
45935
  init_vendorsGetVendorCredentialFile();
45526
45936
  init_operations();
45527
45937
  init_tools();
45528
- args22 = {
45938
+ args24 = {
45529
45939
  request: GetVendorCredentialFileRequest$inboundSchema
45530
45940
  };
45531
45941
  tool$vendorsGetVendorCredentialFile = {
@@ -45538,9 +45948,9 @@ Available \`expand\` scopes are:
45538
45948
 
45539
45949
  - vendor_credential_file.vendor_credential
45540
45950
  - vendor_credential_file.credential_document`,
45541
- args: args22,
45542
- tool: async (client, args23, ctx) => {
45543
- const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45951
+ args: args24,
45952
+ tool: async (client, args25, ctx) => {
45953
+ const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45544
45954
  if (!result.ok) {
45545
45955
  return {
45546
45956
  content: [{ type: "text", text: result.error.message }],
@@ -45555,9 +45965,9 @@ Available \`expand\` scopes are:
45555
45965
 
45556
45966
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
45557
45967
  function vendorsGetVendorInvoiceDetails(client, request, options) {
45558
- return new APIPromise($do24(client, request, options));
45968
+ return new APIPromise($do26(client, request, options));
45559
45969
  }
45560
- async function $do24(client, request, options) {
45970
+ async function $do26(client, request, options) {
45561
45971
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45562
45972
  if (!parsed.ok) {
45563
45973
  return [parsed, { status: "invalid" }];
@@ -45635,12 +46045,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
45635
46045
  });
45636
46046
 
45637
46047
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
45638
- var args23, tool$vendorsGetVendorInvoiceDetails;
46048
+ var args25, tool$vendorsGetVendorInvoiceDetails;
45639
46049
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
45640
46050
  init_vendorsGetVendorInvoiceDetails();
45641
46051
  init_operations();
45642
46052
  init_tools();
45643
- args23 = {
46053
+ args25 = {
45644
46054
  request: GetVendorInvoiceDetailsRequest$inboundSchema
45645
46055
  };
45646
46056
  tool$vendorsGetVendorInvoiceDetails = {
@@ -45653,9 +46063,114 @@ Available \`expand\` scopes are:
45653
46063
 
45654
46064
  invoice.line_items
45655
46065
  invoice.invoice_transactions`,
45656
- args: args23,
45657
- tool: async (client, args24, ctx) => {
45658
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46066
+ args: args25,
46067
+ tool: async (client, args26, ctx) => {
46068
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46069
+ if (!result.ok) {
46070
+ return {
46071
+ content: [{ type: "text", text: result.error.message }],
46072
+ isError: true
46073
+ };
46074
+ }
46075
+ const value = result.value;
46076
+ return formatResult(value, apiCall);
46077
+ }
46078
+ };
46079
+ });
46080
+
46081
+ // src/funcs/vendorsGetVendorLegalName.ts
46082
+ function vendorsGetVendorLegalName(client, request, options) {
46083
+ return new APIPromise($do27(client, request, options));
46084
+ }
46085
+ async function $do27(client, request, options) {
46086
+ const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
46087
+ if (!parsed.ok) {
46088
+ return [parsed, { status: "invalid" }];
46089
+ }
46090
+ const payload = parsed.value;
46091
+ const body = null;
46092
+ const pathParams = {
46093
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
46094
+ explode: false,
46095
+ charEncoding: "percent"
46096
+ })
46097
+ };
46098
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/legal-name")(pathParams);
46099
+ const headers = new Headers(compactMap({
46100
+ Accept: "application/json"
46101
+ }));
46102
+ const securityInput = await extractSecurity(client._options.security);
46103
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46104
+ const context = {
46105
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46106
+ operationID: "getVendorLegalName",
46107
+ oAuth2Scopes: [],
46108
+ resolvedSecurity: requestSecurity,
46109
+ securitySource: client._options.security,
46110
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46111
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46112
+ };
46113
+ const requestRes = client._createRequest(context, {
46114
+ security: requestSecurity,
46115
+ method: "GET",
46116
+ baseURL: options?.serverURL,
46117
+ path,
46118
+ headers,
46119
+ body,
46120
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46121
+ }, options);
46122
+ if (!requestRes.ok) {
46123
+ return [requestRes, { status: "invalid" }];
46124
+ }
46125
+ const req = requestRes.value;
46126
+ const doResult = await client._do(req, {
46127
+ context,
46128
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
46129
+ retryConfig: context.retryConfig,
46130
+ retryCodes: context.retryCodes
46131
+ });
46132
+ if (!doResult.ok) {
46133
+ return [doResult, { status: "request-error", request: req }];
46134
+ }
46135
+ const response = doResult.value;
46136
+ const responseFields = {
46137
+ HttpMeta: { Response: response, Request: req }
46138
+ };
46139
+ const [result] = await match(json(200, GetVendorLegalNameResponseBody$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
46140
+ if (!result.ok) {
46141
+ return [result, { status: "complete", request: req, response }];
46142
+ }
46143
+ return [result, { status: "complete", request: req, response }];
46144
+ }
46145
+ var init_vendorsGetVendorLegalName = __esm(() => {
46146
+ init_encodings();
46147
+ init_matchers();
46148
+ init_primitives();
46149
+ init_schemas();
46150
+ init_security();
46151
+ init_url();
46152
+ init_errors2();
46153
+ init_operations();
46154
+ init_async();
46155
+ });
46156
+
46157
+ // src/mcp-server/tools/vendorsGetVendorLegalName.ts
46158
+ var args26, tool$vendorsGetVendorLegalName;
46159
+ var init_vendorsGetVendorLegalName2 = __esm(() => {
46160
+ init_vendorsGetVendorLegalName();
46161
+ init_operations();
46162
+ init_tools();
46163
+ args26 = {
46164
+ request: GetVendorLegalNameRequest$inboundSchema
46165
+ };
46166
+ tool$vendorsGetVendorLegalName = {
46167
+ name: "vendors-get-vendor-legal-name",
46168
+ description: `Get Vendor legal name
46169
+
46170
+ Get vendor legal name`,
46171
+ args: args26,
46172
+ tool: async (client, args27, ctx) => {
46173
+ const [result, apiCall] = await vendorsGetVendorLegalName(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45659
46174
  if (!result.ok) {
45660
46175
  return {
45661
46176
  content: [{ type: "text", text: result.error.message }],
@@ -45670,9 +46185,9 @@ invoice.invoice_transactions`,
45670
46185
 
45671
46186
  // src/funcs/vendorsGetVendorsDetails.ts
45672
46187
  function vendorsGetVendorsDetails(client, request, options) {
45673
- return new APIPromise($do25(client, request, options));
46188
+ return new APIPromise($do28(client, request, options));
45674
46189
  }
45675
- async function $do25(client, request, options) {
46190
+ async function $do28(client, request, options) {
45676
46191
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
45677
46192
  if (!parsed.ok) {
45678
46193
  return [parsed, { status: "invalid" }];
@@ -45750,12 +46265,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
45750
46265
  });
45751
46266
 
45752
46267
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
45753
- var args24, tool$vendorsGetVendorsDetails;
46268
+ var args27, tool$vendorsGetVendorsDetails;
45754
46269
  var init_vendorsGetVendorsDetails2 = __esm(() => {
45755
46270
  init_vendorsGetVendorsDetails();
45756
46271
  init_operations();
45757
46272
  init_tools();
45758
- args24 = {
46273
+ args27 = {
45759
46274
  request: GetVendorsDetailsRequest$inboundSchema
45760
46275
  };
45761
46276
  tool$vendorsGetVendorsDetails = {
@@ -45780,9 +46295,9 @@ vendor.payment_responsibility
45780
46295
  vendor.background_check_date_expires
45781
46296
  vendor.registration_data
45782
46297
  vendor.registration_finished`,
45783
- args: args24,
45784
- tool: async (client, args25, ctx) => {
45785
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46298
+ args: args27,
46299
+ tool: async (client, args28, ctx) => {
46300
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45786
46301
  if (!result.ok) {
45787
46302
  return {
45788
46303
  content: [{ type: "text", text: result.error.message }],
@@ -45797,9 +46312,9 @@ vendor.registration_finished`,
45797
46312
 
45798
46313
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
45799
46314
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
45800
- return new APIPromise($do26(client, request, options));
46315
+ return new APIPromise($do29(client, request, options));
45801
46316
  }
45802
- async function $do26(client, request, options) {
46317
+ async function $do29(client, request, options) {
45803
46318
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
45804
46319
  if (!parsed.ok) {
45805
46320
  return [haltIterator(parsed), { status: "invalid" }];
@@ -45868,70 +46383,188 @@ async function $do26(client, request, options) {
45868
46383
  response
45869
46384
  }];
45870
46385
  }
45871
- const nextFunc = (responseData) => {
45872
- const page2 = request?.page ?? 1;
45873
- const nextPage = page2 + 1;
45874
- if (!responseData) {
45875
- return { next: () => null };
45876
- }
45877
- const results = dlv(responseData, "items");
45878
- if (!Array.isArray(results) || !results.length) {
45879
- return { next: () => null };
45880
- }
45881
- const limit = request?.itemsPerPage ?? 0;
45882
- if (results.length < limit) {
45883
- return { next: () => null };
45884
- }
45885
- const nextVal = () => vendorsListVendorAdditionalFacilityFields(client, {
45886
- ...request,
45887
- page: nextPage
45888
- }, options);
45889
- return { next: nextVal, "~next": { page: nextPage } };
46386
+ const nextFunc = (responseData) => {
46387
+ const page2 = request?.page ?? 1;
46388
+ const nextPage = page2 + 1;
46389
+ if (!responseData) {
46390
+ return { next: () => null };
46391
+ }
46392
+ const results = dlv(responseData, "items");
46393
+ if (!Array.isArray(results) || !results.length) {
46394
+ return { next: () => null };
46395
+ }
46396
+ const limit = request?.itemsPerPage ?? 0;
46397
+ if (results.length < limit) {
46398
+ return { next: () => null };
46399
+ }
46400
+ const nextVal = () => vendorsListVendorAdditionalFacilityFields(client, {
46401
+ ...request,
46402
+ page: nextPage
46403
+ }, options);
46404
+ return { next: nextVal, "~next": { page: nextPage } };
46405
+ };
46406
+ const page = { ...result, ...nextFunc(raw) };
46407
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
46408
+ status: "complete",
46409
+ request: req,
46410
+ response
46411
+ }];
46412
+ }
46413
+ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
46414
+ init_encodings();
46415
+ init_matchers();
46416
+ init_primitives();
46417
+ init_schemas();
46418
+ init_security();
46419
+ init_url();
46420
+ init_errors2();
46421
+ init_operations();
46422
+ init_async();
46423
+ init_operations2();
46424
+ });
46425
+
46426
+ // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
46427
+ var args28, tool$vendorsListVendorAdditionalFacilityFields;
46428
+ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
46429
+ init_vendorsListVendorAdditionalFacilityFields();
46430
+ init_operations();
46431
+ init_tools();
46432
+ args28 = {
46433
+ request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
46434
+ };
46435
+ tool$vendorsListVendorAdditionalFacilityFields = {
46436
+ name: "vendors-list-vendor-additional-facility-fields",
46437
+ description: `List of vendor's additional facility fields
46438
+
46439
+ List of vendor's additional facility fields`,
46440
+ args: args28,
46441
+ tool: async (client, args29, ctx) => {
46442
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46443
+ if (!result.ok) {
46444
+ return {
46445
+ content: [{ type: "text", text: result.error.message }],
46446
+ isError: true
46447
+ };
46448
+ }
46449
+ const value = result.value.result;
46450
+ return formatResult(value, apiCall);
46451
+ }
46452
+ };
46453
+ });
46454
+
46455
+ // src/funcs/vendorsListVendorCredentialDataRequests.ts
46456
+ function vendorsListVendorCredentialDataRequests(client, request, options) {
46457
+ return new APIPromise($do30(client, request, options));
46458
+ }
46459
+ async function $do30(client, request, options) {
46460
+ const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
46461
+ if (!parsed.ok) {
46462
+ return [parsed, { status: "invalid" }];
46463
+ }
46464
+ const payload = parsed.value;
46465
+ const body = null;
46466
+ const pathParams = {
46467
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
46468
+ };
46469
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/data_requests")(pathParams);
46470
+ const query = queryJoin(encodeFormQuery({
46471
+ expand: payload.expand
46472
+ }, { explode: false }), encodeFormQuery({
46473
+ desc: payload.desc,
46474
+ items_per_page: payload.items_per_page,
46475
+ page: payload.page,
46476
+ sort: payload.sort
46477
+ }));
46478
+ const headers = new Headers(compactMap({
46479
+ Accept: "application/json"
46480
+ }));
46481
+ const securityInput = await extractSecurity(client._options.security);
46482
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46483
+ const context = {
46484
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46485
+ operationID: "listVendorCredentialDataRequests",
46486
+ oAuth2Scopes: [],
46487
+ resolvedSecurity: requestSecurity,
46488
+ securitySource: client._options.security,
46489
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46490
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46491
+ };
46492
+ const requestRes = client._createRequest(context, {
46493
+ security: requestSecurity,
46494
+ method: "GET",
46495
+ baseURL: options?.serverURL,
46496
+ path,
46497
+ headers,
46498
+ query,
46499
+ body,
46500
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46501
+ }, options);
46502
+ if (!requestRes.ok) {
46503
+ return [requestRes, { status: "invalid" }];
46504
+ }
46505
+ const req = requestRes.value;
46506
+ const doResult = await client._do(req, {
46507
+ context,
46508
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
46509
+ retryConfig: context.retryConfig,
46510
+ retryCodes: context.retryCodes
46511
+ });
46512
+ if (!doResult.ok) {
46513
+ return [doResult, { status: "request-error", request: req }];
46514
+ }
46515
+ const response = doResult.value;
46516
+ const responseFields = {
46517
+ HttpMeta: { Response: response, Request: req }
45890
46518
  };
45891
- const page = { ...result, ...nextFunc(raw) };
45892
- return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
45893
- status: "complete",
45894
- request: req,
45895
- response
45896
- }];
46519
+ const [result] = await match(json(200, arrayType(nullableType(VendorCredentialDataRequest$inboundSchema))), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
46520
+ if (!result.ok) {
46521
+ return [result, { status: "complete", request: req, response }];
46522
+ }
46523
+ return [result, { status: "complete", request: req, response }];
45897
46524
  }
45898
- var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
46525
+ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
46526
+ init_esm();
45899
46527
  init_encodings();
45900
46528
  init_matchers();
45901
46529
  init_primitives();
45902
46530
  init_schemas();
45903
46531
  init_security();
45904
46532
  init_url();
46533
+ init_components();
45905
46534
  init_errors2();
45906
46535
  init_operations();
45907
46536
  init_async();
45908
- init_operations2();
45909
46537
  });
45910
46538
 
45911
- // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
45912
- var args25, tool$vendorsListVendorAdditionalFacilityFields;
45913
- var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
45914
- init_vendorsListVendorAdditionalFacilityFields();
46539
+ // src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
46540
+ var args29, tool$vendorsListVendorCredentialDataRequests;
46541
+ var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
46542
+ init_vendorsListVendorCredentialDataRequests();
45915
46543
  init_operations();
45916
46544
  init_tools();
45917
- args25 = {
45918
- request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
46545
+ args29 = {
46546
+ request: ListVendorCredentialDataRequestsRequest$inboundSchema
45919
46547
  };
45920
- tool$vendorsListVendorAdditionalFacilityFields = {
45921
- name: "vendors-list-vendor-additional-facility-fields",
45922
- description: `List of vendor's additional facility fields
46548
+ tool$vendorsListVendorCredentialDataRequests = {
46549
+ name: "vendors-list-vendor-credential-data-requests",
46550
+ description: `List vendor credential data requests
45923
46551
 
45924
- List of vendor's additional facility fields`,
45925
- args: args25,
45926
- tool: async (client, args26, ctx) => {
45927
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46552
+ Retrieve an vendor credential data requests.
46553
+
46554
+ Available \`expand\` scopes are:
46555
+
46556
+ - vendor_credential_data_request.vendor_credential
46557
+ - vendor_credential_data_request.data_request`,
46558
+ args: args29,
46559
+ tool: async (client, args30, ctx) => {
46560
+ const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45928
46561
  if (!result.ok) {
45929
46562
  return {
45930
46563
  content: [{ type: "text", text: result.error.message }],
45931
46564
  isError: true
45932
46565
  };
45933
46566
  }
45934
- const value = result.value.result;
46567
+ const value = result.value;
45935
46568
  return formatResult(value, apiCall);
45936
46569
  }
45937
46570
  };
@@ -45939,9 +46572,9 @@ List of vendor's additional facility fields`,
45939
46572
 
45940
46573
  // src/funcs/vendorsListVendorCredentialFiles.ts
45941
46574
  function vendorsListVendorCredentialFiles(client, request, options) {
45942
- return new APIPromise($do27(client, request, options));
46575
+ return new APIPromise($do31(client, request, options));
45943
46576
  }
45944
- async function $do27(client, request, options) {
46577
+ async function $do31(client, request, options) {
45945
46578
  const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
45946
46579
  if (!parsed.ok) {
45947
46580
  return [parsed, { status: "invalid" }];
@@ -46022,12 +46655,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
46022
46655
  });
46023
46656
 
46024
46657
  // src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
46025
- var args26, tool$vendorsListVendorCredentialFiles;
46658
+ var args30, tool$vendorsListVendorCredentialFiles;
46026
46659
  var init_vendorsListVendorCredentialFiles2 = __esm(() => {
46027
46660
  init_vendorsListVendorCredentialFiles();
46028
46661
  init_operations();
46029
46662
  init_tools();
46030
- args26 = {
46663
+ args30 = {
46031
46664
  request: ListVendorCredentialFilesRequest$inboundSchema
46032
46665
  };
46033
46666
  tool$vendorsListVendorCredentialFiles = {
@@ -46040,9 +46673,9 @@ Available \`expand\` scopes are:
46040
46673
 
46041
46674
  - vendor_credential_file.vendor_credential
46042
46675
  - vendor_credential_file.credential_document`,
46043
- args: args26,
46044
- tool: async (client, args27, ctx) => {
46045
- const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46676
+ args: args30,
46677
+ tool: async (client, args31, ctx) => {
46678
+ const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46046
46679
  if (!result.ok) {
46047
46680
  return {
46048
46681
  content: [{ type: "text", text: result.error.message }],
@@ -46057,9 +46690,9 @@ Available \`expand\` scopes are:
46057
46690
 
46058
46691
  // src/funcs/vendorsListVendorCredentialHistory.ts
46059
46692
  function vendorsListVendorCredentialHistory(client, request, options) {
46060
- return new APIPromise($do28(client, request, options));
46693
+ return new APIPromise($do32(client, request, options));
46061
46694
  }
46062
- async function $do28(client, request, options) {
46695
+ async function $do32(client, request, options) {
46063
46696
  const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
46064
46697
  if (!parsed.ok) {
46065
46698
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46172,12 +46805,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
46172
46805
  });
46173
46806
 
46174
46807
  // src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
46175
- var args27, tool$vendorsListVendorCredentialHistory;
46808
+ var args31, tool$vendorsListVendorCredentialHistory;
46176
46809
  var init_vendorsListVendorCredentialHistory2 = __esm(() => {
46177
46810
  init_vendorsListVendorCredentialHistory();
46178
46811
  init_operations();
46179
46812
  init_tools();
46180
- args27 = {
46813
+ args31 = {
46181
46814
  request: ListVendorCredentialHistoryRequest$inboundSchema
46182
46815
  };
46183
46816
  tool$vendorsListVendorCredentialHistory = {
@@ -46185,9 +46818,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
46185
46818
  description: `List Vendor Credential History
46186
46819
 
46187
46820
  Lists vendor credentials history`,
46188
- args: args27,
46189
- tool: async (client, args28, ctx) => {
46190
- const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46821
+ args: args31,
46822
+ tool: async (client, args32, ctx) => {
46823
+ const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46191
46824
  if (!result.ok) {
46192
46825
  return {
46193
46826
  content: [{ type: "text", text: result.error.message }],
@@ -46202,9 +46835,9 @@ Lists vendor credentials history`,
46202
46835
 
46203
46836
  // src/funcs/vendorsListVendorCredentials.ts
46204
46837
  function vendorsListVendorCredentials(client, request, options) {
46205
- return new APIPromise($do29(client, request, options));
46838
+ return new APIPromise($do33(client, request, options));
46206
46839
  }
46207
- async function $do29(client, request, options) {
46840
+ async function $do33(client, request, options) {
46208
46841
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
46209
46842
  if (!parsed.ok) {
46210
46843
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46322,12 +46955,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
46322
46955
  });
46323
46956
 
46324
46957
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
46325
- var args28, tool$vendorsListVendorCredentials;
46958
+ var args32, tool$vendorsListVendorCredentials;
46326
46959
  var init_vendorsListVendorCredentials2 = __esm(() => {
46327
46960
  init_vendorsListVendorCredentials();
46328
46961
  init_operations();
46329
46962
  init_tools();
46330
- args28 = {
46963
+ args32 = {
46331
46964
  request: ListVendorCredentialsRequest$inboundSchema
46332
46965
  };
46333
46966
  tool$vendorsListVendorCredentials = {
@@ -46335,9 +46968,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
46335
46968
  description: `List Vendor Credentials
46336
46969
 
46337
46970
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
46338
- args: args28,
46339
- tool: async (client, args29, ctx) => {
46340
- const [result, apiCall] = await vendorsListVendorCredentials(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46971
+ args: args32,
46972
+ tool: async (client, args33, ctx) => {
46973
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46341
46974
  if (!result.ok) {
46342
46975
  return {
46343
46976
  content: [{ type: "text", text: result.error.message }],
@@ -46352,9 +46985,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
46352
46985
 
46353
46986
  // src/funcs/vendorsListVendorCredits.ts
46354
46987
  function vendorsListVendorCredits(client, request, options) {
46355
- return new APIPromise($do30(client, request, options));
46988
+ return new APIPromise($do34(client, request, options));
46356
46989
  }
46357
- async function $do30(client, request, options) {
46990
+ async function $do34(client, request, options) {
46358
46991
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
46359
46992
  if (!parsed.ok) {
46360
46993
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46466,12 +47099,12 @@ var init_vendorsListVendorCredits = __esm(() => {
46466
47099
  });
46467
47100
 
46468
47101
  // src/mcp-server/tools/vendorsListVendorCredits.ts
46469
- var args29, tool$vendorsListVendorCredits;
47102
+ var args33, tool$vendorsListVendorCredits;
46470
47103
  var init_vendorsListVendorCredits2 = __esm(() => {
46471
47104
  init_vendorsListVendorCredits();
46472
47105
  init_operations();
46473
47106
  init_tools();
46474
- args29 = {
47107
+ args33 = {
46475
47108
  request: ListVendorCreditsRequest$inboundSchema
46476
47109
  };
46477
47110
  tool$vendorsListVendorCredits = {
@@ -46479,9 +47112,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
46479
47112
  description: `List vendor credits
46480
47113
 
46481
47114
  List the credits for the vendor`,
46482
- args: args29,
46483
- tool: async (client, args30, ctx) => {
46484
- const [result, apiCall] = await vendorsListVendorCredits(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47115
+ args: args33,
47116
+ tool: async (client, args34, ctx) => {
47117
+ const [result, apiCall] = await vendorsListVendorCredits(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46485
47118
  if (!result.ok) {
46486
47119
  return {
46487
47120
  content: [{ type: "text", text: result.error.message }],
@@ -46496,9 +47129,9 @@ List the credits for the vendor`,
46496
47129
 
46497
47130
  // src/funcs/vendorsListVendorFacilityStatuses.ts
46498
47131
  function vendorsListVendorFacilityStatuses(client, request, options) {
46499
- return new APIPromise($do31(client, request, options));
47132
+ return new APIPromise($do35(client, request, options));
46500
47133
  }
46501
- async function $do31(client, request, options) {
47134
+ async function $do35(client, request, options) {
46502
47135
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
46503
47136
  if (!parsed.ok) {
46504
47137
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46606,12 +47239,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
46606
47239
  });
46607
47240
 
46608
47241
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
46609
- var args30, tool$vendorsListVendorFacilityStatuses;
47242
+ var args34, tool$vendorsListVendorFacilityStatuses;
46610
47243
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
46611
47244
  init_vendorsListVendorFacilityStatuses();
46612
47245
  init_operations();
46613
47246
  init_tools();
46614
- args30 = {
47247
+ args34 = {
46615
47248
  request: ListVendorFacilityStatusesRequest$inboundSchema
46616
47249
  };
46617
47250
  tool$vendorsListVendorFacilityStatuses = {
@@ -46619,9 +47252,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
46619
47252
  description: `List vendor facility statuses
46620
47253
 
46621
47254
  List the facilities for the vendor`,
46622
- args: args30,
46623
- tool: async (client, args31, ctx) => {
46624
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47255
+ args: args34,
47256
+ tool: async (client, args35, ctx) => {
47257
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46625
47258
  if (!result.ok) {
46626
47259
  return {
46627
47260
  content: [{ type: "text", text: result.error.message }],
@@ -46636,9 +47269,9 @@ List the facilities for the vendor`,
46636
47269
 
46637
47270
  // src/funcs/vendorsListVendorInvoices.ts
46638
47271
  function vendorsListVendorInvoices(client, request, options) {
46639
- return new APIPromise($do32(client, request, options));
47272
+ return new APIPromise($do36(client, request, options));
46640
47273
  }
46641
- async function $do32(client, request, options) {
47274
+ async function $do36(client, request, options) {
46642
47275
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
46643
47276
  if (!parsed.ok) {
46644
47277
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46754,12 +47387,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
46754
47387
  });
46755
47388
 
46756
47389
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
46757
- var args31, tool$vendorsListVendorInvoices;
47390
+ var args35, tool$vendorsListVendorInvoices;
46758
47391
  var init_vendorsListVendorInvoices2 = __esm(() => {
46759
47392
  init_vendorsListVendorInvoices();
46760
47393
  init_operations();
46761
47394
  init_tools();
46762
- args31 = {
47395
+ args35 = {
46763
47396
  request: ListVendorInvoicesRequest$inboundSchema
46764
47397
  };
46765
47398
  tool$vendorsListVendorInvoices = {
@@ -46771,9 +47404,9 @@ List invoices for Vendors
46771
47404
  Available \`expand\` scopes are:
46772
47405
 
46773
47406
  invoice.line_items`,
46774
- args: args31,
46775
- tool: async (client, args32, ctx) => {
46776
- const [result, apiCall] = await vendorsListVendorInvoices(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47407
+ args: args35,
47408
+ tool: async (client, args36, ctx) => {
47409
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46777
47410
  if (!result.ok) {
46778
47411
  return {
46779
47412
  content: [{ type: "text", text: result.error.message }],
@@ -46788,9 +47421,9 @@ invoice.line_items`,
46788
47421
 
46789
47422
  // src/funcs/vendorsListVendorJobTitles.ts
46790
47423
  function vendorsListVendorJobTitles(client, request, options) {
46791
- return new APIPromise($do33(client, request, options));
47424
+ return new APIPromise($do37(client, request, options));
46792
47425
  }
46793
- async function $do33(client, request, options) {
47426
+ async function $do37(client, request, options) {
46794
47427
  const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
46795
47428
  if (!parsed.ok) {
46796
47429
  return [haltIterator(parsed), { status: "invalid" }];
@@ -46897,12 +47530,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
46897
47530
  });
46898
47531
 
46899
47532
  // src/mcp-server/tools/vendorsListVendorJobTitles.ts
46900
- var args32, tool$vendorsListVendorJobTitles;
47533
+ var args36, tool$vendorsListVendorJobTitles;
46901
47534
  var init_vendorsListVendorJobTitles2 = __esm(() => {
46902
47535
  init_vendorsListVendorJobTitles();
46903
47536
  init_operations();
46904
47537
  init_tools();
46905
- args32 = {
47538
+ args36 = {
46906
47539
  request: ListVendorJobTitlesRequest$inboundSchema
46907
47540
  };
46908
47541
  tool$vendorsListVendorJobTitles = {
@@ -46910,9 +47543,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
46910
47543
  description: `List vendor job titles
46911
47544
 
46912
47545
  List valid job titles for Vendors. This can be used during sign up or in a filter.`,
46913
- args: args32,
46914
- tool: async (client, args33, ctx) => {
46915
- const [result, apiCall] = await vendorsListVendorJobTitles(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47546
+ args: args36,
47547
+ tool: async (client, args37, ctx) => {
47548
+ const [result, apiCall] = await vendorsListVendorJobTitles(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46916
47549
  if (!result.ok) {
46917
47550
  return {
46918
47551
  content: [{ type: "text", text: result.error.message }],
@@ -46927,9 +47560,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
46927
47560
 
46928
47561
  // src/funcs/vendorsListVendorManagedByCompanies.ts
46929
47562
  function vendorsListVendorManagedByCompanies(client, request, options) {
46930
- return new APIPromise($do34(client, request, options));
47563
+ return new APIPromise($do38(client, request, options));
46931
47564
  }
46932
- async function $do34(client, request, options) {
47565
+ async function $do38(client, request, options) {
46933
47566
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
46934
47567
  if (!parsed.ok) {
46935
47568
  return [haltIterator(parsed), { status: "invalid" }];
@@ -47041,12 +47674,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
47041
47674
  });
47042
47675
 
47043
47676
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
47044
- var args33, tool$vendorsListVendorManagedByCompanies;
47677
+ var args37, tool$vendorsListVendorManagedByCompanies;
47045
47678
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
47046
47679
  init_vendorsListVendorManagedByCompanies();
47047
47680
  init_operations();
47048
47681
  init_tools();
47049
- args33 = {
47682
+ args37 = {
47050
47683
  request: ListVendorManagedByCompaniesRequest$inboundSchema
47051
47684
  };
47052
47685
  tool$vendorsListVendorManagedByCompanies = {
@@ -47054,9 +47687,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
47054
47687
  description: `List of companies managing the vendor
47055
47688
 
47056
47689
  List of companies managing the vendor`,
47057
- args: args33,
47058
- tool: async (client, args34, ctx) => {
47059
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47690
+ args: args37,
47691
+ tool: async (client, args38, ctx) => {
47692
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47060
47693
  if (!result.ok) {
47061
47694
  return {
47062
47695
  content: [{ type: "text", text: result.error.message }],
@@ -47071,9 +47704,9 @@ List of companies managing the vendor`,
47071
47704
 
47072
47705
  // src/funcs/vendorsListVendorScrubDetails.ts
47073
47706
  function vendorsListVendorScrubDetails(client, request, options) {
47074
- return new APIPromise($do35(client, request, options));
47707
+ return new APIPromise($do39(client, request, options));
47075
47708
  }
47076
- async function $do35(client, request, options) {
47709
+ async function $do39(client, request, options) {
47077
47710
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
47078
47711
  if (!parsed.ok) {
47079
47712
  return [parsed, { status: "invalid" }];
@@ -47147,12 +47780,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
47147
47780
  });
47148
47781
 
47149
47782
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
47150
- var args34, tool$vendorsListVendorScrubDetails;
47783
+ var args38, tool$vendorsListVendorScrubDetails;
47151
47784
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
47152
47785
  init_vendorsListVendorScrubDetails();
47153
47786
  init_operations();
47154
47787
  init_tools();
47155
- args34 = {
47788
+ args38 = {
47156
47789
  request: ListVendorScrubDetailsRequest$inboundSchema
47157
47790
  };
47158
47791
  tool$vendorsListVendorScrubDetails = {
@@ -47160,9 +47793,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
47160
47793
  description: `List vendor scrub details
47161
47794
 
47162
47795
  List vendor scrub details`,
47163
- args: args34,
47164
- tool: async (client, args35, ctx) => {
47165
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47796
+ args: args38,
47797
+ tool: async (client, args39, ctx) => {
47798
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47166
47799
  if (!result.ok) {
47167
47800
  return {
47168
47801
  content: [{ type: "text", text: result.error.message }],
@@ -47177,9 +47810,9 @@ List vendor scrub details`,
47177
47810
 
47178
47811
  // src/funcs/vendorsListVendorScrubPackages.ts
47179
47812
  function vendorsListVendorScrubPackages(client, request, options) {
47180
- return new APIPromise($do36(client, request, options));
47813
+ return new APIPromise($do40(client, request, options));
47181
47814
  }
47182
- async function $do36(client, request, options) {
47815
+ async function $do40(client, request, options) {
47183
47816
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
47184
47817
  if (!parsed.ok) {
47185
47818
  return [haltIterator(parsed), { status: "invalid" }];
@@ -47291,12 +47924,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
47291
47924
  });
47292
47925
 
47293
47926
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
47294
- var args35, tool$vendorsListVendorScrubPackages;
47927
+ var args39, tool$vendorsListVendorScrubPackages;
47295
47928
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
47296
47929
  init_vendorsListVendorScrubPackages();
47297
47930
  init_operations();
47298
47931
  init_tools();
47299
- args35 = {
47932
+ args39 = {
47300
47933
  request: ListVendorScrubPackagesRequest$inboundSchema
47301
47934
  };
47302
47935
  tool$vendorsListVendorScrubPackages = {
@@ -47304,9 +47937,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
47304
47937
  description: `List vendor scrub packages
47305
47938
 
47306
47939
  List vendor scrub packages`,
47307
- args: args35,
47308
- tool: async (client, args36, ctx) => {
47309
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47940
+ args: args39,
47941
+ tool: async (client, args40, ctx) => {
47942
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47310
47943
  if (!result.ok) {
47311
47944
  return {
47312
47945
  content: [{ type: "text", text: result.error.message }],
@@ -47321,9 +47954,9 @@ List vendor scrub packages`,
47321
47954
 
47322
47955
  // src/funcs/vendorsListVendorScrubPurchases.ts
47323
47956
  function vendorsListVendorScrubPurchases(client, request, options) {
47324
- return new APIPromise($do37(client, request, options));
47957
+ return new APIPromise($do41(client, request, options));
47325
47958
  }
47326
- async function $do37(client, request, options) {
47959
+ async function $do41(client, request, options) {
47327
47960
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
47328
47961
  if (!parsed.ok) {
47329
47962
  return [haltIterator(parsed), { status: "invalid" }];
@@ -47435,12 +48068,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
47435
48068
  });
47436
48069
 
47437
48070
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
47438
- var args36, tool$vendorsListVendorScrubPurchases;
48071
+ var args40, tool$vendorsListVendorScrubPurchases;
47439
48072
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
47440
48073
  init_vendorsListVendorScrubPurchases();
47441
48074
  init_operations();
47442
48075
  init_tools();
47443
- args36 = {
48076
+ args40 = {
47444
48077
  request: ListVendorScrubPurchasesRequest$inboundSchema
47445
48078
  };
47446
48079
  tool$vendorsListVendorScrubPurchases = {
@@ -47448,9 +48081,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
47448
48081
  description: `List vendor scrub purchases
47449
48082
 
47450
48083
  List vendor scrub purchases`,
47451
- args: args36,
47452
- tool: async (client, args37, ctx) => {
47453
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48084
+ args: args40,
48085
+ tool: async (client, args41, ctx) => {
48086
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47454
48087
  if (!result.ok) {
47455
48088
  return {
47456
48089
  content: [{ type: "text", text: result.error.message }],
@@ -47465,9 +48098,9 @@ List vendor scrub purchases`,
47465
48098
 
47466
48099
  // src/funcs/vendorsPurchaseScrubCredits.ts
47467
48100
  function vendorsPurchaseScrubCredits(client, request, options) {
47468
- return new APIPromise($do38(client, request, options));
48101
+ return new APIPromise($do42(client, request, options));
47469
48102
  }
47470
- async function $do38(client, request, options) {
48103
+ async function $do42(client, request, options) {
47471
48104
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
47472
48105
  if (!parsed.ok) {
47473
48106
  return [parsed, { status: "invalid" }];
@@ -47541,12 +48174,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
47541
48174
  });
47542
48175
 
47543
48176
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
47544
- var args37, tool$vendorsPurchaseScrubCredits;
48177
+ var args41, tool$vendorsPurchaseScrubCredits;
47545
48178
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
47546
48179
  init_vendorsPurchaseScrubCredits();
47547
48180
  init_operations();
47548
48181
  init_tools();
47549
- args37 = {
48182
+ args41 = {
47550
48183
  request: PurchaseScrubCreditsRequest$inboundSchema
47551
48184
  };
47552
48185
  tool$vendorsPurchaseScrubCredits = {
@@ -47554,9 +48187,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
47554
48187
  description: `Purchase scrub credits
47555
48188
 
47556
48189
  Purchase scrub credits`,
47557
- args: args37,
47558
- tool: async (client, args38, ctx) => {
47559
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48190
+ args: args41,
48191
+ tool: async (client, args42, ctx) => {
48192
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47560
48193
  if (!result.ok) {
47561
48194
  return {
47562
48195
  content: [{ type: "text", text: result.error.message }],
@@ -47571,9 +48204,9 @@ Purchase scrub credits`,
47571
48204
 
47572
48205
  // src/funcs/vendorsSubmitVendorCredential.ts
47573
48206
  function vendorsSubmitVendorCredential(client, request, options) {
47574
- return new APIPromise($do39(client, request, options));
48207
+ return new APIPromise($do43(client, request, options));
47575
48208
  }
47576
- async function $do39(client, request, options) {
48209
+ async function $do43(client, request, options) {
47577
48210
  const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
47578
48211
  if (!parsed.ok) {
47579
48212
  return [parsed, { status: "invalid" }];
@@ -47645,12 +48278,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
47645
48278
  });
47646
48279
 
47647
48280
  // src/mcp-server/tools/vendorsSubmitVendorCredential.ts
47648
- var args38, tool$vendorsSubmitVendorCredential;
48281
+ var args42, tool$vendorsSubmitVendorCredential;
47649
48282
  var init_vendorsSubmitVendorCredential2 = __esm(() => {
47650
48283
  init_vendorsSubmitVendorCredential();
47651
48284
  init_operations();
47652
48285
  init_tools();
47653
- args38 = {
48286
+ args42 = {
47654
48287
  request: SubmitVendorCredentialRequest$inboundSchema
47655
48288
  };
47656
48289
  tool$vendorsSubmitVendorCredential = {
@@ -47658,9 +48291,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
47658
48291
  description: `Submit vendor credential
47659
48292
 
47660
48293
  It will submit vendor credential`,
47661
- args: args38,
47662
- tool: async (client, args39, ctx) => {
47663
- const [result, apiCall] = await vendorsSubmitVendorCredential(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48294
+ args: args42,
48295
+ tool: async (client, args43, ctx) => {
48296
+ const [result, apiCall] = await vendorsSubmitVendorCredential(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47664
48297
  if (!result.ok) {
47665
48298
  return {
47666
48299
  content: [{ type: "text", text: result.error.message }],
@@ -47675,9 +48308,9 @@ It will submit vendor credential`,
47675
48308
 
47676
48309
  // src/funcs/vendorsUpdateVendorCredentialFile.ts
47677
48310
  function vendorsUpdateVendorCredentialFile(client, request, options) {
47678
- return new APIPromise($do40(client, request, options));
48311
+ return new APIPromise($do44(client, request, options));
47679
48312
  }
47680
- async function $do40(client, request, options) {
48313
+ async function $do44(client, request, options) {
47681
48314
  const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
47682
48315
  if (!parsed.ok) {
47683
48316
  return [parsed, { status: "invalid" }];
@@ -47753,12 +48386,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
47753
48386
  });
47754
48387
 
47755
48388
  // src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
47756
- var args39, tool$vendorsUpdateVendorCredentialFile;
48389
+ var args43, tool$vendorsUpdateVendorCredentialFile;
47757
48390
  var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
47758
48391
  init_vendorsUpdateVendorCredentialFile();
47759
48392
  init_operations();
47760
48393
  init_tools();
47761
- args39 = {
48394
+ args43 = {
47762
48395
  request: UpdateVendorCredentialFileRequest$inboundSchema
47763
48396
  };
47764
48397
  tool$vendorsUpdateVendorCredentialFile = {
@@ -47766,9 +48399,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
47766
48399
  description: `Update vendor credential file
47767
48400
 
47768
48401
  It will update the vendor credential file properties`,
47769
- args: args39,
47770
- tool: async (client, args40, ctx) => {
47771
- const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48402
+ args: args43,
48403
+ tool: async (client, args44, ctx) => {
48404
+ const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47772
48405
  if (!result.ok) {
47773
48406
  return {
47774
48407
  content: [{ type: "text", text: result.error.message }],
@@ -47783,9 +48416,9 @@ It will update the vendor credential file properties`,
47783
48416
 
47784
48417
  // src/funcs/vendorsUpdateVendorDetails.ts
47785
48418
  function vendorsUpdateVendorDetails(client, request, options) {
47786
- return new APIPromise($do41(client, request, options));
48419
+ return new APIPromise($do45(client, request, options));
47787
48420
  }
47788
- async function $do41(client, request, options) {
48421
+ async function $do45(client, request, options) {
47789
48422
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
47790
48423
  if (!parsed.ok) {
47791
48424
  return [parsed, { status: "invalid" }];
@@ -47860,12 +48493,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
47860
48493
  });
47861
48494
 
47862
48495
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
47863
- var args40, tool$vendorsUpdateVendorDetails;
48496
+ var args44, tool$vendorsUpdateVendorDetails;
47864
48497
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
47865
48498
  init_vendorsUpdateVendorDetails();
47866
48499
  init_operations();
47867
48500
  init_tools();
47868
- args40 = {
48501
+ args44 = {
47869
48502
  request: UpdateVendorDetailsRequest$inboundSchema
47870
48503
  };
47871
48504
  tool$vendorsUpdateVendorDetails = {
@@ -47873,9 +48506,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
47873
48506
  description: `Update vendor details
47874
48507
 
47875
48508
  It will update the vendor details`,
47876
- args: args40,
47877
- tool: async (client, args41, ctx) => {
47878
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48509
+ args: args44,
48510
+ tool: async (client, args45, ctx) => {
48511
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47879
48512
  if (!result.ok) {
47880
48513
  return {
47881
48514
  content: [{ type: "text", text: result.error.message }],
@@ -47890,9 +48523,9 @@ It will update the vendor details`,
47890
48523
 
47891
48524
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
47892
48525
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
47893
- return new APIPromise($do42(client, request, options));
48526
+ return new APIPromise($do46(client, request, options));
47894
48527
  }
47895
- async function $do42(client, request, options) {
48528
+ async function $do46(client, request, options) {
47896
48529
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
47897
48530
  if (!parsed.ok) {
47898
48531
  return [parsed, { status: "invalid" }];
@@ -47966,12 +48599,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
47966
48599
  });
47967
48600
 
47968
48601
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
47969
- var args41, tool$vendorsUpdateVendorManagedByCompany;
48602
+ var args45, tool$vendorsUpdateVendorManagedByCompany;
47970
48603
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
47971
48604
  init_vendorsUpdateVendorManagedByCompany();
47972
48605
  init_operations();
47973
48606
  init_tools();
47974
- args41 = {
48607
+ args45 = {
47975
48608
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
47976
48609
  };
47977
48610
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -47979,9 +48612,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
47979
48612
  description: `Update vendor managed by company access rights
47980
48613
 
47981
48614
  It will update the vendor managed by company access rights`,
47982
- args: args41,
47983
- tool: async (client, args42, ctx) => {
47984
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48615
+ args: args45,
48616
+ tool: async (client, args46, ctx) => {
48617
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47985
48618
  if (!result.ok) {
47986
48619
  return {
47987
48620
  content: [{ type: "text", text: result.error.message }],
@@ -47996,9 +48629,9 @@ It will update the vendor managed by company access rights`,
47996
48629
 
47997
48630
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
47998
48631
  function vendorsUpdateVendorScrubDetails(client, request, options) {
47999
- return new APIPromise($do43(client, request, options));
48632
+ return new APIPromise($do47(client, request, options));
48000
48633
  }
48001
- async function $do43(client, request, options) {
48634
+ async function $do47(client, request, options) {
48002
48635
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
48003
48636
  if (!parsed.ok) {
48004
48637
  return [parsed, { status: "invalid" }];
@@ -48073,12 +48706,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
48073
48706
  });
48074
48707
 
48075
48708
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
48076
- var args42, tool$vendorsUpdateVendorScrubDetails;
48709
+ var args46, tool$vendorsUpdateVendorScrubDetails;
48077
48710
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
48078
48711
  init_vendorsUpdateVendorScrubDetails();
48079
48712
  init_operations();
48080
48713
  init_tools();
48081
- args42 = {
48714
+ args46 = {
48082
48715
  request: UpdateVendorScrubDetailsRequest$inboundSchema
48083
48716
  };
48084
48717
  tool$vendorsUpdateVendorScrubDetails = {
@@ -48086,9 +48719,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
48086
48719
  description: `Update vendor scrub details
48087
48720
 
48088
48721
  Update vendor scrub details`,
48089
- args: args42,
48090
- tool: async (client, args43, ctx) => {
48091
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48722
+ args: args46,
48723
+ tool: async (client, args47, ctx) => {
48724
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48092
48725
  if (!result.ok) {
48093
48726
  return {
48094
48727
  content: [{ type: "text", text: result.error.message }],
@@ -48103,9 +48736,9 @@ Update vendor scrub details`,
48103
48736
 
48104
48737
  // src/funcs/webhooksGetWebhookEndpoint.ts
48105
48738
  function webhooksGetWebhookEndpoint(client, request, options) {
48106
- return new APIPromise($do44(client, request, options));
48739
+ return new APIPromise($do48(client, request, options));
48107
48740
  }
48108
- async function $do44(client, request, options) {
48741
+ async function $do48(client, request, options) {
48109
48742
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
48110
48743
  if (!parsed.ok) {
48111
48744
  return [parsed, { status: "invalid" }];
@@ -48179,12 +48812,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
48179
48812
  });
48180
48813
 
48181
48814
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
48182
- var args43, tool$webhooksGetWebhookEndpoint;
48815
+ var args47, tool$webhooksGetWebhookEndpoint;
48183
48816
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
48184
48817
  init_webhooksGetWebhookEndpoint();
48185
48818
  init_operations();
48186
48819
  init_tools();
48187
- args43 = {
48820
+ args47 = {
48188
48821
  request: GetWebhookEndpointRequest$inboundSchema
48189
48822
  };
48190
48823
  tool$webhooksGetWebhookEndpoint = {
@@ -48192,9 +48825,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
48192
48825
  description: `Retrieves the webhook endpoint with the given ID.
48193
48826
 
48194
48827
  Returns the definition of a webhook endpoint by ID.`,
48195
- args: args43,
48196
- tool: async (client, args44, ctx) => {
48197
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48828
+ args: args47,
48829
+ tool: async (client, args48, ctx) => {
48830
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48198
48831
  if (!result.ok) {
48199
48832
  return {
48200
48833
  content: [{ type: "text", text: result.error.message }],
@@ -48209,9 +48842,9 @@ Returns the definition of a webhook endpoint by ID.`,
48209
48842
 
48210
48843
  // src/funcs/webhooksListAllWebhookEndpoints.ts
48211
48844
  function webhooksListAllWebhookEndpoints(client, request, options) {
48212
- return new APIPromise($do45(client, request, options));
48845
+ return new APIPromise($do49(client, request, options));
48213
48846
  }
48214
- async function $do45(client, request, options) {
48847
+ async function $do49(client, request, options) {
48215
48848
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
48216
48849
  if (!parsed.ok) {
48217
48850
  return [parsed, { status: "invalid" }];
@@ -48285,12 +48918,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
48285
48918
  });
48286
48919
 
48287
48920
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
48288
- var args44, tool$webhooksListAllWebhookEndpoints;
48921
+ var args48, tool$webhooksListAllWebhookEndpoints;
48289
48922
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
48290
48923
  init_webhooksListAllWebhookEndpoints();
48291
48924
  init_operations();
48292
48925
  init_tools();
48293
- args44 = {
48926
+ args48 = {
48294
48927
  request: ListAllWebhookEndpointsRequest$inboundSchema
48295
48928
  };
48296
48929
  tool$webhooksListAllWebhookEndpoints = {
@@ -48298,9 +48931,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
48298
48931
  description: `List all webhook endpoints
48299
48932
 
48300
48933
  Returns a list of your webhook endpoints.`,
48301
- args: args44,
48302
- tool: async (client, args45, ctx) => {
48303
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48934
+ args: args48,
48935
+ tool: async (client, args49, ctx) => {
48936
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48304
48937
  if (!result.ok) {
48305
48938
  return {
48306
48939
  content: [{ type: "text", text: result.error.message }],
@@ -48315,9 +48948,9 @@ Returns a list of your webhook endpoints.`,
48315
48948
 
48316
48949
  // src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
48317
48950
  function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
48318
- return new APIPromise($do46(client, request, options));
48951
+ return new APIPromise($do50(client, request, options));
48319
48952
  }
48320
- async function $do46(client, request, options) {
48953
+ async function $do50(client, request, options) {
48321
48954
  const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
48322
48955
  if (!parsed.ok) {
48323
48956
  return [parsed, { status: "invalid" }];
@@ -48392,12 +49025,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
48392
49025
  });
48393
49026
 
48394
49027
  // src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
48395
- var args45, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
49028
+ var args49, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
48396
49029
  var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
48397
49030
  init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
48398
49031
  init_operations();
48399
49032
  init_tools();
48400
- args45 = {
49033
+ args49 = {
48401
49034
  request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
48402
49035
  };
48403
49036
  tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
@@ -48405,9 +49038,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
48405
49038
  description: `Updates the webhook endpoint with the given ID.
48406
49039
 
48407
49040
  Updates the webhook endpoint with the given ID.`,
48408
- args: args45,
48409
- tool: async (client, args46, ctx) => {
48410
- const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49041
+ args: args49,
49042
+ tool: async (client, args50, ctx) => {
49043
+ const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48411
49044
  if (!result.ok) {
48412
49045
  return {
48413
49046
  content: [{ type: "text", text: result.error.message }],
@@ -48422,9 +49055,9 @@ Updates the webhook endpoint with the given ID.`,
48422
49055
 
48423
49056
  // src/funcs/zonesListOrSearchSecurityZones.ts
48424
49057
  function zonesListOrSearchSecurityZones(client, request, options) {
48425
- return new APIPromise($do47(client, request, options));
49058
+ return new APIPromise($do51(client, request, options));
48426
49059
  }
48427
- async function $do47(client, request, options) {
49060
+ async function $do51(client, request, options) {
48428
49061
  const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
48429
49062
  if (!parsed.ok) {
48430
49063
  return [haltIterator(parsed), { status: "invalid" }];
@@ -48536,12 +49169,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
48536
49169
  });
48537
49170
 
48538
49171
  // src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
48539
- var args46, tool$zonesListOrSearchSecurityZones;
49172
+ var args50, tool$zonesListOrSearchSecurityZones;
48540
49173
  var init_zonesListOrSearchSecurityZones2 = __esm(() => {
48541
49174
  init_zonesListOrSearchSecurityZones();
48542
49175
  init_operations();
48543
49176
  init_tools();
48544
- args46 = {
49177
+ args50 = {
48545
49178
  request: ListOrSearchSecurityZonesRequest$inboundSchema
48546
49179
  };
48547
49180
  tool$zonesListOrSearchSecurityZones = {
@@ -48549,9 +49182,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
48549
49182
  description: `List or search security zones
48550
49183
 
48551
49184
  List or search security zones`,
48552
- args: args46,
48553
- tool: async (client, args47, ctx) => {
48554
- const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49185
+ args: args50,
49186
+ tool: async (client, args51, ctx) => {
49187
+ const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48555
49188
  if (!result.ok) {
48556
49189
  return {
48557
49190
  content: [{ type: "text", text: result.error.message }],
@@ -48566,9 +49199,9 @@ List or search security zones`,
48566
49199
 
48567
49200
  // src/funcs/zonesSecurityZoneCheckin.ts
48568
49201
  function zonesSecurityZoneCheckin(client, request, options) {
48569
- return new APIPromise($do48(client, request, options));
49202
+ return new APIPromise($do52(client, request, options));
48570
49203
  }
48571
- async function $do48(client, request, options) {
49204
+ async function $do52(client, request, options) {
48572
49205
  const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
48573
49206
  if (!parsed.ok) {
48574
49207
  return [parsed, { status: "invalid" }];
@@ -48636,12 +49269,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
48636
49269
  });
48637
49270
 
48638
49271
  // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
48639
- var args47, tool$zonesSecurityZoneCheckin;
49272
+ var args51, tool$zonesSecurityZoneCheckin;
48640
49273
  var init_zonesSecurityZoneCheckin2 = __esm(() => {
48641
49274
  init_zonesSecurityZoneCheckin();
48642
49275
  init_operations();
48643
49276
  init_tools();
48644
- args47 = {
49277
+ args51 = {
48645
49278
  request: SecurityZoneCheckinRequestBody$inboundSchema
48646
49279
  };
48647
49280
  tool$zonesSecurityZoneCheckin = {
@@ -48649,9 +49282,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
48649
49282
  description: `Security zone checkin request
48650
49283
 
48651
49284
  Security zone checkin request`,
48652
- args: args47,
48653
- tool: async (client, args48, ctx) => {
48654
- const [result, apiCall] = await zonesSecurityZoneCheckin(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49285
+ args: args51,
49286
+ tool: async (client, args52, ctx) => {
49287
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48655
49288
  if (!result.ok) {
48656
49289
  return {
48657
49290
  content: [{ type: "text", text: result.error.message }],
@@ -48668,7 +49301,7 @@ Security zone checkin request`,
48668
49301
  function createMCPServer(deps) {
48669
49302
  const server = new McpServer({
48670
49303
  name: "GreenSecurity",
48671
- version: "0.31.15"
49304
+ version: "0.34.1"
48672
49305
  });
48673
49306
  const client = new GreenSecurityCore({
48674
49307
  security: deps.security,
@@ -48689,11 +49322,15 @@ function createMCPServer(deps) {
48689
49322
  tool(tool$vendorsGetVendorCredentialFile);
48690
49323
  tool(tool$vendorsUpdateVendorCredentialFile);
48691
49324
  tool(tool$vendorsDeleteVendorCredentialFile);
49325
+ tool(tool$vendorsGetVendorLegalName);
48692
49326
  tool(tool$vendorsDeclineVendorCredential);
48693
49327
  tool(tool$vendorsListVendorCredentialFiles);
48694
49328
  tool(tool$vendorsAddVendorCredentialFile);
48695
49329
  tool(tool$vendorsSubmitVendorCredential);
49330
+ tool(tool$vendorsCreateOrUpdateBcr);
49331
+ tool(tool$vendorsCreateNewVendorCredentialVersion);
48696
49332
  tool(tool$vendorsListVendorCredentialHistory);
49333
+ tool(tool$vendorsListVendorCredentialDataRequests);
48697
49334
  tool(tool$vendorsExpediteTimeRemaining);
48698
49335
  tool(tool$vendorsListVendorInvoices);
48699
49336
  tool(tool$vendorsGetVendorInvoiceDetails);
@@ -48752,6 +49389,8 @@ var init_server2 = __esm(() => {
48752
49389
  init_vendorsAddVendorCredentialFile2();
48753
49390
  init_vendorsAddVendorManagedByCompany2();
48754
49391
  init_vendorScansVendorScanOut2();
49392
+ init_vendorsCreateNewVendorCredentialVersion2();
49393
+ init_vendorsCreateOrUpdateBcr2();
48755
49394
  init_vendorsCreateVendorCompany2();
48756
49395
  init_vendorsCreateVendorRegistration2();
48757
49396
  init_vendorsDeclineVendorCredential2();
@@ -48761,8 +49400,10 @@ var init_server2 = __esm(() => {
48761
49400
  init_vendorsGetVendorCredentialDetails2();
48762
49401
  init_vendorsGetVendorCredentialFile2();
48763
49402
  init_vendorsGetVendorInvoiceDetails2();
49403
+ init_vendorsGetVendorLegalName2();
48764
49404
  init_vendorsGetVendorsDetails2();
48765
49405
  init_vendorsListVendorAdditionalFacilityFields2();
49406
+ init_vendorsListVendorCredentialDataRequests2();
48766
49407
  init_vendorsListVendorCredentialFiles2();
48767
49408
  init_vendorsListVendorCredentialHistory2();
48768
49409
  init_vendorsListVendorCredentials2();
@@ -49989,7 +50630,7 @@ var routes = an({
49989
50630
  var app = He(routes, {
49990
50631
  name: "mcp",
49991
50632
  versionInfo: {
49992
- currentVersion: "0.31.15"
50633
+ currentVersion: "0.34.1"
49993
50634
  }
49994
50635
  });
49995
50636
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -49997,5 +50638,5 @@ export {
49997
50638
  app
49998
50639
  };
49999
50640
 
50000
- //# debugId=CBA051DA1A23015E64756E2164756E21
50641
+ //# debugId=5566DF4098E2F63664756E2164756E21
50001
50642
  //# sourceMappingURL=mcp-server.js.map