@orq-ai/node 4.4.2 → 4.5.0-rc.1
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +3 -3
- package/lib/event-streams.d.ts.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +4 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/examples/package-lock.json +0 -613
- package/examples/package.json +0 -18
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -610
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -1740
- package/packages/orq-rc/package.json +0 -30
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -262
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -252
- package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
- package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
- package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -497
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -152
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -299
- package/packages/orq-rc/src/models/components/datapart.ts +0 -38
- package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -56
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
- package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -318
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -91
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
- package/packages/orq-rc/src/models/components/security.ts +0 -32
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
- package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
- package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -33
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -7093
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -609
- package/packages/orq-rc/src/models/operations/createannotation.ts +0 -162
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6381
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
- package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3413
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
- package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
- package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
- package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5401
- package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
- package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3324
- package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
- package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
- package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -690
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1268
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4614
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3164
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3089
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3134
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
- package/packages/orq-rc/src/models/operations/index.ts +0 -113
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -733
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3018
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
- package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3209
- package/packages/orq-rc/src/models/operations/parse.ts +0 -777
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3104
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -5351
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -629
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5546
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -7447
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4066
- package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -246
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5472
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2696
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- package/packages/orq-rc/src/sdk/annotations.ts +0 -39
- package/packages/orq-rc/src/sdk/audio.ts +0 -25
- package/packages/orq-rc/src/sdk/chat.ts +0 -13
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/completions.ts +0 -32
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/edits.ts +0 -27
- package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
- package/packages/orq-rc/src/sdk/evals.ts +0 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/generations.ts +0 -27
- package/packages/orq-rc/src/sdk/identities.ts +0 -99
- package/packages/orq-rc/src/sdk/images.ts +0 -25
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/moderations.ts +0 -24
- package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
- package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/rerank.ts +0 -27
- package/packages/orq-rc/src/sdk/responses.ts +0 -34
- package/packages/orq-rc/src/sdk/router.ts +0 -72
- package/packages/orq-rc/src/sdk/sdk.ts +0 -115
- package/packages/orq-rc/src/sdk/speech.ts +0 -27
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
- package/packages/orq-rc/src/sdk/translations.ts +0 -24
- package/packages/orq-rc/src/sdk/variations.ts +0 -27
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -35
- package/packages/orq-rc/tsconfig.json +0 -40
- package/tsconfig.json +0 -40
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type ExecutionReviewedStreamingEventData = {};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Emitted after the agent execution has been reviewed. The execution will resume processing after this event.
|
|
14
|
-
*/
|
|
15
|
-
export type ExecutionReviewedStreamingEvent = {
|
|
16
|
-
type: "event.agents.execution_reviewed";
|
|
17
|
-
/**
|
|
18
|
-
* ISO timestamp of the event
|
|
19
|
-
*/
|
|
20
|
-
timestamp: string;
|
|
21
|
-
data: ExecutionReviewedStreamingEventData;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const ExecutionReviewedStreamingEventData$inboundSchema: z.ZodType<
|
|
26
|
-
ExecutionReviewedStreamingEventData,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
export function executionReviewedStreamingEventDataFromJSON(
|
|
32
|
-
jsonString: string,
|
|
33
|
-
): SafeParseResult<ExecutionReviewedStreamingEventData, SDKValidationError> {
|
|
34
|
-
return safeParse(
|
|
35
|
-
jsonString,
|
|
36
|
-
(x) =>
|
|
37
|
-
ExecutionReviewedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
-
`Failed to parse 'ExecutionReviewedStreamingEventData' from JSON`,
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const ExecutionReviewedStreamingEvent$inboundSchema: z.ZodType<
|
|
44
|
-
ExecutionReviewedStreamingEvent,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
unknown
|
|
47
|
-
> = z.object({
|
|
48
|
-
type: z.literal("event.agents.execution_reviewed"),
|
|
49
|
-
timestamp: z.string(),
|
|
50
|
-
data: z.lazy(() => ExecutionReviewedStreamingEventData$inboundSchema),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function executionReviewedStreamingEventFromJSON(
|
|
54
|
-
jsonString: string,
|
|
55
|
-
): SafeParseResult<ExecutionReviewedStreamingEvent, SDKValidationError> {
|
|
56
|
-
return safeParse(
|
|
57
|
-
jsonString,
|
|
58
|
-
(x) => ExecutionReviewedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
-
`Failed to parse 'ExecutionReviewedStreamingEvent' from JSON`,
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type ExecutionReviewRequiredStreamingEventData = {};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Emitted when the entire agent execution requires human review before proceeding. The execution will pause until reviewed.
|
|
14
|
-
*/
|
|
15
|
-
export type ExecutionReviewRequiredStreamingEvent = {
|
|
16
|
-
type: "event.agents.execution_review_required";
|
|
17
|
-
/**
|
|
18
|
-
* ISO timestamp of the event
|
|
19
|
-
*/
|
|
20
|
-
timestamp: string;
|
|
21
|
-
data: ExecutionReviewRequiredStreamingEventData;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const ExecutionReviewRequiredStreamingEventData$inboundSchema: z.ZodType<
|
|
26
|
-
ExecutionReviewRequiredStreamingEventData,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
export function executionReviewRequiredStreamingEventDataFromJSON(
|
|
32
|
-
jsonString: string,
|
|
33
|
-
): SafeParseResult<
|
|
34
|
-
ExecutionReviewRequiredStreamingEventData,
|
|
35
|
-
SDKValidationError
|
|
36
|
-
> {
|
|
37
|
-
return safeParse(
|
|
38
|
-
jsonString,
|
|
39
|
-
(x) =>
|
|
40
|
-
ExecutionReviewRequiredStreamingEventData$inboundSchema.parse(
|
|
41
|
-
JSON.parse(x),
|
|
42
|
-
),
|
|
43
|
-
`Failed to parse 'ExecutionReviewRequiredStreamingEventData' from JSON`,
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const ExecutionReviewRequiredStreamingEvent$inboundSchema: z.ZodType<
|
|
49
|
-
ExecutionReviewRequiredStreamingEvent,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
52
|
-
> = z.object({
|
|
53
|
-
type: z.literal("event.agents.execution_review_required"),
|
|
54
|
-
timestamp: z.string(),
|
|
55
|
-
data: z.lazy(() => ExecutionReviewRequiredStreamingEventData$inboundSchema),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
export function executionReviewRequiredStreamingEventFromJSON(
|
|
59
|
-
jsonString: string,
|
|
60
|
-
): SafeParseResult<ExecutionReviewRequiredStreamingEvent, SDKValidationError> {
|
|
61
|
-
return safeParse(
|
|
62
|
-
jsonString,
|
|
63
|
-
(x) =>
|
|
64
|
-
ExecutionReviewRequiredStreamingEvent$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
-
`Failed to parse 'ExecutionReviewRequiredStreamingEvent' from JSON`,
|
|
66
|
-
);
|
|
67
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
13
|
-
*/
|
|
14
|
-
export type FileContentPartSchema = {
|
|
15
|
-
/**
|
|
16
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
17
|
-
*/
|
|
18
|
-
fileData?: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
21
|
-
*/
|
|
22
|
-
uri?: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
25
|
-
*/
|
|
26
|
-
mimeType?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
29
|
-
*/
|
|
30
|
-
filename?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const FileContentPartSchema$inboundSchema: z.ZodType<
|
|
35
|
-
FileContentPartSchema,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({
|
|
39
|
-
file_data: z.string().optional(),
|
|
40
|
-
uri: z.string().optional(),
|
|
41
|
-
mimeType: z.string().optional(),
|
|
42
|
-
filename: z.string().optional(),
|
|
43
|
-
}).transform((v) => {
|
|
44
|
-
return remap$(v, {
|
|
45
|
-
"file_data": "fileData",
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type FileContentPartSchema$Outbound = {
|
|
50
|
-
file_data?: string | undefined;
|
|
51
|
-
uri?: string | undefined;
|
|
52
|
-
mimeType?: string | undefined;
|
|
53
|
-
filename?: string | undefined;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const FileContentPartSchema$outboundSchema: z.ZodType<
|
|
58
|
-
FileContentPartSchema$Outbound,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
FileContentPartSchema
|
|
61
|
-
> = z.object({
|
|
62
|
-
fileData: z.string().optional(),
|
|
63
|
-
uri: z.string().optional(),
|
|
64
|
-
mimeType: z.string().optional(),
|
|
65
|
-
filename: z.string().optional(),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return remap$(v, {
|
|
68
|
-
fileData: "file_data",
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
export function fileContentPartSchemaToJSON(
|
|
73
|
-
fileContentPartSchema: FileContentPartSchema,
|
|
74
|
-
): string {
|
|
75
|
-
return JSON.stringify(
|
|
76
|
-
FileContentPartSchema$outboundSchema.parse(fileContentPartSchema),
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
export function fileContentPartSchemaFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<FileContentPartSchema, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) => FileContentPartSchema$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
-
`Failed to parse 'FileContentPartSchema' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
12
|
-
*/
|
|
13
|
-
export type FileInURIFormat = {
|
|
14
|
-
/**
|
|
15
|
-
* URL for the File content
|
|
16
|
-
*/
|
|
17
|
-
uri: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional mimeType for the file
|
|
20
|
-
*/
|
|
21
|
-
mimeType?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Optional name for the file
|
|
24
|
-
*/
|
|
25
|
-
name?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
30
|
-
*/
|
|
31
|
-
export type BinaryFormat = {
|
|
32
|
-
/**
|
|
33
|
-
* base64 encoded content of the file
|
|
34
|
-
*/
|
|
35
|
-
bytes: string;
|
|
36
|
-
/**
|
|
37
|
-
* Optional mimeType for the file
|
|
38
|
-
*/
|
|
39
|
-
mimeType?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Optional name for the file
|
|
42
|
-
*/
|
|
43
|
-
name?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export type FileT = BinaryFormat | FileInURIFormat;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
50
|
-
*/
|
|
51
|
-
export type FilePart = {
|
|
52
|
-
kind: "file";
|
|
53
|
-
file: BinaryFormat | FileInURIFormat;
|
|
54
|
-
metadata?: { [k: string]: any } | undefined;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
59
|
-
FileInURIFormat,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
unknown
|
|
62
|
-
> = z.object({
|
|
63
|
-
uri: z.string(),
|
|
64
|
-
mimeType: z.string().optional(),
|
|
65
|
-
name: z.string().optional(),
|
|
66
|
-
});
|
|
67
|
-
/** @internal */
|
|
68
|
-
export type FileInURIFormat$Outbound = {
|
|
69
|
-
uri: string;
|
|
70
|
-
mimeType?: string | undefined;
|
|
71
|
-
name?: string | undefined;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/** @internal */
|
|
75
|
-
export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
76
|
-
FileInURIFormat$Outbound,
|
|
77
|
-
z.ZodTypeDef,
|
|
78
|
-
FileInURIFormat
|
|
79
|
-
> = z.object({
|
|
80
|
-
uri: z.string(),
|
|
81
|
-
mimeType: z.string().optional(),
|
|
82
|
-
name: z.string().optional(),
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export function fileInURIFormatToJSON(
|
|
86
|
-
fileInURIFormat: FileInURIFormat,
|
|
87
|
-
): string {
|
|
88
|
-
return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
89
|
-
}
|
|
90
|
-
export function fileInURIFormatFromJSON(
|
|
91
|
-
jsonString: string,
|
|
92
|
-
): SafeParseResult<FileInURIFormat, SDKValidationError> {
|
|
93
|
-
return safeParse(
|
|
94
|
-
jsonString,
|
|
95
|
-
(x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
-
`Failed to parse 'FileInURIFormat' from JSON`,
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const BinaryFormat$inboundSchema: z.ZodType<
|
|
102
|
-
BinaryFormat,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
unknown
|
|
105
|
-
> = z.object({
|
|
106
|
-
bytes: z.string(),
|
|
107
|
-
mimeType: z.string().optional(),
|
|
108
|
-
name: z.string().optional(),
|
|
109
|
-
});
|
|
110
|
-
/** @internal */
|
|
111
|
-
export type BinaryFormat$Outbound = {
|
|
112
|
-
bytes: string;
|
|
113
|
-
mimeType?: string | undefined;
|
|
114
|
-
name?: string | undefined;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const BinaryFormat$outboundSchema: z.ZodType<
|
|
119
|
-
BinaryFormat$Outbound,
|
|
120
|
-
z.ZodTypeDef,
|
|
121
|
-
BinaryFormat
|
|
122
|
-
> = z.object({
|
|
123
|
-
bytes: z.string(),
|
|
124
|
-
mimeType: z.string().optional(),
|
|
125
|
-
name: z.string().optional(),
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
|
|
129
|
-
return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
130
|
-
}
|
|
131
|
-
export function binaryFormatFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<BinaryFormat, SDKValidationError> {
|
|
134
|
-
return safeParse(
|
|
135
|
-
jsonString,
|
|
136
|
-
(x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
-
`Failed to parse 'BinaryFormat' from JSON`,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
143
|
-
.union([
|
|
144
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
145
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
146
|
-
]);
|
|
147
|
-
/** @internal */
|
|
148
|
-
export type FileT$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
149
|
-
|
|
150
|
-
/** @internal */
|
|
151
|
-
export const FileT$outboundSchema: z.ZodType<
|
|
152
|
-
FileT$Outbound,
|
|
153
|
-
z.ZodTypeDef,
|
|
154
|
-
FileT
|
|
155
|
-
> = z.union([
|
|
156
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
157
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
158
|
-
]);
|
|
159
|
-
|
|
160
|
-
export function fileToJSON(fileT: FileT): string {
|
|
161
|
-
return JSON.stringify(FileT$outboundSchema.parse(fileT));
|
|
162
|
-
}
|
|
163
|
-
export function fileFromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<FileT, SDKValidationError> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) => FileT$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
-
`Failed to parse 'FileT' from JSON`,
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/** @internal */
|
|
174
|
-
export const FilePart$inboundSchema: z.ZodType<
|
|
175
|
-
FilePart,
|
|
176
|
-
z.ZodTypeDef,
|
|
177
|
-
unknown
|
|
178
|
-
> = z.object({
|
|
179
|
-
kind: z.literal("file"),
|
|
180
|
-
file: z.union([
|
|
181
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
182
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
183
|
-
]),
|
|
184
|
-
metadata: z.record(z.any()).optional(),
|
|
185
|
-
});
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type FilePart$Outbound = {
|
|
188
|
-
kind: "file";
|
|
189
|
-
file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
190
|
-
metadata?: { [k: string]: any } | undefined;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
/** @internal */
|
|
194
|
-
export const FilePart$outboundSchema: z.ZodType<
|
|
195
|
-
FilePart$Outbound,
|
|
196
|
-
z.ZodTypeDef,
|
|
197
|
-
FilePart
|
|
198
|
-
> = z.object({
|
|
199
|
-
kind: z.literal("file"),
|
|
200
|
-
file: z.union([
|
|
201
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
202
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
203
|
-
]),
|
|
204
|
-
metadata: z.record(z.any()).optional(),
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
export function filePartToJSON(filePart: FilePart): string {
|
|
208
|
-
return JSON.stringify(FilePart$outboundSchema.parse(filePart));
|
|
209
|
-
}
|
|
210
|
-
export function filePartFromJSON(
|
|
211
|
-
jsonString: string,
|
|
212
|
-
): SafeParseResult<FilePart, SDKValidationError> {
|
|
213
|
-
return safeParse(
|
|
214
|
-
jsonString,
|
|
215
|
-
(x) => FilePart$inboundSchema.parse(JSON.parse(x)),
|
|
216
|
-
`Failed to parse 'FilePart' from JSON`,
|
|
217
|
-
);
|
|
218
|
-
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
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";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the detail level of the image.
|
|
14
|
-
*/
|
|
15
|
-
export const Detail = {
|
|
16
|
-
Low: "low",
|
|
17
|
-
High: "high",
|
|
18
|
-
Auto: "auto",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the detail level of the image.
|
|
22
|
-
*/
|
|
23
|
-
export type Detail = ClosedEnum<typeof Detail>;
|
|
24
|
-
|
|
25
|
-
export type ImageUrl = {
|
|
26
|
-
/**
|
|
27
|
-
* Either a URL of the image or the base64 encoded image data.
|
|
28
|
-
*/
|
|
29
|
-
url: string;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the detail level of the image.
|
|
32
|
-
*/
|
|
33
|
-
detail?: Detail | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
38
|
-
*/
|
|
39
|
-
export const ImageContentPartSchemaCacheControlType = {
|
|
40
|
-
Ephemeral: "ephemeral",
|
|
41
|
-
} as const;
|
|
42
|
-
/**
|
|
43
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
44
|
-
*/
|
|
45
|
-
export type ImageContentPartSchemaCacheControlType = ClosedEnum<
|
|
46
|
-
typeof ImageContentPartSchemaCacheControlType
|
|
47
|
-
>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
*
|
|
54
|
-
* - `5m`: 5 minutes
|
|
55
|
-
* - `1h`: 1 hour
|
|
56
|
-
*
|
|
57
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
58
|
-
*/
|
|
59
|
-
export const ImageContentPartSchemaTtl = {
|
|
60
|
-
Fivem: "5m",
|
|
61
|
-
Oneh: "1h",
|
|
62
|
-
} as const;
|
|
63
|
-
/**
|
|
64
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
*
|
|
68
|
-
* - `5m`: 5 minutes
|
|
69
|
-
* - `1h`: 1 hour
|
|
70
|
-
*
|
|
71
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
72
|
-
*/
|
|
73
|
-
export type ImageContentPartSchemaTtl = ClosedEnum<
|
|
74
|
-
typeof ImageContentPartSchemaTtl
|
|
75
|
-
>;
|
|
76
|
-
|
|
77
|
-
export type ImageContentPartSchemaCacheControl = {
|
|
78
|
-
/**
|
|
79
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
80
|
-
*/
|
|
81
|
-
type: ImageContentPartSchemaCacheControlType;
|
|
82
|
-
/**
|
|
83
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
*
|
|
87
|
-
* - `5m`: 5 minutes
|
|
88
|
-
* - `1h`: 1 hour
|
|
89
|
-
*
|
|
90
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
91
|
-
*/
|
|
92
|
-
ttl?: ImageContentPartSchemaTtl | undefined;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* An image content part
|
|
97
|
-
*/
|
|
98
|
-
export type ImageContentPartSchema = {
|
|
99
|
-
type: "image_url";
|
|
100
|
-
imageUrl: ImageUrl;
|
|
101
|
-
cacheControl?: ImageContentPartSchemaCacheControl | undefined;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/** @internal */
|
|
105
|
-
export const Detail$inboundSchema: z.ZodNativeEnum<typeof Detail> = z
|
|
106
|
-
.nativeEnum(Detail);
|
|
107
|
-
/** @internal */
|
|
108
|
-
export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> =
|
|
109
|
-
Detail$inboundSchema;
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const ImageUrl$inboundSchema: z.ZodType<
|
|
113
|
-
ImageUrl,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
unknown
|
|
116
|
-
> = z.object({
|
|
117
|
-
url: z.string(),
|
|
118
|
-
detail: Detail$inboundSchema.optional(),
|
|
119
|
-
});
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type ImageUrl$Outbound = {
|
|
122
|
-
url: string;
|
|
123
|
-
detail?: string | undefined;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
/** @internal */
|
|
127
|
-
export const ImageUrl$outboundSchema: z.ZodType<
|
|
128
|
-
ImageUrl$Outbound,
|
|
129
|
-
z.ZodTypeDef,
|
|
130
|
-
ImageUrl
|
|
131
|
-
> = z.object({
|
|
132
|
-
url: z.string(),
|
|
133
|
-
detail: Detail$outboundSchema.optional(),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
export function imageUrlToJSON(imageUrl: ImageUrl): string {
|
|
137
|
-
return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
|
|
138
|
-
}
|
|
139
|
-
export function imageUrlFromJSON(
|
|
140
|
-
jsonString: string,
|
|
141
|
-
): SafeParseResult<ImageUrl, SDKValidationError> {
|
|
142
|
-
return safeParse(
|
|
143
|
-
jsonString,
|
|
144
|
-
(x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
-
`Failed to parse 'ImageUrl' from JSON`,
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const ImageContentPartSchemaCacheControlType$inboundSchema:
|
|
151
|
-
z.ZodNativeEnum<typeof ImageContentPartSchemaCacheControlType> = z.nativeEnum(
|
|
152
|
-
ImageContentPartSchemaCacheControlType,
|
|
153
|
-
);
|
|
154
|
-
/** @internal */
|
|
155
|
-
export const ImageContentPartSchemaCacheControlType$outboundSchema:
|
|
156
|
-
z.ZodNativeEnum<typeof ImageContentPartSchemaCacheControlType> =
|
|
157
|
-
ImageContentPartSchemaCacheControlType$inboundSchema;
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
export const ImageContentPartSchemaTtl$inboundSchema: z.ZodNativeEnum<
|
|
161
|
-
typeof ImageContentPartSchemaTtl
|
|
162
|
-
> = z.nativeEnum(ImageContentPartSchemaTtl);
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const ImageContentPartSchemaTtl$outboundSchema: z.ZodNativeEnum<
|
|
165
|
-
typeof ImageContentPartSchemaTtl
|
|
166
|
-
> = ImageContentPartSchemaTtl$inboundSchema;
|
|
167
|
-
|
|
168
|
-
/** @internal */
|
|
169
|
-
export const ImageContentPartSchemaCacheControl$inboundSchema: z.ZodType<
|
|
170
|
-
ImageContentPartSchemaCacheControl,
|
|
171
|
-
z.ZodTypeDef,
|
|
172
|
-
unknown
|
|
173
|
-
> = z.object({
|
|
174
|
-
type: ImageContentPartSchemaCacheControlType$inboundSchema,
|
|
175
|
-
ttl: ImageContentPartSchemaTtl$inboundSchema.default("5m"),
|
|
176
|
-
});
|
|
177
|
-
/** @internal */
|
|
178
|
-
export type ImageContentPartSchemaCacheControl$Outbound = {
|
|
179
|
-
type: string;
|
|
180
|
-
ttl: string;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/** @internal */
|
|
184
|
-
export const ImageContentPartSchemaCacheControl$outboundSchema: z.ZodType<
|
|
185
|
-
ImageContentPartSchemaCacheControl$Outbound,
|
|
186
|
-
z.ZodTypeDef,
|
|
187
|
-
ImageContentPartSchemaCacheControl
|
|
188
|
-
> = z.object({
|
|
189
|
-
type: ImageContentPartSchemaCacheControlType$outboundSchema,
|
|
190
|
-
ttl: ImageContentPartSchemaTtl$outboundSchema.default("5m"),
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
export function imageContentPartSchemaCacheControlToJSON(
|
|
194
|
-
imageContentPartSchemaCacheControl: ImageContentPartSchemaCacheControl,
|
|
195
|
-
): string {
|
|
196
|
-
return JSON.stringify(
|
|
197
|
-
ImageContentPartSchemaCacheControl$outboundSchema.parse(
|
|
198
|
-
imageContentPartSchemaCacheControl,
|
|
199
|
-
),
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
export function imageContentPartSchemaCacheControlFromJSON(
|
|
203
|
-
jsonString: string,
|
|
204
|
-
): SafeParseResult<ImageContentPartSchemaCacheControl, SDKValidationError> {
|
|
205
|
-
return safeParse(
|
|
206
|
-
jsonString,
|
|
207
|
-
(x) =>
|
|
208
|
-
ImageContentPartSchemaCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
-
`Failed to parse 'ImageContentPartSchemaCacheControl' from JSON`,
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const ImageContentPartSchema$inboundSchema: z.ZodType<
|
|
215
|
-
ImageContentPartSchema,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
unknown
|
|
218
|
-
> = z.object({
|
|
219
|
-
type: z.literal("image_url"),
|
|
220
|
-
image_url: z.lazy(() => ImageUrl$inboundSchema),
|
|
221
|
-
cache_control: z.lazy(() => ImageContentPartSchemaCacheControl$inboundSchema)
|
|
222
|
-
.optional(),
|
|
223
|
-
}).transform((v) => {
|
|
224
|
-
return remap$(v, {
|
|
225
|
-
"image_url": "imageUrl",
|
|
226
|
-
"cache_control": "cacheControl",
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
/** @internal */
|
|
230
|
-
export type ImageContentPartSchema$Outbound = {
|
|
231
|
-
type: "image_url";
|
|
232
|
-
image_url: ImageUrl$Outbound;
|
|
233
|
-
cache_control?: ImageContentPartSchemaCacheControl$Outbound | undefined;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
/** @internal */
|
|
237
|
-
export const ImageContentPartSchema$outboundSchema: z.ZodType<
|
|
238
|
-
ImageContentPartSchema$Outbound,
|
|
239
|
-
z.ZodTypeDef,
|
|
240
|
-
ImageContentPartSchema
|
|
241
|
-
> = z.object({
|
|
242
|
-
type: z.literal("image_url"),
|
|
243
|
-
imageUrl: z.lazy(() => ImageUrl$outboundSchema),
|
|
244
|
-
cacheControl: z.lazy(() => ImageContentPartSchemaCacheControl$outboundSchema)
|
|
245
|
-
.optional(),
|
|
246
|
-
}).transform((v) => {
|
|
247
|
-
return remap$(v, {
|
|
248
|
-
imageUrl: "image_url",
|
|
249
|
-
cacheControl: "cache_control",
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
export function imageContentPartSchemaToJSON(
|
|
254
|
-
imageContentPartSchema: ImageContentPartSchema,
|
|
255
|
-
): string {
|
|
256
|
-
return JSON.stringify(
|
|
257
|
-
ImageContentPartSchema$outboundSchema.parse(imageContentPartSchema),
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
export function imageContentPartSchemaFromJSON(
|
|
261
|
-
jsonString: string,
|
|
262
|
-
): SafeParseResult<ImageContentPartSchema, SDKValidationError> {
|
|
263
|
-
return safeParse(
|
|
264
|
-
jsonString,
|
|
265
|
-
(x) => ImageContentPartSchema$inboundSchema.parse(JSON.parse(x)),
|
|
266
|
-
`Failed to parse 'ImageContentPartSchema' from JSON`,
|
|
267
|
-
);
|
|
268
|
-
}
|