@openrouter/sdk 1.3.21 → 1.3.23
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/esm/funcs/alphaDecisionsCreate.js +5 -5
- package/esm/funcs/analyticsGetAnalyticsMeta.js +4 -4
- package/esm/funcs/analyticsGetUserActivity.js +5 -5
- package/esm/funcs/analyticsQueryAnalytics.js +4 -4
- package/esm/funcs/apiKeysCreate.js +4 -4
- package/esm/funcs/apiKeysDelete.js +4 -4
- package/esm/funcs/apiKeysGet.js +4 -4
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +4 -4
- package/esm/funcs/apiKeysList.js +4 -4
- package/esm/funcs/apiKeysUpdate.js +4 -4
- package/esm/funcs/benchmarksGetBenchmarks.js +5 -5
- package/esm/funcs/byokCreate.js +5 -5
- package/esm/funcs/byokDelete.js +5 -5
- package/esm/funcs/byokGet.js +5 -5
- package/esm/funcs/byokList.js +5 -5
- package/esm/funcs/byokUpdate.js +5 -5
- package/esm/funcs/chatSend.js +4 -4
- package/esm/funcs/classificationsGetTaskClassifications.js +5 -5
- package/esm/funcs/containersDownloadContainerFileContent.js +4 -4
- package/esm/funcs/containersGetContainerFile.js +5 -5
- package/esm/funcs/containersListContainerFiles.js +5 -5
- package/esm/funcs/containersPromoteContainerFile.js +5 -5
- package/esm/funcs/creditsGetCredits.js +4 -4
- package/esm/funcs/datasetsGetAppRankings.js +5 -5
- package/esm/funcs/datasetsGetRankingsDaily.js +5 -5
- package/esm/funcs/datasetsGetSessionCost.js +5 -5
- package/esm/funcs/embeddingsGenerate.js +5 -5
- package/esm/funcs/embeddingsListModels.js +5 -5
- package/esm/funcs/endpointsList.js +4 -4
- package/esm/funcs/endpointsListZdrEndpoints.js +4 -4
- package/esm/funcs/filesDelete.js +5 -5
- package/esm/funcs/filesDownload.js +4 -4
- package/esm/funcs/filesList.js +4 -4
- package/esm/funcs/filesRetrieve.js +5 -5
- package/esm/funcs/filesUpload.js +5 -5
- package/esm/funcs/generationsGetGeneration.js +5 -5
- package/esm/funcs/generationsListGenerationContent.js +5 -5
- package/esm/funcs/generationsSubmitFeedback.js +5 -5
- package/esm/funcs/guardrailsBulkAssignKeys.js +5 -5
- package/esm/funcs/guardrailsBulkAssignMembers.js +5 -5
- package/esm/funcs/guardrailsBulkUnassignKeys.js +5 -5
- package/esm/funcs/guardrailsBulkUnassignMembers.js +5 -5
- package/esm/funcs/guardrailsCreate.js +5 -5
- package/esm/funcs/guardrailsDelete.js +5 -5
- package/esm/funcs/guardrailsGet.js +5 -5
- package/esm/funcs/guardrailsList.js +5 -5
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +5 -5
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +4 -4
- package/esm/funcs/guardrailsListKeyAssignments.js +5 -5
- package/esm/funcs/guardrailsListMemberAssignments.js +5 -5
- package/esm/funcs/guardrailsUpdate.js +5 -5
- package/esm/funcs/imagesGenerate.js +4 -4
- package/esm/funcs/imagesListModelEndpoints.js +5 -5
- package/esm/funcs/imagesListModels.js +5 -5
- package/esm/funcs/internsChat.js +8 -8
- package/esm/funcs/internsCreateIntern.js +5 -5
- package/esm/funcs/internsDeleteIntern.js +5 -5
- package/esm/funcs/internsGetIntern.js +5 -5
- package/esm/funcs/internsInvoke.js +7 -7
- package/esm/funcs/internsListInterns.js +5 -5
- package/esm/funcs/internsProvisionIntern.js +5 -5
- package/esm/funcs/internsSuspendIntern.js +5 -5
- package/esm/funcs/internsUpdateIntern.js +5 -5
- package/esm/funcs/modelsCount.js +5 -5
- package/esm/funcs/modelsGet.js +5 -5
- package/esm/funcs/modelsList.js +4 -4
- package/esm/funcs/modelsListForUser.js +5 -5
- package/esm/funcs/oAuthCreateAuthCode.js +4 -4
- package/esm/funcs/oAuthCreateOauthToken.js +5 -5
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +4 -4
- package/esm/funcs/oAuthListOauthJwks.js +5 -5
- package/esm/funcs/observabilityCreate.js +5 -5
- package/esm/funcs/observabilityDelete.js +5 -5
- package/esm/funcs/observabilityGet.js +5 -5
- package/esm/funcs/observabilityList.js +4 -4
- package/esm/funcs/observabilityUpdate.js +5 -5
- package/esm/funcs/organizationListMembers.js +5 -5
- package/esm/funcs/presetsCreatePresetsChatCompletions.js +5 -5
- package/esm/funcs/presetsCreatePresetsMessages.js +5 -5
- package/esm/funcs/presetsCreatePresetsResponses.js +5 -5
- package/esm/funcs/presetsGet.js +5 -5
- package/esm/funcs/presetsGetVersion.js +5 -5
- package/esm/funcs/presetsList.js +5 -5
- package/esm/funcs/presetsListVersions.js +5 -5
- package/esm/funcs/providersList.js +4 -4
- package/esm/funcs/rerankRerank.js +5 -5
- package/esm/funcs/responsesSend.js +4 -4
- package/esm/funcs/scimCreate.js +5 -5
- package/esm/funcs/scimCreateSyncJob.js +5 -5
- package/esm/funcs/scimDelete.js +5 -5
- package/esm/funcs/scimGetSyncJob.js +5 -5
- package/esm/funcs/scimListGroups.js +5 -5
- package/esm/funcs/scimListMappings.js +5 -5
- package/esm/funcs/scimRead.js +5 -5
- package/esm/funcs/scimUpdate.js +5 -5
- package/esm/funcs/sttCreateTranscription.js +5 -5
- package/esm/funcs/sttCreateTranscriptionMultipart.js +5 -5
- package/esm/funcs/systemOneCreate.js +5 -5
- package/esm/funcs/ttsCreateSpeech.js +4 -4
- package/esm/funcs/vaultCopyVaultSecretsToIntern.js +5 -5
- package/esm/funcs/vaultDeleteInternVaultSecret.js +4 -4
- package/esm/funcs/vaultDeleteVaultSecret.js +4 -4
- package/esm/funcs/vaultListInternVaultSecrets.js +5 -5
- package/esm/funcs/vaultListVaultSecrets.js +5 -5
- package/esm/funcs/vaultStoreInternVaultSecret.js +5 -5
- package/esm/funcs/vaultStoreVaultSecret.js +5 -5
- package/esm/funcs/videoGenerationGenerate.js +5 -5
- package/esm/funcs/videoGenerationGetGeneration.js +5 -5
- package/esm/funcs/videoGenerationGetVideoContent.js +4 -4
- package/esm/funcs/videoGenerationListVideosModels.js +5 -5
- package/esm/funcs/workspacesBulkAddMembers.js +5 -5
- package/esm/funcs/workspacesBulkRemoveMembers.js +5 -5
- package/esm/funcs/workspacesCreate.js +5 -5
- package/esm/funcs/workspacesDelete.js +5 -5
- package/esm/funcs/workspacesDeleteBudget.js +5 -5
- package/esm/funcs/workspacesGet.js +5 -5
- package/esm/funcs/workspacesGetBudget.js +5 -5
- package/esm/funcs/workspacesList.js +5 -5
- package/esm/funcs/workspacesListBudgets.js +5 -5
- package/esm/funcs/workspacesListMembers.js +5 -5
- package/esm/funcs/workspacesSetBudget.js +5 -5
- package/esm/funcs/workspacesUpdate.js +5 -5
- package/esm/lib/anthropic-compat.d.ts +2 -2
- package/esm/lib/async-params.d.ts +4 -4
- package/esm/lib/chat-compat.d.ts +3 -2
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/conversation-state.d.ts +7 -5
- package/esm/lib/model-result.d.ts +7 -4
- package/esm/lib/next-turn-params.d.ts +4 -4
- package/esm/lib/stream-transformers.d.ts +26 -17
- package/esm/lib/stream-type-guards.d.ts +41 -21
- package/esm/lib/tool-orchestrator.d.ts +7 -5
- package/esm/lib/tool-types.d.ts +14 -10
- package/esm/lib/turn-context.d.ts +6 -4
- package/esm/lib/turn-context.js +2 -2
- package/esm/models/customtoolcallitem.d.ts +8 -8
- package/esm/models/customtoolcallitem.js +4 -4
- package/esm/models/errors/badgatewayresponseerror.js +2 -2
- package/esm/models/errors/badrequestresponseerror.js +2 -2
- package/esm/models/errors/conflictresponseerror.js +2 -2
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +2 -2
- package/esm/models/errors/forbiddenresponseerror.js +2 -2
- package/esm/models/errors/gatewaytimeoutresponseerror.js +2 -2
- package/esm/models/errors/goneresponseerror.js +2 -2
- package/esm/models/errors/internalserverresponseerror.js +2 -2
- package/esm/models/errors/internchaterrorresponse.js +2 -2
- package/esm/models/errors/internlifecycleerror.js +2 -2
- package/esm/models/errors/notfoundresponseerror.js +2 -2
- package/esm/models/errors/oautherrorresponse.js +2 -2
- package/esm/models/errors/payloadtoolargeresponseerror.js +2 -2
- package/esm/models/errors/paymentrequiredresponseerror.js +2 -2
- package/esm/models/errors/provideroverloadedresponseerror.js +2 -2
- package/esm/models/errors/requesttimeoutresponseerror.js +2 -2
- package/esm/models/errors/serviceunavailableresponseerror.js +2 -2
- package/esm/models/errors/toomanyrequestsresponseerror.js +2 -2
- package/esm/models/errors/unauthorizedresponseerror.js +2 -2
- package/esm/models/errors/unprocessableentityresponseerror.js +2 -2
- package/esm/models/functioncallitem.d.ts +12 -12
- package/esm/models/functioncallitem.js +6 -6
- package/esm/models/inputsunion.d.ts +4 -6
- package/esm/models/inputsunion.js +2 -8
- package/esm/models/operations/bulkaddworkspacemembers.js +2 -2
- package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
- package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
- package/esm/models/operations/bulkremoveworkspacemembers.js +2 -2
- package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
- package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
- package/esm/models/operations/copyvaultsecretstointern.js +2 -2
- package/esm/models/operations/createapialphadecisions.js +2 -2
- package/esm/models/operations/createaudiospeech.js +2 -2
- package/esm/models/operations/createaudiotranscriptions.js +2 -2
- package/esm/models/operations/createbyokkey.js +2 -2
- package/esm/models/operations/createembeddings.js +10 -10
- package/esm/models/operations/createguardrail.js +2 -2
- package/esm/models/operations/createimages.js +4 -4
- package/esm/models/operations/createintern.js +2 -2
- package/esm/models/operations/createinternchatcompletion.js +6 -6
- package/esm/models/operations/createoauthtoken.js +2 -2
- package/esm/models/operations/createobservabilitydestination.js +2 -2
- package/esm/models/operations/createpresetschatcompletions.js +2 -2
- package/esm/models/operations/createpresetsmessages.js +2 -2
- package/esm/models/operations/createpresetsresponses.js +2 -2
- package/esm/models/operations/creatererank.js +3 -3
- package/esm/models/operations/createresponses.js +5 -5
- package/esm/models/operations/createscimgroupmapping.js +2 -2
- package/esm/models/operations/createscimsyncjob.js +2 -2
- package/esm/models/operations/createsystemone.js +2 -2
- package/esm/models/operations/createvideos.js +2 -2
- package/esm/models/operations/createworkspace.js +2 -2
- package/esm/models/operations/deletefile.js +2 -2
- package/esm/models/operations/deleteintern.js +2 -2
- package/esm/models/operations/deleteworkspacebudget.js +2 -2
- package/esm/models/operations/downloadfilecontent.js +2 -2
- package/esm/models/operations/getapprankings.js +2 -2
- package/esm/models/operations/getcurrentkey.js +2 -2
- package/esm/models/operations/getfilemetadata.js +2 -2
- package/esm/models/operations/getmodels.js +2 -2
- package/esm/models/operations/getsessioncost.js +2 -2
- package/esm/models/operations/getworkspacebudget.js +2 -2
- package/esm/models/operations/invokeintern.js +3 -3
- package/esm/models/operations/listbyokkeys.js +2 -2
- package/esm/models/operations/listembeddingsmodels.js +2 -2
- package/esm/models/operations/listendpoints.js +2 -2
- package/esm/models/operations/listendpointszdr.js +2 -2
- package/esm/models/operations/listfiles.js +3 -3
- package/esm/models/operations/listguardrailkeyassignments.js +2 -2
- package/esm/models/operations/listguardrailmemberassignments.js +2 -2
- package/esm/models/operations/listguardrails.js +2 -2
- package/esm/models/operations/listkeyassignments.js +2 -2
- package/esm/models/operations/listmemberassignments.js +2 -2
- package/esm/models/operations/listmodelsuser.js +2 -2
- package/esm/models/operations/listobservabilitydestinations.js +2 -2
- package/esm/models/operations/listpresets.js +2 -2
- package/esm/models/operations/listpresetversions.js +2 -2
- package/esm/models/operations/listscimgroupmappings.js +2 -2
- package/esm/models/operations/listscimgroups.js +2 -2
- package/esm/models/operations/listworkspacemembers.js +2 -2
- package/esm/models/operations/listworkspaces.js +2 -2
- package/esm/models/operations/sendchatcompletionrequest.js +5 -5
- package/esm/models/operations/storeinternvaultsecret.js +2 -2
- package/esm/models/operations/storevaultsecret.js +2 -2
- package/esm/models/operations/submitgenerationfeedback.js +2 -2
- package/esm/models/operations/updatebyokkey.js +2 -2
- package/esm/models/operations/updateguardrail.js +2 -2
- package/esm/models/operations/updateintern.js +2 -2
- package/esm/models/operations/updateobservabilitydestination.js +2 -2
- package/esm/models/operations/updatescimgroupmapping.js +2 -2
- package/esm/models/operations/updateworkspace.js +2 -2
- package/esm/models/operations/uploadfile.js +2 -2
- package/esm/models/operations/upsertworkspacebudget.js +3 -3
- package/esm/models/outputcustomtoolcallitem.d.ts +2 -26
- package/esm/models/outputcustomtoolcallitem.js +1 -28
- package/esm/models/outputfunctioncallitem.d.ts +1 -44
- package/esm/models/outputfunctioncallitem.js +1 -64
- package/esm/models/outputitems.d.ts +2 -6
- package/esm/models/outputitems.js +2 -2
- package/jsr.json +1 -1
- package/package.json +10 -8
- package/scripts/unbarrel-imports.js +296 -0
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateBYOKKeyRequest$outboundSchema as models_UpdateBYOKKeyRequest$outboundSchema } from "../updatebyokkeyrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateBYOKKeyRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateBYOKKeyRequest:
|
|
14
|
+
updateBYOKKeyRequest: models_UpdateBYOKKeyRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateGuardrailRequest$outboundSchema as models_UpdateGuardrailRequest$outboundSchema } from "../updateguardrailrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateGuardrailRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateGuardrailRequest:
|
|
14
|
+
updateGuardrailRequest: models_UpdateGuardrailRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateInternRequest$outboundSchema as models_UpdateInternRequest$outboundSchema } from "../updateinternrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateInternRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
internId: z.string(),
|
|
14
|
-
updateInternRequest:
|
|
14
|
+
updateInternRequest: models_UpdateInternRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateObservabilityDestinationRequest$outboundSchema as models_UpdateObservabilityDestinationRequest$outboundSchema } from "../updateobservabilitydestinationrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateObservabilityDestinationRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateObservabilityDestinationRequest:
|
|
14
|
+
updateObservabilityDestinationRequest: models_UpdateObservabilityDestinationRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateScimGroupMappingRequest$outboundSchema as models_UpdateScimGroupMappingRequest$outboundSchema } from "../updatescimgroupmappingrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateScimGroupMappingRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateScimGroupMappingRequest:
|
|
14
|
+
updateScimGroupMappingRequest: models_UpdateScimGroupMappingRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateWorkspaceRequest$outboundSchema as models_UpdateWorkspaceRequest$outboundSchema } from "../updateworkspacerequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateWorkspaceRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateWorkspaceRequest:
|
|
14
|
+
updateWorkspaceRequest: models_UpdateWorkspaceRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { blobLikeSchema } from "../../types/blobs.js";
|
|
8
|
-
import
|
|
8
|
+
import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const UploadFileFile$outboundSchema = z.object({
|
|
11
11
|
fileName: z.string(),
|
|
@@ -32,7 +32,7 @@ export const UploadFileRequest$outboundSchema = z.object({
|
|
|
32
32
|
appTitle: z.string().optional(),
|
|
33
33
|
appCategories: z.string().optional(),
|
|
34
34
|
workspaceId: z.string().optional(),
|
|
35
|
-
provider:
|
|
35
|
+
provider: models_FileProvider$outboundSchema.optional(),
|
|
36
36
|
requestBody: z.lazy(() => UploadFileRequestBody$outboundSchema),
|
|
37
37
|
}).transform((v) => {
|
|
38
38
|
return remap$(v, {
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpsertWorkspaceBudgetRequest$outboundSchema as models_UpsertWorkspaceBudgetRequest$outboundSchema } from "../upsertworkspacebudgetrequest.js"; import { WorkspaceBudgetInterval$outboundSchema as models_WorkspaceBudgetInterval$outboundSchema } from "../workspacebudgetinterval.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
workspaceRef: z.string(),
|
|
14
|
-
interval:
|
|
15
|
-
upsertWorkspaceBudgetRequest:
|
|
14
|
+
interval: models_WorkspaceBudgetInterval$outboundSchema,
|
|
15
|
+
upsertWorkspaceBudgetRequest: models_UpsertWorkspaceBudgetRequest$outboundSchema,
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
httpReferer: "HTTP-Referer",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
export declare const OutputCustomToolCallItemStatus: {
|
|
@@ -8,10 +8,6 @@ export declare const OutputCustomToolCallItemStatus: {
|
|
|
8
8
|
readonly Incomplete: "incomplete";
|
|
9
9
|
};
|
|
10
10
|
export type OutputCustomToolCallItemStatus = OpenEnum<typeof OutputCustomToolCallItemStatus>;
|
|
11
|
-
export declare const OutputCustomToolCallItemType: {
|
|
12
|
-
readonly CustomToolCall: "custom_tool_call";
|
|
13
|
-
};
|
|
14
|
-
export type OutputCustomToolCallItemType = ClosedEnum<typeof OutputCustomToolCallItemType>;
|
|
15
11
|
/**
|
|
16
12
|
* A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI's `apply_patch` whose payload is opaque text rather than JSON arguments.
|
|
17
13
|
*/
|
|
@@ -29,31 +25,11 @@ export type OutputCustomToolCallItem = {
|
|
|
29
25
|
*/
|
|
30
26
|
namespace?: string | undefined;
|
|
31
27
|
status?: OutputCustomToolCallItemStatus | undefined;
|
|
32
|
-
type:
|
|
28
|
+
type: "custom_tool_call";
|
|
33
29
|
};
|
|
34
30
|
/** @internal */
|
|
35
31
|
export declare const OutputCustomToolCallItemStatus$inboundSchema: z.ZodType<OutputCustomToolCallItemStatus, unknown>;
|
|
36
32
|
/** @internal */
|
|
37
|
-
export declare const OutputCustomToolCallItemStatus$outboundSchema: z.ZodType<string, OutputCustomToolCallItemStatus>;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const OutputCustomToolCallItemType$inboundSchema: z.ZodEnum<typeof OutputCustomToolCallItemType>;
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const OutputCustomToolCallItemType$outboundSchema: z.ZodEnum<typeof OutputCustomToolCallItemType>;
|
|
42
|
-
/** @internal */
|
|
43
33
|
export declare const OutputCustomToolCallItem$inboundSchema: z.ZodType<OutputCustomToolCallItem, unknown>;
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type OutputCustomToolCallItem$Outbound = {
|
|
46
|
-
async?: boolean | undefined;
|
|
47
|
-
call_id: string;
|
|
48
|
-
id?: string | undefined;
|
|
49
|
-
input: string;
|
|
50
|
-
name: string;
|
|
51
|
-
namespace?: string | undefined;
|
|
52
|
-
status?: string | undefined;
|
|
53
|
-
type: string;
|
|
54
|
-
};
|
|
55
|
-
/** @internal */
|
|
56
|
-
export declare const OutputCustomToolCallItem$outboundSchema: z.ZodType<OutputCustomToolCallItem$Outbound, OutputCustomToolCallItem>;
|
|
57
|
-
export declare function outputCustomToolCallItemToJSON(outputCustomToolCallItem: OutputCustomToolCallItem): string;
|
|
58
34
|
export declare function outputCustomToolCallItemFromJSON(jsonString: string): SafeParseResult<OutputCustomToolCallItem, SDKValidationError>;
|
|
59
35
|
//# sourceMappingURL=outputcustomtoolcallitem.d.ts.map
|
|
@@ -11,18 +11,9 @@ export const OutputCustomToolCallItemStatus = {
|
|
|
11
11
|
Completed: "completed",
|
|
12
12
|
Incomplete: "incomplete",
|
|
13
13
|
};
|
|
14
|
-
export const OutputCustomToolCallItemType = {
|
|
15
|
-
CustomToolCall: "custom_tool_call",
|
|
16
|
-
};
|
|
17
14
|
/** @internal */
|
|
18
15
|
export const OutputCustomToolCallItemStatus$inboundSchema = openEnums.inboundSchema(OutputCustomToolCallItemStatus);
|
|
19
16
|
/** @internal */
|
|
20
|
-
export const OutputCustomToolCallItemStatus$outboundSchema = openEnums.outboundSchema(OutputCustomToolCallItemStatus);
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const OutputCustomToolCallItemType$inboundSchema = z.enum(OutputCustomToolCallItemType);
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const OutputCustomToolCallItemType$outboundSchema = OutputCustomToolCallItemType$inboundSchema;
|
|
25
|
-
/** @internal */
|
|
26
17
|
export const OutputCustomToolCallItem$inboundSchema = z.object({
|
|
27
18
|
async: z.boolean().optional(),
|
|
28
19
|
call_id: z.string(),
|
|
@@ -31,30 +22,12 @@ export const OutputCustomToolCallItem$inboundSchema = z.object({
|
|
|
31
22
|
name: z.string(),
|
|
32
23
|
namespace: z.string().optional(),
|
|
33
24
|
status: OutputCustomToolCallItemStatus$inboundSchema.optional(),
|
|
34
|
-
type:
|
|
25
|
+
type: z.literal("custom_tool_call"),
|
|
35
26
|
}).transform((v) => {
|
|
36
27
|
return remap$(v, {
|
|
37
28
|
"call_id": "callId",
|
|
38
29
|
});
|
|
39
30
|
});
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const OutputCustomToolCallItem$outboundSchema = z.object({
|
|
42
|
-
async: z.boolean().optional(),
|
|
43
|
-
callId: z.string(),
|
|
44
|
-
id: z.string().optional(),
|
|
45
|
-
input: z.string(),
|
|
46
|
-
name: z.string(),
|
|
47
|
-
namespace: z.string().optional(),
|
|
48
|
-
status: OutputCustomToolCallItemStatus$outboundSchema.optional(),
|
|
49
|
-
type: OutputCustomToolCallItemType$outboundSchema,
|
|
50
|
-
}).transform((v) => {
|
|
51
|
-
return remap$(v, {
|
|
52
|
-
callId: "call_id",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
export function outputCustomToolCallItemToJSON(outputCustomToolCallItem) {
|
|
56
|
-
return JSON.stringify(OutputCustomToolCallItem$outboundSchema.parse(outputCustomToolCallItem));
|
|
57
|
-
}
|
|
58
31
|
export function outputCustomToolCallItemFromJSON(jsonString) {
|
|
59
32
|
return safeParse(jsonString, (x) => OutputCustomToolCallItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputCustomToolCallItem' from JSON`);
|
|
60
33
|
}
|
|
@@ -15,10 +15,6 @@ export declare const OutputFunctionCallItemStatusCompleted: {
|
|
|
15
15
|
};
|
|
16
16
|
export type OutputFunctionCallItemStatusCompleted = ClosedEnum<typeof OutputFunctionCallItemStatusCompleted>;
|
|
17
17
|
export type OutputFunctionCallItemStatusUnion = OutputFunctionCallItemStatusCompleted | OutputFunctionCallItemStatusIncomplete | OutputFunctionCallItemStatusInProgress;
|
|
18
|
-
export declare const OutputFunctionCallItemType: {
|
|
19
|
-
readonly FunctionCall: "function_call";
|
|
20
|
-
};
|
|
21
|
-
export type OutputFunctionCallItemType = ClosedEnum<typeof OutputFunctionCallItemType>;
|
|
22
18
|
export type OutputFunctionCallItemSubagentItem = {
|
|
23
19
|
type: string;
|
|
24
20
|
additionalProperties?: {
|
|
@@ -39,7 +35,7 @@ export type OutputFunctionCallItem = {
|
|
|
39
35
|
*/
|
|
40
36
|
namespace?: string | undefined;
|
|
41
37
|
status?: OutputFunctionCallItemStatusCompleted | OutputFunctionCallItemStatusIncomplete | OutputFunctionCallItemStatusInProgress | undefined;
|
|
42
|
-
type:
|
|
38
|
+
type: "function_call";
|
|
43
39
|
/**
|
|
44
40
|
* EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.
|
|
45
41
|
*/
|
|
@@ -52,55 +48,16 @@ export type OutputFunctionCallItem = {
|
|
|
52
48
|
/** @internal */
|
|
53
49
|
export declare const OutputFunctionCallItemStatusInProgress$inboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusInProgress>;
|
|
54
50
|
/** @internal */
|
|
55
|
-
export declare const OutputFunctionCallItemStatusInProgress$outboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusInProgress>;
|
|
56
|
-
/** @internal */
|
|
57
51
|
export declare const OutputFunctionCallItemStatusIncomplete$inboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusIncomplete>;
|
|
58
52
|
/** @internal */
|
|
59
|
-
export declare const OutputFunctionCallItemStatusIncomplete$outboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusIncomplete>;
|
|
60
|
-
/** @internal */
|
|
61
53
|
export declare const OutputFunctionCallItemStatusCompleted$inboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusCompleted>;
|
|
62
54
|
/** @internal */
|
|
63
|
-
export declare const OutputFunctionCallItemStatusCompleted$outboundSchema: z.ZodEnum<typeof OutputFunctionCallItemStatusCompleted>;
|
|
64
|
-
/** @internal */
|
|
65
55
|
export declare const OutputFunctionCallItemStatusUnion$inboundSchema: z.ZodType<OutputFunctionCallItemStatusUnion, unknown>;
|
|
66
|
-
/** @internal */
|
|
67
|
-
export type OutputFunctionCallItemStatusUnion$Outbound = string | string | string;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const OutputFunctionCallItemStatusUnion$outboundSchema: z.ZodType<OutputFunctionCallItemStatusUnion$Outbound, OutputFunctionCallItemStatusUnion>;
|
|
70
|
-
export declare function outputFunctionCallItemStatusUnionToJSON(outputFunctionCallItemStatusUnion: OutputFunctionCallItemStatusUnion): string;
|
|
71
56
|
export declare function outputFunctionCallItemStatusUnionFromJSON(jsonString: string): SafeParseResult<OutputFunctionCallItemStatusUnion, SDKValidationError>;
|
|
72
57
|
/** @internal */
|
|
73
|
-
export declare const OutputFunctionCallItemType$inboundSchema: z.ZodEnum<typeof OutputFunctionCallItemType>;
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare const OutputFunctionCallItemType$outboundSchema: z.ZodEnum<typeof OutputFunctionCallItemType>;
|
|
76
|
-
/** @internal */
|
|
77
58
|
export declare const OutputFunctionCallItemSubagentItem$inboundSchema: z.ZodType<OutputFunctionCallItemSubagentItem, unknown>;
|
|
78
|
-
/** @internal */
|
|
79
|
-
export type OutputFunctionCallItemSubagentItem$Outbound = {
|
|
80
|
-
type: string;
|
|
81
|
-
[additionalProperties: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const OutputFunctionCallItemSubagentItem$outboundSchema: z.ZodType<OutputFunctionCallItemSubagentItem$Outbound, OutputFunctionCallItemSubagentItem>;
|
|
85
|
-
export declare function outputFunctionCallItemSubagentItemToJSON(outputFunctionCallItemSubagentItem: OutputFunctionCallItemSubagentItem): string;
|
|
86
59
|
export declare function outputFunctionCallItemSubagentItemFromJSON(jsonString: string): SafeParseResult<OutputFunctionCallItemSubagentItem, SDKValidationError>;
|
|
87
60
|
/** @internal */
|
|
88
61
|
export declare const OutputFunctionCallItem$inboundSchema: z.ZodType<OutputFunctionCallItem, unknown>;
|
|
89
|
-
/** @internal */
|
|
90
|
-
export type OutputFunctionCallItem$Outbound = {
|
|
91
|
-
arguments: string;
|
|
92
|
-
async?: boolean | undefined;
|
|
93
|
-
call_id: string;
|
|
94
|
-
id?: string | undefined;
|
|
95
|
-
name: string;
|
|
96
|
-
namespace?: string | undefined;
|
|
97
|
-
status?: string | string | string | undefined;
|
|
98
|
-
type: string;
|
|
99
|
-
subagent_id?: string | undefined;
|
|
100
|
-
subagent_items?: Array<OutputFunctionCallItemSubagentItem$Outbound> | undefined;
|
|
101
|
-
};
|
|
102
|
-
/** @internal */
|
|
103
|
-
export declare const OutputFunctionCallItem$outboundSchema: z.ZodType<OutputFunctionCallItem$Outbound, OutputFunctionCallItem>;
|
|
104
|
-
export declare function outputFunctionCallItemToJSON(outputFunctionCallItem: OutputFunctionCallItem): string;
|
|
105
62
|
export declare function outputFunctionCallItemFromJSON(jsonString: string): SafeParseResult<OutputFunctionCallItem, SDKValidationError>;
|
|
106
63
|
//# sourceMappingURL=outputfunctioncallitem.d.ts.map
|
|
@@ -14,62 +14,25 @@ export const OutputFunctionCallItemStatusIncomplete = {
|
|
|
14
14
|
export const OutputFunctionCallItemStatusCompleted = {
|
|
15
15
|
Completed: "completed",
|
|
16
16
|
};
|
|
17
|
-
export const OutputFunctionCallItemType = {
|
|
18
|
-
FunctionCall: "function_call",
|
|
19
|
-
};
|
|
20
17
|
/** @internal */
|
|
21
18
|
export const OutputFunctionCallItemStatusInProgress$inboundSchema = z.enum(OutputFunctionCallItemStatusInProgress);
|
|
22
19
|
/** @internal */
|
|
23
|
-
export const OutputFunctionCallItemStatusInProgress$outboundSchema = OutputFunctionCallItemStatusInProgress$inboundSchema;
|
|
24
|
-
/** @internal */
|
|
25
20
|
export const OutputFunctionCallItemStatusIncomplete$inboundSchema = z.enum(OutputFunctionCallItemStatusIncomplete);
|
|
26
21
|
/** @internal */
|
|
27
|
-
export const OutputFunctionCallItemStatusIncomplete$outboundSchema = OutputFunctionCallItemStatusIncomplete$inboundSchema;
|
|
28
|
-
/** @internal */
|
|
29
22
|
export const OutputFunctionCallItemStatusCompleted$inboundSchema = z.enum(OutputFunctionCallItemStatusCompleted);
|
|
30
23
|
/** @internal */
|
|
31
|
-
export const OutputFunctionCallItemStatusCompleted$outboundSchema = OutputFunctionCallItemStatusCompleted$inboundSchema;
|
|
32
|
-
/** @internal */
|
|
33
24
|
export const OutputFunctionCallItemStatusUnion$inboundSchema = z.union([
|
|
34
25
|
OutputFunctionCallItemStatusCompleted$inboundSchema,
|
|
35
26
|
OutputFunctionCallItemStatusIncomplete$inboundSchema,
|
|
36
27
|
OutputFunctionCallItemStatusInProgress$inboundSchema,
|
|
37
28
|
]);
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const OutputFunctionCallItemStatusUnion$outboundSchema = z.union([
|
|
40
|
-
OutputFunctionCallItemStatusCompleted$outboundSchema,
|
|
41
|
-
OutputFunctionCallItemStatusIncomplete$outboundSchema,
|
|
42
|
-
OutputFunctionCallItemStatusInProgress$outboundSchema,
|
|
43
|
-
]);
|
|
44
|
-
export function outputFunctionCallItemStatusUnionToJSON(outputFunctionCallItemStatusUnion) {
|
|
45
|
-
return JSON.stringify(OutputFunctionCallItemStatusUnion$outboundSchema.parse(outputFunctionCallItemStatusUnion));
|
|
46
|
-
}
|
|
47
29
|
export function outputFunctionCallItemStatusUnionFromJSON(jsonString) {
|
|
48
30
|
return safeParse(jsonString, (x) => OutputFunctionCallItemStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputFunctionCallItemStatusUnion' from JSON`);
|
|
49
31
|
}
|
|
50
32
|
/** @internal */
|
|
51
|
-
export const OutputFunctionCallItemType$inboundSchema = z.enum(OutputFunctionCallItemType);
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const OutputFunctionCallItemType$outboundSchema = OutputFunctionCallItemType$inboundSchema;
|
|
54
|
-
/** @internal */
|
|
55
33
|
export const OutputFunctionCallItemSubagentItem$inboundSchema = collectExtraKeys$(z.object({
|
|
56
34
|
type: z.string(),
|
|
57
35
|
}).catchall(z.any()), "additionalProperties", true);
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const OutputFunctionCallItemSubagentItem$outboundSchema = z.object({
|
|
60
|
-
type: z.string(),
|
|
61
|
-
additionalProperties: z.record(z.string(), z.any()).optional(),
|
|
62
|
-
}).transform((v) => {
|
|
63
|
-
return {
|
|
64
|
-
...v.additionalProperties,
|
|
65
|
-
...remap$(v, {
|
|
66
|
-
additionalProperties: null,
|
|
67
|
-
}),
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
export function outputFunctionCallItemSubagentItemToJSON(outputFunctionCallItemSubagentItem) {
|
|
71
|
-
return JSON.stringify(OutputFunctionCallItemSubagentItem$outboundSchema.parse(outputFunctionCallItemSubagentItem));
|
|
72
|
-
}
|
|
73
36
|
export function outputFunctionCallItemSubagentItemFromJSON(jsonString) {
|
|
74
37
|
return safeParse(jsonString, (x) => OutputFunctionCallItemSubagentItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputFunctionCallItemSubagentItem' from JSON`);
|
|
75
38
|
}
|
|
@@ -86,7 +49,7 @@ export const OutputFunctionCallItem$inboundSchema = z.object({
|
|
|
86
49
|
OutputFunctionCallItemStatusIncomplete$inboundSchema,
|
|
87
50
|
OutputFunctionCallItemStatusInProgress$inboundSchema,
|
|
88
51
|
]).optional(),
|
|
89
|
-
type:
|
|
52
|
+
type: z.literal("function_call"),
|
|
90
53
|
subagent_id: z.string().optional(),
|
|
91
54
|
subagent_items: z.array(z.lazy(() => OutputFunctionCallItemSubagentItem$inboundSchema)).optional(),
|
|
92
55
|
}).transform((v) => {
|
|
@@ -96,32 +59,6 @@ export const OutputFunctionCallItem$inboundSchema = z.object({
|
|
|
96
59
|
"subagent_items": "subagentItems",
|
|
97
60
|
});
|
|
98
61
|
});
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const OutputFunctionCallItem$outboundSchema = z.object({
|
|
101
|
-
arguments: z.string(),
|
|
102
|
-
async: z.boolean().optional(),
|
|
103
|
-
callId: z.string(),
|
|
104
|
-
id: z.string().optional(),
|
|
105
|
-
name: z.string(),
|
|
106
|
-
namespace: z.string().optional(),
|
|
107
|
-
status: z.union([
|
|
108
|
-
OutputFunctionCallItemStatusCompleted$outboundSchema,
|
|
109
|
-
OutputFunctionCallItemStatusIncomplete$outboundSchema,
|
|
110
|
-
OutputFunctionCallItemStatusInProgress$outboundSchema,
|
|
111
|
-
]).optional(),
|
|
112
|
-
type: OutputFunctionCallItemType$outboundSchema,
|
|
113
|
-
subagentId: z.string().optional(),
|
|
114
|
-
subagentItems: z.array(z.lazy(() => OutputFunctionCallItemSubagentItem$outboundSchema)).optional(),
|
|
115
|
-
}).transform((v) => {
|
|
116
|
-
return remap$(v, {
|
|
117
|
-
callId: "call_id",
|
|
118
|
-
subagentId: "subagent_id",
|
|
119
|
-
subagentItems: "subagent_items",
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
export function outputFunctionCallItemToJSON(outputFunctionCallItem) {
|
|
123
|
-
return JSON.stringify(OutputFunctionCallItem$outboundSchema.parse(outputFunctionCallItem));
|
|
124
|
-
}
|
|
125
62
|
export function outputFunctionCallItemFromJSON(jsonString) {
|
|
126
63
|
return safeParse(jsonString, (x) => OutputFunctionCallItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputFunctionCallItem' from JSON`);
|
|
127
64
|
}
|
|
@@ -40,13 +40,9 @@ export type OutputItems = OutputApplyPatchCallItem | (OutputCodeInterpreterCallI
|
|
|
40
40
|
type: "code_interpreter_call";
|
|
41
41
|
}) | (OutputComputerCallItem & {
|
|
42
42
|
type: "computer_call";
|
|
43
|
-
}) |
|
|
44
|
-
type: "custom_tool_call";
|
|
45
|
-
}) | (OutputFileSearchCallItem & {
|
|
43
|
+
}) | OutputCustomToolCallItem | (OutputFileSearchCallItem & {
|
|
46
44
|
type: "file_search_call";
|
|
47
|
-
}) |
|
|
48
|
-
type: "function_call";
|
|
49
|
-
}) | (OutputImageGenerationCallItem & {
|
|
45
|
+
}) | OutputFunctionCallItem | (OutputImageGenerationCallItem & {
|
|
50
46
|
type: "image_generation_call";
|
|
51
47
|
}) | OutputMessageItem | (OutputAdvisorServerToolItem & {
|
|
52
48
|
type: "openrouter:advisor";
|
|
@@ -41,9 +41,9 @@ export const OutputItems$inboundSchema = discriminatedUnion("type", {
|
|
|
41
41
|
apply_patch_call: OutputApplyPatchCallItem$inboundSchema,
|
|
42
42
|
code_interpreter_call: OutputCodeInterpreterCallItem$inboundSchema.and(z.object({ type: z.literal("code_interpreter_call") })),
|
|
43
43
|
computer_call: OutputComputerCallItem$inboundSchema.and(z.object({ type: z.literal("computer_call") })),
|
|
44
|
-
custom_tool_call: OutputCustomToolCallItem$inboundSchema
|
|
44
|
+
custom_tool_call: OutputCustomToolCallItem$inboundSchema,
|
|
45
45
|
file_search_call: OutputFileSearchCallItem$inboundSchema.and(z.object({ type: z.literal("file_search_call") })),
|
|
46
|
-
function_call: OutputFunctionCallItem$inboundSchema
|
|
46
|
+
function_call: OutputFunctionCallItem$inboundSchema,
|
|
47
47
|
image_generation_call: OutputImageGenerationCallItem$inboundSchema.and(z.object({ type: z.literal("image_generation_call") })),
|
|
48
48
|
message: OutputMessageItem$inboundSchema,
|
|
49
49
|
["openrouter:advisor"]: OutputAdvisorServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:advisor") })),
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.23",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -71,19 +71,21 @@
|
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
|
-
"build": "tsc",
|
|
74
|
+
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"compile": "tsc",
|
|
77
|
-
"test:e2e": "vitest --run --project e2e",
|
|
78
76
|
"test:transit": "exit 0",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
77
|
"typecheck": "tsc --noEmit",
|
|
81
|
-
"typecheck:transit": "exit 0",
|
|
82
78
|
"postinstall": "node scripts/check-types.js || true",
|
|
83
79
|
"prepare": "npm run build",
|
|
84
|
-
"test": "vitest --run --project unit"
|
|
80
|
+
"test": "vitest --run --project unit",
|
|
81
|
+
"test:e2e": "vitest --run --project e2e",
|
|
82
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
|
+
"typecheck:transit": "exit 0",
|
|
84
|
+
"compile": "tsc && node scripts/unbarrel-imports.js"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
|
|
85
88
|
},
|
|
86
|
-
"peerDependencies": {},
|
|
87
89
|
"devDependencies": {
|
|
88
90
|
"@eslint/js": "^9.26.0",
|
|
89
91
|
"@types/node": "^22.13.12",
|