@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.37
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/FUNCTIONS.md +5 -3
- package/REACT_QUERY.md +6 -4
- package/README.md +21 -9
- package/dist/commonjs/funcs/betaResponsesSend.d.ts +26 -0
- package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -0
- package/dist/commonjs/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +5 -13
- package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -0
- package/dist/commonjs/funcs/chatSend.d.ts +3 -13
- package/dist/commonjs/funcs/chatSend.d.ts.map +1 -1
- package/dist/commonjs/funcs/chatSend.js +1 -8
- package/dist/commonjs/funcs/chatSend.js.map +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsList.js +1 -1
- package/dist/commonjs/funcs/endpointsList.js.map +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts +1 -7
- package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsList.js +2 -9
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/endpointslist.d.ts +768 -0
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
- package/dist/commonjs/models/endpointslist.js +625 -0
- package/dist/commonjs/models/endpointslist.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -4
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -4
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +155 -0
- package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
- package/dist/commonjs/models/keyinfo.js +163 -0
- package/dist/commonjs/models/keyinfo.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +854 -0
- package/dist/commonjs/models/modelslist.d.ts.map +1 -0
- package/dist/commonjs/models/modelslist.js +768 -0
- package/dist/commonjs/models/modelslist.js.map +1 -0
- package/dist/commonjs/models/operations/generate.d.ts +103 -103
- package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/generate.js +142 -153
- package/dist/commonjs/models/operations/generate.js.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
- package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +63 -825
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +86 -667
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +19 -742
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
- package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.js +4 -730
- package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +134 -133
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +1693 -0
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.js +1156 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +13 -0
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +19 -19
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.js +30 -32
- package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/commonjs/models/responsesusage.d.ts +41 -0
- package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
- package/dist/commonjs/models/responsesusage.js +54 -1
- package/dist/commonjs/models/responsesusage.js.map +1 -1
- package/dist/commonjs/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
- package/dist/commonjs/models/toolchoiceunion.d.ts.map +1 -0
- package/dist/commonjs/models/{toolchoice.js → toolchoiceunion.js} +94 -21
- package/dist/commonjs/models/toolchoiceunion.js.map +1 -0
- package/dist/commonjs/react-query/betaResponsesSend.d.ts +23 -0
- package/dist/commonjs/react-query/betaResponsesSend.d.ts.map +1 -0
- package/dist/commonjs/react-query/betaResponsesSend.js +47 -0
- package/dist/commonjs/react-query/betaResponsesSend.js.map +1 -0
- package/dist/commonjs/react-query/chatSend.d.ts +1 -5
- package/dist/commonjs/react-query/chatSend.d.ts.map +1 -1
- package/dist/commonjs/react-query/chatSend.js +0 -3
- package/dist/commonjs/react-query/chatSend.js.map +1 -1
- package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
- package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/endpointsList.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -1
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -1
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/modelsList.d.ts +4 -8
- package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsList.js +0 -3
- package/dist/commonjs/react-query/modelsList.js.map +1 -1
- package/dist/commonjs/sdk/chat.d.ts +3 -11
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +1 -3
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/endpoints.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -5
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js +1 -3
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/commonjs/sdk/responses.d.ts +6 -14
- package/dist/commonjs/sdk/responses.d.ts.map +1 -1
- package/dist/commonjs/sdk/responses.js +4 -6
- package/dist/commonjs/sdk/responses.js.map +1 -1
- package/dist/esm/funcs/betaResponsesSend.d.ts +26 -0
- package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -0
- package/dist/esm/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +4 -11
- package/dist/esm/funcs/betaResponsesSend.js.map +1 -0
- package/dist/esm/funcs/chatSend.d.ts +3 -13
- package/dist/esm/funcs/chatSend.d.ts.map +1 -1
- package/dist/esm/funcs/chatSend.js +1 -7
- package/dist/esm/funcs/chatSend.js.map +1 -1
- package/dist/esm/funcs/endpointsList.d.ts +1 -1
- package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsList.js +1 -1
- package/dist/esm/funcs/endpointsList.js.map +1 -1
- package/dist/esm/funcs/modelsList.d.ts +1 -7
- package/dist/esm/funcs/modelsList.d.ts.map +1 -1
- package/dist/esm/funcs/modelsList.js +2 -8
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/endpointslist.d.ts +768 -0
- package/dist/esm/models/endpointslist.d.ts.map +1 -0
- package/dist/esm/models/endpointslist.js +562 -0
- package/dist/esm/models/endpointslist.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +155 -0
- package/dist/esm/models/keyinfo.d.ts.map +1 -0
- package/dist/esm/models/keyinfo.js +123 -0
- package/dist/esm/models/keyinfo.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +854 -0
- package/dist/esm/models/modelslist.d.ts.map +1 -0
- package/dist/esm/models/modelslist.js +697 -0
- package/dist/esm/models/modelslist.js.map +1 -0
- package/dist/esm/models/operations/generate.d.ts +103 -103
- package/dist/esm/models/operations/generate.d.ts.map +1 -1
- package/dist/esm/models/operations/generate.js +138 -149
- package/dist/esm/models/operations/generate.js.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.js +3 -83
- package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +63 -825
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +81 -635
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -865
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +16 -704
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listusermodels.d.ts +3 -852
- package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listusermodels.js +3 -694
- package/dist/esm/models/operations/listusermodels.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +97 -97
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +118 -117
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.d.ts +1693 -0
- package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.js +1117 -0
- package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +13 -0
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.d.ts +19 -19
- package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.js +29 -31
- package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/esm/models/responsesusage.d.ts +41 -0
- package/dist/esm/models/responsesusage.d.ts.map +1 -1
- package/dist/esm/models/responsesusage.js +51 -0
- package/dist/esm/models/responsesusage.js.map +1 -1
- package/dist/esm/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
- package/dist/esm/models/toolchoiceunion.d.ts.map +1 -0
- package/dist/esm/models/toolchoiceunion.js +164 -0
- package/dist/esm/models/toolchoiceunion.js.map +1 -0
- package/dist/esm/react-query/betaResponsesSend.d.ts +23 -0
- package/dist/esm/react-query/betaResponsesSend.d.ts.map +1 -0
- package/dist/esm/react-query/{betaResponsesSendRequest.js → betaResponsesSend.js} +10 -11
- package/dist/esm/react-query/betaResponsesSend.js.map +1 -0
- package/dist/esm/react-query/chatSend.d.ts +1 -5
- package/dist/esm/react-query/chatSend.d.ts.map +1 -1
- package/dist/esm/react-query/chatSend.js +0 -1
- package/dist/esm/react-query/chatSend.js.map +1 -1
- package/dist/esm/react-query/endpointsList.d.ts +4 -4
- package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
- package/dist/esm/react-query/endpointsList.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -1
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -1
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/modelsList.d.ts +4 -8
- package/dist/esm/react-query/modelsList.d.ts.map +1 -1
- package/dist/esm/react-query/modelsList.js +0 -1
- package/dist/esm/react-query/modelsList.js.map +1 -1
- package/dist/esm/sdk/chat.d.ts +3 -11
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +0 -1
- package/dist/esm/sdk/chat.js.map +1 -1
- package/dist/esm/sdk/endpoints.d.ts +1 -1
- package/dist/esm/sdk/endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/endpoints.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +1 -5
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js +0 -1
- package/dist/esm/sdk/models.js.map +1 -1
- package/dist/esm/sdk/responses.d.ts +6 -14
- package/dist/esm/sdk/responses.d.ts.map +1 -1
- package/dist/esm/sdk/responses.js +3 -4
- package/dist/esm/sdk/responses.js.map +1 -1
- package/docs/sdks/endpoints/README.md +1 -1
- package/docs/sdks/models/README.md +1 -1
- package/docs/sdks/responses/README.md +13 -9
- package/examples/{betaResponsesSendRequest.example.ts → betaResponsesSend.example.ts} +4 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +19 -24
- package/src/funcs/chatSend.ts +6 -12
- package/src/funcs/endpointsList.ts +3 -3
- package/src/funcs/modelsList.ts +6 -14
- package/src/lib/config.ts +2 -2
- package/src/models/endpointslist.ts +1030 -0
- package/src/models/index.ts +4 -4
- package/src/models/keyinfo.ts +281 -0
- package/src/models/modelslist.ts +1394 -0
- package/src/models/operations/generate.ts +232 -188
- package/src/models/operations/getcurrentkey.ts +5 -203
- package/src/models/operations/list.ts +109 -1106
- package/src/models/operations/listmodels.ts +26 -1436
- package/src/models/operations/listusermodels.ts +5 -1440
- package/src/models/operations/previewzdr.ts +196 -225
- package/src/models/operations/sendresponsesrequest.ts +2005 -0
- package/src/models/responsereasoningconfig.ts +17 -0
- package/src/models/responsesnonstreamingresponse.ts +37 -55
- package/src/models/responsesusage.ts +96 -0
- package/src/models/{toolchoice.ts → toolchoiceunion.ts} +181 -37
- package/src/react-query/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +20 -26
- package/src/react-query/chatSend.ts +2 -4
- package/src/react-query/endpointsList.ts +4 -4
- package/src/react-query/index.ts +1 -1
- package/src/react-query/modelsList.ts +6 -8
- package/src/sdk/chat.ts +5 -7
- package/src/sdk/endpoints.ts +1 -1
- package/src/sdk/models.ts +3 -5
- package/src/sdk/responses.ts +18 -21
- package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts +0 -36
- package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/commonjs/funcs/betaResponsesSendRequest.js.map +0 -1
- package/dist/commonjs/models/openairesponsesrequest.d.ts +0 -1704
- package/dist/commonjs/models/openairesponsesrequest.d.ts.map +0 -1
- package/dist/commonjs/models/openairesponsesrequest.js +0 -1212
- package/dist/commonjs/models/openairesponsesrequest.js.map +0 -1
- package/dist/commonjs/models/toolchoice.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoice.js.map +0 -1
- package/dist/commonjs/models/toolchoicefunction.d.ts +0 -57
- package/dist/commonjs/models/toolchoicefunction.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoicefunction.js +0 -89
- package/dist/commonjs/models/toolchoicefunction.js.map +0 -1
- package/dist/commonjs/models/toolchoicetypes.d.ts +0 -33
- package/dist/commonjs/models/toolchoicetypes.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoicetypes.js +0 -70
- package/dist/commonjs/models/toolchoicetypes.js.map +0 -1
- package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts +0 -28
- package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/commonjs/react-query/betaResponsesSendRequest.js +0 -50
- package/dist/commonjs/react-query/betaResponsesSendRequest.js.map +0 -1
- package/dist/esm/funcs/betaResponsesSendRequest.d.ts +0 -36
- package/dist/esm/funcs/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/esm/funcs/betaResponsesSendRequest.js.map +0 -1
- package/dist/esm/models/openairesponsesrequest.d.ts +0 -1704
- package/dist/esm/models/openairesponsesrequest.d.ts.map +0 -1
- package/dist/esm/models/openairesponsesrequest.js +0 -1138
- package/dist/esm/models/openairesponsesrequest.js.map +0 -1
- package/dist/esm/models/toolchoice.d.ts.map +0 -1
- package/dist/esm/models/toolchoice.js +0 -95
- package/dist/esm/models/toolchoice.js.map +0 -1
- package/dist/esm/models/toolchoicefunction.d.ts +0 -57
- package/dist/esm/models/toolchoicefunction.d.ts.map +0 -1
- package/dist/esm/models/toolchoicefunction.js +0 -51
- package/dist/esm/models/toolchoicefunction.js.map +0 -1
- package/dist/esm/models/toolchoicetypes.d.ts +0 -33
- package/dist/esm/models/toolchoicetypes.d.ts.map +0 -1
- package/dist/esm/models/toolchoicetypes.js +0 -32
- package/dist/esm/models/toolchoicetypes.js.map +0 -1
- package/dist/esm/react-query/betaResponsesSendRequest.d.ts +0 -28
- package/dist/esm/react-query/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/esm/react-query/betaResponsesSendRequest.js.map +0 -1
- package/src/models/openairesponsesrequest.ts +0 -1935
- package/src/models/toolchoicefunction.ts +0 -100
- package/src/models/toolchoicetypes.ts +0 -73
|
@@ -8,8 +8,9 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
11
12
|
|
|
12
|
-
export type
|
|
13
|
+
export type ListRequest = {
|
|
13
14
|
author: string;
|
|
14
15
|
slug: string;
|
|
15
16
|
};
|
|
@@ -17,7 +18,7 @@ export type ListRequestRequest = {
|
|
|
17
18
|
/**
|
|
18
19
|
* Tokenizer type used by the model
|
|
19
20
|
*/
|
|
20
|
-
export const
|
|
21
|
+
export const Tokenizer = {
|
|
21
22
|
Router: "Router",
|
|
22
23
|
Media: "Media",
|
|
23
24
|
Other: "Other",
|
|
@@ -41,12 +42,12 @@ export const ListTokenizer = {
|
|
|
41
42
|
/**
|
|
42
43
|
* Tokenizer type used by the model
|
|
43
44
|
*/
|
|
44
|
-
export type
|
|
45
|
+
export type Tokenizer = ClosedEnum<typeof Tokenizer>;
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* Instruction format type
|
|
48
49
|
*/
|
|
49
|
-
export const
|
|
50
|
+
export const InstructType = {
|
|
50
51
|
None: "none",
|
|
51
52
|
Airoboros: "airoboros",
|
|
52
53
|
Alpaca: "alpaca",
|
|
@@ -73,35 +74,35 @@ export const ListInstructType = {
|
|
|
73
74
|
/**
|
|
74
75
|
* Instruction format type
|
|
75
76
|
*/
|
|
76
|
-
export type
|
|
77
|
+
export type InstructType = ClosedEnum<typeof InstructType>;
|
|
77
78
|
|
|
78
|
-
export const
|
|
79
|
+
export const InputModality = {
|
|
79
80
|
Text: "text",
|
|
80
81
|
Image: "image",
|
|
81
82
|
File: "file",
|
|
82
83
|
Audio: "audio",
|
|
83
84
|
} as const;
|
|
84
|
-
export type
|
|
85
|
+
export type InputModality = ClosedEnum<typeof InputModality>;
|
|
85
86
|
|
|
86
|
-
export const
|
|
87
|
+
export const OutputModality = {
|
|
87
88
|
Text: "text",
|
|
88
89
|
Image: "image",
|
|
89
90
|
Embeddings: "embeddings",
|
|
90
91
|
} as const;
|
|
91
|
-
export type
|
|
92
|
+
export type OutputModality = ClosedEnum<typeof OutputModality>;
|
|
92
93
|
|
|
93
94
|
/**
|
|
94
95
|
* Model architecture information
|
|
95
96
|
*/
|
|
96
|
-
export type
|
|
97
|
+
export type Architecture = {
|
|
97
98
|
/**
|
|
98
99
|
* Tokenizer type used by the model
|
|
99
100
|
*/
|
|
100
|
-
tokenizer:
|
|
101
|
+
tokenizer: Tokenizer | null;
|
|
101
102
|
/**
|
|
102
103
|
* Instruction format type
|
|
103
104
|
*/
|
|
104
|
-
instructType:
|
|
105
|
+
instructType: InstructType | null;
|
|
105
106
|
/**
|
|
106
107
|
* Primary modality of the model
|
|
107
108
|
*/
|
|
@@ -109,200 +110,11 @@ export type ListArchitecture = {
|
|
|
109
110
|
/**
|
|
110
111
|
* Supported input modalities
|
|
111
112
|
*/
|
|
112
|
-
inputModalities: Array<
|
|
113
|
+
inputModalities: Array<InputModality>;
|
|
113
114
|
/**
|
|
114
115
|
* Supported output modalities
|
|
115
116
|
*/
|
|
116
|
-
outputModalities: Array<
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export type ListPrompt = number | string | any;
|
|
120
|
-
|
|
121
|
-
export type ListCompletion = number | string | any;
|
|
122
|
-
|
|
123
|
-
export type EndpointsListRequest = number | string | any;
|
|
124
|
-
|
|
125
|
-
export type ListImage = number | string | any;
|
|
126
|
-
|
|
127
|
-
export type ListImageOutput = number | string | any;
|
|
128
|
-
|
|
129
|
-
export type ListAudio = number | string | any;
|
|
130
|
-
|
|
131
|
-
export type ListInputAudioCache = number | string | any;
|
|
132
|
-
|
|
133
|
-
export type ListWebSearch = number | string | any;
|
|
134
|
-
|
|
135
|
-
export type ListInternalReasoning = number | string | any;
|
|
136
|
-
|
|
137
|
-
export type ListInputCacheRead = number | string | any;
|
|
138
|
-
|
|
139
|
-
export type ListInputCacheWrite = number | string | any;
|
|
140
|
-
|
|
141
|
-
export type ListPricing = {
|
|
142
|
-
prompt?: number | string | any | undefined;
|
|
143
|
-
completion?: number | string | any | undefined;
|
|
144
|
-
request?: number | string | any | undefined;
|
|
145
|
-
image?: number | string | any | undefined;
|
|
146
|
-
imageOutput?: number | string | any | undefined;
|
|
147
|
-
audio?: number | string | any | undefined;
|
|
148
|
-
inputAudioCache?: number | string | any | undefined;
|
|
149
|
-
webSearch?: number | string | any | undefined;
|
|
150
|
-
internalReasoning?: number | string | any | undefined;
|
|
151
|
-
inputCacheRead?: number | string | any | undefined;
|
|
152
|
-
inputCacheWrite?: number | string | any | undefined;
|
|
153
|
-
discount?: number | undefined;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const ListProviderName = {
|
|
157
|
-
AnyScale: "AnyScale",
|
|
158
|
-
CentML: "Cent-ML",
|
|
159
|
-
HuggingFace: "HuggingFace",
|
|
160
|
-
Hyperbolic2: "Hyperbolic 2",
|
|
161
|
-
Lepton: "Lepton",
|
|
162
|
-
Lynn2: "Lynn 2",
|
|
163
|
-
Lynn: "Lynn",
|
|
164
|
-
Mancer: "Mancer",
|
|
165
|
-
Modal: "Modal",
|
|
166
|
-
OctoAI: "OctoAI",
|
|
167
|
-
Recursal: "Recursal",
|
|
168
|
-
Reflection: "Reflection",
|
|
169
|
-
Replicate: "Replicate",
|
|
170
|
-
SambaNova2: "SambaNova 2",
|
|
171
|
-
SFCompute: "SF Compute",
|
|
172
|
-
Together2: "Together 2",
|
|
173
|
-
OneDotAI: "01.AI",
|
|
174
|
-
Ai21: "AI21",
|
|
175
|
-
AionLabs: "AionLabs",
|
|
176
|
-
Alibaba: "Alibaba",
|
|
177
|
-
AmazonBedrock: "Amazon Bedrock",
|
|
178
|
-
Anthropic: "Anthropic",
|
|
179
|
-
AtlasCloud: "AtlasCloud",
|
|
180
|
-
Atoma: "Atoma",
|
|
181
|
-
Avian: "Avian",
|
|
182
|
-
Azure: "Azure",
|
|
183
|
-
BaseTen: "BaseTen",
|
|
184
|
-
Cerebras: "Cerebras",
|
|
185
|
-
Chutes: "Chutes",
|
|
186
|
-
Cloudflare: "Cloudflare",
|
|
187
|
-
Cohere: "Cohere",
|
|
188
|
-
CrofAI: "CrofAI",
|
|
189
|
-
Crusoe: "Crusoe",
|
|
190
|
-
DeepInfra: "DeepInfra",
|
|
191
|
-
DeepSeek: "DeepSeek",
|
|
192
|
-
Enfer: "Enfer",
|
|
193
|
-
Featherless: "Featherless",
|
|
194
|
-
Fireworks: "Fireworks",
|
|
195
|
-
Friendli: "Friendli",
|
|
196
|
-
GMICloud: "GMICloud",
|
|
197
|
-
Google: "Google",
|
|
198
|
-
GoogleAIStudio: "Google AI Studio",
|
|
199
|
-
Groq: "Groq",
|
|
200
|
-
Hyperbolic: "Hyperbolic",
|
|
201
|
-
Inception: "Inception",
|
|
202
|
-
InferenceNet: "InferenceNet",
|
|
203
|
-
Infermatic: "Infermatic",
|
|
204
|
-
Inflection: "Inflection",
|
|
205
|
-
InoCloud: "InoCloud",
|
|
206
|
-
Kluster: "Kluster",
|
|
207
|
-
Lambda: "Lambda",
|
|
208
|
-
Liquid: "Liquid",
|
|
209
|
-
Mancer2: "Mancer 2",
|
|
210
|
-
Meta: "Meta",
|
|
211
|
-
Minimax: "Minimax",
|
|
212
|
-
Mistral: "Mistral",
|
|
213
|
-
MoonshotAI: "Moonshot AI",
|
|
214
|
-
Morph: "Morph",
|
|
215
|
-
NCompass: "NCompass",
|
|
216
|
-
Nebius: "Nebius",
|
|
217
|
-
NextBit: "NextBit",
|
|
218
|
-
Nineteen: "Nineteen",
|
|
219
|
-
Novita: "Novita",
|
|
220
|
-
Nvidia: "Nvidia",
|
|
221
|
-
OpenAI: "OpenAI",
|
|
222
|
-
OpenInference: "OpenInference",
|
|
223
|
-
Parasail: "Parasail",
|
|
224
|
-
Perplexity: "Perplexity",
|
|
225
|
-
Phala: "Phala",
|
|
226
|
-
Relace: "Relace",
|
|
227
|
-
SambaNova: "SambaNova",
|
|
228
|
-
SiliconFlow: "SiliconFlow",
|
|
229
|
-
Stealth: "Stealth",
|
|
230
|
-
Switchpoint: "Switchpoint",
|
|
231
|
-
Targon: "Targon",
|
|
232
|
-
Together: "Together",
|
|
233
|
-
Ubicloud: "Ubicloud",
|
|
234
|
-
Venice: "Venice",
|
|
235
|
-
WandB: "WandB",
|
|
236
|
-
XAI: "xAI",
|
|
237
|
-
ZAi: "Z.AI",
|
|
238
|
-
FakeProvider: "FakeProvider",
|
|
239
|
-
} as const;
|
|
240
|
-
export type ListProviderName = ClosedEnum<typeof ListProviderName>;
|
|
241
|
-
|
|
242
|
-
export const ListQuantization = {
|
|
243
|
-
Int4: "int4",
|
|
244
|
-
Int8: "int8",
|
|
245
|
-
Fp4: "fp4",
|
|
246
|
-
Fp6: "fp6",
|
|
247
|
-
Fp8: "fp8",
|
|
248
|
-
Fp16: "fp16",
|
|
249
|
-
Bf16: "bf16",
|
|
250
|
-
Fp32: "fp32",
|
|
251
|
-
Unknown: "unknown",
|
|
252
|
-
} as const;
|
|
253
|
-
export type ListQuantization = ClosedEnum<typeof ListQuantization>;
|
|
254
|
-
|
|
255
|
-
export const ListSupportedParameter = {
|
|
256
|
-
Temperature: "temperature",
|
|
257
|
-
TopP: "top_p",
|
|
258
|
-
TopK: "top_k",
|
|
259
|
-
MinP: "min_p",
|
|
260
|
-
TopA: "top_a",
|
|
261
|
-
FrequencyPenalty: "frequency_penalty",
|
|
262
|
-
PresencePenalty: "presence_penalty",
|
|
263
|
-
RepetitionPenalty: "repetition_penalty",
|
|
264
|
-
MaxTokens: "max_tokens",
|
|
265
|
-
LogitBias: "logit_bias",
|
|
266
|
-
Logprobs: "logprobs",
|
|
267
|
-
TopLogprobs: "top_logprobs",
|
|
268
|
-
Seed: "seed",
|
|
269
|
-
ResponseFormat: "response_format",
|
|
270
|
-
StructuredOutputs: "structured_outputs",
|
|
271
|
-
Stop: "stop",
|
|
272
|
-
Tools: "tools",
|
|
273
|
-
ToolChoice: "tool_choice",
|
|
274
|
-
ParallelToolCalls: "parallel_tool_calls",
|
|
275
|
-
IncludeReasoning: "include_reasoning",
|
|
276
|
-
Reasoning: "reasoning",
|
|
277
|
-
WebSearchOptions: "web_search_options",
|
|
278
|
-
Verbosity: "verbosity",
|
|
279
|
-
} as const;
|
|
280
|
-
export type ListSupportedParameter = ClosedEnum<typeof ListSupportedParameter>;
|
|
281
|
-
|
|
282
|
-
export const ListStatus = {
|
|
283
|
-
Zero: 0,
|
|
284
|
-
Minus1: -1,
|
|
285
|
-
Minus2: -2,
|
|
286
|
-
Minus3: -3,
|
|
287
|
-
Minus5: -5,
|
|
288
|
-
Minus10: -10,
|
|
289
|
-
} as const;
|
|
290
|
-
export type ListStatus = ClosedEnum<typeof ListStatus>;
|
|
291
|
-
|
|
292
|
-
export type Endpoint = {
|
|
293
|
-
name: string;
|
|
294
|
-
modelName: string;
|
|
295
|
-
contextLength: number;
|
|
296
|
-
pricing: ListPricing;
|
|
297
|
-
providerName: ListProviderName;
|
|
298
|
-
tag: string;
|
|
299
|
-
quantization: ListQuantization | null;
|
|
300
|
-
maxCompletionTokens: number | null;
|
|
301
|
-
maxPromptTokens: number | null;
|
|
302
|
-
supportedParameters: Array<ListSupportedParameter>;
|
|
303
|
-
status?: ListStatus | undefined;
|
|
304
|
-
uptimeLast30m: number | null;
|
|
305
|
-
supportsImplicitCaching: boolean;
|
|
117
|
+
outputModalities: Array<OutputModality>;
|
|
306
118
|
};
|
|
307
119
|
|
|
308
120
|
export type ListData = {
|
|
@@ -325,11 +137,11 @@ export type ListData = {
|
|
|
325
137
|
/**
|
|
326
138
|
* Model architecture information
|
|
327
139
|
*/
|
|
328
|
-
architecture:
|
|
140
|
+
architecture: Architecture;
|
|
329
141
|
/**
|
|
330
142
|
* List of available endpoints for this model
|
|
331
143
|
*/
|
|
332
|
-
endpoints: Array<
|
|
144
|
+
endpoints: Array<models.EndpointsList>;
|
|
333
145
|
};
|
|
334
146
|
|
|
335
147
|
/**
|
|
@@ -340,8 +152,8 @@ export type ListResponse = {
|
|
|
340
152
|
};
|
|
341
153
|
|
|
342
154
|
/** @internal */
|
|
343
|
-
export const
|
|
344
|
-
|
|
155
|
+
export const ListRequest$inboundSchema: z.ZodType<
|
|
156
|
+
ListRequest,
|
|
345
157
|
z.ZodTypeDef,
|
|
346
158
|
unknown
|
|
347
159
|
> = z.object({
|
|
@@ -350,16 +162,16 @@ export const ListRequestRequest$inboundSchema: z.ZodType<
|
|
|
350
162
|
});
|
|
351
163
|
|
|
352
164
|
/** @internal */
|
|
353
|
-
export type
|
|
165
|
+
export type ListRequest$Outbound = {
|
|
354
166
|
author: string;
|
|
355
167
|
slug: string;
|
|
356
168
|
};
|
|
357
169
|
|
|
358
170
|
/** @internal */
|
|
359
|
-
export const
|
|
360
|
-
|
|
171
|
+
export const ListRequest$outboundSchema: z.ZodType<
|
|
172
|
+
ListRequest$Outbound,
|
|
361
173
|
z.ZodTypeDef,
|
|
362
|
-
|
|
174
|
+
ListRequest
|
|
363
175
|
> = z.object({
|
|
364
176
|
author: z.string(),
|
|
365
177
|
slug: z.string(),
|
|
@@ -369,128 +181,120 @@ export const ListRequestRequest$outboundSchema: z.ZodType<
|
|
|
369
181
|
* @internal
|
|
370
182
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
371
183
|
*/
|
|
372
|
-
export namespace
|
|
373
|
-
/** @deprecated use `
|
|
374
|
-
export const inboundSchema =
|
|
375
|
-
/** @deprecated use `
|
|
376
|
-
export const outboundSchema =
|
|
377
|
-
/** @deprecated use `
|
|
378
|
-
export type Outbound =
|
|
184
|
+
export namespace ListRequest$ {
|
|
185
|
+
/** @deprecated use `ListRequest$inboundSchema` instead. */
|
|
186
|
+
export const inboundSchema = ListRequest$inboundSchema;
|
|
187
|
+
/** @deprecated use `ListRequest$outboundSchema` instead. */
|
|
188
|
+
export const outboundSchema = ListRequest$outboundSchema;
|
|
189
|
+
/** @deprecated use `ListRequest$Outbound` instead. */
|
|
190
|
+
export type Outbound = ListRequest$Outbound;
|
|
379
191
|
}
|
|
380
192
|
|
|
381
|
-
export function
|
|
382
|
-
|
|
383
|
-
): string {
|
|
384
|
-
return JSON.stringify(
|
|
385
|
-
ListRequestRequest$outboundSchema.parse(listRequestRequest),
|
|
386
|
-
);
|
|
193
|
+
export function listRequestToJSON(listRequest: ListRequest): string {
|
|
194
|
+
return JSON.stringify(ListRequest$outboundSchema.parse(listRequest));
|
|
387
195
|
}
|
|
388
196
|
|
|
389
|
-
export function
|
|
197
|
+
export function listRequestFromJSON(
|
|
390
198
|
jsonString: string,
|
|
391
|
-
): SafeParseResult<
|
|
199
|
+
): SafeParseResult<ListRequest, SDKValidationError> {
|
|
392
200
|
return safeParse(
|
|
393
201
|
jsonString,
|
|
394
|
-
(x) =>
|
|
395
|
-
`Failed to parse '
|
|
202
|
+
(x) => ListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'ListRequest' from JSON`,
|
|
396
204
|
);
|
|
397
205
|
}
|
|
398
206
|
|
|
399
207
|
/** @internal */
|
|
400
|
-
export const
|
|
401
|
-
|
|
402
|
-
> = z.nativeEnum(ListTokenizer);
|
|
208
|
+
export const Tokenizer$inboundSchema: z.ZodNativeEnum<typeof Tokenizer> = z
|
|
209
|
+
.nativeEnum(Tokenizer);
|
|
403
210
|
|
|
404
211
|
/** @internal */
|
|
405
|
-
export const
|
|
406
|
-
|
|
407
|
-
> = ListTokenizer$inboundSchema;
|
|
212
|
+
export const Tokenizer$outboundSchema: z.ZodNativeEnum<typeof Tokenizer> =
|
|
213
|
+
Tokenizer$inboundSchema;
|
|
408
214
|
|
|
409
215
|
/**
|
|
410
216
|
* @internal
|
|
411
217
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
412
218
|
*/
|
|
413
|
-
export namespace
|
|
414
|
-
/** @deprecated use `
|
|
415
|
-
export const inboundSchema =
|
|
416
|
-
/** @deprecated use `
|
|
417
|
-
export const outboundSchema =
|
|
219
|
+
export namespace Tokenizer$ {
|
|
220
|
+
/** @deprecated use `Tokenizer$inboundSchema` instead. */
|
|
221
|
+
export const inboundSchema = Tokenizer$inboundSchema;
|
|
222
|
+
/** @deprecated use `Tokenizer$outboundSchema` instead. */
|
|
223
|
+
export const outboundSchema = Tokenizer$outboundSchema;
|
|
418
224
|
}
|
|
419
225
|
|
|
420
226
|
/** @internal */
|
|
421
|
-
export const
|
|
422
|
-
|
|
423
|
-
> = z.nativeEnum(ListInstructType);
|
|
227
|
+
export const InstructType$inboundSchema: z.ZodNativeEnum<typeof InstructType> =
|
|
228
|
+
z.nativeEnum(InstructType);
|
|
424
229
|
|
|
425
230
|
/** @internal */
|
|
426
|
-
export const
|
|
427
|
-
|
|
428
|
-
> = ListInstructType$inboundSchema;
|
|
231
|
+
export const InstructType$outboundSchema: z.ZodNativeEnum<typeof InstructType> =
|
|
232
|
+
InstructType$inboundSchema;
|
|
429
233
|
|
|
430
234
|
/**
|
|
431
235
|
* @internal
|
|
432
236
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
433
237
|
*/
|
|
434
|
-
export namespace
|
|
435
|
-
/** @deprecated use `
|
|
436
|
-
export const inboundSchema =
|
|
437
|
-
/** @deprecated use `
|
|
438
|
-
export const outboundSchema =
|
|
238
|
+
export namespace InstructType$ {
|
|
239
|
+
/** @deprecated use `InstructType$inboundSchema` instead. */
|
|
240
|
+
export const inboundSchema = InstructType$inboundSchema;
|
|
241
|
+
/** @deprecated use `InstructType$outboundSchema` instead. */
|
|
242
|
+
export const outboundSchema = InstructType$outboundSchema;
|
|
439
243
|
}
|
|
440
244
|
|
|
441
245
|
/** @internal */
|
|
442
|
-
export const
|
|
443
|
-
typeof
|
|
444
|
-
> = z.nativeEnum(
|
|
246
|
+
export const InputModality$inboundSchema: z.ZodNativeEnum<
|
|
247
|
+
typeof InputModality
|
|
248
|
+
> = z.nativeEnum(InputModality);
|
|
445
249
|
|
|
446
250
|
/** @internal */
|
|
447
|
-
export const
|
|
448
|
-
typeof
|
|
449
|
-
> =
|
|
251
|
+
export const InputModality$outboundSchema: z.ZodNativeEnum<
|
|
252
|
+
typeof InputModality
|
|
253
|
+
> = InputModality$inboundSchema;
|
|
450
254
|
|
|
451
255
|
/**
|
|
452
256
|
* @internal
|
|
453
257
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
454
258
|
*/
|
|
455
|
-
export namespace
|
|
456
|
-
/** @deprecated use `
|
|
457
|
-
export const inboundSchema =
|
|
458
|
-
/** @deprecated use `
|
|
459
|
-
export const outboundSchema =
|
|
259
|
+
export namespace InputModality$ {
|
|
260
|
+
/** @deprecated use `InputModality$inboundSchema` instead. */
|
|
261
|
+
export const inboundSchema = InputModality$inboundSchema;
|
|
262
|
+
/** @deprecated use `InputModality$outboundSchema` instead. */
|
|
263
|
+
export const outboundSchema = InputModality$outboundSchema;
|
|
460
264
|
}
|
|
461
265
|
|
|
462
266
|
/** @internal */
|
|
463
|
-
export const
|
|
464
|
-
typeof
|
|
465
|
-
> = z.nativeEnum(
|
|
267
|
+
export const OutputModality$inboundSchema: z.ZodNativeEnum<
|
|
268
|
+
typeof OutputModality
|
|
269
|
+
> = z.nativeEnum(OutputModality);
|
|
466
270
|
|
|
467
271
|
/** @internal */
|
|
468
|
-
export const
|
|
469
|
-
typeof
|
|
470
|
-
> =
|
|
272
|
+
export const OutputModality$outboundSchema: z.ZodNativeEnum<
|
|
273
|
+
typeof OutputModality
|
|
274
|
+
> = OutputModality$inboundSchema;
|
|
471
275
|
|
|
472
276
|
/**
|
|
473
277
|
* @internal
|
|
474
278
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
475
279
|
*/
|
|
476
|
-
export namespace
|
|
477
|
-
/** @deprecated use `
|
|
478
|
-
export const inboundSchema =
|
|
479
|
-
/** @deprecated use `
|
|
480
|
-
export const outboundSchema =
|
|
280
|
+
export namespace OutputModality$ {
|
|
281
|
+
/** @deprecated use `OutputModality$inboundSchema` instead. */
|
|
282
|
+
export const inboundSchema = OutputModality$inboundSchema;
|
|
283
|
+
/** @deprecated use `OutputModality$outboundSchema` instead. */
|
|
284
|
+
export const outboundSchema = OutputModality$outboundSchema;
|
|
481
285
|
}
|
|
482
286
|
|
|
483
287
|
/** @internal */
|
|
484
|
-
export const
|
|
485
|
-
|
|
288
|
+
export const Architecture$inboundSchema: z.ZodType<
|
|
289
|
+
Architecture,
|
|
486
290
|
z.ZodTypeDef,
|
|
487
291
|
unknown
|
|
488
292
|
> = z.object({
|
|
489
|
-
tokenizer: z.nullable(
|
|
490
|
-
instruct_type: z.nullable(
|
|
293
|
+
tokenizer: z.nullable(Tokenizer$inboundSchema),
|
|
294
|
+
instruct_type: z.nullable(InstructType$inboundSchema),
|
|
491
295
|
modality: z.nullable(z.string()),
|
|
492
|
-
input_modalities: z.array(
|
|
493
|
-
output_modalities: z.array(
|
|
296
|
+
input_modalities: z.array(InputModality$inboundSchema),
|
|
297
|
+
output_modalities: z.array(OutputModality$inboundSchema),
|
|
494
298
|
}).transform((v) => {
|
|
495
299
|
return remap$(v, {
|
|
496
300
|
"instruct_type": "instructType",
|
|
@@ -500,7 +304,7 @@ export const ListArchitecture$inboundSchema: z.ZodType<
|
|
|
500
304
|
});
|
|
501
305
|
|
|
502
306
|
/** @internal */
|
|
503
|
-
export type
|
|
307
|
+
export type Architecture$Outbound = {
|
|
504
308
|
tokenizer: string | null;
|
|
505
309
|
instruct_type: string | null;
|
|
506
310
|
modality: string | null;
|
|
@@ -509,16 +313,16 @@ export type ListArchitecture$Outbound = {
|
|
|
509
313
|
};
|
|
510
314
|
|
|
511
315
|
/** @internal */
|
|
512
|
-
export const
|
|
513
|
-
|
|
316
|
+
export const Architecture$outboundSchema: z.ZodType<
|
|
317
|
+
Architecture$Outbound,
|
|
514
318
|
z.ZodTypeDef,
|
|
515
|
-
|
|
319
|
+
Architecture
|
|
516
320
|
> = z.object({
|
|
517
|
-
tokenizer: z.nullable(
|
|
518
|
-
instructType: z.nullable(
|
|
321
|
+
tokenizer: z.nullable(Tokenizer$outboundSchema),
|
|
322
|
+
instructType: z.nullable(InstructType$outboundSchema),
|
|
519
323
|
modality: z.nullable(z.string()),
|
|
520
|
-
inputModalities: z.array(
|
|
521
|
-
outputModalities: z.array(
|
|
324
|
+
inputModalities: z.array(InputModality$outboundSchema),
|
|
325
|
+
outputModalities: z.array(OutputModality$outboundSchema),
|
|
522
326
|
}).transform((v) => {
|
|
523
327
|
return remap$(v, {
|
|
524
328
|
instructType: "instruct_type",
|
|
@@ -531,827 +335,26 @@ export const ListArchitecture$outboundSchema: z.ZodType<
|
|
|
531
335
|
* @internal
|
|
532
336
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
533
337
|
*/
|
|
534
|
-
export namespace
|
|
535
|
-
/** @deprecated use `
|
|
536
|
-
export const inboundSchema =
|
|
537
|
-
/** @deprecated use `
|
|
538
|
-
export const outboundSchema =
|
|
539
|
-
/** @deprecated use `
|
|
540
|
-
export type Outbound =
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export function listArchitectureToJSON(
|
|
544
|
-
listArchitecture: ListArchitecture,
|
|
545
|
-
): string {
|
|
546
|
-
return JSON.stringify(
|
|
547
|
-
ListArchitecture$outboundSchema.parse(listArchitecture),
|
|
548
|
-
);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
export function listArchitectureFromJSON(
|
|
552
|
-
jsonString: string,
|
|
553
|
-
): SafeParseResult<ListArchitecture, SDKValidationError> {
|
|
554
|
-
return safeParse(
|
|
555
|
-
jsonString,
|
|
556
|
-
(x) => ListArchitecture$inboundSchema.parse(JSON.parse(x)),
|
|
557
|
-
`Failed to parse 'ListArchitecture' from JSON`,
|
|
558
|
-
);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/** @internal */
|
|
562
|
-
export const ListPrompt$inboundSchema: z.ZodType<
|
|
563
|
-
ListPrompt,
|
|
564
|
-
z.ZodTypeDef,
|
|
565
|
-
unknown
|
|
566
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
567
|
-
|
|
568
|
-
/** @internal */
|
|
569
|
-
export type ListPrompt$Outbound = number | string | any;
|
|
570
|
-
|
|
571
|
-
/** @internal */
|
|
572
|
-
export const ListPrompt$outboundSchema: z.ZodType<
|
|
573
|
-
ListPrompt$Outbound,
|
|
574
|
-
z.ZodTypeDef,
|
|
575
|
-
ListPrompt
|
|
576
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* @internal
|
|
580
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
581
|
-
*/
|
|
582
|
-
export namespace ListPrompt$ {
|
|
583
|
-
/** @deprecated use `ListPrompt$inboundSchema` instead. */
|
|
584
|
-
export const inboundSchema = ListPrompt$inboundSchema;
|
|
585
|
-
/** @deprecated use `ListPrompt$outboundSchema` instead. */
|
|
586
|
-
export const outboundSchema = ListPrompt$outboundSchema;
|
|
587
|
-
/** @deprecated use `ListPrompt$Outbound` instead. */
|
|
588
|
-
export type Outbound = ListPrompt$Outbound;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
export function listPromptToJSON(listPrompt: ListPrompt): string {
|
|
592
|
-
return JSON.stringify(ListPrompt$outboundSchema.parse(listPrompt));
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export function listPromptFromJSON(
|
|
596
|
-
jsonString: string,
|
|
597
|
-
): SafeParseResult<ListPrompt, SDKValidationError> {
|
|
598
|
-
return safeParse(
|
|
599
|
-
jsonString,
|
|
600
|
-
(x) => ListPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
601
|
-
`Failed to parse 'ListPrompt' from JSON`,
|
|
602
|
-
);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/** @internal */
|
|
606
|
-
export const ListCompletion$inboundSchema: z.ZodType<
|
|
607
|
-
ListCompletion,
|
|
608
|
-
z.ZodTypeDef,
|
|
609
|
-
unknown
|
|
610
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
611
|
-
|
|
612
|
-
/** @internal */
|
|
613
|
-
export type ListCompletion$Outbound = number | string | any;
|
|
614
|
-
|
|
615
|
-
/** @internal */
|
|
616
|
-
export const ListCompletion$outboundSchema: z.ZodType<
|
|
617
|
-
ListCompletion$Outbound,
|
|
618
|
-
z.ZodTypeDef,
|
|
619
|
-
ListCompletion
|
|
620
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* @internal
|
|
624
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
625
|
-
*/
|
|
626
|
-
export namespace ListCompletion$ {
|
|
627
|
-
/** @deprecated use `ListCompletion$inboundSchema` instead. */
|
|
628
|
-
export const inboundSchema = ListCompletion$inboundSchema;
|
|
629
|
-
/** @deprecated use `ListCompletion$outboundSchema` instead. */
|
|
630
|
-
export const outboundSchema = ListCompletion$outboundSchema;
|
|
631
|
-
/** @deprecated use `ListCompletion$Outbound` instead. */
|
|
632
|
-
export type Outbound = ListCompletion$Outbound;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export function listCompletionToJSON(listCompletion: ListCompletion): string {
|
|
636
|
-
return JSON.stringify(ListCompletion$outboundSchema.parse(listCompletion));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export function listCompletionFromJSON(
|
|
640
|
-
jsonString: string,
|
|
641
|
-
): SafeParseResult<ListCompletion, SDKValidationError> {
|
|
642
|
-
return safeParse(
|
|
643
|
-
jsonString,
|
|
644
|
-
(x) => ListCompletion$inboundSchema.parse(JSON.parse(x)),
|
|
645
|
-
`Failed to parse 'ListCompletion' from JSON`,
|
|
646
|
-
);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/** @internal */
|
|
650
|
-
export const EndpointsListRequest$inboundSchema: z.ZodType<
|
|
651
|
-
EndpointsListRequest,
|
|
652
|
-
z.ZodTypeDef,
|
|
653
|
-
unknown
|
|
654
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
655
|
-
|
|
656
|
-
/** @internal */
|
|
657
|
-
export type EndpointsListRequest$Outbound = number | string | any;
|
|
658
|
-
|
|
659
|
-
/** @internal */
|
|
660
|
-
export const EndpointsListRequest$outboundSchema: z.ZodType<
|
|
661
|
-
EndpointsListRequest$Outbound,
|
|
662
|
-
z.ZodTypeDef,
|
|
663
|
-
EndpointsListRequest
|
|
664
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* @internal
|
|
668
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
669
|
-
*/
|
|
670
|
-
export namespace EndpointsListRequest$ {
|
|
671
|
-
/** @deprecated use `EndpointsListRequest$inboundSchema` instead. */
|
|
672
|
-
export const inboundSchema = EndpointsListRequest$inboundSchema;
|
|
673
|
-
/** @deprecated use `EndpointsListRequest$outboundSchema` instead. */
|
|
674
|
-
export const outboundSchema = EndpointsListRequest$outboundSchema;
|
|
675
|
-
/** @deprecated use `EndpointsListRequest$Outbound` instead. */
|
|
676
|
-
export type Outbound = EndpointsListRequest$Outbound;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
export function endpointsListRequestToJSON(
|
|
680
|
-
endpointsListRequest: EndpointsListRequest,
|
|
681
|
-
): string {
|
|
682
|
-
return JSON.stringify(
|
|
683
|
-
EndpointsListRequest$outboundSchema.parse(endpointsListRequest),
|
|
684
|
-
);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
export function endpointsListRequestFromJSON(
|
|
688
|
-
jsonString: string,
|
|
689
|
-
): SafeParseResult<EndpointsListRequest, SDKValidationError> {
|
|
690
|
-
return safeParse(
|
|
691
|
-
jsonString,
|
|
692
|
-
(x) => EndpointsListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
693
|
-
`Failed to parse 'EndpointsListRequest' from JSON`,
|
|
694
|
-
);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/** @internal */
|
|
698
|
-
export const ListImage$inboundSchema: z.ZodType<
|
|
699
|
-
ListImage,
|
|
700
|
-
z.ZodTypeDef,
|
|
701
|
-
unknown
|
|
702
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
703
|
-
|
|
704
|
-
/** @internal */
|
|
705
|
-
export type ListImage$Outbound = number | string | any;
|
|
706
|
-
|
|
707
|
-
/** @internal */
|
|
708
|
-
export const ListImage$outboundSchema: z.ZodType<
|
|
709
|
-
ListImage$Outbound,
|
|
710
|
-
z.ZodTypeDef,
|
|
711
|
-
ListImage
|
|
712
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* @internal
|
|
716
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
717
|
-
*/
|
|
718
|
-
export namespace ListImage$ {
|
|
719
|
-
/** @deprecated use `ListImage$inboundSchema` instead. */
|
|
720
|
-
export const inboundSchema = ListImage$inboundSchema;
|
|
721
|
-
/** @deprecated use `ListImage$outboundSchema` instead. */
|
|
722
|
-
export const outboundSchema = ListImage$outboundSchema;
|
|
723
|
-
/** @deprecated use `ListImage$Outbound` instead. */
|
|
724
|
-
export type Outbound = ListImage$Outbound;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export function listImageToJSON(listImage: ListImage): string {
|
|
728
|
-
return JSON.stringify(ListImage$outboundSchema.parse(listImage));
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export function listImageFromJSON(
|
|
732
|
-
jsonString: string,
|
|
733
|
-
): SafeParseResult<ListImage, SDKValidationError> {
|
|
734
|
-
return safeParse(
|
|
735
|
-
jsonString,
|
|
736
|
-
(x) => ListImage$inboundSchema.parse(JSON.parse(x)),
|
|
737
|
-
`Failed to parse 'ListImage' from JSON`,
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/** @internal */
|
|
742
|
-
export const ListImageOutput$inboundSchema: z.ZodType<
|
|
743
|
-
ListImageOutput,
|
|
744
|
-
z.ZodTypeDef,
|
|
745
|
-
unknown
|
|
746
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
747
|
-
|
|
748
|
-
/** @internal */
|
|
749
|
-
export type ListImageOutput$Outbound = number | string | any;
|
|
750
|
-
|
|
751
|
-
/** @internal */
|
|
752
|
-
export const ListImageOutput$outboundSchema: z.ZodType<
|
|
753
|
-
ListImageOutput$Outbound,
|
|
754
|
-
z.ZodTypeDef,
|
|
755
|
-
ListImageOutput
|
|
756
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* @internal
|
|
760
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
761
|
-
*/
|
|
762
|
-
export namespace ListImageOutput$ {
|
|
763
|
-
/** @deprecated use `ListImageOutput$inboundSchema` instead. */
|
|
764
|
-
export const inboundSchema = ListImageOutput$inboundSchema;
|
|
765
|
-
/** @deprecated use `ListImageOutput$outboundSchema` instead. */
|
|
766
|
-
export const outboundSchema = ListImageOutput$outboundSchema;
|
|
767
|
-
/** @deprecated use `ListImageOutput$Outbound` instead. */
|
|
768
|
-
export type Outbound = ListImageOutput$Outbound;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
export function listImageOutputToJSON(
|
|
772
|
-
listImageOutput: ListImageOutput,
|
|
773
|
-
): string {
|
|
774
|
-
return JSON.stringify(ListImageOutput$outboundSchema.parse(listImageOutput));
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
export function listImageOutputFromJSON(
|
|
778
|
-
jsonString: string,
|
|
779
|
-
): SafeParseResult<ListImageOutput, SDKValidationError> {
|
|
780
|
-
return safeParse(
|
|
781
|
-
jsonString,
|
|
782
|
-
(x) => ListImageOutput$inboundSchema.parse(JSON.parse(x)),
|
|
783
|
-
`Failed to parse 'ListImageOutput' from JSON`,
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/** @internal */
|
|
788
|
-
export const ListAudio$inboundSchema: z.ZodType<
|
|
789
|
-
ListAudio,
|
|
790
|
-
z.ZodTypeDef,
|
|
791
|
-
unknown
|
|
792
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
793
|
-
|
|
794
|
-
/** @internal */
|
|
795
|
-
export type ListAudio$Outbound = number | string | any;
|
|
796
|
-
|
|
797
|
-
/** @internal */
|
|
798
|
-
export const ListAudio$outboundSchema: z.ZodType<
|
|
799
|
-
ListAudio$Outbound,
|
|
800
|
-
z.ZodTypeDef,
|
|
801
|
-
ListAudio
|
|
802
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* @internal
|
|
806
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
807
|
-
*/
|
|
808
|
-
export namespace ListAudio$ {
|
|
809
|
-
/** @deprecated use `ListAudio$inboundSchema` instead. */
|
|
810
|
-
export const inboundSchema = ListAudio$inboundSchema;
|
|
811
|
-
/** @deprecated use `ListAudio$outboundSchema` instead. */
|
|
812
|
-
export const outboundSchema = ListAudio$outboundSchema;
|
|
813
|
-
/** @deprecated use `ListAudio$Outbound` instead. */
|
|
814
|
-
export type Outbound = ListAudio$Outbound;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
export function listAudioToJSON(listAudio: ListAudio): string {
|
|
818
|
-
return JSON.stringify(ListAudio$outboundSchema.parse(listAudio));
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export function listAudioFromJSON(
|
|
822
|
-
jsonString: string,
|
|
823
|
-
): SafeParseResult<ListAudio, SDKValidationError> {
|
|
824
|
-
return safeParse(
|
|
825
|
-
jsonString,
|
|
826
|
-
(x) => ListAudio$inboundSchema.parse(JSON.parse(x)),
|
|
827
|
-
`Failed to parse 'ListAudio' from JSON`,
|
|
828
|
-
);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/** @internal */
|
|
832
|
-
export const ListInputAudioCache$inboundSchema: z.ZodType<
|
|
833
|
-
ListInputAudioCache,
|
|
834
|
-
z.ZodTypeDef,
|
|
835
|
-
unknown
|
|
836
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
837
|
-
|
|
838
|
-
/** @internal */
|
|
839
|
-
export type ListInputAudioCache$Outbound = number | string | any;
|
|
840
|
-
|
|
841
|
-
/** @internal */
|
|
842
|
-
export const ListInputAudioCache$outboundSchema: z.ZodType<
|
|
843
|
-
ListInputAudioCache$Outbound,
|
|
844
|
-
z.ZodTypeDef,
|
|
845
|
-
ListInputAudioCache
|
|
846
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* @internal
|
|
850
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
851
|
-
*/
|
|
852
|
-
export namespace ListInputAudioCache$ {
|
|
853
|
-
/** @deprecated use `ListInputAudioCache$inboundSchema` instead. */
|
|
854
|
-
export const inboundSchema = ListInputAudioCache$inboundSchema;
|
|
855
|
-
/** @deprecated use `ListInputAudioCache$outboundSchema` instead. */
|
|
856
|
-
export const outboundSchema = ListInputAudioCache$outboundSchema;
|
|
857
|
-
/** @deprecated use `ListInputAudioCache$Outbound` instead. */
|
|
858
|
-
export type Outbound = ListInputAudioCache$Outbound;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
export function listInputAudioCacheToJSON(
|
|
862
|
-
listInputAudioCache: ListInputAudioCache,
|
|
863
|
-
): string {
|
|
864
|
-
return JSON.stringify(
|
|
865
|
-
ListInputAudioCache$outboundSchema.parse(listInputAudioCache),
|
|
866
|
-
);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
export function listInputAudioCacheFromJSON(
|
|
870
|
-
jsonString: string,
|
|
871
|
-
): SafeParseResult<ListInputAudioCache, SDKValidationError> {
|
|
872
|
-
return safeParse(
|
|
873
|
-
jsonString,
|
|
874
|
-
(x) => ListInputAudioCache$inboundSchema.parse(JSON.parse(x)),
|
|
875
|
-
`Failed to parse 'ListInputAudioCache' from JSON`,
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
/** @internal */
|
|
880
|
-
export const ListWebSearch$inboundSchema: z.ZodType<
|
|
881
|
-
ListWebSearch,
|
|
882
|
-
z.ZodTypeDef,
|
|
883
|
-
unknown
|
|
884
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
885
|
-
|
|
886
|
-
/** @internal */
|
|
887
|
-
export type ListWebSearch$Outbound = number | string | any;
|
|
888
|
-
|
|
889
|
-
/** @internal */
|
|
890
|
-
export const ListWebSearch$outboundSchema: z.ZodType<
|
|
891
|
-
ListWebSearch$Outbound,
|
|
892
|
-
z.ZodTypeDef,
|
|
893
|
-
ListWebSearch
|
|
894
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* @internal
|
|
898
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
899
|
-
*/
|
|
900
|
-
export namespace ListWebSearch$ {
|
|
901
|
-
/** @deprecated use `ListWebSearch$inboundSchema` instead. */
|
|
902
|
-
export const inboundSchema = ListWebSearch$inboundSchema;
|
|
903
|
-
/** @deprecated use `ListWebSearch$outboundSchema` instead. */
|
|
904
|
-
export const outboundSchema = ListWebSearch$outboundSchema;
|
|
905
|
-
/** @deprecated use `ListWebSearch$Outbound` instead. */
|
|
906
|
-
export type Outbound = ListWebSearch$Outbound;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
export function listWebSearchToJSON(listWebSearch: ListWebSearch): string {
|
|
910
|
-
return JSON.stringify(ListWebSearch$outboundSchema.parse(listWebSearch));
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export function listWebSearchFromJSON(
|
|
914
|
-
jsonString: string,
|
|
915
|
-
): SafeParseResult<ListWebSearch, SDKValidationError> {
|
|
916
|
-
return safeParse(
|
|
917
|
-
jsonString,
|
|
918
|
-
(x) => ListWebSearch$inboundSchema.parse(JSON.parse(x)),
|
|
919
|
-
`Failed to parse 'ListWebSearch' from JSON`,
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/** @internal */
|
|
924
|
-
export const ListInternalReasoning$inboundSchema: z.ZodType<
|
|
925
|
-
ListInternalReasoning,
|
|
926
|
-
z.ZodTypeDef,
|
|
927
|
-
unknown
|
|
928
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
929
|
-
|
|
930
|
-
/** @internal */
|
|
931
|
-
export type ListInternalReasoning$Outbound = number | string | any;
|
|
932
|
-
|
|
933
|
-
/** @internal */
|
|
934
|
-
export const ListInternalReasoning$outboundSchema: z.ZodType<
|
|
935
|
-
ListInternalReasoning$Outbound,
|
|
936
|
-
z.ZodTypeDef,
|
|
937
|
-
ListInternalReasoning
|
|
938
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* @internal
|
|
942
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
943
|
-
*/
|
|
944
|
-
export namespace ListInternalReasoning$ {
|
|
945
|
-
/** @deprecated use `ListInternalReasoning$inboundSchema` instead. */
|
|
946
|
-
export const inboundSchema = ListInternalReasoning$inboundSchema;
|
|
947
|
-
/** @deprecated use `ListInternalReasoning$outboundSchema` instead. */
|
|
948
|
-
export const outboundSchema = ListInternalReasoning$outboundSchema;
|
|
949
|
-
/** @deprecated use `ListInternalReasoning$Outbound` instead. */
|
|
950
|
-
export type Outbound = ListInternalReasoning$Outbound;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
export function listInternalReasoningToJSON(
|
|
954
|
-
listInternalReasoning: ListInternalReasoning,
|
|
955
|
-
): string {
|
|
956
|
-
return JSON.stringify(
|
|
957
|
-
ListInternalReasoning$outboundSchema.parse(listInternalReasoning),
|
|
958
|
-
);
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
export function listInternalReasoningFromJSON(
|
|
962
|
-
jsonString: string,
|
|
963
|
-
): SafeParseResult<ListInternalReasoning, SDKValidationError> {
|
|
964
|
-
return safeParse(
|
|
965
|
-
jsonString,
|
|
966
|
-
(x) => ListInternalReasoning$inboundSchema.parse(JSON.parse(x)),
|
|
967
|
-
`Failed to parse 'ListInternalReasoning' from JSON`,
|
|
968
|
-
);
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
/** @internal */
|
|
972
|
-
export const ListInputCacheRead$inboundSchema: z.ZodType<
|
|
973
|
-
ListInputCacheRead,
|
|
974
|
-
z.ZodTypeDef,
|
|
975
|
-
unknown
|
|
976
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
977
|
-
|
|
978
|
-
/** @internal */
|
|
979
|
-
export type ListInputCacheRead$Outbound = number | string | any;
|
|
980
|
-
|
|
981
|
-
/** @internal */
|
|
982
|
-
export const ListInputCacheRead$outboundSchema: z.ZodType<
|
|
983
|
-
ListInputCacheRead$Outbound,
|
|
984
|
-
z.ZodTypeDef,
|
|
985
|
-
ListInputCacheRead
|
|
986
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* @internal
|
|
990
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
991
|
-
*/
|
|
992
|
-
export namespace ListInputCacheRead$ {
|
|
993
|
-
/** @deprecated use `ListInputCacheRead$inboundSchema` instead. */
|
|
994
|
-
export const inboundSchema = ListInputCacheRead$inboundSchema;
|
|
995
|
-
/** @deprecated use `ListInputCacheRead$outboundSchema` instead. */
|
|
996
|
-
export const outboundSchema = ListInputCacheRead$outboundSchema;
|
|
997
|
-
/** @deprecated use `ListInputCacheRead$Outbound` instead. */
|
|
998
|
-
export type Outbound = ListInputCacheRead$Outbound;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
export function listInputCacheReadToJSON(
|
|
1002
|
-
listInputCacheRead: ListInputCacheRead,
|
|
1003
|
-
): string {
|
|
1004
|
-
return JSON.stringify(
|
|
1005
|
-
ListInputCacheRead$outboundSchema.parse(listInputCacheRead),
|
|
1006
|
-
);
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export function listInputCacheReadFromJSON(
|
|
1010
|
-
jsonString: string,
|
|
1011
|
-
): SafeParseResult<ListInputCacheRead, SDKValidationError> {
|
|
1012
|
-
return safeParse(
|
|
1013
|
-
jsonString,
|
|
1014
|
-
(x) => ListInputCacheRead$inboundSchema.parse(JSON.parse(x)),
|
|
1015
|
-
`Failed to parse 'ListInputCacheRead' from JSON`,
|
|
1016
|
-
);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export const ListInputCacheWrite$inboundSchema: z.ZodType<
|
|
1021
|
-
ListInputCacheWrite,
|
|
1022
|
-
z.ZodTypeDef,
|
|
1023
|
-
unknown
|
|
1024
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
1025
|
-
|
|
1026
|
-
/** @internal */
|
|
1027
|
-
export type ListInputCacheWrite$Outbound = number | string | any;
|
|
1028
|
-
|
|
1029
|
-
/** @internal */
|
|
1030
|
-
export const ListInputCacheWrite$outboundSchema: z.ZodType<
|
|
1031
|
-
ListInputCacheWrite$Outbound,
|
|
1032
|
-
z.ZodTypeDef,
|
|
1033
|
-
ListInputCacheWrite
|
|
1034
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* @internal
|
|
1038
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1039
|
-
*/
|
|
1040
|
-
export namespace ListInputCacheWrite$ {
|
|
1041
|
-
/** @deprecated use `ListInputCacheWrite$inboundSchema` instead. */
|
|
1042
|
-
export const inboundSchema = ListInputCacheWrite$inboundSchema;
|
|
1043
|
-
/** @deprecated use `ListInputCacheWrite$outboundSchema` instead. */
|
|
1044
|
-
export const outboundSchema = ListInputCacheWrite$outboundSchema;
|
|
1045
|
-
/** @deprecated use `ListInputCacheWrite$Outbound` instead. */
|
|
1046
|
-
export type Outbound = ListInputCacheWrite$Outbound;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
export function listInputCacheWriteToJSON(
|
|
1050
|
-
listInputCacheWrite: ListInputCacheWrite,
|
|
1051
|
-
): string {
|
|
1052
|
-
return JSON.stringify(
|
|
1053
|
-
ListInputCacheWrite$outboundSchema.parse(listInputCacheWrite),
|
|
1054
|
-
);
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export function listInputCacheWriteFromJSON(
|
|
1058
|
-
jsonString: string,
|
|
1059
|
-
): SafeParseResult<ListInputCacheWrite, SDKValidationError> {
|
|
1060
|
-
return safeParse(
|
|
1061
|
-
jsonString,
|
|
1062
|
-
(x) => ListInputCacheWrite$inboundSchema.parse(JSON.parse(x)),
|
|
1063
|
-
`Failed to parse 'ListInputCacheWrite' from JSON`,
|
|
1064
|
-
);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
/** @internal */
|
|
1068
|
-
export const ListPricing$inboundSchema: z.ZodType<
|
|
1069
|
-
ListPricing,
|
|
1070
|
-
z.ZodTypeDef,
|
|
1071
|
-
unknown
|
|
1072
|
-
> = z.object({
|
|
1073
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1074
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1075
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1076
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1077
|
-
image_output: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1078
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1079
|
-
input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1080
|
-
web_search: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1081
|
-
internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1082
|
-
input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1083
|
-
input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1084
|
-
discount: z.number().optional(),
|
|
1085
|
-
}).transform((v) => {
|
|
1086
|
-
return remap$(v, {
|
|
1087
|
-
"image_output": "imageOutput",
|
|
1088
|
-
"input_audio_cache": "inputAudioCache",
|
|
1089
|
-
"web_search": "webSearch",
|
|
1090
|
-
"internal_reasoning": "internalReasoning",
|
|
1091
|
-
"input_cache_read": "inputCacheRead",
|
|
1092
|
-
"input_cache_write": "inputCacheWrite",
|
|
1093
|
-
});
|
|
1094
|
-
});
|
|
1095
|
-
|
|
1096
|
-
/** @internal */
|
|
1097
|
-
export type ListPricing$Outbound = {
|
|
1098
|
-
prompt?: number | string | any | undefined;
|
|
1099
|
-
completion?: number | string | any | undefined;
|
|
1100
|
-
request?: number | string | any | undefined;
|
|
1101
|
-
image?: number | string | any | undefined;
|
|
1102
|
-
image_output?: number | string | any | undefined;
|
|
1103
|
-
audio?: number | string | any | undefined;
|
|
1104
|
-
input_audio_cache?: number | string | any | undefined;
|
|
1105
|
-
web_search?: number | string | any | undefined;
|
|
1106
|
-
internal_reasoning?: number | string | any | undefined;
|
|
1107
|
-
input_cache_read?: number | string | any | undefined;
|
|
1108
|
-
input_cache_write?: number | string | any | undefined;
|
|
1109
|
-
discount?: number | undefined;
|
|
1110
|
-
};
|
|
1111
|
-
|
|
1112
|
-
/** @internal */
|
|
1113
|
-
export const ListPricing$outboundSchema: z.ZodType<
|
|
1114
|
-
ListPricing$Outbound,
|
|
1115
|
-
z.ZodTypeDef,
|
|
1116
|
-
ListPricing
|
|
1117
|
-
> = z.object({
|
|
1118
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1119
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1120
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1121
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1122
|
-
imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1123
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1124
|
-
inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1125
|
-
webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1126
|
-
internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1127
|
-
inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1128
|
-
inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1129
|
-
discount: z.number().optional(),
|
|
1130
|
-
}).transform((v) => {
|
|
1131
|
-
return remap$(v, {
|
|
1132
|
-
imageOutput: "image_output",
|
|
1133
|
-
inputAudioCache: "input_audio_cache",
|
|
1134
|
-
webSearch: "web_search",
|
|
1135
|
-
internalReasoning: "internal_reasoning",
|
|
1136
|
-
inputCacheRead: "input_cache_read",
|
|
1137
|
-
inputCacheWrite: "input_cache_write",
|
|
1138
|
-
});
|
|
1139
|
-
});
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* @internal
|
|
1143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1144
|
-
*/
|
|
1145
|
-
export namespace ListPricing$ {
|
|
1146
|
-
/** @deprecated use `ListPricing$inboundSchema` instead. */
|
|
1147
|
-
export const inboundSchema = ListPricing$inboundSchema;
|
|
1148
|
-
/** @deprecated use `ListPricing$outboundSchema` instead. */
|
|
1149
|
-
export const outboundSchema = ListPricing$outboundSchema;
|
|
1150
|
-
/** @deprecated use `ListPricing$Outbound` instead. */
|
|
1151
|
-
export type Outbound = ListPricing$Outbound;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
export function listPricingToJSON(listPricing: ListPricing): string {
|
|
1155
|
-
return JSON.stringify(ListPricing$outboundSchema.parse(listPricing));
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
export function listPricingFromJSON(
|
|
1159
|
-
jsonString: string,
|
|
1160
|
-
): SafeParseResult<ListPricing, SDKValidationError> {
|
|
1161
|
-
return safeParse(
|
|
1162
|
-
jsonString,
|
|
1163
|
-
(x) => ListPricing$inboundSchema.parse(JSON.parse(x)),
|
|
1164
|
-
`Failed to parse 'ListPricing' from JSON`,
|
|
1165
|
-
);
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
/** @internal */
|
|
1169
|
-
export const ListProviderName$inboundSchema: z.ZodNativeEnum<
|
|
1170
|
-
typeof ListProviderName
|
|
1171
|
-
> = z.nativeEnum(ListProviderName);
|
|
1172
|
-
|
|
1173
|
-
/** @internal */
|
|
1174
|
-
export const ListProviderName$outboundSchema: z.ZodNativeEnum<
|
|
1175
|
-
typeof ListProviderName
|
|
1176
|
-
> = ListProviderName$inboundSchema;
|
|
1177
|
-
|
|
1178
|
-
/**
|
|
1179
|
-
* @internal
|
|
1180
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1181
|
-
*/
|
|
1182
|
-
export namespace ListProviderName$ {
|
|
1183
|
-
/** @deprecated use `ListProviderName$inboundSchema` instead. */
|
|
1184
|
-
export const inboundSchema = ListProviderName$inboundSchema;
|
|
1185
|
-
/** @deprecated use `ListProviderName$outboundSchema` instead. */
|
|
1186
|
-
export const outboundSchema = ListProviderName$outboundSchema;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
/** @internal */
|
|
1190
|
-
export const ListQuantization$inboundSchema: z.ZodNativeEnum<
|
|
1191
|
-
typeof ListQuantization
|
|
1192
|
-
> = z.nativeEnum(ListQuantization);
|
|
1193
|
-
|
|
1194
|
-
/** @internal */
|
|
1195
|
-
export const ListQuantization$outboundSchema: z.ZodNativeEnum<
|
|
1196
|
-
typeof ListQuantization
|
|
1197
|
-
> = ListQuantization$inboundSchema;
|
|
1198
|
-
|
|
1199
|
-
/**
|
|
1200
|
-
* @internal
|
|
1201
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1202
|
-
*/
|
|
1203
|
-
export namespace ListQuantization$ {
|
|
1204
|
-
/** @deprecated use `ListQuantization$inboundSchema` instead. */
|
|
1205
|
-
export const inboundSchema = ListQuantization$inboundSchema;
|
|
1206
|
-
/** @deprecated use `ListQuantization$outboundSchema` instead. */
|
|
1207
|
-
export const outboundSchema = ListQuantization$outboundSchema;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export const ListSupportedParameter$inboundSchema: z.ZodNativeEnum<
|
|
1212
|
-
typeof ListSupportedParameter
|
|
1213
|
-
> = z.nativeEnum(ListSupportedParameter);
|
|
1214
|
-
|
|
1215
|
-
/** @internal */
|
|
1216
|
-
export const ListSupportedParameter$outboundSchema: z.ZodNativeEnum<
|
|
1217
|
-
typeof ListSupportedParameter
|
|
1218
|
-
> = ListSupportedParameter$inboundSchema;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* @internal
|
|
1222
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1223
|
-
*/
|
|
1224
|
-
export namespace ListSupportedParameter$ {
|
|
1225
|
-
/** @deprecated use `ListSupportedParameter$inboundSchema` instead. */
|
|
1226
|
-
export const inboundSchema = ListSupportedParameter$inboundSchema;
|
|
1227
|
-
/** @deprecated use `ListSupportedParameter$outboundSchema` instead. */
|
|
1228
|
-
export const outboundSchema = ListSupportedParameter$outboundSchema;
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
/** @internal */
|
|
1232
|
-
export const ListStatus$inboundSchema: z.ZodNativeEnum<typeof ListStatus> = z
|
|
1233
|
-
.nativeEnum(ListStatus);
|
|
1234
|
-
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export const ListStatus$outboundSchema: z.ZodNativeEnum<typeof ListStatus> =
|
|
1237
|
-
ListStatus$inboundSchema;
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* @internal
|
|
1241
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1242
|
-
*/
|
|
1243
|
-
export namespace ListStatus$ {
|
|
1244
|
-
/** @deprecated use `ListStatus$inboundSchema` instead. */
|
|
1245
|
-
export const inboundSchema = ListStatus$inboundSchema;
|
|
1246
|
-
/** @deprecated use `ListStatus$outboundSchema` instead. */
|
|
1247
|
-
export const outboundSchema = ListStatus$outboundSchema;
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export const Endpoint$inboundSchema: z.ZodType<
|
|
1252
|
-
Endpoint,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
unknown
|
|
1255
|
-
> = z.object({
|
|
1256
|
-
name: z.string(),
|
|
1257
|
-
model_name: z.string(),
|
|
1258
|
-
context_length: z.number(),
|
|
1259
|
-
pricing: z.lazy(() => ListPricing$inboundSchema),
|
|
1260
|
-
provider_name: ListProviderName$inboundSchema,
|
|
1261
|
-
tag: z.string(),
|
|
1262
|
-
quantization: z.nullable(ListQuantization$inboundSchema),
|
|
1263
|
-
max_completion_tokens: z.nullable(z.number()),
|
|
1264
|
-
max_prompt_tokens: z.nullable(z.number()),
|
|
1265
|
-
supported_parameters: z.array(ListSupportedParameter$inboundSchema),
|
|
1266
|
-
status: ListStatus$inboundSchema.optional(),
|
|
1267
|
-
uptime_last_30m: z.nullable(z.number()),
|
|
1268
|
-
supports_implicit_caching: z.boolean(),
|
|
1269
|
-
}).transform((v) => {
|
|
1270
|
-
return remap$(v, {
|
|
1271
|
-
"model_name": "modelName",
|
|
1272
|
-
"context_length": "contextLength",
|
|
1273
|
-
"provider_name": "providerName",
|
|
1274
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
1275
|
-
"max_prompt_tokens": "maxPromptTokens",
|
|
1276
|
-
"supported_parameters": "supportedParameters",
|
|
1277
|
-
"uptime_last_30m": "uptimeLast30m",
|
|
1278
|
-
"supports_implicit_caching": "supportsImplicitCaching",
|
|
1279
|
-
});
|
|
1280
|
-
});
|
|
1281
|
-
|
|
1282
|
-
/** @internal */
|
|
1283
|
-
export type Endpoint$Outbound = {
|
|
1284
|
-
name: string;
|
|
1285
|
-
model_name: string;
|
|
1286
|
-
context_length: number;
|
|
1287
|
-
pricing: ListPricing$Outbound;
|
|
1288
|
-
provider_name: string;
|
|
1289
|
-
tag: string;
|
|
1290
|
-
quantization: string | null;
|
|
1291
|
-
max_completion_tokens: number | null;
|
|
1292
|
-
max_prompt_tokens: number | null;
|
|
1293
|
-
supported_parameters: Array<string>;
|
|
1294
|
-
status?: number | undefined;
|
|
1295
|
-
uptime_last_30m: number | null;
|
|
1296
|
-
supports_implicit_caching: boolean;
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
/** @internal */
|
|
1300
|
-
export const Endpoint$outboundSchema: z.ZodType<
|
|
1301
|
-
Endpoint$Outbound,
|
|
1302
|
-
z.ZodTypeDef,
|
|
1303
|
-
Endpoint
|
|
1304
|
-
> = z.object({
|
|
1305
|
-
name: z.string(),
|
|
1306
|
-
modelName: z.string(),
|
|
1307
|
-
contextLength: z.number(),
|
|
1308
|
-
pricing: z.lazy(() => ListPricing$outboundSchema),
|
|
1309
|
-
providerName: ListProviderName$outboundSchema,
|
|
1310
|
-
tag: z.string(),
|
|
1311
|
-
quantization: z.nullable(ListQuantization$outboundSchema),
|
|
1312
|
-
maxCompletionTokens: z.nullable(z.number()),
|
|
1313
|
-
maxPromptTokens: z.nullable(z.number()),
|
|
1314
|
-
supportedParameters: z.array(ListSupportedParameter$outboundSchema),
|
|
1315
|
-
status: ListStatus$outboundSchema.optional(),
|
|
1316
|
-
uptimeLast30m: z.nullable(z.number()),
|
|
1317
|
-
supportsImplicitCaching: z.boolean(),
|
|
1318
|
-
}).transform((v) => {
|
|
1319
|
-
return remap$(v, {
|
|
1320
|
-
modelName: "model_name",
|
|
1321
|
-
contextLength: "context_length",
|
|
1322
|
-
providerName: "provider_name",
|
|
1323
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
1324
|
-
maxPromptTokens: "max_prompt_tokens",
|
|
1325
|
-
supportedParameters: "supported_parameters",
|
|
1326
|
-
uptimeLast30m: "uptime_last_30m",
|
|
1327
|
-
supportsImplicitCaching: "supports_implicit_caching",
|
|
1328
|
-
});
|
|
1329
|
-
});
|
|
1330
|
-
|
|
1331
|
-
/**
|
|
1332
|
-
* @internal
|
|
1333
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1334
|
-
*/
|
|
1335
|
-
export namespace Endpoint$ {
|
|
1336
|
-
/** @deprecated use `Endpoint$inboundSchema` instead. */
|
|
1337
|
-
export const inboundSchema = Endpoint$inboundSchema;
|
|
1338
|
-
/** @deprecated use `Endpoint$outboundSchema` instead. */
|
|
1339
|
-
export const outboundSchema = Endpoint$outboundSchema;
|
|
1340
|
-
/** @deprecated use `Endpoint$Outbound` instead. */
|
|
1341
|
-
export type Outbound = Endpoint$Outbound;
|
|
338
|
+
export namespace Architecture$ {
|
|
339
|
+
/** @deprecated use `Architecture$inboundSchema` instead. */
|
|
340
|
+
export const inboundSchema = Architecture$inboundSchema;
|
|
341
|
+
/** @deprecated use `Architecture$outboundSchema` instead. */
|
|
342
|
+
export const outboundSchema = Architecture$outboundSchema;
|
|
343
|
+
/** @deprecated use `Architecture$Outbound` instead. */
|
|
344
|
+
export type Outbound = Architecture$Outbound;
|
|
1342
345
|
}
|
|
1343
346
|
|
|
1344
|
-
export function
|
|
1345
|
-
return JSON.stringify(
|
|
347
|
+
export function architectureToJSON(architecture: Architecture): string {
|
|
348
|
+
return JSON.stringify(Architecture$outboundSchema.parse(architecture));
|
|
1346
349
|
}
|
|
1347
350
|
|
|
1348
|
-
export function
|
|
351
|
+
export function architectureFromJSON(
|
|
1349
352
|
jsonString: string,
|
|
1350
|
-
): SafeParseResult<
|
|
353
|
+
): SafeParseResult<Architecture, SDKValidationError> {
|
|
1351
354
|
return safeParse(
|
|
1352
355
|
jsonString,
|
|
1353
|
-
(x) =>
|
|
1354
|
-
`Failed to parse '
|
|
356
|
+
(x) => Architecture$inboundSchema.parse(JSON.parse(x)),
|
|
357
|
+
`Failed to parse 'Architecture' from JSON`,
|
|
1355
358
|
);
|
|
1356
359
|
}
|
|
1357
360
|
|
|
@@ -1365,8 +368,8 @@ export const ListData$inboundSchema: z.ZodType<
|
|
|
1365
368
|
name: z.string(),
|
|
1366
369
|
created: z.number(),
|
|
1367
370
|
description: z.string(),
|
|
1368
|
-
architecture: z.lazy(() =>
|
|
1369
|
-
endpoints: z.array(
|
|
371
|
+
architecture: z.lazy(() => Architecture$inboundSchema),
|
|
372
|
+
endpoints: z.array(models.EndpointsList$inboundSchema),
|
|
1370
373
|
});
|
|
1371
374
|
|
|
1372
375
|
/** @internal */
|
|
@@ -1375,8 +378,8 @@ export type ListData$Outbound = {
|
|
|
1375
378
|
name: string;
|
|
1376
379
|
created: number;
|
|
1377
380
|
description: string;
|
|
1378
|
-
architecture:
|
|
1379
|
-
endpoints: Array<
|
|
381
|
+
architecture: Architecture$Outbound;
|
|
382
|
+
endpoints: Array<models.EndpointsList$Outbound>;
|
|
1380
383
|
};
|
|
1381
384
|
|
|
1382
385
|
/** @internal */
|
|
@@ -1389,8 +392,8 @@ export const ListData$outboundSchema: z.ZodType<
|
|
|
1389
392
|
name: z.string(),
|
|
1390
393
|
created: z.number(),
|
|
1391
394
|
description: z.string(),
|
|
1392
|
-
architecture: z.lazy(() =>
|
|
1393
|
-
endpoints: z.array(
|
|
395
|
+
architecture: z.lazy(() => Architecture$outboundSchema),
|
|
396
|
+
endpoints: z.array(models.EndpointsList$outboundSchema),
|
|
1394
397
|
});
|
|
1395
398
|
|
|
1396
399
|
/**
|