syllable-sdk 0.1.0-alpha.3 → 0.1.0-alpha.5
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 +6 -0
- 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 +3 -3
- package/lib/config.js +5 -5
- 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 +4 -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 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- 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 +4 -0
- package/models/components/llmconfig.d.ts.map +1 -1
- package/models/components/llmconfig.js +9 -0
- package/models/components/llmconfig.js.map +1 -1
- package/models/components/prompt.d.ts +4 -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 +4 -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/sessionproperties.d.ts +3 -0
- package/models/components/sessionproperties.d.ts.map +1 -1
- package/models/components/sessionproperties.js +1 -0
- package/models/components/sessionproperties.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 +4 -0
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js +9 -0
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +4 -0
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js +9 -0
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +4 -0
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js +9 -0
- 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 +4 -0
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js +9 -0
- 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 +4 -0
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js +9 -0
- 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 +4 -0
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js +9 -0
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +4 -0
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js +9 -0
- 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 +4 -0
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js +9 -0
- 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 +4 -0
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js +9 -0
- 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 +4 -0
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js +9 -0
- 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 +4 -0
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js +9 -0
- 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 +5 -5
- 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 +17 -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 -0
- 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 +17 -0
- package/src/models/components/prompt.ts +17 -0
- package/src/models/components/promptcreate.ts +17 -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/sessionproperties.ts +1 -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 +21 -0
- package/src/models/operations/availabletargets.ts +21 -0
- package/src/models/operations/channelslist.ts +21 -0
- 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 +21 -0
- package/src/models/operations/channeltargetsupdate.ts +23 -0
- package/src/models/operations/conversationslist.ts +21 -0
- package/src/models/operations/custommessagegetbyid.ts +23 -0
- package/src/models/operations/custommessagesdelete.ts +23 -0
- package/src/models/operations/custommessageslist.ts +21 -0
- package/src/models/operations/eventslist.ts +21 -0
- 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 +21 -0
- package/src/models/operations/sessiongetbyid.ts +75 -0
- package/src/models/operations/sessionlabelgetbyid.ts +21 -0
- package/src/models/operations/sessionlabelslist.ts +21 -0
- package/src/models/operations/sessionrecordingstream.ts +68 -0
- package/src/models/operations/sessionslist.ts +21 -0
- package/src/models/operations/sessiontranscriptgetbyid.ts +23 -0
- package/src/models/operations/toolgetbyname.ts +21 -0
- package/src/models/operations/toollist.ts +19 -0
- package/src/models/operations/totalcallvolumebyweekday.ts +28 -0
- package/src/sdk/sessions.ts +45 -0
|
@@ -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 Attributes = {};
|
|
9
12
|
|
|
@@ -50,6 +53,20 @@ export namespace Attributes$ {
|
|
|
50
53
|
export type Outbound = Attributes$Outbound;
|
|
51
54
|
}
|
|
52
55
|
|
|
56
|
+
export function attributesToJSON(attributes: Attributes): string {
|
|
57
|
+
return JSON.stringify(Attributes$outboundSchema.parse(attributes));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function attributesFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<Attributes, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => Attributes$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'Attributes' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
53
70
|
/** @internal */
|
|
54
71
|
export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
55
72
|
.object({
|
|
@@ -125,3 +142,17 @@ export namespace Event$ {
|
|
|
125
142
|
/** @deprecated use `Event$Outbound` instead. */
|
|
126
143
|
export type Outbound = Event$Outbound;
|
|
127
144
|
}
|
|
145
|
+
|
|
146
|
+
export function eventToJSON(event: Event): string {
|
|
147
|
+
return JSON.stringify(Event$outboundSchema.parse(event));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function eventFromJSON(
|
|
151
|
+
jsonString: string,
|
|
152
|
+
): SafeParseResult<Event, SDKValidationError> {
|
|
153
|
+
return safeParse(
|
|
154
|
+
jsonString,
|
|
155
|
+
(x) => Event$inboundSchema.parse(JSON.parse(x)),
|
|
156
|
+
`Failed to parse 'Event' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
@@ -46,6 +46,7 @@ export * from "./sessionlabel.js";
|
|
|
46
46
|
export * from "./sessionlabelcreate.js";
|
|
47
47
|
export * from "./sessionlabelproperties.js";
|
|
48
48
|
export * from "./sessionproperties.js";
|
|
49
|
+
export * from "./sessionrecordingresponse.js";
|
|
49
50
|
export * from "./sessiontext.js";
|
|
50
51
|
export * from "./sessiontranscriptionresponse.js";
|
|
51
52
|
export * from "./testmessage.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
|
import {
|
|
8
11
|
Agent,
|
|
9
12
|
Agent$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseAgent$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseAgent$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseAgent$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseAgentToJSON(
|
|
86
|
+
listResponseAgent: ListResponseAgent,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseAgent$outboundSchema.parse(listResponseAgent),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseAgentFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseAgent, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseAgent$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseAgent' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
AvailableTarget,
|
|
9
12
|
AvailableTarget$inboundSchema,
|
|
@@ -78,3 +81,23 @@ export namespace ListResponseAvailableTarget$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseAvailableTarget$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseAvailableTarget$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseAvailableTargetToJSON(
|
|
86
|
+
listResponseAvailableTarget: ListResponseAvailableTarget,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseAvailableTarget$outboundSchema.parse(
|
|
90
|
+
listResponseAvailableTarget,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function listResponseAvailableTargetFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<ListResponseAvailableTarget, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => ListResponseAvailableTarget$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'ListResponseAvailableTarget' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Channel,
|
|
9
12
|
Channel$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseChannel$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseChannel$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseChannel$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseChannelToJSON(
|
|
86
|
+
listResponseChannel: ListResponseChannel,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseChannel$outboundSchema.parse(listResponseChannel),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseChannelFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseChannel, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseChannel$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseChannel' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
ChannelTarget,
|
|
9
12
|
ChannelTarget$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseChannelTarget$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseChannelTarget$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseChannelTarget$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseChannelTargetToJSON(
|
|
86
|
+
listResponseChannelTarget: ListResponseChannelTarget,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseChannelTarget$outboundSchema.parse(listResponseChannelTarget),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseChannelTargetFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseChannelTarget, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseChannelTarget$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseChannelTarget' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Conversation,
|
|
9
12
|
Conversation$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseConversation$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseConversation$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseConversation$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseConversationToJSON(
|
|
86
|
+
listResponseConversation: ListResponseConversation,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseConversation$outboundSchema.parse(listResponseConversation),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseConversationFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseConversation, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseConversation$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseConversation' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
CustomMessage,
|
|
9
12
|
CustomMessage$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseCustomMessage$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseCustomMessage$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseCustomMessage$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseCustomMessageToJSON(
|
|
86
|
+
listResponseCustomMessage: ListResponseCustomMessage,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseCustomMessage$outboundSchema.parse(listResponseCustomMessage),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseCustomMessageFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseCustomMessage, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseCustomMessage$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseCustomMessage' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Event,
|
|
9
12
|
Event$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseEvent$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseEvent$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseEvent$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseEventToJSON(
|
|
86
|
+
listResponseEvent: ListResponseEvent,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseEvent$outboundSchema.parse(listResponseEvent),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseEventFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseEvent, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseEvent$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseEvent' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Prompt,
|
|
9
12
|
Prompt$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponsePrompt$ {
|
|
|
78
81
|
/** @deprecated use `ListResponsePrompt$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponsePrompt$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponsePromptToJSON(
|
|
86
|
+
listResponsePrompt: ListResponsePrompt,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponsePrompt$outboundSchema.parse(listResponsePrompt),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponsePromptFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponsePrompt, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponsePrompt$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponsePrompt' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Session,
|
|
9
12
|
Session$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseSession$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseSession$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseSession$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseSessionToJSON(
|
|
86
|
+
listResponseSession: ListResponseSession,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseSession$outboundSchema.parse(listResponseSession),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseSessionFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseSession, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseSession$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseSession' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
SessionLabel,
|
|
9
12
|
SessionLabel$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseSessionLabel$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseSessionLabel$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseSessionLabel$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseSessionLabelToJSON(
|
|
86
|
+
listResponseSessionLabel: ListResponseSessionLabel,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseSessionLabel$outboundSchema.parse(listResponseSessionLabel),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseSessionLabelFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseSessionLabel, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseSessionLabel$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseSessionLabel' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Tool,
|
|
9
12
|
Tool$inboundSchema,
|
|
@@ -78,3 +81,21 @@ export namespace ListResponseTool$ {
|
|
|
78
81
|
/** @deprecated use `ListResponseTool$Outbound` instead. */
|
|
79
82
|
export type Outbound = ListResponseTool$Outbound;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
export function listResponseToolToJSON(
|
|
86
|
+
listResponseTool: ListResponseTool,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListResponseTool$outboundSchema.parse(listResponseTool),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function listResponseToolFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ListResponseTool, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ListResponseTool$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseTool' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
Provider,
|
|
9
12
|
Provider$inboundSchema,
|
|
@@ -81,3 +84,17 @@ export namespace LlmConfig$ {
|
|
|
81
84
|
/** @deprecated use `LlmConfig$Outbound` instead. */
|
|
82
85
|
export type Outbound = LlmConfig$Outbound;
|
|
83
86
|
}
|
|
87
|
+
|
|
88
|
+
export function llmConfigToJSON(llmConfig: LlmConfig): string {
|
|
89
|
+
return JSON.stringify(LlmConfig$outboundSchema.parse(llmConfig));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function llmConfigFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<LlmConfig, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => LlmConfig$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'LlmConfig' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
LlmConfig,
|
|
9
12
|
LlmConfig$inboundSchema,
|
|
@@ -99,3 +102,17 @@ export namespace Prompt$ {
|
|
|
99
102
|
/** @deprecated use `Prompt$Outbound` instead. */
|
|
100
103
|
export type Outbound = Prompt$Outbound;
|
|
101
104
|
}
|
|
105
|
+
|
|
106
|
+
export function promptToJSON(prompt: Prompt): string {
|
|
107
|
+
return JSON.stringify(Prompt$outboundSchema.parse(prompt));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function promptFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<Prompt, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => Prompt$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'Prompt' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -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
|
import {
|
|
8
11
|
LlmConfig,
|
|
9
12
|
LlmConfig$inboundSchema,
|
|
@@ -86,3 +89,17 @@ export namespace PromptCreate$ {
|
|
|
86
89
|
/** @deprecated use `PromptCreate$Outbound` instead. */
|
|
87
90
|
export type Outbound = PromptCreate$Outbound;
|
|
88
91
|
}
|
|
92
|
+
|
|
93
|
+
export function promptCreateToJSON(promptCreate: PromptCreate): string {
|
|
94
|
+
return JSON.stringify(PromptCreate$outboundSchema.parse(promptCreate));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function promptCreateFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<PromptCreate, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => PromptCreate$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'PromptCreate' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -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 Security = {
|
|
9
12
|
apiKeyHeader?: string | undefined;
|
|
@@ -52,3 +55,17 @@ export namespace Security$ {
|
|
|
52
55
|
/** @deprecated use `Security$Outbound` instead. */
|
|
53
56
|
export type Outbound = Security$Outbound;
|
|
54
57
|
}
|
|
58
|
+
|
|
59
|
+
export function securityToJSON(security: Security): string {
|
|
60
|
+
return JSON.stringify(Security$outboundSchema.parse(security));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function securityFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<Security, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => Security$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'Security' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -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 Session = {
|
|
9
12
|
timestamp: Date;
|
|
@@ -139,3 +142,17 @@ export namespace Session$ {
|
|
|
139
142
|
/** @deprecated use `Session$Outbound` instead. */
|
|
140
143
|
export type Outbound = Session$Outbound;
|
|
141
144
|
}
|
|
145
|
+
|
|
146
|
+
export function sessionToJSON(session: Session): string {
|
|
147
|
+
return JSON.stringify(Session$outboundSchema.parse(session));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function sessionFromJSON(
|
|
151
|
+
jsonString: string,
|
|
152
|
+
): SafeParseResult<Session, SDKValidationError> {
|
|
153
|
+
return safeParse(
|
|
154
|
+
jsonString,
|
|
155
|
+
(x) => Session$inboundSchema.parse(JSON.parse(x)),
|
|
156
|
+
`Failed to parse 'Session' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
@@ -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 SessionAction = {
|
|
9
12
|
timestamp: Date;
|
|
@@ -68,3 +71,17 @@ export namespace SessionAction$ {
|
|
|
68
71
|
/** @deprecated use `SessionAction$Outbound` instead. */
|
|
69
72
|
export type Outbound = SessionAction$Outbound;
|
|
70
73
|
}
|
|
74
|
+
|
|
75
|
+
export function sessionActionToJSON(sessionAction: SessionAction): string {
|
|
76
|
+
return JSON.stringify(SessionAction$outboundSchema.parse(sessionAction));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function sessionActionFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<SessionAction, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => SessionAction$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'SessionAction' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -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 SessionLabel = {
|
|
9
12
|
sessionId: number;
|
|
@@ -90,3 +93,17 @@ export namespace SessionLabel$ {
|
|
|
90
93
|
/** @deprecated use `SessionLabel$Outbound` instead. */
|
|
91
94
|
export type Outbound = SessionLabel$Outbound;
|
|
92
95
|
}
|
|
96
|
+
|
|
97
|
+
export function sessionLabelToJSON(sessionLabel: SessionLabel): string {
|
|
98
|
+
return JSON.stringify(SessionLabel$outboundSchema.parse(sessionLabel));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function sessionLabelFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<SessionLabel, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => SessionLabel$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'SessionLabel' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -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 SessionLabelCreate = {
|
|
9
12
|
sessionId: number;
|
|
@@ -76,3 +79,21 @@ export namespace SessionLabelCreate$ {
|
|
|
76
79
|
/** @deprecated use `SessionLabelCreate$Outbound` instead. */
|
|
77
80
|
export type Outbound = SessionLabelCreate$Outbound;
|
|
78
81
|
}
|
|
82
|
+
|
|
83
|
+
export function sessionLabelCreateToJSON(
|
|
84
|
+
sessionLabelCreate: SessionLabelCreate,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
SessionLabelCreate$outboundSchema.parse(sessionLabelCreate),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function sessionLabelCreateFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<SessionLabelCreate, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => SessionLabelCreate$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'SessionLabelCreate' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|