@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
|
@@ -12,30 +12,30 @@ export type CustomToolCallItem = {
|
|
|
12
12
|
/**
|
|
13
13
|
* True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.
|
|
14
14
|
*/
|
|
15
|
-
async?: boolean | undefined;
|
|
15
|
+
async?: boolean | null | undefined;
|
|
16
16
|
callId: string;
|
|
17
|
-
id?: string | undefined;
|
|
17
|
+
id?: string | null | undefined;
|
|
18
18
|
input: string;
|
|
19
19
|
name: string;
|
|
20
20
|
/**
|
|
21
21
|
* Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
|
|
22
22
|
*/
|
|
23
|
-
namespace?: string | undefined;
|
|
23
|
+
namespace?: string | null | undefined;
|
|
24
|
+
status?: ToolCallStatus | null | undefined;
|
|
24
25
|
type: CustomToolCallItemType;
|
|
25
|
-
status?: ToolCallStatus | undefined;
|
|
26
26
|
};
|
|
27
27
|
/** @internal */
|
|
28
28
|
export declare const CustomToolCallItemType$outboundSchema: z.ZodEnum<typeof CustomToolCallItemType>;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export type CustomToolCallItem$Outbound = {
|
|
31
|
-
async?: boolean | undefined;
|
|
31
|
+
async?: boolean | null | undefined;
|
|
32
32
|
call_id: string;
|
|
33
|
-
id?: string | undefined;
|
|
33
|
+
id?: string | null | undefined;
|
|
34
34
|
input: string;
|
|
35
35
|
name: string;
|
|
36
|
-
namespace?: string | undefined;
|
|
36
|
+
namespace?: string | null | undefined;
|
|
37
|
+
status?: string | null | undefined;
|
|
37
38
|
type: string;
|
|
38
|
-
status?: string | undefined;
|
|
39
39
|
};
|
|
40
40
|
/** @internal */
|
|
41
41
|
export declare const CustomToolCallItem$outboundSchema: z.ZodType<CustomToolCallItem$Outbound, CustomToolCallItem>;
|
|
@@ -12,14 +12,14 @@ export const CustomToolCallItemType = {
|
|
|
12
12
|
export const CustomToolCallItemType$outboundSchema = z.enum(CustomToolCallItemType);
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const CustomToolCallItem$outboundSchema = z.object({
|
|
15
|
-
async: z.boolean().optional(),
|
|
15
|
+
async: z.nullable(z.boolean()).optional(),
|
|
16
16
|
callId: z.string(),
|
|
17
|
-
id: z.string().optional(),
|
|
17
|
+
id: z.nullable(z.string()).optional(),
|
|
18
18
|
input: z.string(),
|
|
19
19
|
name: z.string(),
|
|
20
|
-
namespace: z.string().optional(),
|
|
20
|
+
namespace: z.nullable(z.string()).optional(),
|
|
21
|
+
status: z.nullable(ToolCallStatus$outboundSchema).optional(),
|
|
21
22
|
type: CustomToolCallItemType$outboundSchema,
|
|
22
|
-
status: ToolCallStatus$outboundSchema.optional(),
|
|
23
23
|
}).transform((v) => {
|
|
24
24
|
return remap$(v, {
|
|
25
25
|
callId: "call_id",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { BadGatewayResponseErrorData$inboundSchema as models_BadGatewayResponseErrorData$inboundSchema } from "../badgatewayresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Bad Gateway - Provider/upstream API failure
|
|
@@ -26,7 +26,7 @@ export class BadGatewayResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const BadGatewayResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_BadGatewayResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { BadRequestResponseErrorData$inboundSchema as models_BadRequestResponseErrorData$inboundSchema } from "../badrequestresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Bad Request - Invalid request parameters or malformed input
|
|
@@ -26,7 +26,7 @@ export class BadRequestResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const BadRequestResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_BadRequestResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ConflictResponseErrorData$inboundSchema as models_ConflictResponseErrorData$inboundSchema } from "../conflictresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Conflict - Resource conflict or concurrent modification
|
|
@@ -26,7 +26,7 @@ export class ConflictResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const ConflictResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_ConflictResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { EdgeNetworkTimeoutResponseErrorData$inboundSchema as models_EdgeNetworkTimeoutResponseErrorData$inboundSchema } from "../edgenetworktimeoutresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Infrastructure Timeout - Provider request timed out at edge network
|
|
@@ -26,7 +26,7 @@ export class EdgeNetworkTimeoutResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const EdgeNetworkTimeoutResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_EdgeNetworkTimeoutResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ForbiddenResponseErrorData$inboundSchema as models_ForbiddenResponseErrorData$inboundSchema } from "../forbiddenresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Forbidden - Authentication successful but insufficient permissions
|
|
@@ -26,7 +26,7 @@ export class ForbiddenResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const ForbiddenResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_ForbiddenResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { GatewayTimeoutResponseErrorData$inboundSchema as models_GatewayTimeoutResponseErrorData$inboundSchema } from "../gatewaytimeoutresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Gateway Timeout - Provider did not respond before the upstream deadline
|
|
@@ -26,7 +26,7 @@ export class GatewayTimeoutResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const GatewayTimeoutResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_GatewayTimeoutResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { GoneResponseErrorData$inboundSchema as models_GoneResponseErrorData$inboundSchema } from "../goneresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Gone - Endpoint has been permanently removed or deprecated
|
|
@@ -26,7 +26,7 @@ export class GoneResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const GoneResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_GoneResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { InternalServerResponseErrorData$inboundSchema as models_InternalServerResponseErrorData$inboundSchema } from "../internalserverresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Internal Server Error - Unexpected server error
|
|
@@ -26,7 +26,7 @@ export class InternalServerResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const InternalServerResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_InternalServerResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated-id: bb73eae2fe73
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
-
import
|
|
6
|
+
import { InternChatError$inboundSchema as models_InternChatError$inboundSchema } from "../internchaterror.js";
|
|
7
7
|
import { OpenRouterError } from "./openroutererror.js";
|
|
8
8
|
/**
|
|
9
9
|
* A refusal before the stream opens. Once the response is `200` and streaming, failures arrive as a chunk with `finish_reason: "error"` instead.
|
|
@@ -20,7 +20,7 @@ export class InternChatErrorResponse extends OpenRouterError {
|
|
|
20
20
|
}
|
|
21
21
|
/** @internal */
|
|
22
22
|
export const InternChatErrorResponse$inboundSchema = z.object({
|
|
23
|
-
error:
|
|
23
|
+
error: models_InternChatError$inboundSchema,
|
|
24
24
|
request$: z.custom(x => x instanceof Request),
|
|
25
25
|
response$: z.custom(x => x instanceof Response),
|
|
26
26
|
body$: z.string(),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated-id: 31cfc72977f7
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
-
import
|
|
6
|
+
import { InternLifecycleErrorError$inboundSchema as models_InternLifecycleErrorError$inboundSchema } from "../internlifecycleerror.js";
|
|
7
7
|
import { OpenRouterError } from "./openroutererror.js";
|
|
8
8
|
/**
|
|
9
9
|
* Intern lifecycle request failure.
|
|
@@ -20,7 +20,7 @@ export class InternLifecycleError extends OpenRouterError {
|
|
|
20
20
|
}
|
|
21
21
|
/** @internal */
|
|
22
22
|
export const InternLifecycleError$inboundSchema = z.object({
|
|
23
|
-
error: z.lazy(() =>
|
|
23
|
+
error: z.lazy(() => models_InternLifecycleErrorError$inboundSchema),
|
|
24
24
|
request$: z.custom(x => x instanceof Request),
|
|
25
25
|
response$: z.custom(x => x instanceof Response),
|
|
26
26
|
body$: z.string(),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { NotFoundResponseErrorData$inboundSchema as models_NotFoundResponseErrorData$inboundSchema } from "../notfoundresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Not Found - Resource does not exist
|
|
@@ -26,7 +26,7 @@ export class NotFoundResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const NotFoundResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_NotFoundResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ErrorEnum$inboundSchema as models_ErrorEnum$inboundSchema } from "../oautherrorresponse.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* RFC 6749 §5.2 error response.
|
|
@@ -23,7 +23,7 @@ export class OAuthErrorResponse extends OpenRouterError {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const OAuthErrorResponse$inboundSchema = z.object({
|
|
26
|
-
error:
|
|
26
|
+
error: models_ErrorEnum$inboundSchema,
|
|
27
27
|
error_description: z.string(),
|
|
28
28
|
request$: z.custom(x => x instanceof Request),
|
|
29
29
|
response$: z.custom(x => x instanceof Response),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { PayloadTooLargeResponseErrorData$inboundSchema as models_PayloadTooLargeResponseErrorData$inboundSchema } from "../payloadtoolargeresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Payload Too Large - Request payload exceeds size limits
|
|
@@ -26,7 +26,7 @@ export class PayloadTooLargeResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const PayloadTooLargeResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_PayloadTooLargeResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { PaymentRequiredResponseErrorData$inboundSchema as models_PaymentRequiredResponseErrorData$inboundSchema } from "../paymentrequiredresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Payment Required - Insufficient credits or quota to complete request
|
|
@@ -26,7 +26,7 @@ export class PaymentRequiredResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const PaymentRequiredResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_PaymentRequiredResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ProviderOverloadedResponseErrorData$inboundSchema as models_ProviderOverloadedResponseErrorData$inboundSchema } from "../provideroverloadedresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Provider Overloaded - Provider is temporarily overloaded
|
|
@@ -26,7 +26,7 @@ export class ProviderOverloadedResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const ProviderOverloadedResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_ProviderOverloadedResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { RequestTimeoutResponseErrorData$inboundSchema as models_RequestTimeoutResponseErrorData$inboundSchema } from "../requesttimeoutresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Request Timeout - Operation exceeded time limit
|
|
@@ -26,7 +26,7 @@ export class RequestTimeoutResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const RequestTimeoutResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_RequestTimeoutResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ServiceUnavailableResponseErrorData$inboundSchema as models_ServiceUnavailableResponseErrorData$inboundSchema } from "../serviceunavailableresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Service Unavailable - Service temporarily unavailable
|
|
@@ -26,7 +26,7 @@ export class ServiceUnavailableResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const ServiceUnavailableResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_ServiceUnavailableResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { TooManyRequestsResponseErrorData$inboundSchema as models_TooManyRequestsResponseErrorData$inboundSchema } from "../toomanyrequestsresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Too Many Requests - Rate limit exceeded
|
|
@@ -26,7 +26,7 @@ export class TooManyRequestsResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const TooManyRequestsResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_TooManyRequestsResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UnauthorizedResponseErrorData$inboundSchema as models_UnauthorizedResponseErrorData$inboundSchema } from "../unauthorizedresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Unauthorized - Authentication required or invalid credentials
|
|
@@ -26,7 +26,7 @@ export class UnauthorizedResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const UnauthorizedResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_UnauthorizedResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UnprocessableEntityResponseErrorData$inboundSchema as models_UnprocessableEntityResponseErrorData$inboundSchema } from "../unprocessableentityresponseerrordata.js";
|
|
8
8
|
import { OpenRouterError } from "./openroutererror.js";
|
|
9
9
|
/**
|
|
10
10
|
* Unprocessable Entity - Semantic validation failure
|
|
@@ -26,7 +26,7 @@ export class UnprocessableEntityResponseError extends OpenRouterError {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const UnprocessableEntityResponseError$inboundSchema = z.object({
|
|
29
|
-
error:
|
|
29
|
+
error: models_UnprocessableEntityResponseErrorData$inboundSchema,
|
|
30
30
|
openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
31
31
|
user_id: z.nullable(z.string()).optional(),
|
|
32
32
|
request$: z.custom(x => x instanceof Request),
|
|
@@ -19,23 +19,23 @@ export type FunctionCallItem = {
|
|
|
19
19
|
/**
|
|
20
20
|
* True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.
|
|
21
21
|
*/
|
|
22
|
-
async?: boolean | undefined;
|
|
22
|
+
async?: boolean | null | undefined;
|
|
23
23
|
callId: string;
|
|
24
|
-
id
|
|
24
|
+
id?: string | null | undefined;
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
27
|
* Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
|
|
28
28
|
*/
|
|
29
|
-
namespace?: string | undefined;
|
|
30
|
-
status?: ToolCallStatus | undefined;
|
|
29
|
+
namespace?: string | null | undefined;
|
|
30
|
+
status?: ToolCallStatus | null | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* 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.
|
|
33
33
|
*/
|
|
34
|
-
subagentId?: string | undefined;
|
|
34
|
+
subagentId?: string | null | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* EXPERIMENTAL — subject to change without notice. The subagent's output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.
|
|
37
37
|
*/
|
|
38
|
-
subagentItems?: Array<FunctionCallItemSubagentItem> | undefined;
|
|
38
|
+
subagentItems?: Array<FunctionCallItemSubagentItem> | null | undefined;
|
|
39
39
|
type: FunctionCallItemType;
|
|
40
40
|
};
|
|
41
41
|
/** @internal */
|
|
@@ -51,14 +51,14 @@ export declare const FunctionCallItemType$outboundSchema: z.ZodEnum<typeof Funct
|
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type FunctionCallItem$Outbound = {
|
|
53
53
|
arguments: string;
|
|
54
|
-
async?: boolean | undefined;
|
|
54
|
+
async?: boolean | null | undefined;
|
|
55
55
|
call_id: string;
|
|
56
|
-
id
|
|
56
|
+
id?: string | null | undefined;
|
|
57
57
|
name: string;
|
|
58
|
-
namespace?: string | undefined;
|
|
59
|
-
status?: string | undefined;
|
|
60
|
-
subagent_id?: string | undefined;
|
|
61
|
-
subagent_items?: Array<FunctionCallItemSubagentItem$Outbound> | undefined;
|
|
58
|
+
namespace?: string | null | undefined;
|
|
59
|
+
status?: string | null | undefined;
|
|
60
|
+
subagent_id?: string | null | undefined;
|
|
61
|
+
subagent_items?: Array<FunctionCallItemSubagentItem$Outbound> | null | undefined;
|
|
62
62
|
type: string;
|
|
63
63
|
};
|
|
64
64
|
/** @internal */
|
|
@@ -28,14 +28,14 @@ export const FunctionCallItemType$outboundSchema = z.enum(FunctionCallItemType);
|
|
|
28
28
|
/** @internal */
|
|
29
29
|
export const FunctionCallItem$outboundSchema = z.object({
|
|
30
30
|
arguments: z.string(),
|
|
31
|
-
async: z.boolean().optional(),
|
|
31
|
+
async: z.nullable(z.boolean()).optional(),
|
|
32
32
|
callId: z.string(),
|
|
33
|
-
id: z.string(),
|
|
33
|
+
id: z.nullable(z.string()).optional(),
|
|
34
34
|
name: z.string(),
|
|
35
|
-
namespace: z.string().optional(),
|
|
36
|
-
status: ToolCallStatus$outboundSchema.optional(),
|
|
37
|
-
subagentId: z.string().optional(),
|
|
38
|
-
subagentItems: z.array(z.lazy(() => FunctionCallItemSubagentItem$outboundSchema)).optional(),
|
|
35
|
+
namespace: z.nullable(z.string()).optional(),
|
|
36
|
+
status: z.nullable(ToolCallStatus$outboundSchema).optional(),
|
|
37
|
+
subagentId: z.nullable(z.string()).optional(),
|
|
38
|
+
subagentItems: z.nullable(z.array(z.lazy(() => FunctionCallItemSubagentItem$outboundSchema))).optional(),
|
|
39
39
|
type: FunctionCallItemType$outboundSchema,
|
|
40
40
|
}).transform((v) => {
|
|
41
41
|
return remap$(v, {
|
|
@@ -28,12 +28,10 @@ import { OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem$Outbound
|
|
|
28
28
|
import { OutputCodeInterpreterCallItem, OutputCodeInterpreterCallItem$Outbound } from "./outputcodeinterpretercallitem.js";
|
|
29
29
|
import { OutputCodeInterpreterServerToolItem, OutputCodeInterpreterServerToolItem$Outbound } from "./outputcodeinterpreterservertoolitem.js";
|
|
30
30
|
import { OutputComputerCallItem, OutputComputerCallItem$Outbound } from "./outputcomputercallitem.js";
|
|
31
|
-
import { OutputCustomToolCallItem, OutputCustomToolCallItem$Outbound } from "./outputcustomtoolcallitem.js";
|
|
32
31
|
import { OutputDatetimeItem, OutputDatetimeItem$Outbound } from "./outputdatetimeitem.js";
|
|
33
32
|
import { OutputFileSearchCallItem, OutputFileSearchCallItem$Outbound } from "./outputfilesearchcallitem.js";
|
|
34
33
|
import { OutputFileSearchServerToolItem, OutputFileSearchServerToolItem$Outbound } from "./outputfilesearchservertoolitem.js";
|
|
35
34
|
import { OutputFilesServerToolItem, OutputFilesServerToolItem$Outbound } from "./outputfilesservertoolitem.js";
|
|
36
|
-
import { OutputFunctionCallItem, OutputFunctionCallItem$Outbound } from "./outputfunctioncallitem.js";
|
|
37
35
|
import { OutputFusionServerToolItem, OutputFusionServerToolItem$Outbound } from "./outputfusionservertoolitem.js";
|
|
38
36
|
import { OutputImageGenerationCallItem, OutputImageGenerationCallItem$Outbound } from "./outputimagegenerationcallitem.js";
|
|
39
37
|
import { OutputImageGenerationServerToolItem, OutputImageGenerationServerToolItem$Outbound } from "./outputimagegenerationservertoolitem.js";
|
|
@@ -136,11 +134,11 @@ export type InputsMessage = {
|
|
|
136
134
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
137
135
|
type?: InputsTypeMessage | undefined;
|
|
138
136
|
};
|
|
139
|
-
export type InputsUnion1 =
|
|
137
|
+
export type InputsUnion1 = LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
|
|
140
138
|
/**
|
|
141
139
|
* Input for a response request - can be a string or array of items
|
|
142
140
|
*/
|
|
143
|
-
export type InputsUnion = string | Array<
|
|
141
|
+
export type InputsUnion = string | Array<LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
|
|
144
142
|
/** @internal */
|
|
145
143
|
export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
|
|
146
144
|
/** @internal */
|
|
@@ -215,12 +213,12 @@ export type InputsMessage$Outbound = {
|
|
|
215
213
|
export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
|
|
216
214
|
export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
|
|
217
215
|
/** @internal */
|
|
218
|
-
export type InputsUnion1$Outbound =
|
|
216
|
+
export type InputsUnion1$Outbound = LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
|
|
219
217
|
/** @internal */
|
|
220
218
|
export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
|
|
221
219
|
export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
|
|
222
220
|
/** @internal */
|
|
223
|
-
export type InputsUnion$Outbound = string | Array<
|
|
221
|
+
export type InputsUnion$Outbound = string | Array<LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
|
|
224
222
|
/** @internal */
|
|
225
223
|
export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
|
|
226
224
|
export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
|
|
@@ -32,12 +32,10 @@ import { OutputBrowserUseServerToolItem$outboundSchema, } from "./outputbrowseru
|
|
|
32
32
|
import { OutputCodeInterpreterCallItem$outboundSchema, } from "./outputcodeinterpretercallitem.js";
|
|
33
33
|
import { OutputCodeInterpreterServerToolItem$outboundSchema, } from "./outputcodeinterpreterservertoolitem.js";
|
|
34
34
|
import { OutputComputerCallItem$outboundSchema, } from "./outputcomputercallitem.js";
|
|
35
|
-
import { OutputCustomToolCallItem$outboundSchema, } from "./outputcustomtoolcallitem.js";
|
|
36
35
|
import { OutputDatetimeItem$outboundSchema, } from "./outputdatetimeitem.js";
|
|
37
36
|
import { OutputFileSearchCallItem$outboundSchema, } from "./outputfilesearchcallitem.js";
|
|
38
37
|
import { OutputFileSearchServerToolItem$outboundSchema, } from "./outputfilesearchservertoolitem.js";
|
|
39
38
|
import { OutputFilesServerToolItem$outboundSchema, } from "./outputfilesservertoolitem.js";
|
|
40
|
-
import { OutputFunctionCallItem$outboundSchema, } from "./outputfunctioncallitem.js";
|
|
41
39
|
import { OutputFusionServerToolItem$outboundSchema, } from "./outputfusionservertoolitem.js";
|
|
42
40
|
import { OutputImageGenerationCallItem$outboundSchema, } from "./outputimagegenerationcallitem.js";
|
|
43
41
|
import { OutputImageGenerationServerToolItem$outboundSchema, } from "./outputimagegenerationservertoolitem.js";
|
|
@@ -207,13 +205,11 @@ export function inputsMessageToJSON(inputsMessage) {
|
|
|
207
205
|
}
|
|
208
206
|
/** @internal */
|
|
209
207
|
export const InputsUnion1$outboundSchema = z.union([
|
|
210
|
-
FunctionCallItem$outboundSchema,
|
|
211
208
|
LocalShellCallItem$outboundSchema,
|
|
212
209
|
McpApprovalRequestItem$outboundSchema,
|
|
213
210
|
McpCallItem$outboundSchema,
|
|
211
|
+
FunctionCallItem$outboundSchema,
|
|
214
212
|
ApplyPatchCallItem$outboundSchema,
|
|
215
|
-
OutputFunctionCallItem$outboundSchema,
|
|
216
|
-
OutputCustomToolCallItem$outboundSchema,
|
|
217
213
|
OutputFileSearchCallItem$outboundSchema,
|
|
218
214
|
OutputComputerCallItem$outboundSchema,
|
|
219
215
|
OutputDatetimeItem$outboundSchema,
|
|
@@ -266,13 +262,11 @@ export function inputsUnion1ToJSON(inputsUnion1) {
|
|
|
266
262
|
export const InputsUnion$outboundSchema = z.union([
|
|
267
263
|
z.string(),
|
|
268
264
|
z.array(z.union([
|
|
269
|
-
FunctionCallItem$outboundSchema,
|
|
270
265
|
LocalShellCallItem$outboundSchema,
|
|
271
266
|
McpApprovalRequestItem$outboundSchema,
|
|
272
267
|
McpCallItem$outboundSchema,
|
|
268
|
+
FunctionCallItem$outboundSchema,
|
|
273
269
|
ApplyPatchCallItem$outboundSchema,
|
|
274
|
-
OutputFunctionCallItem$outboundSchema,
|
|
275
|
-
OutputCustomToolCallItem$outboundSchema,
|
|
276
270
|
OutputFileSearchCallItem$outboundSchema,
|
|
277
271
|
OutputComputerCallItem$outboundSchema,
|
|
278
272
|
OutputDatetimeItem$outboundSchema,
|