@greensecurity/javascript-sdk 0.34.1 → 0.35.3
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.
- package/FUNCTIONS.md +5 -22
- package/README.md +56 -57
- package/bin/mcp-server.js +1369 -517
- package/bin/mcp-server.js.map +76 -61
- package/dist/commonjs/__tests__/datarequests.test.d.ts +2 -0
- package/dist/commonjs/__tests__/datarequests.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/datarequests.test.js +56 -0
- package/dist/commonjs/__tests__/datarequests.test.js.map +1 -0
- package/dist/commonjs/__tests__/vendors.test.js +37 -13
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +5 -59
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.js +3 -3
- package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
- package/dist/commonjs/funcs/companiesListOrSearchCompanies.d.ts +1 -1
- package/dist/commonjs/funcs/companiesListOrSearchCompanies.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesListOrSearchCompanies.js +2 -0
- package/dist/commonjs/funcs/companiesListOrSearchCompanies.js.map +1 -1
- package/dist/commonjs/funcs/dataRequestsAddDataRequestFile.d.ts +17 -0
- package/dist/commonjs/funcs/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/funcs/dataRequestsAddDataRequestFile.js +124 -0
- package/dist/commonjs/funcs/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/commonjs/funcs/dataRequestsDeleteDataRequestFile.d.ts +17 -0
- package/dist/commonjs/funcs/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/funcs/dataRequestsDeleteDataRequestFile.js +123 -0
- package/dist/commonjs/funcs/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/commonjs/funcs/dataRequestsUpdateDataRequest.d.ts +17 -0
- package/dist/commonjs/funcs/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/commonjs/funcs/dataRequestsUpdateDataRequest.js +124 -0
- package/dist/commonjs/funcs/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.js +2 -0
- package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +2 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js +2 -0
- package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js.map +1 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts +1 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js +2 -0
- package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
- package/dist/commonjs/funcs/usersChangePassword.d.ts +1 -1
- package/dist/commonjs/funcs/usersChangePassword.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersChangePassword.js +2 -0
- package/dist/commonjs/funcs/usersChangePassword.js.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.js +2 -0
- package/dist/commonjs/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/commonjs/funcs/usersGetUserById.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetUserById.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetUserById.js +2 -0
- package/dist/commonjs/funcs/usersGetUserById.js.map +1 -1
- package/dist/commonjs/funcs/usersMagiclink.d.ts +1 -1
- package/dist/commonjs/funcs/usersMagiclink.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersMagiclink.js +2 -0
- package/dist/commonjs/funcs/usersMagiclink.js.map +1 -1
- package/dist/commonjs/funcs/usersPassword.d.ts +1 -1
- package/dist/commonjs/funcs/usersPassword.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPassword.js +2 -0
- package/dist/commonjs/funcs/usersPassword.js.map +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPasswordResetRequest.js +2 -0
- package/dist/commonjs/funcs/usersPasswordResetRequest.js.map +1 -1
- package/dist/commonjs/funcs/usersPostAuthenticate.d.ts +1 -1
- package/dist/commonjs/funcs/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPostAuthenticate.js +2 -0
- package/dist/commonjs/funcs/usersPostAuthenticate.js.map +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorScansVendorScanOut.js +2 -0
- package/dist/commonjs/funcs/vendorScansVendorScanOut.js.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.js +2 -0
- package/dist/commonjs/funcs/vendorsAddVendorCredentialFile.js.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -0
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCheckDownloadCode.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsCheckDownloadCode.js +123 -0
- package/dist/commonjs/funcs/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.js +2 -0
- package/dist/commonjs/funcs/vendorsCreateNewVendorCredentialVersion.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.js +2 -0
- package/dist/commonjs/funcs/vendorsCreateOrUpdateBcr.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +2 -0
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.js +2 -0
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js +2 -0
- package/dist/commonjs/funcs/vendorsDeclineVendorCredential.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.js +2 -0
- package/dist/commonjs/funcs/vendorsDeleteVendorCredentialFile.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +2 -0
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js +2 -0
- package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorLegalName.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorLegalName.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorLegalName.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorLegalName.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialDataRequests.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialFiles.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorCredits.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.js +2 -0
- package/dist/commonjs/funcs/vendorsPurchaseScrubCredits.js.map +1 -1
- package/dist/commonjs/funcs/vendorsSendDownloadCode.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsSendDownloadCode.js +121 -0
- package/dist/commonjs/funcs/vendorsSendDownloadCode.js.map +1 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js +2 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.js +2 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorCredentialFile.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +2 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorScrubDetails.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorScrubDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorScrubDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorScrubDetails.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js +2 -0
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js +2 -0
- package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +2 -0
- package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -1
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +2 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +2 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +11 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/dataRequestsAddDataRequestFile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsAddDataRequestFile.js +64 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsDeleteDataRequestFile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsDeleteDataRequestFile.js +64 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsUpdateDataRequest.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsUpdateDataRequest.js +64 -0
- package/dist/commonjs/mcp-server/tools/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsCheckDownloadCode.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsCheckDownloadCode.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsSendDownloadCode.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsSendDownloadCode.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsSendDownloadCode.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +14 -2
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +1 -1
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/operations/adddatarequestfile.d.ts +67 -0
- package/dist/commonjs/models/operations/adddatarequestfile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/adddatarequestfile.js +124 -0
- package/dist/commonjs/models/operations/adddatarequestfile.js.map +1 -0
- package/dist/commonjs/models/operations/checkdownloadcode.d.ts +65 -0
- package/dist/commonjs/models/operations/checkdownloadcode.d.ts.map +1 -0
- package/dist/commonjs/models/operations/checkdownloadcode.js +107 -0
- package/dist/commonjs/models/operations/checkdownloadcode.js.map +1 -0
- package/dist/commonjs/models/operations/deletedatarequestfile.d.ts +32 -0
- package/dist/commonjs/models/operations/deletedatarequestfile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletedatarequestfile.js +69 -0
- package/dist/commonjs/models/operations/deletedatarequestfile.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +5 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +5 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.d.ts +85 -0
- package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -0
- package/dist/commonjs/models/operations/senddownloadcode.js +128 -0
- package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -0
- package/dist/commonjs/models/operations/updatedatarequest.d.ts +59 -0
- package/dist/commonjs/models/operations/updatedatarequest.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatedatarequest.js +107 -0
- package/dist/commonjs/models/operations/updatedatarequest.js.map +1 -0
- package/dist/commonjs/react-query/_types.d.ts +16 -3
- package/dist/commonjs/react-query/_types.d.ts.map +1 -1
- package/dist/commonjs/react-query/dataRequestsAddDataRequestFile.d.ts +23 -0
- package/dist/commonjs/react-query/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/react-query/dataRequestsAddDataRequestFile.js +51 -0
- package/dist/commonjs/react-query/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/commonjs/react-query/dataRequestsDeleteDataRequestFile.d.ts +23 -0
- package/dist/commonjs/react-query/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/commonjs/react-query/dataRequestsDeleteDataRequestFile.js +51 -0
- package/dist/commonjs/react-query/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/commonjs/react-query/dataRequestsUpdateDataRequest.d.ts +23 -0
- package/dist/commonjs/react-query/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/commonjs/react-query/dataRequestsUpdateDataRequest.js +51 -0
- package/dist/commonjs/react-query/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +5 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +5 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsCheckDownloadCode.d.ts +42 -0
- package/dist/commonjs/react-query/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsCheckDownloadCode.js +95 -0
- package/dist/commonjs/react-query/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/commonjs/react-query/vendorsSendDownloadCode.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsSendDownloadCode.js +47 -0
- package/dist/commonjs/react-query/vendorsSendDownloadCode.js.map +1 -0
- package/dist/commonjs/sdk/datarequests.d.ts +26 -0
- package/dist/commonjs/sdk/datarequests.d.ts.map +1 -0
- package/dist/commonjs/sdk/datarequests.js +42 -0
- package/dist/commonjs/sdk/datarequests.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +14 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +20 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/datarequests.test.d.ts +2 -0
- package/dist/esm/__tests__/datarequests.test.d.ts.map +1 -0
- package/dist/esm/__tests__/datarequests.test.js +54 -0
- package/dist/esm/__tests__/datarequests.test.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +37 -13
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +5 -59
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.js +3 -3
- package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
- package/dist/esm/funcs/companiesListOrSearchCompanies.d.ts +1 -1
- package/dist/esm/funcs/companiesListOrSearchCompanies.d.ts.map +1 -1
- package/dist/esm/funcs/companiesListOrSearchCompanies.js +2 -0
- package/dist/esm/funcs/companiesListOrSearchCompanies.js.map +1 -1
- package/dist/esm/funcs/dataRequestsAddDataRequestFile.d.ts +17 -0
- package/dist/esm/funcs/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/esm/funcs/dataRequestsAddDataRequestFile.js +88 -0
- package/dist/esm/funcs/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/esm/funcs/dataRequestsDeleteDataRequestFile.d.ts +17 -0
- package/dist/esm/funcs/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/esm/funcs/dataRequestsDeleteDataRequestFile.js +87 -0
- package/dist/esm/funcs/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/esm/funcs/dataRequestsUpdateDataRequest.d.ts +17 -0
- package/dist/esm/funcs/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/esm/funcs/dataRequestsUpdateDataRequest.js +88 -0
- package/dist/esm/funcs/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/esm/funcs/organizationsGetFacility.d.ts +1 -1
- package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.js +2 -0
- package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js +2 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
- package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
- package/dist/esm/funcs/supportArticlesGetSupportArticle.js +2 -0
- package/dist/esm/funcs/supportArticlesGetSupportArticle.js.map +1 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts +1 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js +2 -0
- package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
- package/dist/esm/funcs/usersChangePassword.d.ts +1 -1
- package/dist/esm/funcs/usersChangePassword.d.ts.map +1 -1
- package/dist/esm/funcs/usersChangePassword.js +2 -0
- package/dist/esm/funcs/usersChangePassword.js.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.js +2 -0
- package/dist/esm/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/esm/funcs/usersGetUserById.d.ts +1 -1
- package/dist/esm/funcs/usersGetUserById.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetUserById.js +2 -0
- package/dist/esm/funcs/usersGetUserById.js.map +1 -1
- package/dist/esm/funcs/usersMagiclink.d.ts +1 -1
- package/dist/esm/funcs/usersMagiclink.d.ts.map +1 -1
- package/dist/esm/funcs/usersMagiclink.js +2 -0
- package/dist/esm/funcs/usersMagiclink.js.map +1 -1
- package/dist/esm/funcs/usersPassword.d.ts +1 -1
- package/dist/esm/funcs/usersPassword.d.ts.map +1 -1
- package/dist/esm/funcs/usersPassword.js +2 -0
- package/dist/esm/funcs/usersPassword.js.map +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.d.ts +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.d.ts.map +1 -1
- package/dist/esm/funcs/usersPasswordResetRequest.js +2 -0
- package/dist/esm/funcs/usersPasswordResetRequest.js.map +1 -1
- package/dist/esm/funcs/usersPostAuthenticate.d.ts +1 -1
- package/dist/esm/funcs/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/esm/funcs/usersPostAuthenticate.js +2 -0
- package/dist/esm/funcs/usersPostAuthenticate.js.map +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.d.ts +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
- package/dist/esm/funcs/vendorScansVendorScanOut.js +2 -0
- package/dist/esm/funcs/vendorScansVendorScanOut.js.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorCredentialFile.d.ts +1 -1
- package/dist/esm/funcs/vendorsAddVendorCredentialFile.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorCredentialFile.js +2 -0
- package/dist/esm/funcs/vendorsAddVendorCredentialFile.js.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -0
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsCheckDownloadCode.d.ts +17 -0
- package/dist/esm/funcs/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsCheckDownloadCode.js +87 -0
- package/dist/esm/funcs/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.d.ts +1 -1
- package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.js +2 -0
- package/dist/esm/funcs/vendorsCreateNewVendorCredentialVersion.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateOrUpdateBcr.d.ts +1 -1
- package/dist/esm/funcs/vendorsCreateOrUpdateBcr.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateOrUpdateBcr.js +2 -0
- package/dist/esm/funcs/vendorsCreateOrUpdateBcr.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js +2 -0
- package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
- package/dist/esm/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorRegistration.js +2 -0
- package/dist/esm/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts +1 -1
- package/dist/esm/funcs/vendorsDeclineVendorCredential.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeclineVendorCredential.js +2 -0
- package/dist/esm/funcs/vendorsDeclineVendorCredential.js.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.d.ts +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.js +2 -0
- package/dist/esm/funcs/vendorsDeleteVendorCredentialFile.js.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +2 -0
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.js +2 -0
- package/dist/esm/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorLegalName.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorLegalName.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorLegalName.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorLegalName.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -0
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.js +2 -0
- package/dist/esm/funcs/vendorsListVendorCredentialDataRequests.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.js +2 -0
- package/dist/esm/funcs/vendorsListVendorCredentialFiles.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +2 -0
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.js +2 -0
- package/dist/esm/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.js +2 -0
- package/dist/esm/funcs/vendorsListVendorCredits.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +2 -0
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.js +2 -0
- package/dist/esm/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.js +2 -0
- package/dist/esm/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js +2 -0
- package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubDetails.js +2 -0
- package/dist/esm/funcs/vendorsListVendorScrubDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPackages.js +2 -0
- package/dist/esm/funcs/vendorsListVendorScrubPackages.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.js +2 -0
- package/dist/esm/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.d.ts +1 -1
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.js +2 -0
- package/dist/esm/funcs/vendorsPurchaseScrubCredits.js.map +1 -1
- package/dist/esm/funcs/vendorsSendDownloadCode.d.ts +17 -0
- package/dist/esm/funcs/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsSendDownloadCode.js +85 -0
- package/dist/esm/funcs/vendorsSendDownloadCode.js.map +1 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts +1 -1
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js +2 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.d.ts +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.js +2 -0
- package/dist/esm/funcs/vendorsUpdateVendorCredentialFile.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +2 -0
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +2 -0
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorScrubDetails.d.ts +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorScrubDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorScrubDetails.js +2 -0
- package/dist/esm/funcs/vendorsUpdateVendorScrubDetails.js.map +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.d.ts +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js +2 -0
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js +2 -0
- package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +1 -1
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -1
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +2 -0
- package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -1
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +2 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js +2 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +11 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/dataRequestsAddDataRequestFile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/dataRequestsAddDataRequestFile.js +28 -0
- package/dist/esm/mcp-server/tools/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/esm/mcp-server/tools/dataRequestsDeleteDataRequestFile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/dataRequestsDeleteDataRequestFile.js +28 -0
- package/dist/esm/mcp-server/tools/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/esm/mcp-server/tools/dataRequestsUpdateDataRequest.d.ts +8 -0
- package/dist/esm/mcp-server/tools/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/dataRequestsUpdateDataRequest.js +28 -0
- package/dist/esm/mcp-server/tools/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsCheckDownloadCode.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsCheckDownloadCode.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsSendDownloadCode.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsSendDownloadCode.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsSendDownloadCode.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +14 -2
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +1 -1
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/operations/adddatarequestfile.d.ts +67 -0
- package/dist/esm/models/operations/adddatarequestfile.d.ts.map +1 -0
- package/dist/esm/models/operations/adddatarequestfile.js +84 -0
- package/dist/esm/models/operations/adddatarequestfile.js.map +1 -0
- package/dist/esm/models/operations/checkdownloadcode.d.ts +65 -0
- package/dist/esm/models/operations/checkdownloadcode.d.ts.map +1 -0
- package/dist/esm/models/operations/checkdownloadcode.js +67 -0
- package/dist/esm/models/operations/checkdownloadcode.js.map +1 -0
- package/dist/esm/models/operations/deletedatarequestfile.d.ts +32 -0
- package/dist/esm/models/operations/deletedatarequestfile.d.ts.map +1 -0
- package/dist/esm/models/operations/deletedatarequestfile.js +31 -0
- package/dist/esm/models/operations/deletedatarequestfile.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +5 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +5 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.d.ts +85 -0
- package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -0
- package/dist/esm/models/operations/senddownloadcode.js +88 -0
- package/dist/esm/models/operations/senddownloadcode.js.map +1 -0
- package/dist/esm/models/operations/updatedatarequest.d.ts +59 -0
- package/dist/esm/models/operations/updatedatarequest.d.ts.map +1 -0
- package/dist/esm/models/operations/updatedatarequest.js +67 -0
- package/dist/esm/models/operations/updatedatarequest.js.map +1 -0
- package/dist/esm/react-query/_types.d.ts +16 -3
- package/dist/esm/react-query/_types.d.ts.map +1 -1
- package/dist/esm/react-query/dataRequestsAddDataRequestFile.d.ts +23 -0
- package/dist/esm/react-query/dataRequestsAddDataRequestFile.d.ts.map +1 -0
- package/dist/esm/react-query/dataRequestsAddDataRequestFile.js +46 -0
- package/dist/esm/react-query/dataRequestsAddDataRequestFile.js.map +1 -0
- package/dist/esm/react-query/dataRequestsDeleteDataRequestFile.d.ts +23 -0
- package/dist/esm/react-query/dataRequestsDeleteDataRequestFile.d.ts.map +1 -0
- package/dist/esm/react-query/dataRequestsDeleteDataRequestFile.js +46 -0
- package/dist/esm/react-query/dataRequestsDeleteDataRequestFile.js.map +1 -0
- package/dist/esm/react-query/dataRequestsUpdateDataRequest.d.ts +23 -0
- package/dist/esm/react-query/dataRequestsUpdateDataRequest.d.ts.map +1 -0
- package/dist/esm/react-query/dataRequestsUpdateDataRequest.js +46 -0
- package/dist/esm/react-query/dataRequestsUpdateDataRequest.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +5 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +5 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsCheckDownloadCode.d.ts +42 -0
- package/dist/esm/react-query/vendorsCheckDownloadCode.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsCheckDownloadCode.js +85 -0
- package/dist/esm/react-query/vendorsCheckDownloadCode.js.map +1 -0
- package/dist/esm/react-query/vendorsSendDownloadCode.d.ts +23 -0
- package/dist/esm/react-query/vendorsSendDownloadCode.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsSendDownloadCode.js +42 -0
- package/dist/esm/react-query/vendorsSendDownloadCode.js.map +1 -0
- package/dist/esm/sdk/datarequests.d.ts +26 -0
- package/dist/esm/sdk/datarequests.d.ts.map +1 -0
- package/dist/esm/sdk/datarequests.js +38 -0
- package/dist/esm/sdk/datarequests.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +14 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +20 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/datarequests.test.ts +63 -0
- package/src/__tests__/vendors.test.ts +43 -13
- package/src/__tests__/zones.test.ts +5 -59
- package/src/admin-funcs/doAdmin.ts +3 -4
- package/src/funcs/companiesListOrSearchCompanies.ts +2 -4
- package/src/funcs/dataRequestsAddDataRequestFile.ts +173 -0
- package/src/funcs/dataRequestsDeleteDataRequestFile.ts +173 -0
- package/src/funcs/dataRequestsUpdateDataRequest.ts +173 -0
- package/src/funcs/organizationsGetFacility.ts +2 -3
- package/src/funcs/organizationsListOrSearchFacilities.ts +2 -4
- package/src/funcs/supportArticlesGetSupportArticle.ts +2 -3
- package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +2 -4
- package/src/funcs/usersChangePassword.ts +2 -3
- package/src/funcs/usersGetCurrentUser.ts +2 -3
- package/src/funcs/usersGetUserById.ts +2 -3
- package/src/funcs/usersMagiclink.ts +2 -3
- package/src/funcs/usersPassword.ts +2 -3
- package/src/funcs/usersPasswordResetRequest.ts +2 -3
- package/src/funcs/usersPostAuthenticate.ts +2 -3
- package/src/funcs/vendorScansVendorScanOut.ts +2 -3
- package/src/funcs/vendorsAddVendorCredentialFile.ts +2 -3
- package/src/funcs/vendorsAddVendorManagedByCompany.ts +2 -3
- package/src/funcs/vendorsCheckDownloadCode.ts +179 -0
- package/src/funcs/vendorsCreateNewVendorCredentialVersion.ts +2 -3
- package/src/funcs/vendorsCreateOrUpdateBcr.ts +2 -3
- package/src/funcs/vendorsCreateVendorCompany.ts +2 -3
- package/src/funcs/vendorsCreateVendorRegistration.ts +2 -3
- package/src/funcs/vendorsDeclineVendorCredential.ts +2 -3
- package/src/funcs/vendorsDeleteVendorCredentialFile.ts +2 -3
- package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +2 -3
- package/src/funcs/vendorsExpediteTimeRemaining.ts +2 -3
- package/src/funcs/vendorsGetVendorCredentialDetails.ts +2 -3
- package/src/funcs/vendorsGetVendorCredentialFile.ts +2 -3
- package/src/funcs/vendorsGetVendorInvoiceDetails.ts +2 -3
- package/src/funcs/vendorsGetVendorLegalName.ts +2 -3
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -3
- package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +2 -4
- package/src/funcs/vendorsListVendorCredentialDataRequests.ts +2 -3
- package/src/funcs/vendorsListVendorCredentialFiles.ts +2 -3
- package/src/funcs/vendorsListVendorCredentialHistory.ts +2 -4
- package/src/funcs/vendorsListVendorCredentials.ts +2 -4
- package/src/funcs/vendorsListVendorCredits.ts +2 -4
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +2 -4
- package/src/funcs/vendorsListVendorInvoices.ts +2 -4
- package/src/funcs/vendorsListVendorJobTitles.ts +2 -4
- package/src/funcs/vendorsListVendorManagedByCompanies.ts +2 -4
- package/src/funcs/vendorsListVendorScrubDetails.ts +2 -3
- package/src/funcs/vendorsListVendorScrubPackages.ts +2 -4
- package/src/funcs/vendorsListVendorScrubPurchases.ts +2 -4
- package/src/funcs/vendorsPurchaseScrubCredits.ts +2 -3
- package/src/funcs/vendorsSendDownloadCode.ts +176 -0
- package/src/funcs/vendorsSubmitVendorCredential.ts +2 -3
- package/src/funcs/vendorsUpdateVendorCredentialFile.ts +2 -3
- package/src/funcs/vendorsUpdateVendorDetails.ts +2 -3
- package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +2 -3
- package/src/funcs/vendorsUpdateVendorScrubDetails.ts +2 -3
- package/src/funcs/webhooksGetWebhookEndpoint.ts +2 -3
- package/src/funcs/webhooksListAllWebhookEndpoints.ts +2 -3
- package/src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +2 -3
- package/src/funcs/zonesListOrSearchSecurityZones.ts +2 -0
- package/src/funcs/zonesSecurityZoneCheckin.ts +2 -3
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/dataRequestsAddDataRequestFile.ts +38 -0
- package/src/mcp-server/tools/dataRequestsDeleteDataRequestFile.ts +39 -0
- package/src/mcp-server/tools/dataRequestsUpdateDataRequest.ts +37 -0
- package/src/mcp-server/tools/vendorsCheckDownloadCode.ts +37 -0
- package/src/mcp-server/tools/vendorsSendDownloadCode.ts +37 -0
- package/src/models/errors/apierror.ts +18 -3
- package/src/models/operations/adddatarequestfile.ts +166 -0
- package/src/models/operations/checkdownloadcode.ts +148 -0
- package/src/models/operations/deletedatarequestfile.ts +71 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/senddownloadcode.ts +169 -0
- package/src/models/operations/updatedatarequest.ts +142 -0
- package/src/react-query/_types.ts +75 -4
- package/src/react-query/dataRequestsAddDataRequestFile.ts +92 -0
- package/src/react-query/dataRequestsDeleteDataRequestFile.ts +92 -0
- package/src/react-query/dataRequestsUpdateDataRequest.ts +92 -0
- package/src/react-query/index.ts +5 -0
- package/src/react-query/vendorsCheckDownloadCode.ts +170 -0
- package/src/react-query/vendorsSendDownloadCode.ts +88 -0
- package/src/sdk/datarequests.ts +63 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/vendors.ts +36 -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.
|
|
34240
|
-
genVersion: "2.
|
|
34241
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34239
|
+
sdkVersion: "0.35.3",
|
|
34240
|
+
genVersion: "2.620.2",
|
|
34241
|
+
userAgent: "speakeasy-sdk/typescript 0.35.3 2.620.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34242
34242
|
};
|
|
34243
34243
|
});
|
|
34244
34244
|
|
|
@@ -34804,7 +34804,6 @@ class ClientSDK {
|
|
|
34804
34804
|
} else {
|
|
34805
34805
|
this.#hooks = new SDKHooks;
|
|
34806
34806
|
}
|
|
34807
|
-
this._options = { ...options, hooks: this.#hooks };
|
|
34808
34807
|
const url = serverURLFromOptions(options);
|
|
34809
34808
|
if (url) {
|
|
34810
34809
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
@@ -34815,7 +34814,8 @@ class ClientSDK {
|
|
|
34815
34814
|
});
|
|
34816
34815
|
this._baseURL = baseURL;
|
|
34817
34816
|
this.#httpClient = client;
|
|
34818
|
-
this
|
|
34817
|
+
this._options = { ...options, hooks: this.#hooks };
|
|
34818
|
+
this.#logger = this._options.debugLogger;
|
|
34819
34819
|
if (!this.#logger && env().GREEN_SECURITY_DEBUG) {
|
|
34820
34820
|
this.#logger = console;
|
|
34821
34821
|
}
|
|
@@ -34869,7 +34869,7 @@ class ClientSDK {
|
|
|
34869
34869
|
headers.set(k2, v2);
|
|
34870
34870
|
}
|
|
34871
34871
|
if (!isBrowserLike) {
|
|
34872
|
-
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34872
|
+
headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
|
|
34873
34873
|
}
|
|
34874
34874
|
const fetchOptions = {
|
|
34875
34875
|
...options?.fetchOptions,
|
|
@@ -35222,18 +35222,18 @@ var init_tools = __esm(() => {
|
|
|
35222
35222
|
var APIError;
|
|
35223
35223
|
var init_apierror = __esm(() => {
|
|
35224
35224
|
APIError = class APIError extends Error {
|
|
35225
|
-
rawResponse;
|
|
35226
|
-
body;
|
|
35227
35225
|
statusCode;
|
|
35228
35226
|
contentType;
|
|
35227
|
+
body;
|
|
35228
|
+
rawResponse;
|
|
35229
35229
|
constructor(message, rawResponse, body = "") {
|
|
35230
35230
|
const statusCode = rawResponse.status;
|
|
35231
35231
|
const contentType2 = rawResponse.headers.get("content-type") || "";
|
|
35232
35232
|
const bodyString = body.length > 0 ? `
|
|
35233
35233
|
${body}` : "";
|
|
35234
35234
|
super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
|
|
35235
|
-
this.rawResponse = rawResponse;
|
|
35236
35235
|
this.body = body;
|
|
35236
|
+
this.rawResponse = rawResponse;
|
|
35237
35237
|
this.statusCode = statusCode;
|
|
35238
35238
|
this.contentType = contentType2;
|
|
35239
35239
|
this.name = "APIError";
|
|
@@ -40177,6 +40177,60 @@ var init_components = __esm(() => {
|
|
|
40177
40177
|
init_zoneconfig();
|
|
40178
40178
|
});
|
|
40179
40179
|
|
|
40180
|
+
// src/models/operations/adddatarequestfile.ts
|
|
40181
|
+
var AddDataRequestFileRequestBody$inboundSchema, AddDataRequestFileRequestBody$outboundSchema, AddDataRequestFileRequestBody$, AddDataRequestFileRequest$inboundSchema, AddDataRequestFileRequest$outboundSchema, AddDataRequestFileRequest$;
|
|
40182
|
+
var init_adddatarequestfile = __esm(() => {
|
|
40183
|
+
init_esm();
|
|
40184
|
+
init_primitives();
|
|
40185
|
+
init_components();
|
|
40186
|
+
AddDataRequestFileRequestBody$inboundSchema = objectType({
|
|
40187
|
+
file_name: stringType().optional(),
|
|
40188
|
+
content_type: ContentType$inboundSchema.optional(),
|
|
40189
|
+
file_size: numberType().int().optional()
|
|
40190
|
+
}).transform((v2) => {
|
|
40191
|
+
return remap(v2, {
|
|
40192
|
+
file_name: "fileName",
|
|
40193
|
+
content_type: "contentType",
|
|
40194
|
+
file_size: "fileSize"
|
|
40195
|
+
});
|
|
40196
|
+
});
|
|
40197
|
+
AddDataRequestFileRequestBody$outboundSchema = objectType({
|
|
40198
|
+
fileName: stringType().optional(),
|
|
40199
|
+
contentType: ContentType$outboundSchema.optional(),
|
|
40200
|
+
fileSize: numberType().int().optional()
|
|
40201
|
+
}).transform((v2) => {
|
|
40202
|
+
return remap(v2, {
|
|
40203
|
+
fileName: "file_name",
|
|
40204
|
+
contentType: "content_type",
|
|
40205
|
+
fileSize: "file_size"
|
|
40206
|
+
});
|
|
40207
|
+
});
|
|
40208
|
+
((AddDataRequestFileRequestBody$) => {
|
|
40209
|
+
AddDataRequestFileRequestBody$.inboundSchema = AddDataRequestFileRequestBody$inboundSchema;
|
|
40210
|
+
AddDataRequestFileRequestBody$.outboundSchema = AddDataRequestFileRequestBody$outboundSchema;
|
|
40211
|
+
})(AddDataRequestFileRequestBody$ ||= {});
|
|
40212
|
+
AddDataRequestFileRequest$inboundSchema = objectType({
|
|
40213
|
+
id: numberType().int(),
|
|
40214
|
+
RequestBody: lazyType(() => AddDataRequestFileRequestBody$inboundSchema)
|
|
40215
|
+
}).transform((v2) => {
|
|
40216
|
+
return remap(v2, {
|
|
40217
|
+
RequestBody: "requestBody"
|
|
40218
|
+
});
|
|
40219
|
+
});
|
|
40220
|
+
AddDataRequestFileRequest$outboundSchema = objectType({
|
|
40221
|
+
id: numberType().int(),
|
|
40222
|
+
requestBody: lazyType(() => AddDataRequestFileRequestBody$outboundSchema)
|
|
40223
|
+
}).transform((v2) => {
|
|
40224
|
+
return remap(v2, {
|
|
40225
|
+
requestBody: "RequestBody"
|
|
40226
|
+
});
|
|
40227
|
+
});
|
|
40228
|
+
((AddDataRequestFileRequest$) => {
|
|
40229
|
+
AddDataRequestFileRequest$.inboundSchema = AddDataRequestFileRequest$inboundSchema;
|
|
40230
|
+
AddDataRequestFileRequest$.outboundSchema = AddDataRequestFileRequest$outboundSchema;
|
|
40231
|
+
})(AddDataRequestFileRequest$ ||= {});
|
|
40232
|
+
});
|
|
40233
|
+
|
|
40180
40234
|
// src/models/operations/addvendorcredentialfile.ts
|
|
40181
40235
|
var AddVendorCredentialFileRequestBody$inboundSchema, AddVendorCredentialFileRequestBody$outboundSchema, AddVendorCredentialFileRequestBody$, AddVendorCredentialFileRequest$inboundSchema, AddVendorCredentialFileRequest$outboundSchema, AddVendorCredentialFileRequest$, AddVendorCredentialFileResponseBody$inboundSchema, AddVendorCredentialFileResponseBody$outboundSchema, AddVendorCredentialFileResponseBody$;
|
|
40182
40236
|
var init_addvendorcredentialfile = __esm(() => {
|
|
@@ -40367,6 +40421,43 @@ var init_changepassword = __esm(() => {
|
|
|
40367
40421
|
})(ChangePasswordChangePasswordOk$ ||= {});
|
|
40368
40422
|
});
|
|
40369
40423
|
|
|
40424
|
+
// src/models/operations/checkdownloadcode.ts
|
|
40425
|
+
var CheckDownloadCodeRequest$inboundSchema, CheckDownloadCodeRequest$outboundSchema, CheckDownloadCodeRequest$, CheckDownloadCodeResponseBody$inboundSchema, CheckDownloadCodeResponseBody$outboundSchema, CheckDownloadCodeResponseBody$;
|
|
40426
|
+
var init_checkdownloadcode = __esm(() => {
|
|
40427
|
+
init_esm();
|
|
40428
|
+
init_primitives();
|
|
40429
|
+
CheckDownloadCodeRequest$inboundSchema = objectType({
|
|
40430
|
+
vendor_credential_id: numberType().int(),
|
|
40431
|
+
code: stringType().optional()
|
|
40432
|
+
}).transform((v2) => {
|
|
40433
|
+
return remap(v2, {
|
|
40434
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40435
|
+
});
|
|
40436
|
+
});
|
|
40437
|
+
CheckDownloadCodeRequest$outboundSchema = objectType({
|
|
40438
|
+
vendorCredentialId: numberType().int(),
|
|
40439
|
+
code: stringType().optional()
|
|
40440
|
+
}).transform((v2) => {
|
|
40441
|
+
return remap(v2, {
|
|
40442
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40443
|
+
});
|
|
40444
|
+
});
|
|
40445
|
+
((CheckDownloadCodeRequest$) => {
|
|
40446
|
+
CheckDownloadCodeRequest$.inboundSchema = CheckDownloadCodeRequest$inboundSchema;
|
|
40447
|
+
CheckDownloadCodeRequest$.outboundSchema = CheckDownloadCodeRequest$outboundSchema;
|
|
40448
|
+
})(CheckDownloadCodeRequest$ ||= {});
|
|
40449
|
+
CheckDownloadCodeResponseBody$inboundSchema = objectType({
|
|
40450
|
+
urls: arrayType(stringType()).optional()
|
|
40451
|
+
});
|
|
40452
|
+
CheckDownloadCodeResponseBody$outboundSchema = objectType({
|
|
40453
|
+
urls: arrayType(stringType()).optional()
|
|
40454
|
+
});
|
|
40455
|
+
((CheckDownloadCodeResponseBody$) => {
|
|
40456
|
+
CheckDownloadCodeResponseBody$.inboundSchema = CheckDownloadCodeResponseBody$inboundSchema;
|
|
40457
|
+
CheckDownloadCodeResponseBody$.outboundSchema = CheckDownloadCodeResponseBody$outboundSchema;
|
|
40458
|
+
})(CheckDownloadCodeResponseBody$ ||= {});
|
|
40459
|
+
});
|
|
40460
|
+
|
|
40370
40461
|
// src/models/operations/createnewvendorcredentialversion.ts
|
|
40371
40462
|
var CreateNewVendorCredentialVersionRequestBody$inboundSchema, CreateNewVendorCredentialVersionRequestBody$outboundSchema, CreateNewVendorCredentialVersionRequestBody$, CreateNewVendorCredentialVersionResponseBody$inboundSchema, CreateNewVendorCredentialVersionResponseBody$outboundSchema, CreateNewVendorCredentialVersionResponseBody$;
|
|
40372
40463
|
var init_createnewvendorcredentialversion = __esm(() => {
|
|
@@ -40618,6 +40709,22 @@ var init_declinevendorcredential = __esm(() => {
|
|
|
40618
40709
|
})(DeclineVendorCredentialRequest$ ||= {});
|
|
40619
40710
|
});
|
|
40620
40711
|
|
|
40712
|
+
// src/models/operations/deletedatarequestfile.ts
|
|
40713
|
+
var DeleteDataRequestFileRequest$inboundSchema, DeleteDataRequestFileRequest$outboundSchema, DeleteDataRequestFileRequest$;
|
|
40714
|
+
var init_deletedatarequestfile = __esm(() => {
|
|
40715
|
+
init_esm();
|
|
40716
|
+
DeleteDataRequestFileRequest$inboundSchema = objectType({
|
|
40717
|
+
id: numberType().int()
|
|
40718
|
+
});
|
|
40719
|
+
DeleteDataRequestFileRequest$outboundSchema = objectType({
|
|
40720
|
+
id: numberType().int()
|
|
40721
|
+
});
|
|
40722
|
+
((DeleteDataRequestFileRequest$) => {
|
|
40723
|
+
DeleteDataRequestFileRequest$.inboundSchema = DeleteDataRequestFileRequest$inboundSchema;
|
|
40724
|
+
DeleteDataRequestFileRequest$.outboundSchema = DeleteDataRequestFileRequest$outboundSchema;
|
|
40725
|
+
})(DeleteDataRequestFileRequest$ ||= {});
|
|
40726
|
+
});
|
|
40727
|
+
|
|
40621
40728
|
// src/models/operations/deletevendorcredentialfile.ts
|
|
40622
40729
|
var DeleteVendorCredentialFileRequest$inboundSchema, DeleteVendorCredentialFileRequest$outboundSchema, DeleteVendorCredentialFileRequest$;
|
|
40623
40730
|
var init_deletevendorcredentialfile = __esm(() => {
|
|
@@ -42670,6 +42777,55 @@ var init_securityzonecheckin = __esm(() => {
|
|
|
42670
42777
|
})(SecurityZoneCheckinResponseBody$ ||= {});
|
|
42671
42778
|
});
|
|
42672
42779
|
|
|
42780
|
+
// src/models/operations/senddownloadcode.ts
|
|
42781
|
+
var Via, Via$inboundSchema, Via$outboundSchema, Via$, SendDownloadCodeRequestBody$inboundSchema, SendDownloadCodeRequestBody$outboundSchema, SendDownloadCodeRequestBody$, SendDownloadCodeRequest$inboundSchema, SendDownloadCodeRequest$outboundSchema, SendDownloadCodeRequest$;
|
|
42782
|
+
var init_senddownloadcode = __esm(() => {
|
|
42783
|
+
init_esm();
|
|
42784
|
+
init_primitives();
|
|
42785
|
+
Via = {
|
|
42786
|
+
Text: "text",
|
|
42787
|
+
Email: "email"
|
|
42788
|
+
};
|
|
42789
|
+
Via$inboundSchema = nativeEnumType(Via);
|
|
42790
|
+
Via$outboundSchema = Via$inboundSchema;
|
|
42791
|
+
((Via$) => {
|
|
42792
|
+
Via$.inboundSchema = Via$inboundSchema;
|
|
42793
|
+
Via$.outboundSchema = Via$outboundSchema;
|
|
42794
|
+
})(Via$ ||= {});
|
|
42795
|
+
SendDownloadCodeRequestBody$inboundSchema = objectType({
|
|
42796
|
+
via: Via$inboundSchema
|
|
42797
|
+
});
|
|
42798
|
+
SendDownloadCodeRequestBody$outboundSchema = objectType({
|
|
42799
|
+
via: Via$outboundSchema
|
|
42800
|
+
});
|
|
42801
|
+
((SendDownloadCodeRequestBody$) => {
|
|
42802
|
+
SendDownloadCodeRequestBody$.inboundSchema = SendDownloadCodeRequestBody$inboundSchema;
|
|
42803
|
+
SendDownloadCodeRequestBody$.outboundSchema = SendDownloadCodeRequestBody$outboundSchema;
|
|
42804
|
+
})(SendDownloadCodeRequestBody$ ||= {});
|
|
42805
|
+
SendDownloadCodeRequest$inboundSchema = objectType({
|
|
42806
|
+
vendor_credential_id: numberType().int(),
|
|
42807
|
+
RequestBody: lazyType(() => SendDownloadCodeRequestBody$inboundSchema)
|
|
42808
|
+
}).transform((v2) => {
|
|
42809
|
+
return remap(v2, {
|
|
42810
|
+
vendor_credential_id: "vendorCredentialId",
|
|
42811
|
+
RequestBody: "requestBody"
|
|
42812
|
+
});
|
|
42813
|
+
});
|
|
42814
|
+
SendDownloadCodeRequest$outboundSchema = objectType({
|
|
42815
|
+
vendorCredentialId: numberType().int(),
|
|
42816
|
+
requestBody: lazyType(() => SendDownloadCodeRequestBody$outboundSchema)
|
|
42817
|
+
}).transform((v2) => {
|
|
42818
|
+
return remap(v2, {
|
|
42819
|
+
vendorCredentialId: "vendor_credential_id",
|
|
42820
|
+
requestBody: "RequestBody"
|
|
42821
|
+
});
|
|
42822
|
+
});
|
|
42823
|
+
((SendDownloadCodeRequest$) => {
|
|
42824
|
+
SendDownloadCodeRequest$.inboundSchema = SendDownloadCodeRequest$inboundSchema;
|
|
42825
|
+
SendDownloadCodeRequest$.outboundSchema = SendDownloadCodeRequest$outboundSchema;
|
|
42826
|
+
})(SendDownloadCodeRequest$ ||= {});
|
|
42827
|
+
});
|
|
42828
|
+
|
|
42673
42829
|
// src/models/operations/submitvendorcredential.ts
|
|
42674
42830
|
var SubmitVendorCredentialRequestBody$inboundSchema, SubmitVendorCredentialRequestBody$outboundSchema, SubmitVendorCredentialRequestBody$, SubmitVendorCredentialRequest$inboundSchema, SubmitVendorCredentialRequest$outboundSchema, SubmitVendorCredentialRequest$;
|
|
42675
42831
|
var init_submitvendorcredential = __esm(() => {
|
|
@@ -42719,6 +42875,43 @@ var init_submitvendorcredential = __esm(() => {
|
|
|
42719
42875
|
})(SubmitVendorCredentialRequest$ ||= {});
|
|
42720
42876
|
});
|
|
42721
42877
|
|
|
42878
|
+
// src/models/operations/updatedatarequest.ts
|
|
42879
|
+
var UpdateDataRequestRequestBody$inboundSchema, UpdateDataRequestRequestBody$outboundSchema, UpdateDataRequestRequestBody$, UpdateDataRequestRequest$inboundSchema, UpdateDataRequestRequest$outboundSchema, UpdateDataRequestRequest$;
|
|
42880
|
+
var init_updatedatarequest = __esm(() => {
|
|
42881
|
+
init_esm();
|
|
42882
|
+
init_primitives();
|
|
42883
|
+
UpdateDataRequestRequestBody$inboundSchema = objectType({
|
|
42884
|
+
value: stringType().optional()
|
|
42885
|
+
});
|
|
42886
|
+
UpdateDataRequestRequestBody$outboundSchema = objectType({
|
|
42887
|
+
value: stringType().optional()
|
|
42888
|
+
});
|
|
42889
|
+
((UpdateDataRequestRequestBody$) => {
|
|
42890
|
+
UpdateDataRequestRequestBody$.inboundSchema = UpdateDataRequestRequestBody$inboundSchema;
|
|
42891
|
+
UpdateDataRequestRequestBody$.outboundSchema = UpdateDataRequestRequestBody$outboundSchema;
|
|
42892
|
+
})(UpdateDataRequestRequestBody$ ||= {});
|
|
42893
|
+
UpdateDataRequestRequest$inboundSchema = objectType({
|
|
42894
|
+
id: numberType().int(),
|
|
42895
|
+
RequestBody: lazyType(() => UpdateDataRequestRequestBody$inboundSchema)
|
|
42896
|
+
}).transform((v2) => {
|
|
42897
|
+
return remap(v2, {
|
|
42898
|
+
RequestBody: "requestBody"
|
|
42899
|
+
});
|
|
42900
|
+
});
|
|
42901
|
+
UpdateDataRequestRequest$outboundSchema = objectType({
|
|
42902
|
+
id: numberType().int(),
|
|
42903
|
+
requestBody: lazyType(() => UpdateDataRequestRequestBody$outboundSchema)
|
|
42904
|
+
}).transform((v2) => {
|
|
42905
|
+
return remap(v2, {
|
|
42906
|
+
requestBody: "RequestBody"
|
|
42907
|
+
});
|
|
42908
|
+
});
|
|
42909
|
+
((UpdateDataRequestRequest$) => {
|
|
42910
|
+
UpdateDataRequestRequest$.inboundSchema = UpdateDataRequestRequest$inboundSchema;
|
|
42911
|
+
UpdateDataRequestRequest$.outboundSchema = UpdateDataRequestRequest$outboundSchema;
|
|
42912
|
+
})(UpdateDataRequestRequest$ ||= {});
|
|
42913
|
+
});
|
|
42914
|
+
|
|
42722
42915
|
// src/models/operations/updatesthewebhookendpointwiththegivenid.ts
|
|
42723
42916
|
var UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$;
|
|
42724
42917
|
var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
|
|
@@ -43079,14 +43272,17 @@ var init_vendorscanout = __esm(() => {
|
|
|
43079
43272
|
|
|
43080
43273
|
// src/models/operations/index.ts
|
|
43081
43274
|
var init_operations = __esm(() => {
|
|
43275
|
+
init_adddatarequestfile();
|
|
43082
43276
|
init_addvendorcredentialfile();
|
|
43083
43277
|
init_addvendormanagedbycompany();
|
|
43084
43278
|
init_changepassword();
|
|
43279
|
+
init_checkdownloadcode();
|
|
43085
43280
|
init_createnewvendorcredentialversion();
|
|
43086
43281
|
init_createorupdatebcr();
|
|
43087
43282
|
init_createvendorcompany();
|
|
43088
43283
|
init_createvendorregistration();
|
|
43089
43284
|
init_declinevendorcredential();
|
|
43285
|
+
init_deletedatarequestfile();
|
|
43090
43286
|
init_deletevendorcredentialfile();
|
|
43091
43287
|
init_deletevendormanagedbycompany();
|
|
43092
43288
|
init_expeditetimeremaining();
|
|
@@ -43123,7 +43319,9 @@ var init_operations = __esm(() => {
|
|
|
43123
43319
|
init_postauthenticate();
|
|
43124
43320
|
init_purchasescrubcredits();
|
|
43125
43321
|
init_securityzonecheckin();
|
|
43322
|
+
init_senddownloadcode();
|
|
43126
43323
|
init_submitvendorcredential();
|
|
43324
|
+
init_updatedatarequest();
|
|
43127
43325
|
init_updatesthewebhookendpointwiththegivenid();
|
|
43128
43326
|
init_updatevendorcredentialfile();
|
|
43129
43327
|
init_updatevendordetails();
|
|
@@ -43215,6 +43413,7 @@ async function $do(client, request, options) {
|
|
|
43215
43413
|
const securityInput = await extractSecurity(client._options.security);
|
|
43216
43414
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43217
43415
|
const context = {
|
|
43416
|
+
options: client._options,
|
|
43218
43417
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43219
43418
|
operationID: "listOrSearchCompanies",
|
|
43220
43419
|
oAuth2Scopes: [],
|
|
@@ -43231,6 +43430,7 @@ async function $do(client, request, options) {
|
|
|
43231
43430
|
headers,
|
|
43232
43431
|
query,
|
|
43233
43432
|
body,
|
|
43433
|
+
userAgent: client._options.userAgent,
|
|
43234
43434
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43235
43435
|
}, options);
|
|
43236
43436
|
if (!requestRes.ok) {
|
|
@@ -43329,32 +43529,34 @@ List or search companies.`,
|
|
|
43329
43529
|
};
|
|
43330
43530
|
});
|
|
43331
43531
|
|
|
43332
|
-
// src/funcs/
|
|
43333
|
-
function
|
|
43532
|
+
// src/funcs/dataRequestsAddDataRequestFile.ts
|
|
43533
|
+
function dataRequestsAddDataRequestFile(client, request, options) {
|
|
43334
43534
|
return new APIPromise($do2(client, request, options));
|
|
43335
43535
|
}
|
|
43336
43536
|
async function $do2(client, request, options) {
|
|
43337
|
-
const parsed = safeParse(request, (value) =>
|
|
43537
|
+
const parsed = safeParse(request, (value) => AddDataRequestFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43338
43538
|
if (!parsed.ok) {
|
|
43339
43539
|
return [parsed, { status: "invalid" }];
|
|
43340
43540
|
}
|
|
43341
43541
|
const payload = parsed.value;
|
|
43342
|
-
const body =
|
|
43542
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
43343
43543
|
const pathParams = {
|
|
43344
43544
|
id: encodeSimple("id", payload.id, {
|
|
43345
43545
|
explode: false,
|
|
43346
43546
|
charEncoding: "percent"
|
|
43347
43547
|
})
|
|
43348
43548
|
};
|
|
43349
|
-
const path = pathToFunc("/
|
|
43549
|
+
const path = pathToFunc("/data_requests/{id}/file")(pathParams);
|
|
43350
43550
|
const headers = new Headers(compactMap({
|
|
43551
|
+
"Content-Type": "application/json",
|
|
43351
43552
|
Accept: "application/json"
|
|
43352
43553
|
}));
|
|
43353
43554
|
const securityInput = await extractSecurity(client._options.security);
|
|
43354
43555
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43355
43556
|
const context = {
|
|
43557
|
+
options: client._options,
|
|
43356
43558
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43357
|
-
operationID: "
|
|
43559
|
+
operationID: "addDataRequestFile",
|
|
43358
43560
|
oAuth2Scopes: [],
|
|
43359
43561
|
resolvedSecurity: requestSecurity,
|
|
43360
43562
|
securitySource: client._options.security,
|
|
@@ -43363,11 +43565,12 @@ async function $do2(client, request, options) {
|
|
|
43363
43565
|
};
|
|
43364
43566
|
const requestRes = client._createRequest(context, {
|
|
43365
43567
|
security: requestSecurity,
|
|
43366
|
-
method: "
|
|
43568
|
+
method: "POST",
|
|
43367
43569
|
baseURL: options?.serverURL,
|
|
43368
43570
|
path,
|
|
43369
43571
|
headers,
|
|
43370
43572
|
body,
|
|
43573
|
+
userAgent: client._options.userAgent,
|
|
43371
43574
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43372
43575
|
}, options);
|
|
43373
43576
|
if (!requestRes.ok) {
|
|
@@ -43376,7 +43579,7 @@ async function $do2(client, request, options) {
|
|
|
43376
43579
|
const req = requestRes.value;
|
|
43377
43580
|
const doResult = await client._do(req, {
|
|
43378
43581
|
context,
|
|
43379
|
-
errorCodes: ["400", "401", "403", "
|
|
43582
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
43380
43583
|
retryConfig: context.retryConfig,
|
|
43381
43584
|
retryCodes: context.retryCodes
|
|
43382
43585
|
});
|
|
@@ -43387,42 +43590,42 @@ async function $do2(client, request, options) {
|
|
|
43387
43590
|
const responseFields = {
|
|
43388
43591
|
HttpMeta: { Response: response, Request: req }
|
|
43389
43592
|
};
|
|
43390
|
-
const [result] = await match(json(200,
|
|
43593
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43391
43594
|
if (!result.ok) {
|
|
43392
43595
|
return [result, { status: "complete", request: req, response }];
|
|
43393
43596
|
}
|
|
43394
43597
|
return [result, { status: "complete", request: req, response }];
|
|
43395
43598
|
}
|
|
43396
|
-
var
|
|
43599
|
+
var init_dataRequestsAddDataRequestFile = __esm(() => {
|
|
43600
|
+
init_esm();
|
|
43397
43601
|
init_encodings();
|
|
43398
43602
|
init_matchers();
|
|
43399
43603
|
init_primitives();
|
|
43400
43604
|
init_schemas();
|
|
43401
43605
|
init_security();
|
|
43402
43606
|
init_url();
|
|
43403
|
-
init_components();
|
|
43404
43607
|
init_errors2();
|
|
43405
43608
|
init_operations();
|
|
43406
43609
|
init_async();
|
|
43407
43610
|
});
|
|
43408
43611
|
|
|
43409
|
-
// src/mcp-server/tools/
|
|
43410
|
-
var args2, tool$
|
|
43411
|
-
var
|
|
43412
|
-
|
|
43612
|
+
// src/mcp-server/tools/dataRequestsAddDataRequestFile.ts
|
|
43613
|
+
var args2, tool$dataRequestsAddDataRequestFile;
|
|
43614
|
+
var init_dataRequestsAddDataRequestFile2 = __esm(() => {
|
|
43615
|
+
init_dataRequestsAddDataRequestFile();
|
|
43413
43616
|
init_operations();
|
|
43414
43617
|
init_tools();
|
|
43415
43618
|
args2 = {
|
|
43416
|
-
request:
|
|
43619
|
+
request: AddDataRequestFileRequest$inboundSchema
|
|
43417
43620
|
};
|
|
43418
|
-
tool$
|
|
43419
|
-
name: "
|
|
43420
|
-
description: `
|
|
43621
|
+
tool$dataRequestsAddDataRequestFile = {
|
|
43622
|
+
name: "data-requests-add-data-request-file",
|
|
43623
|
+
description: `Add vendor credential data request
|
|
43421
43624
|
|
|
43422
|
-
|
|
43625
|
+
It will set the vendor credential data request file attributes`,
|
|
43423
43626
|
args: args2,
|
|
43424
43627
|
tool: async (client, args3, ctx) => {
|
|
43425
|
-
const [result, apiCall] = await
|
|
43628
|
+
const [result, apiCall] = await dataRequestsAddDataRequestFile(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43426
43629
|
if (!result.ok) {
|
|
43427
43630
|
return {
|
|
43428
43631
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43435,40 +43638,33 @@ Retrieve an individual facility.`,
|
|
|
43435
43638
|
};
|
|
43436
43639
|
});
|
|
43437
43640
|
|
|
43438
|
-
// src/funcs/
|
|
43439
|
-
function
|
|
43641
|
+
// src/funcs/dataRequestsDeleteDataRequestFile.ts
|
|
43642
|
+
function dataRequestsDeleteDataRequestFile(client, request, options) {
|
|
43440
43643
|
return new APIPromise($do3(client, request, options));
|
|
43441
43644
|
}
|
|
43442
43645
|
async function $do3(client, request, options) {
|
|
43443
|
-
const parsed = safeParse(request, (value) =>
|
|
43646
|
+
const parsed = safeParse(request, (value) => DeleteDataRequestFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43444
43647
|
if (!parsed.ok) {
|
|
43445
|
-
return [
|
|
43648
|
+
return [parsed, { status: "invalid" }];
|
|
43446
43649
|
}
|
|
43447
43650
|
const payload = parsed.value;
|
|
43448
43651
|
const body = null;
|
|
43449
|
-
const
|
|
43450
|
-
|
|
43451
|
-
|
|
43452
|
-
|
|
43453
|
-
|
|
43454
|
-
|
|
43455
|
-
|
|
43456
|
-
latitude: payload.latitude,
|
|
43457
|
-
longitude: payload.longitude,
|
|
43458
|
-
name_like: payload.name_like,
|
|
43459
|
-
page: payload.page,
|
|
43460
|
-
sort: payload.sort,
|
|
43461
|
-
state_like: payload.state_like,
|
|
43462
|
-
system_id: payload.system_id
|
|
43463
|
-
}));
|
|
43652
|
+
const pathParams = {
|
|
43653
|
+
id: encodeSimple("id", payload.id, {
|
|
43654
|
+
explode: false,
|
|
43655
|
+
charEncoding: "percent"
|
|
43656
|
+
})
|
|
43657
|
+
};
|
|
43658
|
+
const path = pathToFunc("/data_requests/{id}/file")(pathParams);
|
|
43464
43659
|
const headers = new Headers(compactMap({
|
|
43465
43660
|
Accept: "application/json"
|
|
43466
43661
|
}));
|
|
43467
43662
|
const securityInput = await extractSecurity(client._options.security);
|
|
43468
43663
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43469
43664
|
const context = {
|
|
43665
|
+
options: client._options,
|
|
43470
43666
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43471
|
-
operationID: "
|
|
43667
|
+
operationID: "deleteDataRequestFile",
|
|
43472
43668
|
oAuth2Scopes: [],
|
|
43473
43669
|
resolvedSecurity: requestSecurity,
|
|
43474
43670
|
securitySource: client._options.security,
|
|
@@ -43477,16 +43673,16 @@ async function $do3(client, request, options) {
|
|
|
43477
43673
|
};
|
|
43478
43674
|
const requestRes = client._createRequest(context, {
|
|
43479
43675
|
security: requestSecurity,
|
|
43480
|
-
method: "
|
|
43676
|
+
method: "DELETE",
|
|
43481
43677
|
baseURL: options?.serverURL,
|
|
43482
43678
|
path,
|
|
43483
43679
|
headers,
|
|
43484
|
-
query,
|
|
43485
43680
|
body,
|
|
43681
|
+
userAgent: client._options.userAgent,
|
|
43486
43682
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43487
43683
|
}, options);
|
|
43488
43684
|
if (!requestRes.ok) {
|
|
43489
|
-
return [
|
|
43685
|
+
return [requestRes, { status: "invalid" }];
|
|
43490
43686
|
}
|
|
43491
43687
|
const req = requestRes.value;
|
|
43492
43688
|
const doResult = await client._do(req, {
|
|
@@ -43496,50 +43692,20 @@ async function $do3(client, request, options) {
|
|
|
43496
43692
|
retryCodes: context.retryCodes
|
|
43497
43693
|
});
|
|
43498
43694
|
if (!doResult.ok) {
|
|
43499
|
-
return [
|
|
43695
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43500
43696
|
}
|
|
43501
43697
|
const response = doResult.value;
|
|
43502
43698
|
const responseFields = {
|
|
43503
43699
|
HttpMeta: { Response: response, Request: req }
|
|
43504
43700
|
};
|
|
43505
|
-
const [result
|
|
43506
|
-
key: "Result"
|
|
43507
|
-
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43701
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43508
43702
|
if (!result.ok) {
|
|
43509
|
-
return [
|
|
43510
|
-
status: "complete",
|
|
43511
|
-
request: req,
|
|
43512
|
-
response
|
|
43513
|
-
}];
|
|
43703
|
+
return [result, { status: "complete", request: req, response }];
|
|
43514
43704
|
}
|
|
43515
|
-
|
|
43516
|
-
const page2 = request?.page ?? 1;
|
|
43517
|
-
const nextPage = page2 + 1;
|
|
43518
|
-
if (!responseData) {
|
|
43519
|
-
return { next: () => null };
|
|
43520
|
-
}
|
|
43521
|
-
const results = dlv(responseData, "items");
|
|
43522
|
-
if (!Array.isArray(results) || !results.length) {
|
|
43523
|
-
return { next: () => null };
|
|
43524
|
-
}
|
|
43525
|
-
const limit = request?.itemsPerPage ?? 0;
|
|
43526
|
-
if (results.length < limit) {
|
|
43527
|
-
return { next: () => null };
|
|
43528
|
-
}
|
|
43529
|
-
const nextVal = () => organizationsListOrSearchFacilities(client, {
|
|
43530
|
-
...request,
|
|
43531
|
-
page: nextPage
|
|
43532
|
-
}, options);
|
|
43533
|
-
return { next: nextVal, "~next": { page: nextPage } };
|
|
43534
|
-
};
|
|
43535
|
-
const page = { ...result, ...nextFunc(raw) };
|
|
43536
|
-
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
43537
|
-
status: "complete",
|
|
43538
|
-
request: req,
|
|
43539
|
-
response
|
|
43540
|
-
}];
|
|
43705
|
+
return [result, { status: "complete", request: req, response }];
|
|
43541
43706
|
}
|
|
43542
|
-
var
|
|
43707
|
+
var init_dataRequestsDeleteDataRequestFile = __esm(() => {
|
|
43708
|
+
init_esm();
|
|
43543
43709
|
init_encodings();
|
|
43544
43710
|
init_matchers();
|
|
43545
43711
|
init_primitives();
|
|
@@ -43549,80 +43715,65 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
43549
43715
|
init_errors2();
|
|
43550
43716
|
init_operations();
|
|
43551
43717
|
init_async();
|
|
43552
|
-
init_operations2();
|
|
43553
43718
|
});
|
|
43554
43719
|
|
|
43555
|
-
// src/mcp-server/tools/
|
|
43556
|
-
var args3, tool$
|
|
43557
|
-
var
|
|
43558
|
-
|
|
43720
|
+
// src/mcp-server/tools/dataRequestsDeleteDataRequestFile.ts
|
|
43721
|
+
var args3, tool$dataRequestsDeleteDataRequestFile;
|
|
43722
|
+
var init_dataRequestsDeleteDataRequestFile2 = __esm(() => {
|
|
43723
|
+
init_dataRequestsDeleteDataRequestFile();
|
|
43559
43724
|
init_operations();
|
|
43560
43725
|
init_tools();
|
|
43561
43726
|
args3 = {
|
|
43562
|
-
request:
|
|
43727
|
+
request: DeleteDataRequestFileRequest$inboundSchema
|
|
43563
43728
|
};
|
|
43564
|
-
tool$
|
|
43565
|
-
name: "
|
|
43566
|
-
description: `
|
|
43567
|
-
|
|
43568
|
-
List or search facilities.
|
|
43569
|
-
|
|
43570
|
-
Available \`expand\` scopes are:
|
|
43729
|
+
tool$dataRequestsDeleteDataRequestFile = {
|
|
43730
|
+
name: "data-requests-delete-data-request-file",
|
|
43731
|
+
description: `Delete vendor credential data request file
|
|
43571
43732
|
|
|
43572
|
-
|
|
43573
|
-
- facility.contacts
|
|
43574
|
-
- facility.vendor_counts
|
|
43575
|
-
- facility.flu_credential
|
|
43576
|
-
- facility.scrubs_policy
|
|
43577
|
-
- facility.system
|
|
43578
|
-
- facility.vendor_guest_policy
|
|
43579
|
-
- facility.vendor_policy
|
|
43580
|
-
- facility.visitor_policy
|
|
43581
|
-
- facility.workflow`,
|
|
43733
|
+
It will delete the vendor credential data request file`,
|
|
43582
43734
|
args: args3,
|
|
43583
43735
|
tool: async (client, args4, ctx) => {
|
|
43584
|
-
const [result, apiCall] = await
|
|
43736
|
+
const [result, apiCall] = await dataRequestsDeleteDataRequestFile(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43585
43737
|
if (!result.ok) {
|
|
43586
43738
|
return {
|
|
43587
43739
|
content: [{ type: "text", text: result.error.message }],
|
|
43588
43740
|
isError: true
|
|
43589
43741
|
};
|
|
43590
43742
|
}
|
|
43591
|
-
const value = result.value
|
|
43743
|
+
const value = result.value;
|
|
43592
43744
|
return formatResult(value, apiCall);
|
|
43593
43745
|
}
|
|
43594
43746
|
};
|
|
43595
43747
|
});
|
|
43596
43748
|
|
|
43597
|
-
// src/funcs/
|
|
43598
|
-
function
|
|
43749
|
+
// src/funcs/dataRequestsUpdateDataRequest.ts
|
|
43750
|
+
function dataRequestsUpdateDataRequest(client, request, options) {
|
|
43599
43751
|
return new APIPromise($do4(client, request, options));
|
|
43600
43752
|
}
|
|
43601
43753
|
async function $do4(client, request, options) {
|
|
43602
|
-
const parsed = safeParse(request, (value) =>
|
|
43754
|
+
const parsed = safeParse(request, (value) => UpdateDataRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43603
43755
|
if (!parsed.ok) {
|
|
43604
43756
|
return [parsed, { status: "invalid" }];
|
|
43605
43757
|
}
|
|
43606
43758
|
const payload = parsed.value;
|
|
43607
|
-
const body =
|
|
43759
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
43608
43760
|
const pathParams = {
|
|
43609
43761
|
id: encodeSimple("id", payload.id, {
|
|
43610
43762
|
explode: false,
|
|
43611
43763
|
charEncoding: "percent"
|
|
43612
43764
|
})
|
|
43613
43765
|
};
|
|
43614
|
-
const path = pathToFunc("/
|
|
43615
|
-
const query = encodeFormQuery({
|
|
43616
|
-
expand: payload.expand
|
|
43617
|
-
}, { explode: false });
|
|
43766
|
+
const path = pathToFunc("/data_requests/{id}")(pathParams);
|
|
43618
43767
|
const headers = new Headers(compactMap({
|
|
43768
|
+
"Content-Type": "application/json",
|
|
43619
43769
|
Accept: "application/json"
|
|
43620
43770
|
}));
|
|
43621
43771
|
const securityInput = await extractSecurity(client._options.security);
|
|
43622
43772
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43623
43773
|
const context = {
|
|
43774
|
+
options: client._options,
|
|
43624
43775
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43625
|
-
operationID: "
|
|
43776
|
+
operationID: "updateDataRequest",
|
|
43626
43777
|
oAuth2Scopes: [],
|
|
43627
43778
|
resolvedSecurity: requestSecurity,
|
|
43628
43779
|
securitySource: client._options.security,
|
|
@@ -43631,12 +43782,12 @@ async function $do4(client, request, options) {
|
|
|
43631
43782
|
};
|
|
43632
43783
|
const requestRes = client._createRequest(context, {
|
|
43633
43784
|
security: requestSecurity,
|
|
43634
|
-
method: "
|
|
43785
|
+
method: "PUT",
|
|
43635
43786
|
baseURL: options?.serverURL,
|
|
43636
43787
|
path,
|
|
43637
43788
|
headers,
|
|
43638
|
-
query,
|
|
43639
43789
|
body,
|
|
43790
|
+
userAgent: client._options.userAgent,
|
|
43640
43791
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43641
43792
|
}, options);
|
|
43642
43793
|
if (!requestRes.ok) {
|
|
@@ -43645,7 +43796,7 @@ async function $do4(client, request, options) {
|
|
|
43645
43796
|
const req = requestRes.value;
|
|
43646
43797
|
const doResult = await client._do(req, {
|
|
43647
43798
|
context,
|
|
43648
|
-
errorCodes: ["400", "401", "403", "
|
|
43799
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
43649
43800
|
retryConfig: context.retryConfig,
|
|
43650
43801
|
retryCodes: context.retryCodes
|
|
43651
43802
|
});
|
|
@@ -43656,49 +43807,430 @@ async function $do4(client, request, options) {
|
|
|
43656
43807
|
const responseFields = {
|
|
43657
43808
|
HttpMeta: { Response: response, Request: req }
|
|
43658
43809
|
};
|
|
43659
|
-
const [result] = await match(json(200,
|
|
43810
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43660
43811
|
if (!result.ok) {
|
|
43661
43812
|
return [result, { status: "complete", request: req, response }];
|
|
43662
43813
|
}
|
|
43663
43814
|
return [result, { status: "complete", request: req, response }];
|
|
43664
43815
|
}
|
|
43665
|
-
var
|
|
43816
|
+
var init_dataRequestsUpdateDataRequest = __esm(() => {
|
|
43817
|
+
init_esm();
|
|
43666
43818
|
init_encodings();
|
|
43667
43819
|
init_matchers();
|
|
43668
43820
|
init_primitives();
|
|
43669
43821
|
init_schemas();
|
|
43670
43822
|
init_security();
|
|
43671
43823
|
init_url();
|
|
43672
|
-
init_components();
|
|
43673
43824
|
init_errors2();
|
|
43674
43825
|
init_operations();
|
|
43675
43826
|
init_async();
|
|
43676
43827
|
});
|
|
43677
43828
|
|
|
43678
|
-
// src/mcp-server/tools/
|
|
43679
|
-
var args4, tool$
|
|
43680
|
-
var
|
|
43681
|
-
|
|
43829
|
+
// src/mcp-server/tools/dataRequestsUpdateDataRequest.ts
|
|
43830
|
+
var args4, tool$dataRequestsUpdateDataRequest;
|
|
43831
|
+
var init_dataRequestsUpdateDataRequest2 = __esm(() => {
|
|
43832
|
+
init_dataRequestsUpdateDataRequest();
|
|
43682
43833
|
init_operations();
|
|
43683
43834
|
init_tools();
|
|
43684
43835
|
args4 = {
|
|
43685
|
-
request:
|
|
43836
|
+
request: UpdateDataRequestRequest$inboundSchema
|
|
43686
43837
|
};
|
|
43687
|
-
tool$
|
|
43688
|
-
name: "
|
|
43689
|
-
description: `
|
|
43690
|
-
|
|
43691
|
-
Retrieve an individual support article.
|
|
43838
|
+
tool$dataRequestsUpdateDataRequest = {
|
|
43839
|
+
name: "data-requests-update-data-request",
|
|
43840
|
+
description: `Update vendor credential data request
|
|
43692
43841
|
|
|
43693
|
-
|
|
43694
|
-
|
|
43695
|
-
|
|
43696
|
-
|
|
43842
|
+
It will update the vendor credential data request attributes`,
|
|
43843
|
+
args: args4,
|
|
43844
|
+
tool: async (client, args5, ctx) => {
|
|
43845
|
+
const [result, apiCall] = await dataRequestsUpdateDataRequest(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43846
|
+
if (!result.ok) {
|
|
43847
|
+
return {
|
|
43848
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43849
|
+
isError: true
|
|
43850
|
+
};
|
|
43851
|
+
}
|
|
43852
|
+
const value = result.value;
|
|
43853
|
+
return formatResult(value, apiCall);
|
|
43854
|
+
}
|
|
43855
|
+
};
|
|
43856
|
+
});
|
|
43857
|
+
|
|
43858
|
+
// src/funcs/organizationsGetFacility.ts
|
|
43859
|
+
function organizationsGetFacility(client, request, options) {
|
|
43860
|
+
return new APIPromise($do5(client, request, options));
|
|
43861
|
+
}
|
|
43862
|
+
async function $do5(client, request, options) {
|
|
43863
|
+
const parsed = safeParse(request, (value) => GetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43864
|
+
if (!parsed.ok) {
|
|
43865
|
+
return [parsed, { status: "invalid" }];
|
|
43866
|
+
}
|
|
43867
|
+
const payload = parsed.value;
|
|
43868
|
+
const body = null;
|
|
43869
|
+
const pathParams = {
|
|
43870
|
+
id: encodeSimple("id", payload.id, {
|
|
43871
|
+
explode: false,
|
|
43872
|
+
charEncoding: "percent"
|
|
43873
|
+
})
|
|
43874
|
+
};
|
|
43875
|
+
const path = pathToFunc("/facilities/{id}")(pathParams);
|
|
43876
|
+
const headers = new Headers(compactMap({
|
|
43877
|
+
Accept: "application/json"
|
|
43878
|
+
}));
|
|
43879
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
43880
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43881
|
+
const context = {
|
|
43882
|
+
options: client._options,
|
|
43883
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43884
|
+
operationID: "getFacility",
|
|
43885
|
+
oAuth2Scopes: [],
|
|
43886
|
+
resolvedSecurity: requestSecurity,
|
|
43887
|
+
securitySource: client._options.security,
|
|
43888
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43889
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43890
|
+
};
|
|
43891
|
+
const requestRes = client._createRequest(context, {
|
|
43892
|
+
security: requestSecurity,
|
|
43893
|
+
method: "GET",
|
|
43894
|
+
baseURL: options?.serverURL,
|
|
43895
|
+
path,
|
|
43896
|
+
headers,
|
|
43897
|
+
body,
|
|
43898
|
+
userAgent: client._options.userAgent,
|
|
43899
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43900
|
+
}, options);
|
|
43901
|
+
if (!requestRes.ok) {
|
|
43902
|
+
return [requestRes, { status: "invalid" }];
|
|
43903
|
+
}
|
|
43904
|
+
const req = requestRes.value;
|
|
43905
|
+
const doResult = await client._do(req, {
|
|
43906
|
+
context,
|
|
43907
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
43908
|
+
retryConfig: context.retryConfig,
|
|
43909
|
+
retryCodes: context.retryCodes
|
|
43910
|
+
});
|
|
43911
|
+
if (!doResult.ok) {
|
|
43912
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43913
|
+
}
|
|
43914
|
+
const response = doResult.value;
|
|
43915
|
+
const responseFields = {
|
|
43916
|
+
HttpMeta: { Response: response, Request: req }
|
|
43917
|
+
};
|
|
43918
|
+
const [result] = await match(json(200, Facility$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43919
|
+
if (!result.ok) {
|
|
43920
|
+
return [result, { status: "complete", request: req, response }];
|
|
43921
|
+
}
|
|
43922
|
+
return [result, { status: "complete", request: req, response }];
|
|
43923
|
+
}
|
|
43924
|
+
var init_organizationsGetFacility = __esm(() => {
|
|
43925
|
+
init_encodings();
|
|
43926
|
+
init_matchers();
|
|
43927
|
+
init_primitives();
|
|
43928
|
+
init_schemas();
|
|
43929
|
+
init_security();
|
|
43930
|
+
init_url();
|
|
43931
|
+
init_components();
|
|
43932
|
+
init_errors2();
|
|
43933
|
+
init_operations();
|
|
43934
|
+
init_async();
|
|
43935
|
+
});
|
|
43936
|
+
|
|
43937
|
+
// src/mcp-server/tools/organizationsGetFacility.ts
|
|
43938
|
+
var args5, tool$organizationsGetFacility;
|
|
43939
|
+
var init_organizationsGetFacility2 = __esm(() => {
|
|
43940
|
+
init_organizationsGetFacility();
|
|
43941
|
+
init_operations();
|
|
43942
|
+
init_tools();
|
|
43943
|
+
args5 = {
|
|
43944
|
+
request: GetFacilityRequest$inboundSchema
|
|
43945
|
+
};
|
|
43946
|
+
tool$organizationsGetFacility = {
|
|
43947
|
+
name: "organizations-get-facility",
|
|
43948
|
+
description: `Get facility
|
|
43949
|
+
|
|
43950
|
+
Retrieve an individual facility.`,
|
|
43951
|
+
args: args5,
|
|
43952
|
+
tool: async (client, args6, ctx) => {
|
|
43953
|
+
const [result, apiCall] = await organizationsGetFacility(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43954
|
+
if (!result.ok) {
|
|
43955
|
+
return {
|
|
43956
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43957
|
+
isError: true
|
|
43958
|
+
};
|
|
43959
|
+
}
|
|
43960
|
+
const value = result.value;
|
|
43961
|
+
return formatResult(value, apiCall);
|
|
43962
|
+
}
|
|
43963
|
+
};
|
|
43964
|
+
});
|
|
43965
|
+
|
|
43966
|
+
// src/funcs/organizationsListOrSearchFacilities.ts
|
|
43967
|
+
function organizationsListOrSearchFacilities(client, request, options) {
|
|
43968
|
+
return new APIPromise($do6(client, request, options));
|
|
43969
|
+
}
|
|
43970
|
+
async function $do6(client, request, options) {
|
|
43971
|
+
const parsed = safeParse(request, (value) => ListOrSearchFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43972
|
+
if (!parsed.ok) {
|
|
43973
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
43974
|
+
}
|
|
43975
|
+
const payload = parsed.value;
|
|
43976
|
+
const body = null;
|
|
43977
|
+
const path = pathToFunc("/facilities")();
|
|
43978
|
+
const query = queryJoin(encodeFormQuery({
|
|
43979
|
+
expand: payload.expand
|
|
43980
|
+
}, { explode: false }), encodeFormQuery({
|
|
43981
|
+
active_status: payload.active_status,
|
|
43982
|
+
desc: payload.desc,
|
|
43983
|
+
items_per_page: payload.items_per_page,
|
|
43984
|
+
latitude: payload.latitude,
|
|
43985
|
+
longitude: payload.longitude,
|
|
43986
|
+
name_like: payload.name_like,
|
|
43987
|
+
page: payload.page,
|
|
43988
|
+
sort: payload.sort,
|
|
43989
|
+
state_like: payload.state_like,
|
|
43990
|
+
system_id: payload.system_id
|
|
43991
|
+
}));
|
|
43992
|
+
const headers = new Headers(compactMap({
|
|
43993
|
+
Accept: "application/json"
|
|
43994
|
+
}));
|
|
43995
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
43996
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43997
|
+
const context = {
|
|
43998
|
+
options: client._options,
|
|
43999
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44000
|
+
operationID: "listOrSearchFacilities",
|
|
44001
|
+
oAuth2Scopes: [],
|
|
44002
|
+
resolvedSecurity: requestSecurity,
|
|
44003
|
+
securitySource: client._options.security,
|
|
44004
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
44005
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
44006
|
+
};
|
|
44007
|
+
const requestRes = client._createRequest(context, {
|
|
44008
|
+
security: requestSecurity,
|
|
44009
|
+
method: "GET",
|
|
44010
|
+
baseURL: options?.serverURL,
|
|
44011
|
+
path,
|
|
44012
|
+
headers,
|
|
44013
|
+
query,
|
|
44014
|
+
body,
|
|
44015
|
+
userAgent: client._options.userAgent,
|
|
44016
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44017
|
+
}, options);
|
|
44018
|
+
if (!requestRes.ok) {
|
|
44019
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
44020
|
+
}
|
|
44021
|
+
const req = requestRes.value;
|
|
44022
|
+
const doResult = await client._do(req, {
|
|
44023
|
+
context,
|
|
44024
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
44025
|
+
retryConfig: context.retryConfig,
|
|
44026
|
+
retryCodes: context.retryCodes
|
|
44027
|
+
});
|
|
44028
|
+
if (!doResult.ok) {
|
|
44029
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
44030
|
+
}
|
|
44031
|
+
const response = doResult.value;
|
|
44032
|
+
const responseFields = {
|
|
44033
|
+
HttpMeta: { Response: response, Request: req }
|
|
44034
|
+
};
|
|
44035
|
+
const [result, raw] = await match(json(200, ListOrSearchFacilitiesResponse$inboundSchema, {
|
|
44036
|
+
key: "Result"
|
|
44037
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44038
|
+
if (!result.ok) {
|
|
44039
|
+
return [haltIterator(result), {
|
|
44040
|
+
status: "complete",
|
|
44041
|
+
request: req,
|
|
44042
|
+
response
|
|
44043
|
+
}];
|
|
44044
|
+
}
|
|
44045
|
+
const nextFunc = (responseData) => {
|
|
44046
|
+
const page2 = request?.page ?? 1;
|
|
44047
|
+
const nextPage = page2 + 1;
|
|
44048
|
+
if (!responseData) {
|
|
44049
|
+
return { next: () => null };
|
|
44050
|
+
}
|
|
44051
|
+
const results = dlv(responseData, "items");
|
|
44052
|
+
if (!Array.isArray(results) || !results.length) {
|
|
44053
|
+
return { next: () => null };
|
|
44054
|
+
}
|
|
44055
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
44056
|
+
if (results.length < limit) {
|
|
44057
|
+
return { next: () => null };
|
|
44058
|
+
}
|
|
44059
|
+
const nextVal = () => organizationsListOrSearchFacilities(client, {
|
|
44060
|
+
...request,
|
|
44061
|
+
page: nextPage
|
|
44062
|
+
}, options);
|
|
44063
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
44064
|
+
};
|
|
44065
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
44066
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
44067
|
+
status: "complete",
|
|
44068
|
+
request: req,
|
|
44069
|
+
response
|
|
44070
|
+
}];
|
|
44071
|
+
}
|
|
44072
|
+
var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
44073
|
+
init_encodings();
|
|
44074
|
+
init_matchers();
|
|
44075
|
+
init_primitives();
|
|
44076
|
+
init_schemas();
|
|
44077
|
+
init_security();
|
|
44078
|
+
init_url();
|
|
44079
|
+
init_errors2();
|
|
44080
|
+
init_operations();
|
|
44081
|
+
init_async();
|
|
44082
|
+
init_operations2();
|
|
44083
|
+
});
|
|
44084
|
+
|
|
44085
|
+
// src/mcp-server/tools/organizationsListOrSearchFacilities.ts
|
|
44086
|
+
var args6, tool$organizationsListOrSearchFacilities;
|
|
44087
|
+
var init_organizationsListOrSearchFacilities2 = __esm(() => {
|
|
44088
|
+
init_organizationsListOrSearchFacilities();
|
|
44089
|
+
init_operations();
|
|
44090
|
+
init_tools();
|
|
44091
|
+
args6 = {
|
|
44092
|
+
request: ListOrSearchFacilitiesRequest$inboundSchema
|
|
44093
|
+
};
|
|
44094
|
+
tool$organizationsListOrSearchFacilities = {
|
|
44095
|
+
name: "organizations-list-or-search-facilities",
|
|
44096
|
+
description: `List or search facilities
|
|
44097
|
+
|
|
44098
|
+
List or search facilities.
|
|
44099
|
+
|
|
44100
|
+
Available \`expand\` scopes are:
|
|
44101
|
+
|
|
44102
|
+
- facility.appointment_policy
|
|
44103
|
+
- facility.contacts
|
|
44104
|
+
- facility.vendor_counts
|
|
44105
|
+
- facility.flu_credential
|
|
44106
|
+
- facility.scrubs_policy
|
|
44107
|
+
- facility.system
|
|
44108
|
+
- facility.vendor_guest_policy
|
|
44109
|
+
- facility.vendor_policy
|
|
44110
|
+
- facility.visitor_policy
|
|
44111
|
+
- facility.workflow`,
|
|
44112
|
+
args: args6,
|
|
44113
|
+
tool: async (client, args7, ctx) => {
|
|
44114
|
+
const [result, apiCall] = await organizationsListOrSearchFacilities(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44115
|
+
if (!result.ok) {
|
|
44116
|
+
return {
|
|
44117
|
+
content: [{ type: "text", text: result.error.message }],
|
|
44118
|
+
isError: true
|
|
44119
|
+
};
|
|
44120
|
+
}
|
|
44121
|
+
const value = result.value.result;
|
|
44122
|
+
return formatResult(value, apiCall);
|
|
44123
|
+
}
|
|
44124
|
+
};
|
|
44125
|
+
});
|
|
44126
|
+
|
|
44127
|
+
// src/funcs/supportArticlesGetSupportArticle.ts
|
|
44128
|
+
function supportArticlesGetSupportArticle(client, request, options) {
|
|
44129
|
+
return new APIPromise($do7(client, request, options));
|
|
44130
|
+
}
|
|
44131
|
+
async function $do7(client, request, options) {
|
|
44132
|
+
const parsed = safeParse(request, (value) => GetSupportArticleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44133
|
+
if (!parsed.ok) {
|
|
44134
|
+
return [parsed, { status: "invalid" }];
|
|
44135
|
+
}
|
|
44136
|
+
const payload = parsed.value;
|
|
44137
|
+
const body = null;
|
|
44138
|
+
const pathParams = {
|
|
44139
|
+
id: encodeSimple("id", payload.id, {
|
|
44140
|
+
explode: false,
|
|
44141
|
+
charEncoding: "percent"
|
|
44142
|
+
})
|
|
44143
|
+
};
|
|
44144
|
+
const path = pathToFunc("/support_articles/{id}")(pathParams);
|
|
44145
|
+
const query = encodeFormQuery({
|
|
44146
|
+
expand: payload.expand
|
|
44147
|
+
}, { explode: false });
|
|
44148
|
+
const headers = new Headers(compactMap({
|
|
44149
|
+
Accept: "application/json"
|
|
44150
|
+
}));
|
|
44151
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
44152
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44153
|
+
const context = {
|
|
44154
|
+
options: client._options,
|
|
44155
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44156
|
+
operationID: "getSupportArticle",
|
|
44157
|
+
oAuth2Scopes: [],
|
|
44158
|
+
resolvedSecurity: requestSecurity,
|
|
44159
|
+
securitySource: client._options.security,
|
|
44160
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
44161
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
44162
|
+
};
|
|
44163
|
+
const requestRes = client._createRequest(context, {
|
|
44164
|
+
security: requestSecurity,
|
|
44165
|
+
method: "GET",
|
|
44166
|
+
baseURL: options?.serverURL,
|
|
44167
|
+
path,
|
|
44168
|
+
headers,
|
|
44169
|
+
query,
|
|
44170
|
+
body,
|
|
44171
|
+
userAgent: client._options.userAgent,
|
|
44172
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44173
|
+
}, options);
|
|
44174
|
+
if (!requestRes.ok) {
|
|
44175
|
+
return [requestRes, { status: "invalid" }];
|
|
44176
|
+
}
|
|
44177
|
+
const req = requestRes.value;
|
|
44178
|
+
const doResult = await client._do(req, {
|
|
44179
|
+
context,
|
|
44180
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
44181
|
+
retryConfig: context.retryConfig,
|
|
44182
|
+
retryCodes: context.retryCodes
|
|
44183
|
+
});
|
|
44184
|
+
if (!doResult.ok) {
|
|
44185
|
+
return [doResult, { status: "request-error", request: req }];
|
|
44186
|
+
}
|
|
44187
|
+
const response = doResult.value;
|
|
44188
|
+
const responseFields = {
|
|
44189
|
+
HttpMeta: { Response: response, Request: req }
|
|
44190
|
+
};
|
|
44191
|
+
const [result] = await match(json(200, SupportArticle$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44192
|
+
if (!result.ok) {
|
|
44193
|
+
return [result, { status: "complete", request: req, response }];
|
|
44194
|
+
}
|
|
44195
|
+
return [result, { status: "complete", request: req, response }];
|
|
44196
|
+
}
|
|
44197
|
+
var init_supportArticlesGetSupportArticle = __esm(() => {
|
|
44198
|
+
init_encodings();
|
|
44199
|
+
init_matchers();
|
|
44200
|
+
init_primitives();
|
|
44201
|
+
init_schemas();
|
|
44202
|
+
init_security();
|
|
44203
|
+
init_url();
|
|
44204
|
+
init_components();
|
|
44205
|
+
init_errors2();
|
|
44206
|
+
init_operations();
|
|
44207
|
+
init_async();
|
|
44208
|
+
});
|
|
44209
|
+
|
|
44210
|
+
// src/mcp-server/tools/supportArticlesGetSupportArticle.ts
|
|
44211
|
+
var args7, tool$supportArticlesGetSupportArticle;
|
|
44212
|
+
var init_supportArticlesGetSupportArticle2 = __esm(() => {
|
|
44213
|
+
init_supportArticlesGetSupportArticle();
|
|
44214
|
+
init_operations();
|
|
44215
|
+
init_tools();
|
|
44216
|
+
args7 = {
|
|
44217
|
+
request: GetSupportArticleRequest$inboundSchema
|
|
44218
|
+
};
|
|
44219
|
+
tool$supportArticlesGetSupportArticle = {
|
|
44220
|
+
name: "support-articles-get-support-article",
|
|
44221
|
+
description: `Get support article
|
|
44222
|
+
|
|
44223
|
+
Retrieve an individual support article.
|
|
44224
|
+
|
|
44225
|
+
Available \`expand\` scopes are:
|
|
44226
|
+
|
|
44227
|
+
- support_article.description
|
|
44228
|
+
- support_article.published
|
|
43697
44229
|
- support_article.notes
|
|
43698
44230
|
- support_article.support_category`,
|
|
43699
|
-
args:
|
|
43700
|
-
tool: async (client,
|
|
43701
|
-
const [result, apiCall] = await supportArticlesGetSupportArticle(client,
|
|
44231
|
+
args: args7,
|
|
44232
|
+
tool: async (client, args8, ctx) => {
|
|
44233
|
+
const [result, apiCall] = await supportArticlesGetSupportArticle(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43702
44234
|
if (!result.ok) {
|
|
43703
44235
|
return {
|
|
43704
44236
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43713,9 +44245,9 @@ Available \`expand\` scopes are:
|
|
|
43713
44245
|
|
|
43714
44246
|
// src/funcs/supportArticlesListOrSearchSupportArticles.ts
|
|
43715
44247
|
function supportArticlesListOrSearchSupportArticles(client, request, options) {
|
|
43716
|
-
return new APIPromise($
|
|
44248
|
+
return new APIPromise($do8(client, request, options));
|
|
43717
44249
|
}
|
|
43718
|
-
async function $
|
|
44250
|
+
async function $do8(client, request, options) {
|
|
43719
44251
|
const parsed = safeParse(request, (value) => ListOrSearchSupportArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43720
44252
|
if (!parsed.ok) {
|
|
43721
44253
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -43737,6 +44269,7 @@ async function $do5(client, request, options) {
|
|
|
43737
44269
|
const securityInput = await extractSecurity(client._options.security);
|
|
43738
44270
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43739
44271
|
const context = {
|
|
44272
|
+
options: client._options,
|
|
43740
44273
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43741
44274
|
operationID: "listOrSearchSupportArticles",
|
|
43742
44275
|
oAuth2Scopes: [],
|
|
@@ -43753,6 +44286,7 @@ async function $do5(client, request, options) {
|
|
|
43753
44286
|
headers,
|
|
43754
44287
|
query,
|
|
43755
44288
|
body,
|
|
44289
|
+
userAgent: client._options.userAgent,
|
|
43756
44290
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43757
44291
|
}, options);
|
|
43758
44292
|
if (!requestRes.ok) {
|
|
@@ -43823,12 +44357,12 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
|
|
|
43823
44357
|
});
|
|
43824
44358
|
|
|
43825
44359
|
// src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts
|
|
43826
|
-
var
|
|
44360
|
+
var args8, tool$supportArticlesListOrSearchSupportArticles;
|
|
43827
44361
|
var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
43828
44362
|
init_supportArticlesListOrSearchSupportArticles();
|
|
43829
44363
|
init_operations();
|
|
43830
44364
|
init_tools();
|
|
43831
|
-
|
|
44365
|
+
args8 = {
|
|
43832
44366
|
request: ListOrSearchSupportArticlesRequest$inboundSchema
|
|
43833
44367
|
};
|
|
43834
44368
|
tool$supportArticlesListOrSearchSupportArticles = {
|
|
@@ -43836,9 +44370,9 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
|
43836
44370
|
description: `List or search support articles
|
|
43837
44371
|
|
|
43838
44372
|
List or search support articles for FAQ.`,
|
|
43839
|
-
args:
|
|
43840
|
-
tool: async (client,
|
|
43841
|
-
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client,
|
|
44373
|
+
args: args8,
|
|
44374
|
+
tool: async (client, args9, ctx) => {
|
|
44375
|
+
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43842
44376
|
if (!result.ok) {
|
|
43843
44377
|
return {
|
|
43844
44378
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43853,9 +44387,9 @@ List or search support articles for FAQ.`,
|
|
|
43853
44387
|
|
|
43854
44388
|
// src/funcs/usersChangePassword.ts
|
|
43855
44389
|
function usersChangePassword(client, request, options) {
|
|
43856
|
-
return new APIPromise($
|
|
44390
|
+
return new APIPromise($do9(client, request, options));
|
|
43857
44391
|
}
|
|
43858
|
-
async function $
|
|
44392
|
+
async function $do9(client, request, options) {
|
|
43859
44393
|
const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43860
44394
|
if (!parsed.ok) {
|
|
43861
44395
|
return [parsed, { status: "invalid" }];
|
|
@@ -43876,6 +44410,7 @@ async function $do6(client, request, options) {
|
|
|
43876
44410
|
const securityInput = await extractSecurity(client._options.security);
|
|
43877
44411
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43878
44412
|
const context = {
|
|
44413
|
+
options: client._options,
|
|
43879
44414
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43880
44415
|
operationID: "changePassword",
|
|
43881
44416
|
oAuth2Scopes: [],
|
|
@@ -43891,6 +44426,7 @@ async function $do6(client, request, options) {
|
|
|
43891
44426
|
path,
|
|
43892
44427
|
headers,
|
|
43893
44428
|
body,
|
|
44429
|
+
userAgent: client._options.userAgent,
|
|
43894
44430
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43895
44431
|
}, options);
|
|
43896
44432
|
if (!requestRes.ok) {
|
|
@@ -43929,12 +44465,12 @@ var init_usersChangePassword = __esm(() => {
|
|
|
43929
44465
|
});
|
|
43930
44466
|
|
|
43931
44467
|
// src/mcp-server/tools/usersChangePassword.ts
|
|
43932
|
-
var
|
|
44468
|
+
var args9, tool$usersChangePassword;
|
|
43933
44469
|
var init_usersChangePassword2 = __esm(() => {
|
|
43934
44470
|
init_usersChangePassword();
|
|
43935
44471
|
init_operations();
|
|
43936
44472
|
init_tools();
|
|
43937
|
-
|
|
44473
|
+
args9 = {
|
|
43938
44474
|
request: ChangePasswordRequest$inboundSchema
|
|
43939
44475
|
};
|
|
43940
44476
|
tool$usersChangePassword = {
|
|
@@ -43942,9 +44478,9 @@ var init_usersChangePassword2 = __esm(() => {
|
|
|
43942
44478
|
description: `Change password
|
|
43943
44479
|
|
|
43944
44480
|
Change the user's password to the new passed as parameter`,
|
|
43945
|
-
args:
|
|
43946
|
-
tool: async (client,
|
|
43947
|
-
const [result, apiCall] = await usersChangePassword(client,
|
|
44481
|
+
args: args9,
|
|
44482
|
+
tool: async (client, args10, ctx) => {
|
|
44483
|
+
const [result, apiCall] = await usersChangePassword(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43948
44484
|
if (!result.ok) {
|
|
43949
44485
|
return {
|
|
43950
44486
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43959,9 +44495,9 @@ Change the user's password to the new passed as parameter`,
|
|
|
43959
44495
|
|
|
43960
44496
|
// src/funcs/usersGetCurrentUser.ts
|
|
43961
44497
|
function usersGetCurrentUser(client, options) {
|
|
43962
|
-
return new APIPromise($
|
|
44498
|
+
return new APIPromise($do10(client, options));
|
|
43963
44499
|
}
|
|
43964
|
-
async function $
|
|
44500
|
+
async function $do10(client, options) {
|
|
43965
44501
|
const path = pathToFunc("/users/me")();
|
|
43966
44502
|
const headers = new Headers(compactMap({
|
|
43967
44503
|
Accept: "application/json"
|
|
@@ -43969,6 +44505,7 @@ async function $do7(client, options) {
|
|
|
43969
44505
|
const securityInput = await extractSecurity(client._options.security);
|
|
43970
44506
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43971
44507
|
const context = {
|
|
44508
|
+
options: client._options,
|
|
43972
44509
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43973
44510
|
operationID: "getCurrentUser",
|
|
43974
44511
|
oAuth2Scopes: [],
|
|
@@ -43983,6 +44520,7 @@ async function $do7(client, options) {
|
|
|
43983
44520
|
baseURL: options?.serverURL,
|
|
43984
44521
|
path,
|
|
43985
44522
|
headers,
|
|
44523
|
+
userAgent: client._options.userAgent,
|
|
43986
44524
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43987
44525
|
}, options);
|
|
43988
44526
|
if (!requestRes.ok) {
|
|
@@ -44044,9 +44582,9 @@ Returns a user object for the user represented by the authorization token`,
|
|
|
44044
44582
|
|
|
44045
44583
|
// src/funcs/usersGetUserById.ts
|
|
44046
44584
|
function usersGetUserById(client, request, options) {
|
|
44047
|
-
return new APIPromise($
|
|
44585
|
+
return new APIPromise($do11(client, request, options));
|
|
44048
44586
|
}
|
|
44049
|
-
async function $
|
|
44587
|
+
async function $do11(client, request, options) {
|
|
44050
44588
|
const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44051
44589
|
if (!parsed.ok) {
|
|
44052
44590
|
return [parsed, { status: "invalid" }];
|
|
@@ -44066,6 +44604,7 @@ async function $do8(client, request, options) {
|
|
|
44066
44604
|
const securityInput = await extractSecurity(client._options.security);
|
|
44067
44605
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44068
44606
|
const context = {
|
|
44607
|
+
options: client._options,
|
|
44069
44608
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44070
44609
|
operationID: "getUserById",
|
|
44071
44610
|
oAuth2Scopes: [],
|
|
@@ -44081,6 +44620,7 @@ async function $do8(client, request, options) {
|
|
|
44081
44620
|
path,
|
|
44082
44621
|
headers,
|
|
44083
44622
|
body,
|
|
44623
|
+
userAgent: client._options.userAgent,
|
|
44084
44624
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44085
44625
|
}, options);
|
|
44086
44626
|
if (!requestRes.ok) {
|
|
@@ -44120,12 +44660,12 @@ var init_usersGetUserById = __esm(() => {
|
|
|
44120
44660
|
});
|
|
44121
44661
|
|
|
44122
44662
|
// src/mcp-server/tools/usersGetUserById.ts
|
|
44123
|
-
var
|
|
44663
|
+
var args10, tool$usersGetUserById;
|
|
44124
44664
|
var init_usersGetUserById2 = __esm(() => {
|
|
44125
44665
|
init_usersGetUserById();
|
|
44126
44666
|
init_operations();
|
|
44127
44667
|
init_tools();
|
|
44128
|
-
|
|
44668
|
+
args10 = {
|
|
44129
44669
|
request: GetUserByIdRequest$inboundSchema
|
|
44130
44670
|
};
|
|
44131
44671
|
tool$usersGetUserById = {
|
|
@@ -44133,9 +44673,9 @@ var init_usersGetUserById2 = __esm(() => {
|
|
|
44133
44673
|
description: `Get user by id
|
|
44134
44674
|
|
|
44135
44675
|
Returns a user object for the user represented by the identifier in the path.`,
|
|
44136
|
-
args:
|
|
44137
|
-
tool: async (client,
|
|
44138
|
-
const [result, apiCall] = await usersGetUserById(client,
|
|
44676
|
+
args: args10,
|
|
44677
|
+
tool: async (client, args11, ctx) => {
|
|
44678
|
+
const [result, apiCall] = await usersGetUserById(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44139
44679
|
if (!result.ok) {
|
|
44140
44680
|
return {
|
|
44141
44681
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44150,9 +44690,9 @@ Returns a user object for the user represented by the identifier in the path.`,
|
|
|
44150
44690
|
|
|
44151
44691
|
// src/funcs/usersMagiclink.ts
|
|
44152
44692
|
function usersMagiclink(client, request, options) {
|
|
44153
|
-
return new APIPromise($
|
|
44693
|
+
return new APIPromise($do12(client, request, options));
|
|
44154
44694
|
}
|
|
44155
|
-
async function $
|
|
44695
|
+
async function $do12(client, request, options) {
|
|
44156
44696
|
const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44157
44697
|
if (!parsed.ok) {
|
|
44158
44698
|
return [parsed, { status: "invalid" }];
|
|
@@ -44167,6 +44707,7 @@ async function $do9(client, request, options) {
|
|
|
44167
44707
|
const securityInput = await extractSecurity(client._options.security);
|
|
44168
44708
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44169
44709
|
const context = {
|
|
44710
|
+
options: client._options,
|
|
44170
44711
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44171
44712
|
operationID: "magiclink",
|
|
44172
44713
|
oAuth2Scopes: [],
|
|
@@ -44182,6 +44723,7 @@ async function $do9(client, request, options) {
|
|
|
44182
44723
|
path,
|
|
44183
44724
|
headers,
|
|
44184
44725
|
body,
|
|
44726
|
+
userAgent: client._options.userAgent,
|
|
44185
44727
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44186
44728
|
}, options);
|
|
44187
44729
|
if (!requestRes.ok) {
|
|
@@ -44220,12 +44762,12 @@ var init_usersMagiclink = __esm(() => {
|
|
|
44220
44762
|
});
|
|
44221
44763
|
|
|
44222
44764
|
// src/mcp-server/tools/usersMagiclink.ts
|
|
44223
|
-
var
|
|
44765
|
+
var args11, tool$usersMagiclink;
|
|
44224
44766
|
var init_usersMagiclink2 = __esm(() => {
|
|
44225
44767
|
init_usersMagiclink();
|
|
44226
44768
|
init_operations();
|
|
44227
44769
|
init_tools();
|
|
44228
|
-
|
|
44770
|
+
args11 = {
|
|
44229
44771
|
request: MagiclinkRequestBody$inboundSchema
|
|
44230
44772
|
};
|
|
44231
44773
|
tool$usersMagiclink = {
|
|
@@ -44233,9 +44775,9 @@ var init_usersMagiclink2 = __esm(() => {
|
|
|
44233
44775
|
description: `Magic link
|
|
44234
44776
|
|
|
44235
44777
|
It sends an email with a magic link to allow the user to log in.`,
|
|
44236
|
-
args:
|
|
44237
|
-
tool: async (client,
|
|
44238
|
-
const [result, apiCall] = await usersMagiclink(client,
|
|
44778
|
+
args: args11,
|
|
44779
|
+
tool: async (client, args12, ctx) => {
|
|
44780
|
+
const [result, apiCall] = await usersMagiclink(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44239
44781
|
if (!result.ok) {
|
|
44240
44782
|
return {
|
|
44241
44783
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44250,9 +44792,9 @@ It sends an email with a magic link to allow the user to log in.`,
|
|
|
44250
44792
|
|
|
44251
44793
|
// src/funcs/usersPassword.ts
|
|
44252
44794
|
function usersPassword(client, request, options) {
|
|
44253
|
-
return new APIPromise($
|
|
44795
|
+
return new APIPromise($do13(client, request, options));
|
|
44254
44796
|
}
|
|
44255
|
-
async function $
|
|
44797
|
+
async function $do13(client, request, options) {
|
|
44256
44798
|
const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44257
44799
|
if (!parsed.ok) {
|
|
44258
44800
|
return [parsed, { status: "invalid" }];
|
|
@@ -44267,6 +44809,7 @@ async function $do10(client, request, options) {
|
|
|
44267
44809
|
const securityInput = await extractSecurity(client._options.security);
|
|
44268
44810
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44269
44811
|
const context = {
|
|
44812
|
+
options: client._options,
|
|
44270
44813
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44271
44814
|
operationID: "password",
|
|
44272
44815
|
oAuth2Scopes: [],
|
|
@@ -44282,6 +44825,7 @@ async function $do10(client, request, options) {
|
|
|
44282
44825
|
path,
|
|
44283
44826
|
headers,
|
|
44284
44827
|
body,
|
|
44828
|
+
userAgent: client._options.userAgent,
|
|
44285
44829
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44286
44830
|
}, options);
|
|
44287
44831
|
if (!requestRes.ok) {
|
|
@@ -44320,12 +44864,12 @@ var init_usersPassword = __esm(() => {
|
|
|
44320
44864
|
});
|
|
44321
44865
|
|
|
44322
44866
|
// src/mcp-server/tools/usersPassword.ts
|
|
44323
|
-
var
|
|
44867
|
+
var args12, tool$usersPassword;
|
|
44324
44868
|
var init_usersPassword2 = __esm(() => {
|
|
44325
44869
|
init_usersPassword();
|
|
44326
44870
|
init_operations();
|
|
44327
44871
|
init_tools();
|
|
44328
|
-
|
|
44872
|
+
args12 = {
|
|
44329
44873
|
request: PasswordRequestBody$inboundSchema
|
|
44330
44874
|
};
|
|
44331
44875
|
tool$usersPassword = {
|
|
@@ -44334,9 +44878,9 @@ var init_usersPassword2 = __esm(() => {
|
|
|
44334
44878
|
|
|
44335
44879
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
44336
44880
|
See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
44337
|
-
args:
|
|
44338
|
-
tool: async (client,
|
|
44339
|
-
const [result, apiCall] = await usersPassword(client,
|
|
44881
|
+
args: args12,
|
|
44882
|
+
tool: async (client, args13, ctx) => {
|
|
44883
|
+
const [result, apiCall] = await usersPassword(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44340
44884
|
if (!result.ok) {
|
|
44341
44885
|
return {
|
|
44342
44886
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44351,9 +44895,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
|
44351
44895
|
|
|
44352
44896
|
// src/funcs/usersPasswordResetRequest.ts
|
|
44353
44897
|
function usersPasswordResetRequest(client, request, options) {
|
|
44354
|
-
return new APIPromise($
|
|
44898
|
+
return new APIPromise($do14(client, request, options));
|
|
44355
44899
|
}
|
|
44356
|
-
async function $
|
|
44900
|
+
async function $do14(client, request, options) {
|
|
44357
44901
|
const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44358
44902
|
if (!parsed.ok) {
|
|
44359
44903
|
return [parsed, { status: "invalid" }];
|
|
@@ -44368,6 +44912,7 @@ async function $do11(client, request, options) {
|
|
|
44368
44912
|
const securityInput = await extractSecurity(client._options.security);
|
|
44369
44913
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44370
44914
|
const context = {
|
|
44915
|
+
options: client._options,
|
|
44371
44916
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44372
44917
|
operationID: "passwordResetRequest",
|
|
44373
44918
|
oAuth2Scopes: [],
|
|
@@ -44383,6 +44928,7 @@ async function $do11(client, request, options) {
|
|
|
44383
44928
|
path,
|
|
44384
44929
|
headers,
|
|
44385
44930
|
body,
|
|
44931
|
+
userAgent: client._options.userAgent,
|
|
44386
44932
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44387
44933
|
}, options);
|
|
44388
44934
|
if (!requestRes.ok) {
|
|
@@ -44421,12 +44967,12 @@ var init_usersPasswordResetRequest = __esm(() => {
|
|
|
44421
44967
|
});
|
|
44422
44968
|
|
|
44423
44969
|
// src/mcp-server/tools/usersPasswordResetRequest.ts
|
|
44424
|
-
var
|
|
44970
|
+
var args13, tool$usersPasswordResetRequest;
|
|
44425
44971
|
var init_usersPasswordResetRequest2 = __esm(() => {
|
|
44426
44972
|
init_usersPasswordResetRequest();
|
|
44427
44973
|
init_operations();
|
|
44428
44974
|
init_tools();
|
|
44429
|
-
|
|
44975
|
+
args13 = {
|
|
44430
44976
|
request: PasswordResetRequestRequestBody$inboundSchema
|
|
44431
44977
|
};
|
|
44432
44978
|
tool$usersPasswordResetRequest = {
|
|
@@ -44434,9 +44980,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
|
|
|
44434
44980
|
description: `Password reset request
|
|
44435
44981
|
|
|
44436
44982
|
It sends an email with a link for resetting a user's password.`,
|
|
44437
|
-
args:
|
|
44438
|
-
tool: async (client,
|
|
44439
|
-
const [result, apiCall] = await usersPasswordResetRequest(client,
|
|
44983
|
+
args: args13,
|
|
44984
|
+
tool: async (client, args14, ctx) => {
|
|
44985
|
+
const [result, apiCall] = await usersPasswordResetRequest(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44440
44986
|
if (!result.ok) {
|
|
44441
44987
|
return {
|
|
44442
44988
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44451,9 +44997,9 @@ It sends an email with a link for resetting a user's password.`,
|
|
|
44451
44997
|
|
|
44452
44998
|
// src/funcs/usersPostAuthenticate.ts
|
|
44453
44999
|
function usersPostAuthenticate(client, request, options) {
|
|
44454
|
-
return new APIPromise($
|
|
45000
|
+
return new APIPromise($do15(client, request, options));
|
|
44455
45001
|
}
|
|
44456
|
-
async function $
|
|
45002
|
+
async function $do15(client, request, options) {
|
|
44457
45003
|
const parsed = safeParse(request, (value) => PostAuthenticateRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44458
45004
|
if (!parsed.ok) {
|
|
44459
45005
|
return [parsed, { status: "invalid" }];
|
|
@@ -44466,6 +45012,7 @@ async function $do12(client, request, options) {
|
|
|
44466
45012
|
Accept: "application/json"
|
|
44467
45013
|
}));
|
|
44468
45014
|
const context = {
|
|
45015
|
+
options: client._options,
|
|
44469
45016
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44470
45017
|
operationID: "postAuthenticate",
|
|
44471
45018
|
oAuth2Scopes: [],
|
|
@@ -44480,6 +45027,7 @@ async function $do12(client, request, options) {
|
|
|
44480
45027
|
path,
|
|
44481
45028
|
headers,
|
|
44482
45029
|
body,
|
|
45030
|
+
userAgent: client._options.userAgent,
|
|
44483
45031
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44484
45032
|
}, options);
|
|
44485
45033
|
if (!requestRes.ok) {
|
|
@@ -44517,12 +45065,12 @@ var init_usersPostAuthenticate = __esm(() => {
|
|
|
44517
45065
|
});
|
|
44518
45066
|
|
|
44519
45067
|
// src/mcp-server/tools/usersPostAuthenticate.ts
|
|
44520
|
-
var
|
|
45068
|
+
var args14, tool$usersPostAuthenticate;
|
|
44521
45069
|
var init_usersPostAuthenticate2 = __esm(() => {
|
|
44522
45070
|
init_usersPostAuthenticate();
|
|
44523
45071
|
init_operations();
|
|
44524
45072
|
init_tools();
|
|
44525
|
-
|
|
45073
|
+
args14 = {
|
|
44526
45074
|
request: PostAuthenticateRequestBody$inboundSchema
|
|
44527
45075
|
};
|
|
44528
45076
|
tool$usersPostAuthenticate = {
|
|
@@ -44560,9 +45108,9 @@ Requires: \`saml_login\`
|
|
|
44560
45108
|
3. Site redirects to your selected \`return_url\`
|
|
44561
45109
|
4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
|
|
44562
45110
|
5. Fetch the user object from \`/users/me\` using the token`,
|
|
44563
|
-
args:
|
|
44564
|
-
tool: async (client,
|
|
44565
|
-
const [result, apiCall] = await usersPostAuthenticate(client,
|
|
45111
|
+
args: args14,
|
|
45112
|
+
tool: async (client, args15, ctx) => {
|
|
45113
|
+
const [result, apiCall] = await usersPostAuthenticate(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44566
45114
|
if (!result.ok) {
|
|
44567
45115
|
return {
|
|
44568
45116
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44577,9 +45125,9 @@ Requires: \`saml_login\`
|
|
|
44577
45125
|
|
|
44578
45126
|
// src/funcs/vendorsAddVendorCredentialFile.ts
|
|
44579
45127
|
function vendorsAddVendorCredentialFile(client, request, options) {
|
|
44580
|
-
return new APIPromise($
|
|
45128
|
+
return new APIPromise($do16(client, request, options));
|
|
44581
45129
|
}
|
|
44582
|
-
async function $
|
|
45130
|
+
async function $do16(client, request, options) {
|
|
44583
45131
|
const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44584
45132
|
if (!parsed.ok) {
|
|
44585
45133
|
return [parsed, { status: "invalid" }];
|
|
@@ -44597,6 +45145,7 @@ async function $do13(client, request, options) {
|
|
|
44597
45145
|
const securityInput = await extractSecurity(client._options.security);
|
|
44598
45146
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44599
45147
|
const context = {
|
|
45148
|
+
options: client._options,
|
|
44600
45149
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44601
45150
|
operationID: "addVendorCredentialFile",
|
|
44602
45151
|
oAuth2Scopes: [],
|
|
@@ -44612,6 +45161,7 @@ async function $do13(client, request, options) {
|
|
|
44612
45161
|
path,
|
|
44613
45162
|
headers,
|
|
44614
45163
|
body,
|
|
45164
|
+
userAgent: client._options.userAgent,
|
|
44615
45165
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44616
45166
|
}, options);
|
|
44617
45167
|
if (!requestRes.ok) {
|
|
@@ -44650,12 +45200,12 @@ var init_vendorsAddVendorCredentialFile = __esm(() => {
|
|
|
44650
45200
|
});
|
|
44651
45201
|
|
|
44652
45202
|
// src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
|
|
44653
|
-
var
|
|
45203
|
+
var args15, tool$vendorsAddVendorCredentialFile;
|
|
44654
45204
|
var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
44655
45205
|
init_vendorsAddVendorCredentialFile();
|
|
44656
45206
|
init_operations();
|
|
44657
45207
|
init_tools();
|
|
44658
|
-
|
|
45208
|
+
args15 = {
|
|
44659
45209
|
request: AddVendorCredentialFileRequest$inboundSchema
|
|
44660
45210
|
};
|
|
44661
45211
|
tool$vendorsAddVendorCredentialFile = {
|
|
@@ -44663,9 +45213,9 @@ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
|
44663
45213
|
description: `Add vendor credential file
|
|
44664
45214
|
|
|
44665
45215
|
It will add a new vendor credential file`,
|
|
44666
|
-
args:
|
|
44667
|
-
tool: async (client,
|
|
44668
|
-
const [result, apiCall] = await vendorsAddVendorCredentialFile(client,
|
|
45216
|
+
args: args15,
|
|
45217
|
+
tool: async (client, args16, ctx) => {
|
|
45218
|
+
const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44669
45219
|
if (!result.ok) {
|
|
44670
45220
|
return {
|
|
44671
45221
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44680,31 +45230,139 @@ It will add a new vendor credential file`,
|
|
|
44680
45230
|
|
|
44681
45231
|
// src/funcs/vendorsAddVendorManagedByCompany.ts
|
|
44682
45232
|
function vendorsAddVendorManagedByCompany(client, request, options) {
|
|
44683
|
-
return new APIPromise($
|
|
45233
|
+
return new APIPromise($do17(client, request, options));
|
|
45234
|
+
}
|
|
45235
|
+
async function $do17(client, request, options) {
|
|
45236
|
+
const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45237
|
+
if (!parsed.ok) {
|
|
45238
|
+
return [parsed, { status: "invalid" }];
|
|
45239
|
+
}
|
|
45240
|
+
const payload = parsed.value;
|
|
45241
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
45242
|
+
const pathParams = {
|
|
45243
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
45244
|
+
explode: false,
|
|
45245
|
+
charEncoding: "percent"
|
|
45246
|
+
})
|
|
45247
|
+
};
|
|
45248
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
|
|
45249
|
+
const headers = new Headers(compactMap({
|
|
45250
|
+
"Content-Type": "application/json",
|
|
45251
|
+
Accept: "application/json"
|
|
45252
|
+
}));
|
|
45253
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45254
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45255
|
+
const context = {
|
|
45256
|
+
options: client._options,
|
|
45257
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45258
|
+
operationID: "addVendorManagedByCompany",
|
|
45259
|
+
oAuth2Scopes: [],
|
|
45260
|
+
resolvedSecurity: requestSecurity,
|
|
45261
|
+
securitySource: client._options.security,
|
|
45262
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45263
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45264
|
+
};
|
|
45265
|
+
const requestRes = client._createRequest(context, {
|
|
45266
|
+
security: requestSecurity,
|
|
45267
|
+
method: "POST",
|
|
45268
|
+
baseURL: options?.serverURL,
|
|
45269
|
+
path,
|
|
45270
|
+
headers,
|
|
45271
|
+
body,
|
|
45272
|
+
userAgent: client._options.userAgent,
|
|
45273
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45274
|
+
}, options);
|
|
45275
|
+
if (!requestRes.ok) {
|
|
45276
|
+
return [requestRes, { status: "invalid" }];
|
|
45277
|
+
}
|
|
45278
|
+
const req = requestRes.value;
|
|
45279
|
+
const doResult = await client._do(req, {
|
|
45280
|
+
context,
|
|
45281
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
45282
|
+
retryConfig: context.retryConfig,
|
|
45283
|
+
retryCodes: context.retryCodes
|
|
45284
|
+
});
|
|
45285
|
+
if (!doResult.ok) {
|
|
45286
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45287
|
+
}
|
|
45288
|
+
const response = doResult.value;
|
|
45289
|
+
const responseFields = {
|
|
45290
|
+
HttpMeta: { Response: response, Request: req }
|
|
45291
|
+
};
|
|
45292
|
+
const [result] = await match(json(200, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45293
|
+
if (!result.ok) {
|
|
45294
|
+
return [result, { status: "complete", request: req, response }];
|
|
45295
|
+
}
|
|
45296
|
+
return [result, { status: "complete", request: req, response }];
|
|
45297
|
+
}
|
|
45298
|
+
var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
45299
|
+
init_encodings();
|
|
45300
|
+
init_matchers();
|
|
45301
|
+
init_primitives();
|
|
45302
|
+
init_schemas();
|
|
45303
|
+
init_security();
|
|
45304
|
+
init_url();
|
|
45305
|
+
init_errors2();
|
|
45306
|
+
init_operations();
|
|
45307
|
+
init_async();
|
|
45308
|
+
});
|
|
45309
|
+
|
|
45310
|
+
// src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
|
|
45311
|
+
var args16, tool$vendorsAddVendorManagedByCompany;
|
|
45312
|
+
var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
45313
|
+
init_vendorsAddVendorManagedByCompany();
|
|
45314
|
+
init_operations();
|
|
45315
|
+
init_tools();
|
|
45316
|
+
args16 = {
|
|
45317
|
+
request: AddVendorManagedByCompanyRequest$inboundSchema
|
|
45318
|
+
};
|
|
45319
|
+
tool$vendorsAddVendorManagedByCompany = {
|
|
45320
|
+
name: "vendors-add-vendor-managed-by-company",
|
|
45321
|
+
description: `Add vendor managed by company
|
|
45322
|
+
|
|
45323
|
+
It will add a vendor managed by company`,
|
|
45324
|
+
args: args16,
|
|
45325
|
+
tool: async (client, args17, ctx) => {
|
|
45326
|
+
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45327
|
+
if (!result.ok) {
|
|
45328
|
+
return {
|
|
45329
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45330
|
+
isError: true
|
|
45331
|
+
};
|
|
45332
|
+
}
|
|
45333
|
+
const value = result.value;
|
|
45334
|
+
return formatResult(value, apiCall);
|
|
45335
|
+
}
|
|
45336
|
+
};
|
|
45337
|
+
});
|
|
45338
|
+
|
|
45339
|
+
// src/funcs/vendorScansVendorScanOut.ts
|
|
45340
|
+
function vendorScansVendorScanOut(client, request, options) {
|
|
45341
|
+
return new APIPromise($do18(client, request, options));
|
|
44684
45342
|
}
|
|
44685
|
-
async function $
|
|
44686
|
-
const parsed = safeParse(request, (value) =>
|
|
45343
|
+
async function $do18(client, request, options) {
|
|
45344
|
+
const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44687
45345
|
if (!parsed.ok) {
|
|
44688
45346
|
return [parsed, { status: "invalid" }];
|
|
44689
45347
|
}
|
|
44690
45348
|
const payload = parsed.value;
|
|
44691
|
-
const body =
|
|
45349
|
+
const body = null;
|
|
44692
45350
|
const pathParams = {
|
|
44693
|
-
|
|
45351
|
+
id: encodeSimple("id", payload.id, {
|
|
44694
45352
|
explode: false,
|
|
44695
45353
|
charEncoding: "percent"
|
|
44696
45354
|
})
|
|
44697
45355
|
};
|
|
44698
|
-
const path = pathToFunc("/
|
|
45356
|
+
const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
|
|
44699
45357
|
const headers = new Headers(compactMap({
|
|
44700
|
-
"Content-Type": "application/json",
|
|
44701
45358
|
Accept: "application/json"
|
|
44702
45359
|
}));
|
|
44703
45360
|
const securityInput = await extractSecurity(client._options.security);
|
|
44704
45361
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44705
45362
|
const context = {
|
|
45363
|
+
options: client._options,
|
|
44706
45364
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44707
|
-
operationID: "
|
|
45365
|
+
operationID: "vendorScanOut",
|
|
44708
45366
|
oAuth2Scopes: [],
|
|
44709
45367
|
resolvedSecurity: requestSecurity,
|
|
44710
45368
|
securitySource: client._options.security,
|
|
@@ -44718,6 +45376,7 @@ async function $do14(client, request, options) {
|
|
|
44718
45376
|
path,
|
|
44719
45377
|
headers,
|
|
44720
45378
|
body,
|
|
45379
|
+
userAgent: client._options.userAgent,
|
|
44721
45380
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44722
45381
|
}, options);
|
|
44723
45382
|
if (!requestRes.ok) {
|
|
@@ -44737,13 +45396,13 @@ async function $do14(client, request, options) {
|
|
|
44737
45396
|
const responseFields = {
|
|
44738
45397
|
HttpMeta: { Response: response, Request: req }
|
|
44739
45398
|
};
|
|
44740
|
-
const [result] = await match(json(200,
|
|
45399
|
+
const [result] = await match(json(200, VendorScanOutVendorScanOutOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44741
45400
|
if (!result.ok) {
|
|
44742
45401
|
return [result, { status: "complete", request: req, response }];
|
|
44743
45402
|
}
|
|
44744
45403
|
return [result, { status: "complete", request: req, response }];
|
|
44745
45404
|
}
|
|
44746
|
-
var
|
|
45405
|
+
var init_vendorScansVendorScanOut = __esm(() => {
|
|
44747
45406
|
init_encodings();
|
|
44748
45407
|
init_matchers();
|
|
44749
45408
|
init_primitives();
|
|
@@ -44755,23 +45414,23 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
|
44755
45414
|
init_async();
|
|
44756
45415
|
});
|
|
44757
45416
|
|
|
44758
|
-
// src/mcp-server/tools/
|
|
44759
|
-
var
|
|
44760
|
-
var
|
|
44761
|
-
|
|
45417
|
+
// src/mcp-server/tools/vendorScansVendorScanOut.ts
|
|
45418
|
+
var args17, tool$vendorScansVendorScanOut;
|
|
45419
|
+
var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
45420
|
+
init_vendorScansVendorScanOut();
|
|
44762
45421
|
init_operations();
|
|
44763
45422
|
init_tools();
|
|
44764
|
-
|
|
44765
|
-
request:
|
|
45423
|
+
args17 = {
|
|
45424
|
+
request: VendorScanOutRequest$inboundSchema
|
|
44766
45425
|
};
|
|
44767
|
-
tool$
|
|
44768
|
-
name: "
|
|
44769
|
-
description: `
|
|
45426
|
+
tool$vendorScansVendorScanOut = {
|
|
45427
|
+
name: "vendor-scans-vendor-scan-out",
|
|
45428
|
+
description: `Vendor scan out
|
|
44770
45429
|
|
|
44771
|
-
It
|
|
44772
|
-
args:
|
|
44773
|
-
tool: async (client,
|
|
44774
|
-
const [result, apiCall] = await
|
|
45430
|
+
It scans out vendor from facility`,
|
|
45431
|
+
args: args17,
|
|
45432
|
+
tool: async (client, args18, ctx) => {
|
|
45433
|
+
const [result, apiCall] = await vendorScansVendorScanOut(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44775
45434
|
if (!result.ok) {
|
|
44776
45435
|
return {
|
|
44777
45436
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44784,32 +45443,33 @@ It will add a vendor managed by company`,
|
|
|
44784
45443
|
};
|
|
44785
45444
|
});
|
|
44786
45445
|
|
|
44787
|
-
// src/funcs/
|
|
44788
|
-
function
|
|
44789
|
-
return new APIPromise($
|
|
45446
|
+
// src/funcs/vendorsCheckDownloadCode.ts
|
|
45447
|
+
function vendorsCheckDownloadCode(client, request, options) {
|
|
45448
|
+
return new APIPromise($do19(client, request, options));
|
|
44790
45449
|
}
|
|
44791
|
-
async function $
|
|
44792
|
-
const parsed = safeParse(request, (value) =>
|
|
45450
|
+
async function $do19(client, request, options) {
|
|
45451
|
+
const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44793
45452
|
if (!parsed.ok) {
|
|
44794
45453
|
return [parsed, { status: "invalid" }];
|
|
44795
45454
|
}
|
|
44796
45455
|
const payload = parsed.value;
|
|
44797
45456
|
const body = null;
|
|
44798
45457
|
const pathParams = {
|
|
44799
|
-
|
|
44800
|
-
explode: false,
|
|
44801
|
-
charEncoding: "percent"
|
|
44802
|
-
})
|
|
45458
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
44803
45459
|
};
|
|
44804
|
-
const path = pathToFunc("/
|
|
45460
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/code")(pathParams);
|
|
45461
|
+
const query = encodeFormQuery({
|
|
45462
|
+
code: payload.code
|
|
45463
|
+
});
|
|
44805
45464
|
const headers = new Headers(compactMap({
|
|
44806
45465
|
Accept: "application/json"
|
|
44807
45466
|
}));
|
|
44808
45467
|
const securityInput = await extractSecurity(client._options.security);
|
|
44809
45468
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44810
45469
|
const context = {
|
|
45470
|
+
options: client._options,
|
|
44811
45471
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44812
|
-
operationID: "
|
|
45472
|
+
operationID: "checkDownloadCode",
|
|
44813
45473
|
oAuth2Scopes: [],
|
|
44814
45474
|
resolvedSecurity: requestSecurity,
|
|
44815
45475
|
securitySource: client._options.security,
|
|
@@ -44818,11 +45478,13 @@ async function $do15(client, request, options) {
|
|
|
44818
45478
|
};
|
|
44819
45479
|
const requestRes = client._createRequest(context, {
|
|
44820
45480
|
security: requestSecurity,
|
|
44821
|
-
method: "
|
|
45481
|
+
method: "GET",
|
|
44822
45482
|
baseURL: options?.serverURL,
|
|
44823
45483
|
path,
|
|
44824
45484
|
headers,
|
|
45485
|
+
query,
|
|
44825
45486
|
body,
|
|
45487
|
+
userAgent: client._options.userAgent,
|
|
44826
45488
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44827
45489
|
}, options);
|
|
44828
45490
|
if (!requestRes.ok) {
|
|
@@ -44842,13 +45504,13 @@ async function $do15(client, request, options) {
|
|
|
44842
45504
|
const responseFields = {
|
|
44843
45505
|
HttpMeta: { Response: response, Request: req }
|
|
44844
45506
|
};
|
|
44845
|
-
const [result] = await match(json(200,
|
|
45507
|
+
const [result] = await match(json(200, CheckDownloadCodeResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44846
45508
|
if (!result.ok) {
|
|
44847
45509
|
return [result, { status: "complete", request: req, response }];
|
|
44848
45510
|
}
|
|
44849
45511
|
return [result, { status: "complete", request: req, response }];
|
|
44850
45512
|
}
|
|
44851
|
-
var
|
|
45513
|
+
var init_vendorsCheckDownloadCode = __esm(() => {
|
|
44852
45514
|
init_encodings();
|
|
44853
45515
|
init_matchers();
|
|
44854
45516
|
init_primitives();
|
|
@@ -44860,23 +45522,23 @@ var init_vendorScansVendorScanOut = __esm(() => {
|
|
|
44860
45522
|
init_async();
|
|
44861
45523
|
});
|
|
44862
45524
|
|
|
44863
|
-
// src/mcp-server/tools/
|
|
44864
|
-
var
|
|
44865
|
-
var
|
|
44866
|
-
|
|
45525
|
+
// src/mcp-server/tools/vendorsCheckDownloadCode.ts
|
|
45526
|
+
var args18, tool$vendorsCheckDownloadCode;
|
|
45527
|
+
var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
45528
|
+
init_vendorsCheckDownloadCode();
|
|
44867
45529
|
init_operations();
|
|
44868
45530
|
init_tools();
|
|
44869
|
-
|
|
44870
|
-
request:
|
|
45531
|
+
args18 = {
|
|
45532
|
+
request: CheckDownloadCodeRequest$inboundSchema
|
|
44871
45533
|
};
|
|
44872
|
-
tool$
|
|
44873
|
-
name: "
|
|
44874
|
-
description: `
|
|
45534
|
+
tool$vendorsCheckDownloadCode = {
|
|
45535
|
+
name: "vendors-check-download-code",
|
|
45536
|
+
description: `Check download code for vendor credential
|
|
44875
45537
|
|
|
44876
|
-
It
|
|
44877
|
-
args:
|
|
44878
|
-
tool: async (client,
|
|
44879
|
-
const [result, apiCall] = await
|
|
45538
|
+
It will check download code for vendor credential`,
|
|
45539
|
+
args: args18,
|
|
45540
|
+
tool: async (client, args19, ctx) => {
|
|
45541
|
+
const [result, apiCall] = await vendorsCheckDownloadCode(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44880
45542
|
if (!result.ok) {
|
|
44881
45543
|
return {
|
|
44882
45544
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44891,9 +45553,9 @@ It scans out vendor from facility`,
|
|
|
44891
45553
|
|
|
44892
45554
|
// src/funcs/vendorsCreateNewVendorCredentialVersion.ts
|
|
44893
45555
|
function vendorsCreateNewVendorCredentialVersion(client, request, options) {
|
|
44894
|
-
return new APIPromise($
|
|
45556
|
+
return new APIPromise($do20(client, request, options));
|
|
44895
45557
|
}
|
|
44896
|
-
async function $
|
|
45558
|
+
async function $do20(client, request, options) {
|
|
44897
45559
|
const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44898
45560
|
if (!parsed.ok) {
|
|
44899
45561
|
return [parsed, { status: "invalid" }];
|
|
@@ -44908,6 +45570,7 @@ async function $do16(client, request, options) {
|
|
|
44908
45570
|
const securityInput = await extractSecurity(client._options.security);
|
|
44909
45571
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44910
45572
|
const context = {
|
|
45573
|
+
options: client._options,
|
|
44911
45574
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44912
45575
|
operationID: "createNewVendorCredentialVersion",
|
|
44913
45576
|
oAuth2Scopes: [],
|
|
@@ -44923,6 +45586,7 @@ async function $do16(client, request, options) {
|
|
|
44923
45586
|
path,
|
|
44924
45587
|
headers,
|
|
44925
45588
|
body,
|
|
45589
|
+
userAgent: client._options.userAgent,
|
|
44926
45590
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44927
45591
|
}, options);
|
|
44928
45592
|
if (!requestRes.ok) {
|
|
@@ -44961,12 +45625,12 @@ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
|
|
|
44961
45625
|
});
|
|
44962
45626
|
|
|
44963
45627
|
// src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
|
|
44964
|
-
var
|
|
45628
|
+
var args19, tool$vendorsCreateNewVendorCredentialVersion;
|
|
44965
45629
|
var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
44966
45630
|
init_vendorsCreateNewVendorCredentialVersion();
|
|
44967
45631
|
init_operations();
|
|
44968
45632
|
init_tools();
|
|
44969
|
-
|
|
45633
|
+
args19 = {
|
|
44970
45634
|
request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
|
|
44971
45635
|
};
|
|
44972
45636
|
tool$vendorsCreateNewVendorCredentialVersion = {
|
|
@@ -44974,9 +45638,9 @@ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
|
44974
45638
|
description: `Create new vendor credential version
|
|
44975
45639
|
|
|
44976
45640
|
It will submit vendor credential`,
|
|
44977
|
-
args:
|
|
44978
|
-
tool: async (client,
|
|
44979
|
-
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client,
|
|
45641
|
+
args: args19,
|
|
45642
|
+
tool: async (client, args20, ctx) => {
|
|
45643
|
+
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44980
45644
|
if (!result.ok) {
|
|
44981
45645
|
return {
|
|
44982
45646
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44991,9 +45655,9 @@ It will submit vendor credential`,
|
|
|
44991
45655
|
|
|
44992
45656
|
// src/funcs/vendorsCreateOrUpdateBcr.ts
|
|
44993
45657
|
function vendorsCreateOrUpdateBcr(client, request, options) {
|
|
44994
|
-
return new APIPromise($
|
|
45658
|
+
return new APIPromise($do21(client, request, options));
|
|
44995
45659
|
}
|
|
44996
|
-
async function $
|
|
45660
|
+
async function $do21(client, request, options) {
|
|
44997
45661
|
const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44998
45662
|
if (!parsed.ok) {
|
|
44999
45663
|
return [parsed, { status: "invalid" }];
|
|
@@ -45011,6 +45675,7 @@ async function $do17(client, request, options) {
|
|
|
45011
45675
|
const securityInput = await extractSecurity(client._options.security);
|
|
45012
45676
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45013
45677
|
const context = {
|
|
45678
|
+
options: client._options,
|
|
45014
45679
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45015
45680
|
operationID: "createOrUpdateBcr",
|
|
45016
45681
|
oAuth2Scopes: [],
|
|
@@ -45026,6 +45691,7 @@ async function $do17(client, request, options) {
|
|
|
45026
45691
|
path,
|
|
45027
45692
|
headers,
|
|
45028
45693
|
body,
|
|
45694
|
+
userAgent: client._options.userAgent,
|
|
45029
45695
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45030
45696
|
}, options);
|
|
45031
45697
|
if (!requestRes.ok) {
|
|
@@ -45065,12 +45731,12 @@ var init_vendorsCreateOrUpdateBcr = __esm(() => {
|
|
|
45065
45731
|
});
|
|
45066
45732
|
|
|
45067
45733
|
// src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
|
|
45068
|
-
var
|
|
45734
|
+
var args20, tool$vendorsCreateOrUpdateBcr;
|
|
45069
45735
|
var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
45070
45736
|
init_vendorsCreateOrUpdateBcr();
|
|
45071
45737
|
init_operations();
|
|
45072
45738
|
init_tools();
|
|
45073
|
-
|
|
45739
|
+
args20 = {
|
|
45074
45740
|
request: CreateOrUpdateBcrRequest$inboundSchema
|
|
45075
45741
|
};
|
|
45076
45742
|
tool$vendorsCreateOrUpdateBcr = {
|
|
@@ -45078,9 +45744,9 @@ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
|
45078
45744
|
description: `Create or update BackgroundCheckResults
|
|
45079
45745
|
|
|
45080
45746
|
It will create or update BackgroundCheckResults`,
|
|
45081
|
-
args:
|
|
45082
|
-
tool: async (client,
|
|
45083
|
-
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client,
|
|
45747
|
+
args: args20,
|
|
45748
|
+
tool: async (client, args21, ctx) => {
|
|
45749
|
+
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45084
45750
|
if (!result.ok) {
|
|
45085
45751
|
return {
|
|
45086
45752
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45095,9 +45761,9 @@ It will create or update BackgroundCheckResults`,
|
|
|
45095
45761
|
|
|
45096
45762
|
// src/funcs/vendorsCreateVendorCompany.ts
|
|
45097
45763
|
function vendorsCreateVendorCompany(client, request, options) {
|
|
45098
|
-
return new APIPromise($
|
|
45764
|
+
return new APIPromise($do22(client, request, options));
|
|
45099
45765
|
}
|
|
45100
|
-
async function $
|
|
45766
|
+
async function $do22(client, request, options) {
|
|
45101
45767
|
const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45102
45768
|
if (!parsed.ok) {
|
|
45103
45769
|
return [parsed, { status: "invalid" }];
|
|
@@ -45118,6 +45784,7 @@ async function $do18(client, request, options) {
|
|
|
45118
45784
|
const securityInput = await extractSecurity(client._options.security);
|
|
45119
45785
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45120
45786
|
const context = {
|
|
45787
|
+
options: client._options,
|
|
45121
45788
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45122
45789
|
operationID: "createVendorCompany",
|
|
45123
45790
|
oAuth2Scopes: [],
|
|
@@ -45133,6 +45800,7 @@ async function $do18(client, request, options) {
|
|
|
45133
45800
|
path,
|
|
45134
45801
|
headers,
|
|
45135
45802
|
body,
|
|
45803
|
+
userAgent: client._options.userAgent,
|
|
45136
45804
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45137
45805
|
}, options);
|
|
45138
45806
|
if (!requestRes.ok) {
|
|
@@ -45171,12 +45839,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
|
|
|
45171
45839
|
});
|
|
45172
45840
|
|
|
45173
45841
|
// src/mcp-server/tools/vendorsCreateVendorCompany.ts
|
|
45174
|
-
var
|
|
45842
|
+
var args21, tool$vendorsCreateVendorCompany;
|
|
45175
45843
|
var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
45176
45844
|
init_vendorsCreateVendorCompany();
|
|
45177
45845
|
init_operations();
|
|
45178
45846
|
init_tools();
|
|
45179
|
-
|
|
45847
|
+
args21 = {
|
|
45180
45848
|
request: CreateVendorCompanyRequest$inboundSchema
|
|
45181
45849
|
};
|
|
45182
45850
|
tool$vendorsCreateVendorCompany = {
|
|
@@ -45184,9 +45852,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
|
45184
45852
|
description: `Create vendor company
|
|
45185
45853
|
|
|
45186
45854
|
Create vendor company`,
|
|
45187
|
-
args:
|
|
45188
|
-
tool: async (client,
|
|
45189
|
-
const [result, apiCall] = await vendorsCreateVendorCompany(client,
|
|
45855
|
+
args: args21,
|
|
45856
|
+
tool: async (client, args22, ctx) => {
|
|
45857
|
+
const [result, apiCall] = await vendorsCreateVendorCompany(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45190
45858
|
if (!result.ok) {
|
|
45191
45859
|
return {
|
|
45192
45860
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45201,9 +45869,9 @@ Create vendor company`,
|
|
|
45201
45869
|
|
|
45202
45870
|
// src/funcs/vendorsCreateVendorRegistration.ts
|
|
45203
45871
|
function vendorsCreateVendorRegistration(client, request, options) {
|
|
45204
|
-
return new APIPromise($
|
|
45872
|
+
return new APIPromise($do23(client, request, options));
|
|
45205
45873
|
}
|
|
45206
|
-
async function $
|
|
45874
|
+
async function $do23(client, request, options) {
|
|
45207
45875
|
const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45208
45876
|
if (!parsed.ok) {
|
|
45209
45877
|
return [parsed, { status: "invalid" }];
|
|
@@ -45216,6 +45884,7 @@ async function $do19(client, request, options) {
|
|
|
45216
45884
|
Accept: "application/json"
|
|
45217
45885
|
}));
|
|
45218
45886
|
const context = {
|
|
45887
|
+
options: client._options,
|
|
45219
45888
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45220
45889
|
operationID: "createVendorRegistration",
|
|
45221
45890
|
oAuth2Scopes: [],
|
|
@@ -45230,6 +45899,7 @@ async function $do19(client, request, options) {
|
|
|
45230
45899
|
path,
|
|
45231
45900
|
headers,
|
|
45232
45901
|
body,
|
|
45902
|
+
userAgent: client._options.userAgent,
|
|
45233
45903
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45234
45904
|
}, options);
|
|
45235
45905
|
if (!requestRes.ok) {
|
|
@@ -45268,12 +45938,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
|
45268
45938
|
});
|
|
45269
45939
|
|
|
45270
45940
|
// src/mcp-server/tools/vendorsCreateVendorRegistration.ts
|
|
45271
|
-
var
|
|
45941
|
+
var args22, tool$vendorsCreateVendorRegistration;
|
|
45272
45942
|
var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
45273
45943
|
init_vendorsCreateVendorRegistration();
|
|
45274
45944
|
init_operations();
|
|
45275
45945
|
init_tools();
|
|
45276
|
-
|
|
45946
|
+
args22 = {
|
|
45277
45947
|
request: CreateVendorRegistrationRequestBody$inboundSchema
|
|
45278
45948
|
};
|
|
45279
45949
|
tool$vendorsCreateVendorRegistration = {
|
|
@@ -45281,9 +45951,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
|
45281
45951
|
description: `Create vendor registration
|
|
45282
45952
|
|
|
45283
45953
|
Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
|
|
45284
|
-
args:
|
|
45285
|
-
tool: async (client,
|
|
45286
|
-
const [result, apiCall] = await vendorsCreateVendorRegistration(client,
|
|
45954
|
+
args: args22,
|
|
45955
|
+
tool: async (client, args23, ctx) => {
|
|
45956
|
+
const [result, apiCall] = await vendorsCreateVendorRegistration(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45287
45957
|
if (!result.ok) {
|
|
45288
45958
|
return {
|
|
45289
45959
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45298,9 +45968,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
|
|
|
45298
45968
|
|
|
45299
45969
|
// src/funcs/vendorsDeclineVendorCredential.ts
|
|
45300
45970
|
function vendorsDeclineVendorCredential(client, request, options) {
|
|
45301
|
-
return new APIPromise($
|
|
45971
|
+
return new APIPromise($do24(client, request, options));
|
|
45302
45972
|
}
|
|
45303
|
-
async function $
|
|
45973
|
+
async function $do24(client, request, options) {
|
|
45304
45974
|
const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45305
45975
|
if (!parsed.ok) {
|
|
45306
45976
|
return [parsed, { status: "invalid" }];
|
|
@@ -45317,6 +45987,7 @@ async function $do20(client, request, options) {
|
|
|
45317
45987
|
const securityInput = await extractSecurity(client._options.security);
|
|
45318
45988
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45319
45989
|
const context = {
|
|
45990
|
+
options: client._options,
|
|
45320
45991
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45321
45992
|
operationID: "declineVendorCredential",
|
|
45322
45993
|
oAuth2Scopes: [],
|
|
@@ -45332,6 +46003,7 @@ async function $do20(client, request, options) {
|
|
|
45332
46003
|
path,
|
|
45333
46004
|
headers,
|
|
45334
46005
|
body,
|
|
46006
|
+
userAgent: client._options.userAgent,
|
|
45335
46007
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45336
46008
|
}, options);
|
|
45337
46009
|
if (!requestRes.ok) {
|
|
@@ -45371,12 +46043,12 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
|
|
|
45371
46043
|
});
|
|
45372
46044
|
|
|
45373
46045
|
// src/mcp-server/tools/vendorsDeclineVendorCredential.ts
|
|
45374
|
-
var
|
|
46046
|
+
var args23, tool$vendorsDeclineVendorCredential;
|
|
45375
46047
|
var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
45376
46048
|
init_vendorsDeclineVendorCredential();
|
|
45377
46049
|
init_operations();
|
|
45378
46050
|
init_tools();
|
|
45379
|
-
|
|
46051
|
+
args23 = {
|
|
45380
46052
|
request: DeclineVendorCredentialRequest$inboundSchema
|
|
45381
46053
|
};
|
|
45382
46054
|
tool$vendorsDeclineVendorCredential = {
|
|
@@ -45384,9 +46056,9 @@ var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
|
45384
46056
|
description: `Decline vendor credential
|
|
45385
46057
|
|
|
45386
46058
|
It will decline vendor credential`,
|
|
45387
|
-
args:
|
|
45388
|
-
tool: async (client,
|
|
45389
|
-
const [result, apiCall] = await vendorsDeclineVendorCredential(client,
|
|
46059
|
+
args: args23,
|
|
46060
|
+
tool: async (client, args24, ctx) => {
|
|
46061
|
+
const [result, apiCall] = await vendorsDeclineVendorCredential(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45390
46062
|
if (!result.ok) {
|
|
45391
46063
|
return {
|
|
45392
46064
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45401,9 +46073,9 @@ It will decline vendor credential`,
|
|
|
45401
46073
|
|
|
45402
46074
|
// src/funcs/vendorsDeleteVendorCredentialFile.ts
|
|
45403
46075
|
function vendorsDeleteVendorCredentialFile(client, request, options) {
|
|
45404
|
-
return new APIPromise($
|
|
46076
|
+
return new APIPromise($do25(client, request, options));
|
|
45405
46077
|
}
|
|
45406
|
-
async function $
|
|
46078
|
+
async function $do25(client, request, options) {
|
|
45407
46079
|
const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45408
46080
|
if (!parsed.ok) {
|
|
45409
46081
|
return [parsed, { status: "invalid" }];
|
|
@@ -45424,6 +46096,7 @@ async function $do21(client, request, options) {
|
|
|
45424
46096
|
const securityInput = await extractSecurity(client._options.security);
|
|
45425
46097
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45426
46098
|
const context = {
|
|
46099
|
+
options: client._options,
|
|
45427
46100
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45428
46101
|
operationID: "deleteVendorCredentialFile",
|
|
45429
46102
|
oAuth2Scopes: [],
|
|
@@ -45439,6 +46112,7 @@ async function $do21(client, request, options) {
|
|
|
45439
46112
|
path,
|
|
45440
46113
|
headers,
|
|
45441
46114
|
body,
|
|
46115
|
+
userAgent: client._options.userAgent,
|
|
45442
46116
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45443
46117
|
}, options);
|
|
45444
46118
|
if (!requestRes.ok) {
|
|
@@ -45478,12 +46152,12 @@ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
|
|
|
45478
46152
|
});
|
|
45479
46153
|
|
|
45480
46154
|
// src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
|
|
45481
|
-
var
|
|
46155
|
+
var args24, tool$vendorsDeleteVendorCredentialFile;
|
|
45482
46156
|
var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
45483
46157
|
init_vendorsDeleteVendorCredentialFile();
|
|
45484
46158
|
init_operations();
|
|
45485
46159
|
init_tools();
|
|
45486
|
-
|
|
46160
|
+
args24 = {
|
|
45487
46161
|
request: DeleteVendorCredentialFileRequest$inboundSchema
|
|
45488
46162
|
};
|
|
45489
46163
|
tool$vendorsDeleteVendorCredentialFile = {
|
|
@@ -45491,9 +46165,9 @@ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
|
45491
46165
|
description: `Delete vendor credential file
|
|
45492
46166
|
|
|
45493
46167
|
It will delete the vendor credential file`,
|
|
45494
|
-
args:
|
|
45495
|
-
tool: async (client,
|
|
45496
|
-
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client,
|
|
46168
|
+
args: args24,
|
|
46169
|
+
tool: async (client, args25, ctx) => {
|
|
46170
|
+
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45497
46171
|
if (!result.ok) {
|
|
45498
46172
|
return {
|
|
45499
46173
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45508,9 +46182,9 @@ It will delete the vendor credential file`,
|
|
|
45508
46182
|
|
|
45509
46183
|
// src/funcs/vendorsDeleteVendorManagedByCompany.ts
|
|
45510
46184
|
function vendorsDeleteVendorManagedByCompany(client, request, options) {
|
|
45511
|
-
return new APIPromise($
|
|
46185
|
+
return new APIPromise($do26(client, request, options));
|
|
45512
46186
|
}
|
|
45513
|
-
async function $
|
|
46187
|
+
async function $do26(client, request, options) {
|
|
45514
46188
|
const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45515
46189
|
if (!parsed.ok) {
|
|
45516
46190
|
return [parsed, { status: "invalid" }];
|
|
@@ -45531,6 +46205,7 @@ async function $do22(client, request, options) {
|
|
|
45531
46205
|
const securityInput = await extractSecurity(client._options.security);
|
|
45532
46206
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45533
46207
|
const context = {
|
|
46208
|
+
options: client._options,
|
|
45534
46209
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45535
46210
|
operationID: "deleteVendorManagedByCompany",
|
|
45536
46211
|
oAuth2Scopes: [],
|
|
@@ -45546,6 +46221,7 @@ async function $do22(client, request, options) {
|
|
|
45546
46221
|
path,
|
|
45547
46222
|
headers,
|
|
45548
46223
|
body,
|
|
46224
|
+
userAgent: client._options.userAgent,
|
|
45549
46225
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45550
46226
|
}, options);
|
|
45551
46227
|
if (!requestRes.ok) {
|
|
@@ -45584,12 +46260,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
|
|
|
45584
46260
|
});
|
|
45585
46261
|
|
|
45586
46262
|
// src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
|
|
45587
|
-
var
|
|
46263
|
+
var args25, tool$vendorsDeleteVendorManagedByCompany;
|
|
45588
46264
|
var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
45589
46265
|
init_vendorsDeleteVendorManagedByCompany();
|
|
45590
46266
|
init_operations();
|
|
45591
46267
|
init_tools();
|
|
45592
|
-
|
|
46268
|
+
args25 = {
|
|
45593
46269
|
request: DeleteVendorManagedByCompanyRequest$inboundSchema
|
|
45594
46270
|
};
|
|
45595
46271
|
tool$vendorsDeleteVendorManagedByCompany = {
|
|
@@ -45597,9 +46273,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
|
45597
46273
|
description: `Delete vendor managed by company
|
|
45598
46274
|
|
|
45599
46275
|
It will delete the vendor managed by company`,
|
|
45600
|
-
args:
|
|
45601
|
-
tool: async (client,
|
|
45602
|
-
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client,
|
|
46276
|
+
args: args25,
|
|
46277
|
+
tool: async (client, args26, ctx) => {
|
|
46278
|
+
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45603
46279
|
if (!result.ok) {
|
|
45604
46280
|
return {
|
|
45605
46281
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45614,9 +46290,9 @@ It will delete the vendor managed by company`,
|
|
|
45614
46290
|
|
|
45615
46291
|
// src/funcs/vendorsExpediteTimeRemaining.ts
|
|
45616
46292
|
function vendorsExpediteTimeRemaining(client, request, options) {
|
|
45617
|
-
return new APIPromise($
|
|
46293
|
+
return new APIPromise($do27(client, request, options));
|
|
45618
46294
|
}
|
|
45619
|
-
async function $
|
|
46295
|
+
async function $do27(client, request, options) {
|
|
45620
46296
|
const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45621
46297
|
if (!parsed.ok) {
|
|
45622
46298
|
return [parsed, { status: "invalid" }];
|
|
@@ -45636,6 +46312,7 @@ async function $do23(client, request, options) {
|
|
|
45636
46312
|
const securityInput = await extractSecurity(client._options.security);
|
|
45637
46313
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45638
46314
|
const context = {
|
|
46315
|
+
options: client._options,
|
|
45639
46316
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45640
46317
|
operationID: "expediteTimeRemaining",
|
|
45641
46318
|
oAuth2Scopes: [],
|
|
@@ -45651,6 +46328,7 @@ async function $do23(client, request, options) {
|
|
|
45651
46328
|
path,
|
|
45652
46329
|
headers,
|
|
45653
46330
|
body,
|
|
46331
|
+
userAgent: client._options.userAgent,
|
|
45654
46332
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45655
46333
|
}, options);
|
|
45656
46334
|
if (!requestRes.ok) {
|
|
@@ -45689,12 +46367,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
45689
46367
|
});
|
|
45690
46368
|
|
|
45691
46369
|
// src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
|
|
45692
|
-
var
|
|
46370
|
+
var args26, tool$vendorsExpediteTimeRemaining;
|
|
45693
46371
|
var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
45694
46372
|
init_vendorsExpediteTimeRemaining();
|
|
45695
46373
|
init_operations();
|
|
45696
46374
|
init_tools();
|
|
45697
|
-
|
|
46375
|
+
args26 = {
|
|
45698
46376
|
request: ExpediteTimeRemainingRequest$inboundSchema
|
|
45699
46377
|
};
|
|
45700
46378
|
tool$vendorsExpediteTimeRemaining = {
|
|
@@ -45702,9 +46380,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
|
45702
46380
|
description: `Expedite time remaining
|
|
45703
46381
|
|
|
45704
46382
|
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
45705
|
-
args:
|
|
45706
|
-
tool: async (client,
|
|
45707
|
-
const [result, apiCall] = await vendorsExpediteTimeRemaining(client,
|
|
46383
|
+
args: args26,
|
|
46384
|
+
tool: async (client, args27, ctx) => {
|
|
46385
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45708
46386
|
if (!result.ok) {
|
|
45709
46387
|
return {
|
|
45710
46388
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45719,9 +46397,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
|
|
|
45719
46397
|
|
|
45720
46398
|
// src/funcs/vendorsGetVendorCredentialDetails.ts
|
|
45721
46399
|
function vendorsGetVendorCredentialDetails(client, request, options) {
|
|
45722
|
-
return new APIPromise($
|
|
46400
|
+
return new APIPromise($do28(client, request, options));
|
|
45723
46401
|
}
|
|
45724
|
-
async function $
|
|
46402
|
+
async function $do28(client, request, options) {
|
|
45725
46403
|
const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45726
46404
|
if (!parsed.ok) {
|
|
45727
46405
|
return [parsed, { status: "invalid" }];
|
|
@@ -45748,6 +46426,7 @@ async function $do24(client, request, options) {
|
|
|
45748
46426
|
const securityInput = await extractSecurity(client._options.security);
|
|
45749
46427
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45750
46428
|
const context = {
|
|
46429
|
+
options: client._options,
|
|
45751
46430
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45752
46431
|
operationID: "getVendorCredentialDetails",
|
|
45753
46432
|
oAuth2Scopes: [],
|
|
@@ -45764,6 +46443,7 @@ async function $do24(client, request, options) {
|
|
|
45764
46443
|
headers,
|
|
45765
46444
|
query,
|
|
45766
46445
|
body,
|
|
46446
|
+
userAgent: client._options.userAgent,
|
|
45767
46447
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45768
46448
|
}, options);
|
|
45769
46449
|
if (!requestRes.ok) {
|
|
@@ -45802,12 +46482,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
|
|
|
45802
46482
|
});
|
|
45803
46483
|
|
|
45804
46484
|
// src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
|
|
45805
|
-
var
|
|
46485
|
+
var args27, tool$vendorsGetVendorCredentialDetails;
|
|
45806
46486
|
var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
|
|
45807
46487
|
init_vendorsGetVendorCredentialDetails();
|
|
45808
46488
|
init_operations();
|
|
45809
46489
|
init_tools();
|
|
45810
|
-
|
|
46490
|
+
args27 = {
|
|
45811
46491
|
request: GetVendorCredentialDetailsRequest$inboundSchema
|
|
45812
46492
|
};
|
|
45813
46493
|
tool$vendorsGetVendorCredentialDetails = {
|
|
@@ -45832,9 +46512,9 @@ Available \`expand\` scopes are:
|
|
|
45832
46512
|
- vendor_credential.vendor_credential_data_requests
|
|
45833
46513
|
- vendor_credential.credential_variants
|
|
45834
46514
|
- vendor_credential.targets_chop`,
|
|
45835
|
-
args:
|
|
45836
|
-
tool: async (client,
|
|
45837
|
-
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client,
|
|
46515
|
+
args: args27,
|
|
46516
|
+
tool: async (client, args28, ctx) => {
|
|
46517
|
+
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45838
46518
|
if (!result.ok) {
|
|
45839
46519
|
return {
|
|
45840
46520
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45849,9 +46529,9 @@ Available \`expand\` scopes are:
|
|
|
45849
46529
|
|
|
45850
46530
|
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
45851
46531
|
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
45852
|
-
return new APIPromise($
|
|
46532
|
+
return new APIPromise($do29(client, request, options));
|
|
45853
46533
|
}
|
|
45854
|
-
async function $
|
|
46534
|
+
async function $do29(client, request, options) {
|
|
45855
46535
|
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45856
46536
|
if (!parsed.ok) {
|
|
45857
46537
|
return [parsed, { status: "invalid" }];
|
|
@@ -45875,6 +46555,7 @@ async function $do25(client, request, options) {
|
|
|
45875
46555
|
const securityInput = await extractSecurity(client._options.security);
|
|
45876
46556
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45877
46557
|
const context = {
|
|
46558
|
+
options: client._options,
|
|
45878
46559
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45879
46560
|
operationID: "getVendorCredentialFile",
|
|
45880
46561
|
oAuth2Scopes: [],
|
|
@@ -45891,6 +46572,7 @@ async function $do25(client, request, options) {
|
|
|
45891
46572
|
headers,
|
|
45892
46573
|
query,
|
|
45893
46574
|
body,
|
|
46575
|
+
userAgent: client._options.userAgent,
|
|
45894
46576
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45895
46577
|
}, options);
|
|
45896
46578
|
if (!requestRes.ok) {
|
|
@@ -45930,12 +46612,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
|
45930
46612
|
});
|
|
45931
46613
|
|
|
45932
46614
|
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
45933
|
-
var
|
|
46615
|
+
var args28, tool$vendorsGetVendorCredentialFile;
|
|
45934
46616
|
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
45935
46617
|
init_vendorsGetVendorCredentialFile();
|
|
45936
46618
|
init_operations();
|
|
45937
46619
|
init_tools();
|
|
45938
|
-
|
|
46620
|
+
args28 = {
|
|
45939
46621
|
request: GetVendorCredentialFileRequest$inboundSchema
|
|
45940
46622
|
};
|
|
45941
46623
|
tool$vendorsGetVendorCredentialFile = {
|
|
@@ -45948,9 +46630,9 @@ Available \`expand\` scopes are:
|
|
|
45948
46630
|
|
|
45949
46631
|
- vendor_credential_file.vendor_credential
|
|
45950
46632
|
- vendor_credential_file.credential_document`,
|
|
45951
|
-
args:
|
|
45952
|
-
tool: async (client,
|
|
45953
|
-
const [result, apiCall] = await vendorsGetVendorCredentialFile(client,
|
|
46633
|
+
args: args28,
|
|
46634
|
+
tool: async (client, args29, ctx) => {
|
|
46635
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45954
46636
|
if (!result.ok) {
|
|
45955
46637
|
return {
|
|
45956
46638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45965,9 +46647,9 @@ Available \`expand\` scopes are:
|
|
|
45965
46647
|
|
|
45966
46648
|
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
45967
46649
|
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
45968
|
-
return new APIPromise($
|
|
46650
|
+
return new APIPromise($do30(client, request, options));
|
|
45969
46651
|
}
|
|
45970
|
-
async function $
|
|
46652
|
+
async function $do30(client, request, options) {
|
|
45971
46653
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45972
46654
|
if (!parsed.ok) {
|
|
45973
46655
|
return [parsed, { status: "invalid" }];
|
|
@@ -45990,6 +46672,7 @@ async function $do26(client, request, options) {
|
|
|
45990
46672
|
const securityInput = await extractSecurity(client._options.security);
|
|
45991
46673
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45992
46674
|
const context = {
|
|
46675
|
+
options: client._options,
|
|
45993
46676
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45994
46677
|
operationID: "getVendorInvoiceDetails",
|
|
45995
46678
|
oAuth2Scopes: [],
|
|
@@ -46006,6 +46689,7 @@ async function $do26(client, request, options) {
|
|
|
46006
46689
|
headers,
|
|
46007
46690
|
query,
|
|
46008
46691
|
body,
|
|
46692
|
+
userAgent: client._options.userAgent,
|
|
46009
46693
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46010
46694
|
}, options);
|
|
46011
46695
|
if (!requestRes.ok) {
|
|
@@ -46045,12 +46729,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
46045
46729
|
});
|
|
46046
46730
|
|
|
46047
46731
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
46048
|
-
var
|
|
46732
|
+
var args29, tool$vendorsGetVendorInvoiceDetails;
|
|
46049
46733
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
46050
46734
|
init_vendorsGetVendorInvoiceDetails();
|
|
46051
46735
|
init_operations();
|
|
46052
46736
|
init_tools();
|
|
46053
|
-
|
|
46737
|
+
args29 = {
|
|
46054
46738
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
46055
46739
|
};
|
|
46056
46740
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -46063,9 +46747,9 @@ Available \`expand\` scopes are:
|
|
|
46063
46747
|
|
|
46064
46748
|
invoice.line_items
|
|
46065
46749
|
invoice.invoice_transactions`,
|
|
46066
|
-
args:
|
|
46067
|
-
tool: async (client,
|
|
46068
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
46750
|
+
args: args29,
|
|
46751
|
+
tool: async (client, args30, ctx) => {
|
|
46752
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46069
46753
|
if (!result.ok) {
|
|
46070
46754
|
return {
|
|
46071
46755
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46080,9 +46764,9 @@ invoice.invoice_transactions`,
|
|
|
46080
46764
|
|
|
46081
46765
|
// src/funcs/vendorsGetVendorLegalName.ts
|
|
46082
46766
|
function vendorsGetVendorLegalName(client, request, options) {
|
|
46083
|
-
return new APIPromise($
|
|
46767
|
+
return new APIPromise($do31(client, request, options));
|
|
46084
46768
|
}
|
|
46085
|
-
async function $
|
|
46769
|
+
async function $do31(client, request, options) {
|
|
46086
46770
|
const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46087
46771
|
if (!parsed.ok) {
|
|
46088
46772
|
return [parsed, { status: "invalid" }];
|
|
@@ -46102,6 +46786,7 @@ async function $do27(client, request, options) {
|
|
|
46102
46786
|
const securityInput = await extractSecurity(client._options.security);
|
|
46103
46787
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46104
46788
|
const context = {
|
|
46789
|
+
options: client._options,
|
|
46105
46790
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46106
46791
|
operationID: "getVendorLegalName",
|
|
46107
46792
|
oAuth2Scopes: [],
|
|
@@ -46117,6 +46802,7 @@ async function $do27(client, request, options) {
|
|
|
46117
46802
|
path,
|
|
46118
46803
|
headers,
|
|
46119
46804
|
body,
|
|
46805
|
+
userAgent: client._options.userAgent,
|
|
46120
46806
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46121
46807
|
}, options);
|
|
46122
46808
|
if (!requestRes.ok) {
|
|
@@ -46155,12 +46841,12 @@ var init_vendorsGetVendorLegalName = __esm(() => {
|
|
|
46155
46841
|
});
|
|
46156
46842
|
|
|
46157
46843
|
// src/mcp-server/tools/vendorsGetVendorLegalName.ts
|
|
46158
|
-
var
|
|
46844
|
+
var args30, tool$vendorsGetVendorLegalName;
|
|
46159
46845
|
var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
46160
46846
|
init_vendorsGetVendorLegalName();
|
|
46161
46847
|
init_operations();
|
|
46162
46848
|
init_tools();
|
|
46163
|
-
|
|
46849
|
+
args30 = {
|
|
46164
46850
|
request: GetVendorLegalNameRequest$inboundSchema
|
|
46165
46851
|
};
|
|
46166
46852
|
tool$vendorsGetVendorLegalName = {
|
|
@@ -46168,9 +46854,9 @@ var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
|
46168
46854
|
description: `Get Vendor legal name
|
|
46169
46855
|
|
|
46170
46856
|
Get vendor legal name`,
|
|
46171
|
-
args:
|
|
46172
|
-
tool: async (client,
|
|
46173
|
-
const [result, apiCall] = await vendorsGetVendorLegalName(client,
|
|
46857
|
+
args: args30,
|
|
46858
|
+
tool: async (client, args31, ctx) => {
|
|
46859
|
+
const [result, apiCall] = await vendorsGetVendorLegalName(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46174
46860
|
if (!result.ok) {
|
|
46175
46861
|
return {
|
|
46176
46862
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46185,9 +46871,9 @@ Get vendor legal name`,
|
|
|
46185
46871
|
|
|
46186
46872
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
46187
46873
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
46188
|
-
return new APIPromise($
|
|
46874
|
+
return new APIPromise($do32(client, request, options));
|
|
46189
46875
|
}
|
|
46190
|
-
async function $
|
|
46876
|
+
async function $do32(client, request, options) {
|
|
46191
46877
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46192
46878
|
if (!parsed.ok) {
|
|
46193
46879
|
return [parsed, { status: "invalid" }];
|
|
@@ -46210,6 +46896,7 @@ async function $do28(client, request, options) {
|
|
|
46210
46896
|
const securityInput = await extractSecurity(client._options.security);
|
|
46211
46897
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46212
46898
|
const context = {
|
|
46899
|
+
options: client._options,
|
|
46213
46900
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46214
46901
|
operationID: "getVendorsDetails",
|
|
46215
46902
|
oAuth2Scopes: [],
|
|
@@ -46226,6 +46913,7 @@ async function $do28(client, request, options) {
|
|
|
46226
46913
|
headers,
|
|
46227
46914
|
query,
|
|
46228
46915
|
body,
|
|
46916
|
+
userAgent: client._options.userAgent,
|
|
46229
46917
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46230
46918
|
}, options);
|
|
46231
46919
|
if (!requestRes.ok) {
|
|
@@ -46265,12 +46953,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
46265
46953
|
});
|
|
46266
46954
|
|
|
46267
46955
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
46268
|
-
var
|
|
46956
|
+
var args31, tool$vendorsGetVendorsDetails;
|
|
46269
46957
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
46270
46958
|
init_vendorsGetVendorsDetails();
|
|
46271
46959
|
init_operations();
|
|
46272
46960
|
init_tools();
|
|
46273
|
-
|
|
46961
|
+
args31 = {
|
|
46274
46962
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
46275
46963
|
};
|
|
46276
46964
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -46295,9 +46983,9 @@ vendor.payment_responsibility
|
|
|
46295
46983
|
vendor.background_check_date_expires
|
|
46296
46984
|
vendor.registration_data
|
|
46297
46985
|
vendor.registration_finished`,
|
|
46298
|
-
args:
|
|
46299
|
-
tool: async (client,
|
|
46300
|
-
const [result, apiCall] = await vendorsGetVendorsDetails(client,
|
|
46986
|
+
args: args31,
|
|
46987
|
+
tool: async (client, args32, ctx) => {
|
|
46988
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46301
46989
|
if (!result.ok) {
|
|
46302
46990
|
return {
|
|
46303
46991
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46312,9 +47000,9 @@ vendor.registration_finished`,
|
|
|
46312
47000
|
|
|
46313
47001
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
46314
47002
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
46315
|
-
return new APIPromise($
|
|
47003
|
+
return new APIPromise($do33(client, request, options));
|
|
46316
47004
|
}
|
|
46317
|
-
async function $
|
|
47005
|
+
async function $do33(client, request, options) {
|
|
46318
47006
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46319
47007
|
if (!parsed.ok) {
|
|
46320
47008
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46340,6 +47028,7 @@ async function $do29(client, request, options) {
|
|
|
46340
47028
|
const securityInput = await extractSecurity(client._options.security);
|
|
46341
47029
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46342
47030
|
const context = {
|
|
47031
|
+
options: client._options,
|
|
46343
47032
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46344
47033
|
operationID: "listVendorAdditionalFacilityFields",
|
|
46345
47034
|
oAuth2Scopes: [],
|
|
@@ -46356,6 +47045,7 @@ async function $do29(client, request, options) {
|
|
|
46356
47045
|
headers,
|
|
46357
47046
|
query,
|
|
46358
47047
|
body,
|
|
47048
|
+
userAgent: client._options.userAgent,
|
|
46359
47049
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46360
47050
|
}, options);
|
|
46361
47051
|
if (!requestRes.ok) {
|
|
@@ -46424,12 +47114,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
46424
47114
|
});
|
|
46425
47115
|
|
|
46426
47116
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
46427
|
-
var
|
|
47117
|
+
var args32, tool$vendorsListVendorAdditionalFacilityFields;
|
|
46428
47118
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
46429
47119
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
46430
47120
|
init_operations();
|
|
46431
47121
|
init_tools();
|
|
46432
|
-
|
|
47122
|
+
args32 = {
|
|
46433
47123
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
46434
47124
|
};
|
|
46435
47125
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -46437,9 +47127,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
46437
47127
|
description: `List of vendor's additional facility fields
|
|
46438
47128
|
|
|
46439
47129
|
List of vendor's additional facility fields`,
|
|
46440
|
-
args:
|
|
46441
|
-
tool: async (client,
|
|
46442
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
47130
|
+
args: args32,
|
|
47131
|
+
tool: async (client, args33, ctx) => {
|
|
47132
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46443
47133
|
if (!result.ok) {
|
|
46444
47134
|
return {
|
|
46445
47135
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46454,9 +47144,9 @@ List of vendor's additional facility fields`,
|
|
|
46454
47144
|
|
|
46455
47145
|
// src/funcs/vendorsListVendorCredentialDataRequests.ts
|
|
46456
47146
|
function vendorsListVendorCredentialDataRequests(client, request, options) {
|
|
46457
|
-
return new APIPromise($
|
|
47147
|
+
return new APIPromise($do34(client, request, options));
|
|
46458
47148
|
}
|
|
46459
|
-
async function $
|
|
47149
|
+
async function $do34(client, request, options) {
|
|
46460
47150
|
const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46461
47151
|
if (!parsed.ok) {
|
|
46462
47152
|
return [parsed, { status: "invalid" }];
|
|
@@ -46481,6 +47171,7 @@ async function $do30(client, request, options) {
|
|
|
46481
47171
|
const securityInput = await extractSecurity(client._options.security);
|
|
46482
47172
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46483
47173
|
const context = {
|
|
47174
|
+
options: client._options,
|
|
46484
47175
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46485
47176
|
operationID: "listVendorCredentialDataRequests",
|
|
46486
47177
|
oAuth2Scopes: [],
|
|
@@ -46497,6 +47188,7 @@ async function $do30(client, request, options) {
|
|
|
46497
47188
|
headers,
|
|
46498
47189
|
query,
|
|
46499
47190
|
body,
|
|
47191
|
+
userAgent: client._options.userAgent,
|
|
46500
47192
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46501
47193
|
}, options);
|
|
46502
47194
|
if (!requestRes.ok) {
|
|
@@ -46537,12 +47229,12 @@ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
|
|
|
46537
47229
|
});
|
|
46538
47230
|
|
|
46539
47231
|
// src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
|
|
46540
|
-
var
|
|
47232
|
+
var args33, tool$vendorsListVendorCredentialDataRequests;
|
|
46541
47233
|
var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
|
|
46542
47234
|
init_vendorsListVendorCredentialDataRequests();
|
|
46543
47235
|
init_operations();
|
|
46544
47236
|
init_tools();
|
|
46545
|
-
|
|
47237
|
+
args33 = {
|
|
46546
47238
|
request: ListVendorCredentialDataRequestsRequest$inboundSchema
|
|
46547
47239
|
};
|
|
46548
47240
|
tool$vendorsListVendorCredentialDataRequests = {
|
|
@@ -46555,9 +47247,9 @@ Available \`expand\` scopes are:
|
|
|
46555
47247
|
|
|
46556
47248
|
- vendor_credential_data_request.vendor_credential
|
|
46557
47249
|
- vendor_credential_data_request.data_request`,
|
|
46558
|
-
args:
|
|
46559
|
-
tool: async (client,
|
|
46560
|
-
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client,
|
|
47250
|
+
args: args33,
|
|
47251
|
+
tool: async (client, args34, ctx) => {
|
|
47252
|
+
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46561
47253
|
if (!result.ok) {
|
|
46562
47254
|
return {
|
|
46563
47255
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46572,9 +47264,9 @@ Available \`expand\` scopes are:
|
|
|
46572
47264
|
|
|
46573
47265
|
// src/funcs/vendorsListVendorCredentialFiles.ts
|
|
46574
47266
|
function vendorsListVendorCredentialFiles(client, request, options) {
|
|
46575
|
-
return new APIPromise($
|
|
47267
|
+
return new APIPromise($do35(client, request, options));
|
|
46576
47268
|
}
|
|
46577
|
-
async function $
|
|
47269
|
+
async function $do35(client, request, options) {
|
|
46578
47270
|
const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46579
47271
|
if (!parsed.ok) {
|
|
46580
47272
|
return [parsed, { status: "invalid" }];
|
|
@@ -46599,6 +47291,7 @@ async function $do31(client, request, options) {
|
|
|
46599
47291
|
const securityInput = await extractSecurity(client._options.security);
|
|
46600
47292
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46601
47293
|
const context = {
|
|
47294
|
+
options: client._options,
|
|
46602
47295
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46603
47296
|
operationID: "listVendorCredentialFiles",
|
|
46604
47297
|
oAuth2Scopes: [],
|
|
@@ -46615,6 +47308,7 @@ async function $do31(client, request, options) {
|
|
|
46615
47308
|
headers,
|
|
46616
47309
|
query,
|
|
46617
47310
|
body,
|
|
47311
|
+
userAgent: client._options.userAgent,
|
|
46618
47312
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46619
47313
|
}, options);
|
|
46620
47314
|
if (!requestRes.ok) {
|
|
@@ -46655,12 +47349,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
|
46655
47349
|
});
|
|
46656
47350
|
|
|
46657
47351
|
// src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
|
|
46658
|
-
var
|
|
47352
|
+
var args34, tool$vendorsListVendorCredentialFiles;
|
|
46659
47353
|
var init_vendorsListVendorCredentialFiles2 = __esm(() => {
|
|
46660
47354
|
init_vendorsListVendorCredentialFiles();
|
|
46661
47355
|
init_operations();
|
|
46662
47356
|
init_tools();
|
|
46663
|
-
|
|
47357
|
+
args34 = {
|
|
46664
47358
|
request: ListVendorCredentialFilesRequest$inboundSchema
|
|
46665
47359
|
};
|
|
46666
47360
|
tool$vendorsListVendorCredentialFiles = {
|
|
@@ -46673,9 +47367,9 @@ Available \`expand\` scopes are:
|
|
|
46673
47367
|
|
|
46674
47368
|
- vendor_credential_file.vendor_credential
|
|
46675
47369
|
- vendor_credential_file.credential_document`,
|
|
46676
|
-
args:
|
|
46677
|
-
tool: async (client,
|
|
46678
|
-
const [result, apiCall] = await vendorsListVendorCredentialFiles(client,
|
|
47370
|
+
args: args34,
|
|
47371
|
+
tool: async (client, args35, ctx) => {
|
|
47372
|
+
const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46679
47373
|
if (!result.ok) {
|
|
46680
47374
|
return {
|
|
46681
47375
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46690,9 +47384,9 @@ Available \`expand\` scopes are:
|
|
|
46690
47384
|
|
|
46691
47385
|
// src/funcs/vendorsListVendorCredentialHistory.ts
|
|
46692
47386
|
function vendorsListVendorCredentialHistory(client, request, options) {
|
|
46693
|
-
return new APIPromise($
|
|
47387
|
+
return new APIPromise($do36(client, request, options));
|
|
46694
47388
|
}
|
|
46695
|
-
async function $
|
|
47389
|
+
async function $do36(client, request, options) {
|
|
46696
47390
|
const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46697
47391
|
if (!parsed.ok) {
|
|
46698
47392
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46719,6 +47413,7 @@ async function $do32(client, request, options) {
|
|
|
46719
47413
|
const securityInput = await extractSecurity(client._options.security);
|
|
46720
47414
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46721
47415
|
const context = {
|
|
47416
|
+
options: client._options,
|
|
46722
47417
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46723
47418
|
operationID: "listVendorCredentialHistory",
|
|
46724
47419
|
oAuth2Scopes: [],
|
|
@@ -46735,6 +47430,7 @@ async function $do32(client, request, options) {
|
|
|
46735
47430
|
headers,
|
|
46736
47431
|
query,
|
|
46737
47432
|
body,
|
|
47433
|
+
userAgent: client._options.userAgent,
|
|
46738
47434
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46739
47435
|
}, options);
|
|
46740
47436
|
if (!requestRes.ok) {
|
|
@@ -46805,12 +47501,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
|
|
|
46805
47501
|
});
|
|
46806
47502
|
|
|
46807
47503
|
// src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
|
|
46808
|
-
var
|
|
47504
|
+
var args35, tool$vendorsListVendorCredentialHistory;
|
|
46809
47505
|
var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
46810
47506
|
init_vendorsListVendorCredentialHistory();
|
|
46811
47507
|
init_operations();
|
|
46812
47508
|
init_tools();
|
|
46813
|
-
|
|
47509
|
+
args35 = {
|
|
46814
47510
|
request: ListVendorCredentialHistoryRequest$inboundSchema
|
|
46815
47511
|
};
|
|
46816
47512
|
tool$vendorsListVendorCredentialHistory = {
|
|
@@ -46818,9 +47514,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
|
46818
47514
|
description: `List Vendor Credential History
|
|
46819
47515
|
|
|
46820
47516
|
Lists vendor credentials history`,
|
|
46821
|
-
args:
|
|
46822
|
-
tool: async (client,
|
|
46823
|
-
const [result, apiCall] = await vendorsListVendorCredentialHistory(client,
|
|
47517
|
+
args: args35,
|
|
47518
|
+
tool: async (client, args36, ctx) => {
|
|
47519
|
+
const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46824
47520
|
if (!result.ok) {
|
|
46825
47521
|
return {
|
|
46826
47522
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46835,9 +47531,9 @@ Lists vendor credentials history`,
|
|
|
46835
47531
|
|
|
46836
47532
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
46837
47533
|
function vendorsListVendorCredentials(client, request, options) {
|
|
46838
|
-
return new APIPromise($
|
|
47534
|
+
return new APIPromise($do37(client, request, options));
|
|
46839
47535
|
}
|
|
46840
|
-
async function $
|
|
47536
|
+
async function $do37(client, request, options) {
|
|
46841
47537
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46842
47538
|
if (!parsed.ok) {
|
|
46843
47539
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46869,6 +47565,7 @@ async function $do33(client, request, options) {
|
|
|
46869
47565
|
const securityInput = await extractSecurity(client._options.security);
|
|
46870
47566
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46871
47567
|
const context = {
|
|
47568
|
+
options: client._options,
|
|
46872
47569
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46873
47570
|
operationID: "listVendorCredentials",
|
|
46874
47571
|
oAuth2Scopes: [],
|
|
@@ -46885,6 +47582,7 @@ async function $do33(client, request, options) {
|
|
|
46885
47582
|
headers,
|
|
46886
47583
|
query,
|
|
46887
47584
|
body,
|
|
47585
|
+
userAgent: client._options.userAgent,
|
|
46888
47586
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46889
47587
|
}, options);
|
|
46890
47588
|
if (!requestRes.ok) {
|
|
@@ -46955,22 +47653,22 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
46955
47653
|
});
|
|
46956
47654
|
|
|
46957
47655
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
46958
|
-
var
|
|
47656
|
+
var args36, tool$vendorsListVendorCredentials;
|
|
46959
47657
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
46960
47658
|
init_vendorsListVendorCredentials();
|
|
46961
47659
|
init_operations();
|
|
46962
47660
|
init_tools();
|
|
46963
|
-
|
|
47661
|
+
args36 = {
|
|
46964
47662
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
46965
47663
|
};
|
|
46966
47664
|
tool$vendorsListVendorCredentials = {
|
|
46967
47665
|
name: "vendors-list-vendor-credentials",
|
|
46968
47666
|
description: `List Vendor Credentials
|
|
46969
47667
|
|
|
46970
|
-
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
46971
|
-
args:
|
|
46972
|
-
tool: async (client,
|
|
46973
|
-
const [result, apiCall] = await vendorsListVendorCredentials(client,
|
|
47668
|
+
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
47669
|
+
args: args36,
|
|
47670
|
+
tool: async (client, args37, ctx) => {
|
|
47671
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46974
47672
|
if (!result.ok) {
|
|
46975
47673
|
return {
|
|
46976
47674
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46985,9 +47683,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
46985
47683
|
|
|
46986
47684
|
// src/funcs/vendorsListVendorCredits.ts
|
|
46987
47685
|
function vendorsListVendorCredits(client, request, options) {
|
|
46988
|
-
return new APIPromise($
|
|
47686
|
+
return new APIPromise($do38(client, request, options));
|
|
46989
47687
|
}
|
|
46990
|
-
async function $
|
|
47688
|
+
async function $do38(client, request, options) {
|
|
46991
47689
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46992
47690
|
if (!parsed.ok) {
|
|
46993
47691
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47013,6 +47711,7 @@ async function $do34(client, request, options) {
|
|
|
47013
47711
|
const securityInput = await extractSecurity(client._options.security);
|
|
47014
47712
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47015
47713
|
const context = {
|
|
47714
|
+
options: client._options,
|
|
47016
47715
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47017
47716
|
operationID: "listVendorCredits",
|
|
47018
47717
|
oAuth2Scopes: [],
|
|
@@ -47029,6 +47728,7 @@ async function $do34(client, request, options) {
|
|
|
47029
47728
|
headers,
|
|
47030
47729
|
query,
|
|
47031
47730
|
body,
|
|
47731
|
+
userAgent: client._options.userAgent,
|
|
47032
47732
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47033
47733
|
}, options);
|
|
47034
47734
|
if (!requestRes.ok) {
|
|
@@ -47099,12 +47799,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
47099
47799
|
});
|
|
47100
47800
|
|
|
47101
47801
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
47102
|
-
var
|
|
47802
|
+
var args37, tool$vendorsListVendorCredits;
|
|
47103
47803
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
47104
47804
|
init_vendorsListVendorCredits();
|
|
47105
47805
|
init_operations();
|
|
47106
47806
|
init_tools();
|
|
47107
|
-
|
|
47807
|
+
args37 = {
|
|
47108
47808
|
request: ListVendorCreditsRequest$inboundSchema
|
|
47109
47809
|
};
|
|
47110
47810
|
tool$vendorsListVendorCredits = {
|
|
@@ -47112,9 +47812,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
47112
47812
|
description: `List vendor credits
|
|
47113
47813
|
|
|
47114
47814
|
List the credits for the vendor`,
|
|
47115
|
-
args:
|
|
47116
|
-
tool: async (client,
|
|
47117
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
47815
|
+
args: args37,
|
|
47816
|
+
tool: async (client, args38, ctx) => {
|
|
47817
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47118
47818
|
if (!result.ok) {
|
|
47119
47819
|
return {
|
|
47120
47820
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47129,9 +47829,9 @@ List the credits for the vendor`,
|
|
|
47129
47829
|
|
|
47130
47830
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
47131
47831
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
47132
|
-
return new APIPromise($
|
|
47832
|
+
return new APIPromise($do39(client, request, options));
|
|
47133
47833
|
}
|
|
47134
|
-
async function $
|
|
47834
|
+
async function $do39(client, request, options) {
|
|
47135
47835
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47136
47836
|
if (!parsed.ok) {
|
|
47137
47837
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47153,6 +47853,7 @@ async function $do35(client, request, options) {
|
|
|
47153
47853
|
const securityInput = await extractSecurity(client._options.security);
|
|
47154
47854
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47155
47855
|
const context = {
|
|
47856
|
+
options: client._options,
|
|
47156
47857
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47157
47858
|
operationID: "listVendorFacilityStatuses",
|
|
47158
47859
|
oAuth2Scopes: [],
|
|
@@ -47169,6 +47870,7 @@ async function $do35(client, request, options) {
|
|
|
47169
47870
|
headers,
|
|
47170
47871
|
query,
|
|
47171
47872
|
body,
|
|
47873
|
+
userAgent: client._options.userAgent,
|
|
47172
47874
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47173
47875
|
}, options);
|
|
47174
47876
|
if (!requestRes.ok) {
|
|
@@ -47239,12 +47941,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
47239
47941
|
});
|
|
47240
47942
|
|
|
47241
47943
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
47242
|
-
var
|
|
47944
|
+
var args38, tool$vendorsListVendorFacilityStatuses;
|
|
47243
47945
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
47244
47946
|
init_vendorsListVendorFacilityStatuses();
|
|
47245
47947
|
init_operations();
|
|
47246
47948
|
init_tools();
|
|
47247
|
-
|
|
47949
|
+
args38 = {
|
|
47248
47950
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
47249
47951
|
};
|
|
47250
47952
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -47252,9 +47954,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
47252
47954
|
description: `List vendor facility statuses
|
|
47253
47955
|
|
|
47254
47956
|
List the facilities for the vendor`,
|
|
47255
|
-
args:
|
|
47256
|
-
tool: async (client,
|
|
47257
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
47957
|
+
args: args38,
|
|
47958
|
+
tool: async (client, args39, ctx) => {
|
|
47959
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47258
47960
|
if (!result.ok) {
|
|
47259
47961
|
return {
|
|
47260
47962
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47269,9 +47971,9 @@ List the facilities for the vendor`,
|
|
|
47269
47971
|
|
|
47270
47972
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
47271
47973
|
function vendorsListVendorInvoices(client, request, options) {
|
|
47272
|
-
return new APIPromise($
|
|
47974
|
+
return new APIPromise($do40(client, request, options));
|
|
47273
47975
|
}
|
|
47274
|
-
async function $
|
|
47976
|
+
async function $do40(client, request, options) {
|
|
47275
47977
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47276
47978
|
if (!parsed.ok) {
|
|
47277
47979
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47301,6 +48003,7 @@ async function $do36(client, request, options) {
|
|
|
47301
48003
|
const securityInput = await extractSecurity(client._options.security);
|
|
47302
48004
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47303
48005
|
const context = {
|
|
48006
|
+
options: client._options,
|
|
47304
48007
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47305
48008
|
operationID: "listVendorInvoices",
|
|
47306
48009
|
oAuth2Scopes: [],
|
|
@@ -47317,6 +48020,7 @@ async function $do36(client, request, options) {
|
|
|
47317
48020
|
headers,
|
|
47318
48021
|
query,
|
|
47319
48022
|
body,
|
|
48023
|
+
userAgent: client._options.userAgent,
|
|
47320
48024
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47321
48025
|
}, options);
|
|
47322
48026
|
if (!requestRes.ok) {
|
|
@@ -47387,12 +48091,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
47387
48091
|
});
|
|
47388
48092
|
|
|
47389
48093
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
47390
|
-
var
|
|
48094
|
+
var args39, tool$vendorsListVendorInvoices;
|
|
47391
48095
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
47392
48096
|
init_vendorsListVendorInvoices();
|
|
47393
48097
|
init_operations();
|
|
47394
48098
|
init_tools();
|
|
47395
|
-
|
|
48099
|
+
args39 = {
|
|
47396
48100
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
47397
48101
|
};
|
|
47398
48102
|
tool$vendorsListVendorInvoices = {
|
|
@@ -47404,9 +48108,9 @@ List invoices for Vendors
|
|
|
47404
48108
|
Available \`expand\` scopes are:
|
|
47405
48109
|
|
|
47406
48110
|
invoice.line_items`,
|
|
47407
|
-
args:
|
|
47408
|
-
tool: async (client,
|
|
47409
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
48111
|
+
args: args39,
|
|
48112
|
+
tool: async (client, args40, ctx) => {
|
|
48113
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47410
48114
|
if (!result.ok) {
|
|
47411
48115
|
return {
|
|
47412
48116
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47421,9 +48125,9 @@ invoice.line_items`,
|
|
|
47421
48125
|
|
|
47422
48126
|
// src/funcs/vendorsListVendorJobTitles.ts
|
|
47423
48127
|
function vendorsListVendorJobTitles(client, request, options) {
|
|
47424
|
-
return new APIPromise($
|
|
48128
|
+
return new APIPromise($do41(client, request, options));
|
|
47425
48129
|
}
|
|
47426
|
-
async function $
|
|
48130
|
+
async function $do41(client, request, options) {
|
|
47427
48131
|
const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47428
48132
|
if (!parsed.ok) {
|
|
47429
48133
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47444,6 +48148,7 @@ async function $do37(client, request, options) {
|
|
|
47444
48148
|
const securityInput = await extractSecurity(client._options.security);
|
|
47445
48149
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47446
48150
|
const context = {
|
|
48151
|
+
options: client._options,
|
|
47447
48152
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47448
48153
|
operationID: "listVendorJobTitles",
|
|
47449
48154
|
oAuth2Scopes: [],
|
|
@@ -47460,6 +48165,7 @@ async function $do37(client, request, options) {
|
|
|
47460
48165
|
headers,
|
|
47461
48166
|
query,
|
|
47462
48167
|
body,
|
|
48168
|
+
userAgent: client._options.userAgent,
|
|
47463
48169
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47464
48170
|
}, options);
|
|
47465
48171
|
if (!requestRes.ok) {
|
|
@@ -47530,12 +48236,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
47530
48236
|
});
|
|
47531
48237
|
|
|
47532
48238
|
// src/mcp-server/tools/vendorsListVendorJobTitles.ts
|
|
47533
|
-
var
|
|
48239
|
+
var args40, tool$vendorsListVendorJobTitles;
|
|
47534
48240
|
var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
47535
48241
|
init_vendorsListVendorJobTitles();
|
|
47536
48242
|
init_operations();
|
|
47537
48243
|
init_tools();
|
|
47538
|
-
|
|
48244
|
+
args40 = {
|
|
47539
48245
|
request: ListVendorJobTitlesRequest$inboundSchema
|
|
47540
48246
|
};
|
|
47541
48247
|
tool$vendorsListVendorJobTitles = {
|
|
@@ -47543,9 +48249,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
|
47543
48249
|
description: `List vendor job titles
|
|
47544
48250
|
|
|
47545
48251
|
List valid job titles for Vendors. This can be used during sign up or in a filter.`,
|
|
47546
|
-
args:
|
|
47547
|
-
tool: async (client,
|
|
47548
|
-
const [result, apiCall] = await vendorsListVendorJobTitles(client,
|
|
48252
|
+
args: args40,
|
|
48253
|
+
tool: async (client, args41, ctx) => {
|
|
48254
|
+
const [result, apiCall] = await vendorsListVendorJobTitles(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47549
48255
|
if (!result.ok) {
|
|
47550
48256
|
return {
|
|
47551
48257
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47560,9 +48266,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
|
|
|
47560
48266
|
|
|
47561
48267
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
47562
48268
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
47563
|
-
return new APIPromise($
|
|
48269
|
+
return new APIPromise($do42(client, request, options));
|
|
47564
48270
|
}
|
|
47565
|
-
async function $
|
|
48271
|
+
async function $do42(client, request, options) {
|
|
47566
48272
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47567
48273
|
if (!parsed.ok) {
|
|
47568
48274
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47588,6 +48294,7 @@ async function $do38(client, request, options) {
|
|
|
47588
48294
|
const securityInput = await extractSecurity(client._options.security);
|
|
47589
48295
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47590
48296
|
const context = {
|
|
48297
|
+
options: client._options,
|
|
47591
48298
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47592
48299
|
operationID: "listVendorManagedByCompanies",
|
|
47593
48300
|
oAuth2Scopes: [],
|
|
@@ -47604,6 +48311,7 @@ async function $do38(client, request, options) {
|
|
|
47604
48311
|
headers,
|
|
47605
48312
|
query,
|
|
47606
48313
|
body,
|
|
48314
|
+
userAgent: client._options.userAgent,
|
|
47607
48315
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47608
48316
|
}, options);
|
|
47609
48317
|
if (!requestRes.ok) {
|
|
@@ -47674,12 +48382,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
47674
48382
|
});
|
|
47675
48383
|
|
|
47676
48384
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
47677
|
-
var
|
|
48385
|
+
var args41, tool$vendorsListVendorManagedByCompanies;
|
|
47678
48386
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
47679
48387
|
init_vendorsListVendorManagedByCompanies();
|
|
47680
48388
|
init_operations();
|
|
47681
48389
|
init_tools();
|
|
47682
|
-
|
|
48390
|
+
args41 = {
|
|
47683
48391
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
47684
48392
|
};
|
|
47685
48393
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -47687,9 +48395,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
47687
48395
|
description: `List of companies managing the vendor
|
|
47688
48396
|
|
|
47689
48397
|
List of companies managing the vendor`,
|
|
47690
|
-
args:
|
|
47691
|
-
tool: async (client,
|
|
47692
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
48398
|
+
args: args41,
|
|
48399
|
+
tool: async (client, args42, ctx) => {
|
|
48400
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47693
48401
|
if (!result.ok) {
|
|
47694
48402
|
return {
|
|
47695
48403
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47704,9 +48412,9 @@ List of companies managing the vendor`,
|
|
|
47704
48412
|
|
|
47705
48413
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
47706
48414
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
47707
|
-
return new APIPromise($
|
|
48415
|
+
return new APIPromise($do43(client, request, options));
|
|
47708
48416
|
}
|
|
47709
|
-
async function $
|
|
48417
|
+
async function $do43(client, request, options) {
|
|
47710
48418
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47711
48419
|
if (!parsed.ok) {
|
|
47712
48420
|
return [parsed, { status: "invalid" }];
|
|
@@ -47726,6 +48434,7 @@ async function $do39(client, request, options) {
|
|
|
47726
48434
|
const securityInput = await extractSecurity(client._options.security);
|
|
47727
48435
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47728
48436
|
const context = {
|
|
48437
|
+
options: client._options,
|
|
47729
48438
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47730
48439
|
operationID: "listVendorScrubDetails",
|
|
47731
48440
|
oAuth2Scopes: [],
|
|
@@ -47741,6 +48450,7 @@ async function $do39(client, request, options) {
|
|
|
47741
48450
|
path,
|
|
47742
48451
|
headers,
|
|
47743
48452
|
body,
|
|
48453
|
+
userAgent: client._options.userAgent,
|
|
47744
48454
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47745
48455
|
}, options);
|
|
47746
48456
|
if (!requestRes.ok) {
|
|
@@ -47780,12 +48490,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
47780
48490
|
});
|
|
47781
48491
|
|
|
47782
48492
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
47783
|
-
var
|
|
48493
|
+
var args42, tool$vendorsListVendorScrubDetails;
|
|
47784
48494
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
47785
48495
|
init_vendorsListVendorScrubDetails();
|
|
47786
48496
|
init_operations();
|
|
47787
48497
|
init_tools();
|
|
47788
|
-
|
|
48498
|
+
args42 = {
|
|
47789
48499
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
47790
48500
|
};
|
|
47791
48501
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -47793,9 +48503,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
47793
48503
|
description: `List vendor scrub details
|
|
47794
48504
|
|
|
47795
48505
|
List vendor scrub details`,
|
|
47796
|
-
args:
|
|
47797
|
-
tool: async (client,
|
|
47798
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
48506
|
+
args: args42,
|
|
48507
|
+
tool: async (client, args43, ctx) => {
|
|
48508
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47799
48509
|
if (!result.ok) {
|
|
47800
48510
|
return {
|
|
47801
48511
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47810,9 +48520,9 @@ List vendor scrub details`,
|
|
|
47810
48520
|
|
|
47811
48521
|
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
47812
48522
|
function vendorsListVendorScrubPackages(client, request, options) {
|
|
47813
|
-
return new APIPromise($
|
|
48523
|
+
return new APIPromise($do44(client, request, options));
|
|
47814
48524
|
}
|
|
47815
|
-
async function $
|
|
48525
|
+
async function $do44(client, request, options) {
|
|
47816
48526
|
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47817
48527
|
if (!parsed.ok) {
|
|
47818
48528
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47838,6 +48548,7 @@ async function $do40(client, request, options) {
|
|
|
47838
48548
|
const securityInput = await extractSecurity(client._options.security);
|
|
47839
48549
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47840
48550
|
const context = {
|
|
48551
|
+
options: client._options,
|
|
47841
48552
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47842
48553
|
operationID: "listVendorScrubPackages",
|
|
47843
48554
|
oAuth2Scopes: [],
|
|
@@ -47854,6 +48565,7 @@ async function $do40(client, request, options) {
|
|
|
47854
48565
|
headers,
|
|
47855
48566
|
query,
|
|
47856
48567
|
body,
|
|
48568
|
+
userAgent: client._options.userAgent,
|
|
47857
48569
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47858
48570
|
}, options);
|
|
47859
48571
|
if (!requestRes.ok) {
|
|
@@ -47924,12 +48636,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
47924
48636
|
});
|
|
47925
48637
|
|
|
47926
48638
|
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
47927
|
-
var
|
|
48639
|
+
var args43, tool$vendorsListVendorScrubPackages;
|
|
47928
48640
|
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
47929
48641
|
init_vendorsListVendorScrubPackages();
|
|
47930
48642
|
init_operations();
|
|
47931
48643
|
init_tools();
|
|
47932
|
-
|
|
48644
|
+
args43 = {
|
|
47933
48645
|
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
47934
48646
|
};
|
|
47935
48647
|
tool$vendorsListVendorScrubPackages = {
|
|
@@ -47937,9 +48649,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
|
47937
48649
|
description: `List vendor scrub packages
|
|
47938
48650
|
|
|
47939
48651
|
List vendor scrub packages`,
|
|
47940
|
-
args:
|
|
47941
|
-
tool: async (client,
|
|
47942
|
-
const [result, apiCall] = await vendorsListVendorScrubPackages(client,
|
|
48652
|
+
args: args43,
|
|
48653
|
+
tool: async (client, args44, ctx) => {
|
|
48654
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47943
48655
|
if (!result.ok) {
|
|
47944
48656
|
return {
|
|
47945
48657
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47954,9 +48666,9 @@ List vendor scrub packages`,
|
|
|
47954
48666
|
|
|
47955
48667
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
47956
48668
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
47957
|
-
return new APIPromise($
|
|
48669
|
+
return new APIPromise($do45(client, request, options));
|
|
47958
48670
|
}
|
|
47959
|
-
async function $
|
|
48671
|
+
async function $do45(client, request, options) {
|
|
47960
48672
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47961
48673
|
if (!parsed.ok) {
|
|
47962
48674
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47982,6 +48694,7 @@ async function $do41(client, request, options) {
|
|
|
47982
48694
|
const securityInput = await extractSecurity(client._options.security);
|
|
47983
48695
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47984
48696
|
const context = {
|
|
48697
|
+
options: client._options,
|
|
47985
48698
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47986
48699
|
operationID: "listVendorScrubPurchases",
|
|
47987
48700
|
oAuth2Scopes: [],
|
|
@@ -47998,6 +48711,7 @@ async function $do41(client, request, options) {
|
|
|
47998
48711
|
headers,
|
|
47999
48712
|
query,
|
|
48000
48713
|
body,
|
|
48714
|
+
userAgent: client._options.userAgent,
|
|
48001
48715
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48002
48716
|
}, options);
|
|
48003
48717
|
if (!requestRes.ok) {
|
|
@@ -48068,12 +48782,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
48068
48782
|
});
|
|
48069
48783
|
|
|
48070
48784
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
48071
|
-
var
|
|
48785
|
+
var args44, tool$vendorsListVendorScrubPurchases;
|
|
48072
48786
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
48073
48787
|
init_vendorsListVendorScrubPurchases();
|
|
48074
48788
|
init_operations();
|
|
48075
48789
|
init_tools();
|
|
48076
|
-
|
|
48790
|
+
args44 = {
|
|
48077
48791
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
48078
48792
|
};
|
|
48079
48793
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -48081,9 +48795,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
48081
48795
|
description: `List vendor scrub purchases
|
|
48082
48796
|
|
|
48083
48797
|
List vendor scrub purchases`,
|
|
48084
|
-
args:
|
|
48085
|
-
tool: async (client,
|
|
48086
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
48798
|
+
args: args44,
|
|
48799
|
+
tool: async (client, args45, ctx) => {
|
|
48800
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48087
48801
|
if (!result.ok) {
|
|
48088
48802
|
return {
|
|
48089
48803
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48098,9 +48812,9 @@ List vendor scrub purchases`,
|
|
|
48098
48812
|
|
|
48099
48813
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
48100
48814
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
48101
|
-
return new APIPromise($
|
|
48815
|
+
return new APIPromise($do46(client, request, options));
|
|
48102
48816
|
}
|
|
48103
|
-
async function $
|
|
48817
|
+
async function $do46(client, request, options) {
|
|
48104
48818
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48105
48819
|
if (!parsed.ok) {
|
|
48106
48820
|
return [parsed, { status: "invalid" }];
|
|
@@ -48121,6 +48835,7 @@ async function $do42(client, request, options) {
|
|
|
48121
48835
|
const securityInput = await extractSecurity(client._options.security);
|
|
48122
48836
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48123
48837
|
const context = {
|
|
48838
|
+
options: client._options,
|
|
48124
48839
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48125
48840
|
operationID: "purchaseScrubCredits",
|
|
48126
48841
|
oAuth2Scopes: [],
|
|
@@ -48136,6 +48851,7 @@ async function $do42(client, request, options) {
|
|
|
48136
48851
|
path,
|
|
48137
48852
|
headers,
|
|
48138
48853
|
body,
|
|
48854
|
+
userAgent: client._options.userAgent,
|
|
48139
48855
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48140
48856
|
}, options);
|
|
48141
48857
|
if (!requestRes.ok) {
|
|
@@ -48174,12 +48890,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
48174
48890
|
});
|
|
48175
48891
|
|
|
48176
48892
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
48177
|
-
var
|
|
48893
|
+
var args45, tool$vendorsPurchaseScrubCredits;
|
|
48178
48894
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
48179
48895
|
init_vendorsPurchaseScrubCredits();
|
|
48180
48896
|
init_operations();
|
|
48181
48897
|
init_tools();
|
|
48182
|
-
|
|
48898
|
+
args45 = {
|
|
48183
48899
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
48184
48900
|
};
|
|
48185
48901
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -48187,9 +48903,115 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
48187
48903
|
description: `Purchase scrub credits
|
|
48188
48904
|
|
|
48189
48905
|
Purchase scrub credits`,
|
|
48190
|
-
args:
|
|
48191
|
-
tool: async (client,
|
|
48192
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
48906
|
+
args: args45,
|
|
48907
|
+
tool: async (client, args46, ctx) => {
|
|
48908
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48909
|
+
if (!result.ok) {
|
|
48910
|
+
return {
|
|
48911
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48912
|
+
isError: true
|
|
48913
|
+
};
|
|
48914
|
+
}
|
|
48915
|
+
const value = result.value;
|
|
48916
|
+
return formatResult(value, apiCall);
|
|
48917
|
+
}
|
|
48918
|
+
};
|
|
48919
|
+
});
|
|
48920
|
+
|
|
48921
|
+
// src/funcs/vendorsSendDownloadCode.ts
|
|
48922
|
+
function vendorsSendDownloadCode(client, request, options) {
|
|
48923
|
+
return new APIPromise($do47(client, request, options));
|
|
48924
|
+
}
|
|
48925
|
+
async function $do47(client, request, options) {
|
|
48926
|
+
const parsed = safeParse(request, (value) => SendDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48927
|
+
if (!parsed.ok) {
|
|
48928
|
+
return [parsed, { status: "invalid" }];
|
|
48929
|
+
}
|
|
48930
|
+
const payload = parsed.value;
|
|
48931
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
48932
|
+
const pathParams = {
|
|
48933
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
48934
|
+
};
|
|
48935
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/code")(pathParams);
|
|
48936
|
+
const headers = new Headers(compactMap({
|
|
48937
|
+
"Content-Type": "application/json",
|
|
48938
|
+
Accept: "application/json"
|
|
48939
|
+
}));
|
|
48940
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
48941
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48942
|
+
const context = {
|
|
48943
|
+
options: client._options,
|
|
48944
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48945
|
+
operationID: "sendDownloadCode",
|
|
48946
|
+
oAuth2Scopes: [],
|
|
48947
|
+
resolvedSecurity: requestSecurity,
|
|
48948
|
+
securitySource: client._options.security,
|
|
48949
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48950
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48951
|
+
};
|
|
48952
|
+
const requestRes = client._createRequest(context, {
|
|
48953
|
+
security: requestSecurity,
|
|
48954
|
+
method: "POST",
|
|
48955
|
+
baseURL: options?.serverURL,
|
|
48956
|
+
path,
|
|
48957
|
+
headers,
|
|
48958
|
+
body,
|
|
48959
|
+
userAgent: client._options.userAgent,
|
|
48960
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48961
|
+
}, options);
|
|
48962
|
+
if (!requestRes.ok) {
|
|
48963
|
+
return [requestRes, { status: "invalid" }];
|
|
48964
|
+
}
|
|
48965
|
+
const req = requestRes.value;
|
|
48966
|
+
const doResult = await client._do(req, {
|
|
48967
|
+
context,
|
|
48968
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
48969
|
+
retryConfig: context.retryConfig,
|
|
48970
|
+
retryCodes: context.retryCodes
|
|
48971
|
+
});
|
|
48972
|
+
if (!doResult.ok) {
|
|
48973
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48974
|
+
}
|
|
48975
|
+
const response = doResult.value;
|
|
48976
|
+
const responseFields = {
|
|
48977
|
+
HttpMeta: { Response: response, Request: req }
|
|
48978
|
+
};
|
|
48979
|
+
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 });
|
|
48980
|
+
if (!result.ok) {
|
|
48981
|
+
return [result, { status: "complete", request: req, response }];
|
|
48982
|
+
}
|
|
48983
|
+
return [result, { status: "complete", request: req, response }];
|
|
48984
|
+
}
|
|
48985
|
+
var init_vendorsSendDownloadCode = __esm(() => {
|
|
48986
|
+
init_esm();
|
|
48987
|
+
init_encodings();
|
|
48988
|
+
init_matchers();
|
|
48989
|
+
init_primitives();
|
|
48990
|
+
init_schemas();
|
|
48991
|
+
init_security();
|
|
48992
|
+
init_url();
|
|
48993
|
+
init_errors2();
|
|
48994
|
+
init_operations();
|
|
48995
|
+
init_async();
|
|
48996
|
+
});
|
|
48997
|
+
|
|
48998
|
+
// src/mcp-server/tools/vendorsSendDownloadCode.ts
|
|
48999
|
+
var args46, tool$vendorsSendDownloadCode;
|
|
49000
|
+
var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
49001
|
+
init_vendorsSendDownloadCode();
|
|
49002
|
+
init_operations();
|
|
49003
|
+
init_tools();
|
|
49004
|
+
args46 = {
|
|
49005
|
+
request: SendDownloadCodeRequest$inboundSchema
|
|
49006
|
+
};
|
|
49007
|
+
tool$vendorsSendDownloadCode = {
|
|
49008
|
+
name: "vendors-send-download-code",
|
|
49009
|
+
description: `Send download code for vendor credential
|
|
49010
|
+
|
|
49011
|
+
It will send download code for vendor credential`,
|
|
49012
|
+
args: args46,
|
|
49013
|
+
tool: async (client, args47, ctx) => {
|
|
49014
|
+
const [result, apiCall] = await vendorsSendDownloadCode(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48193
49015
|
if (!result.ok) {
|
|
48194
49016
|
return {
|
|
48195
49017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48204,9 +49026,9 @@ Purchase scrub credits`,
|
|
|
48204
49026
|
|
|
48205
49027
|
// src/funcs/vendorsSubmitVendorCredential.ts
|
|
48206
49028
|
function vendorsSubmitVendorCredential(client, request, options) {
|
|
48207
|
-
return new APIPromise($
|
|
49029
|
+
return new APIPromise($do48(client, request, options));
|
|
48208
49030
|
}
|
|
48209
|
-
async function $
|
|
49031
|
+
async function $do48(client, request, options) {
|
|
48210
49032
|
const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48211
49033
|
if (!parsed.ok) {
|
|
48212
49034
|
return [parsed, { status: "invalid" }];
|
|
@@ -48224,6 +49046,7 @@ async function $do43(client, request, options) {
|
|
|
48224
49046
|
const securityInput = await extractSecurity(client._options.security);
|
|
48225
49047
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48226
49048
|
const context = {
|
|
49049
|
+
options: client._options,
|
|
48227
49050
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48228
49051
|
operationID: "submitVendorCredential",
|
|
48229
49052
|
oAuth2Scopes: [],
|
|
@@ -48239,6 +49062,7 @@ async function $do43(client, request, options) {
|
|
|
48239
49062
|
path,
|
|
48240
49063
|
headers,
|
|
48241
49064
|
body,
|
|
49065
|
+
userAgent: client._options.userAgent,
|
|
48242
49066
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48243
49067
|
}, options);
|
|
48244
49068
|
if (!requestRes.ok) {
|
|
@@ -48278,12 +49102,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
|
|
|
48278
49102
|
});
|
|
48279
49103
|
|
|
48280
49104
|
// src/mcp-server/tools/vendorsSubmitVendorCredential.ts
|
|
48281
|
-
var
|
|
49105
|
+
var args47, tool$vendorsSubmitVendorCredential;
|
|
48282
49106
|
var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
48283
49107
|
init_vendorsSubmitVendorCredential();
|
|
48284
49108
|
init_operations();
|
|
48285
49109
|
init_tools();
|
|
48286
|
-
|
|
49110
|
+
args47 = {
|
|
48287
49111
|
request: SubmitVendorCredentialRequest$inboundSchema
|
|
48288
49112
|
};
|
|
48289
49113
|
tool$vendorsSubmitVendorCredential = {
|
|
@@ -48291,9 +49115,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
|
48291
49115
|
description: `Submit vendor credential
|
|
48292
49116
|
|
|
48293
49117
|
It will submit vendor credential`,
|
|
48294
|
-
args:
|
|
48295
|
-
tool: async (client,
|
|
48296
|
-
const [result, apiCall] = await vendorsSubmitVendorCredential(client,
|
|
49118
|
+
args: args47,
|
|
49119
|
+
tool: async (client, args48, ctx) => {
|
|
49120
|
+
const [result, apiCall] = await vendorsSubmitVendorCredential(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48297
49121
|
if (!result.ok) {
|
|
48298
49122
|
return {
|
|
48299
49123
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48308,9 +49132,9 @@ It will submit vendor credential`,
|
|
|
48308
49132
|
|
|
48309
49133
|
// src/funcs/vendorsUpdateVendorCredentialFile.ts
|
|
48310
49134
|
function vendorsUpdateVendorCredentialFile(client, request, options) {
|
|
48311
|
-
return new APIPromise($
|
|
49135
|
+
return new APIPromise($do49(client, request, options));
|
|
48312
49136
|
}
|
|
48313
|
-
async function $
|
|
49137
|
+
async function $do49(client, request, options) {
|
|
48314
49138
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48315
49139
|
if (!parsed.ok) {
|
|
48316
49140
|
return [parsed, { status: "invalid" }];
|
|
@@ -48332,6 +49156,7 @@ async function $do44(client, request, options) {
|
|
|
48332
49156
|
const securityInput = await extractSecurity(client._options.security);
|
|
48333
49157
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48334
49158
|
const context = {
|
|
49159
|
+
options: client._options,
|
|
48335
49160
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48336
49161
|
operationID: "updateVendorCredentialFile",
|
|
48337
49162
|
oAuth2Scopes: [],
|
|
@@ -48347,6 +49172,7 @@ async function $do44(client, request, options) {
|
|
|
48347
49172
|
path,
|
|
48348
49173
|
headers,
|
|
48349
49174
|
body,
|
|
49175
|
+
userAgent: client._options.userAgent,
|
|
48350
49176
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48351
49177
|
}, options);
|
|
48352
49178
|
if (!requestRes.ok) {
|
|
@@ -48386,12 +49212,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
|
|
|
48386
49212
|
});
|
|
48387
49213
|
|
|
48388
49214
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
|
|
48389
|
-
var
|
|
49215
|
+
var args48, tool$vendorsUpdateVendorCredentialFile;
|
|
48390
49216
|
var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
48391
49217
|
init_vendorsUpdateVendorCredentialFile();
|
|
48392
49218
|
init_operations();
|
|
48393
49219
|
init_tools();
|
|
48394
|
-
|
|
49220
|
+
args48 = {
|
|
48395
49221
|
request: UpdateVendorCredentialFileRequest$inboundSchema
|
|
48396
49222
|
};
|
|
48397
49223
|
tool$vendorsUpdateVendorCredentialFile = {
|
|
@@ -48399,9 +49225,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
|
48399
49225
|
description: `Update vendor credential file
|
|
48400
49226
|
|
|
48401
49227
|
It will update the vendor credential file properties`,
|
|
48402
|
-
args:
|
|
48403
|
-
tool: async (client,
|
|
48404
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client,
|
|
49228
|
+
args: args48,
|
|
49229
|
+
tool: async (client, args49, ctx) => {
|
|
49230
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48405
49231
|
if (!result.ok) {
|
|
48406
49232
|
return {
|
|
48407
49233
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48416,9 +49242,9 @@ It will update the vendor credential file properties`,
|
|
|
48416
49242
|
|
|
48417
49243
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
48418
49244
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
48419
|
-
return new APIPromise($
|
|
49245
|
+
return new APIPromise($do50(client, request, options));
|
|
48420
49246
|
}
|
|
48421
|
-
async function $
|
|
49247
|
+
async function $do50(client, request, options) {
|
|
48422
49248
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48423
49249
|
if (!parsed.ok) {
|
|
48424
49250
|
return [parsed, { status: "invalid" }];
|
|
@@ -48439,6 +49265,7 @@ async function $do45(client, request, options) {
|
|
|
48439
49265
|
const securityInput = await extractSecurity(client._options.security);
|
|
48440
49266
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48441
49267
|
const context = {
|
|
49268
|
+
options: client._options,
|
|
48442
49269
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48443
49270
|
operationID: "updateVendorDetails",
|
|
48444
49271
|
oAuth2Scopes: [],
|
|
@@ -48454,6 +49281,7 @@ async function $do45(client, request, options) {
|
|
|
48454
49281
|
path,
|
|
48455
49282
|
headers,
|
|
48456
49283
|
body,
|
|
49284
|
+
userAgent: client._options.userAgent,
|
|
48457
49285
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48458
49286
|
}, options);
|
|
48459
49287
|
if (!requestRes.ok) {
|
|
@@ -48493,12 +49321,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
48493
49321
|
});
|
|
48494
49322
|
|
|
48495
49323
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
48496
|
-
var
|
|
49324
|
+
var args49, tool$vendorsUpdateVendorDetails;
|
|
48497
49325
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
48498
49326
|
init_vendorsUpdateVendorDetails();
|
|
48499
49327
|
init_operations();
|
|
48500
49328
|
init_tools();
|
|
48501
|
-
|
|
49329
|
+
args49 = {
|
|
48502
49330
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
48503
49331
|
};
|
|
48504
49332
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -48506,9 +49334,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
48506
49334
|
description: `Update vendor details
|
|
48507
49335
|
|
|
48508
49336
|
It will update the vendor details`,
|
|
48509
|
-
args:
|
|
48510
|
-
tool: async (client,
|
|
48511
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
49337
|
+
args: args49,
|
|
49338
|
+
tool: async (client, args50, ctx) => {
|
|
49339
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48512
49340
|
if (!result.ok) {
|
|
48513
49341
|
return {
|
|
48514
49342
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48523,9 +49351,9 @@ It will update the vendor details`,
|
|
|
48523
49351
|
|
|
48524
49352
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
48525
49353
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
48526
|
-
return new APIPromise($
|
|
49354
|
+
return new APIPromise($do51(client, request, options));
|
|
48527
49355
|
}
|
|
48528
|
-
async function $
|
|
49356
|
+
async function $do51(client, request, options) {
|
|
48529
49357
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48530
49358
|
if (!parsed.ok) {
|
|
48531
49359
|
return [parsed, { status: "invalid" }];
|
|
@@ -48546,6 +49374,7 @@ async function $do46(client, request, options) {
|
|
|
48546
49374
|
const securityInput = await extractSecurity(client._options.security);
|
|
48547
49375
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48548
49376
|
const context = {
|
|
49377
|
+
options: client._options,
|
|
48549
49378
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48550
49379
|
operationID: "updateVendorManagedByCompany",
|
|
48551
49380
|
oAuth2Scopes: [],
|
|
@@ -48561,6 +49390,7 @@ async function $do46(client, request, options) {
|
|
|
48561
49390
|
path,
|
|
48562
49391
|
headers,
|
|
48563
49392
|
body,
|
|
49393
|
+
userAgent: client._options.userAgent,
|
|
48564
49394
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48565
49395
|
}, options);
|
|
48566
49396
|
if (!requestRes.ok) {
|
|
@@ -48599,12 +49429,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
48599
49429
|
});
|
|
48600
49430
|
|
|
48601
49431
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
48602
|
-
var
|
|
49432
|
+
var args50, tool$vendorsUpdateVendorManagedByCompany;
|
|
48603
49433
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
48604
49434
|
init_vendorsUpdateVendorManagedByCompany();
|
|
48605
49435
|
init_operations();
|
|
48606
49436
|
init_tools();
|
|
48607
|
-
|
|
49437
|
+
args50 = {
|
|
48608
49438
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
48609
49439
|
};
|
|
48610
49440
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -48612,9 +49442,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
48612
49442
|
description: `Update vendor managed by company access rights
|
|
48613
49443
|
|
|
48614
49444
|
It will update the vendor managed by company access rights`,
|
|
48615
|
-
args:
|
|
48616
|
-
tool: async (client,
|
|
48617
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
49445
|
+
args: args50,
|
|
49446
|
+
tool: async (client, args51, ctx) => {
|
|
49447
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48618
49448
|
if (!result.ok) {
|
|
48619
49449
|
return {
|
|
48620
49450
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48629,9 +49459,9 @@ It will update the vendor managed by company access rights`,
|
|
|
48629
49459
|
|
|
48630
49460
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
48631
49461
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
48632
|
-
return new APIPromise($
|
|
49462
|
+
return new APIPromise($do52(client, request, options));
|
|
48633
49463
|
}
|
|
48634
|
-
async function $
|
|
49464
|
+
async function $do52(client, request, options) {
|
|
48635
49465
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48636
49466
|
if (!parsed.ok) {
|
|
48637
49467
|
return [parsed, { status: "invalid" }];
|
|
@@ -48652,6 +49482,7 @@ async function $do47(client, request, options) {
|
|
|
48652
49482
|
const securityInput = await extractSecurity(client._options.security);
|
|
48653
49483
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48654
49484
|
const context = {
|
|
49485
|
+
options: client._options,
|
|
48655
49486
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48656
49487
|
operationID: "updateVendorScrubDetails",
|
|
48657
49488
|
oAuth2Scopes: [],
|
|
@@ -48667,6 +49498,7 @@ async function $do47(client, request, options) {
|
|
|
48667
49498
|
path,
|
|
48668
49499
|
headers,
|
|
48669
49500
|
body,
|
|
49501
|
+
userAgent: client._options.userAgent,
|
|
48670
49502
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48671
49503
|
}, options);
|
|
48672
49504
|
if (!requestRes.ok) {
|
|
@@ -48706,12 +49538,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
48706
49538
|
});
|
|
48707
49539
|
|
|
48708
49540
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
48709
|
-
var
|
|
49541
|
+
var args51, tool$vendorsUpdateVendorScrubDetails;
|
|
48710
49542
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
48711
49543
|
init_vendorsUpdateVendorScrubDetails();
|
|
48712
49544
|
init_operations();
|
|
48713
49545
|
init_tools();
|
|
48714
|
-
|
|
49546
|
+
args51 = {
|
|
48715
49547
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
48716
49548
|
};
|
|
48717
49549
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -48719,9 +49551,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
48719
49551
|
description: `Update vendor scrub details
|
|
48720
49552
|
|
|
48721
49553
|
Update vendor scrub details`,
|
|
48722
|
-
args:
|
|
48723
|
-
tool: async (client,
|
|
48724
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
49554
|
+
args: args51,
|
|
49555
|
+
tool: async (client, args52, ctx) => {
|
|
49556
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48725
49557
|
if (!result.ok) {
|
|
48726
49558
|
return {
|
|
48727
49559
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48736,9 +49568,9 @@ Update vendor scrub details`,
|
|
|
48736
49568
|
|
|
48737
49569
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
48738
49570
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
48739
|
-
return new APIPromise($
|
|
49571
|
+
return new APIPromise($do53(client, request, options));
|
|
48740
49572
|
}
|
|
48741
|
-
async function $
|
|
49573
|
+
async function $do53(client, request, options) {
|
|
48742
49574
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48743
49575
|
if (!parsed.ok) {
|
|
48744
49576
|
return [parsed, { status: "invalid" }];
|
|
@@ -48758,6 +49590,7 @@ async function $do48(client, request, options) {
|
|
|
48758
49590
|
const securityInput = await extractSecurity(client._options.security);
|
|
48759
49591
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48760
49592
|
const context = {
|
|
49593
|
+
options: client._options,
|
|
48761
49594
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48762
49595
|
operationID: "getWebhookEndpoint",
|
|
48763
49596
|
oAuth2Scopes: [],
|
|
@@ -48773,6 +49606,7 @@ async function $do48(client, request, options) {
|
|
|
48773
49606
|
path,
|
|
48774
49607
|
headers,
|
|
48775
49608
|
body,
|
|
49609
|
+
userAgent: client._options.userAgent,
|
|
48776
49610
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48777
49611
|
}, options);
|
|
48778
49612
|
if (!requestRes.ok) {
|
|
@@ -48812,12 +49646,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
48812
49646
|
});
|
|
48813
49647
|
|
|
48814
49648
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
48815
|
-
var
|
|
49649
|
+
var args52, tool$webhooksGetWebhookEndpoint;
|
|
48816
49650
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
48817
49651
|
init_webhooksGetWebhookEndpoint();
|
|
48818
49652
|
init_operations();
|
|
48819
49653
|
init_tools();
|
|
48820
|
-
|
|
49654
|
+
args52 = {
|
|
48821
49655
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
48822
49656
|
};
|
|
48823
49657
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -48825,9 +49659,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
48825
49659
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
48826
49660
|
|
|
48827
49661
|
Returns the definition of a webhook endpoint by ID.`,
|
|
48828
|
-
args:
|
|
48829
|
-
tool: async (client,
|
|
48830
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
49662
|
+
args: args52,
|
|
49663
|
+
tool: async (client, args53, ctx) => {
|
|
49664
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48831
49665
|
if (!result.ok) {
|
|
48832
49666
|
return {
|
|
48833
49667
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48842,9 +49676,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
48842
49676
|
|
|
48843
49677
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
48844
49678
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
48845
|
-
return new APIPromise($
|
|
49679
|
+
return new APIPromise($do54(client, request, options));
|
|
48846
49680
|
}
|
|
48847
|
-
async function $
|
|
49681
|
+
async function $do54(client, request, options) {
|
|
48848
49682
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48849
49683
|
if (!parsed.ok) {
|
|
48850
49684
|
return [parsed, { status: "invalid" }];
|
|
@@ -48864,6 +49698,7 @@ async function $do49(client, request, options) {
|
|
|
48864
49698
|
const securityInput = await extractSecurity(client._options.security);
|
|
48865
49699
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48866
49700
|
const context = {
|
|
49701
|
+
options: client._options,
|
|
48867
49702
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48868
49703
|
operationID: "listAllWebhookEndpoints",
|
|
48869
49704
|
oAuth2Scopes: [],
|
|
@@ -48880,6 +49715,7 @@ async function $do49(client, request, options) {
|
|
|
48880
49715
|
headers,
|
|
48881
49716
|
query,
|
|
48882
49717
|
body,
|
|
49718
|
+
userAgent: client._options.userAgent,
|
|
48883
49719
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48884
49720
|
}, options);
|
|
48885
49721
|
if (!requestRes.ok) {
|
|
@@ -48918,12 +49754,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
48918
49754
|
});
|
|
48919
49755
|
|
|
48920
49756
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
48921
|
-
var
|
|
49757
|
+
var args53, tool$webhooksListAllWebhookEndpoints;
|
|
48922
49758
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
48923
49759
|
init_webhooksListAllWebhookEndpoints();
|
|
48924
49760
|
init_operations();
|
|
48925
49761
|
init_tools();
|
|
48926
|
-
|
|
49762
|
+
args53 = {
|
|
48927
49763
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
48928
49764
|
};
|
|
48929
49765
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -48931,9 +49767,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
48931
49767
|
description: `List all webhook endpoints
|
|
48932
49768
|
|
|
48933
49769
|
Returns a list of your webhook endpoints.`,
|
|
48934
|
-
args:
|
|
48935
|
-
tool: async (client,
|
|
48936
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
49770
|
+
args: args53,
|
|
49771
|
+
tool: async (client, args54, ctx) => {
|
|
49772
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48937
49773
|
if (!result.ok) {
|
|
48938
49774
|
return {
|
|
48939
49775
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48948,9 +49784,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
48948
49784
|
|
|
48949
49785
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
48950
49786
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
48951
|
-
return new APIPromise($
|
|
49787
|
+
return new APIPromise($do55(client, request, options));
|
|
48952
49788
|
}
|
|
48953
|
-
async function $
|
|
49789
|
+
async function $do55(client, request, options) {
|
|
48954
49790
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48955
49791
|
if (!parsed.ok) {
|
|
48956
49792
|
return [parsed, { status: "invalid" }];
|
|
@@ -48971,6 +49807,7 @@ async function $do50(client, request, options) {
|
|
|
48971
49807
|
const securityInput = await extractSecurity(client._options.security);
|
|
48972
49808
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48973
49809
|
const context = {
|
|
49810
|
+
options: client._options,
|
|
48974
49811
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48975
49812
|
operationID: "updatesTheWebhookEndpointWithTheGivenId",
|
|
48976
49813
|
oAuth2Scopes: [],
|
|
@@ -48986,6 +49823,7 @@ async function $do50(client, request, options) {
|
|
|
48986
49823
|
path,
|
|
48987
49824
|
headers,
|
|
48988
49825
|
body,
|
|
49826
|
+
userAgent: client._options.userAgent,
|
|
48989
49827
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48990
49828
|
}, options);
|
|
48991
49829
|
if (!requestRes.ok) {
|
|
@@ -49025,12 +49863,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
49025
49863
|
});
|
|
49026
49864
|
|
|
49027
49865
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
49028
|
-
var
|
|
49866
|
+
var args54, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
49029
49867
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
49030
49868
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
49031
49869
|
init_operations();
|
|
49032
49870
|
init_tools();
|
|
49033
|
-
|
|
49871
|
+
args54 = {
|
|
49034
49872
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
49035
49873
|
};
|
|
49036
49874
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -49038,9 +49876,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
49038
49876
|
description: `Updates the webhook endpoint with the given ID.
|
|
49039
49877
|
|
|
49040
49878
|
Updates the webhook endpoint with the given ID.`,
|
|
49041
|
-
args:
|
|
49042
|
-
tool: async (client,
|
|
49043
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
49879
|
+
args: args54,
|
|
49880
|
+
tool: async (client, args55, ctx) => {
|
|
49881
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49044
49882
|
if (!result.ok) {
|
|
49045
49883
|
return {
|
|
49046
49884
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49055,9 +49893,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
49055
49893
|
|
|
49056
49894
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
49057
49895
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
49058
|
-
return new APIPromise($
|
|
49896
|
+
return new APIPromise($do56(client, request, options));
|
|
49059
49897
|
}
|
|
49060
|
-
async function $
|
|
49898
|
+
async function $do56(client, request, options) {
|
|
49061
49899
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49062
49900
|
if (!parsed.ok) {
|
|
49063
49901
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49083,6 +49921,7 @@ async function $do51(client, request, options) {
|
|
|
49083
49921
|
const securityInput = await extractSecurity(client._options.security);
|
|
49084
49922
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49085
49923
|
const context = {
|
|
49924
|
+
options: client._options,
|
|
49086
49925
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49087
49926
|
operationID: "listOrSearchSecurityZones",
|
|
49088
49927
|
oAuth2Scopes: [],
|
|
@@ -49099,6 +49938,7 @@ async function $do51(client, request, options) {
|
|
|
49099
49938
|
headers,
|
|
49100
49939
|
query,
|
|
49101
49940
|
body,
|
|
49941
|
+
userAgent: client._options.userAgent,
|
|
49102
49942
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49103
49943
|
}, options);
|
|
49104
49944
|
if (!requestRes.ok) {
|
|
@@ -49169,12 +50009,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
49169
50009
|
});
|
|
49170
50010
|
|
|
49171
50011
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
49172
|
-
var
|
|
50012
|
+
var args55, tool$zonesListOrSearchSecurityZones;
|
|
49173
50013
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
49174
50014
|
init_zonesListOrSearchSecurityZones();
|
|
49175
50015
|
init_operations();
|
|
49176
50016
|
init_tools();
|
|
49177
|
-
|
|
50017
|
+
args55 = {
|
|
49178
50018
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
49179
50019
|
};
|
|
49180
50020
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -49182,9 +50022,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
49182
50022
|
description: `List or search security zones
|
|
49183
50023
|
|
|
49184
50024
|
List or search security zones`,
|
|
49185
|
-
args:
|
|
49186
|
-
tool: async (client,
|
|
49187
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
50025
|
+
args: args55,
|
|
50026
|
+
tool: async (client, args56, ctx) => {
|
|
50027
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49188
50028
|
if (!result.ok) {
|
|
49189
50029
|
return {
|
|
49190
50030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49199,9 +50039,9 @@ List or search security zones`,
|
|
|
49199
50039
|
|
|
49200
50040
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
49201
50041
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
49202
|
-
return new APIPromise($
|
|
50042
|
+
return new APIPromise($do57(client, request, options));
|
|
49203
50043
|
}
|
|
49204
|
-
async function $
|
|
50044
|
+
async function $do57(client, request, options) {
|
|
49205
50045
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
49206
50046
|
if (!parsed.ok) {
|
|
49207
50047
|
return [parsed, { status: "invalid" }];
|
|
@@ -49216,6 +50056,7 @@ async function $do52(client, request, options) {
|
|
|
49216
50056
|
const securityInput = await extractSecurity(client._options.security);
|
|
49217
50057
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49218
50058
|
const context = {
|
|
50059
|
+
options: client._options,
|
|
49219
50060
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49220
50061
|
operationID: "securityZoneCheckin",
|
|
49221
50062
|
oAuth2Scopes: [],
|
|
@@ -49231,6 +50072,7 @@ async function $do52(client, request, options) {
|
|
|
49231
50072
|
path,
|
|
49232
50073
|
headers,
|
|
49233
50074
|
body,
|
|
50075
|
+
userAgent: client._options.userAgent,
|
|
49234
50076
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49235
50077
|
}, options);
|
|
49236
50078
|
if (!requestRes.ok) {
|
|
@@ -49269,12 +50111,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
49269
50111
|
});
|
|
49270
50112
|
|
|
49271
50113
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
49272
|
-
var
|
|
50114
|
+
var args56, tool$zonesSecurityZoneCheckin;
|
|
49273
50115
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
49274
50116
|
init_zonesSecurityZoneCheckin();
|
|
49275
50117
|
init_operations();
|
|
49276
50118
|
init_tools();
|
|
49277
|
-
|
|
50119
|
+
args56 = {
|
|
49278
50120
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
49279
50121
|
};
|
|
49280
50122
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -49282,9 +50124,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
49282
50124
|
description: `Security zone checkin request
|
|
49283
50125
|
|
|
49284
50126
|
Security zone checkin request`,
|
|
49285
|
-
args:
|
|
49286
|
-
tool: async (client,
|
|
49287
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
50127
|
+
args: args56,
|
|
50128
|
+
tool: async (client, args57, ctx) => {
|
|
50129
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49288
50130
|
if (!result.ok) {
|
|
49289
50131
|
return {
|
|
49290
50132
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49301,7 +50143,7 @@ Security zone checkin request`,
|
|
|
49301
50143
|
function createMCPServer(deps) {
|
|
49302
50144
|
const server = new McpServer({
|
|
49303
50145
|
name: "GreenSecurity",
|
|
49304
|
-
version: "0.
|
|
50146
|
+
version: "0.35.3"
|
|
49305
50147
|
});
|
|
49306
50148
|
const client = new GreenSecurityCore({
|
|
49307
50149
|
security: deps.security,
|
|
@@ -49324,6 +50166,8 @@ function createMCPServer(deps) {
|
|
|
49324
50166
|
tool(tool$vendorsDeleteVendorCredentialFile);
|
|
49325
50167
|
tool(tool$vendorsGetVendorLegalName);
|
|
49326
50168
|
tool(tool$vendorsDeclineVendorCredential);
|
|
50169
|
+
tool(tool$vendorsCheckDownloadCode);
|
|
50170
|
+
tool(tool$vendorsSendDownloadCode);
|
|
49327
50171
|
tool(tool$vendorsListVendorCredentialFiles);
|
|
49328
50172
|
tool(tool$vendorsAddVendorCredentialFile);
|
|
49329
50173
|
tool(tool$vendorsSubmitVendorCredential);
|
|
@@ -49367,6 +50211,9 @@ function createMCPServer(deps) {
|
|
|
49367
50211
|
tool(tool$companiesListOrSearchCompanies);
|
|
49368
50212
|
tool(tool$zonesListOrSearchSecurityZones);
|
|
49369
50213
|
tool(tool$zonesSecurityZoneCheckin);
|
|
50214
|
+
tool(tool$dataRequestsAddDataRequestFile);
|
|
50215
|
+
tool(tool$dataRequestsDeleteDataRequestFile);
|
|
50216
|
+
tool(tool$dataRequestsUpdateDataRequest);
|
|
49370
50217
|
return server;
|
|
49371
50218
|
}
|
|
49372
50219
|
var init_server2 = __esm(() => {
|
|
@@ -49375,6 +50222,9 @@ var init_server2 = __esm(() => {
|
|
|
49375
50222
|
init_resources();
|
|
49376
50223
|
init_tools();
|
|
49377
50224
|
init_companiesListOrSearchCompanies2();
|
|
50225
|
+
init_dataRequestsAddDataRequestFile2();
|
|
50226
|
+
init_dataRequestsDeleteDataRequestFile2();
|
|
50227
|
+
init_dataRequestsUpdateDataRequest2();
|
|
49378
50228
|
init_organizationsGetFacility2();
|
|
49379
50229
|
init_organizationsListOrSearchFacilities2();
|
|
49380
50230
|
init_supportArticlesGetSupportArticle2();
|
|
@@ -49389,6 +50239,7 @@ var init_server2 = __esm(() => {
|
|
|
49389
50239
|
init_vendorsAddVendorCredentialFile2();
|
|
49390
50240
|
init_vendorsAddVendorManagedByCompany2();
|
|
49391
50241
|
init_vendorScansVendorScanOut2();
|
|
50242
|
+
init_vendorsCheckDownloadCode2();
|
|
49392
50243
|
init_vendorsCreateNewVendorCredentialVersion2();
|
|
49393
50244
|
init_vendorsCreateOrUpdateBcr2();
|
|
49394
50245
|
init_vendorsCreateVendorCompany2();
|
|
@@ -49416,6 +50267,7 @@ var init_server2 = __esm(() => {
|
|
|
49416
50267
|
init_vendorsListVendorScrubPackages2();
|
|
49417
50268
|
init_vendorsListVendorScrubPurchases2();
|
|
49418
50269
|
init_vendorsPurchaseScrubCredits2();
|
|
50270
|
+
init_vendorsSendDownloadCode2();
|
|
49419
50271
|
init_vendorsSubmitVendorCredential2();
|
|
49420
50272
|
init_vendorsUpdateVendorCredentialFile2();
|
|
49421
50273
|
init_vendorsUpdateVendorDetails2();
|
|
@@ -50630,7 +51482,7 @@ var routes = an({
|
|
|
50630
51482
|
var app = He(routes, {
|
|
50631
51483
|
name: "mcp",
|
|
50632
51484
|
versionInfo: {
|
|
50633
|
-
currentVersion: "0.
|
|
51485
|
+
currentVersion: "0.35.3"
|
|
50634
51486
|
}
|
|
50635
51487
|
});
|
|
50636
51488
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50638,5 +51490,5 @@ export {
|
|
|
50638
51490
|
app
|
|
50639
51491
|
};
|
|
50640
51492
|
|
|
50641
|
-
//# debugId=
|
|
51493
|
+
//# debugId=3C220F20658B0E7164756E2164756E21
|
|
50642
51494
|
//# sourceMappingURL=mcp-server.js.map
|