syllable-sdk 0.1.0-alpha.3 → 0.1.0-alpha.4
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 +11 -5
- package/docs/sdks/sessions/README.md +234 -0
- package/funcs/sessionsGenerateSessionRecordingUrls.d.ts +14 -0
- package/funcs/sessionsGenerateSessionRecordingUrls.d.ts.map +1 -0
- package/funcs/sessionsGenerateSessionRecordingUrls.js +102 -0
- package/funcs/sessionsGenerateSessionRecordingUrls.js.map +1 -0
- package/funcs/sessionsGetById.d.ts +14 -0
- package/funcs/sessionsGetById.d.ts.map +1 -0
- package/funcs/sessionsGetById.js +102 -0
- package/funcs/sessionsGetById.js.map +1 -0
- package/funcs/sessionsSessionRecordingStream.d.ts +13 -0
- package/funcs/sessionsSessionRecordingStream.d.ts.map +1 -0
- package/funcs/sessionsSessionRecordingStream.js +100 -0
- package/funcs/sessionsSessionRecordingStream.js.map +1 -0
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +6 -6
- package/lib/config.js.map +1 -1
- package/lib/matchers.js +1 -1
- package/lib/matchers.js.map +1 -1
- package/models/components/agent.d.ts +6 -0
- package/models/components/agent.d.ts.map +1 -1
- package/models/components/agent.js +17 -0
- package/models/components/agent.js.map +1 -1
- package/models/components/agentcreate.d.ts +6 -0
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +17 -0
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agenttooldefaults.d.ts +4 -0
- package/models/components/agenttooldefaults.d.ts.map +1 -1
- package/models/components/agenttooldefaults.js +9 -0
- package/models/components/agenttooldefaults.js.map +1 -1
- package/models/components/agenttoolfielddefault.d.ts +4 -0
- package/models/components/agenttoolfielddefault.d.ts.map +1 -1
- package/models/components/agenttoolfielddefault.js +9 -0
- package/models/components/agenttoolfielddefault.js.map +1 -1
- package/models/components/availabletarget.d.ts +4 -0
- package/models/components/availabletarget.d.ts.map +1 -1
- package/models/components/availabletarget.js +9 -0
- package/models/components/availabletarget.js.map +1 -1
- package/models/components/channel.d.ts +7 -0
- package/models/components/channel.d.ts.map +1 -1
- package/models/components/channel.js +9 -0
- package/models/components/channel.js.map +1 -1
- package/models/components/channeltarget.d.ts +4 -0
- package/models/components/channeltarget.d.ts.map +1 -1
- package/models/components/channeltarget.js +9 -0
- package/models/components/channeltarget.js.map +1 -1
- package/models/components/channeltargetcreaterequest.d.ts +4 -0
- package/models/components/channeltargetcreaterequest.d.ts.map +1 -1
- package/models/components/channeltargetcreaterequest.js +9 -0
- package/models/components/channeltargetcreaterequest.js.map +1 -1
- package/models/components/conversation.d.ts +4 -0
- package/models/components/conversation.d.ts.map +1 -1
- package/models/components/conversation.js +9 -0
- package/models/components/conversation.js.map +1 -1
- package/models/components/custommessage.d.ts +4 -0
- package/models/components/custommessage.d.ts.map +1 -1
- package/models/components/custommessage.js +9 -0
- package/models/components/custommessage.js.map +1 -1
- package/models/components/custommessagecreate.d.ts +4 -0
- package/models/components/custommessagecreate.d.ts.map +1 -1
- package/models/components/custommessagecreate.js +9 -0
- package/models/components/custommessagecreate.js.map +1 -1
- package/models/components/event.d.ts +6 -0
- package/models/components/event.d.ts.map +1 -1
- package/models/components/event.js +17 -0
- package/models/components/event.js.map +1 -1
- package/models/components/index.d.ts +1 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -2
- package/models/components/index.js.map +1 -1
- package/models/components/listresponseagent.d.ts +4 -0
- package/models/components/listresponseagent.d.ts.map +1 -1
- package/models/components/listresponseagent.js +9 -0
- package/models/components/listresponseagent.js.map +1 -1
- package/models/components/listresponseavailabletarget.d.ts +4 -0
- package/models/components/listresponseavailabletarget.d.ts.map +1 -1
- package/models/components/listresponseavailabletarget.js +9 -0
- package/models/components/listresponseavailabletarget.js.map +1 -1
- package/models/components/listresponsechannel.d.ts +4 -0
- package/models/components/listresponsechannel.d.ts.map +1 -1
- package/models/components/listresponsechannel.js +9 -0
- package/models/components/listresponsechannel.js.map +1 -1
- package/models/components/listresponsechanneltarget.d.ts +4 -0
- package/models/components/listresponsechanneltarget.d.ts.map +1 -1
- package/models/components/listresponsechanneltarget.js +9 -0
- package/models/components/listresponsechanneltarget.js.map +1 -1
- package/models/components/listresponseconversation.d.ts +4 -0
- package/models/components/listresponseconversation.d.ts.map +1 -1
- package/models/components/listresponseconversation.js +9 -0
- package/models/components/listresponseconversation.js.map +1 -1
- package/models/components/listresponsecustommessage.d.ts +4 -0
- package/models/components/listresponsecustommessage.d.ts.map +1 -1
- package/models/components/listresponsecustommessage.js +9 -0
- package/models/components/listresponsecustommessage.js.map +1 -1
- package/models/components/listresponseevent.d.ts +4 -0
- package/models/components/listresponseevent.d.ts.map +1 -1
- package/models/components/listresponseevent.js +9 -0
- package/models/components/listresponseevent.js.map +1 -1
- package/models/components/listresponseprompt.d.ts +4 -0
- package/models/components/listresponseprompt.d.ts.map +1 -1
- package/models/components/listresponseprompt.js +9 -0
- package/models/components/listresponseprompt.js.map +1 -1
- package/models/components/listresponsesession.d.ts +4 -0
- package/models/components/listresponsesession.d.ts.map +1 -1
- package/models/components/listresponsesession.js +9 -0
- package/models/components/listresponsesession.js.map +1 -1
- package/models/components/listresponsesessionlabel.d.ts +4 -0
- package/models/components/listresponsesessionlabel.d.ts.map +1 -1
- package/models/components/listresponsesessionlabel.js +9 -0
- package/models/components/listresponsesessionlabel.js.map +1 -1
- package/models/components/listresponsetool.d.ts +4 -0
- package/models/components/listresponsetool.d.ts.map +1 -1
- package/models/components/listresponsetool.js +9 -0
- package/models/components/listresponsetool.js.map +1 -1
- package/models/components/llmconfig.d.ts +38 -3
- package/models/components/llmconfig.d.ts.map +1 -1
- package/models/components/llmconfig.js +35 -4
- package/models/components/llmconfig.js.map +1 -1
- package/models/components/prompt.d.ts +7 -0
- package/models/components/prompt.d.ts.map +1 -1
- package/models/components/prompt.js +9 -0
- package/models/components/prompt.js.map +1 -1
- package/models/components/promptcreate.d.ts +7 -0
- package/models/components/promptcreate.d.ts.map +1 -1
- package/models/components/promptcreate.js +9 -0
- package/models/components/promptcreate.js.map +1 -1
- package/models/components/security.d.ts +4 -0
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +9 -0
- package/models/components/security.js.map +1 -1
- package/models/components/session.d.ts +4 -0
- package/models/components/session.d.ts.map +1 -1
- package/models/components/session.js +9 -0
- package/models/components/session.js.map +1 -1
- package/models/components/sessionaction.d.ts +4 -0
- package/models/components/sessionaction.d.ts.map +1 -1
- package/models/components/sessionaction.js +9 -0
- package/models/components/sessionaction.js.map +1 -1
- package/models/components/sessionlabel.d.ts +4 -0
- package/models/components/sessionlabel.d.ts.map +1 -1
- package/models/components/sessionlabel.js +9 -0
- package/models/components/sessionlabel.js.map +1 -1
- package/models/components/sessionlabelcreate.d.ts +4 -0
- package/models/components/sessionlabelcreate.d.ts.map +1 -1
- package/models/components/sessionlabelcreate.js +9 -0
- package/models/components/sessionlabelcreate.js.map +1 -1
- package/models/components/sessionrecordingresponse.d.ts +33 -0
- package/models/components/sessionrecordingresponse.d.ts.map +1 -0
- package/models/components/sessionrecordingresponse.js +72 -0
- package/models/components/sessionrecordingresponse.js.map +1 -0
- package/models/components/sessiontext.d.ts +4 -0
- package/models/components/sessiontext.d.ts.map +1 -1
- package/models/components/sessiontext.js +9 -0
- package/models/components/sessiontext.js.map +1 -1
- package/models/components/sessiontranscriptionresponse.d.ts +4 -0
- package/models/components/sessiontranscriptionresponse.d.ts.map +1 -1
- package/models/components/sessiontranscriptionresponse.js +9 -0
- package/models/components/sessiontranscriptionresponse.js.map +1 -1
- package/models/components/testmessage.d.ts +4 -0
- package/models/components/testmessage.d.ts.map +1 -1
- package/models/components/testmessage.js +9 -0
- package/models/components/testmessage.js.map +1 -1
- package/models/components/testmessageresponse.d.ts +6 -0
- package/models/components/testmessageresponse.d.ts.map +1 -1
- package/models/components/testmessageresponse.js +17 -0
- package/models/components/testmessageresponse.js.map +1 -1
- package/models/components/tool.d.ts +6 -0
- package/models/components/tool.d.ts.map +1 -1
- package/models/components/tool.js +17 -0
- package/models/components/tool.js.map +1 -1
- package/models/components/tooldetailresponse.d.ts +4 -0
- package/models/components/tooldetailresponse.d.ts.map +1 -1
- package/models/components/tooldetailresponse.js +9 -0
- package/models/components/tooldetailresponse.js.map +1 -1
- package/models/components/validationerror.d.ts +6 -0
- package/models/components/validationerror.d.ts.map +1 -1
- package/models/components/validationerror.js +17 -0
- package/models/components/validationerror.js.map +1 -1
- package/models/operations/agentdelete.d.ts +4 -0
- package/models/operations/agentdelete.d.ts.map +1 -1
- package/models/operations/agentdelete.js +9 -0
- package/models/operations/agentdelete.js.map +1 -1
- package/models/operations/agentgetbyid.d.ts +4 -0
- package/models/operations/agentgetbyid.d.ts.map +1 -1
- package/models/operations/agentgetbyid.js +9 -0
- package/models/operations/agentgetbyid.js.map +1 -1
- package/models/operations/agentlist.d.ts +81 -2
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js +61 -5
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +60 -2
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js +56 -5
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +63 -2
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js +54 -5
- package/models/operations/channelslist.js.map +1 -1
- package/models/operations/channeltargetscreate.d.ts +4 -0
- package/models/operations/channeltargetscreate.d.ts.map +1 -1
- package/models/operations/channeltargetscreate.js +9 -0
- package/models/operations/channeltargetscreate.js.map +1 -1
- package/models/operations/channeltargetsdelete.d.ts +4 -0
- package/models/operations/channeltargetsdelete.d.ts.map +1 -1
- package/models/operations/channeltargetsdelete.js +9 -0
- package/models/operations/channeltargetsdelete.js.map +1 -1
- package/models/operations/channeltargetsgetbyid.d.ts +4 -0
- package/models/operations/channeltargetsgetbyid.d.ts.map +1 -1
- package/models/operations/channeltargetsgetbyid.js +9 -0
- package/models/operations/channeltargetsgetbyid.js.map +1 -1
- package/models/operations/channeltargetslist.d.ts +75 -2
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js +61 -5
- package/models/operations/channeltargetslist.js.map +1 -1
- package/models/operations/channeltargetsupdate.d.ts +4 -0
- package/models/operations/channeltargetsupdate.d.ts.map +1 -1
- package/models/operations/channeltargetsupdate.js +9 -0
- package/models/operations/channeltargetsupdate.js.map +1 -1
- package/models/operations/conversationslist.d.ts +81 -2
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js +63 -5
- package/models/operations/conversationslist.js.map +1 -1
- package/models/operations/custommessagegetbyid.d.ts +4 -0
- package/models/operations/custommessagegetbyid.d.ts.map +1 -1
- package/models/operations/custommessagegetbyid.js +9 -0
- package/models/operations/custommessagegetbyid.js.map +1 -1
- package/models/operations/custommessagesdelete.d.ts +4 -0
- package/models/operations/custommessagesdelete.d.ts.map +1 -1
- package/models/operations/custommessagesdelete.js +9 -0
- package/models/operations/custommessagesdelete.js.map +1 -1
- package/models/operations/custommessageslist.d.ts +60 -2
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js +56 -5
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +81 -2
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js +62 -5
- package/models/operations/eventslist.js.map +1 -1
- package/models/operations/generatesessionrecordingurls.d.ts +29 -0
- package/models/operations/generatesessionrecordingurls.d.ts.map +1 -0
- package/models/operations/generatesessionrecordingurls.js +68 -0
- package/models/operations/generatesessionrecordingurls.js.map +1 -0
- package/models/operations/getdailycallvolumebyhour.d.ts +4 -0
- package/models/operations/getdailycallvolumebyhour.d.ts.map +1 -1
- package/models/operations/getdailycallvolumebyhour.js +11 -0
- package/models/operations/getdailycallvolumebyhour.js.map +1 -1
- package/models/operations/getmonthlycallvolumebyday.d.ts +4 -0
- package/models/operations/getmonthlycallvolumebyday.d.ts.map +1 -1
- package/models/operations/getmonthlycallvolumebyday.js +11 -0
- package/models/operations/getmonthlycallvolumebyday.js.map +1 -1
- package/models/operations/getmonthlycallvolumebyweek.d.ts +4 -0
- package/models/operations/getmonthlycallvolumebyweek.d.ts.map +1 -1
- package/models/operations/getmonthlycallvolumebyweek.js +11 -0
- package/models/operations/getmonthlycallvolumebyweek.js.map +1 -1
- package/models/operations/getsessionagents.d.ts +4 -0
- package/models/operations/getsessionagents.d.ts.map +1 -1
- package/models/operations/getsessionagents.js +9 -0
- package/models/operations/getsessionagents.js.map +1 -1
- package/models/operations/getsessionsummary.d.ts +6 -0
- package/models/operations/getsessionsummary.d.ts.map +1 -1
- package/models/operations/getsessionsummary.js +17 -0
- package/models/operations/getsessionsummary.js.map +1 -1
- package/models/operations/gettotalcallvolumebyhour.d.ts +4 -0
- package/models/operations/gettotalcallvolumebyhour.d.ts.map +1 -1
- package/models/operations/gettotalcallvolumebyhour.js +11 -0
- package/models/operations/gettotalcallvolumebyhour.js.map +1 -1
- package/models/operations/getweeklycallvolumebyweekday.d.ts +4 -0
- package/models/operations/getweeklycallvolumebyweekday.d.ts.map +1 -1
- package/models/operations/getweeklycallvolumebyweekday.js +11 -0
- package/models/operations/getweeklycallvolumebyweekday.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/promptsdelete.d.ts +4 -0
- package/models/operations/promptsdelete.d.ts.map +1 -1
- package/models/operations/promptsdelete.js +9 -0
- package/models/operations/promptsdelete.js.map +1 -1
- package/models/operations/promptsgetbyid.d.ts +4 -0
- package/models/operations/promptsgetbyid.d.ts.map +1 -1
- package/models/operations/promptsgetbyid.js +9 -0
- package/models/operations/promptsgetbyid.js.map +1 -1
- package/models/operations/promptslist.d.ts +66 -2
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js +57 -5
- package/models/operations/promptslist.js.map +1 -1
- package/models/operations/sessiongetbyid.d.ts +29 -0
- package/models/operations/sessiongetbyid.d.ts.map +1 -0
- package/models/operations/sessiongetbyid.js +68 -0
- package/models/operations/sessiongetbyid.js.map +1 -0
- package/models/operations/sessionlabelgetbyid.d.ts +4 -0
- package/models/operations/sessionlabelgetbyid.d.ts.map +1 -1
- package/models/operations/sessionlabelgetbyid.js +9 -0
- package/models/operations/sessionlabelgetbyid.js.map +1 -1
- package/models/operations/sessionlabelslist.d.ts +72 -2
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js +60 -5
- package/models/operations/sessionlabelslist.js.map +1 -1
- package/models/operations/sessionrecordingstream.d.ts +29 -0
- package/models/operations/sessionrecordingstream.d.ts.map +1 -0
- package/models/operations/sessionrecordingstream.js +59 -0
- package/models/operations/sessionrecordingstream.js.map +1 -0
- package/models/operations/sessionslist.d.ts +96 -2
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js +67 -5
- package/models/operations/sessionslist.js.map +1 -1
- package/models/operations/sessiontranscriptgetbyid.d.ts +4 -0
- package/models/operations/sessiontranscriptgetbyid.d.ts.map +1 -1
- package/models/operations/sessiontranscriptgetbyid.js +9 -0
- package/models/operations/sessiontranscriptgetbyid.js.map +1 -1
- package/models/operations/toolgetbyname.d.ts +4 -0
- package/models/operations/toolgetbyname.d.ts.map +1 -1
- package/models/operations/toolgetbyname.js +9 -0
- package/models/operations/toolgetbyname.js.map +1 -1
- package/models/operations/toollist.d.ts +66 -2
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js +57 -5
- package/models/operations/toollist.js.map +1 -1
- package/models/operations/totalcallvolumebyweekday.d.ts +4 -0
- package/models/operations/totalcallvolumebyweekday.d.ts.map +1 -1
- package/models/operations/totalcallvolumebyweekday.js +11 -0
- package/models/operations/totalcallvolumebyweekday.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sessions.d.ts +12 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +21 -0
- package/sdk/sessions.js.map +1 -1
- package/src/funcs/sessionsGenerateSessionRecordingUrls.ts +140 -0
- package/src/funcs/sessionsGetById.ts +135 -0
- package/src/funcs/sessionsSessionRecordingStream.ts +134 -0
- package/src/lib/config.ts +6 -6
- package/src/lib/matchers.ts +1 -1
- package/src/models/components/agent.ts +31 -0
- package/src/models/components/agentcreate.ts +35 -0
- package/src/models/components/agenttooldefaults.ts +21 -0
- package/src/models/components/agenttoolfielddefault.ts +21 -0
- package/src/models/components/availabletarget.ts +19 -0
- package/src/models/components/channel.ts +20 -0
- package/src/models/components/channeltarget.ts +17 -0
- package/src/models/components/channeltargetcreaterequest.ts +21 -0
- package/src/models/components/conversation.ts +17 -0
- package/src/models/components/custommessage.ts +17 -0
- package/src/models/components/custommessagecreate.ts +21 -0
- package/src/models/components/event.ts +31 -0
- package/src/models/components/index.ts +1 -2
- package/src/models/components/listresponseagent.ts +21 -0
- package/src/models/components/listresponseavailabletarget.ts +23 -0
- package/src/models/components/listresponsechannel.ts +21 -0
- package/src/models/components/listresponsechanneltarget.ts +21 -0
- package/src/models/components/listresponseconversation.ts +21 -0
- package/src/models/components/listresponsecustommessage.ts +21 -0
- package/src/models/components/listresponseevent.ts +21 -0
- package/src/models/components/listresponseprompt.ts +21 -0
- package/src/models/components/listresponsesession.ts +21 -0
- package/src/models/components/listresponsesessionlabel.ts +21 -0
- package/src/models/components/listresponsetool.ts +21 -0
- package/src/models/components/llmconfig.ts +53 -9
- package/src/models/components/prompt.ts +20 -0
- package/src/models/components/promptcreate.ts +20 -0
- package/src/models/components/security.ts +17 -0
- package/src/models/components/session.ts +17 -0
- package/src/models/components/sessionaction.ts +17 -0
- package/src/models/components/sessionlabel.ts +17 -0
- package/src/models/components/sessionlabelcreate.ts +21 -0
- package/src/models/components/sessionrecordingresponse.ts +83 -0
- package/src/models/components/sessiontext.ts +17 -0
- package/src/models/components/sessiontranscriptionresponse.ts +23 -0
- package/src/models/components/testmessage.ts +17 -0
- package/src/models/components/testmessageresponse.ts +35 -0
- package/src/models/components/tool.ts +31 -0
- package/src/models/components/tooldetailresponse.ts +21 -0
- package/src/models/components/validationerror.ts +33 -0
- package/src/models/operations/agentdelete.ts +21 -0
- package/src/models/operations/agentgetbyid.ts +21 -0
- package/src/models/operations/agentlist.ts +88 -6
- package/src/models/operations/availabletargets.ts +92 -6
- package/src/models/operations/channelslist.ts +86 -6
- package/src/models/operations/channeltargetscreate.ts +23 -0
- package/src/models/operations/channeltargetsdelete.ts +23 -0
- package/src/models/operations/channeltargetsgetbyid.ts +23 -0
- package/src/models/operations/channeltargetslist.ts +98 -6
- package/src/models/operations/channeltargetsupdate.ts +23 -0
- package/src/models/operations/conversationslist.ts +99 -6
- package/src/models/operations/custommessagegetbyid.ts +23 -0
- package/src/models/operations/custommessagesdelete.ts +23 -0
- package/src/models/operations/custommessageslist.ts +93 -6
- package/src/models/operations/eventslist.ts +99 -6
- package/src/models/operations/generatesessionrecordingurls.ts +80 -0
- package/src/models/operations/getdailycallvolumebyhour.ts +28 -0
- package/src/models/operations/getmonthlycallvolumebyday.ts +28 -0
- package/src/models/operations/getmonthlycallvolumebyweek.ts +28 -0
- package/src/models/operations/getsessionagents.ts +30 -0
- package/src/models/operations/getsessionsummary.ts +48 -0
- package/src/models/operations/gettotalcallvolumebyhour.ts +28 -0
- package/src/models/operations/getweeklycallvolumebyweekday.ts +28 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/promptsdelete.ts +21 -0
- package/src/models/operations/promptsgetbyid.ts +21 -0
- package/src/models/operations/promptslist.ts +94 -6
- package/src/models/operations/sessiongetbyid.ts +75 -0
- package/src/models/operations/sessionlabelgetbyid.ts +21 -0
- package/src/models/operations/sessionlabelslist.ts +96 -6
- package/src/models/operations/sessionrecordingstream.ts +68 -0
- package/src/models/operations/sessionslist.ts +104 -6
- package/src/models/operations/sessiontranscriptgetbyid.ts +23 -0
- package/src/models/operations/toolgetbyname.ts +21 -0
- package/src/models/operations/toollist.ts +90 -6
- package/src/models/operations/totalcallvolumebyweekday.ts +28 -0
- package/src/sdk/sessions.ts +45 -0
- package/models/components/orderbydirection.d.ts +0 -28
- package/models/components/orderbydirection.d.ts.map +0 -1
- package/models/components/orderbydirection.js +0 -50
- package/models/components/orderbydirection.js.map +0 -1
- package/models/components/provider.d.ts +0 -34
- package/models/components/provider.d.ts.map +0 -1
- package/models/components/provider.js +0 -54
- package/models/components/provider.js.map +0 -1
- package/src/models/components/orderbydirection.ts +0 -33
- package/src/models/components/provider.ts +0 -37
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Successful Response
|
|
@@ -40,3 +43,30 @@ export namespace GetSessionAgentsResponseGetSessionAgents$ {
|
|
|
40
43
|
/** @deprecated use `GetSessionAgentsResponseGetSessionAgents$Outbound` instead. */
|
|
41
44
|
export type Outbound = GetSessionAgentsResponseGetSessionAgents$Outbound;
|
|
42
45
|
}
|
|
46
|
+
|
|
47
|
+
export function getSessionAgentsResponseGetSessionAgentsToJSON(
|
|
48
|
+
getSessionAgentsResponseGetSessionAgents:
|
|
49
|
+
GetSessionAgentsResponseGetSessionAgents,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
GetSessionAgentsResponseGetSessionAgents$outboundSchema.parse(
|
|
53
|
+
getSessionAgentsResponseGetSessionAgents,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function getSessionAgentsResponseGetSessionAgentsFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<
|
|
61
|
+
GetSessionAgentsResponseGetSessionAgents,
|
|
62
|
+
SDKValidationError
|
|
63
|
+
> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) =>
|
|
67
|
+
GetSessionAgentsResponseGetSessionAgents$inboundSchema.parse(
|
|
68
|
+
JSON.parse(x),
|
|
69
|
+
),
|
|
70
|
+
`Failed to parse 'GetSessionAgentsResponseGetSessionAgents' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
export type GetSessionSummaryRequest = {
|
|
9
12
|
page?: number | undefined;
|
|
@@ -84,6 +87,24 @@ export namespace GetSessionSummaryRequest$ {
|
|
|
84
87
|
export type Outbound = GetSessionSummaryRequest$Outbound;
|
|
85
88
|
}
|
|
86
89
|
|
|
90
|
+
export function getSessionSummaryRequestToJSON(
|
|
91
|
+
getSessionSummaryRequest: GetSessionSummaryRequest,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
GetSessionSummaryRequest$outboundSchema.parse(getSessionSummaryRequest),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function getSessionSummaryRequestFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<GetSessionSummaryRequest, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => GetSessionSummaryRequest$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'GetSessionSummaryRequest' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
87
108
|
/** @internal */
|
|
88
109
|
export const GetSessionSummaryResponseGetSessionSummary$inboundSchema:
|
|
89
110
|
z.ZodType<GetSessionSummaryResponseGetSessionSummary, z.ZodTypeDef, unknown> =
|
|
@@ -114,3 +135,30 @@ export namespace GetSessionSummaryResponseGetSessionSummary$ {
|
|
|
114
135
|
/** @deprecated use `GetSessionSummaryResponseGetSessionSummary$Outbound` instead. */
|
|
115
136
|
export type Outbound = GetSessionSummaryResponseGetSessionSummary$Outbound;
|
|
116
137
|
}
|
|
138
|
+
|
|
139
|
+
export function getSessionSummaryResponseGetSessionSummaryToJSON(
|
|
140
|
+
getSessionSummaryResponseGetSessionSummary:
|
|
141
|
+
GetSessionSummaryResponseGetSessionSummary,
|
|
142
|
+
): string {
|
|
143
|
+
return JSON.stringify(
|
|
144
|
+
GetSessionSummaryResponseGetSessionSummary$outboundSchema.parse(
|
|
145
|
+
getSessionSummaryResponseGetSessionSummary,
|
|
146
|
+
),
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function getSessionSummaryResponseGetSessionSummaryFromJSON(
|
|
151
|
+
jsonString: string,
|
|
152
|
+
): SafeParseResult<
|
|
153
|
+
GetSessionSummaryResponseGetSessionSummary,
|
|
154
|
+
SDKValidationError
|
|
155
|
+
> {
|
|
156
|
+
return safeParse(
|
|
157
|
+
jsonString,
|
|
158
|
+
(x) =>
|
|
159
|
+
GetSessionSummaryResponseGetSessionSummary$inboundSchema.parse(
|
|
160
|
+
JSON.parse(x),
|
|
161
|
+
),
|
|
162
|
+
`Failed to parse 'GetSessionSummaryResponseGetSessionSummary' from JSON`,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Successful Response
|
|
@@ -44,3 +47,28 @@ export namespace GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$ {
|
|
|
44
47
|
export type Outbound =
|
|
45
48
|
GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$Outbound;
|
|
46
49
|
}
|
|
50
|
+
|
|
51
|
+
export function getTotalCallVolumeByHourResponseGetTotalCallVolumeByHourToJSON(
|
|
52
|
+
getTotalCallVolumeByHourResponseGetTotalCallVolumeByHour:
|
|
53
|
+
GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$outboundSchema
|
|
57
|
+
.parse(getTotalCallVolumeByHourResponseGetTotalCallVolumeByHour),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function getTotalCallVolumeByHourResponseGetTotalCallVolumeByHourFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<
|
|
64
|
+
GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour,
|
|
65
|
+
SDKValidationError
|
|
66
|
+
> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) =>
|
|
70
|
+
GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$inboundSchema
|
|
71
|
+
.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Successful Response
|
|
@@ -45,3 +48,28 @@ export namespace GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekda
|
|
|
45
48
|
export type Outbound =
|
|
46
49
|
GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$Outbound;
|
|
47
50
|
}
|
|
51
|
+
|
|
52
|
+
export function getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekdayToJSON(
|
|
53
|
+
getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday:
|
|
54
|
+
GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$outboundSchema
|
|
58
|
+
.parse(getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekdayFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<
|
|
65
|
+
GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday,
|
|
66
|
+
SDKValidationError
|
|
67
|
+
> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) =>
|
|
71
|
+
GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$inboundSchema
|
|
72
|
+
.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./custommessagegetbyid.js";
|
|
|
17
17
|
export * from "./custommessagesdelete.js";
|
|
18
18
|
export * from "./custommessageslist.js";
|
|
19
19
|
export * from "./eventslist.js";
|
|
20
|
+
export * from "./generatesessionrecordingurls.js";
|
|
20
21
|
export * from "./getdailycallvolumebyhour.js";
|
|
21
22
|
export * from "./getmonthlycallvolumebyday.js";
|
|
22
23
|
export * from "./getmonthlycallvolumebyweek.js";
|
|
@@ -27,8 +28,10 @@ export * from "./getweeklycallvolumebyweekday.js";
|
|
|
27
28
|
export * from "./promptsdelete.js";
|
|
28
29
|
export * from "./promptsgetbyid.js";
|
|
29
30
|
export * from "./promptslist.js";
|
|
31
|
+
export * from "./sessiongetbyid.js";
|
|
30
32
|
export * from "./sessionlabelgetbyid.js";
|
|
31
33
|
export * from "./sessionlabelslist.js";
|
|
34
|
+
export * from "./sessionrecordingstream.js";
|
|
32
35
|
export * from "./sessionslist.js";
|
|
33
36
|
export * from "./sessiontranscriptgetbyid.js";
|
|
34
37
|
export * from "./toolgetbyname.js";
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
export type PromptsDeleteRequest = {
|
|
9
12
|
promptId: number;
|
|
@@ -56,3 +59,21 @@ export namespace PromptsDeleteRequest$ {
|
|
|
56
59
|
/** @deprecated use `PromptsDeleteRequest$Outbound` instead. */
|
|
57
60
|
export type Outbound = PromptsDeleteRequest$Outbound;
|
|
58
61
|
}
|
|
62
|
+
|
|
63
|
+
export function promptsDeleteRequestToJSON(
|
|
64
|
+
promptsDeleteRequest: PromptsDeleteRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
PromptsDeleteRequest$outboundSchema.parse(promptsDeleteRequest),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function promptsDeleteRequestFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<PromptsDeleteRequest, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => PromptsDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'PromptsDeleteRequest' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
export type PromptsGetByIdRequest = {
|
|
9
12
|
promptId: number;
|
|
@@ -52,3 +55,21 @@ export namespace PromptsGetByIdRequest$ {
|
|
|
52
55
|
/** @deprecated use `PromptsGetByIdRequest$Outbound` instead. */
|
|
53
56
|
export type Outbound = PromptsGetByIdRequest$Outbound;
|
|
54
57
|
}
|
|
58
|
+
|
|
59
|
+
export function promptsGetByIdRequestToJSON(
|
|
60
|
+
promptsGetByIdRequest: PromptsGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
PromptsGetByIdRequest$outboundSchema.parse(promptsGetByIdRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function promptsGetByIdRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<PromptsGetByIdRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => PromptsGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'PromptsGetByIdRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -4,20 +4,88 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
7
10
|
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const PromptsListQueryParamOrderBy = {
|
|
14
|
+
Id: "id",
|
|
15
|
+
Name: "name",
|
|
16
|
+
Context: "context",
|
|
17
|
+
Tools: "tools",
|
|
18
|
+
LlmConfig: "llm_config",
|
|
19
|
+
} as const;
|
|
20
|
+
export type PromptsListQueryParamOrderBy = ClosedEnum<
|
|
21
|
+
typeof PromptsListQueryParamOrderBy
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export const PromptsListQueryParamOrderByDirection = {
|
|
25
|
+
Asc: "asc",
|
|
26
|
+
Desc: "desc",
|
|
27
|
+
} as const;
|
|
28
|
+
export type PromptsListQueryParamOrderByDirection = ClosedEnum<
|
|
29
|
+
typeof PromptsListQueryParamOrderByDirection
|
|
30
|
+
>;
|
|
8
31
|
|
|
9
32
|
export type PromptsListRequest = {
|
|
10
33
|
page?: number | null | undefined;
|
|
11
34
|
limit?: number | undefined;
|
|
12
35
|
searchFields?: Array<components.PromptProperties> | undefined;
|
|
13
36
|
searchFieldValues?: Array<string> | undefined;
|
|
14
|
-
orderBy?:
|
|
15
|
-
orderByDirection?:
|
|
37
|
+
orderBy?: PromptsListQueryParamOrderBy | undefined;
|
|
38
|
+
orderByDirection?: PromptsListQueryParamOrderByDirection | undefined;
|
|
16
39
|
fields?: Array<components.PromptProperties> | null | undefined;
|
|
17
40
|
startDatetime?: string | null | undefined;
|
|
18
41
|
endDatetime?: string | null | undefined;
|
|
19
42
|
};
|
|
20
43
|
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const PromptsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof PromptsListQueryParamOrderBy
|
|
47
|
+
> = z.nativeEnum(PromptsListQueryParamOrderBy);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const PromptsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
51
|
+
typeof PromptsListQueryParamOrderBy
|
|
52
|
+
> = PromptsListQueryParamOrderBy$inboundSchema;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace PromptsListQueryParamOrderBy$ {
|
|
59
|
+
/** @deprecated use `PromptsListQueryParamOrderBy$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = PromptsListQueryParamOrderBy$inboundSchema;
|
|
61
|
+
/** @deprecated use `PromptsListQueryParamOrderBy$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = PromptsListQueryParamOrderBy$outboundSchema;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const PromptsListQueryParamOrderByDirection$inboundSchema:
|
|
67
|
+
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
68
|
+
PromptsListQueryParamOrderByDirection,
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const PromptsListQueryParamOrderByDirection$outboundSchema:
|
|
73
|
+
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> =
|
|
74
|
+
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace PromptsListQueryParamOrderByDirection$ {
|
|
81
|
+
/** @deprecated use `PromptsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema =
|
|
83
|
+
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
84
|
+
/** @deprecated use `PromptsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema =
|
|
86
|
+
PromptsListQueryParamOrderByDirection$outboundSchema;
|
|
87
|
+
}
|
|
88
|
+
|
|
21
89
|
/** @internal */
|
|
22
90
|
export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
23
91
|
PromptsListRequest,
|
|
@@ -28,8 +96,9 @@ export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
|
28
96
|
limit: z.number().int().default(25),
|
|
29
97
|
search_fields: z.array(components.PromptProperties$inboundSchema).optional(),
|
|
30
98
|
search_field_values: z.array(z.string()).optional(),
|
|
31
|
-
order_by:
|
|
32
|
-
order_by_direction:
|
|
99
|
+
order_by: PromptsListQueryParamOrderBy$inboundSchema.optional(),
|
|
100
|
+
order_by_direction: PromptsListQueryParamOrderByDirection$inboundSchema
|
|
101
|
+
.optional(),
|
|
33
102
|
fields: z.nullable(z.array(components.PromptProperties$inboundSchema))
|
|
34
103
|
.optional(),
|
|
35
104
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -68,8 +137,9 @@ export const PromptsListRequest$outboundSchema: z.ZodType<
|
|
|
68
137
|
limit: z.number().int().default(25),
|
|
69
138
|
searchFields: z.array(components.PromptProperties$outboundSchema).optional(),
|
|
70
139
|
searchFieldValues: z.array(z.string()).optional(),
|
|
71
|
-
orderBy:
|
|
72
|
-
orderByDirection:
|
|
140
|
+
orderBy: PromptsListQueryParamOrderBy$outboundSchema.optional(),
|
|
141
|
+
orderByDirection: PromptsListQueryParamOrderByDirection$outboundSchema
|
|
142
|
+
.optional(),
|
|
73
143
|
fields: z.nullable(z.array(components.PromptProperties$outboundSchema))
|
|
74
144
|
.optional(),
|
|
75
145
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -97,3 +167,21 @@ export namespace PromptsListRequest$ {
|
|
|
97
167
|
/** @deprecated use `PromptsListRequest$Outbound` instead. */
|
|
98
168
|
export type Outbound = PromptsListRequest$Outbound;
|
|
99
169
|
}
|
|
170
|
+
|
|
171
|
+
export function promptsListRequestToJSON(
|
|
172
|
+
promptsListRequest: PromptsListRequest,
|
|
173
|
+
): string {
|
|
174
|
+
return JSON.stringify(
|
|
175
|
+
PromptsListRequest$outboundSchema.parse(promptsListRequest),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function promptsListRequestFromJSON(
|
|
180
|
+
jsonString: string,
|
|
181
|
+
): SafeParseResult<PromptsListRequest, SDKValidationError> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) => PromptsListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
185
|
+
`Failed to parse 'PromptsListRequest' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SessionGetByIdRequest = {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const SessionGetByIdRequest$inboundSchema: z.ZodType<
|
|
17
|
+
SessionGetByIdRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
session_id: z.string(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"session_id": "sessionId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SessionGetByIdRequest$Outbound = {
|
|
30
|
+
session_id: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SessionGetByIdRequest$outboundSchema: z.ZodType<
|
|
35
|
+
SessionGetByIdRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SessionGetByIdRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
sessionId: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
sessionId: "session_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace SessionGetByIdRequest$ {
|
|
51
|
+
/** @deprecated use `SessionGetByIdRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = SessionGetByIdRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `SessionGetByIdRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = SessionGetByIdRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `SessionGetByIdRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = SessionGetByIdRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function sessionGetByIdRequestToJSON(
|
|
60
|
+
sessionGetByIdRequest: SessionGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
SessionGetByIdRequest$outboundSchema.parse(sessionGetByIdRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function sessionGetByIdRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<SessionGetByIdRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => SessionGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'SessionGetByIdRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
export type SessionLabelGetByIdRequest = {
|
|
9
12
|
sessionLabelId: number;
|
|
@@ -52,3 +55,21 @@ export namespace SessionLabelGetByIdRequest$ {
|
|
|
52
55
|
/** @deprecated use `SessionLabelGetByIdRequest$Outbound` instead. */
|
|
53
56
|
export type Outbound = SessionLabelGetByIdRequest$Outbound;
|
|
54
57
|
}
|
|
58
|
+
|
|
59
|
+
export function sessionLabelGetByIdRequestToJSON(
|
|
60
|
+
sessionLabelGetByIdRequest: SessionLabelGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
SessionLabelGetByIdRequest$outboundSchema.parse(sessionLabelGetByIdRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function sessionLabelGetByIdRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<SessionLabelGetByIdRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => SessionLabelGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'SessionLabelGetByIdRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -4,20 +4,90 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
7
10
|
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const SessionLabelsListQueryParamOrderBy = {
|
|
14
|
+
Timestamp: "timestamp",
|
|
15
|
+
SessionId: "session_id",
|
|
16
|
+
Type: "type",
|
|
17
|
+
Code: "code",
|
|
18
|
+
UserEmail: "user_email",
|
|
19
|
+
IssueCategories: "issue_categories",
|
|
20
|
+
SessionIdList: "session_id_list",
|
|
21
|
+
} as const;
|
|
22
|
+
export type SessionLabelsListQueryParamOrderBy = ClosedEnum<
|
|
23
|
+
typeof SessionLabelsListQueryParamOrderBy
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export const SessionLabelsListQueryParamOrderByDirection = {
|
|
27
|
+
Asc: "asc",
|
|
28
|
+
Desc: "desc",
|
|
29
|
+
} as const;
|
|
30
|
+
export type SessionLabelsListQueryParamOrderByDirection = ClosedEnum<
|
|
31
|
+
typeof SessionLabelsListQueryParamOrderByDirection
|
|
32
|
+
>;
|
|
8
33
|
|
|
9
34
|
export type SessionLabelsListRequest = {
|
|
10
35
|
page?: number | null | undefined;
|
|
11
36
|
limit?: number | undefined;
|
|
12
37
|
searchFields?: Array<components.SessionLabelProperties> | undefined;
|
|
13
38
|
searchFieldValues?: Array<string> | undefined;
|
|
14
|
-
orderBy?:
|
|
15
|
-
orderByDirection?:
|
|
39
|
+
orderBy?: SessionLabelsListQueryParamOrderBy | undefined;
|
|
40
|
+
orderByDirection?: SessionLabelsListQueryParamOrderByDirection | undefined;
|
|
16
41
|
fields?: Array<components.SessionLabelProperties> | null | undefined;
|
|
17
42
|
startDatetime?: string | null | undefined;
|
|
18
43
|
endDatetime?: string | null | undefined;
|
|
19
44
|
};
|
|
20
45
|
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const SessionLabelsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
48
|
+
typeof SessionLabelsListQueryParamOrderBy
|
|
49
|
+
> = z.nativeEnum(SessionLabelsListQueryParamOrderBy);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const SessionLabelsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
53
|
+
typeof SessionLabelsListQueryParamOrderBy
|
|
54
|
+
> = SessionLabelsListQueryParamOrderBy$inboundSchema;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace SessionLabelsListQueryParamOrderBy$ {
|
|
61
|
+
/** @deprecated use `SessionLabelsListQueryParamOrderBy$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = SessionLabelsListQueryParamOrderBy$inboundSchema;
|
|
63
|
+
/** @deprecated use `SessionLabelsListQueryParamOrderBy$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema =
|
|
65
|
+
SessionLabelsListQueryParamOrderBy$outboundSchema;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const SessionLabelsListQueryParamOrderByDirection$inboundSchema:
|
|
70
|
+
z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> = z
|
|
71
|
+
.nativeEnum(SessionLabelsListQueryParamOrderByDirection);
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const SessionLabelsListQueryParamOrderByDirection$outboundSchema:
|
|
75
|
+
z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> =
|
|
76
|
+
SessionLabelsListQueryParamOrderByDirection$inboundSchema;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace SessionLabelsListQueryParamOrderByDirection$ {
|
|
83
|
+
/** @deprecated use `SessionLabelsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema =
|
|
85
|
+
SessionLabelsListQueryParamOrderByDirection$inboundSchema;
|
|
86
|
+
/** @deprecated use `SessionLabelsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema =
|
|
88
|
+
SessionLabelsListQueryParamOrderByDirection$outboundSchema;
|
|
89
|
+
}
|
|
90
|
+
|
|
21
91
|
/** @internal */
|
|
22
92
|
export const SessionLabelsListRequest$inboundSchema: z.ZodType<
|
|
23
93
|
SessionLabelsListRequest,
|
|
@@ -29,8 +99,9 @@ export const SessionLabelsListRequest$inboundSchema: z.ZodType<
|
|
|
29
99
|
search_fields: z.array(components.SessionLabelProperties$inboundSchema)
|
|
30
100
|
.optional(),
|
|
31
101
|
search_field_values: z.array(z.string()).optional(),
|
|
32
|
-
order_by:
|
|
33
|
-
order_by_direction:
|
|
102
|
+
order_by: SessionLabelsListQueryParamOrderBy$inboundSchema.optional(),
|
|
103
|
+
order_by_direction: SessionLabelsListQueryParamOrderByDirection$inboundSchema
|
|
104
|
+
.optional(),
|
|
34
105
|
fields: z.nullable(z.array(components.SessionLabelProperties$inboundSchema))
|
|
35
106
|
.optional(),
|
|
36
107
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -70,8 +141,9 @@ export const SessionLabelsListRequest$outboundSchema: z.ZodType<
|
|
|
70
141
|
searchFields: z.array(components.SessionLabelProperties$outboundSchema)
|
|
71
142
|
.optional(),
|
|
72
143
|
searchFieldValues: z.array(z.string()).optional(),
|
|
73
|
-
orderBy:
|
|
74
|
-
orderByDirection:
|
|
144
|
+
orderBy: SessionLabelsListQueryParamOrderBy$outboundSchema.optional(),
|
|
145
|
+
orderByDirection: SessionLabelsListQueryParamOrderByDirection$outboundSchema
|
|
146
|
+
.optional(),
|
|
75
147
|
fields: z.nullable(z.array(components.SessionLabelProperties$outboundSchema))
|
|
76
148
|
.optional(),
|
|
77
149
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -99,3 +171,21 @@ export namespace SessionLabelsListRequest$ {
|
|
|
99
171
|
/** @deprecated use `SessionLabelsListRequest$Outbound` instead. */
|
|
100
172
|
export type Outbound = SessionLabelsListRequest$Outbound;
|
|
101
173
|
}
|
|
174
|
+
|
|
175
|
+
export function sessionLabelsListRequestToJSON(
|
|
176
|
+
sessionLabelsListRequest: SessionLabelsListRequest,
|
|
177
|
+
): string {
|
|
178
|
+
return JSON.stringify(
|
|
179
|
+
SessionLabelsListRequest$outboundSchema.parse(sessionLabelsListRequest),
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function sessionLabelsListRequestFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<SessionLabelsListRequest, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => SessionLabelsListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'SessionLabelsListRequest' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|