@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
package/src/sdk/sdk.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { Organizations } from "./organizations.js";
|
|
|
7
7
|
import { SupportArticles } from "./supportarticles.js";
|
|
8
8
|
import { Users } from "./users.js";
|
|
9
9
|
import { Vendors } from "./vendors.js";
|
|
10
|
+
import { VendorScans } from "./vendorscans.js";
|
|
11
|
+
import { Webhooks } from "./webhooks.js";
|
|
10
12
|
|
|
11
13
|
export class GreenSecurity extends ClientSDK {
|
|
12
14
|
private _vendors?: Vendors;
|
|
@@ -28,4 +30,14 @@ export class GreenSecurity extends ClientSDK {
|
|
|
28
30
|
get supportArticles(): SupportArticles {
|
|
29
31
|
return (this._supportArticles ??= new SupportArticles(this._options));
|
|
30
32
|
}
|
|
33
|
+
|
|
34
|
+
private _webhooks?: Webhooks;
|
|
35
|
+
get webhooks(): Webhooks {
|
|
36
|
+
return (this._webhooks ??= new Webhooks(this._options));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
private _vendorScans?: VendorScans;
|
|
40
|
+
get vendorScans(): VendorScans {
|
|
41
|
+
return (this._vendorScans ??= new VendorScans(this._options));
|
|
42
|
+
}
|
|
31
43
|
}
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
import { vendorsCreateVendorRegistration } from "../funcs/vendorsCreateVendorRegistration.js";
|
|
6
6
|
import { vendorsExpediteTimeRemaining } from "../funcs/vendorsExpediteTimeRemaining.js";
|
|
7
7
|
import { vendorsGetVendorInvoiceDetails } from "../funcs/vendorsGetVendorInvoiceDetails.js";
|
|
8
|
+
import { vendorsGetVendorsDetails } from "../funcs/vendorsGetVendorsDetails.js";
|
|
8
9
|
import { vendorsListVendorCredentials } from "../funcs/vendorsListVendorCredentials.js";
|
|
10
|
+
import { vendorsListVendorFacilityStatuses } from "../funcs/vendorsListVendorFacilityStatuses.js";
|
|
9
11
|
import { vendorsListVendorInvoices } from "../funcs/vendorsListVendorInvoices.js";
|
|
10
12
|
import { vendorsListVendorJobTitles } from "../funcs/vendorsListVendorJobTitles.js";
|
|
13
|
+
import { vendorsListVendorScrubDetails } from "../funcs/vendorsListVendorScrubDetails.js";
|
|
14
|
+
import { vendorsListVendorScrubPurchases } from "../funcs/vendorsListVendorScrubPurchases.js";
|
|
11
15
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
16
|
import * as components from "../models/components/index.js";
|
|
13
17
|
import * as operations from "../models/operations/index.js";
|
|
@@ -42,6 +46,7 @@ export class Vendors extends ClientSDK {
|
|
|
42
46
|
*/
|
|
43
47
|
async listVendorJobTitles(
|
|
44
48
|
request: operations.ListVendorJobTitlesRequest,
|
|
49
|
+
security?: operations.ListVendorJobTitlesSecurity | undefined,
|
|
45
50
|
options?: RequestOptions,
|
|
46
51
|
): Promise<
|
|
47
52
|
PageIterator<operations.ListVendorJobTitlesResponse, { page: number }>
|
|
@@ -49,6 +54,7 @@ export class Vendors extends ClientSDK {
|
|
|
49
54
|
return unwrapResultIterator(vendorsListVendorJobTitles(
|
|
50
55
|
this,
|
|
51
56
|
request,
|
|
57
|
+
security,
|
|
52
58
|
options,
|
|
53
59
|
));
|
|
54
60
|
}
|
|
@@ -62,8 +68,10 @@ export class Vendors extends ClientSDK {
|
|
|
62
68
|
async listVendorCredentials(
|
|
63
69
|
request: operations.ListVendorCredentialsRequest,
|
|
64
70
|
options?: RequestOptions,
|
|
65
|
-
): Promise<
|
|
66
|
-
|
|
71
|
+
): Promise<
|
|
72
|
+
PageIterator<operations.ListVendorCredentialsResponse, { page: number }>
|
|
73
|
+
> {
|
|
74
|
+
return unwrapResultIterator(vendorsListVendorCredentials(
|
|
67
75
|
this,
|
|
68
76
|
request,
|
|
69
77
|
options,
|
|
@@ -131,4 +139,93 @@ export class Vendors extends ClientSDK {
|
|
|
131
139
|
options,
|
|
132
140
|
));
|
|
133
141
|
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* List vendor facility statuses
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* List the facilities for the vendor
|
|
148
|
+
*/
|
|
149
|
+
async listVendorFacilityStatuses(
|
|
150
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
151
|
+
options?: RequestOptions,
|
|
152
|
+
): Promise<
|
|
153
|
+
PageIterator<
|
|
154
|
+
operations.ListVendorFacilityStatusesResponse,
|
|
155
|
+
{ page: number }
|
|
156
|
+
>
|
|
157
|
+
> {
|
|
158
|
+
return unwrapResultIterator(vendorsListVendorFacilityStatuses(
|
|
159
|
+
this,
|
|
160
|
+
request,
|
|
161
|
+
options,
|
|
162
|
+
));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* List vendor scrub purchases
|
|
167
|
+
*
|
|
168
|
+
* @remarks
|
|
169
|
+
* List vendor scrub purchases
|
|
170
|
+
*/
|
|
171
|
+
async listVendorScrubPurchases(
|
|
172
|
+
request: operations.ListVendorScrubPurchasesRequest,
|
|
173
|
+
options?: RequestOptions,
|
|
174
|
+
): Promise<
|
|
175
|
+
PageIterator<operations.ListVendorScrubPurchasesResponse, { page: number }>
|
|
176
|
+
> {
|
|
177
|
+
return unwrapResultIterator(vendorsListVendorScrubPurchases(
|
|
178
|
+
this,
|
|
179
|
+
request,
|
|
180
|
+
options,
|
|
181
|
+
));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* List vendor scrub details
|
|
186
|
+
*
|
|
187
|
+
* @remarks
|
|
188
|
+
* List vendor scrub details
|
|
189
|
+
*/
|
|
190
|
+
async listVendorScrubDetails(
|
|
191
|
+
request: operations.ListVendorScrubDetailsRequest,
|
|
192
|
+
options?: RequestOptions,
|
|
193
|
+
): Promise<components.VendorScrubDetails> {
|
|
194
|
+
return unwrapAsync(vendorsListVendorScrubDetails(
|
|
195
|
+
this,
|
|
196
|
+
request,
|
|
197
|
+
options,
|
|
198
|
+
));
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Get vendors details
|
|
203
|
+
*
|
|
204
|
+
* @remarks
|
|
205
|
+
* Retrieve an individual vendor detais.
|
|
206
|
+
*
|
|
207
|
+
* Available `expand` scopes are:
|
|
208
|
+
*
|
|
209
|
+
* vendor.user
|
|
210
|
+
* vendor.vendor_type
|
|
211
|
+
* vendor.image_urls
|
|
212
|
+
* vendor.payment_profile
|
|
213
|
+
* vendor.primary_facility
|
|
214
|
+
* vendor.primary_department
|
|
215
|
+
* vendor.company
|
|
216
|
+
* vendor.credentialing_subscription
|
|
217
|
+
* vendor.scrubs_subscription
|
|
218
|
+
* vendor.payment_responsibility
|
|
219
|
+
* vendor.background_check_date_expires
|
|
220
|
+
*/
|
|
221
|
+
async getVendorsDetails(
|
|
222
|
+
request: operations.GetVendorsDetailsRequest,
|
|
223
|
+
options?: RequestOptions,
|
|
224
|
+
): Promise<components.Vendor> {
|
|
225
|
+
return unwrapAsync(vendorsGetVendorsDetails(
|
|
226
|
+
this,
|
|
227
|
+
request,
|
|
228
|
+
options,
|
|
229
|
+
));
|
|
230
|
+
}
|
|
134
231
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorScansVendorScanOut } from "../funcs/vendorScansVendorScanOut.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class VendorScans extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Vendor scan out
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* It scans out vendor from facility
|
|
16
|
+
*/
|
|
17
|
+
async vendorScanOut(
|
|
18
|
+
request: operations.VendorScanOutRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.VendorScanOutResponseBody> {
|
|
21
|
+
return unwrapAsync(vendorScansVendorScanOut(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksGetWebhookEndpoint } from "../funcs/webhooksGetWebhookEndpoint.js";
|
|
6
|
+
import { webhooksListAllWebhookEndpoints } from "../funcs/webhooksListAllWebhookEndpoints.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as components from "../models/components/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Webhooks extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* List all webhook endpoints
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Returns a list of your webhook endpoints.
|
|
18
|
+
*/
|
|
19
|
+
async listAllWebhookEndpoints(
|
|
20
|
+
request: operations.ListAllWebhookEndpointsRequest,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.ListAllWebhookEndpointsResponseBody> {
|
|
23
|
+
return unwrapAsync(webhooksListAllWebhookEndpoints(
|
|
24
|
+
this,
|
|
25
|
+
request,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the webhook endpoint with the given ID.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Returns the definition of a webhook endpoint by ID.
|
|
35
|
+
*/
|
|
36
|
+
async getWebhookEndpoint(
|
|
37
|
+
request: operations.GetWebhookEndpointRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<components.WebhookEndpoint> {
|
|
40
|
+
return unwrapAsync(webhooksGetWebhookEndpoint(
|
|
41
|
+
this,
|
|
42
|
+
request,
|
|
43
|
+
options,
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userGetCurrentUser.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userGetCurrentUser.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,uBAAuB,EAAE,cAsBrC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tool$userGetCurrentUser = void 0;
|
|
7
|
-
const userGetCurrentUser_js_1 = require("../../funcs/userGetCurrentUser.js");
|
|
8
|
-
const tools_js_1 = require("../tools.js");
|
|
9
|
-
exports.tool$userGetCurrentUser = {
|
|
10
|
-
name: "user_get-current-user",
|
|
11
|
-
description: `Get current user
|
|
12
|
-
|
|
13
|
-
Returns a user object for the user represented by the authorization token`,
|
|
14
|
-
tool: async (client, ctx) => {
|
|
15
|
-
const [result, apiCall] = await (0, userGetCurrentUser_js_1.userGetCurrentUser)(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
16
|
-
if (!result.ok) {
|
|
17
|
-
return {
|
|
18
|
-
content: [{ type: "text", text: result.error.message }],
|
|
19
|
-
isError: true,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const value = result.value;
|
|
23
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=userGetCurrentUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userGetCurrentUser.js","sourceRoot":"","sources":["../../src/mcp-server/tools/userGetCurrentUser.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,6EAAuE;AACvE,0CAA2D;AAE9C,QAAA,uBAAuB,GAAmB;IACrD,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE;;0EAE2D;IACxE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;QAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0CAAkB,EAChD,MAAM,EACN,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.GetUserByIdRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$userGetUserById: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=userGetUserById.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userGetUserById.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userGetUserById.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB5D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userGetUserById.js","sourceRoot":"","sources":["../../src/mcp-server/tools/userGetUserById.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAiE;AACjE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,gCAAgC;CACrD,CAAC;AAEW,QAAA,oBAAoB,GAAgC;IAC/D,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE;;8EAE+D;IAC5E,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,oCAAe,EAC7C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.LogsUserIntoTheSystemRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$userLogsUserIntoTheSystem: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=userLogsUserIntoTheSystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userLogsUserIntoTheSystem.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userLogsUserIntoTheSystem.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,OAAO,IAAI,CAsDtE,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tool$userLogsUserIntoTheSystem = void 0;
|
|
40
|
-
const userLogsUserIntoTheSystem_js_1 = require("../../funcs/userLogsUserIntoTheSystem.js");
|
|
41
|
-
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
-
const tools_js_1 = require("../tools.js");
|
|
43
|
-
const args = {
|
|
44
|
-
request: operations.LogsUserIntoTheSystemRequestBody$inboundSchema,
|
|
45
|
-
};
|
|
46
|
-
exports.tool$userLogsUserIntoTheSystem = {
|
|
47
|
-
name: "user_logs-user-into-the-system",
|
|
48
|
-
description: `Logs user into the system
|
|
49
|
-
|
|
50
|
-
This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
|
|
51
|
-
|
|
52
|
-
Permanent tokens should only ever be stored in an encrypted storage because they represent a fully logged in user.
|
|
53
|
-
|
|
54
|
-
Users may log in with \`email/password\`, \`SAML\`, \`magic link\` or \`mfa\`. The application should handle all of the above as equally valid login methods.
|
|
55
|
-
|
|
56
|
-
The most common way to authenticate a user is to log in with an email and password. If the user provides valid credentials, the server will either respond with a full user object including the token.
|
|
57
|
-
|
|
58
|
-
When the user's account is protected via MFA, the server will send a 6 digit code to the user via their default MFA provider. You should collect that code and resend the email, password and mfa_code together to get a successful authentication.
|
|
59
|
-
|
|
60
|
-
The ideal flow for a login sequence is the following:
|
|
61
|
-
|
|
62
|
-
1. Present an email address field only and allow the user to submit
|
|
63
|
-
2. Send \`email\` and \`return_url\` payload to this endpoint
|
|
64
|
-
3. Follow the flow based on the response \`requires\` field
|
|
65
|
-
|
|
66
|
-
Requires: \`password\`
|
|
67
|
-
|
|
68
|
-
1. Show a password field for the user to fill out
|
|
69
|
-
2. Submit the \`email\` and \`password\` to this endpoint
|
|
70
|
-
3. If the response is \`200\`, the login is done. If the response is \`201\`, then check if \`requires: mfa_code\` is returned and show MFA flow
|
|
71
|
-
4. Submit \`email\`, \`password\`, \`mfa_code\` to this endpoint
|
|
72
|
-
5. If the response is \`200\`, the login is done. Otherwise, show the appropriate error to the user and go back to step 1 or 3 depending on the error.
|
|
73
|
-
|
|
74
|
-
Requires: \`saml_login\`
|
|
75
|
-
|
|
76
|
-
1. [Open a browser](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options) to the url returned in \`sso_url\`
|
|
77
|
-
2. User completes sign-in using their configured SAML IdP
|
|
78
|
-
3. Site redirects to your selected \`return_url\`
|
|
79
|
-
4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
|
|
80
|
-
5. Fetch the user object from \`/users/me\` using the token`,
|
|
81
|
-
args,
|
|
82
|
-
tool: async (client, args, ctx) => {
|
|
83
|
-
const [result, apiCall] = await (0, userLogsUserIntoTheSystem_js_1.userLogsUserIntoTheSystem)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
84
|
-
if (!result.ok) {
|
|
85
|
-
return {
|
|
86
|
-
content: [{ type: "text", text: result.error.message }],
|
|
87
|
-
isError: true,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const value = result.value;
|
|
91
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=userLogsUserIntoTheSystem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userLogsUserIntoTheSystem.js","sourceRoot":"","sources":["../../src/mcp-server/tools/userLogsUserIntoTheSystem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2FAAqF;AACrF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,8CAA8C;CACnE,CAAC;AAEW,QAAA,8BAA8B,GAAgC;IACzE,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAgC6C;IAC1D,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,wDAAyB,EACvD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.MagiclinkRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$userMagiclink: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=userMagiclink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userMagiclink.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userMagiclink.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userMagiclink.js","sourceRoot":"","sources":["../../src/mcp-server/tools/userMagiclink.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mEAA6D;AAC7D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEW,QAAA,kBAAkB,GAAgC;IAC7D,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE;;iEAEkD;IAC/D,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gCAAa,EAC3C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.PasswordRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$userPassword: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=userPassword.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userPassword.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userPassword.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userPassword.js","sourceRoot":"","sources":["../../src/mcp-server/tools/userPassword.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;;mEAGoD;IACjE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.PasswordResetRequestRequestBody, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$userPasswordResetRequest: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=userPasswordResetRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userPasswordResetRequest.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/userPasswordResetRequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBrE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.ListVendorJobTitlesRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$vendorsListVendorJobTitles: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=vendorsListVendorJobTitles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vendorsListVendorJobTitles.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/vendorsListVendorJobTitles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBvE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vendorsListVendorJobTitles.js","sourceRoot":"","sources":["../../src/mcp-server/tools/vendorsListVendorJobTitles.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6FAAuF;AACvF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,wCAAwC;CAC7D,CAAC;AAEW,QAAA,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;mFAEoE;IACjF,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0DAA0B,EACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { assert, expect, it, test } from "vitest";
|
|
6
|
-
import { GreenSecurity } from "../index.js";
|
|
7
|
-
import { createTestHTTPClient } from "./testclient.js";
|
|
8
|
-
|
|
9
|
-
it.skip("Organizations List Or Search Facilities", async () => {
|
|
10
|
-
assert.fail(
|
|
11
|
-
"incomplete test found please make sure to address the following errors: [`workflow step listOrSearchFacilities.test referencing operation listOrSearchFacilities does not contain query parameter status`]",
|
|
12
|
-
);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
test("Organizations Get Facility", async () => {
|
|
16
|
-
const testHttpClient = createTestHTTPClient("getFacility");
|
|
17
|
-
|
|
18
|
-
const greenSecurity = new GreenSecurity({
|
|
19
|
-
serverURL: "https://dev.repconnex.com:3000/api",
|
|
20
|
-
security: {
|
|
21
|
-
bearerJwt: "",
|
|
22
|
-
},
|
|
23
|
-
httpClient: testHttpClient,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const result = await greenSecurity.organizations.getFacility({
|
|
27
|
-
id: 924512,
|
|
28
|
-
});
|
|
29
|
-
expect(result).toBeDefined();
|
|
30
|
-
expect(result).toEqual({
|
|
31
|
-
contacts: {
|
|
32
|
-
contact: {
|
|
33
|
-
status: "Inactive",
|
|
34
|
-
department: 123,
|
|
35
|
-
},
|
|
36
|
-
adminContact: {
|
|
37
|
-
status: "Deleted",
|
|
38
|
-
department: {
|
|
39
|
-
id: 97343,
|
|
40
|
-
name: "<value>",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
techContact: {
|
|
44
|
-
status: "Deleted",
|
|
45
|
-
department: {
|
|
46
|
-
id: 790655,
|
|
47
|
-
name: "<value>",
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
greenSecurityCsm: {
|
|
51
|
-
status: "Deleted",
|
|
52
|
-
department: 123,
|
|
53
|
-
},
|
|
54
|
-
accountManager: {
|
|
55
|
-
status: "Inactive",
|
|
56
|
-
department: {
|
|
57
|
-
id: 976324,
|
|
58
|
-
name: "<value>",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
imageUrls: {
|
|
63
|
-
tiny:
|
|
64
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_tiny.jpeg?1538765266",
|
|
65
|
-
thumb:
|
|
66
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_thumb.jpeg?1538765266",
|
|
67
|
-
large:
|
|
68
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_large.jpeg?1538765266",
|
|
69
|
-
original:
|
|
70
|
-
"https://d37hfq3t37fvvd.cloudfront.net/users/13226_original.jpeg?1538765266",
|
|
71
|
-
},
|
|
72
|
-
vendorGuestPolicy: {
|
|
73
|
-
enabled: true,
|
|
74
|
-
vendorGuestLimitAndOr: "and",
|
|
75
|
-
vendorGuestRequireEmail: true,
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { expect, test } from "vitest";
|
|
6
|
-
import { GreenSecurity } from "../index.js";
|
|
7
|
-
import { createTestHTTPClient } from "./testclient.js";
|
|
8
|
-
|
|
9
|
-
test("Support Articles List Or Search Support Articles", async () => {
|
|
10
|
-
const testHttpClient = createTestHTTPClient("listOrSearchSupportArticles");
|
|
11
|
-
|
|
12
|
-
const greenSecurity = new GreenSecurity({
|
|
13
|
-
serverURL: "https://dev.repconnex.com:3000/api",
|
|
14
|
-
security: {
|
|
15
|
-
bearerJwt: "",
|
|
16
|
-
},
|
|
17
|
-
httpClient: testHttpClient,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
const result = await greenSecurity.supportArticles
|
|
21
|
-
.listOrSearchSupportArticles({
|
|
22
|
-
sort: "job",
|
|
23
|
-
desc: true,
|
|
24
|
-
itemsPerPage: 25,
|
|
25
|
-
});
|
|
26
|
-
expect(result).toBeDefined();
|
|
27
|
-
expect(result.result).toBeDefined();
|
|
28
|
-
expect(result.result).toEqual({
|
|
29
|
-
pager: {
|
|
30
|
-
baseUrl: "api/vendors/job_titles",
|
|
31
|
-
sort: "job,title",
|
|
32
|
-
desc: 1,
|
|
33
|
-
itemCount: 228,
|
|
34
|
-
itemsPerPage: 575975,
|
|
35
|
-
page: 1,
|
|
36
|
-
useUrlParams: true,
|
|
37
|
-
},
|
|
38
|
-
items: [],
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
test("Support Articles Get Support Article", async () => {
|
|
43
|
-
const testHttpClient = createTestHTTPClient("getSupportArticle");
|
|
44
|
-
|
|
45
|
-
const greenSecurity = new GreenSecurity({
|
|
46
|
-
serverURL: "https://dev.repconnex.com:3000/api",
|
|
47
|
-
security: {
|
|
48
|
-
bearerJwt: "",
|
|
49
|
-
},
|
|
50
|
-
httpClient: testHttpClient,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
const result = await greenSecurity.supportArticles.getSupportArticle({
|
|
54
|
-
id: 971535,
|
|
55
|
-
expand: [
|
|
56
|
-
"facility.system",
|
|
57
|
-
],
|
|
58
|
-
});
|
|
59
|
-
expect(result).toBeDefined();
|
|
60
|
-
expect(result).toEqual({
|
|
61
|
-
id: 65,
|
|
62
|
-
title: "<value>",
|
|
63
|
-
});
|
|
64
|
-
});
|