@greensecurity/javascript-sdk 0.39.36 → 0.39.39
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/README.md +12 -0
- package/bin/mcp-server.js +1756 -625
- package/bin/mcp-server.js.map +45 -30
- package/dist/commonjs/__tests__/events.test.js +124 -0
- package/dist/commonjs/__tests__/events.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListFeed.js +166 -0
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -0
- package/dist/commonjs/funcs/eventsListLocations.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListLocations.js +159 -0
- package/dist/commonjs/funcs/eventsListLocations.js.map +1 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +162 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +168 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/commonjs/models/components/contact.d.ts +25 -25
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +17 -17
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +25 -25
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/credit.d.ts +10 -10
- package/dist/commonjs/models/components/credit.d.ts.map +1 -1
- package/dist/commonjs/models/components/credit.js.map +1 -1
- package/dist/commonjs/models/components/datarequest.d.ts +21 -21
- package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/datarequest.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +25 -25
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +16 -16
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/feed.d.ts +42 -0
- package/dist/commonjs/models/components/feed.d.ts.map +1 -0
- package/dist/commonjs/models/components/feed.js +89 -0
- package/dist/commonjs/models/components/feed.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/pendinginvitation.d.ts +80 -0
- package/dist/commonjs/models/components/pendinginvitation.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendinginvitation.js +130 -0
- package/dist/commonjs/models/components/pendinginvitation.js.map +1 -0
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/standingappointment.d.ts +46 -0
- package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -0
- package/dist/commonjs/models/components/standingappointment.js +92 -0
- package/dist/commonjs/models/components/standingappointment.js.map +1 -0
- package/dist/commonjs/models/components/user.d.ts +65 -65
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +17 -17
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +19 -19
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +22 -22
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js +16 -16
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
- package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +46 -46
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfeed.d.ts +166 -0
- package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfeed.js +197 -0
- package/dist/commonjs/models/operations/listfeed.js.map +1 -0
- package/dist/commonjs/models/operations/listlocations.d.ts +148 -0
- package/dist/commonjs/models/operations/listlocations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listlocations.js +191 -0
- package/dist/commonjs/models/operations/listlocations.js.map +1 -0
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts +136 -0
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listpendinginvitations.js +173 -0
- package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -0
- package/dist/commonjs/models/operations/liststandingappointments.d.ts +166 -0
- package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/liststandingappointments.js +197 -0
- package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -0
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.js +47 -47
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.d.ts +111 -0
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListFeed.js +174 -0
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -0
- package/dist/commonjs/react-query/eventsListLocations.d.ts +84 -0
- package/dist/commonjs/react-query/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListLocations.js +161 -0
- package/dist/commonjs/react-query/eventsListLocations.js.map +1 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +93 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +171 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +111 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +183 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +4 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +4 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +36 -0
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +40 -0
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/esm/__tests__/events.test.js +124 -0
- package/dist/esm/__tests__/events.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/funcs/eventsListFeed.d.ts +21 -0
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListFeed.js +130 -0
- package/dist/esm/funcs/eventsListFeed.js.map +1 -0
- package/dist/esm/funcs/eventsListLocations.d.ts +21 -0
- package/dist/esm/funcs/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListLocations.js +123 -0
- package/dist/esm/funcs/eventsListLocations.js.map +1 -0
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +21 -0
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListPendingInvitations.js +126 -0
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +21 -0
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListStandingAppointments.js +132 -0
- package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsListFeed.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/esm/models/components/contact.d.ts +25 -25
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +16 -16
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +25 -25
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/credit.d.ts +10 -10
- package/dist/esm/models/components/credit.d.ts.map +1 -1
- package/dist/esm/models/components/credit.js.map +1 -1
- package/dist/esm/models/components/datarequest.d.ts +21 -21
- package/dist/esm/models/components/datarequest.d.ts.map +1 -1
- package/dist/esm/models/components/datarequest.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +25 -25
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +15 -15
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/feed.d.ts +42 -0
- package/dist/esm/models/components/feed.d.ts.map +1 -0
- package/dist/esm/models/components/feed.js +51 -0
- package/dist/esm/models/components/feed.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/pendinginvitation.d.ts +80 -0
- package/dist/esm/models/components/pendinginvitation.d.ts.map +1 -0
- package/dist/esm/models/components/pendinginvitation.js +90 -0
- package/dist/esm/models/components/pendinginvitation.js.map +1 -0
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/standingappointment.d.ts +46 -0
- package/dist/esm/models/components/standingappointment.d.ts.map +1 -0
- package/dist/esm/models/components/standingappointment.js +54 -0
- package/dist/esm/models/components/standingappointment.js.map +1 -0
- package/dist/esm/models/components/user.d.ts +65 -65
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +16 -16
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +19 -19
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +22 -22
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.js +15 -15
- package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
- package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpoint.js.map +1 -1
- package/dist/esm/models/operations/createinvoice.d.ts +106 -106
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +45 -45
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfeed.d.ts +166 -0
- package/dist/esm/models/operations/listfeed.d.ts.map +1 -0
- package/dist/esm/models/operations/listfeed.js +155 -0
- package/dist/esm/models/operations/listfeed.js.map +1 -0
- package/dist/esm/models/operations/listlocations.d.ts +148 -0
- package/dist/esm/models/operations/listlocations.d.ts.map +1 -0
- package/dist/esm/models/operations/listlocations.js +147 -0
- package/dist/esm/models/operations/listlocations.js.map +1 -0
- package/dist/esm/models/operations/listpendinginvitations.d.ts +136 -0
- package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -0
- package/dist/esm/models/operations/listpendinginvitations.js +131 -0
- package/dist/esm/models/operations/listpendinginvitations.js.map +1 -0
- package/dist/esm/models/operations/liststandingappointments.d.ts +166 -0
- package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -0
- package/dist/esm/models/operations/liststandingappointments.js +155 -0
- package/dist/esm/models/operations/liststandingappointments.js.map +1 -0
- package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +16 -16
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
- package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
- package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateinvoice.js +46 -46
- package/dist/esm/models/operations/updateinvoice.js.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/esm/react-query/eventsListFeed.d.ts +111 -0
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListFeed.js +161 -0
- package/dist/esm/react-query/eventsListFeed.js.map +1 -0
- package/dist/esm/react-query/eventsListLocations.d.ts +84 -0
- package/dist/esm/react-query/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListLocations.js +148 -0
- package/dist/esm/react-query/eventsListLocations.js.map +1 -0
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +93 -0
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListPendingInvitations.js +158 -0
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +111 -0
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListStandingAppointments.js +170 -0
- package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +4 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +4 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +36 -0
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +40 -0
- package/dist/esm/sdk/events.js.map +1 -1
- package/examples/package-lock.json +6 -5
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/__tests__/events.test.ts +136 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/eventsListFeed.ts +257 -0
- package/src/funcs/eventsListLocations.ts +250 -0
- package/src/funcs/eventsListPendingInvitations.ts +254 -0
- package/src/funcs/eventsListStandingAppointments.ts +260 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/eventsListFeed.ts +37 -0
- package/src/mcp-server/tools/eventsListLocations.ts +37 -0
- package/src/mcp-server/tools/eventsListPendingInvitations.ts +37 -0
- package/src/mcp-server/tools/eventsListStandingAppointments.ts +38 -0
- package/src/models/components/backgroundcheckresult.ts +31 -31
- package/src/models/components/contact.ts +25 -25
- package/src/models/components/credential.ts +26 -26
- package/src/models/components/credit.ts +11 -11
- package/src/models/components/datarequest.ts +19 -19
- package/src/models/components/facility.ts +27 -27
- package/src/models/components/feed.ts +88 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/mfarequiredresponse.ts +21 -21
- package/src/models/components/passwordrequiredresponse.ts +12 -12
- package/src/models/components/pendinginvitation.ts +176 -0
- package/src/models/components/samlloginrequiredresponse.ts +21 -21
- package/src/models/components/standingappointment.ts +106 -0
- package/src/models/components/user.ts +50 -50
- package/src/models/components/userlocation.ts +19 -19
- package/src/models/components/vendorcredentialdatarequest.ts +28 -28
- package/src/models/components/webhookendpoint.ts +21 -21
- package/src/models/operations/createinvoice.ts +114 -114
- package/src/models/operations/createorupdatebcr.ts +21 -21
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listfeed.ts +340 -0
- package/src/models/operations/listlocations.ts +316 -0
- package/src/models/operations/listpendinginvitations.ts +296 -0
- package/src/models/operations/liststandingappointments.ts +351 -0
- package/src/models/operations/listvendorinvoices.ts +21 -21
- package/src/models/operations/securityzonecheckin.ts +24 -24
- package/src/models/operations/senddownloadcode.ts +12 -12
- package/src/models/operations/updateinvoice.ts +124 -124
- package/src/models/operations/updatevendorcredentialdata.ts +24 -24
- package/src/models/operations/updatevendordetails.ts +21 -21
- package/src/models/operations/updatevendorscrubdetails.ts +23 -23
- package/src/react-query/eventsListFeed.ts +366 -0
- package/src/react-query/eventsListLocations.ts +342 -0
- package/src/react-query/eventsListPendingInvitations.ts +367 -0
- package/src/react-query/eventsListStandingAppointments.ts +400 -0
- package/src/react-query/index.ts +4 -0
- package/src/sdk/events.ts +76 -0
|
@@ -0,0 +1,176 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A representation of a PendingInvitation response
|
|
13
|
+
*/
|
|
14
|
+
export type Event = {
|
|
15
|
+
id?: number | undefined;
|
|
16
|
+
userId?: number | undefined;
|
|
17
|
+
title?: string | null | undefined;
|
|
18
|
+
location?: string | null | undefined;
|
|
19
|
+
start?: string | undefined;
|
|
20
|
+
end?: string | undefined;
|
|
21
|
+
allDay?: boolean | undefined;
|
|
22
|
+
standingAppt?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type PendingInvitation = {
|
|
26
|
+
id?: number | undefined;
|
|
27
|
+
from?: string | null | undefined;
|
|
28
|
+
to?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* A representation of a PendingInvitation response
|
|
31
|
+
*/
|
|
32
|
+
event?: Event | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
37
|
+
.object({
|
|
38
|
+
id: z.number().int().optional(),
|
|
39
|
+
user_id: z.number().int().optional(),
|
|
40
|
+
title: z.nullable(z.string()).optional(),
|
|
41
|
+
location: z.nullable(z.string()).optional(),
|
|
42
|
+
start: z.string().optional(),
|
|
43
|
+
end: z.string().optional(),
|
|
44
|
+
all_day: z.boolean().optional(),
|
|
45
|
+
standing_appt: z.boolean().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"user_id": "userId",
|
|
49
|
+
"all_day": "allDay",
|
|
50
|
+
"standing_appt": "standingAppt",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type Event$Outbound = {
|
|
56
|
+
id?: number | undefined;
|
|
57
|
+
user_id?: number | undefined;
|
|
58
|
+
title?: string | null | undefined;
|
|
59
|
+
location?: string | null | undefined;
|
|
60
|
+
start?: string | undefined;
|
|
61
|
+
end?: string | undefined;
|
|
62
|
+
all_day?: boolean | undefined;
|
|
63
|
+
standing_appt?: boolean | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const Event$outboundSchema: z.ZodType<
|
|
68
|
+
Event$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
Event
|
|
71
|
+
> = z.object({
|
|
72
|
+
id: z.number().int().optional(),
|
|
73
|
+
userId: z.number().int().optional(),
|
|
74
|
+
title: z.nullable(z.string()).optional(),
|
|
75
|
+
location: z.nullable(z.string()).optional(),
|
|
76
|
+
start: z.string().optional(),
|
|
77
|
+
end: z.string().optional(),
|
|
78
|
+
allDay: z.boolean().optional(),
|
|
79
|
+
standingAppt: z.boolean().optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
userId: "user_id",
|
|
83
|
+
allDay: "all_day",
|
|
84
|
+
standingAppt: "standing_appt",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
+
*/
|
|
92
|
+
export namespace Event$ {
|
|
93
|
+
/** @deprecated use `Event$inboundSchema` instead. */
|
|
94
|
+
export const inboundSchema = Event$inboundSchema;
|
|
95
|
+
/** @deprecated use `Event$outboundSchema` instead. */
|
|
96
|
+
export const outboundSchema = Event$outboundSchema;
|
|
97
|
+
/** @deprecated use `Event$Outbound` instead. */
|
|
98
|
+
export type Outbound = Event$Outbound;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function eventToJSON(event: Event): string {
|
|
102
|
+
return JSON.stringify(Event$outboundSchema.parse(event));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function eventFromJSON(
|
|
106
|
+
jsonString: string,
|
|
107
|
+
): SafeParseResult<Event, SDKValidationError> {
|
|
108
|
+
return safeParse(
|
|
109
|
+
jsonString,
|
|
110
|
+
(x) => Event$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
+
`Failed to parse 'Event' from JSON`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const PendingInvitation$inboundSchema: z.ZodType<
|
|
117
|
+
PendingInvitation,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
id: z.number().int().optional(),
|
|
122
|
+
from: z.nullable(z.string()).optional(),
|
|
123
|
+
to: z.nullable(z.string()).optional(),
|
|
124
|
+
event: z.lazy(() => Event$inboundSchema).optional(),
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export type PendingInvitation$Outbound = {
|
|
129
|
+
id?: number | undefined;
|
|
130
|
+
from?: string | null | undefined;
|
|
131
|
+
to?: string | null | undefined;
|
|
132
|
+
event?: Event$Outbound | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const PendingInvitation$outboundSchema: z.ZodType<
|
|
137
|
+
PendingInvitation$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
PendingInvitation
|
|
140
|
+
> = z.object({
|
|
141
|
+
id: z.number().int().optional(),
|
|
142
|
+
from: z.nullable(z.string()).optional(),
|
|
143
|
+
to: z.nullable(z.string()).optional(),
|
|
144
|
+
event: z.lazy(() => Event$outboundSchema).optional(),
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace PendingInvitation$ {
|
|
152
|
+
/** @deprecated use `PendingInvitation$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = PendingInvitation$inboundSchema;
|
|
154
|
+
/** @deprecated use `PendingInvitation$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = PendingInvitation$outboundSchema;
|
|
156
|
+
/** @deprecated use `PendingInvitation$Outbound` instead. */
|
|
157
|
+
export type Outbound = PendingInvitation$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function pendingInvitationToJSON(
|
|
161
|
+
pendingInvitation: PendingInvitation,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
PendingInvitation$outboundSchema.parse(pendingInvitation),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function pendingInvitationFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<PendingInvitation, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => PendingInvitation$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'PendingInvitation' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
@@ -16,27 +16,6 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<
|
|
|
16
16
|
typeof SamlLoginRequiredResponseRequires
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
*
|
|
24
|
-
* The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
|
|
25
|
-
*/
|
|
26
|
-
export type SamlLoginRequiredResponse = {
|
|
27
|
-
requires: SamlLoginRequiredResponseRequires;
|
|
28
|
-
success: boolean;
|
|
29
|
-
error: string;
|
|
30
|
-
/**
|
|
31
|
-
* Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
|
|
32
|
-
*/
|
|
33
|
-
ssoInstructions?: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* This is the URL that should be opened to initiate the SAML login flow
|
|
36
|
-
*/
|
|
37
|
-
ssoUrl: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
19
|
/** @internal */
|
|
41
20
|
export const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
|
|
42
21
|
typeof SamlLoginRequiredResponseRequires
|
|
@@ -59,6 +38,27 @@ export namespace SamlLoginRequiredResponseRequires$ {
|
|
|
59
38
|
SamlLoginRequiredResponseRequires$outboundSchema;
|
|
60
39
|
}
|
|
61
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*
|
|
46
|
+
* The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
|
|
47
|
+
*/
|
|
48
|
+
export type SamlLoginRequiredResponse = {
|
|
49
|
+
requires: SamlLoginRequiredResponseRequires;
|
|
50
|
+
success: boolean;
|
|
51
|
+
error: string;
|
|
52
|
+
/**
|
|
53
|
+
* Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
|
|
54
|
+
*/
|
|
55
|
+
ssoInstructions?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* This is the URL that should be opened to initiate the SAML login flow
|
|
58
|
+
*/
|
|
59
|
+
ssoUrl: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
62
|
/** @internal */
|
|
63
63
|
export const SamlLoginRequiredResponse$inboundSchema: z.ZodType<
|
|
64
64
|
SamlLoginRequiredResponse,
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A representation of a StandingAppointment response
|
|
13
|
+
*/
|
|
14
|
+
export type StandingAppointment = {
|
|
15
|
+
id?: number | undefined;
|
|
16
|
+
title?: string | null | undefined;
|
|
17
|
+
location?: string | null | undefined;
|
|
18
|
+
attendees?: Array<string> | undefined;
|
|
19
|
+
start?: string | null | undefined;
|
|
20
|
+
end?: string | null | undefined;
|
|
21
|
+
className?: string | null | undefined;
|
|
22
|
+
status?: string | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const StandingAppointment$inboundSchema: z.ZodType<
|
|
27
|
+
StandingAppointment,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
id: z.number().int().optional(),
|
|
32
|
+
title: z.nullable(z.string()).optional(),
|
|
33
|
+
location: z.nullable(z.string()).optional(),
|
|
34
|
+
attendees: z.array(z.string()).optional(),
|
|
35
|
+
start: z.nullable(z.string()).optional(),
|
|
36
|
+
end: z.nullable(z.string()).optional(),
|
|
37
|
+
class_name: z.nullable(z.string()).optional(),
|
|
38
|
+
status: z.nullable(z.string()).optional(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"class_name": "className",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type StandingAppointment$Outbound = {
|
|
47
|
+
id?: number | undefined;
|
|
48
|
+
title?: string | null | undefined;
|
|
49
|
+
location?: string | null | undefined;
|
|
50
|
+
attendees?: Array<string> | undefined;
|
|
51
|
+
start?: string | null | undefined;
|
|
52
|
+
end?: string | null | undefined;
|
|
53
|
+
class_name?: string | null | undefined;
|
|
54
|
+
status?: string | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const StandingAppointment$outboundSchema: z.ZodType<
|
|
59
|
+
StandingAppointment$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
StandingAppointment
|
|
62
|
+
> = z.object({
|
|
63
|
+
id: z.number().int().optional(),
|
|
64
|
+
title: z.nullable(z.string()).optional(),
|
|
65
|
+
location: z.nullable(z.string()).optional(),
|
|
66
|
+
attendees: z.array(z.string()).optional(),
|
|
67
|
+
start: z.nullable(z.string()).optional(),
|
|
68
|
+
end: z.nullable(z.string()).optional(),
|
|
69
|
+
className: z.nullable(z.string()).optional(),
|
|
70
|
+
status: z.nullable(z.string()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
className: "class_name",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace StandingAppointment$ {
|
|
82
|
+
/** @deprecated use `StandingAppointment$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = StandingAppointment$inboundSchema;
|
|
84
|
+
/** @deprecated use `StandingAppointment$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = StandingAppointment$outboundSchema;
|
|
86
|
+
/** @deprecated use `StandingAppointment$Outbound` instead. */
|
|
87
|
+
export type Outbound = StandingAppointment$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function standingAppointmentToJSON(
|
|
91
|
+
standingAppointment: StandingAppointment,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
StandingAppointment$outboundSchema.parse(standingAppointment),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function standingAppointmentFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<StandingAppointment, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => StandingAppointment$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'StandingAppointment' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -58,6 +58,56 @@ export const UserType = {
|
|
|
58
58
|
*/
|
|
59
59
|
export type UserType = ClosedEnum<typeof UserType>;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
63
|
+
*/
|
|
64
|
+
export const TokenType = {
|
|
65
|
+
Permanent: "permanent",
|
|
66
|
+
OneTime: "one time",
|
|
67
|
+
} as const;
|
|
68
|
+
/**
|
|
69
|
+
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
70
|
+
*/
|
|
71
|
+
export type TokenType = ClosedEnum<typeof TokenType>;
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
|
|
75
|
+
.nativeEnum(UserType);
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
|
|
79
|
+
UserType$inboundSchema;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace UserType$ {
|
|
86
|
+
/** @deprecated use `UserType$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema = UserType$inboundSchema;
|
|
88
|
+
/** @deprecated use `UserType$outboundSchema` instead. */
|
|
89
|
+
export const outboundSchema = UserType$outboundSchema;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
|
|
94
|
+
.nativeEnum(TokenType);
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
|
|
98
|
+
TokenType$inboundSchema;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
+
*/
|
|
104
|
+
export namespace TokenType$ {
|
|
105
|
+
/** @deprecated use `TokenType$inboundSchema` instead. */
|
|
106
|
+
export const inboundSchema = TokenType$inboundSchema;
|
|
107
|
+
/** @deprecated use `TokenType$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema = TokenType$outboundSchema;
|
|
109
|
+
}
|
|
110
|
+
|
|
61
111
|
export type UserUser = {
|
|
62
112
|
/**
|
|
63
113
|
* This identifier is only used to reference the underlying user. Based on the `user_type` a more relevant identifier may be used to get relvant information from other endpoints.
|
|
@@ -96,18 +146,6 @@ export type UserUser = {
|
|
|
96
146
|
location?: UserLocation | null | undefined;
|
|
97
147
|
};
|
|
98
148
|
|
|
99
|
-
/**
|
|
100
|
-
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
101
|
-
*/
|
|
102
|
-
export const TokenType = {
|
|
103
|
-
Permanent: "permanent",
|
|
104
|
-
OneTime: "one time",
|
|
105
|
-
} as const;
|
|
106
|
-
/**
|
|
107
|
-
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
108
|
-
*/
|
|
109
|
-
export type TokenType = ClosedEnum<typeof TokenType>;
|
|
110
|
-
|
|
111
149
|
export type UserToken = {
|
|
112
150
|
/**
|
|
113
151
|
* This token can be passed in authorization headers for this user.
|
|
@@ -147,25 +185,6 @@ export type User = {
|
|
|
147
185
|
company?: Company | null | undefined;
|
|
148
186
|
};
|
|
149
187
|
|
|
150
|
-
/** @internal */
|
|
151
|
-
export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
|
|
152
|
-
.nativeEnum(UserType);
|
|
153
|
-
|
|
154
|
-
/** @internal */
|
|
155
|
-
export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
|
|
156
|
-
UserType$inboundSchema;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @internal
|
|
160
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
-
*/
|
|
162
|
-
export namespace UserType$ {
|
|
163
|
-
/** @deprecated use `UserType$inboundSchema` instead. */
|
|
164
|
-
export const inboundSchema = UserType$inboundSchema;
|
|
165
|
-
/** @deprecated use `UserType$outboundSchema` instead. */
|
|
166
|
-
export const outboundSchema = UserType$outboundSchema;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
188
|
/** @internal */
|
|
170
189
|
export const UserUser$inboundSchema: z.ZodType<
|
|
171
190
|
UserUser,
|
|
@@ -262,25 +281,6 @@ export function userUserFromJSON(
|
|
|
262
281
|
);
|
|
263
282
|
}
|
|
264
283
|
|
|
265
|
-
/** @internal */
|
|
266
|
-
export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
|
|
267
|
-
.nativeEnum(TokenType);
|
|
268
|
-
|
|
269
|
-
/** @internal */
|
|
270
|
-
export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
|
|
271
|
-
TokenType$inboundSchema;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @internal
|
|
275
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
-
*/
|
|
277
|
-
export namespace TokenType$ {
|
|
278
|
-
/** @deprecated use `TokenType$inboundSchema` instead. */
|
|
279
|
-
export const inboundSchema = TokenType$inboundSchema;
|
|
280
|
-
/** @deprecated use `TokenType$outboundSchema` instead. */
|
|
281
|
-
export const outboundSchema = TokenType$outboundSchema;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
284
|
/** @internal */
|
|
285
285
|
export const UserToken$inboundSchema: z.ZodType<
|
|
286
286
|
UserToken,
|
|
@@ -165,6 +165,25 @@ export const Timezone = {
|
|
|
165
165
|
} as const;
|
|
166
166
|
export type Timezone = ClosedEnum<typeof Timezone>;
|
|
167
167
|
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
|
|
170
|
+
.nativeEnum(Timezone);
|
|
171
|
+
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
|
|
174
|
+
Timezone$inboundSchema;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
179
|
+
*/
|
|
180
|
+
export namespace Timezone$ {
|
|
181
|
+
/** @deprecated use `Timezone$inboundSchema` instead. */
|
|
182
|
+
export const inboundSchema = Timezone$inboundSchema;
|
|
183
|
+
/** @deprecated use `Timezone$outboundSchema` instead. */
|
|
184
|
+
export const outboundSchema = Timezone$outboundSchema;
|
|
185
|
+
}
|
|
186
|
+
|
|
168
187
|
/**
|
|
169
188
|
* Reduced list of attributes of the User Location
|
|
170
189
|
*/
|
|
@@ -185,25 +204,6 @@ export type UserLocation = {
|
|
|
185
204
|
timezone?: Timezone | null | undefined;
|
|
186
205
|
};
|
|
187
206
|
|
|
188
|
-
/** @internal */
|
|
189
|
-
export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
|
|
190
|
-
.nativeEnum(Timezone);
|
|
191
|
-
|
|
192
|
-
/** @internal */
|
|
193
|
-
export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
|
|
194
|
-
Timezone$inboundSchema;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
199
|
-
*/
|
|
200
|
-
export namespace Timezone$ {
|
|
201
|
-
/** @deprecated use `Timezone$inboundSchema` instead. */
|
|
202
|
-
export const inboundSchema = Timezone$inboundSchema;
|
|
203
|
-
/** @deprecated use `Timezone$outboundSchema` instead. */
|
|
204
|
-
export const outboundSchema = Timezone$outboundSchema;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
207
|
/** @internal */
|
|
208
208
|
export const UserLocation$inboundSchema: z.ZodType<
|
|
209
209
|
UserLocation,
|
|
@@ -21,12 +21,6 @@ import {
|
|
|
21
21
|
VendorCredentialSummary$outboundSchema,
|
|
22
22
|
} from "./vendorcredentialsummary.js";
|
|
23
23
|
|
|
24
|
-
export type VendorCredentialDataRequestVendorCredential =
|
|
25
|
-
| VendorCredentialSummary
|
|
26
|
-
| number;
|
|
27
|
-
|
|
28
|
-
export type VendorCredentialDataRequestDataRequest = DataRequest | number;
|
|
29
|
-
|
|
30
24
|
export const VendorCredentialDataRequestStatus = {
|
|
31
25
|
Requested: "Requested",
|
|
32
26
|
Submitted: "Submitted",
|
|
@@ -35,6 +29,34 @@ export type VendorCredentialDataRequestStatus = ClosedEnum<
|
|
|
35
29
|
typeof VendorCredentialDataRequestStatus
|
|
36
30
|
>;
|
|
37
31
|
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const VendorCredentialDataRequestStatus$inboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof VendorCredentialDataRequestStatus
|
|
35
|
+
> = z.nativeEnum(VendorCredentialDataRequestStatus);
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const VendorCredentialDataRequestStatus$outboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof VendorCredentialDataRequestStatus
|
|
40
|
+
> = VendorCredentialDataRequestStatus$inboundSchema;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export namespace VendorCredentialDataRequestStatus$ {
|
|
47
|
+
/** @deprecated use `VendorCredentialDataRequestStatus$inboundSchema` instead. */
|
|
48
|
+
export const inboundSchema = VendorCredentialDataRequestStatus$inboundSchema;
|
|
49
|
+
/** @deprecated use `VendorCredentialDataRequestStatus$outboundSchema` instead. */
|
|
50
|
+
export const outboundSchema =
|
|
51
|
+
VendorCredentialDataRequestStatus$outboundSchema;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type VendorCredentialDataRequestVendorCredential =
|
|
55
|
+
| VendorCredentialSummary
|
|
56
|
+
| number;
|
|
57
|
+
|
|
58
|
+
export type VendorCredentialDataRequestDataRequest = DataRequest | number;
|
|
59
|
+
|
|
38
60
|
export type VendorCredentialDataRequestFile = {
|
|
39
61
|
fileName?: string | null | undefined;
|
|
40
62
|
contentType?: string | null | undefined;
|
|
@@ -180,28 +202,6 @@ export function vendorCredentialDataRequestDataRequestFromJSON(
|
|
|
180
202
|
);
|
|
181
203
|
}
|
|
182
204
|
|
|
183
|
-
/** @internal */
|
|
184
|
-
export const VendorCredentialDataRequestStatus$inboundSchema: z.ZodNativeEnum<
|
|
185
|
-
typeof VendorCredentialDataRequestStatus
|
|
186
|
-
> = z.nativeEnum(VendorCredentialDataRequestStatus);
|
|
187
|
-
|
|
188
|
-
/** @internal */
|
|
189
|
-
export const VendorCredentialDataRequestStatus$outboundSchema: z.ZodNativeEnum<
|
|
190
|
-
typeof VendorCredentialDataRequestStatus
|
|
191
|
-
> = VendorCredentialDataRequestStatus$inboundSchema;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* @internal
|
|
195
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
196
|
-
*/
|
|
197
|
-
export namespace VendorCredentialDataRequestStatus$ {
|
|
198
|
-
/** @deprecated use `VendorCredentialDataRequestStatus$inboundSchema` instead. */
|
|
199
|
-
export const inboundSchema = VendorCredentialDataRequestStatus$inboundSchema;
|
|
200
|
-
/** @deprecated use `VendorCredentialDataRequestStatus$outboundSchema` instead. */
|
|
201
|
-
export const outboundSchema =
|
|
202
|
-
VendorCredentialDataRequestStatus$outboundSchema;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
205
|
/** @internal */
|
|
206
206
|
export const VendorCredentialDataRequestFile$inboundSchema: z.ZodType<
|
|
207
207
|
VendorCredentialDataRequestFile,
|
|
@@ -20,6 +20,27 @@ export const SignatureAlgo = {
|
|
|
20
20
|
*/
|
|
21
21
|
export type SignatureAlgo = ClosedEnum<typeof SignatureAlgo>;
|
|
22
22
|
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const SignatureAlgo$inboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof SignatureAlgo
|
|
26
|
+
> = z.nativeEnum(SignatureAlgo);
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const SignatureAlgo$outboundSchema: z.ZodNativeEnum<
|
|
30
|
+
typeof SignatureAlgo
|
|
31
|
+
> = SignatureAlgo$inboundSchema;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export namespace SignatureAlgo$ {
|
|
38
|
+
/** @deprecated use `SignatureAlgo$inboundSchema` instead. */
|
|
39
|
+
export const inboundSchema = SignatureAlgo$inboundSchema;
|
|
40
|
+
/** @deprecated use `SignatureAlgo$outboundSchema` instead. */
|
|
41
|
+
export const outboundSchema = SignatureAlgo$outboundSchema;
|
|
42
|
+
}
|
|
43
|
+
|
|
23
44
|
/**
|
|
24
45
|
* Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
|
|
25
46
|
*/
|
|
@@ -72,27 +93,6 @@ export type WebhookEndpoint = {
|
|
|
72
93
|
secrets?: Array<string> | null | undefined;
|
|
73
94
|
};
|
|
74
95
|
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const SignatureAlgo$inboundSchema: z.ZodNativeEnum<
|
|
77
|
-
typeof SignatureAlgo
|
|
78
|
-
> = z.nativeEnum(SignatureAlgo);
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const SignatureAlgo$outboundSchema: z.ZodNativeEnum<
|
|
82
|
-
typeof SignatureAlgo
|
|
83
|
-
> = SignatureAlgo$inboundSchema;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export namespace SignatureAlgo$ {
|
|
90
|
-
/** @deprecated use `SignatureAlgo$inboundSchema` instead. */
|
|
91
|
-
export const inboundSchema = SignatureAlgo$inboundSchema;
|
|
92
|
-
/** @deprecated use `SignatureAlgo$outboundSchema` instead. */
|
|
93
|
-
export const outboundSchema = SignatureAlgo$outboundSchema;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
96
|
/** @internal */
|
|
97
97
|
export const Consumers$inboundSchema: z.ZodType<
|
|
98
98
|
Consumers,
|