@moovio/sdk 25.4.0 → 25.10.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/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +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,83 @@
|
|
|
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
|
+
SendFundsAchError,
|
|
11
|
+
SendFundsAchError$inboundSchema,
|
|
12
|
+
SendFundsAchError$Outbound,
|
|
13
|
+
SendFundsAchError$outboundSchema,
|
|
14
|
+
} from "./sendfundsacherror.js";
|
|
15
|
+
import {
|
|
16
|
+
SendFundsInstantBankError,
|
|
17
|
+
SendFundsInstantBankError$inboundSchema,
|
|
18
|
+
SendFundsInstantBankError$Outbound,
|
|
19
|
+
SendFundsInstantBankError$outboundSchema,
|
|
20
|
+
} from "./sendfundsinstantbankerror.js";
|
|
21
|
+
import {
|
|
22
|
+
SendFundsPushToCardError,
|
|
23
|
+
SendFundsPushToCardError$inboundSchema,
|
|
24
|
+
SendFundsPushToCardError$Outbound,
|
|
25
|
+
SendFundsPushToCardError$outboundSchema,
|
|
26
|
+
} from "./sendfundspushtocarderror.js";
|
|
27
|
+
import {
|
|
28
|
+
SendFundsRtpError,
|
|
29
|
+
SendFundsRtpError$inboundSchema,
|
|
30
|
+
SendFundsRtpError$Outbound,
|
|
31
|
+
SendFundsRtpError$outboundSchema,
|
|
32
|
+
} from "./sendfundsrtperror.js";
|
|
33
|
+
|
|
34
|
+
export type SendFundsError = {
|
|
35
|
+
ach?: SendFundsAchError | undefined;
|
|
36
|
+
pushToCard?: SendFundsPushToCardError | undefined;
|
|
37
|
+
rtp?: SendFundsRtpError | undefined;
|
|
38
|
+
instantBank?: SendFundsInstantBankError | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const SendFundsError$inboundSchema: z.ZodType<
|
|
43
|
+
SendFundsError,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
ach: SendFundsAchError$inboundSchema.optional(),
|
|
48
|
+
pushToCard: SendFundsPushToCardError$inboundSchema.optional(),
|
|
49
|
+
rtp: SendFundsRtpError$inboundSchema.optional(),
|
|
50
|
+
instantBank: SendFundsInstantBankError$inboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type SendFundsError$Outbound = {
|
|
54
|
+
ach?: SendFundsAchError$Outbound | undefined;
|
|
55
|
+
pushToCard?: SendFundsPushToCardError$Outbound | undefined;
|
|
56
|
+
rtp?: SendFundsRtpError$Outbound | undefined;
|
|
57
|
+
instantBank?: SendFundsInstantBankError$Outbound | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const SendFundsError$outboundSchema: z.ZodType<
|
|
62
|
+
SendFundsError$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
SendFundsError
|
|
65
|
+
> = z.object({
|
|
66
|
+
ach: SendFundsAchError$outboundSchema.optional(),
|
|
67
|
+
pushToCard: SendFundsPushToCardError$outboundSchema.optional(),
|
|
68
|
+
rtp: SendFundsRtpError$outboundSchema.optional(),
|
|
69
|
+
instantBank: SendFundsInstantBankError$outboundSchema.optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function sendFundsErrorToJSON(sendFundsError: SendFundsError): string {
|
|
73
|
+
return JSON.stringify(SendFundsError$outboundSchema.parse(sendFundsError));
|
|
74
|
+
}
|
|
75
|
+
export function sendFundsErrorFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<SendFundsError, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => SendFundsError$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'SendFundsError' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsInstantBank = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsInstantBank$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsInstantBank,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsInstantBank$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsInstantBank$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsInstantBank$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsInstantBank
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsInstantBankToJSON(
|
|
43
|
+
sendFundsInstantBank: SendFundsInstantBank,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SendFundsInstantBank$outboundSchema.parse(sendFundsInstantBank),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function sendFundsInstantBankFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SendFundsInstantBank, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SendFundsInstantBank$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SendFundsInstantBank' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsInstantBankError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsInstantBankError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsInstantBankError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsInstantBankError$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsInstantBankError$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsInstantBankError$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsInstantBankError
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsInstantBankErrorToJSON(
|
|
43
|
+
sendFundsInstantBankError: SendFundsInstantBankError,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SendFundsInstantBankError$outboundSchema.parse(sendFundsInstantBankError),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function sendFundsInstantBankErrorFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SendFundsInstantBankError, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SendFundsInstantBankError$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SendFundsInstantBankError' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsPushToCard = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsPushToCard$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsPushToCard,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsPushToCard$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsPushToCard$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsPushToCard$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsPushToCard
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsPushToCardToJSON(
|
|
43
|
+
sendFundsPushToCard: SendFundsPushToCard,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SendFundsPushToCard$outboundSchema.parse(sendFundsPushToCard),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function sendFundsPushToCardFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SendFundsPushToCard, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SendFundsPushToCard$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SendFundsPushToCard' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsPushToCardError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsPushToCardError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsPushToCardError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsPushToCardError$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsPushToCardError$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsPushToCardError$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsPushToCardError
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsPushToCardErrorToJSON(
|
|
43
|
+
sendFundsPushToCardError: SendFundsPushToCardError,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SendFundsPushToCardError$outboundSchema.parse(sendFundsPushToCardError),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function sendFundsPushToCardErrorFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SendFundsPushToCardError, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SendFundsPushToCardError$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SendFundsPushToCardError' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
EstimatedActivity,
|
|
11
|
+
EstimatedActivity$inboundSchema,
|
|
12
|
+
EstimatedActivity$Outbound,
|
|
13
|
+
EstimatedActivity$outboundSchema,
|
|
14
|
+
} from "./estimatedactivity.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsRtp = {
|
|
17
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsRtp$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsRtp,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivity$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsRtp$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsRtp$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsRtp$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsRtp
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsRtpToJSON(sendFundsRtp: SendFundsRtp): string {
|
|
43
|
+
return JSON.stringify(SendFundsRtp$outboundSchema.parse(sendFundsRtp));
|
|
44
|
+
}
|
|
45
|
+
export function sendFundsRtpFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<SendFundsRtp, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => SendFundsRtp$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'SendFundsRtp' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
EstimatedActivityError,
|
|
11
|
+
EstimatedActivityError$inboundSchema,
|
|
12
|
+
EstimatedActivityError$Outbound,
|
|
13
|
+
EstimatedActivityError$outboundSchema,
|
|
14
|
+
} from "./estimatedactivityerror.js";
|
|
15
|
+
|
|
16
|
+
export type SendFundsRtpError = {
|
|
17
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendFundsRtpError$inboundSchema: z.ZodType<
|
|
22
|
+
SendFundsRtpError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
estimatedActivity: EstimatedActivityError$inboundSchema.optional(),
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SendFundsRtpError$Outbound = {
|
|
30
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SendFundsRtpError$outboundSchema: z.ZodType<
|
|
35
|
+
SendFundsRtpError$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SendFundsRtpError
|
|
38
|
+
> = z.object({
|
|
39
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function sendFundsRtpErrorToJSON(
|
|
43
|
+
sendFundsRtpError: SendFundsRtpError,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SendFundsRtpError$outboundSchema.parse(sendFundsRtpError),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function sendFundsRtpErrorFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SendFundsRtpError, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SendFundsRtpError$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SendFundsRtpError' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -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 SubmissionIntent = {
|
|
9
|
+
Wait: "wait",
|
|
10
|
+
Submit: "submit",
|
|
11
|
+
} as const;
|
|
12
|
+
export type SubmissionIntent = ClosedEnum<typeof SubmissionIntent>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const SubmissionIntent$inboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof SubmissionIntent
|
|
17
|
+
> = z.nativeEnum(SubmissionIntent);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const SubmissionIntent$outboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof SubmissionIntent
|
|
21
|
+
> = SubmissionIntent$inboundSchema;
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
import {
|
|
16
|
+
TicketStatus,
|
|
17
|
+
TicketStatus$inboundSchema,
|
|
18
|
+
TicketStatus$outboundSchema,
|
|
19
|
+
} from "./ticketstatus.js";
|
|
20
|
+
|
|
21
|
+
export type Ticket = {
|
|
22
|
+
ticketID: string;
|
|
23
|
+
number: number;
|
|
24
|
+
title: string;
|
|
25
|
+
contact: TicketContact;
|
|
26
|
+
status: TicketStatus;
|
|
27
|
+
createdOn: Date;
|
|
28
|
+
updatedOn: Date;
|
|
29
|
+
latestMessageOn?: Date | undefined;
|
|
30
|
+
closedOn?: Date | undefined;
|
|
31
|
+
foreignID?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const Ticket$inboundSchema: z.ZodType<Ticket, z.ZodTypeDef, unknown> = z
|
|
36
|
+
.object({
|
|
37
|
+
ticketID: z.string(),
|
|
38
|
+
number: z.number().int(),
|
|
39
|
+
title: z.string(),
|
|
40
|
+
contact: TicketContact$inboundSchema,
|
|
41
|
+
status: TicketStatus$inboundSchema,
|
|
42
|
+
createdOn: z.string().datetime({ offset: true }).transform(v =>
|
|
43
|
+
new Date(v)
|
|
44
|
+
),
|
|
45
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v =>
|
|
46
|
+
new Date(v)
|
|
47
|
+
),
|
|
48
|
+
latestMessageOn: z.string().datetime({ offset: true }).transform(v =>
|
|
49
|
+
new Date(v)
|
|
50
|
+
).optional(),
|
|
51
|
+
closedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
52
|
+
.optional(),
|
|
53
|
+
foreignID: z.string().optional(),
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type Ticket$Outbound = {
|
|
57
|
+
ticketID: string;
|
|
58
|
+
number: number;
|
|
59
|
+
title: string;
|
|
60
|
+
contact: TicketContact$Outbound;
|
|
61
|
+
status: string;
|
|
62
|
+
createdOn: string;
|
|
63
|
+
updatedOn: string;
|
|
64
|
+
latestMessageOn?: string | undefined;
|
|
65
|
+
closedOn?: string | undefined;
|
|
66
|
+
foreignID?: string | undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const Ticket$outboundSchema: z.ZodType<
|
|
71
|
+
Ticket$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
Ticket
|
|
74
|
+
> = z.object({
|
|
75
|
+
ticketID: z.string(),
|
|
76
|
+
number: z.number().int(),
|
|
77
|
+
title: z.string(),
|
|
78
|
+
contact: TicketContact$outboundSchema,
|
|
79
|
+
status: TicketStatus$outboundSchema,
|
|
80
|
+
createdOn: z.date().transform(v => v.toISOString()),
|
|
81
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
82
|
+
latestMessageOn: z.date().transform(v => v.toISOString()).optional(),
|
|
83
|
+
closedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
84
|
+
foreignID: z.string().optional(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function ticketToJSON(ticket: Ticket): string {
|
|
88
|
+
return JSON.stringify(Ticket$outboundSchema.parse(ticket));
|
|
89
|
+
}
|
|
90
|
+
export function ticketFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<Ticket, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => Ticket$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'Ticket' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 TicketContact = {
|
|
11
|
+
email: string;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const TicketContact$inboundSchema: z.ZodType<
|
|
17
|
+
TicketContact,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
email: z.string(),
|
|
22
|
+
name: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type TicketContact$Outbound = {
|
|
26
|
+
email: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const TicketContact$outboundSchema: z.ZodType<
|
|
32
|
+
TicketContact$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
TicketContact
|
|
35
|
+
> = z.object({
|
|
36
|
+
email: z.string(),
|
|
37
|
+
name: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function ticketContactToJSON(ticketContact: TicketContact): string {
|
|
41
|
+
return JSON.stringify(TicketContact$outboundSchema.parse(ticketContact));
|
|
42
|
+
}
|
|
43
|
+
export function ticketContactFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<TicketContact, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => TicketContact$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'TicketContact' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -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 TicketMessage = {
|
|
11
|
+
author: string;
|
|
12
|
+
body: string;
|
|
13
|
+
sentOn: Date;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const TicketMessage$inboundSchema: z.ZodType<
|
|
18
|
+
TicketMessage,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
author: z.string(),
|
|
23
|
+
body: z.string(),
|
|
24
|
+
sentOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type TicketMessage$Outbound = {
|
|
28
|
+
author: string;
|
|
29
|
+
body: string;
|
|
30
|
+
sentOn: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const TicketMessage$outboundSchema: z.ZodType<
|
|
35
|
+
TicketMessage$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
TicketMessage
|
|
38
|
+
> = z.object({
|
|
39
|
+
author: z.string(),
|
|
40
|
+
body: z.string(),
|
|
41
|
+
sentOn: z.date().transform(v => v.toISOString()),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function ticketMessageToJSON(ticketMessage: TicketMessage): string {
|
|
45
|
+
return JSON.stringify(TicketMessage$outboundSchema.parse(ticketMessage));
|
|
46
|
+
}
|
|
47
|
+
export function ticketMessageFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<TicketMessage, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => TicketMessage$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'TicketMessage' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|