@greensecurity/javascript-sdk 0.18.2 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REACT_QUERY.md +15 -15
- package/README.md +96 -9
- package/bin/mcp-server.js +1945 -233
- package/bin/mcp-server.js.map +67 -39
- package/funcs/organizationsListOrSearchFacilities.d.ts +2 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +3 -2
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/funcs/vendorScansVendorScanOut.d.ts +17 -0
- package/funcs/vendorScansVendorScanOut.d.ts.map +1 -0
- package/funcs/vendorScansVendorScanOut.js +120 -0
- package/funcs/vendorScansVendorScanOut.js.map +1 -0
- package/funcs/vendorsGetVendorsDetails.d.ts +32 -0
- package/funcs/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/funcs/vendorsGetVendorsDetails.js +139 -0
- package/funcs/vendorsGetVendorsDetails.js.map +1 -0
- package/funcs/vendorsListVendorCredentials.d.ts +4 -1
- package/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/funcs/vendorsListVendorCredentials.js +46 -6
- package/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/funcs/vendorsListVendorFacilityStatuses.js +155 -0
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +21 -6
- package/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/funcs/vendorsListVendorScrubDetails.d.ts +18 -0
- package/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubDetails.js +121 -0
- package/funcs/vendorsListVendorScrubDetails.js.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts +20 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.js +160 -0
- package/funcs/vendorsListVendorScrubPurchases.js.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts +18 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.js +121 -0
- package/funcs/webhooksGetWebhookEndpoint.js.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts +17 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.js +121 -0
- package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/extensions.d.ts +2 -0
- package/mcp-server/extensions.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +26 -0
- package/mcp-server/prompts.d.ts.map +1 -0
- package/mcp-server/prompts.js +47 -0
- package/mcp-server/prompts.js.map +1 -0
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +1 -0
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +18 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsGetFacility.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
- package/mcp-server/tools/usersGetCurrentUser.js +1 -1
- package/mcp-server/tools/usersGetUserById.js +1 -1
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
- package/mcp-server/tools/usersMagiclink.js +1 -1
- package/mcp-server/tools/usersPassword.js +1 -1
- package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts +8 -0
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts.map +1 -0
- package/mcp-server/tools/{userPasswordResetRequest.js → vendorScansVendorScanOut.js} +9 -9
- package/mcp-server/tools/{userPasswordResetRequest.js.map → vendorScansVendorScanOut.js.map} +1 -1
- package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
- package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +1 -1
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js +78 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js +2 -2
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -1
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/mcp-server/tools/{userGetUserById.js → vendorsListVendorScrubDetails.js} +9 -9
- package/mcp-server/tools/vendorsListVendorScrubDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/mcp-server/tools/{userPassword.js → vendorsListVendorScrubPurchases.js} +10 -11
- package/mcp-server/tools/vendorsListVendorScrubPurchases.js.map +1 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts +8 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/mcp-server/tools/{vendorsListVendorJobTitles.js → webhooksGetWebhookEndpoint.js} +10 -10
- package/mcp-server/tools/webhooksGetWebhookEndpoint.js.map +1 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts +8 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/mcp-server/tools/{userMagiclink.js → webhooksListAllWebhookEndpoints.js} +9 -9
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/company.d.ts +15 -15
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +19 -18
- package/models/components/company.js.map +1 -1
- package/models/components/contact.d.ts +13 -13
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +16 -16
- package/models/components/contact.js.map +1 -1
- package/models/components/department.d.ts +34 -0
- package/models/components/department.d.ts.map +1 -0
- package/models/components/department.js +71 -0
- package/models/components/department.js.map +1 -0
- package/models/components/expand.d.ts +24 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +8 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/facility.d.ts +17 -17
- package/models/components/facility.d.ts.map +1 -1
- package/models/components/facility.js +20 -20
- package/models/components/facility.js.map +1 -1
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/scantype.d.ts +31 -0
- package/models/components/scantype.d.ts.map +1 -0
- package/models/components/scantype.js +62 -0
- package/models/components/scantype.js.map +1 -0
- package/models/components/subscription.d.ts +42 -0
- package/models/components/subscription.d.ts.map +1 -0
- package/models/components/subscription.js +92 -0
- package/models/components/subscription.js.map +1 -0
- package/models/components/user.d.ts +8 -25
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +8 -31
- package/models/components/user.js.map +1 -1
- package/models/components/vendor.d.ts +374 -0
- package/models/components/vendor.d.ts.map +1 -0
- package/models/components/vendor.js +523 -0
- package/models/components/vendor.js.map +1 -0
- package/models/components/vendorfacilitystatusview.d.ts +42 -0
- package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
- package/models/components/vendorfacilitystatusview.js +98 -0
- package/models/components/vendorfacilitystatusview.js.map +1 -0
- package/models/components/vendorscrubdetails.d.ts +42 -0
- package/models/components/vendorscrubdetails.d.ts.map +1 -0
- package/models/components/vendorscrubdetails.js +98 -0
- package/models/components/vendorscrubdetails.js.map +1 -0
- package/models/components/vendorscrubpurchase.d.ts +38 -0
- package/models/components/vendorscrubpurchase.d.ts.map +1 -0
- package/models/components/vendorscrubpurchase.js +84 -0
- package/models/components/vendorscrubpurchase.js.map +1 -0
- package/models/components/webhookendpoint.d.ts +135 -0
- package/models/components/webhookendpoint.d.ts.map +1 -0
- package/models/components/webhookendpoint.js +158 -0
- package/models/components/webhookendpoint.js.map +1 -0
- package/models/operations/getvendorsdetails.d.ts +38 -0
- package/models/operations/getvendorsdetails.d.ts.map +1 -0
- package/models/operations/getvendorsdetails.js +81 -0
- package/models/operations/getvendorsdetails.js.map +1 -0
- package/models/operations/getwebhookendpoint.d.ts +32 -0
- package/models/operations/getwebhookendpoint.d.ts.map +1 -0
- package/models/operations/getwebhookendpoint.js +69 -0
- package/models/operations/getwebhookendpoint.js.map +1 -0
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listallwebhookendpoints.d.ts +81 -0
- package/models/operations/listallwebhookendpoints.d.ts.map +1 -0
- package/models/operations/listallwebhookendpoints.js +114 -0
- package/models/operations/listallwebhookendpoints.js.map +1 -0
- package/models/operations/listorsearchfacilities.d.ts +2 -2
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +2 -2
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listvendorcredentials.d.ts +77 -5
- package/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/models/operations/listvendorcredentials.js +78 -3
- package/models/operations/listvendorcredentials.js.map +1 -1
- package/models/operations/listvendorfacilitystatuses.d.ts +111 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
- package/models/operations/listvendorfacilitystatuses.js +153 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -0
- package/models/operations/listvendorjobtitles.d.ts +27 -0
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +38 -1
- package/models/operations/listvendorjobtitles.js.map +1 -1
- package/models/operations/listvendorscrubdetails.d.ts +32 -0
- package/models/operations/listvendorscrubdetails.d.ts.map +1 -0
- package/models/operations/listvendorscrubdetails.js +78 -0
- package/models/operations/listvendorscrubdetails.js.map +1 -0
- package/models/operations/listvendorscrubpurchases.d.ts +111 -0
- package/models/operations/listvendorscrubpurchases.d.ts.map +1 -0
- package/models/operations/listvendorscrubpurchases.js +153 -0
- package/models/operations/listvendorscrubpurchases.js.map +1 -0
- package/models/operations/vendorscanout.d.ts +64 -0
- package/models/operations/vendorscanout.d.ts.map +1 -0
- package/models/operations/vendorscanout.js +100 -0
- package/models/operations/vendorscanout.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +7 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +7 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorScansVendorScanOut.d.ts +23 -0
- package/react-query/vendorScansVendorScanOut.d.ts.map +1 -0
- package/react-query/vendorScansVendorScanOut.js +47 -0
- package/react-query/vendorScansVendorScanOut.js.map +1 -0
- package/react-query/vendorsGetVendorsDetails.d.ts +71 -0
- package/react-query/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/react-query/vendorsGetVendorsDetails.js +123 -0
- package/react-query/vendorsGetVendorsDetails.js.map +1 -0
- package/react-query/vendorsListVendorCredentials.d.ts +40 -3
- package/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/react-query/vendorsListVendorCredentials.js +67 -0
- package/react-query/vendorsListVendorCredentials.js.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.d.ts +78 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/react-query/vendorsListVendorFacilityStatuses.js +161 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/react-query/vendorsListVendorJobTitles.d.ts +7 -7
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/react-query/vendorsListVendorJobTitles.js +15 -15
- package/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/react-query/vendorsListVendorScrubDetails.d.ts +31 -0
- package/react-query/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubDetails.js +96 -0
- package/react-query/vendorsListVendorScrubDetails.js.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts +77 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.js +160 -0
- package/react-query/vendorsListVendorScrubPurchases.js.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts +31 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.js +96 -0
- package/react-query/webhooksGetWebhookEndpoint.js.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts +50 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.js +101 -0
- package/react-query/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/vendors.d.ts +50 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +57 -3
- package/sdk/vendors.js.map +1 -1
- package/sdk/vendorscans.d.ts +12 -0
- package/sdk/vendorscans.d.ts.map +1 -0
- package/sdk/vendorscans.js +22 -0
- package/sdk/vendorscans.js.map +1 -0
- package/sdk/webhooks.d.ts +20 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +32 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/__tests__/vendors.test.ts +51 -118
- package/src/__tests__/vendorscans.test.ts +27 -0
- package/src/__tests__/webhooks.test.ts +45 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +12 -1
- package/src/funcs/vendorScansVendorScanOut.ts +172 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +192 -0
- package/src/funcs/vendorsListVendorCredentials.ts +104 -27
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +246 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +25 -2
- package/src/funcs/vendorsListVendorScrubDetails.ts +172 -0
- package/src/funcs/vendorsListVendorScrubPurchases.ts +249 -0
- package/src/funcs/webhooksGetWebhookEndpoint.ts +173 -0
- package/src/funcs/webhooksListAllWebhookEndpoints.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/extensions.ts +4 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +1 -0
- package/src/mcp-server/server.ts +18 -4
- package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
- package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
- package/src/mcp-server/tools/usersGetUserById.ts +1 -1
- package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
- package/src/mcp-server/tools/usersMagiclink.ts +1 -1
- package/src/mcp-server/tools/usersPassword.ts +1 -1
- package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
- package/src/mcp-server/tools/vendorScansVendorScanOut.ts +37 -0
- package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +51 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +2 -2
- package/src/mcp-server/tools/{vendorsListVendorJobTitles.ts → vendorsListVendorFacilityStatuses.ts} +9 -7
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorScrubDetails.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorScrubPurchases.ts +38 -0
- package/src/mcp-server/tools/webhooksGetWebhookEndpoint.ts +37 -0
- package/src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts +38 -0
- package/src/mcp-server/tools.ts +5 -0
- package/src/models/components/company.ts +27 -24
- package/src/models/components/contact.ts +24 -20
- package/src/models/components/department.ts +69 -0
- package/src/models/components/expand.ts +8 -0
- package/src/models/components/facility.ts +28 -32
- package/src/models/components/index.ts +8 -0
- package/src/models/components/scantype.ts +32 -0
- package/src/models/components/subscription.ts +98 -0
- package/src/models/components/user.ts +19 -53
- package/src/models/components/vendor.ts +925 -0
- package/src/models/components/vendorfacilitystatusview.ts +108 -0
- package/src/models/components/vendorscrubdetails.ts +108 -0
- package/src/models/components/vendorscrubpurchase.ts +90 -0
- package/src/models/components/webhookendpoint.ts +244 -0
- package/src/models/operations/getvendorsdetails.ts +86 -0
- package/src/models/operations/getwebhookendpoint.ts +69 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/listallwebhookendpoints.ts +175 -0
- package/src/models/operations/listorsearchfacilities.ts +4 -4
- package/src/models/operations/listvendorcredentials.ts +160 -7
- package/src/models/operations/listvendorfacilitystatuses.ts +256 -0
- package/src/models/operations/listvendorjobtitles.ts +72 -0
- package/src/models/operations/listvendorscrubdetails.ts +80 -0
- package/src/models/operations/listvendorscrubpurchases.ts +252 -0
- package/src/models/operations/vendorscanout.ts +138 -0
- package/src/react-query/index.ts +7 -0
- package/src/react-query/vendorScansVendorScanOut.ts +89 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +201 -0
- package/src/react-query/vendorsListVendorCredentials.ts +169 -1
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +347 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +15 -0
- package/src/react-query/vendorsListVendorScrubDetails.ts +166 -0
- package/src/react-query/vendorsListVendorScrubPurchases.ts +346 -0
- package/src/react-query/webhooksGetWebhookEndpoint.ts +163 -0
- package/src/react-query/webhooksListAllWebhookEndpoints.ts +193 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/vendors.ts +99 -2
- package/src/sdk/vendorscans.ts +27 -0
- package/src/sdk/webhooks.ts +46 -0
- package/mcp-server/tools/userGetCurrentUser.d.ts +0 -3
- package/mcp-server/tools/userGetCurrentUser.d.ts.map +0 -1
- package/mcp-server/tools/userGetCurrentUser.js +0 -26
- package/mcp-server/tools/userGetCurrentUser.js.map +0 -1
- package/mcp-server/tools/userGetUserById.d.ts +0 -8
- package/mcp-server/tools/userGetUserById.d.ts.map +0 -1
- package/mcp-server/tools/userGetUserById.js.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts +0 -8
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.js +0 -94
- package/mcp-server/tools/userLogsUserIntoTheSystem.js.map +0 -1
- package/mcp-server/tools/userMagiclink.d.ts +0 -8
- package/mcp-server/tools/userMagiclink.d.ts.map +0 -1
- package/mcp-server/tools/userMagiclink.js.map +0 -1
- package/mcp-server/tools/userPassword.d.ts +0 -8
- package/mcp-server/tools/userPassword.d.ts.map +0 -1
- package/mcp-server/tools/userPassword.js.map +0 -1
- package/mcp-server/tools/userPasswordResetRequest.d.ts +0 -8
- package/mcp-server/tools/userPasswordResetRequest.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts +0 -8
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js.map +0 -1
- package/src/__tests__/organizations.test.ts +0 -78
- package/src/__tests__/supportarticles.test.ts +0 -64
- package/src/__tests__/user.test.ts +0 -218
- package/vitest.config.ts +0 -8
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetWebhookEndpointRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* The identifier of the object
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetWebhookEndpointRequest$inboundSchema: z.ZodType<
|
|
19
|
+
GetWebhookEndpointRequest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
id: z.number().int(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type GetWebhookEndpointRequest$Outbound = {
|
|
28
|
+
id: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const GetWebhookEndpointRequest$outboundSchema: z.ZodType<
|
|
33
|
+
GetWebhookEndpointRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
GetWebhookEndpointRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
id: z.number().int(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace GetWebhookEndpointRequest$ {
|
|
45
|
+
/** @deprecated use `GetWebhookEndpointRequest$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = GetWebhookEndpointRequest$inboundSchema;
|
|
47
|
+
/** @deprecated use `GetWebhookEndpointRequest$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = GetWebhookEndpointRequest$outboundSchema;
|
|
49
|
+
/** @deprecated use `GetWebhookEndpointRequest$Outbound` instead. */
|
|
50
|
+
export type Outbound = GetWebhookEndpointRequest$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function getWebhookEndpointRequestToJSON(
|
|
54
|
+
getWebhookEndpointRequest: GetWebhookEndpointRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
GetWebhookEndpointRequest$outboundSchema.parse(getWebhookEndpointRequest),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function getWebhookEndpointRequestFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<GetWebhookEndpointRequest, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => GetWebhookEndpointRequest$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'GetWebhookEndpointRequest' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -8,12 +8,19 @@ export * from "./getfacility.js";
|
|
|
8
8
|
export * from "./getsupportarticle.js";
|
|
9
9
|
export * from "./getuserbyid.js";
|
|
10
10
|
export * from "./getvendorinvoicedetails.js";
|
|
11
|
+
export * from "./getvendorsdetails.js";
|
|
12
|
+
export * from "./getwebhookendpoint.js";
|
|
13
|
+
export * from "./listallwebhookendpoints.js";
|
|
11
14
|
export * from "./listorsearchfacilities.js";
|
|
12
15
|
export * from "./listorsearchsupportarticles.js";
|
|
13
16
|
export * from "./listvendorcredentials.js";
|
|
17
|
+
export * from "./listvendorfacilitystatuses.js";
|
|
14
18
|
export * from "./listvendorinvoices.js";
|
|
15
19
|
export * from "./listvendorjobtitles.js";
|
|
20
|
+
export * from "./listvendorscrubdetails.js";
|
|
21
|
+
export * from "./listvendorscrubpurchases.js";
|
|
16
22
|
export * from "./logsuserintothesystem.js";
|
|
17
23
|
export * from "./magiclink.js";
|
|
18
24
|
export * from "./password.js";
|
|
19
25
|
export * from "./passwordresetrequest.js";
|
|
26
|
+
export * from "./vendorscanout.js";
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListAllWebhookEndpointsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
15
|
+
*/
|
|
16
|
+
page?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Number of items to show in a given page
|
|
19
|
+
*/
|
|
20
|
+
itemsPerPage?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Sort desc
|
|
23
|
+
*/
|
|
24
|
+
desc?: components.Desc | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* A comma-separated list of object attributes to sort on.
|
|
27
|
+
*/
|
|
28
|
+
sort?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
33
|
+
*/
|
|
34
|
+
export type ListAllWebhookEndpointsResponseBody = {
|
|
35
|
+
/**
|
|
36
|
+
* Pagination information for a pageable list
|
|
37
|
+
*/
|
|
38
|
+
pager: components.Pager;
|
|
39
|
+
items: Array<components.WebhookEndpoint>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ListAllWebhookEndpointsRequest$inboundSchema: z.ZodType<
|
|
44
|
+
ListAllWebhookEndpointsRequest,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
page: z.number().int().optional(),
|
|
49
|
+
items_per_page: z.number().int().optional(),
|
|
50
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
51
|
+
sort: z.nullable(z.string()).optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"items_per_page": "itemsPerPage",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListAllWebhookEndpointsRequest$Outbound = {
|
|
60
|
+
page?: number | undefined;
|
|
61
|
+
items_per_page?: number | undefined;
|
|
62
|
+
desc?: components.Desc$Outbound | undefined;
|
|
63
|
+
sort?: string | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ListAllWebhookEndpointsRequest$outboundSchema: z.ZodType<
|
|
68
|
+
ListAllWebhookEndpointsRequest$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
ListAllWebhookEndpointsRequest
|
|
71
|
+
> = z.object({
|
|
72
|
+
page: z.number().int().optional(),
|
|
73
|
+
itemsPerPage: z.number().int().optional(),
|
|
74
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
75
|
+
sort: z.nullable(z.string()).optional(),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return remap$(v, {
|
|
78
|
+
itemsPerPage: "items_per_page",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace ListAllWebhookEndpointsRequest$ {
|
|
87
|
+
/** @deprecated use `ListAllWebhookEndpointsRequest$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = ListAllWebhookEndpointsRequest$inboundSchema;
|
|
89
|
+
/** @deprecated use `ListAllWebhookEndpointsRequest$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema = ListAllWebhookEndpointsRequest$outboundSchema;
|
|
91
|
+
/** @deprecated use `ListAllWebhookEndpointsRequest$Outbound` instead. */
|
|
92
|
+
export type Outbound = ListAllWebhookEndpointsRequest$Outbound;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function listAllWebhookEndpointsRequestToJSON(
|
|
96
|
+
listAllWebhookEndpointsRequest: ListAllWebhookEndpointsRequest,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
ListAllWebhookEndpointsRequest$outboundSchema.parse(
|
|
100
|
+
listAllWebhookEndpointsRequest,
|
|
101
|
+
),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function listAllWebhookEndpointsRequestFromJSON(
|
|
106
|
+
jsonString: string,
|
|
107
|
+
): SafeParseResult<ListAllWebhookEndpointsRequest, SDKValidationError> {
|
|
108
|
+
return safeParse(
|
|
109
|
+
jsonString,
|
|
110
|
+
(x) => ListAllWebhookEndpointsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
+
`Failed to parse 'ListAllWebhookEndpointsRequest' from JSON`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const ListAllWebhookEndpointsResponseBody$inboundSchema: z.ZodType<
|
|
117
|
+
ListAllWebhookEndpointsResponseBody,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
pager: components.Pager$inboundSchema,
|
|
122
|
+
items: z.array(components.WebhookEndpoint$inboundSchema),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type ListAllWebhookEndpointsResponseBody$Outbound = {
|
|
127
|
+
pager: components.Pager$Outbound;
|
|
128
|
+
items: Array<components.WebhookEndpoint$Outbound>;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const ListAllWebhookEndpointsResponseBody$outboundSchema: z.ZodType<
|
|
133
|
+
ListAllWebhookEndpointsResponseBody$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
ListAllWebhookEndpointsResponseBody
|
|
136
|
+
> = z.object({
|
|
137
|
+
pager: components.Pager$outboundSchema,
|
|
138
|
+
items: z.array(components.WebhookEndpoint$outboundSchema),
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
+
*/
|
|
145
|
+
export namespace ListAllWebhookEndpointsResponseBody$ {
|
|
146
|
+
/** @deprecated use `ListAllWebhookEndpointsResponseBody$inboundSchema` instead. */
|
|
147
|
+
export const inboundSchema =
|
|
148
|
+
ListAllWebhookEndpointsResponseBody$inboundSchema;
|
|
149
|
+
/** @deprecated use `ListAllWebhookEndpointsResponseBody$outboundSchema` instead. */
|
|
150
|
+
export const outboundSchema =
|
|
151
|
+
ListAllWebhookEndpointsResponseBody$outboundSchema;
|
|
152
|
+
/** @deprecated use `ListAllWebhookEndpointsResponseBody$Outbound` instead. */
|
|
153
|
+
export type Outbound = ListAllWebhookEndpointsResponseBody$Outbound;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function listAllWebhookEndpointsResponseBodyToJSON(
|
|
157
|
+
listAllWebhookEndpointsResponseBody: ListAllWebhookEndpointsResponseBody,
|
|
158
|
+
): string {
|
|
159
|
+
return JSON.stringify(
|
|
160
|
+
ListAllWebhookEndpointsResponseBody$outboundSchema.parse(
|
|
161
|
+
listAllWebhookEndpointsResponseBody,
|
|
162
|
+
),
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function listAllWebhookEndpointsResponseBodyFromJSON(
|
|
167
|
+
jsonString: string,
|
|
168
|
+
): SafeParseResult<ListAllWebhookEndpointsResponseBody, SDKValidationError> {
|
|
169
|
+
return safeParse(
|
|
170
|
+
jsonString,
|
|
171
|
+
(x) =>
|
|
172
|
+
ListAllWebhookEndpointsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'ListAllWebhookEndpointsResponseBody' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -60,7 +60,7 @@ export type ListOrSearchFacilitiesListOrSearchFacilitiesOk = {
|
|
|
60
60
|
* Pagination information for a pageable list
|
|
61
61
|
*/
|
|
62
62
|
pager: components.Pager;
|
|
63
|
-
items: Array<components.Facility>;
|
|
63
|
+
items: Array<components.Facility | null>;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
export type ListOrSearchFacilitiesResponse = {
|
|
@@ -171,13 +171,13 @@ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema:
|
|
|
171
171
|
unknown
|
|
172
172
|
> = z.object({
|
|
173
173
|
pager: components.Pager$inboundSchema,
|
|
174
|
-
items: z.array(components.Facility$inboundSchema),
|
|
174
|
+
items: z.array(z.nullable(components.Facility$inboundSchema)),
|
|
175
175
|
});
|
|
176
176
|
|
|
177
177
|
/** @internal */
|
|
178
178
|
export type ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound = {
|
|
179
179
|
pager: components.Pager$Outbound;
|
|
180
|
-
items: Array<components.Facility$Outbound>;
|
|
180
|
+
items: Array<components.Facility$Outbound | null>;
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
/** @internal */
|
|
@@ -188,7 +188,7 @@ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema:
|
|
|
188
188
|
ListOrSearchFacilitiesListOrSearchFacilitiesOk
|
|
189
189
|
> = z.object({
|
|
190
190
|
pager: components.Pager$outboundSchema,
|
|
191
|
-
items: z.array(components.Facility$outboundSchema),
|
|
191
|
+
items: z.array(z.nullable(components.Facility$outboundSchema)),
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
/**
|
|
@@ -10,6 +10,22 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type ListVendorCredentialsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
13
29
|
/**
|
|
14
30
|
* Search by credential status (Pending Approval, Declined, Expired...)
|
|
15
31
|
*/
|
|
@@ -41,6 +57,14 @@ export type Credentials = {
|
|
|
41
57
|
name: string;
|
|
42
58
|
};
|
|
43
59
|
|
|
60
|
+
export type Pager = {
|
|
61
|
+
/**
|
|
62
|
+
* Pagination information for a pageable list
|
|
63
|
+
*/
|
|
64
|
+
pager: components.Pager;
|
|
65
|
+
items: Array<components.VendorCredentialSlim>;
|
|
66
|
+
};
|
|
67
|
+
|
|
44
68
|
/**
|
|
45
69
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
46
70
|
*/
|
|
@@ -48,10 +72,11 @@ export type ListVendorCredentialsResponseBody = {
|
|
|
48
72
|
vendorRequiredCredentials: Array<components.VendorRequiredCredential>;
|
|
49
73
|
credentials: Array<Credentials>;
|
|
50
74
|
vendorCredentials: Array<components.VendorCredentialSlim>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
75
|
+
pager: Pager;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type ListVendorCredentialsResponse = {
|
|
79
|
+
result: ListVendorCredentialsResponseBody;
|
|
55
80
|
};
|
|
56
81
|
|
|
57
82
|
/** @internal */
|
|
@@ -60,6 +85,10 @@ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
|
|
|
60
85
|
z.ZodTypeDef,
|
|
61
86
|
unknown
|
|
62
87
|
> = z.object({
|
|
88
|
+
sort: z.nullable(z.string()).optional(),
|
|
89
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
90
|
+
page: z.number().int().optional(),
|
|
91
|
+
items_per_page: z.number().int().optional(),
|
|
63
92
|
credential_status: components.CredentialStatus$inboundSchema.default(
|
|
64
93
|
"Pending Vendor",
|
|
65
94
|
),
|
|
@@ -70,6 +99,7 @@ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
|
|
|
70
99
|
vendor_id: z.number().int(),
|
|
71
100
|
}).transform((v) => {
|
|
72
101
|
return remap$(v, {
|
|
102
|
+
"items_per_page": "itemsPerPage",
|
|
73
103
|
"credential_status": "credentialStatus",
|
|
74
104
|
"facility_id": "facilityId",
|
|
75
105
|
"include_vc": "includeVc",
|
|
@@ -80,6 +110,10 @@ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
|
|
|
80
110
|
|
|
81
111
|
/** @internal */
|
|
82
112
|
export type ListVendorCredentialsRequest$Outbound = {
|
|
113
|
+
sort?: string | null | undefined;
|
|
114
|
+
desc?: components.Desc$Outbound | undefined;
|
|
115
|
+
page?: number | undefined;
|
|
116
|
+
items_per_page?: number | undefined;
|
|
83
117
|
credential_status: string;
|
|
84
118
|
facility_id?: number | undefined;
|
|
85
119
|
include_vc?: number | undefined;
|
|
@@ -94,6 +128,10 @@ export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
|
|
|
94
128
|
z.ZodTypeDef,
|
|
95
129
|
ListVendorCredentialsRequest
|
|
96
130
|
> = z.object({
|
|
131
|
+
sort: z.nullable(z.string()).optional(),
|
|
132
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
133
|
+
page: z.number().int().optional(),
|
|
134
|
+
itemsPerPage: z.number().int().optional(),
|
|
97
135
|
credentialStatus: components.CredentialStatus$outboundSchema.default(
|
|
98
136
|
"Pending Vendor",
|
|
99
137
|
),
|
|
@@ -104,6 +142,7 @@ export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
|
|
|
104
142
|
vendorId: z.number().int(),
|
|
105
143
|
}).transform((v) => {
|
|
106
144
|
return remap$(v, {
|
|
145
|
+
itemsPerPage: "items_per_page",
|
|
107
146
|
credentialStatus: "credential_status",
|
|
108
147
|
facilityId: "facility_id",
|
|
109
148
|
includeVc: "include_vc",
|
|
@@ -198,6 +237,56 @@ export function credentialsFromJSON(
|
|
|
198
237
|
);
|
|
199
238
|
}
|
|
200
239
|
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const Pager$inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown> = z
|
|
242
|
+
.object({
|
|
243
|
+
pager: components.Pager$inboundSchema,
|
|
244
|
+
items: z.array(components.VendorCredentialSlim$inboundSchema),
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type Pager$Outbound = {
|
|
249
|
+
pager: components.Pager$Outbound;
|
|
250
|
+
items: Array<components.VendorCredentialSlim$Outbound>;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const Pager$outboundSchema: z.ZodType<
|
|
255
|
+
Pager$Outbound,
|
|
256
|
+
z.ZodTypeDef,
|
|
257
|
+
Pager
|
|
258
|
+
> = z.object({
|
|
259
|
+
pager: components.Pager$outboundSchema,
|
|
260
|
+
items: z.array(components.VendorCredentialSlim$outboundSchema),
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
266
|
+
*/
|
|
267
|
+
export namespace Pager$ {
|
|
268
|
+
/** @deprecated use `Pager$inboundSchema` instead. */
|
|
269
|
+
export const inboundSchema = Pager$inboundSchema;
|
|
270
|
+
/** @deprecated use `Pager$outboundSchema` instead. */
|
|
271
|
+
export const outboundSchema = Pager$outboundSchema;
|
|
272
|
+
/** @deprecated use `Pager$Outbound` instead. */
|
|
273
|
+
export type Outbound = Pager$Outbound;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function pagerToJSON(pager: Pager): string {
|
|
277
|
+
return JSON.stringify(Pager$outboundSchema.parse(pager));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export function pagerFromJSON(
|
|
281
|
+
jsonString: string,
|
|
282
|
+
): SafeParseResult<Pager, SDKValidationError> {
|
|
283
|
+
return safeParse(
|
|
284
|
+
jsonString,
|
|
285
|
+
(x) => Pager$inboundSchema.parse(JSON.parse(x)),
|
|
286
|
+
`Failed to parse 'Pager' from JSON`,
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
201
290
|
/** @internal */
|
|
202
291
|
export const ListVendorCredentialsResponseBody$inboundSchema: z.ZodType<
|
|
203
292
|
ListVendorCredentialsResponseBody,
|
|
@@ -209,7 +298,7 @@ export const ListVendorCredentialsResponseBody$inboundSchema: z.ZodType<
|
|
|
209
298
|
),
|
|
210
299
|
credentials: z.array(z.lazy(() => Credentials$inboundSchema)),
|
|
211
300
|
vendor_credentials: z.array(components.VendorCredentialSlim$inboundSchema),
|
|
212
|
-
pager:
|
|
301
|
+
pager: z.lazy(() => Pager$inboundSchema),
|
|
213
302
|
}).transform((v) => {
|
|
214
303
|
return remap$(v, {
|
|
215
304
|
"vendor_required_credentials": "vendorRequiredCredentials",
|
|
@@ -224,7 +313,7 @@ export type ListVendorCredentialsResponseBody$Outbound = {
|
|
|
224
313
|
>;
|
|
225
314
|
credentials: Array<Credentials$Outbound>;
|
|
226
315
|
vendor_credentials: Array<components.VendorCredentialSlim$Outbound>;
|
|
227
|
-
pager:
|
|
316
|
+
pager: Pager$Outbound;
|
|
228
317
|
};
|
|
229
318
|
|
|
230
319
|
/** @internal */
|
|
@@ -238,7 +327,7 @@ export const ListVendorCredentialsResponseBody$outboundSchema: z.ZodType<
|
|
|
238
327
|
),
|
|
239
328
|
credentials: z.array(z.lazy(() => Credentials$outboundSchema)),
|
|
240
329
|
vendorCredentials: z.array(components.VendorCredentialSlim$outboundSchema),
|
|
241
|
-
pager:
|
|
330
|
+
pager: z.lazy(() => Pager$outboundSchema),
|
|
242
331
|
}).transform((v) => {
|
|
243
332
|
return remap$(v, {
|
|
244
333
|
vendorRequiredCredentials: "vendor_required_credentials",
|
|
@@ -279,3 +368,67 @@ export function listVendorCredentialsResponseBodyFromJSON(
|
|
|
279
368
|
`Failed to parse 'ListVendorCredentialsResponseBody' from JSON`,
|
|
280
369
|
);
|
|
281
370
|
}
|
|
371
|
+
|
|
372
|
+
/** @internal */
|
|
373
|
+
export const ListVendorCredentialsResponse$inboundSchema: z.ZodType<
|
|
374
|
+
ListVendorCredentialsResponse,
|
|
375
|
+
z.ZodTypeDef,
|
|
376
|
+
unknown
|
|
377
|
+
> = z.object({
|
|
378
|
+
Result: z.lazy(() => ListVendorCredentialsResponseBody$inboundSchema),
|
|
379
|
+
}).transform((v) => {
|
|
380
|
+
return remap$(v, {
|
|
381
|
+
"Result": "result",
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
/** @internal */
|
|
386
|
+
export type ListVendorCredentialsResponse$Outbound = {
|
|
387
|
+
Result: ListVendorCredentialsResponseBody$Outbound;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/** @internal */
|
|
391
|
+
export const ListVendorCredentialsResponse$outboundSchema: z.ZodType<
|
|
392
|
+
ListVendorCredentialsResponse$Outbound,
|
|
393
|
+
z.ZodTypeDef,
|
|
394
|
+
ListVendorCredentialsResponse
|
|
395
|
+
> = z.object({
|
|
396
|
+
result: z.lazy(() => ListVendorCredentialsResponseBody$outboundSchema),
|
|
397
|
+
}).transform((v) => {
|
|
398
|
+
return remap$(v, {
|
|
399
|
+
result: "Result",
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @internal
|
|
405
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
406
|
+
*/
|
|
407
|
+
export namespace ListVendorCredentialsResponse$ {
|
|
408
|
+
/** @deprecated use `ListVendorCredentialsResponse$inboundSchema` instead. */
|
|
409
|
+
export const inboundSchema = ListVendorCredentialsResponse$inboundSchema;
|
|
410
|
+
/** @deprecated use `ListVendorCredentialsResponse$outboundSchema` instead. */
|
|
411
|
+
export const outboundSchema = ListVendorCredentialsResponse$outboundSchema;
|
|
412
|
+
/** @deprecated use `ListVendorCredentialsResponse$Outbound` instead. */
|
|
413
|
+
export type Outbound = ListVendorCredentialsResponse$Outbound;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export function listVendorCredentialsResponseToJSON(
|
|
417
|
+
listVendorCredentialsResponse: ListVendorCredentialsResponse,
|
|
418
|
+
): string {
|
|
419
|
+
return JSON.stringify(
|
|
420
|
+
ListVendorCredentialsResponse$outboundSchema.parse(
|
|
421
|
+
listVendorCredentialsResponse,
|
|
422
|
+
),
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export function listVendorCredentialsResponseFromJSON(
|
|
427
|
+
jsonString: string,
|
|
428
|
+
): SafeParseResult<ListVendorCredentialsResponse, SDKValidationError> {
|
|
429
|
+
return safeParse(
|
|
430
|
+
jsonString,
|
|
431
|
+
(x) => ListVendorCredentialsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
432
|
+
`Failed to parse 'ListVendorCredentialsResponse' from JSON`,
|
|
433
|
+
);
|
|
434
|
+
}
|