@openrouter/sdk 1.3.20 → 1.3.22
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.d.ts +26 -0
- package/esm/funcs/internsInvoke.js +119 -0
- 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/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/inputsunion.d.ts +4 -6
- package/esm/models/inputsunion.js +2 -8
- package/esm/models/interninvokeacceptedresponse.d.ts +34 -0
- package/esm/models/interninvokeacceptedresponse.js +30 -0
- package/esm/models/interninvokerequest.d.ts +23 -0
- package/esm/models/interninvokerequest.js +19 -0
- 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/index.d.ts +1 -0
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/invokeintern.d.ts +72 -0
- package/esm/models/operations/invokeintern.js +38 -0
- 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/esm/sdk/interns.d.ts +13 -0
- package/esm/sdk/interns.js +16 -0
- package/jsr.json +1 -1
- package/package.json +11 -9
- package/scripts/unbarrel-imports.js +296 -0
|
@@ -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 { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListEmbeddingsModelsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listEmbeddingsModelsRequestToJSON(listEmbeddingsModelsRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListEmbeddingsModelsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ModelsListResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ListEndpointsResponse$inboundSchema as models_ListEndpointsResponse$inboundSchema } from "../listendpointsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListEndpointsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listEndpointsRequestToJSON(listEndpointsRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListEndpointsResponse$inboundSchema = z.object({
|
|
26
|
-
data:
|
|
26
|
+
data: models_ListEndpointsResponse$inboundSchema,
|
|
27
27
|
});
|
|
28
28
|
export function listEndpointsResponseFromJSON(jsonString) {
|
|
29
29
|
return safeParse(jsonString, (x) => ListEndpointsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndpointsResponse' from JSON`);
|
|
@@ -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 { PublicEndpoint$inboundSchema as models_PublicEndpoint$inboundSchema } from "../publicendpoint.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListEndpointsZdrRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -21,7 +21,7 @@ export function listEndpointsZdrRequestToJSON(listEndpointsZdrRequest) {
|
|
|
21
21
|
}
|
|
22
22
|
/** @internal */
|
|
23
23
|
export const ListEndpointsZdrResponse$inboundSchema = z.object({
|
|
24
|
-
data: z.array(
|
|
24
|
+
data: z.array(models_PublicEndpoint$inboundSchema),
|
|
25
25
|
});
|
|
26
26
|
export function listEndpointsZdrResponseFromJSON(jsonString) {
|
|
27
27
|
return safeParse(jsonString, (x) => ListEndpointsZdrResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndpointsZdrResponse' from JSON`);
|
|
@@ -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 { FileListResponse$inboundSchema as models_FileListResponse$inboundSchema } from "../filelistresponse.js"; import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
|
|
10
10
|
/**
|
|
11
11
|
* Sort direction. Only `asc` is supported by OpenRouter storage.
|
|
12
12
|
*/
|
|
@@ -25,7 +25,7 @@ export const ListFilesRequest$outboundSchema = z.object({
|
|
|
25
25
|
limit: z.int().optional(),
|
|
26
26
|
cursor: z.string().optional(),
|
|
27
27
|
workspaceId: z.string().optional(),
|
|
28
|
-
provider:
|
|
28
|
+
provider: models_FileProvider$outboundSchema.optional(),
|
|
29
29
|
after: z.string().optional(),
|
|
30
30
|
afterId: z.string().optional(),
|
|
31
31
|
beforeId: z.string().optional(),
|
|
@@ -43,7 +43,7 @@ export function listFilesRequestToJSON(listFilesRequest) {
|
|
|
43
43
|
}
|
|
44
44
|
/** @internal */
|
|
45
45
|
export const ListFilesResponse$inboundSchema = z.object({
|
|
46
|
-
Result:
|
|
46
|
+
Result: models_FileListResponse$inboundSchema,
|
|
47
47
|
}).transform((v) => {
|
|
48
48
|
return remap$(v, {
|
|
49
49
|
"Result": "result",
|
|
@@ -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 { ListKeyAssignmentsResponse$inboundSchema as models_ListKeyAssignmentsResponse$inboundSchema } from "../listkeyassignmentsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListGuardrailKeyAssignmentsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -24,7 +24,7 @@ export function listGuardrailKeyAssignmentsRequestToJSON(listGuardrailKeyAssignm
|
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const ListGuardrailKeyAssignmentsResponse$inboundSchema = z.object({
|
|
27
|
-
Result:
|
|
27
|
+
Result: models_ListKeyAssignmentsResponse$inboundSchema,
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
30
|
"Result": "result",
|
|
@@ -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 { ListMemberAssignmentsResponse$inboundSchema as models_ListMemberAssignmentsResponse$inboundSchema } from "../listmemberassignmentsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListGuardrailMemberAssignmentsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -24,7 +24,7 @@ export function listGuardrailMemberAssignmentsRequestToJSON(listGuardrailMemberA
|
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const ListGuardrailMemberAssignmentsResponse$inboundSchema = z.object({
|
|
27
|
-
Result:
|
|
27
|
+
Result: models_ListMemberAssignmentsResponse$inboundSchema,
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
30
|
"Result": "result",
|
|
@@ -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 { ListGuardrailsResponse$inboundSchema as models_ListGuardrailsResponse$inboundSchema } from "../listguardrailsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListGuardrailsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -25,7 +25,7 @@ export function listGuardrailsRequestToJSON(listGuardrailsRequest) {
|
|
|
25
25
|
}
|
|
26
26
|
/** @internal */
|
|
27
27
|
export const ListGuardrailsResponse$inboundSchema = z.object({
|
|
28
|
-
Result:
|
|
28
|
+
Result: models_ListGuardrailsResponse$inboundSchema,
|
|
29
29
|
}).transform((v) => {
|
|
30
30
|
return remap$(v, {
|
|
31
31
|
"Result": "result",
|
|
@@ -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 { ListKeyAssignmentsResponse$inboundSchema as models_ListKeyAssignmentsResponse$inboundSchema } from "../listkeyassignmentsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListKeyAssignmentsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listKeyAssignmentsRequestToJSON(listKeyAssignmentsRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListKeyAssignmentsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListKeyAssignmentsResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ListMemberAssignmentsResponse$inboundSchema as models_ListMemberAssignmentsResponse$inboundSchema } from "../listmemberassignmentsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListMemberAssignmentsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listMemberAssignmentsRequestToJSON(listMemberAssignmentsRequest)
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListMemberAssignmentsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListMemberAssignmentsResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListModelsUserSecurity$outboundSchema = z.object({
|
|
11
11
|
bearer: z.string(),
|
|
@@ -32,7 +32,7 @@ export function listModelsUserRequestToJSON(listModelsUserRequest) {
|
|
|
32
32
|
}
|
|
33
33
|
/** @internal */
|
|
34
34
|
export const ListModelsUserResponse$inboundSchema = z.object({
|
|
35
|
-
Result:
|
|
35
|
+
Result: models_ModelsListResponse$inboundSchema,
|
|
36
36
|
}).transform((v) => {
|
|
37
37
|
return remap$(v, {
|
|
38
38
|
"Result": "result",
|
|
@@ -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 { ListObservabilityDestinationsResponse$inboundSchema as models_ListObservabilityDestinationsResponse$inboundSchema } from "../listobservabilitydestinationsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListObservabilityDestinationsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -25,7 +25,7 @@ export function listObservabilityDestinationsRequestToJSON(listObservabilityDest
|
|
|
25
25
|
}
|
|
26
26
|
/** @internal */
|
|
27
27
|
export const ListObservabilityDestinationsResponse$inboundSchema = z.object({
|
|
28
|
-
Result:
|
|
28
|
+
Result: models_ListObservabilityDestinationsResponse$inboundSchema,
|
|
29
29
|
}).transform((v) => {
|
|
30
30
|
return remap$(v, {
|
|
31
31
|
"Result": "result",
|
|
@@ -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 { ListPresetsResponse$inboundSchema as models_ListPresetsResponse$inboundSchema } from "../listpresetsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListPresetsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listPresetsRequestToJSON(listPresetsRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListPresetsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListPresetsResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ListPresetVersionsResponse$inboundSchema as models_ListPresetVersionsResponse$inboundSchema } from "../listpresetversionsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListPresetVersionsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -24,7 +24,7 @@ export function listPresetVersionsRequestToJSON(listPresetVersionsRequest) {
|
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const ListPresetVersionsResponse$inboundSchema = z.object({
|
|
27
|
-
Result:
|
|
27
|
+
Result: models_ListPresetVersionsResponse$inboundSchema,
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
30
|
"Result": "result",
|
|
@@ -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 { ListScimGroupMappingsResponse$inboundSchema as models_ListScimGroupMappingsResponse$inboundSchema } from "../listscimgroupmappingsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListScimGroupMappingsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listScimGroupMappingsRequestToJSON(listScimGroupMappingsRequest)
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListScimGroupMappingsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListScimGroupMappingsResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ListScimGroupsResponse$inboundSchema as models_ListScimGroupsResponse$inboundSchema } from "../listscimgroupsresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListScimGroupsRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listScimGroupsRequestToJSON(listScimGroupsRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListScimGroupsResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListScimGroupsResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ListWorkspaceMembersResponse$inboundSchema as models_ListWorkspaceMembersResponse$inboundSchema } from "../listworkspacemembersresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListWorkspaceMembersRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -24,7 +24,7 @@ export function listWorkspaceMembersRequestToJSON(listWorkspaceMembersRequest) {
|
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const ListWorkspaceMembersResponse$inboundSchema = z.object({
|
|
27
|
-
Result:
|
|
27
|
+
Result: models_ListWorkspaceMembersResponse$inboundSchema,
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
30
|
"Result": "result",
|
|
@@ -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 { ListWorkspacesResponse$inboundSchema as models_ListWorkspacesResponse$inboundSchema } from "../listworkspacesresponse.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ListWorkspacesRequest$outboundSchema = z.object({
|
|
11
11
|
httpReferer: z.string().optional(),
|
|
@@ -23,7 +23,7 @@ export function listWorkspacesRequestToJSON(listWorkspacesRequest) {
|
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const ListWorkspacesResponse$inboundSchema = z.object({
|
|
26
|
-
Result:
|
|
26
|
+
Result: models_ListWorkspacesResponse$inboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
29
|
"Result": "result",
|
|
@@ -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 { ChatRequest$outboundSchema as models_ChatRequest$outboundSchema } from "../chatrequest.js"; import { ChatResult$inboundSchema as models_ChatResult$inboundSchema } from "../chatresult.js"; import { ChatStreamingResponse$inboundSchema as models_ChatStreamingResponse$inboundSchema } from "../chatstreamingresponse.js"; import { MetadataLevel$outboundSchema as models_MetadataLevel$outboundSchema } from "../metadatalevel.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const SendChatCompletionRequestRequest$outboundSchema = z.object({
|
|
12
12
|
httpReferer: z.string().optional(),
|
|
13
13
|
appTitle: z.string().optional(),
|
|
14
14
|
appCategories: z.string().optional(),
|
|
15
|
-
xOpenRouterMetadata:
|
|
16
|
-
chatRequest:
|
|
15
|
+
xOpenRouterMetadata: models_MetadataLevel$outboundSchema.optional(),
|
|
16
|
+
chatRequest: models_ChatRequest$outboundSchema,
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -26,7 +26,7 @@ export function sendChatCompletionRequestRequestToJSON(sendChatCompletionRequest
|
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const SendChatCompletionRequestResponse$inboundSchema = z.union([
|
|
29
|
-
|
|
29
|
+
models_ChatResult$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 SendChatCompletionRequestResponse$inboundSchema = z.union([
|
|
|
34
34
|
return { done: true, value: undefined };
|
|
35
35
|
return {
|
|
36
36
|
done: false,
|
|
37
|
-
value:
|
|
37
|
+
value: models_ChatStreamingResponse$inboundSchema.parse(rawEvent)
|
|
38
38
|
?.data,
|
|
39
39
|
};
|
|
40
40
|
});
|
|
@@ -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 { VaultSecretWriteRequest$outboundSchema as models_VaultSecretWriteRequest$outboundSchema } from "../vaultsecretwriterequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const StoreInternVaultSecretRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
@@ -12,7 +12,7 @@ export const StoreInternVaultSecretRequest$outboundSchema = z.object({
|
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
internId: z.string(),
|
|
14
14
|
name: z.string(),
|
|
15
|
-
vaultSecretWriteRequest:
|
|
15
|
+
vaultSecretWriteRequest: models_VaultSecretWriteRequest$outboundSchema,
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
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 { VaultSecretWriteRequest$outboundSchema as models_VaultSecretWriteRequest$outboundSchema } from "../vaultsecretwriterequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const StoreVaultSecretRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
name: z.string(),
|
|
14
|
-
vaultSecretWriteRequest:
|
|
14
|
+
vaultSecretWriteRequest: models_VaultSecretWriteRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
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 { SubmitGenerationFeedbackRequest$outboundSchema as models_SubmitGenerationFeedbackRequest$outboundSchema } from "../submitgenerationfeedbackrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const SubmitGenerationFeedbackRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
submitGenerationFeedbackRequest:
|
|
13
|
+
submitGenerationFeedbackRequest: models_SubmitGenerationFeedbackRequest$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 { UpdateBYOKKeyRequest$outboundSchema as models_UpdateBYOKKeyRequest$outboundSchema } from "../updatebyokkeyrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateBYOKKeyRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateBYOKKeyRequest:
|
|
14
|
+
updateBYOKKeyRequest: models_UpdateBYOKKeyRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateGuardrailRequest$outboundSchema as models_UpdateGuardrailRequest$outboundSchema } from "../updateguardrailrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateGuardrailRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateGuardrailRequest:
|
|
14
|
+
updateGuardrailRequest: models_UpdateGuardrailRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateInternRequest$outboundSchema as models_UpdateInternRequest$outboundSchema } from "../updateinternrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateInternRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
internId: z.string(),
|
|
14
|
-
updateInternRequest:
|
|
14
|
+
updateInternRequest: models_UpdateInternRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateObservabilityDestinationRequest$outboundSchema as models_UpdateObservabilityDestinationRequest$outboundSchema } from "../updateobservabilitydestinationrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateObservabilityDestinationRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateObservabilityDestinationRequest:
|
|
14
|
+
updateObservabilityDestinationRequest: models_UpdateObservabilityDestinationRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateScimGroupMappingRequest$outboundSchema as models_UpdateScimGroupMappingRequest$outboundSchema } from "../updatescimgroupmappingrequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateScimGroupMappingRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateScimGroupMappingRequest:
|
|
14
|
+
updateScimGroupMappingRequest: models_UpdateScimGroupMappingRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpdateWorkspaceRequest$outboundSchema as models_UpdateWorkspaceRequest$outboundSchema } from "../updateworkspacerequest.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpdateWorkspaceRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
id: z.string(),
|
|
14
|
-
updateWorkspaceRequest:
|
|
14
|
+
updateWorkspaceRequest: models_UpdateWorkspaceRequest$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { blobLikeSchema } from "../../types/blobs.js";
|
|
8
|
-
import
|
|
8
|
+
import { FileProvider$outboundSchema as models_FileProvider$outboundSchema } from "../fileprovider.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const UploadFileFile$outboundSchema = z.object({
|
|
11
11
|
fileName: z.string(),
|
|
@@ -32,7 +32,7 @@ export const UploadFileRequest$outboundSchema = z.object({
|
|
|
32
32
|
appTitle: z.string().optional(),
|
|
33
33
|
appCategories: z.string().optional(),
|
|
34
34
|
workspaceId: z.string().optional(),
|
|
35
|
-
provider:
|
|
35
|
+
provider: models_FileProvider$outboundSchema.optional(),
|
|
36
36
|
requestBody: z.lazy(() => UploadFileRequestBody$outboundSchema),
|
|
37
37
|
}).transform((v) => {
|
|
38
38
|
return remap$(v, {
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { UpsertWorkspaceBudgetRequest$outboundSchema as models_UpsertWorkspaceBudgetRequest$outboundSchema } from "../upsertworkspacebudgetrequest.js"; import { WorkspaceBudgetInterval$outboundSchema as models_WorkspaceBudgetInterval$outboundSchema } from "../workspacebudgetinterval.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
13
|
workspaceRef: z.string(),
|
|
14
|
-
interval:
|
|
15
|
-
upsertWorkspaceBudgetRequest:
|
|
14
|
+
interval: models_WorkspaceBudgetInterval$outboundSchema,
|
|
15
|
+
upsertWorkspaceBudgetRequest: models_UpsertWorkspaceBudgetRequest$outboundSchema,
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
httpReferer: "HTTP-Referer",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
export declare const OutputCustomToolCallItemStatus: {
|
|
@@ -8,10 +8,6 @@ export declare const OutputCustomToolCallItemStatus: {
|
|
|
8
8
|
readonly Incomplete: "incomplete";
|
|
9
9
|
};
|
|
10
10
|
export type OutputCustomToolCallItemStatus = OpenEnum<typeof OutputCustomToolCallItemStatus>;
|
|
11
|
-
export declare const OutputCustomToolCallItemType: {
|
|
12
|
-
readonly CustomToolCall: "custom_tool_call";
|
|
13
|
-
};
|
|
14
|
-
export type OutputCustomToolCallItemType = ClosedEnum<typeof OutputCustomToolCallItemType>;
|
|
15
11
|
/**
|
|
16
12
|
* A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI's `apply_patch` whose payload is opaque text rather than JSON arguments.
|
|
17
13
|
*/
|
|
@@ -29,31 +25,11 @@ export type OutputCustomToolCallItem = {
|
|
|
29
25
|
*/
|
|
30
26
|
namespace?: string | undefined;
|
|
31
27
|
status?: OutputCustomToolCallItemStatus | undefined;
|
|
32
|
-
type:
|
|
28
|
+
type: "custom_tool_call";
|
|
33
29
|
};
|
|
34
30
|
/** @internal */
|
|
35
31
|
export declare const OutputCustomToolCallItemStatus$inboundSchema: z.ZodType<OutputCustomToolCallItemStatus, unknown>;
|
|
36
32
|
/** @internal */
|
|
37
|
-
export declare const OutputCustomToolCallItemStatus$outboundSchema: z.ZodType<string, OutputCustomToolCallItemStatus>;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const OutputCustomToolCallItemType$inboundSchema: z.ZodEnum<typeof OutputCustomToolCallItemType>;
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const OutputCustomToolCallItemType$outboundSchema: z.ZodEnum<typeof OutputCustomToolCallItemType>;
|
|
42
|
-
/** @internal */
|
|
43
33
|
export declare const OutputCustomToolCallItem$inboundSchema: z.ZodType<OutputCustomToolCallItem, unknown>;
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type OutputCustomToolCallItem$Outbound = {
|
|
46
|
-
async?: boolean | undefined;
|
|
47
|
-
call_id: string;
|
|
48
|
-
id?: string | undefined;
|
|
49
|
-
input: string;
|
|
50
|
-
name: string;
|
|
51
|
-
namespace?: string | undefined;
|
|
52
|
-
status?: string | undefined;
|
|
53
|
-
type: string;
|
|
54
|
-
};
|
|
55
|
-
/** @internal */
|
|
56
|
-
export declare const OutputCustomToolCallItem$outboundSchema: z.ZodType<OutputCustomToolCallItem$Outbound, OutputCustomToolCallItem>;
|
|
57
|
-
export declare function outputCustomToolCallItemToJSON(outputCustomToolCallItem: OutputCustomToolCallItem): string;
|
|
58
34
|
export declare function outputCustomToolCallItemFromJSON(jsonString: string): SafeParseResult<OutputCustomToolCallItem, SDKValidationError>;
|
|
59
35
|
//# sourceMappingURL=outputcustomtoolcallitem.d.ts.map
|