@orq-ai/node 4.15.12 → 4.15.14
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 +39 -37
- package/funcs/feedbackSubmit.d.ts +17 -0
- package/funcs/feedbackSubmit.d.ts.map +1 -0
- package/funcs/feedbackSubmit.js +115 -0
- package/funcs/feedbackSubmit.js.map +1 -0
- package/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/classifyanswer.d.ts +1 -1
- package/models/components/classifyusage.d.ts +2 -2
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/submitfeedbackrequest.d.ts +21 -0
- package/models/components/submitfeedbackrequest.d.ts.map +1 -0
- package/models/components/submitfeedbackrequest.js +57 -0
- package/models/components/submitfeedbackrequest.js.map +1 -0
- package/models/components/submitfeedbackresponse.d.ts +13 -0
- package/models/components/submitfeedbackresponse.d.ts.map +1 -0
- package/models/components/submitfeedbackresponse.js +55 -0
- package/models/components/submitfeedbackresponse.js.map +1 -0
- package/models/operations/createclassify.d.ts +3 -2
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +1 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/apiKeysCreate.ts +5 -6
- package/packages/orq-rc/src/funcs/apiKeysDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/apiKeysGet.ts +8 -3
- package/packages/orq-rc/src/funcs/apiKeysList.ts +11 -4
- package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +6 -6
- package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +5 -3
- package/packages/orq-rc/src/funcs/{wikisCreate.ts → auditLogsQuery.ts} +16 -10
- package/packages/orq-rc/src/funcs/datasetsClear.ts +12 -3
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +15 -10
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +16 -8
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +11 -2
- package/packages/orq-rc/src/funcs/datasetsList.ts +5 -6
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +14 -6
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +15 -7
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +15 -7
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +16 -10
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +16 -10
- package/packages/orq-rc/src/funcs/{wikisInspectRepository.ts → feedbackSubmit.ts} +16 -11
- package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +7 -4
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -66
- package/packages/orq-rc/src/models/components/allprojects.ts +21 -0
- package/packages/orq-rc/src/models/components/apikeyowner.ts +55 -0
- package/packages/orq-rc/src/models/components/apikeyrestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/apikeystatus.ts +18 -0
- package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
- package/packages/orq-rc/src/models/{operations/listwikis.ts → components/auditlogpagination.ts} +20 -19
- package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
- package/packages/orq-rc/src/models/components/classifyanswer.ts +2 -2
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +116 -0
- package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/datasource.ts +2 -2
- package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +2 -2
- package/packages/orq-rc/src/models/components/domain.ts +39 -42
- package/packages/orq-rc/src/models/components/domaingroup.ts +17 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +1 -1
- package/packages/orq-rc/src/models/components/filesystem.ts +5 -6
- package/packages/orq-rc/src/models/components/hubitem.ts +2 -2
- package/packages/orq-rc/src/models/components/hubitemsummary.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +24 -53
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -126
- package/packages/orq-rc/src/models/components/knowledge.ts +2 -2
- package/packages/orq-rc/src/models/components/knowledgechunk.ts +1 -1
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/mcpaccess.ts +93 -0
- package/packages/orq-rc/src/models/components/mcpauthconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +1 -1
- package/packages/orq-rc/src/models/components/memory.ts +5 -2
- package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
- package/packages/orq-rc/src/models/components/permissionmode.ts +19 -0
- package/packages/orq-rc/src/models/components/projectscope.ts +23 -11
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/scopemode.ts +16 -0
- package/packages/orq-rc/src/models/components/serviceaccountowner.ts +25 -0
- package/packages/orq-rc/src/models/components/singleproject.ts +35 -0
- package/packages/orq-rc/src/models/components/submitfeedbackrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/submitfeedbackresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +3 -3
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +3 -3
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +3 -3
- package/packages/orq-rc/src/models/components/tracecompute.ts +0 -21
- package/packages/orq-rc/src/models/components/tracefilter.ts +0 -22
- package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +110 -0
- package/packages/orq-rc/src/models/components/userowner.ts +35 -0
- package/packages/orq-rc/src/models/components/value.ts +24 -0
- package/packages/orq-rc/src/models/operations/apikeydelete.ts +1 -1
- package/packages/orq-rc/src/models/operations/apikeyget.ts +11 -1
- package/packages/orq-rc/src/models/operations/apikeylist.ts +78 -23
- package/packages/orq-rc/src/models/operations/apikeyupdate.ts +5 -107
- package/packages/orq-rc/src/models/operations/cleardataset.ts +3 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +7 -7
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +15 -231
- package/packages/orq-rc/src/models/operations/createclassify.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcompletion.ts +3 -3
- package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3085 -14
- package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -143
- package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
- package/packages/orq-rc/src/models/operations/createspeech.ts +2 -2
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtranscription.ts +2 -2
- package/packages/orq-rc/src/models/operations/createtranslation.ts +2 -2
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +6 -0
- package/packages/orq-rc/src/models/operations/deletedataset.ts +3 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -147
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -2
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -126
- package/packages/orq-rc/src/models/operations/filelist.ts +3 -3
- package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -3
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -3
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +3 -3
- package/packages/orq-rc/src/models/operations/getallprompts.ts +2 -65
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +2 -2
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -63
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -65
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +9 -9
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +1 -15
- package/packages/orq-rc/src/models/operations/listagents.ts +7 -7
- package/packages/orq-rc/src/models/operations/listchunks.ts +3 -3
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2045 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +173 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +2 -68
- package/packages/orq-rc/src/models/operations/modelcataloglist.ts +2 -2
- package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +2 -2
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectlist.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1937 -0
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +114 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/updateagent.ts +7 -7
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3128 -17
- package/packages/orq-rc/src/models/operations/updatedataset.ts +170 -5
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -143
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/apikeys.ts +18 -18
- package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
- package/packages/orq-rc/src/sdk/classify.ts +1 -1
- package/packages/orq-rc/src/sdk/datasets.ts +36 -73
- package/packages/orq-rc/src/sdk/feedback.ts +19 -0
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +1 -1
- package/packages/orq-rc/src/sdk/projects.ts +4 -4
- package/packages/orq-rc/src/sdk/sdk.ts +16 -22
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/feedback.d.ts +8 -0
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +10 -0
- package/sdk/feedback.js.map +1 -1
- package/{packages/orq-rc/src/funcs/telemetryQuery.ts → src/funcs/feedbackSubmit.ts} +12 -12
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifyanswer.ts +1 -1
- package/src/models/components/classifyusage.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/submitfeedbackrequest.ts +48 -0
- package/src/models/components/submitfeedbackresponse.ts +39 -0
- package/src/models/operations/createclassify.ts +4 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/feedback.ts +19 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/telemetryListCapabilities.ts +0 -169
- package/packages/orq-rc/src/funcs/telemetryListFacetValues.ts +0 -163
- package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -162
- package/packages/orq-rc/src/funcs/wikisGet.ts +0 -162
- package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -168
- package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -162
- package/packages/orq-rc/src/funcs/wikisList.ts +0 -167
- package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -167
- package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -165
- package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -168
- package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -163
- package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -165
- package/packages/orq-rc/src/models/components/bulkcreatedatapointsrequest.ts +0 -38
- package/packages/orq-rc/src/models/components/constraints.ts +0 -32
- package/packages/orq-rc/src/models/components/createdatasetrequest.ts +0 -39
- package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
- package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/datapoint1.ts +0 -122
- package/packages/orq-rc/src/models/components/datapointinput.ts +0 -73
- package/packages/orq-rc/src/models/components/dataset.ts +0 -88
- package/packages/orq-rc/src/models/components/datasetmetadata.ts +0 -48
- package/packages/orq-rc/src/models/components/deletedatapointsrequest.ts +0 -36
- package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
- package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
- package/packages/orq-rc/src/models/components/listdatapointsresponse.ts +0 -41
- package/packages/orq-rc/src/models/components/listdatasetsresponse.ts +0 -41
- package/packages/orq-rc/src/models/components/listtelemetrycapabilitiesresponse.ts +0 -35
- package/packages/orq-rc/src/models/components/listtelemetryfacetvaluesrequest.ts +0 -68
- package/packages/orq-rc/src/models/components/listtelemetryfacetvaluesresponse.ts +0 -44
- package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
- package/packages/orq-rc/src/models/components/owner.ts +0 -35
- package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +0 -46
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +0 -213
- package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +0 -55
- package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
- package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/telemetrydimensioncapability.ts +0 -47
- package/packages/orq-rc/src/models/components/telemetrydimensionsetcapability.ts +0 -40
- package/packages/orq-rc/src/models/components/telemetrymetriccapability.ts +0 -80
- package/packages/orq-rc/src/models/components/telemetryquerymode.ts +0 -18
- package/packages/orq-rc/src/models/components/telemetryresultkind.ts +0 -21
- package/packages/orq-rc/src/models/components/telemetryrow.ts +0 -42
- package/packages/orq-rc/src/models/components/telemetrysource.ts +0 -23
- package/packages/orq-rc/src/models/components/telemetrysourcecapability.ts +0 -43
- package/packages/orq-rc/src/models/components/telemetryvaluecardinality.ts +0 -21
- package/packages/orq-rc/src/models/components/updatedatapointrequest.ts +0 -67
- package/packages/orq-rc/src/models/components/updatedatasetrequest.ts +0 -40
- package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
- package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
- package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/wiki.ts +0 -91
- package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
- package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
- package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
- package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
- package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
- package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
- package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
- package/packages/orq-rc/src/models/operations/apikeycreate.ts +0 -116
- package/packages/orq-rc/src/models/operations/apikeylistcapabilities.ts +0 -39
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -44
- package/packages/orq-rc/src/models/operations/deletedatasetdatapoints.ts +0 -43
- package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
- package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
- package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
- package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
- package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
- package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
- package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
- package/packages/orq-rc/src/models/operations/telemetrylistcapabilities.ts +0 -34
- package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
- package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
- package/packages/orq-rc/src/sdk/telemetry.ts +0 -64
- package/packages/orq-rc/src/sdk/wikis.ts +0 -154
|
@@ -83,20 +83,6 @@ export type AgentThoughtStreamingEventFunction = {
|
|
|
83
83
|
arguments?: string | undefined;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
export type AgentThoughtStreamingEventGoogle = {
|
|
87
|
-
/**
|
|
88
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
89
|
-
*/
|
|
90
|
-
thoughtSignature?: string | undefined;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Provider-specific extra content for the tool call.
|
|
95
|
-
*/
|
|
96
|
-
export type AgentThoughtStreamingEventExtraContent = {
|
|
97
|
-
google?: AgentThoughtStreamingEventGoogle | undefined;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
86
|
export type AgentThoughtStreamingEventToolCalls = {
|
|
101
87
|
index?: number | undefined;
|
|
102
88
|
id?: string | undefined;
|
|
@@ -106,10 +92,6 @@ export type AgentThoughtStreamingEventToolCalls = {
|
|
|
106
92
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
107
93
|
*/
|
|
108
94
|
thoughtSignature?: string | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* Provider-specific extra content for the tool call.
|
|
111
|
-
*/
|
|
112
|
-
extraContent?: AgentThoughtStreamingEventExtraContent | undefined;
|
|
113
95
|
};
|
|
114
96
|
|
|
115
97
|
export const AgentThoughtStreamingEventDataRole = {
|
|
@@ -428,50 +410,6 @@ export function agentThoughtStreamingEventFunctionFromJSON(
|
|
|
428
410
|
);
|
|
429
411
|
}
|
|
430
412
|
|
|
431
|
-
/** @internal */
|
|
432
|
-
export const AgentThoughtStreamingEventGoogle$inboundSchema: z.ZodType<
|
|
433
|
-
AgentThoughtStreamingEventGoogle,
|
|
434
|
-
z.ZodTypeDef,
|
|
435
|
-
unknown
|
|
436
|
-
> = z.object({
|
|
437
|
-
thought_signature: z.string().optional(),
|
|
438
|
-
}).transform((v) => {
|
|
439
|
-
return remap$(v, {
|
|
440
|
-
"thought_signature": "thoughtSignature",
|
|
441
|
-
});
|
|
442
|
-
});
|
|
443
|
-
|
|
444
|
-
export function agentThoughtStreamingEventGoogleFromJSON(
|
|
445
|
-
jsonString: string,
|
|
446
|
-
): SafeParseResult<AgentThoughtStreamingEventGoogle, SDKValidationError> {
|
|
447
|
-
return safeParse(
|
|
448
|
-
jsonString,
|
|
449
|
-
(x) => AgentThoughtStreamingEventGoogle$inboundSchema.parse(JSON.parse(x)),
|
|
450
|
-
`Failed to parse 'AgentThoughtStreamingEventGoogle' from JSON`,
|
|
451
|
-
);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/** @internal */
|
|
455
|
-
export const AgentThoughtStreamingEventExtraContent$inboundSchema: z.ZodType<
|
|
456
|
-
AgentThoughtStreamingEventExtraContent,
|
|
457
|
-
z.ZodTypeDef,
|
|
458
|
-
unknown
|
|
459
|
-
> = z.object({
|
|
460
|
-
google: z.lazy(() => AgentThoughtStreamingEventGoogle$inboundSchema)
|
|
461
|
-
.optional(),
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
export function agentThoughtStreamingEventExtraContentFromJSON(
|
|
465
|
-
jsonString: string,
|
|
466
|
-
): SafeParseResult<AgentThoughtStreamingEventExtraContent, SDKValidationError> {
|
|
467
|
-
return safeParse(
|
|
468
|
-
jsonString,
|
|
469
|
-
(x) =>
|
|
470
|
-
AgentThoughtStreamingEventExtraContent$inboundSchema.parse(JSON.parse(x)),
|
|
471
|
-
`Failed to parse 'AgentThoughtStreamingEventExtraContent' from JSON`,
|
|
472
|
-
);
|
|
473
|
-
}
|
|
474
|
-
|
|
475
413
|
/** @internal */
|
|
476
414
|
export const AgentThoughtStreamingEventToolCalls$inboundSchema: z.ZodType<
|
|
477
415
|
AgentThoughtStreamingEventToolCalls,
|
|
@@ -484,13 +422,9 @@ export const AgentThoughtStreamingEventToolCalls$inboundSchema: z.ZodType<
|
|
|
484
422
|
function: z.lazy(() => AgentThoughtStreamingEventFunction$inboundSchema)
|
|
485
423
|
.optional(),
|
|
486
424
|
thought_signature: z.string().optional(),
|
|
487
|
-
extra_content: z.lazy(() =>
|
|
488
|
-
AgentThoughtStreamingEventExtraContent$inboundSchema
|
|
489
|
-
).optional(),
|
|
490
425
|
}).transform((v) => {
|
|
491
426
|
return remap$(v, {
|
|
492
427
|
"thought_signature": "thoughtSignature",
|
|
493
|
-
"extra_content": "extraContent",
|
|
494
428
|
});
|
|
495
429
|
});
|
|
496
430
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type AllProjects = {};
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type AllProjects$Outbound = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const AllProjects$outboundSchema: z.ZodType<
|
|
14
|
+
AllProjects$Outbound,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
AllProjects
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function allProjectsToJSON(allProjects: AllProjects): string {
|
|
20
|
+
return JSON.stringify(AllProjects$outboundSchema.parse(allProjects));
|
|
21
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
ServiceAccountOwner,
|
|
9
|
+
ServiceAccountOwner$Outbound,
|
|
10
|
+
ServiceAccountOwner$outboundSchema,
|
|
11
|
+
} from "./serviceaccountowner.js";
|
|
12
|
+
import {
|
|
13
|
+
UserOwner,
|
|
14
|
+
UserOwner$Outbound,
|
|
15
|
+
UserOwner$outboundSchema,
|
|
16
|
+
} from "./userowner.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Owner attribution drives lifecycle.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*
|
|
23
|
+
* `service_account` keys are workspace-owned and outlive any individual
|
|
24
|
+
* user. `user` keys are bound to `user_id`: when the user is removed,
|
|
25
|
+
* disabled, or loses project access, the key is revoked / its scope
|
|
26
|
+
* shrinks accordingly.
|
|
27
|
+
*/
|
|
28
|
+
export type ApiKeyOwner = {
|
|
29
|
+
user?: UserOwner | undefined;
|
|
30
|
+
serviceAccount?: ServiceAccountOwner | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type ApiKeyOwner$Outbound = {
|
|
35
|
+
user?: UserOwner$Outbound | undefined;
|
|
36
|
+
service_account?: ServiceAccountOwner$Outbound | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ApiKeyOwner$outboundSchema: z.ZodType<
|
|
41
|
+
ApiKeyOwner$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
ApiKeyOwner
|
|
44
|
+
> = z.object({
|
|
45
|
+
user: UserOwner$outboundSchema.optional(),
|
|
46
|
+
serviceAccount: ServiceAccountOwner$outboundSchema.optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
serviceAccount: "service_account",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function apiKeyOwnerToJSON(apiKeyOwner: ApiKeyOwner): string {
|
|
54
|
+
return JSON.stringify(ApiKeyOwner$outboundSchema.parse(apiKeyOwner));
|
|
55
|
+
}
|
|
@@ -16,7 +16,7 @@ export type ApiKeyRestResponse = {
|
|
|
16
16
|
name: string;
|
|
17
17
|
workspaceId: string;
|
|
18
18
|
/**
|
|
19
|
-
* Raw on create
|
|
19
|
+
* Raw on create/retrieve and masked in list responses.
|
|
20
20
|
*/
|
|
21
21
|
token: string;
|
|
22
22
|
active?: boolean | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ApiKeyStatus = {
|
|
9
|
+
ApiKeyStatusUnspecified: "API_KEY_STATUS_UNSPECIFIED",
|
|
10
|
+
ApiKeyStatusActive: "API_KEY_STATUS_ACTIVE",
|
|
11
|
+
ApiKeyStatusDisabled: "API_KEY_STATUS_DISABLED",
|
|
12
|
+
ApiKeyStatusRevoked: "API_KEY_STATUS_REVOKED",
|
|
13
|
+
} as const;
|
|
14
|
+
export type ApiKeyStatus = ClosedEnum<typeof ApiKeyStatus>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ApiKeyStatus$outboundSchema: z.ZodNativeEnum<typeof ApiKeyStatus> =
|
|
18
|
+
z.nativeEnum(ApiKeyStatus);
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
import { Value, Value$inboundSchema } from "./value.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
14
|
+
*/
|
|
15
|
+
export type AuditLogMetadata = {};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* An audit log entry for an entity event in the authenticated workspace.
|
|
19
|
+
*/
|
|
20
|
+
export type AuditLog = {
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier for the audit log entry.
|
|
23
|
+
*/
|
|
24
|
+
auditLogId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Project associated with the event, when the audited entity belongs to a project.
|
|
27
|
+
*/
|
|
28
|
+
projectId?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Identifier of the entity that changed.
|
|
31
|
+
*/
|
|
32
|
+
entityId: string;
|
|
33
|
+
entityType: Value;
|
|
34
|
+
action: Value;
|
|
35
|
+
/**
|
|
36
|
+
* User or system actor that caused the event, when available.
|
|
37
|
+
*/
|
|
38
|
+
actorId?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* IP address observed for the actor, when available.
|
|
41
|
+
*/
|
|
42
|
+
actorIp?: string | undefined;
|
|
43
|
+
actorType?: Value | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Human readable actor name captured when the action happened.
|
|
46
|
+
*/
|
|
47
|
+
actorDisplay?: string | undefined;
|
|
48
|
+
origin?: Value | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Correlates the entry with the originating request.
|
|
51
|
+
*/
|
|
52
|
+
requestId?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Time when the audit log entry was created.
|
|
55
|
+
*/
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
59
|
+
*/
|
|
60
|
+
metadata?: AuditLogMetadata | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const AuditLogMetadata$inboundSchema: z.ZodType<
|
|
65
|
+
AuditLogMetadata,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({});
|
|
69
|
+
|
|
70
|
+
export function auditLogMetadataFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<AuditLogMetadata, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => AuditLogMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'AuditLogMetadata' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AuditLog$inboundSchema: z.ZodType<
|
|
82
|
+
AuditLog,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
audit_log_id: z.string(),
|
|
87
|
+
project_id: z.string().optional(),
|
|
88
|
+
entity_id: z.string(),
|
|
89
|
+
entity_type: Value$inboundSchema,
|
|
90
|
+
action: Value$inboundSchema,
|
|
91
|
+
actor_id: z.string().optional(),
|
|
92
|
+
actor_ip: z.string().optional(),
|
|
93
|
+
actor_type: Value$inboundSchema.optional(),
|
|
94
|
+
actor_display: z.string().optional(),
|
|
95
|
+
origin: Value$inboundSchema.optional(),
|
|
96
|
+
request_id: z.string().optional(),
|
|
97
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
98
|
+
metadata: z.lazy(() => AuditLogMetadata$inboundSchema).optional(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
"audit_log_id": "auditLogId",
|
|
102
|
+
"project_id": "projectId",
|
|
103
|
+
"entity_id": "entityId",
|
|
104
|
+
"entity_type": "entityType",
|
|
105
|
+
"actor_id": "actorId",
|
|
106
|
+
"actor_ip": "actorIp",
|
|
107
|
+
"actor_type": "actorType",
|
|
108
|
+
"actor_display": "actorDisplay",
|
|
109
|
+
"request_id": "requestId",
|
|
110
|
+
"created_at": "createdAt",
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export function auditLogFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<AuditLog, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => AuditLog$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'AuditLog' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A single advanced filter applied to audit logs.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditLogFilter = {
|
|
11
|
+
/**
|
|
12
|
+
* Filter value type, such as string, date, number, boolean, or array.
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, origin, and metadata.display_name.
|
|
17
|
+
*/
|
|
18
|
+
path: string;
|
|
19
|
+
/**
|
|
20
|
+
* Filter operator supported by the selected field type.
|
|
21
|
+
*/
|
|
22
|
+
operator: string;
|
|
23
|
+
/**
|
|
24
|
+
* Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
|
|
25
|
+
*/
|
|
26
|
+
value?: any | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type AuditLogFilter$Outbound = {
|
|
31
|
+
type: string;
|
|
32
|
+
path: string;
|
|
33
|
+
operator: string;
|
|
34
|
+
value?: any | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AuditLogFilter$outboundSchema: z.ZodType<
|
|
39
|
+
AuditLogFilter$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AuditLogFilter
|
|
42
|
+
> = z.object({
|
|
43
|
+
type: z.string(),
|
|
44
|
+
path: z.string(),
|
|
45
|
+
operator: z.string(),
|
|
46
|
+
value: z.any().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function auditLogFilterToJSON(auditLogFilter: AuditLogFilter): string {
|
|
50
|
+
return JSON.stringify(AuditLogFilter$outboundSchema.parse(auditLogFilter));
|
|
51
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
AuditLogFilter,
|
|
8
|
+
AuditLogFilter$Outbound,
|
|
9
|
+
AuditLogFilter$outboundSchema,
|
|
10
|
+
} from "./auditlogfilter.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Search and advanced filters for querying audit logs.
|
|
14
|
+
*/
|
|
15
|
+
export type AuditLogFilterQuery = {
|
|
16
|
+
/**
|
|
17
|
+
* Optional text search applied to supported display fields.
|
|
18
|
+
*/
|
|
19
|
+
search?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Logical operator used to combine filters.
|
|
22
|
+
*/
|
|
23
|
+
operator: string;
|
|
24
|
+
/**
|
|
25
|
+
* Advanced filters applied to the query.
|
|
26
|
+
*/
|
|
27
|
+
filters: Array<AuditLogFilter>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type AuditLogFilterQuery$Outbound = {
|
|
32
|
+
search?: string | undefined;
|
|
33
|
+
operator: string;
|
|
34
|
+
filters: Array<AuditLogFilter$Outbound>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AuditLogFilterQuery$outboundSchema: z.ZodType<
|
|
39
|
+
AuditLogFilterQuery$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AuditLogFilterQuery
|
|
42
|
+
> = z.object({
|
|
43
|
+
search: z.string().optional(),
|
|
44
|
+
operator: z.string(),
|
|
45
|
+
filters: z.array(AuditLogFilter$outboundSchema),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function auditLogFilterQueryToJSON(
|
|
49
|
+
auditLogFilterQuery: AuditLogFilterQuery,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
AuditLogFilterQuery$outboundSchema.parse(auditLogFilterQuery),
|
|
53
|
+
);
|
|
54
|
+
}
|
package/packages/orq-rc/src/models/{operations/listwikis.ts → components/auditlogpagination.ts}
RENAMED
|
@@ -5,50 +5,51 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Cursor pagination settings for audit log queries.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditLogPagination = {
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of audit logs to return. Defaults to 50 when omitted.
|
|
14
|
+
*/
|
|
9
15
|
limit?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Cursor for the next page. Use the last audit_log_id from the previous page.
|
|
18
|
+
*/
|
|
10
19
|
startingAfter?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Cursor for the previous page. Use the first audit_log_id from the current page.
|
|
22
|
+
*/
|
|
11
23
|
endingBefore?: string | undefined;
|
|
12
|
-
repositoryKey?: string | undefined;
|
|
13
|
-
branch?: string | undefined;
|
|
14
|
-
factoryId?: string | undefined;
|
|
15
24
|
};
|
|
16
25
|
|
|
17
26
|
/** @internal */
|
|
18
|
-
export type
|
|
27
|
+
export type AuditLogPagination$Outbound = {
|
|
19
28
|
limit?: number | undefined;
|
|
20
29
|
starting_after?: string | undefined;
|
|
21
30
|
ending_before?: string | undefined;
|
|
22
|
-
repository_key?: string | undefined;
|
|
23
|
-
branch?: string | undefined;
|
|
24
|
-
factory_id?: string | undefined;
|
|
25
31
|
};
|
|
26
32
|
|
|
27
33
|
/** @internal */
|
|
28
|
-
export const
|
|
29
|
-
|
|
34
|
+
export const AuditLogPagination$outboundSchema: z.ZodType<
|
|
35
|
+
AuditLogPagination$Outbound,
|
|
30
36
|
z.ZodTypeDef,
|
|
31
|
-
|
|
37
|
+
AuditLogPagination
|
|
32
38
|
> = z.object({
|
|
33
39
|
limit: z.number().int().optional(),
|
|
34
40
|
startingAfter: z.string().optional(),
|
|
35
41
|
endingBefore: z.string().optional(),
|
|
36
|
-
repositoryKey: z.string().optional(),
|
|
37
|
-
branch: z.string().optional(),
|
|
38
|
-
factoryId: z.string().optional(),
|
|
39
42
|
}).transform((v) => {
|
|
40
43
|
return remap$(v, {
|
|
41
44
|
startingAfter: "starting_after",
|
|
42
45
|
endingBefore: "ending_before",
|
|
43
|
-
repositoryKey: "repository_key",
|
|
44
|
-
factoryId: "factory_id",
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
48
|
|
|
48
|
-
export function
|
|
49
|
-
|
|
49
|
+
export function auditLogPaginationToJSON(
|
|
50
|
+
auditLogPagination: AuditLogPagination,
|
|
50
51
|
): string {
|
|
51
52
|
return JSON.stringify(
|
|
52
|
-
|
|
53
|
+
AuditLogPagination$outboundSchema.parse(auditLogPagination),
|
|
53
54
|
);
|
|
54
55
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A sort expression for audit log queries.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditLogSort = {
|
|
11
|
+
/**
|
|
12
|
+
* Audit log field to sort by. Supported keys include _id, created_at, entity_type, entity_id, action, and actor_id.
|
|
13
|
+
*/
|
|
14
|
+
key: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sort direction. Defaults to desc when omitted or invalid.
|
|
17
|
+
*/
|
|
18
|
+
direction?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type AuditLogSort$Outbound = {
|
|
23
|
+
key: string;
|
|
24
|
+
direction?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const AuditLogSort$outboundSchema: z.ZodType<
|
|
29
|
+
AuditLogSort$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
AuditLogSort
|
|
32
|
+
> = z.object({
|
|
33
|
+
key: z.string(),
|
|
34
|
+
direction: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function auditLogSortToJSON(auditLogSort: AuditLogSort): string {
|
|
38
|
+
return JSON.stringify(AuditLogSort$outboundSchema.parse(auditLogSort));
|
|
39
|
+
}
|
|
@@ -27,7 +27,7 @@ export type ClassifyAnswer = {
|
|
|
27
27
|
*/
|
|
28
28
|
choice?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Probability of the selected option or level. Present for choice and score answers.
|
|
31
31
|
*/
|
|
32
32
|
confidence?: number | undefined;
|
|
33
33
|
/**
|
|
@@ -43,7 +43,7 @@ export type ClassifyAnswer = {
|
|
|
43
43
|
*/
|
|
44
44
|
probabilities?: { [k: string]: number } | undefined;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* The selected level index. Present for score answers.
|
|
47
47
|
*/
|
|
48
48
|
score?: number | undefined;
|
|
49
49
|
/**
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { AccessLevel, AccessLevel$outboundSchema } from "./accesslevel.js";
|
|
8
|
+
import {
|
|
9
|
+
ApiKeyOwner,
|
|
10
|
+
ApiKeyOwner$Outbound,
|
|
11
|
+
ApiKeyOwner$outboundSchema,
|
|
12
|
+
} from "./apikeyowner.js";
|
|
13
|
+
import {
|
|
14
|
+
McpAccess,
|
|
15
|
+
McpAccess$Outbound,
|
|
16
|
+
McpAccess$outboundSchema,
|
|
17
|
+
} from "./mcpaccess.js";
|
|
18
|
+
import {
|
|
19
|
+
PermissionMode,
|
|
20
|
+
PermissionMode$outboundSchema,
|
|
21
|
+
} from "./permissionmode.js";
|
|
22
|
+
import {
|
|
23
|
+
ProjectScope,
|
|
24
|
+
ProjectScope$Outbound,
|
|
25
|
+
ProjectScope$outboundSchema,
|
|
26
|
+
} from "./projectscope.js";
|
|
27
|
+
|
|
28
|
+
export type CreateApiKeyRequest = {
|
|
29
|
+
/**
|
|
30
|
+
* Human-readable name. Required.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Owner attribution. Defaults to service_account when omitted.
|
|
35
|
+
*/
|
|
36
|
+
owner?: ApiKeyOwner | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Project authorization scope. Defaults to all-projects when omitted.
|
|
39
|
+
*/
|
|
40
|
+
projectScope?: ProjectScope | undefined;
|
|
41
|
+
permissionMode?: PermissionMode | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Per-domain access map. Required when `permission_mode` =
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* `PERMISSION_MODE_RESTRICTED`. See `ApiKey.access` for the full
|
|
47
|
+
* catalog of valid keys (Domain.id) and AccessLevel string values,
|
|
48
|
+
* or fetch the live catalog via the capability catalog endpoint.
|
|
49
|
+
*/
|
|
50
|
+
access?: { [k: string]: AccessLevel } | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Optional expiration. When set, the authenticate hot-path rejects
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* the key once `expires_at` is in the past. Unset means the key
|
|
56
|
+
* never expires.
|
|
57
|
+
*/
|
|
58
|
+
expiresAt?: Date | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Optional MCP-gateway access restriction. Unset means no
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* restriction. See McpAccess for the deny_all / allow-list semantics.
|
|
64
|
+
*/
|
|
65
|
+
mcpAccess?: McpAccess | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Optional attribution labels (at most 10; keys `^[a-z0-9_.-]{1,32}$`,
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* values up to 64 characters). See ApiKey.labels.
|
|
71
|
+
*/
|
|
72
|
+
labels?: { [k: string]: string } | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type CreateApiKeyRequest$Outbound = {
|
|
77
|
+
name: string;
|
|
78
|
+
owner?: ApiKeyOwner$Outbound | undefined;
|
|
79
|
+
project_scope?: ProjectScope$Outbound | undefined;
|
|
80
|
+
permission_mode?: string | undefined;
|
|
81
|
+
access?: { [k: string]: string } | undefined;
|
|
82
|
+
expires_at?: string | undefined;
|
|
83
|
+
mcp_access?: McpAccess$Outbound | undefined;
|
|
84
|
+
labels?: { [k: string]: string } | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const CreateApiKeyRequest$outboundSchema: z.ZodType<
|
|
89
|
+
CreateApiKeyRequest$Outbound,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
CreateApiKeyRequest
|
|
92
|
+
> = z.object({
|
|
93
|
+
name: z.string(),
|
|
94
|
+
owner: ApiKeyOwner$outboundSchema.optional(),
|
|
95
|
+
projectScope: ProjectScope$outboundSchema.optional(),
|
|
96
|
+
permissionMode: PermissionMode$outboundSchema.optional(),
|
|
97
|
+
access: z.record(AccessLevel$outboundSchema).optional(),
|
|
98
|
+
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
99
|
+
mcpAccess: McpAccess$outboundSchema.optional(),
|
|
100
|
+
labels: z.record(z.string()).optional(),
|
|
101
|
+
}).transform((v) => {
|
|
102
|
+
return remap$(v, {
|
|
103
|
+
projectScope: "project_scope",
|
|
104
|
+
permissionMode: "permission_mode",
|
|
105
|
+
expiresAt: "expires_at",
|
|
106
|
+
mcpAccess: "mcp_access",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function createApiKeyRequestToJSON(
|
|
111
|
+
createApiKeyRequest: CreateApiKeyRequest,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
CreateApiKeyRequest$outboundSchema.parse(createApiKeyRequest),
|
|
115
|
+
);
|
|
116
|
+
}
|