@moovio/sdk 25.4.0 → 25.7.0
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 +135 -47
- package/bin/mcp-server.js +2711 -483
- package/bin/mcp-server.js.map +90 -20
- package/examples/package-lock.json +1 -1
- package/funcs/supportCreateTicket.d.ts +21 -0
- package/funcs/supportCreateTicket.d.ts.map +1 -0
- package/funcs/supportCreateTicket.js +142 -0
- package/funcs/supportCreateTicket.js.map +1 -0
- package/funcs/supportGetTicket.d.ts +20 -0
- package/funcs/supportGetTicket.d.ts.map +1 -0
- package/funcs/supportGetTicket.js +132 -0
- package/funcs/supportGetTicket.js.map +1 -0
- package/funcs/supportListTicketMessages.d.ts +20 -0
- package/funcs/supportListTicketMessages.d.ts.map +1 -0
- package/funcs/supportListTicketMessages.js +132 -0
- package/funcs/supportListTicketMessages.js.map +1 -0
- package/funcs/supportListTickets.d.ts +20 -0
- package/funcs/supportListTickets.d.ts.map +1 -0
- package/funcs/supportListTickets.js +135 -0
- package/funcs/supportListTickets.js.map +1 -0
- package/funcs/supportUpdateTicket.d.ts +21 -0
- package/funcs/supportUpdateTicket.d.ts.map +1 -0
- package/funcs/supportUpdateTicket.js +146 -0
- package/funcs/supportUpdateTicket.js.map +1 -0
- package/funcs/underwritingSave.d.ts +20 -0
- package/funcs/underwritingSave.d.ts.map +1 -0
- package/funcs/underwritingSave.js +145 -0
- package/funcs/underwritingSave.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/supportCreateTicket.d.ts +8 -0
- package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportCreateTicket.js +68 -0
- package/mcp-server/tools/supportCreateTicket.js.map +1 -0
- package/mcp-server/tools/supportGetTicket.d.ts +8 -0
- package/mcp-server/tools/supportGetTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportGetTicket.js +68 -0
- package/mcp-server/tools/supportGetTicket.js.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts +8 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.js +68 -0
- package/mcp-server/tools/supportListTicketMessages.js.map +1 -0
- package/mcp-server/tools/supportListTickets.d.ts +8 -0
- package/mcp-server/tools/supportListTickets.d.ts.map +1 -0
- package/mcp-server/tools/supportListTickets.js +68 -0
- package/mcp-server/tools/supportListTickets.js.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts +8 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.js +68 -0
- package/mcp-server/tools/supportUpdateTicket.js.map +1 -0
- package/mcp-server/tools/underwritingSave.d.ts +8 -0
- package/mcp-server/tools/underwritingSave.d.ts.map +1 -0
- package/mcp-server/tools/underwritingSave.js +67 -0
- package/mcp-server/tools/underwritingSave.js.map +1 -0
- package/models/components/accounttype.d.ts +1 -0
- package/models/components/accounttype.d.ts.map +1 -1
- package/models/components/accounttype.js +1 -0
- package/models/components/accounttype.js.map +1 -1
- package/models/components/bankaccountholdertype.d.ts +1 -0
- package/models/components/bankaccountholdertype.d.ts.map +1 -1
- package/models/components/bankaccountholdertype.js +1 -0
- package/models/components/bankaccountholdertype.js.map +1 -1
- package/models/components/businesspresence.d.ts +16 -0
- package/models/components/businesspresence.d.ts.map +1 -0
- package/models/components/businesspresence.js +53 -0
- package/models/components/businesspresence.js.map +1 -0
- package/models/components/capabilityid.d.ts +11 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +11 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardacceptancemethods.d.ts +33 -0
- package/models/components/cardacceptancemethods.d.ts.map +1 -0
- package/models/components/cardacceptancemethods.js +62 -0
- package/models/components/cardacceptancemethods.js.map +1 -0
- package/models/components/cardacceptancemethodserror.d.ts +21 -0
- package/models/components/cardacceptancemethodserror.d.ts.map +1 -0
- package/models/components/cardacceptancemethodserror.js +62 -0
- package/models/components/cardacceptancemethodserror.js.map +1 -0
- package/models/components/collectfunds.d.ts +21 -0
- package/models/components/collectfunds.d.ts.map +1 -0
- package/models/components/collectfunds.js +62 -0
- package/models/components/collectfunds.js.map +1 -0
- package/models/components/collectfundsach.d.ts +18 -0
- package/models/components/collectfundsach.d.ts.map +1 -0
- package/models/components/collectfundsach.js +59 -0
- package/models/components/collectfundsach.js.map +1 -0
- package/models/components/collectfundsacherror.d.ts +18 -0
- package/models/components/collectfundsacherror.d.ts.map +1 -0
- package/models/components/collectfundsacherror.js +59 -0
- package/models/components/collectfundsacherror.js.map +1 -0
- package/models/components/collectfundscardpayments.d.ts +32 -0
- package/models/components/collectfundscardpayments.d.ts.map +1 -0
- package/models/components/collectfundscardpayments.js +70 -0
- package/models/components/collectfundscardpayments.js.map +1 -0
- package/models/components/collectfundscardpaymentserror.d.ts +28 -0
- package/models/components/collectfundscardpaymentserror.d.ts.map +1 -0
- package/models/components/collectfundscardpaymentserror.js +69 -0
- package/models/components/collectfundscardpaymentserror.js.map +1 -0
- package/models/components/collectfundserror.d.ts +21 -0
- package/models/components/collectfundserror.d.ts.map +1 -0
- package/models/components/collectfundserror.js +62 -0
- package/models/components/collectfundserror.js.map +1 -0
- package/models/components/createaccount.d.ts +2 -5
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js +3 -3
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createaccounttype.d.ts +12 -0
- package/models/components/createaccounttype.d.ts.map +1 -0
- package/models/components/createaccounttype.js +49 -0
- package/models/components/createaccounttype.js.map +1 -0
- package/models/components/createticket.d.ts +29 -0
- package/models/components/createticket.d.ts.map +1 -0
- package/models/components/createticket.js +67 -0
- package/models/components/createticket.js.map +1 -0
- package/models/components/createticketcontacterror.d.ts +19 -0
- package/models/components/createticketcontacterror.d.ts.map +1 -0
- package/models/components/createticketcontacterror.js +60 -0
- package/models/components/createticketcontacterror.js.map +1 -0
- package/models/components/enrichedindustries.d.ts +3 -3
- package/models/components/enrichedindustries.js +3 -3
- package/models/components/estimatedactivity.d.ts +25 -0
- package/models/components/estimatedactivity.d.ts.map +1 -0
- package/models/components/estimatedactivity.js +63 -0
- package/models/components/estimatedactivity.js.map +1 -0
- package/models/components/estimatedactivityerror.d.ts +21 -0
- package/models/components/estimatedactivityerror.d.ts.map +1 -0
- package/models/components/estimatedactivityerror.js +62 -0
- package/models/components/estimatedactivityerror.js.map +1 -0
- package/models/components/fulfillment.d.ts +21 -0
- package/models/components/fulfillment.d.ts.map +1 -0
- package/models/components/fulfillment.js +62 -0
- package/models/components/fulfillment.js.map +1 -0
- package/models/components/fulfillmenterror.d.ts +19 -0
- package/models/components/fulfillmenterror.d.ts.map +1 -0
- package/models/components/{enrichedindustry.js → fulfillmenterror.js} +14 -18
- package/models/components/fulfillmenterror.js.map +1 -0
- package/models/components/fulfillmentmethod.d.ts +19 -0
- package/models/components/fulfillmentmethod.d.ts.map +1 -0
- package/models/components/fulfillmentmethod.js +56 -0
- package/models/components/fulfillmentmethod.js.map +1 -0
- package/models/components/fulfillmenttimeframe.d.ts +18 -0
- package/models/components/fulfillmenttimeframe.d.ts.map +1 -0
- package/models/components/fulfillmenttimeframe.js +55 -0
- package/models/components/fulfillmenttimeframe.js.map +1 -0
- package/models/components/geographicreach.d.ts +13 -0
- package/models/components/geographicreach.d.ts.map +1 -0
- package/models/components/geographicreach.js +50 -0
- package/models/components/geographicreach.js.map +1 -0
- package/models/components/guestprofile.d.ts +31 -0
- package/models/components/guestprofile.d.ts.map +1 -0
- package/models/components/guestprofile.js +63 -0
- package/models/components/guestprofile.js.map +1 -0
- package/models/components/index.d.ts +50 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +50 -1
- package/models/components/index.js.map +1 -1
- package/models/components/industrytaxonomy.d.ts +43 -0
- package/models/components/industrytaxonomy.d.ts.map +1 -0
- package/models/components/industrytaxonomy.js +66 -0
- package/models/components/industrytaxonomy.js.map +1 -0
- package/models/components/itemlistnextpage.d.ts +20 -0
- package/models/components/itemlistnextpage.d.ts.map +1 -0
- package/models/components/itemlistnextpage.js +58 -0
- package/models/components/itemlistnextpage.js.map +1 -0
- package/models/components/moneytransfer.d.ts +21 -0
- package/models/components/moneytransfer.d.ts.map +1 -0
- package/models/components/moneytransfer.js +62 -0
- package/models/components/moneytransfer.js.map +1 -0
- package/models/components/moneytransfererror.d.ts +21 -0
- package/models/components/moneytransfererror.d.ts.map +1 -0
- package/models/components/moneytransfererror.js +62 -0
- package/models/components/moneytransfererror.js.map +1 -0
- package/models/components/moneytransferpullfromcard.d.ts +18 -0
- package/models/components/moneytransferpullfromcard.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcard.js +59 -0
- package/models/components/moneytransferpullfromcard.js.map +1 -0
- package/models/components/moneytransferpullfromcarderror.d.ts +18 -0
- package/models/components/moneytransferpullfromcarderror.d.ts.map +1 -0
- package/models/components/moneytransferpullfromcarderror.js +59 -0
- package/models/components/moneytransferpullfromcarderror.js.map +1 -0
- package/models/components/moneytransferpushtocard.d.ts +18 -0
- package/models/components/moneytransferpushtocard.d.ts.map +1 -0
- package/models/components/moneytransferpushtocard.js +59 -0
- package/models/components/moneytransferpushtocard.js.map +1 -0
- package/models/components/moneytransferpushtocarderror.d.ts +18 -0
- package/models/components/moneytransferpushtocarderror.d.ts.map +1 -0
- package/models/components/moneytransferpushtocarderror.js +59 -0
- package/models/components/moneytransferpushtocarderror.js.map +1 -0
- package/models/components/monthlyvolumerange.d.ts +24 -0
- package/models/components/monthlyvolumerange.d.ts.map +1 -0
- package/models/components/monthlyvolumerange.js +58 -0
- package/models/components/monthlyvolumerange.js.map +1 -0
- package/models/components/pendinglitigation.d.ts +20 -0
- package/models/components/pendinglitigation.d.ts.map +1 -0
- package/models/components/pendinglitigation.js +57 -0
- package/models/components/pendinglitigation.js.map +1 -0
- package/models/components/profile.d.ts +6 -0
- package/models/components/profile.d.ts.map +1 -1
- package/models/components/profile.js +3 -0
- package/models/components/profile.js.map +1 -1
- package/models/components/refundpolicy.d.ts +19 -0
- package/models/components/refundpolicy.d.ts.map +1 -0
- package/models/components/refundpolicy.js +56 -0
- package/models/components/refundpolicy.js.map +1 -0
- package/models/components/requirementid.d.ts +54 -0
- package/models/components/requirementid.d.ts.map +1 -1
- package/models/components/requirementid.js +54 -0
- package/models/components/requirementid.js.map +1 -1
- package/models/components/sendfunds.d.ts +27 -0
- package/models/components/sendfunds.d.ts.map +1 -0
- package/models/components/sendfunds.js +68 -0
- package/models/components/sendfunds.js.map +1 -0
- package/models/components/sendfundsach.d.ts +18 -0
- package/models/components/sendfundsach.d.ts.map +1 -0
- package/models/components/sendfundsach.js +59 -0
- package/models/components/sendfundsach.js.map +1 -0
- package/models/components/sendfundsacherror.d.ts +18 -0
- package/models/components/sendfundsacherror.d.ts.map +1 -0
- package/models/components/sendfundsacherror.js +59 -0
- package/models/components/sendfundsacherror.js.map +1 -0
- package/models/components/sendfundserror.d.ts +27 -0
- package/models/components/sendfundserror.d.ts.map +1 -0
- package/models/components/sendfundserror.js +68 -0
- package/models/components/sendfundserror.js.map +1 -0
- package/models/components/sendfundsinstantbank.d.ts +18 -0
- package/models/components/sendfundsinstantbank.d.ts.map +1 -0
- package/models/components/sendfundsinstantbank.js +59 -0
- package/models/components/sendfundsinstantbank.js.map +1 -0
- package/models/components/sendfundsinstantbankerror.d.ts +18 -0
- package/models/components/sendfundsinstantbankerror.d.ts.map +1 -0
- package/models/components/sendfundsinstantbankerror.js +59 -0
- package/models/components/sendfundsinstantbankerror.js.map +1 -0
- package/models/components/sendfundspushtocard.d.ts +18 -0
- package/models/components/sendfundspushtocard.d.ts.map +1 -0
- package/models/components/sendfundspushtocard.js +59 -0
- package/models/components/sendfundspushtocard.js.map +1 -0
- package/models/components/sendfundspushtocarderror.d.ts +18 -0
- package/models/components/sendfundspushtocarderror.d.ts.map +1 -0
- package/models/components/sendfundspushtocarderror.js +59 -0
- package/models/components/sendfundspushtocarderror.js.map +1 -0
- package/models/components/sendfundsrtp.d.ts +18 -0
- package/models/components/sendfundsrtp.d.ts.map +1 -0
- package/models/components/sendfundsrtp.js +59 -0
- package/models/components/sendfundsrtp.js.map +1 -0
- package/models/components/sendfundsrtperror.d.ts +18 -0
- package/models/components/sendfundsrtperror.d.ts.map +1 -0
- package/models/components/sendfundsrtperror.js +59 -0
- package/models/components/sendfundsrtperror.js.map +1 -0
- package/models/components/submissionintent.d.ts +12 -0
- package/models/components/submissionintent.d.ts.map +1 -0
- package/models/components/submissionintent.js +49 -0
- package/models/components/submissionintent.js.map +1 -0
- package/models/components/ticket.d.ts +37 -0
- package/models/components/ticket.d.ts.map +1 -0
- package/models/components/ticket.js +80 -0
- package/models/components/ticket.js.map +1 -0
- package/models/components/ticketcontact.d.ts +19 -0
- package/models/components/ticketcontact.d.ts.map +1 -0
- package/models/components/ticketcontact.js +60 -0
- package/models/components/ticketcontact.js.map +1 -0
- package/models/components/ticketmessage.d.ts +21 -0
- package/models/components/ticketmessage.d.ts.map +1 -0
- package/models/components/ticketmessage.js +62 -0
- package/models/components/ticketmessage.js.map +1 -0
- package/models/components/underwriting.d.ts +35 -14
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +36 -14
- package/models/components/underwriting.js.map +1 -1
- package/models/components/updateticket.d.ts +21 -0
- package/models/components/updateticket.d.ts.map +1 -0
- package/models/components/updateticket.js +59 -0
- package/models/components/updateticket.js.map +1 -0
- package/models/components/updateticketstatus.d.ts +11 -0
- package/models/components/updateticketstatus.d.ts.map +1 -0
- package/models/components/updateticketstatus.js +48 -0
- package/models/components/updateticketstatus.js.map +1 -0
- package/models/components/upsertunderwriting.d.ts +39 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -0
- package/models/components/upsertunderwriting.js +81 -0
- package/models/components/upsertunderwriting.js.map +1 -0
- package/models/components/volumesharebycustomertype.d.ts +21 -0
- package/models/components/volumesharebycustomertype.d.ts.map +1 -0
- package/models/components/volumesharebycustomertype.js +62 -0
- package/models/components/volumesharebycustomertype.js.map +1 -0
- package/models/components/volumesharebycustomertypeerror.d.ts +21 -0
- package/models/components/volumesharebycustomertypeerror.d.ts.map +1 -0
- package/models/components/volumesharebycustomertypeerror.js +62 -0
- package/models/components/volumesharebycustomertypeerror.js.map +1 -0
- package/models/errors/createticketerror.d.ts +36 -0
- package/models/errors/createticketerror.d.ts.map +1 -0
- package/models/errors/createticketerror.js +90 -0
- package/models/errors/createticketerror.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updateticketerror.d.ts +24 -0
- package/models/errors/updateticketerror.d.ts.map +1 -0
- package/models/errors/updateticketerror.js +75 -0
- package/models/errors/updateticketerror.js.map +1 -0
- package/models/errors/upsertunderwritingerror.d.ts +64 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -0
- package/models/errors/upsertunderwritingerror.js +143 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -0
- package/models/operations/createticket.d.ts +66 -0
- package/models/operations/createticket.d.ts.map +1 -0
- package/models/operations/createticket.js +122 -0
- package/models/operations/createticket.js.map +1 -0
- package/models/operations/getticket.d.ts +66 -0
- package/models/operations/getticket.d.ts.map +1 -0
- package/models/operations/getticket.js +114 -0
- package/models/operations/getticket.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccounts.d.ts +1 -1
- package/models/operations/listaccounts.d.ts.map +1 -1
- package/models/operations/listaccounts.js +2 -2
- package/models/operations/listaccounts.js.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.js +2 -2
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
- package/models/operations/listticketmessages.d.ts +66 -0
- package/models/operations/listticketmessages.d.ts.map +1 -0
- package/models/operations/listticketmessages.js +114 -0
- package/models/operations/listticketmessages.js.map +1 -0
- package/models/operations/listtickets.d.ts +90 -0
- package/models/operations/listtickets.d.ts.map +1 -0
- package/models/operations/listtickets.js +138 -0
- package/models/operations/listtickets.js.map +1 -0
- package/models/operations/saveunderwriting.d.ts +66 -0
- package/models/operations/saveunderwriting.d.ts.map +1 -0
- package/models/operations/saveunderwriting.js +122 -0
- package/models/operations/saveunderwriting.js.map +1 -0
- package/models/operations/updateticket.d.ts +68 -0
- package/models/operations/updateticket.d.ts.map +1 -0
- package/models/operations/updateticket.js +124 -0
- package/models/operations/updateticket.js.map +1 -0
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/support.d.ts +55 -0
- package/sdk/support.d.ts.map +1 -0
- package/sdk/support.js +77 -0
- package/sdk/support.js.map +1 -0
- package/sdk/underwriting.d.ts +9 -0
- package/sdk/underwriting.d.ts.map +1 -1
- package/sdk/underwriting.js +12 -0
- package/sdk/underwriting.js.map +1 -1
- package/src/funcs/supportCreateTicket.ts +204 -0
- package/src/funcs/supportGetTicket.ts +188 -0
- package/src/funcs/supportListTicketMessages.ts +188 -0
- package/src/funcs/supportListTickets.ts +190 -0
- package/src/funcs/supportUpdateTicket.ts +210 -0
- package/src/funcs/underwritingSave.ts +207 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/supportCreateTicket.ts +41 -0
- package/src/mcp-server/tools/supportGetTicket.ts +41 -0
- package/src/mcp-server/tools/supportListTicketMessages.ts +41 -0
- package/src/mcp-server/tools/supportListTickets.ts +41 -0
- package/src/mcp-server/tools/supportUpdateTicket.ts +41 -0
- package/src/mcp-server/tools/underwritingSave.ts +40 -0
- package/src/models/components/accounttype.ts +1 -0
- package/src/models/components/bankaccountholdertype.ts +1 -0
- package/src/models/components/businesspresence.ts +25 -0
- package/src/models/components/capabilityid.ts +11 -0
- package/src/models/components/cardacceptancemethods.ts +71 -0
- package/src/models/components/cardacceptancemethodserror.ts +59 -0
- package/src/models/components/collectfunds.ts +63 -0
- package/src/models/components/collectfundsach.ts +55 -0
- package/src/models/components/collectfundsacherror.ts +57 -0
- package/src/models/components/collectfundscardpayments.ts +93 -0
- package/src/models/components/collectfundscardpaymentserror.ts +87 -0
- package/src/models/components/collectfundserror.ts +67 -0
- package/src/models/components/createaccount.ts +8 -11
- package/src/models/components/createaccounttype.ts +21 -0
- package/src/models/components/createticket.ts +72 -0
- package/src/models/components/createticketcontacterror.ts +55 -0
- package/src/models/components/enrichedindustries.ts +9 -9
- package/src/models/components/estimatedactivity.ts +67 -0
- package/src/models/components/estimatedactivityerror.ts +59 -0
- package/src/models/components/fulfillment.ts +61 -0
- package/src/models/components/fulfillmenterror.ts +55 -0
- package/src/models/components/fulfillmentmethod.ts +28 -0
- package/src/models/components/fulfillmenttimeframe.ts +27 -0
- package/src/models/components/geographicreach.ts +22 -0
- package/src/models/components/guestprofile.ts +70 -0
- package/src/models/components/index.ts +50 -1
- package/src/models/components/industrytaxonomy.ts +85 -0
- package/src/models/components/itemlistnextpage.ts +54 -0
- package/src/models/components/moneytransfer.ts +63 -0
- package/src/models/components/moneytransfererror.ts +67 -0
- package/src/models/components/moneytransferpullfromcard.ts +57 -0
- package/src/models/components/moneytransferpullfromcarderror.ts +59 -0
- package/src/models/components/moneytransferpushtocard.ts +57 -0
- package/src/models/components/moneytransferpushtocarderror.ts +59 -0
- package/src/models/components/monthlyvolumerange.ts +33 -0
- package/src/models/components/pendinglitigation.ts +30 -0
- package/src/models/components/profile.ts +13 -0
- package/src/models/components/refundpolicy.ts +26 -0
- package/src/models/components/requirementid.ts +103 -0
- package/src/models/components/sendfunds.ts +83 -0
- package/src/models/components/sendfundsach.ts +53 -0
- package/src/models/components/sendfundsacherror.ts +57 -0
- package/src/models/components/sendfundserror.ts +83 -0
- package/src/models/components/sendfundsinstantbank.ts +57 -0
- package/src/models/components/sendfundsinstantbankerror.ts +57 -0
- package/src/models/components/sendfundspushtocard.ts +57 -0
- package/src/models/components/sendfundspushtocarderror.ts +57 -0
- package/src/models/components/sendfundsrtp.ts +53 -0
- package/src/models/components/sendfundsrtperror.ts +57 -0
- package/src/models/components/submissionintent.ts +21 -0
- package/src/models/components/ticket.ts +98 -0
- package/src/models/components/ticketcontact.ts +51 -0
- package/src/models/components/ticketmessage.ts +55 -0
- package/src/models/components/underwriting.ts +96 -28
- package/src/models/components/updateticket.ts +55 -0
- package/src/models/components/updateticketstatus.ts +20 -0
- package/src/models/components/upsertunderwriting.ts +124 -0
- package/src/models/components/volumesharebycustomertype.ts +59 -0
- package/src/models/components/volumesharebycustomertypeerror.ts +61 -0
- package/src/models/errors/createticketerror.ts +89 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/updateticketerror.ts +66 -0
- package/src/models/errors/upsertunderwritingerror.ts +178 -0
- package/src/models/operations/createticket.ts +187 -0
- package/src/models/operations/getticket.ts +179 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listaccounts.ts +3 -3
- package/src/models/operations/listconnectedaccountsforaccount.ts +3 -3
- package/src/models/operations/listticketmessages.ts +179 -0
- package/src/models/operations/listtickets.ts +241 -0
- package/src/models/operations/saveunderwriting.ts +187 -0
- package/src/models/operations/updateticket.ts +191 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/support.ts +114 -0
- package/src/sdk/underwriting.ts +20 -0
- package/models/components/enrichedindustry.d.ts +0 -35
- package/models/components/enrichedindustry.d.ts.map +0 -1
- package/models/components/enrichedindustry.js.map +0 -1
- package/src/models/components/enrichedindustry.ts +0 -75
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CardAcceptanceMethods,
|
|
11
|
+
CardAcceptanceMethods$inboundSchema,
|
|
12
|
+
CardAcceptanceMethods$Outbound,
|
|
13
|
+
CardAcceptanceMethods$outboundSchema,
|
|
14
|
+
} from "./cardacceptancemethods.js";
|
|
15
|
+
import {
|
|
16
|
+
EstimatedActivity,
|
|
17
|
+
EstimatedActivity$inboundSchema,
|
|
18
|
+
EstimatedActivity$Outbound,
|
|
19
|
+
EstimatedActivity$outboundSchema,
|
|
20
|
+
} from "./estimatedactivity.js";
|
|
21
|
+
import {
|
|
22
|
+
Fulfillment,
|
|
23
|
+
Fulfillment$inboundSchema,
|
|
24
|
+
Fulfillment$Outbound,
|
|
25
|
+
Fulfillment$outboundSchema,
|
|
26
|
+
} from "./fulfillment.js";
|
|
27
|
+
import {
|
|
28
|
+
RefundPolicy,
|
|
29
|
+
RefundPolicy$inboundSchema,
|
|
30
|
+
RefundPolicy$outboundSchema,
|
|
31
|
+
} from "./refundpolicy.js";
|
|
32
|
+
|
|
33
|
+
export type CollectFundsCardPayments = {
|
|
34
|
+
/**
|
|
35
|
+
* Describes the distribution of card transactions by payment method.
|
|
36
|
+
*/
|
|
37
|
+
cardAcceptanceMethods?: CardAcceptanceMethods | undefined;
|
|
38
|
+
currentlyAcceptsCards?: boolean | undefined;
|
|
39
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
40
|
+
fulfillment?: Fulfillment | undefined;
|
|
41
|
+
refundPolicy?: RefundPolicy | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CollectFundsCardPayments$inboundSchema: z.ZodType<
|
|
46
|
+
CollectFundsCardPayments,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
cardAcceptanceMethods: CardAcceptanceMethods$inboundSchema.optional(),
|
|
51
|
+
currentlyAcceptsCards: z.boolean().optional(),
|
|
52
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
53
|
+
fulfillment: Fulfillment$inboundSchema.optional(),
|
|
54
|
+
refundPolicy: RefundPolicy$inboundSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type CollectFundsCardPayments$Outbound = {
|
|
58
|
+
cardAcceptanceMethods?: CardAcceptanceMethods$Outbound | undefined;
|
|
59
|
+
currentlyAcceptsCards?: boolean | undefined;
|
|
60
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
61
|
+
fulfillment?: Fulfillment$Outbound | undefined;
|
|
62
|
+
refundPolicy?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const CollectFundsCardPayments$outboundSchema: z.ZodType<
|
|
67
|
+
CollectFundsCardPayments$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
CollectFundsCardPayments
|
|
70
|
+
> = z.object({
|
|
71
|
+
cardAcceptanceMethods: CardAcceptanceMethods$outboundSchema.optional(),
|
|
72
|
+
currentlyAcceptsCards: z.boolean().optional(),
|
|
73
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
74
|
+
fulfillment: Fulfillment$outboundSchema.optional(),
|
|
75
|
+
refundPolicy: RefundPolicy$outboundSchema.optional(),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export function collectFundsCardPaymentsToJSON(
|
|
79
|
+
collectFundsCardPayments: CollectFundsCardPayments,
|
|
80
|
+
): string {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
CollectFundsCardPayments$outboundSchema.parse(collectFundsCardPayments),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
export function collectFundsCardPaymentsFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<CollectFundsCardPayments, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => CollectFundsCardPayments$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'CollectFundsCardPayments' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CardAcceptanceMethodsError,
|
|
11
|
+
CardAcceptanceMethodsError$inboundSchema,
|
|
12
|
+
CardAcceptanceMethodsError$Outbound,
|
|
13
|
+
CardAcceptanceMethodsError$outboundSchema,
|
|
14
|
+
} from "./cardacceptancemethodserror.js";
|
|
15
|
+
import {
|
|
16
|
+
EstimatedActivityError,
|
|
17
|
+
EstimatedActivityError$inboundSchema,
|
|
18
|
+
EstimatedActivityError$Outbound,
|
|
19
|
+
EstimatedActivityError$outboundSchema,
|
|
20
|
+
} from "./estimatedactivityerror.js";
|
|
21
|
+
import {
|
|
22
|
+
FulfillmentError,
|
|
23
|
+
FulfillmentError$inboundSchema,
|
|
24
|
+
FulfillmentError$Outbound,
|
|
25
|
+
FulfillmentError$outboundSchema,
|
|
26
|
+
} from "./fulfillmenterror.js";
|
|
27
|
+
|
|
28
|
+
export type CollectFundsCardPaymentsError = {
|
|
29
|
+
cardAcceptanceMethods?: CardAcceptanceMethodsError | undefined;
|
|
30
|
+
currentlyAcceptsCards?: string | undefined;
|
|
31
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
32
|
+
fulfillment?: FulfillmentError | undefined;
|
|
33
|
+
refundPolicy?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CollectFundsCardPaymentsError$inboundSchema: z.ZodType<
|
|
38
|
+
CollectFundsCardPaymentsError,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
cardAcceptanceMethods: CardAcceptanceMethodsError$inboundSchema.optional(),
|
|
43
|
+
currentlyAcceptsCards: z.string().optional(),
|
|
44
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
45
|
+
fulfillment: FulfillmentError$inboundSchema.optional(),
|
|
46
|
+
refundPolicy: z.string().optional(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type CollectFundsCardPaymentsError$Outbound = {
|
|
50
|
+
cardAcceptanceMethods?: CardAcceptanceMethodsError$Outbound | undefined;
|
|
51
|
+
currentlyAcceptsCards?: string | undefined;
|
|
52
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
53
|
+
fulfillment?: FulfillmentError$Outbound | undefined;
|
|
54
|
+
refundPolicy?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CollectFundsCardPaymentsError$outboundSchema: z.ZodType<
|
|
59
|
+
CollectFundsCardPaymentsError$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
CollectFundsCardPaymentsError
|
|
62
|
+
> = z.object({
|
|
63
|
+
cardAcceptanceMethods: CardAcceptanceMethodsError$outboundSchema.optional(),
|
|
64
|
+
currentlyAcceptsCards: z.string().optional(),
|
|
65
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
66
|
+
fulfillment: FulfillmentError$outboundSchema.optional(),
|
|
67
|
+
refundPolicy: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function collectFundsCardPaymentsErrorToJSON(
|
|
71
|
+
collectFundsCardPaymentsError: CollectFundsCardPaymentsError,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
CollectFundsCardPaymentsError$outboundSchema.parse(
|
|
75
|
+
collectFundsCardPaymentsError,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
export function collectFundsCardPaymentsErrorFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<CollectFundsCardPaymentsError, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => CollectFundsCardPaymentsError$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'CollectFundsCardPaymentsError' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CollectFundsAchError,
|
|
11
|
+
CollectFundsAchError$inboundSchema,
|
|
12
|
+
CollectFundsAchError$Outbound,
|
|
13
|
+
CollectFundsAchError$outboundSchema,
|
|
14
|
+
} from "./collectfundsacherror.js";
|
|
15
|
+
import {
|
|
16
|
+
CollectFundsCardPaymentsError,
|
|
17
|
+
CollectFundsCardPaymentsError$inboundSchema,
|
|
18
|
+
CollectFundsCardPaymentsError$Outbound,
|
|
19
|
+
CollectFundsCardPaymentsError$outboundSchema,
|
|
20
|
+
} from "./collectfundscardpaymentserror.js";
|
|
21
|
+
|
|
22
|
+
export type CollectFundsError = {
|
|
23
|
+
ach?: CollectFundsAchError | undefined;
|
|
24
|
+
cardPayments?: CollectFundsCardPaymentsError | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CollectFundsError$inboundSchema: z.ZodType<
|
|
29
|
+
CollectFundsError,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
ach: CollectFundsAchError$inboundSchema.optional(),
|
|
34
|
+
cardPayments: CollectFundsCardPaymentsError$inboundSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type CollectFundsError$Outbound = {
|
|
38
|
+
ach?: CollectFundsAchError$Outbound | undefined;
|
|
39
|
+
cardPayments?: CollectFundsCardPaymentsError$Outbound | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CollectFundsError$outboundSchema: z.ZodType<
|
|
44
|
+
CollectFundsError$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
CollectFundsError
|
|
47
|
+
> = z.object({
|
|
48
|
+
ach: CollectFundsAchError$outboundSchema.optional(),
|
|
49
|
+
cardPayments: CollectFundsCardPaymentsError$outboundSchema.optional(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function collectFundsErrorToJSON(
|
|
53
|
+
collectFundsError: CollectFundsError,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
CollectFundsError$outboundSchema.parse(collectFundsError),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function collectFundsErrorFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<CollectFundsError, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => CollectFundsError$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'CollectFundsError' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -6,16 +6,16 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
AccountType,
|
|
11
|
-
AccountType$inboundSchema,
|
|
12
|
-
AccountType$outboundSchema,
|
|
13
|
-
} from "./accounttype.js";
|
|
14
9
|
import {
|
|
15
10
|
CapabilityID,
|
|
16
11
|
CapabilityID$inboundSchema,
|
|
17
12
|
CapabilityID$outboundSchema,
|
|
18
13
|
} from "./capabilityid.js";
|
|
14
|
+
import {
|
|
15
|
+
CreateAccountType,
|
|
16
|
+
CreateAccountType$inboundSchema,
|
|
17
|
+
CreateAccountType$outboundSchema,
|
|
18
|
+
} from "./createaccounttype.js";
|
|
19
19
|
import {
|
|
20
20
|
CreateProfile,
|
|
21
21
|
CreateProfile$inboundSchema,
|
|
@@ -43,10 +43,7 @@ import {
|
|
|
43
43
|
} from "./termsofservicepayload.js";
|
|
44
44
|
|
|
45
45
|
export type CreateAccount = {
|
|
46
|
-
|
|
47
|
-
* The type of entity represented by this account.
|
|
48
|
-
*/
|
|
49
|
-
accountType: AccountType;
|
|
46
|
+
accountType: CreateAccountType;
|
|
50
47
|
profile: CreateProfile;
|
|
51
48
|
/**
|
|
52
49
|
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
@@ -81,7 +78,7 @@ export const CreateAccount$inboundSchema: z.ZodType<
|
|
|
81
78
|
z.ZodTypeDef,
|
|
82
79
|
unknown
|
|
83
80
|
> = z.object({
|
|
84
|
-
accountType:
|
|
81
|
+
accountType: CreateAccountType$inboundSchema,
|
|
85
82
|
profile: CreateProfile$inboundSchema,
|
|
86
83
|
metadata: z.record(z.string()).optional(),
|
|
87
84
|
termsOfService: TermsOfServicePayload$inboundSchema.optional(),
|
|
@@ -110,7 +107,7 @@ export const CreateAccount$outboundSchema: z.ZodType<
|
|
|
110
107
|
z.ZodTypeDef,
|
|
111
108
|
CreateAccount
|
|
112
109
|
> = z.object({
|
|
113
|
-
accountType:
|
|
110
|
+
accountType: CreateAccountType$outboundSchema,
|
|
114
111
|
profile: CreateProfile$outboundSchema,
|
|
115
112
|
metadata: z.record(z.string()).optional(),
|
|
116
113
|
termsOfService: TermsOfServicePayload$outboundSchema.optional(),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const CreateAccountType = {
|
|
9
|
+
Individual: "individual",
|
|
10
|
+
Business: "business",
|
|
11
|
+
} as const;
|
|
12
|
+
export type CreateAccountType = ClosedEnum<typeof CreateAccountType>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const CreateAccountType$inboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof CreateAccountType
|
|
17
|
+
> = z.nativeEnum(CreateAccountType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CreateAccountType$outboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof CreateAccountType
|
|
21
|
+
> = CreateAccountType$inboundSchema;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
TicketContact,
|
|
11
|
+
TicketContact$inboundSchema,
|
|
12
|
+
TicketContact$Outbound,
|
|
13
|
+
TicketContact$outboundSchema,
|
|
14
|
+
} from "./ticketcontact.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Request to create a new support ticket.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateTicket = {
|
|
20
|
+
title: string;
|
|
21
|
+
body: string;
|
|
22
|
+
author?: string | undefined;
|
|
23
|
+
contact: TicketContact;
|
|
24
|
+
foreignID?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CreateTicket$inboundSchema: z.ZodType<
|
|
29
|
+
CreateTicket,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
title: z.string(),
|
|
34
|
+
body: z.string(),
|
|
35
|
+
author: z.string().optional(),
|
|
36
|
+
contact: TicketContact$inboundSchema,
|
|
37
|
+
foreignID: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type CreateTicket$Outbound = {
|
|
41
|
+
title: string;
|
|
42
|
+
body: string;
|
|
43
|
+
author?: string | undefined;
|
|
44
|
+
contact: TicketContact$Outbound;
|
|
45
|
+
foreignID?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const CreateTicket$outboundSchema: z.ZodType<
|
|
50
|
+
CreateTicket$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
CreateTicket
|
|
53
|
+
> = z.object({
|
|
54
|
+
title: z.string(),
|
|
55
|
+
body: z.string(),
|
|
56
|
+
author: z.string().optional(),
|
|
57
|
+
contact: TicketContact$outboundSchema,
|
|
58
|
+
foreignID: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function createTicketToJSON(createTicket: CreateTicket): string {
|
|
62
|
+
return JSON.stringify(CreateTicket$outboundSchema.parse(createTicket));
|
|
63
|
+
}
|
|
64
|
+
export function createTicketFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CreateTicket, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => CreateTicket$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'CreateTicket' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CreateTicketContactError = {
|
|
11
|
+
email?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateTicketContactError$inboundSchema: z.ZodType<
|
|
17
|
+
CreateTicketContactError,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
email: z.string().optional(),
|
|
22
|
+
name: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type CreateTicketContactError$Outbound = {
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CreateTicketContactError$outboundSchema: z.ZodType<
|
|
32
|
+
CreateTicketContactError$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
CreateTicketContactError
|
|
35
|
+
> = z.object({
|
|
36
|
+
email: z.string().optional(),
|
|
37
|
+
name: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function createTicketContactErrorToJSON(
|
|
41
|
+
createTicketContactError: CreateTicketContactError,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
CreateTicketContactError$outboundSchema.parse(createTicketContactError),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export function createTicketContactErrorFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<CreateTicketContactError, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => CreateTicketContactError$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'CreateTicketContactError' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -7,14 +7,14 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
IndustryTaxonomy,
|
|
11
|
+
IndustryTaxonomy$inboundSchema,
|
|
12
|
+
IndustryTaxonomy$Outbound,
|
|
13
|
+
IndustryTaxonomy$outboundSchema,
|
|
14
|
+
} from "./industrytaxonomy.js";
|
|
15
15
|
|
|
16
16
|
export type EnrichedIndustries = {
|
|
17
|
-
industries: Array<
|
|
17
|
+
industries: Array<IndustryTaxonomy>;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
/** @internal */
|
|
@@ -23,11 +23,11 @@ export const EnrichedIndustries$inboundSchema: z.ZodType<
|
|
|
23
23
|
z.ZodTypeDef,
|
|
24
24
|
unknown
|
|
25
25
|
> = z.object({
|
|
26
|
-
industries: z.array(
|
|
26
|
+
industries: z.array(IndustryTaxonomy$inboundSchema),
|
|
27
27
|
});
|
|
28
28
|
/** @internal */
|
|
29
29
|
export type EnrichedIndustries$Outbound = {
|
|
30
|
-
industries: Array<
|
|
30
|
+
industries: Array<IndustryTaxonomy$Outbound>;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,7 +36,7 @@ export const EnrichedIndustries$outboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
EnrichedIndustries
|
|
38
38
|
> = z.object({
|
|
39
|
-
industries: z.array(
|
|
39
|
+
industries: z.array(IndustryTaxonomy$outboundSchema),
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
export function enrichedIndustriesToJSON(
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
MonthlyVolumeRange,
|
|
11
|
+
MonthlyVolumeRange$inboundSchema,
|
|
12
|
+
MonthlyVolumeRange$outboundSchema,
|
|
13
|
+
} from "./monthlyvolumerange.js";
|
|
14
|
+
|
|
15
|
+
export type EstimatedActivity = {
|
|
16
|
+
averageTransactionAmount?: number | undefined;
|
|
17
|
+
maximumTransactionAmount?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The low value in each range is included. The high value in each range is excluded.
|
|
20
|
+
*/
|
|
21
|
+
monthlyVolumeRange?: MonthlyVolumeRange | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const EstimatedActivity$inboundSchema: z.ZodType<
|
|
26
|
+
EstimatedActivity,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
averageTransactionAmount: z.number().int().optional(),
|
|
31
|
+
maximumTransactionAmount: z.number().int().optional(),
|
|
32
|
+
monthlyVolumeRange: MonthlyVolumeRange$inboundSchema.optional(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type EstimatedActivity$Outbound = {
|
|
36
|
+
averageTransactionAmount?: number | undefined;
|
|
37
|
+
maximumTransactionAmount?: number | undefined;
|
|
38
|
+
monthlyVolumeRange?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EstimatedActivity$outboundSchema: z.ZodType<
|
|
43
|
+
EstimatedActivity$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
EstimatedActivity
|
|
46
|
+
> = z.object({
|
|
47
|
+
averageTransactionAmount: z.number().int().optional(),
|
|
48
|
+
maximumTransactionAmount: z.number().int().optional(),
|
|
49
|
+
monthlyVolumeRange: MonthlyVolumeRange$outboundSchema.optional(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function estimatedActivityToJSON(
|
|
53
|
+
estimatedActivity: EstimatedActivity,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
EstimatedActivity$outboundSchema.parse(estimatedActivity),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function estimatedActivityFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<EstimatedActivity, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => EstimatedActivity$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'EstimatedActivity' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type EstimatedActivityError = {
|
|
11
|
+
averageTransactionAmount?: string | undefined;
|
|
12
|
+
maximumTransactionAmount?: string | undefined;
|
|
13
|
+
monthlyVolumeRange?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const EstimatedActivityError$inboundSchema: z.ZodType<
|
|
18
|
+
EstimatedActivityError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
averageTransactionAmount: z.string().optional(),
|
|
23
|
+
maximumTransactionAmount: z.string().optional(),
|
|
24
|
+
monthlyVolumeRange: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type EstimatedActivityError$Outbound = {
|
|
28
|
+
averageTransactionAmount?: string | undefined;
|
|
29
|
+
maximumTransactionAmount?: string | undefined;
|
|
30
|
+
monthlyVolumeRange?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const EstimatedActivityError$outboundSchema: z.ZodType<
|
|
35
|
+
EstimatedActivityError$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
EstimatedActivityError
|
|
38
|
+
> = z.object({
|
|
39
|
+
averageTransactionAmount: z.string().optional(),
|
|
40
|
+
maximumTransactionAmount: z.string().optional(),
|
|
41
|
+
monthlyVolumeRange: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function estimatedActivityErrorToJSON(
|
|
45
|
+
estimatedActivityError: EstimatedActivityError,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
EstimatedActivityError$outboundSchema.parse(estimatedActivityError),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export function estimatedActivityErrorFromJSON(
|
|
52
|
+
jsonString: string,
|
|
53
|
+
): SafeParseResult<EstimatedActivityError, SDKValidationError> {
|
|
54
|
+
return safeParse(
|
|
55
|
+
jsonString,
|
|
56
|
+
(x) => EstimatedActivityError$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'EstimatedActivityError' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
FulfillmentMethod,
|
|
11
|
+
FulfillmentMethod$inboundSchema,
|
|
12
|
+
FulfillmentMethod$outboundSchema,
|
|
13
|
+
} from "./fulfillmentmethod.js";
|
|
14
|
+
import {
|
|
15
|
+
FulfillmentTimeframe,
|
|
16
|
+
FulfillmentTimeframe$inboundSchema,
|
|
17
|
+
FulfillmentTimeframe$outboundSchema,
|
|
18
|
+
} from "./fulfillmenttimeframe.js";
|
|
19
|
+
|
|
20
|
+
export type Fulfillment = {
|
|
21
|
+
method?: FulfillmentMethod | undefined;
|
|
22
|
+
timeframe?: FulfillmentTimeframe | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Fulfillment$inboundSchema: z.ZodType<
|
|
27
|
+
Fulfillment,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
method: FulfillmentMethod$inboundSchema.optional(),
|
|
32
|
+
timeframe: FulfillmentTimeframe$inboundSchema.optional(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type Fulfillment$Outbound = {
|
|
36
|
+
method?: string | undefined;
|
|
37
|
+
timeframe?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Fulfillment$outboundSchema: z.ZodType<
|
|
42
|
+
Fulfillment$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
Fulfillment
|
|
45
|
+
> = z.object({
|
|
46
|
+
method: FulfillmentMethod$outboundSchema.optional(),
|
|
47
|
+
timeframe: FulfillmentTimeframe$outboundSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function fulfillmentToJSON(fulfillment: Fulfillment): string {
|
|
51
|
+
return JSON.stringify(Fulfillment$outboundSchema.parse(fulfillment));
|
|
52
|
+
}
|
|
53
|
+
export function fulfillmentFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<Fulfillment, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => Fulfillment$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'Fulfillment' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|