@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 { BulkAddWorkspaceMembersRequest$outboundSchema as models_BulkAddWorkspaceMembersRequest$outboundSchema } from "../bulkaddworkspacemembersrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkAddWorkspaceMembersRequest$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
|
-
bulkAddWorkspaceMembersRequest:
|
|
14
|
+
bulkAddWorkspaceMembersRequest: models_BulkAddWorkspaceMembersRequest$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 { BulkAssignKeysRequest$outboundSchema as models_BulkAssignKeysRequest$outboundSchema } from "../bulkassignkeysrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkAssignKeysToGuardrailRequest$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
|
-
bulkAssignKeysRequest:
|
|
14
|
+
bulkAssignKeysRequest: models_BulkAssignKeysRequest$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 { BulkAssignMembersRequest$outboundSchema as models_BulkAssignMembersRequest$outboundSchema } from "../bulkassignmembersrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkAssignMembersToGuardrailRequest$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
|
-
bulkAssignMembersRequest:
|
|
14
|
+
bulkAssignMembersRequest: models_BulkAssignMembersRequest$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 { BulkRemoveWorkspaceMembersRequest$outboundSchema as models_BulkRemoveWorkspaceMembersRequest$outboundSchema } from "../bulkremoveworkspacemembersrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkRemoveWorkspaceMembersRequest$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
|
-
bulkRemoveWorkspaceMembersRequest:
|
|
14
|
+
bulkRemoveWorkspaceMembersRequest: models_BulkRemoveWorkspaceMembersRequest$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 { BulkUnassignKeysRequest$outboundSchema as models_BulkUnassignKeysRequest$outboundSchema } from "../bulkunassignkeysrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkUnassignKeysFromGuardrailRequest$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
|
-
bulkUnassignKeysRequest:
|
|
14
|
+
bulkUnassignKeysRequest: models_BulkUnassignKeysRequest$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 { BulkUnassignMembersRequest$outboundSchema as models_BulkUnassignMembersRequest$outboundSchema } from "../bulkunassignmembersrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const BulkUnassignMembersFromGuardrailRequest$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
|
-
bulkUnassignMembersRequest:
|
|
14
|
+
bulkUnassignMembersRequest: models_BulkUnassignMembersRequest$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 { VaultSecretCopyRequest$outboundSchema as models_VaultSecretCopyRequest$outboundSchema } from "../vaultsecretcopyrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CopyVaultSecretsToInternRequest$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
|
-
vaultSecretCopyRequest:
|
|
14
|
+
vaultSecretCopyRequest: models_VaultSecretCopyRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -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 { DecisionsRequest$outboundSchema as models_DecisionsRequest$outboundSchema } from "../decisionsrequest.js";
|
|
8
8
|
export const CreateApiAlphaDecisionsServerList = [
|
|
9
9
|
"https://openrouter.ai",
|
|
10
10
|
];
|
|
@@ -13,7 +13,7 @@ export const CreateApiAlphaDecisionsRequest$outboundSchema = z.object({
|
|
|
13
13
|
httpReferer: z.string().optional(),
|
|
14
14
|
appTitle: z.string().optional(),
|
|
15
15
|
appCategories: z.string().optional(),
|
|
16
|
-
decisionsRequest:
|
|
16
|
+
decisionsRequest: models_DecisionsRequest$outboundSchema,
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { SpeechRequest$outboundSchema as models_SpeechRequest$outboundSchema } from "../speechrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateAudioSpeechRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
speechRequest:
|
|
13
|
+
speechRequest: models_SpeechRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { STTRequest$outboundSchema as models_STTRequest$outboundSchema } from "../sttrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateAudioTranscriptionsRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
sttRequest:
|
|
13
|
+
sttRequest: models_STTRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { CreateBYOKKeyRequest$outboundSchema as models_CreateBYOKKeyRequest$outboundSchema } from "../createbyokkeyrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateBYOKKeyRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
createBYOKKeyRequest:
|
|
13
|
+
createBYOKKeyRequest: models_CreateBYOKKeyRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import * as openEnums from "../../types/enums.js";
|
|
9
|
-
import
|
|
9
|
+
import { ContentPartInputAudio$outboundSchema as models_ContentPartInputAudio$outboundSchema } from "../contentpartinputaudio.js"; import { ContentPartInputFile$outboundSchema as models_ContentPartInputFile$outboundSchema } from "../contentpartinputfile.js"; import { ContentPartInputVideo$outboundSchema as models_ContentPartInputVideo$outboundSchema } from "../contentpartinputvideo.js"; import { CostDetails$inboundSchema as models_CostDetails$inboundSchema } from "../costdetails.js"; import { ProviderPreferences$outboundSchema as models_ProviderPreferences$outboundSchema } from "../providerpreferences.js"; import { TraceConfig$outboundSchema as models_TraceConfig$outboundSchema } from "../traceconfig.js";
|
|
10
10
|
/**
|
|
11
11
|
* The format of the output embeddings
|
|
12
12
|
*/
|
|
@@ -55,9 +55,9 @@ export const Content$outboundSchema = z
|
|
|
55
55
|
.union([
|
|
56
56
|
z.lazy(() => ContentText$outboundSchema),
|
|
57
57
|
z.lazy(() => ContentImageURL$outboundSchema),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
models_ContentPartInputAudio$outboundSchema,
|
|
59
|
+
models_ContentPartInputVideo$outboundSchema,
|
|
60
|
+
models_ContentPartInputFile$outboundSchema,
|
|
61
61
|
]);
|
|
62
62
|
export function contentToJSON(content) {
|
|
63
63
|
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
@@ -67,9 +67,9 @@ export const Input$outboundSchema = z.object({
|
|
|
67
67
|
content: z.array(z.union([
|
|
68
68
|
z.lazy(() => ContentText$outboundSchema),
|
|
69
69
|
z.lazy(() => ContentImageURL$outboundSchema),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
models_ContentPartInputAudio$outboundSchema,
|
|
71
|
+
models_ContentPartInputVideo$outboundSchema,
|
|
72
|
+
models_ContentPartInputFile$outboundSchema,
|
|
73
73
|
])),
|
|
74
74
|
});
|
|
75
75
|
export function inputToJSON(input) {
|
|
@@ -99,9 +99,9 @@ export const CreateEmbeddingsRequestBody$outboundSchema = z.object({
|
|
|
99
99
|
]),
|
|
100
100
|
inputType: z.string().optional(),
|
|
101
101
|
model: z.string(),
|
|
102
|
-
provider: z.nullable(
|
|
102
|
+
provider: z.nullable(models_ProviderPreferences$outboundSchema).optional(),
|
|
103
103
|
sessionId: z.string().optional(),
|
|
104
|
-
trace:
|
|
104
|
+
trace: models_TraceConfig$outboundSchema.optional(),
|
|
105
105
|
user: z.string().optional(),
|
|
106
106
|
}).transform((v) => {
|
|
107
107
|
return remap$(v, {
|
|
@@ -171,7 +171,7 @@ export function promptTokensDetailsFromJSON(jsonString) {
|
|
|
171
171
|
/** @internal */
|
|
172
172
|
export const CreateEmbeddingsUsage$inboundSchema = z.object({
|
|
173
173
|
cost: z.number().optional(),
|
|
174
|
-
cost_details: z.nullable(
|
|
174
|
+
cost_details: z.nullable(models_CostDetails$inboundSchema).optional(),
|
|
175
175
|
is_byok: z.boolean().optional(),
|
|
176
176
|
prompt_tokens: z.int(),
|
|
177
177
|
prompt_tokens_details: z.lazy(() => PromptTokensDetails$inboundSchema)
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { CreateGuardrailRequest$outboundSchema as models_CreateGuardrailRequest$outboundSchema } from "../createguardrailrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateGuardrailRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
createGuardrailRequest:
|
|
13
|
+
createGuardrailRequest: models_CreateGuardrailRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -6,13 +6,13 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { EventStream } from "../../lib/event-streams.js";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import { ImageGenerationRequest$outboundSchema as models_ImageGenerationRequest$outboundSchema } from "../imagegenerationrequest.js"; import { ImageGenerationResponse$inboundSchema as models_ImageGenerationResponse$inboundSchema } from "../imagegenerationresponse.js"; import { ImageStreamingResponse$inboundSchema as models_ImageStreamingResponse$inboundSchema } from "../imagestreamingresponse.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const CreateImagesRequest$outboundSchema = z.object({
|
|
12
12
|
httpReferer: z.string().optional(),
|
|
13
13
|
appTitle: z.string().optional(),
|
|
14
14
|
appCategories: z.string().optional(),
|
|
15
|
-
imageGenerationRequest:
|
|
15
|
+
imageGenerationRequest: models_ImageGenerationRequest$outboundSchema,
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
httpReferer: "HTTP-Referer",
|
|
@@ -24,7 +24,7 @@ export function createImagesRequestToJSON(createImagesRequest) {
|
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const CreateImagesResponse$inboundSchema = z.union([
|
|
27
|
-
|
|
27
|
+
models_ImageGenerationResponse$inboundSchema,
|
|
28
28
|
z.custom(x => x instanceof ReadableStream)
|
|
29
29
|
.transform(stream => {
|
|
30
30
|
return new EventStream(stream, rawEvent => {
|
|
@@ -32,7 +32,7 @@ export const CreateImagesResponse$inboundSchema = z.union([
|
|
|
32
32
|
return { done: true, value: undefined };
|
|
33
33
|
return {
|
|
34
34
|
done: false,
|
|
35
|
-
value:
|
|
35
|
+
value: models_ImageStreamingResponse$inboundSchema.parse(rawEvent)
|
|
36
36
|
?.data,
|
|
37
37
|
};
|
|
38
38
|
});
|
|
@@ -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 { CreateInternRequest$outboundSchema as models_CreateInternRequest$outboundSchema } from "../createinternrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateInternRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
idempotencyKey: z.string().optional(),
|
|
14
|
-
createInternRequest:
|
|
14
|
+
createInternRequest: models_CreateInternRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -6,14 +6,14 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { EventStream } from "../../lib/event-streams.js";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import { InternChatCompletionRequest$outboundSchema as models_InternChatCompletionRequest$outboundSchema } from "../internchatcompletionrequest.js"; import { InternChatSteeredResponse$inboundSchema as models_InternChatSteeredResponse$inboundSchema } from "../internchatsteeredresponse.js"; import { InternChatStreamingResponse$inboundSchema as models_InternChatStreamingResponse$inboundSchema } from "../internchatstreamingresponse.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const CreateInternChatCompletionRequest$outboundSchema = z.object({
|
|
12
12
|
httpReferer: z.string().optional(),
|
|
13
13
|
appTitle: z.string().optional(),
|
|
14
14
|
appCategories: z.string().optional(),
|
|
15
15
|
internId: z.string(),
|
|
16
|
-
internChatCompletionRequest:
|
|
16
|
+
internChatCompletionRequest: models_InternChatCompletionRequest$outboundSchema,
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -25,7 +25,7 @@ export function createInternChatCompletionRequestToJSON(createInternChatCompleti
|
|
|
25
25
|
}
|
|
26
26
|
/** @internal */
|
|
27
27
|
export const CreateInternChatCompletionResponseResult$inboundSchema = z.union([
|
|
28
|
-
|
|
28
|
+
models_InternChatSteeredResponse$inboundSchema,
|
|
29
29
|
z.custom(x => x instanceof ReadableStream)
|
|
30
30
|
.transform(stream => {
|
|
31
31
|
return new EventStream(stream, rawEvent => {
|
|
@@ -33,7 +33,7 @@ export const CreateInternChatCompletionResponseResult$inboundSchema = z.union([
|
|
|
33
33
|
return { done: true, value: undefined };
|
|
34
34
|
return {
|
|
35
35
|
done: false,
|
|
36
|
-
value:
|
|
36
|
+
value: models_InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
}),
|
|
@@ -45,7 +45,7 @@ export function createInternChatCompletionResponseResultFromJSON(jsonString) {
|
|
|
45
45
|
export const CreateInternChatCompletionResponse$inboundSchema = z.object({
|
|
46
46
|
Headers: z.record(z.string(), z.array(z.string())).default({}),
|
|
47
47
|
Result: z.union([
|
|
48
|
-
|
|
48
|
+
models_InternChatSteeredResponse$inboundSchema,
|
|
49
49
|
z.custom(x => x instanceof ReadableStream)
|
|
50
50
|
.transform(stream => {
|
|
51
51
|
return new EventStream(stream, rawEvent => {
|
|
@@ -54,7 +54,7 @@ export const CreateInternChatCompletionResponse$inboundSchema = z.object({
|
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
56
|
done: false,
|
|
57
|
-
value:
|
|
57
|
+
value: models_InternChatStreamingResponse$inboundSchema.parse(rawEvent)?.data,
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
}),
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { TokenExchangeRequest$outboundSchema as models_TokenExchangeRequest$outboundSchema } from "../tokenexchangerequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateOauthTokenRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
tokenExchangeRequest:
|
|
13
|
+
tokenExchangeRequest: models_TokenExchangeRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { CreateObservabilityDestinationRequest$outboundSchema as models_CreateObservabilityDestinationRequest$outboundSchema } from "../createobservabilitydestinationrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
createObservabilityDestinationRequest:
|
|
13
|
+
createObservabilityDestinationRequest: models_CreateObservabilityDestinationRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
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 { ChatRequest$outboundSchema as models_ChatRequest$outboundSchema } from "../chatrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreatePresetsChatCompletionsRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
slug: z.string(),
|
|
14
|
-
chatRequest:
|
|
14
|
+
chatRequest: models_ChatRequest$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 { MessagesRequest$outboundSchema as models_MessagesRequest$outboundSchema } from "../messagesrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreatePresetsMessagesRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
slug: z.string(),
|
|
14
|
-
messagesRequest:
|
|
14
|
+
messagesRequest: models_MessagesRequest$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 { ResponsesRequest$outboundSchema as models_ResponsesRequest$outboundSchema } from "../responsesrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreatePresetsResponsesRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
slug: z.string(),
|
|
14
|
-
responsesRequest:
|
|
14
|
+
responsesRequest: models_ResponsesRequest$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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import
|
|
8
|
+
import { ProviderPreferences$outboundSchema as models_ProviderPreferences$outboundSchema } from "../providerpreferences.js"; import { TraceConfig$outboundSchema as models_TraceConfig$outboundSchema } from "../traceconfig.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const DocumentRequest$outboundSchema = z.object({
|
|
11
11
|
image: z.string().optional(),
|
|
@@ -24,11 +24,11 @@ export function documentToJSON(document) {
|
|
|
24
24
|
export const CreateRerankRequestBody$outboundSchema = z.object({
|
|
25
25
|
documents: z.array(z.union([z.string(), z.lazy(() => DocumentRequest$outboundSchema)])),
|
|
26
26
|
model: z.string(),
|
|
27
|
-
provider: z.nullable(
|
|
27
|
+
provider: z.nullable(models_ProviderPreferences$outboundSchema).optional(),
|
|
28
28
|
query: z.string(),
|
|
29
29
|
sessionId: z.string().optional(),
|
|
30
30
|
topN: z.int().optional(),
|
|
31
|
-
trace:
|
|
31
|
+
trace: models_TraceConfig$outboundSchema.optional(),
|
|
32
32
|
user: z.string().optional(),
|
|
33
33
|
}).transform((v) => {
|
|
34
34
|
return remap$(v, {
|
|
@@ -6,14 +6,14 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { EventStream } from "../../lib/event-streams.js";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import { MetadataLevel$outboundSchema as models_MetadataLevel$outboundSchema } from "../metadatalevel.js"; import { OpenResponsesResult$inboundSchema as models_OpenResponsesResult$inboundSchema } from "../openresponsesresult.js"; import { ResponsesRequest$outboundSchema as models_ResponsesRequest$outboundSchema } from "../responsesrequest.js"; import { ResponsesStreamingResponse$inboundSchema as models_ResponsesStreamingResponse$inboundSchema } from "../responsesstreamingresponse.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const CreateResponsesRequest$outboundSchema = z.object({
|
|
12
12
|
httpReferer: z.string().optional(),
|
|
13
13
|
appTitle: z.string().optional(),
|
|
14
14
|
appCategories: z.string().optional(),
|
|
15
|
-
xOpenRouterMetadata:
|
|
16
|
-
responsesRequest:
|
|
15
|
+
xOpenRouterMetadata: models_MetadataLevel$outboundSchema.optional(),
|
|
16
|
+
responsesRequest: models_ResponsesRequest$outboundSchema,
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -26,7 +26,7 @@ export function createResponsesRequestToJSON(createResponsesRequest) {
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const CreateResponsesResponse$inboundSchema = z.union([
|
|
29
|
-
|
|
29
|
+
models_OpenResponsesResult$inboundSchema,
|
|
30
30
|
z.custom(x => x instanceof ReadableStream)
|
|
31
31
|
.transform(stream => {
|
|
32
32
|
return new EventStream(stream, rawEvent => {
|
|
@@ -34,7 +34,7 @@ export const CreateResponsesResponse$inboundSchema = z.union([
|
|
|
34
34
|
return { done: true, value: undefined };
|
|
35
35
|
return {
|
|
36
36
|
done: false,
|
|
37
|
-
value:
|
|
37
|
+
value: models_ResponsesStreamingResponse$inboundSchema.parse(rawEvent)
|
|
38
38
|
?.data,
|
|
39
39
|
};
|
|
40
40
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { CreateScimGroupMappingRequest$outboundSchema as models_CreateScimGroupMappingRequest$outboundSchema } from "../createscimgroupmappingrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateScimGroupMappingRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
createScimGroupMappingRequest:
|
|
13
|
+
createScimGroupMappingRequest: models_CreateScimGroupMappingRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import
|
|
8
|
+
import { CreateScimSyncJobResponse$inboundSchema as models_CreateScimSyncJobResponse$inboundSchema } from "../createscimsyncjobresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const CreateScimSyncJobRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -22,7 +22,7 @@ export function createScimSyncJobRequestToJSON(createScimSyncJobRequest) {
|
|
|
22
22
|
/** @internal */
|
|
23
23
|
export const CreateScimSyncJobResponse$inboundSchema = z.object({
|
|
24
24
|
Headers: z.record(z.string(), z.array(z.string())).default({}),
|
|
25
|
-
Result:
|
|
25
|
+
Result: models_CreateScimSyncJobResponse$inboundSchema,
|
|
26
26
|
}).transform((v) => {
|
|
27
27
|
return remap$(v, {
|
|
28
28
|
"Headers": "headers",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { DecisionsRequest$outboundSchema as models_DecisionsRequest$outboundSchema } from "../decisionsrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateSystemoneRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
decisionsRequest:
|
|
13
|
+
decisionsRequest: models_DecisionsRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { VideoGenerationRequest$outboundSchema as models_VideoGenerationRequest$outboundSchema } from "../videogenerationrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateVideosRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
videoGenerationRequest:
|
|
13
|
+
videoGenerationRequest: models_VideoGenerationRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { CreateWorkspaceRequest$outboundSchema as models_CreateWorkspaceRequest$outboundSchema } from "../createworkspacerequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateWorkspaceRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
createWorkspaceRequest:
|
|
13
|
+
createWorkspaceRequest: models_CreateWorkspaceRequest$outboundSchema,
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -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 { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const DeleteFileRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
@@ -12,7 +12,7 @@ export const DeleteFileRequest$outboundSchema = z.object({
|
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
fileId: z.string(),
|
|
14
14
|
workspaceId: z.string().optional(),
|
|
15
|
-
provider:
|
|
15
|
+
provider: models_FileProvider$outboundSchema.optional(),
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
httpReferer: "HTTP-Referer",
|