@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
|
@@ -36,38 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.listArchitectureFromJSON = listArchitectureFromJSON;
|
|
45
|
-
exports.listPromptToJSON = listPromptToJSON;
|
|
46
|
-
exports.listPromptFromJSON = listPromptFromJSON;
|
|
47
|
-
exports.listCompletionToJSON = listCompletionToJSON;
|
|
48
|
-
exports.listCompletionFromJSON = listCompletionFromJSON;
|
|
49
|
-
exports.endpointsListRequestToJSON = endpointsListRequestToJSON;
|
|
50
|
-
exports.endpointsListRequestFromJSON = endpointsListRequestFromJSON;
|
|
51
|
-
exports.listImageToJSON = listImageToJSON;
|
|
52
|
-
exports.listImageFromJSON = listImageFromJSON;
|
|
53
|
-
exports.listImageOutputToJSON = listImageOutputToJSON;
|
|
54
|
-
exports.listImageOutputFromJSON = listImageOutputFromJSON;
|
|
55
|
-
exports.listAudioToJSON = listAudioToJSON;
|
|
56
|
-
exports.listAudioFromJSON = listAudioFromJSON;
|
|
57
|
-
exports.listInputAudioCacheToJSON = listInputAudioCacheToJSON;
|
|
58
|
-
exports.listInputAudioCacheFromJSON = listInputAudioCacheFromJSON;
|
|
59
|
-
exports.listWebSearchToJSON = listWebSearchToJSON;
|
|
60
|
-
exports.listWebSearchFromJSON = listWebSearchFromJSON;
|
|
61
|
-
exports.listInternalReasoningToJSON = listInternalReasoningToJSON;
|
|
62
|
-
exports.listInternalReasoningFromJSON = listInternalReasoningFromJSON;
|
|
63
|
-
exports.listInputCacheReadToJSON = listInputCacheReadToJSON;
|
|
64
|
-
exports.listInputCacheReadFromJSON = listInputCacheReadFromJSON;
|
|
65
|
-
exports.listInputCacheWriteToJSON = listInputCacheWriteToJSON;
|
|
66
|
-
exports.listInputCacheWriteFromJSON = listInputCacheWriteFromJSON;
|
|
67
|
-
exports.listPricingToJSON = listPricingToJSON;
|
|
68
|
-
exports.listPricingFromJSON = listPricingFromJSON;
|
|
69
|
-
exports.endpointToJSON = endpointToJSON;
|
|
70
|
-
exports.endpointFromJSON = endpointFromJSON;
|
|
39
|
+
exports.ListResponse$ = exports.ListResponse$outboundSchema = exports.ListResponse$inboundSchema = exports.ListData$ = exports.ListData$outboundSchema = exports.ListData$inboundSchema = exports.Architecture$ = exports.Architecture$outboundSchema = exports.Architecture$inboundSchema = exports.OutputModality$ = exports.OutputModality$outboundSchema = exports.OutputModality$inboundSchema = exports.InputModality$ = exports.InputModality$outboundSchema = exports.InputModality$inboundSchema = exports.InstructType$ = exports.InstructType$outboundSchema = exports.InstructType$inboundSchema = exports.Tokenizer$ = exports.Tokenizer$outboundSchema = exports.Tokenizer$inboundSchema = exports.ListRequest$ = exports.ListRequest$outboundSchema = exports.ListRequest$inboundSchema = exports.OutputModality = exports.InputModality = exports.InstructType = exports.Tokenizer = void 0;
|
|
40
|
+
exports.listRequestToJSON = listRequestToJSON;
|
|
41
|
+
exports.listRequestFromJSON = listRequestFromJSON;
|
|
42
|
+
exports.architectureToJSON = architectureToJSON;
|
|
43
|
+
exports.architectureFromJSON = architectureFromJSON;
|
|
71
44
|
exports.listDataToJSON = listDataToJSON;
|
|
72
45
|
exports.listDataFromJSON = listDataFromJSON;
|
|
73
46
|
exports.listResponseToJSON = listResponseToJSON;
|
|
@@ -75,10 +48,11 @@ exports.listResponseFromJSON = listResponseFromJSON;
|
|
|
75
48
|
const z = __importStar(require("zod"));
|
|
76
49
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
77
50
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
51
|
+
const models = __importStar(require("../index.js"));
|
|
78
52
|
/**
|
|
79
53
|
* Tokenizer type used by the model
|
|
80
54
|
*/
|
|
81
|
-
exports.
|
|
55
|
+
exports.Tokenizer = {
|
|
82
56
|
Router: "Router",
|
|
83
57
|
Media: "Media",
|
|
84
58
|
Other: "Other",
|
|
@@ -102,7 +76,7 @@ exports.ListTokenizer = {
|
|
|
102
76
|
/**
|
|
103
77
|
* Instruction format type
|
|
104
78
|
*/
|
|
105
|
-
exports.
|
|
79
|
+
exports.InstructType = {
|
|
106
80
|
None: "none",
|
|
107
81
|
Airoboros: "airoboros",
|
|
108
82
|
Alpaca: "alpaca",
|
|
@@ -126,152 +100,24 @@ exports.ListInstructType = {
|
|
|
126
100
|
Qwq: "qwq",
|
|
127
101
|
Qwen3: "qwen3",
|
|
128
102
|
};
|
|
129
|
-
exports.
|
|
103
|
+
exports.InputModality = {
|
|
130
104
|
Text: "text",
|
|
131
105
|
Image: "image",
|
|
132
106
|
File: "file",
|
|
133
107
|
Audio: "audio",
|
|
134
108
|
};
|
|
135
|
-
exports.
|
|
109
|
+
exports.OutputModality = {
|
|
136
110
|
Text: "text",
|
|
137
111
|
Image: "image",
|
|
138
112
|
Embeddings: "embeddings",
|
|
139
113
|
};
|
|
140
|
-
exports.ListProviderName = {
|
|
141
|
-
AnyScale: "AnyScale",
|
|
142
|
-
CentML: "Cent-ML",
|
|
143
|
-
HuggingFace: "HuggingFace",
|
|
144
|
-
Hyperbolic2: "Hyperbolic 2",
|
|
145
|
-
Lepton: "Lepton",
|
|
146
|
-
Lynn2: "Lynn 2",
|
|
147
|
-
Lynn: "Lynn",
|
|
148
|
-
Mancer: "Mancer",
|
|
149
|
-
Modal: "Modal",
|
|
150
|
-
OctoAI: "OctoAI",
|
|
151
|
-
Recursal: "Recursal",
|
|
152
|
-
Reflection: "Reflection",
|
|
153
|
-
Replicate: "Replicate",
|
|
154
|
-
SambaNova2: "SambaNova 2",
|
|
155
|
-
SFCompute: "SF Compute",
|
|
156
|
-
Together2: "Together 2",
|
|
157
|
-
OneDotAI: "01.AI",
|
|
158
|
-
Ai21: "AI21",
|
|
159
|
-
AionLabs: "AionLabs",
|
|
160
|
-
Alibaba: "Alibaba",
|
|
161
|
-
AmazonBedrock: "Amazon Bedrock",
|
|
162
|
-
Anthropic: "Anthropic",
|
|
163
|
-
AtlasCloud: "AtlasCloud",
|
|
164
|
-
Atoma: "Atoma",
|
|
165
|
-
Avian: "Avian",
|
|
166
|
-
Azure: "Azure",
|
|
167
|
-
BaseTen: "BaseTen",
|
|
168
|
-
Cerebras: "Cerebras",
|
|
169
|
-
Chutes: "Chutes",
|
|
170
|
-
Cloudflare: "Cloudflare",
|
|
171
|
-
Cohere: "Cohere",
|
|
172
|
-
CrofAI: "CrofAI",
|
|
173
|
-
Crusoe: "Crusoe",
|
|
174
|
-
DeepInfra: "DeepInfra",
|
|
175
|
-
DeepSeek: "DeepSeek",
|
|
176
|
-
Enfer: "Enfer",
|
|
177
|
-
Featherless: "Featherless",
|
|
178
|
-
Fireworks: "Fireworks",
|
|
179
|
-
Friendli: "Friendli",
|
|
180
|
-
GMICloud: "GMICloud",
|
|
181
|
-
Google: "Google",
|
|
182
|
-
GoogleAIStudio: "Google AI Studio",
|
|
183
|
-
Groq: "Groq",
|
|
184
|
-
Hyperbolic: "Hyperbolic",
|
|
185
|
-
Inception: "Inception",
|
|
186
|
-
InferenceNet: "InferenceNet",
|
|
187
|
-
Infermatic: "Infermatic",
|
|
188
|
-
Inflection: "Inflection",
|
|
189
|
-
InoCloud: "InoCloud",
|
|
190
|
-
Kluster: "Kluster",
|
|
191
|
-
Lambda: "Lambda",
|
|
192
|
-
Liquid: "Liquid",
|
|
193
|
-
Mancer2: "Mancer 2",
|
|
194
|
-
Meta: "Meta",
|
|
195
|
-
Minimax: "Minimax",
|
|
196
|
-
Mistral: "Mistral",
|
|
197
|
-
MoonshotAI: "Moonshot AI",
|
|
198
|
-
Morph: "Morph",
|
|
199
|
-
NCompass: "NCompass",
|
|
200
|
-
Nebius: "Nebius",
|
|
201
|
-
NextBit: "NextBit",
|
|
202
|
-
Nineteen: "Nineteen",
|
|
203
|
-
Novita: "Novita",
|
|
204
|
-
Nvidia: "Nvidia",
|
|
205
|
-
OpenAI: "OpenAI",
|
|
206
|
-
OpenInference: "OpenInference",
|
|
207
|
-
Parasail: "Parasail",
|
|
208
|
-
Perplexity: "Perplexity",
|
|
209
|
-
Phala: "Phala",
|
|
210
|
-
Relace: "Relace",
|
|
211
|
-
SambaNova: "SambaNova",
|
|
212
|
-
SiliconFlow: "SiliconFlow",
|
|
213
|
-
Stealth: "Stealth",
|
|
214
|
-
Switchpoint: "Switchpoint",
|
|
215
|
-
Targon: "Targon",
|
|
216
|
-
Together: "Together",
|
|
217
|
-
Ubicloud: "Ubicloud",
|
|
218
|
-
Venice: "Venice",
|
|
219
|
-
WandB: "WandB",
|
|
220
|
-
XAI: "xAI",
|
|
221
|
-
ZAi: "Z.AI",
|
|
222
|
-
FakeProvider: "FakeProvider",
|
|
223
|
-
};
|
|
224
|
-
exports.ListQuantization = {
|
|
225
|
-
Int4: "int4",
|
|
226
|
-
Int8: "int8",
|
|
227
|
-
Fp4: "fp4",
|
|
228
|
-
Fp6: "fp6",
|
|
229
|
-
Fp8: "fp8",
|
|
230
|
-
Fp16: "fp16",
|
|
231
|
-
Bf16: "bf16",
|
|
232
|
-
Fp32: "fp32",
|
|
233
|
-
Unknown: "unknown",
|
|
234
|
-
};
|
|
235
|
-
exports.ListSupportedParameter = {
|
|
236
|
-
Temperature: "temperature",
|
|
237
|
-
TopP: "top_p",
|
|
238
|
-
TopK: "top_k",
|
|
239
|
-
MinP: "min_p",
|
|
240
|
-
TopA: "top_a",
|
|
241
|
-
FrequencyPenalty: "frequency_penalty",
|
|
242
|
-
PresencePenalty: "presence_penalty",
|
|
243
|
-
RepetitionPenalty: "repetition_penalty",
|
|
244
|
-
MaxTokens: "max_tokens",
|
|
245
|
-
LogitBias: "logit_bias",
|
|
246
|
-
Logprobs: "logprobs",
|
|
247
|
-
TopLogprobs: "top_logprobs",
|
|
248
|
-
Seed: "seed",
|
|
249
|
-
ResponseFormat: "response_format",
|
|
250
|
-
StructuredOutputs: "structured_outputs",
|
|
251
|
-
Stop: "stop",
|
|
252
|
-
Tools: "tools",
|
|
253
|
-
ToolChoice: "tool_choice",
|
|
254
|
-
ParallelToolCalls: "parallel_tool_calls",
|
|
255
|
-
IncludeReasoning: "include_reasoning",
|
|
256
|
-
Reasoning: "reasoning",
|
|
257
|
-
WebSearchOptions: "web_search_options",
|
|
258
|
-
Verbosity: "verbosity",
|
|
259
|
-
};
|
|
260
|
-
exports.ListStatus = {
|
|
261
|
-
Zero: 0,
|
|
262
|
-
Minus1: -1,
|
|
263
|
-
Minus2: -2,
|
|
264
|
-
Minus3: -3,
|
|
265
|
-
Minus5: -5,
|
|
266
|
-
Minus10: -10,
|
|
267
|
-
};
|
|
268
114
|
/** @internal */
|
|
269
|
-
exports.
|
|
115
|
+
exports.ListRequest$inboundSchema = z.object({
|
|
270
116
|
author: z.string(),
|
|
271
117
|
slug: z.string(),
|
|
272
118
|
});
|
|
273
119
|
/** @internal */
|
|
274
|
-
exports.
|
|
120
|
+
exports.ListRequest$outboundSchema = z.object({
|
|
275
121
|
author: z.string(),
|
|
276
122
|
slug: z.string(),
|
|
277
123
|
});
|
|
@@ -279,86 +125,87 @@ exports.ListRequestRequest$outboundSchema = z.object({
|
|
|
279
125
|
* @internal
|
|
280
126
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
281
127
|
*/
|
|
282
|
-
var
|
|
283
|
-
(function (
|
|
284
|
-
/** @deprecated use `
|
|
285
|
-
|
|
286
|
-
/** @deprecated use `
|
|
287
|
-
|
|
288
|
-
})(
|
|
289
|
-
function
|
|
290
|
-
return JSON.stringify(exports.
|
|
128
|
+
var ListRequest$;
|
|
129
|
+
(function (ListRequest$) {
|
|
130
|
+
/** @deprecated use `ListRequest$inboundSchema` instead. */
|
|
131
|
+
ListRequest$.inboundSchema = exports.ListRequest$inboundSchema;
|
|
132
|
+
/** @deprecated use `ListRequest$outboundSchema` instead. */
|
|
133
|
+
ListRequest$.outboundSchema = exports.ListRequest$outboundSchema;
|
|
134
|
+
})(ListRequest$ || (exports.ListRequest$ = ListRequest$ = {}));
|
|
135
|
+
function listRequestToJSON(listRequest) {
|
|
136
|
+
return JSON.stringify(exports.ListRequest$outboundSchema.parse(listRequest));
|
|
291
137
|
}
|
|
292
|
-
function
|
|
293
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
138
|
+
function listRequestFromJSON(jsonString) {
|
|
139
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListRequest' from JSON`);
|
|
294
140
|
}
|
|
295
141
|
/** @internal */
|
|
296
|
-
exports.
|
|
142
|
+
exports.Tokenizer$inboundSchema = z
|
|
143
|
+
.nativeEnum(exports.Tokenizer);
|
|
297
144
|
/** @internal */
|
|
298
|
-
exports.
|
|
145
|
+
exports.Tokenizer$outboundSchema = exports.Tokenizer$inboundSchema;
|
|
299
146
|
/**
|
|
300
147
|
* @internal
|
|
301
148
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
302
149
|
*/
|
|
303
|
-
var
|
|
304
|
-
(function (
|
|
305
|
-
/** @deprecated use `
|
|
306
|
-
|
|
307
|
-
/** @deprecated use `
|
|
308
|
-
|
|
309
|
-
})(
|
|
150
|
+
var Tokenizer$;
|
|
151
|
+
(function (Tokenizer$) {
|
|
152
|
+
/** @deprecated use `Tokenizer$inboundSchema` instead. */
|
|
153
|
+
Tokenizer$.inboundSchema = exports.Tokenizer$inboundSchema;
|
|
154
|
+
/** @deprecated use `Tokenizer$outboundSchema` instead. */
|
|
155
|
+
Tokenizer$.outboundSchema = exports.Tokenizer$outboundSchema;
|
|
156
|
+
})(Tokenizer$ || (exports.Tokenizer$ = Tokenizer$ = {}));
|
|
310
157
|
/** @internal */
|
|
311
|
-
exports.
|
|
158
|
+
exports.InstructType$inboundSchema = z.nativeEnum(exports.InstructType);
|
|
312
159
|
/** @internal */
|
|
313
|
-
exports.
|
|
160
|
+
exports.InstructType$outboundSchema = exports.InstructType$inboundSchema;
|
|
314
161
|
/**
|
|
315
162
|
* @internal
|
|
316
163
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
317
164
|
*/
|
|
318
|
-
var
|
|
319
|
-
(function (
|
|
320
|
-
/** @deprecated use `
|
|
321
|
-
|
|
322
|
-
/** @deprecated use `
|
|
323
|
-
|
|
324
|
-
})(
|
|
165
|
+
var InstructType$;
|
|
166
|
+
(function (InstructType$) {
|
|
167
|
+
/** @deprecated use `InstructType$inboundSchema` instead. */
|
|
168
|
+
InstructType$.inboundSchema = exports.InstructType$inboundSchema;
|
|
169
|
+
/** @deprecated use `InstructType$outboundSchema` instead. */
|
|
170
|
+
InstructType$.outboundSchema = exports.InstructType$outboundSchema;
|
|
171
|
+
})(InstructType$ || (exports.InstructType$ = InstructType$ = {}));
|
|
325
172
|
/** @internal */
|
|
326
|
-
exports.
|
|
173
|
+
exports.InputModality$inboundSchema = z.nativeEnum(exports.InputModality);
|
|
327
174
|
/** @internal */
|
|
328
|
-
exports.
|
|
175
|
+
exports.InputModality$outboundSchema = exports.InputModality$inboundSchema;
|
|
329
176
|
/**
|
|
330
177
|
* @internal
|
|
331
178
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
179
|
*/
|
|
333
|
-
var
|
|
334
|
-
(function (
|
|
335
|
-
/** @deprecated use `
|
|
336
|
-
|
|
337
|
-
/** @deprecated use `
|
|
338
|
-
|
|
339
|
-
})(
|
|
180
|
+
var InputModality$;
|
|
181
|
+
(function (InputModality$) {
|
|
182
|
+
/** @deprecated use `InputModality$inboundSchema` instead. */
|
|
183
|
+
InputModality$.inboundSchema = exports.InputModality$inboundSchema;
|
|
184
|
+
/** @deprecated use `InputModality$outboundSchema` instead. */
|
|
185
|
+
InputModality$.outboundSchema = exports.InputModality$outboundSchema;
|
|
186
|
+
})(InputModality$ || (exports.InputModality$ = InputModality$ = {}));
|
|
340
187
|
/** @internal */
|
|
341
|
-
exports.
|
|
188
|
+
exports.OutputModality$inboundSchema = z.nativeEnum(exports.OutputModality);
|
|
342
189
|
/** @internal */
|
|
343
|
-
exports.
|
|
190
|
+
exports.OutputModality$outboundSchema = exports.OutputModality$inboundSchema;
|
|
344
191
|
/**
|
|
345
192
|
* @internal
|
|
346
193
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
347
194
|
*/
|
|
348
|
-
var
|
|
349
|
-
(function (
|
|
350
|
-
/** @deprecated use `
|
|
351
|
-
|
|
352
|
-
/** @deprecated use `
|
|
353
|
-
|
|
354
|
-
})(
|
|
355
|
-
/** @internal */
|
|
356
|
-
exports.
|
|
357
|
-
tokenizer: z.nullable(exports.
|
|
358
|
-
instruct_type: z.nullable(exports.
|
|
195
|
+
var OutputModality$;
|
|
196
|
+
(function (OutputModality$) {
|
|
197
|
+
/** @deprecated use `OutputModality$inboundSchema` instead. */
|
|
198
|
+
OutputModality$.inboundSchema = exports.OutputModality$inboundSchema;
|
|
199
|
+
/** @deprecated use `OutputModality$outboundSchema` instead. */
|
|
200
|
+
OutputModality$.outboundSchema = exports.OutputModality$outboundSchema;
|
|
201
|
+
})(OutputModality$ || (exports.OutputModality$ = OutputModality$ = {}));
|
|
202
|
+
/** @internal */
|
|
203
|
+
exports.Architecture$inboundSchema = z.object({
|
|
204
|
+
tokenizer: z.nullable(exports.Tokenizer$inboundSchema),
|
|
205
|
+
instruct_type: z.nullable(exports.InstructType$inboundSchema),
|
|
359
206
|
modality: z.nullable(z.string()),
|
|
360
|
-
input_modalities: z.array(exports.
|
|
361
|
-
output_modalities: z.array(exports.
|
|
207
|
+
input_modalities: z.array(exports.InputModality$inboundSchema),
|
|
208
|
+
output_modalities: z.array(exports.OutputModality$inboundSchema),
|
|
362
209
|
}).transform((v) => {
|
|
363
210
|
return (0, primitives_js_1.remap)(v, {
|
|
364
211
|
"instruct_type": "instructType",
|
|
@@ -367,12 +214,12 @@ exports.ListArchitecture$inboundSchema = z.object({
|
|
|
367
214
|
});
|
|
368
215
|
});
|
|
369
216
|
/** @internal */
|
|
370
|
-
exports.
|
|
371
|
-
tokenizer: z.nullable(exports.
|
|
372
|
-
instructType: z.nullable(exports.
|
|
217
|
+
exports.Architecture$outboundSchema = z.object({
|
|
218
|
+
tokenizer: z.nullable(exports.Tokenizer$outboundSchema),
|
|
219
|
+
instructType: z.nullable(exports.InstructType$outboundSchema),
|
|
373
220
|
modality: z.nullable(z.string()),
|
|
374
|
-
inputModalities: z.array(exports.
|
|
375
|
-
outputModalities: z.array(exports.
|
|
221
|
+
inputModalities: z.array(exports.InputModality$outboundSchema),
|
|
222
|
+
outputModalities: z.array(exports.OutputModality$outboundSchema),
|
|
376
223
|
}).transform((v) => {
|
|
377
224
|
return (0, primitives_js_1.remap)(v, {
|
|
378
225
|
instructType: "instruct_type",
|
|
@@ -384,446 +231,18 @@ exports.ListArchitecture$outboundSchema = z.object({
|
|
|
384
231
|
* @internal
|
|
385
232
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
386
233
|
*/
|
|
387
|
-
var
|
|
388
|
-
(function (
|
|
389
|
-
/** @deprecated use `
|
|
390
|
-
|
|
391
|
-
/** @deprecated use `
|
|
392
|
-
|
|
393
|
-
})(
|
|
394
|
-
function
|
|
395
|
-
return JSON.stringify(exports.
|
|
396
|
-
}
|
|
397
|
-
function listArchitectureFromJSON(jsonString) {
|
|
398
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListArchitecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchitecture' from JSON`);
|
|
399
|
-
}
|
|
400
|
-
/** @internal */
|
|
401
|
-
exports.ListPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
402
|
-
/** @internal */
|
|
403
|
-
exports.ListPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
404
|
-
/**
|
|
405
|
-
* @internal
|
|
406
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
407
|
-
*/
|
|
408
|
-
var ListPrompt$;
|
|
409
|
-
(function (ListPrompt$) {
|
|
410
|
-
/** @deprecated use `ListPrompt$inboundSchema` instead. */
|
|
411
|
-
ListPrompt$.inboundSchema = exports.ListPrompt$inboundSchema;
|
|
412
|
-
/** @deprecated use `ListPrompt$outboundSchema` instead. */
|
|
413
|
-
ListPrompt$.outboundSchema = exports.ListPrompt$outboundSchema;
|
|
414
|
-
})(ListPrompt$ || (exports.ListPrompt$ = ListPrompt$ = {}));
|
|
415
|
-
function listPromptToJSON(listPrompt) {
|
|
416
|
-
return JSON.stringify(exports.ListPrompt$outboundSchema.parse(listPrompt));
|
|
417
|
-
}
|
|
418
|
-
function listPromptFromJSON(jsonString) {
|
|
419
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPrompt' from JSON`);
|
|
420
|
-
}
|
|
421
|
-
/** @internal */
|
|
422
|
-
exports.ListCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
423
|
-
/** @internal */
|
|
424
|
-
exports.ListCompletion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
425
|
-
/**
|
|
426
|
-
* @internal
|
|
427
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
428
|
-
*/
|
|
429
|
-
var ListCompletion$;
|
|
430
|
-
(function (ListCompletion$) {
|
|
431
|
-
/** @deprecated use `ListCompletion$inboundSchema` instead. */
|
|
432
|
-
ListCompletion$.inboundSchema = exports.ListCompletion$inboundSchema;
|
|
433
|
-
/** @deprecated use `ListCompletion$outboundSchema` instead. */
|
|
434
|
-
ListCompletion$.outboundSchema = exports.ListCompletion$outboundSchema;
|
|
435
|
-
})(ListCompletion$ || (exports.ListCompletion$ = ListCompletion$ = {}));
|
|
436
|
-
function listCompletionToJSON(listCompletion) {
|
|
437
|
-
return JSON.stringify(exports.ListCompletion$outboundSchema.parse(listCompletion));
|
|
438
|
-
}
|
|
439
|
-
function listCompletionFromJSON(jsonString) {
|
|
440
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCompletion' from JSON`);
|
|
441
|
-
}
|
|
442
|
-
/** @internal */
|
|
443
|
-
exports.EndpointsListRequest$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
444
|
-
/** @internal */
|
|
445
|
-
exports.EndpointsListRequest$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
-
*/
|
|
450
|
-
var EndpointsListRequest$;
|
|
451
|
-
(function (EndpointsListRequest$) {
|
|
452
|
-
/** @deprecated use `EndpointsListRequest$inboundSchema` instead. */
|
|
453
|
-
EndpointsListRequest$.inboundSchema = exports.EndpointsListRequest$inboundSchema;
|
|
454
|
-
/** @deprecated use `EndpointsListRequest$outboundSchema` instead. */
|
|
455
|
-
EndpointsListRequest$.outboundSchema = exports.EndpointsListRequest$outboundSchema;
|
|
456
|
-
})(EndpointsListRequest$ || (exports.EndpointsListRequest$ = EndpointsListRequest$ = {}));
|
|
457
|
-
function endpointsListRequestToJSON(endpointsListRequest) {
|
|
458
|
-
return JSON.stringify(exports.EndpointsListRequest$outboundSchema.parse(endpointsListRequest));
|
|
459
|
-
}
|
|
460
|
-
function endpointsListRequestFromJSON(jsonString) {
|
|
461
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EndpointsListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndpointsListRequest' from JSON`);
|
|
462
|
-
}
|
|
463
|
-
/** @internal */
|
|
464
|
-
exports.ListImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
465
|
-
/** @internal */
|
|
466
|
-
exports.ListImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
467
|
-
/**
|
|
468
|
-
* @internal
|
|
469
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
-
*/
|
|
471
|
-
var ListImage$;
|
|
472
|
-
(function (ListImage$) {
|
|
473
|
-
/** @deprecated use `ListImage$inboundSchema` instead. */
|
|
474
|
-
ListImage$.inboundSchema = exports.ListImage$inboundSchema;
|
|
475
|
-
/** @deprecated use `ListImage$outboundSchema` instead. */
|
|
476
|
-
ListImage$.outboundSchema = exports.ListImage$outboundSchema;
|
|
477
|
-
})(ListImage$ || (exports.ListImage$ = ListImage$ = {}));
|
|
478
|
-
function listImageToJSON(listImage) {
|
|
479
|
-
return JSON.stringify(exports.ListImage$outboundSchema.parse(listImage));
|
|
480
|
-
}
|
|
481
|
-
function listImageFromJSON(jsonString) {
|
|
482
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListImage' from JSON`);
|
|
483
|
-
}
|
|
484
|
-
/** @internal */
|
|
485
|
-
exports.ListImageOutput$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
486
|
-
/** @internal */
|
|
487
|
-
exports.ListImageOutput$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
488
|
-
/**
|
|
489
|
-
* @internal
|
|
490
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
491
|
-
*/
|
|
492
|
-
var ListImageOutput$;
|
|
493
|
-
(function (ListImageOutput$) {
|
|
494
|
-
/** @deprecated use `ListImageOutput$inboundSchema` instead. */
|
|
495
|
-
ListImageOutput$.inboundSchema = exports.ListImageOutput$inboundSchema;
|
|
496
|
-
/** @deprecated use `ListImageOutput$outboundSchema` instead. */
|
|
497
|
-
ListImageOutput$.outboundSchema = exports.ListImageOutput$outboundSchema;
|
|
498
|
-
})(ListImageOutput$ || (exports.ListImageOutput$ = ListImageOutput$ = {}));
|
|
499
|
-
function listImageOutputToJSON(listImageOutput) {
|
|
500
|
-
return JSON.stringify(exports.ListImageOutput$outboundSchema.parse(listImageOutput));
|
|
501
|
-
}
|
|
502
|
-
function listImageOutputFromJSON(jsonString) {
|
|
503
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListImageOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListImageOutput' from JSON`);
|
|
504
|
-
}
|
|
505
|
-
/** @internal */
|
|
506
|
-
exports.ListAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
507
|
-
/** @internal */
|
|
508
|
-
exports.ListAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
509
|
-
/**
|
|
510
|
-
* @internal
|
|
511
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
512
|
-
*/
|
|
513
|
-
var ListAudio$;
|
|
514
|
-
(function (ListAudio$) {
|
|
515
|
-
/** @deprecated use `ListAudio$inboundSchema` instead. */
|
|
516
|
-
ListAudio$.inboundSchema = exports.ListAudio$inboundSchema;
|
|
517
|
-
/** @deprecated use `ListAudio$outboundSchema` instead. */
|
|
518
|
-
ListAudio$.outboundSchema = exports.ListAudio$outboundSchema;
|
|
519
|
-
})(ListAudio$ || (exports.ListAudio$ = ListAudio$ = {}));
|
|
520
|
-
function listAudioToJSON(listAudio) {
|
|
521
|
-
return JSON.stringify(exports.ListAudio$outboundSchema.parse(listAudio));
|
|
522
|
-
}
|
|
523
|
-
function listAudioFromJSON(jsonString) {
|
|
524
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAudio' from JSON`);
|
|
525
|
-
}
|
|
526
|
-
/** @internal */
|
|
527
|
-
exports.ListInputAudioCache$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
528
|
-
/** @internal */
|
|
529
|
-
exports.ListInputAudioCache$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
530
|
-
/**
|
|
531
|
-
* @internal
|
|
532
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
533
|
-
*/
|
|
534
|
-
var ListInputAudioCache$;
|
|
535
|
-
(function (ListInputAudioCache$) {
|
|
536
|
-
/** @deprecated use `ListInputAudioCache$inboundSchema` instead. */
|
|
537
|
-
ListInputAudioCache$.inboundSchema = exports.ListInputAudioCache$inboundSchema;
|
|
538
|
-
/** @deprecated use `ListInputAudioCache$outboundSchema` instead. */
|
|
539
|
-
ListInputAudioCache$.outboundSchema = exports.ListInputAudioCache$outboundSchema;
|
|
540
|
-
})(ListInputAudioCache$ || (exports.ListInputAudioCache$ = ListInputAudioCache$ = {}));
|
|
541
|
-
function listInputAudioCacheToJSON(listInputAudioCache) {
|
|
542
|
-
return JSON.stringify(exports.ListInputAudioCache$outboundSchema.parse(listInputAudioCache));
|
|
543
|
-
}
|
|
544
|
-
function listInputAudioCacheFromJSON(jsonString) {
|
|
545
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListInputAudioCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInputAudioCache' from JSON`);
|
|
546
|
-
}
|
|
547
|
-
/** @internal */
|
|
548
|
-
exports.ListWebSearch$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
549
|
-
/** @internal */
|
|
550
|
-
exports.ListWebSearch$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
551
|
-
/**
|
|
552
|
-
* @internal
|
|
553
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
554
|
-
*/
|
|
555
|
-
var ListWebSearch$;
|
|
556
|
-
(function (ListWebSearch$) {
|
|
557
|
-
/** @deprecated use `ListWebSearch$inboundSchema` instead. */
|
|
558
|
-
ListWebSearch$.inboundSchema = exports.ListWebSearch$inboundSchema;
|
|
559
|
-
/** @deprecated use `ListWebSearch$outboundSchema` instead. */
|
|
560
|
-
ListWebSearch$.outboundSchema = exports.ListWebSearch$outboundSchema;
|
|
561
|
-
})(ListWebSearch$ || (exports.ListWebSearch$ = ListWebSearch$ = {}));
|
|
562
|
-
function listWebSearchToJSON(listWebSearch) {
|
|
563
|
-
return JSON.stringify(exports.ListWebSearch$outboundSchema.parse(listWebSearch));
|
|
564
|
-
}
|
|
565
|
-
function listWebSearchFromJSON(jsonString) {
|
|
566
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListWebSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWebSearch' from JSON`);
|
|
567
|
-
}
|
|
568
|
-
/** @internal */
|
|
569
|
-
exports.ListInternalReasoning$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
570
|
-
/** @internal */
|
|
571
|
-
exports.ListInternalReasoning$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
572
|
-
/**
|
|
573
|
-
* @internal
|
|
574
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
575
|
-
*/
|
|
576
|
-
var ListInternalReasoning$;
|
|
577
|
-
(function (ListInternalReasoning$) {
|
|
578
|
-
/** @deprecated use `ListInternalReasoning$inboundSchema` instead. */
|
|
579
|
-
ListInternalReasoning$.inboundSchema = exports.ListInternalReasoning$inboundSchema;
|
|
580
|
-
/** @deprecated use `ListInternalReasoning$outboundSchema` instead. */
|
|
581
|
-
ListInternalReasoning$.outboundSchema = exports.ListInternalReasoning$outboundSchema;
|
|
582
|
-
})(ListInternalReasoning$ || (exports.ListInternalReasoning$ = ListInternalReasoning$ = {}));
|
|
583
|
-
function listInternalReasoningToJSON(listInternalReasoning) {
|
|
584
|
-
return JSON.stringify(exports.ListInternalReasoning$outboundSchema.parse(listInternalReasoning));
|
|
585
|
-
}
|
|
586
|
-
function listInternalReasoningFromJSON(jsonString) {
|
|
587
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListInternalReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInternalReasoning' from JSON`);
|
|
588
|
-
}
|
|
589
|
-
/** @internal */
|
|
590
|
-
exports.ListInputCacheRead$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
591
|
-
/** @internal */
|
|
592
|
-
exports.ListInputCacheRead$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
593
|
-
/**
|
|
594
|
-
* @internal
|
|
595
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
596
|
-
*/
|
|
597
|
-
var ListInputCacheRead$;
|
|
598
|
-
(function (ListInputCacheRead$) {
|
|
599
|
-
/** @deprecated use `ListInputCacheRead$inboundSchema` instead. */
|
|
600
|
-
ListInputCacheRead$.inboundSchema = exports.ListInputCacheRead$inboundSchema;
|
|
601
|
-
/** @deprecated use `ListInputCacheRead$outboundSchema` instead. */
|
|
602
|
-
ListInputCacheRead$.outboundSchema = exports.ListInputCacheRead$outboundSchema;
|
|
603
|
-
})(ListInputCacheRead$ || (exports.ListInputCacheRead$ = ListInputCacheRead$ = {}));
|
|
604
|
-
function listInputCacheReadToJSON(listInputCacheRead) {
|
|
605
|
-
return JSON.stringify(exports.ListInputCacheRead$outboundSchema.parse(listInputCacheRead));
|
|
606
|
-
}
|
|
607
|
-
function listInputCacheReadFromJSON(jsonString) {
|
|
608
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListInputCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInputCacheRead' from JSON`);
|
|
609
|
-
}
|
|
610
|
-
/** @internal */
|
|
611
|
-
exports.ListInputCacheWrite$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
612
|
-
/** @internal */
|
|
613
|
-
exports.ListInputCacheWrite$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
614
|
-
/**
|
|
615
|
-
* @internal
|
|
616
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
617
|
-
*/
|
|
618
|
-
var ListInputCacheWrite$;
|
|
619
|
-
(function (ListInputCacheWrite$) {
|
|
620
|
-
/** @deprecated use `ListInputCacheWrite$inboundSchema` instead. */
|
|
621
|
-
ListInputCacheWrite$.inboundSchema = exports.ListInputCacheWrite$inboundSchema;
|
|
622
|
-
/** @deprecated use `ListInputCacheWrite$outboundSchema` instead. */
|
|
623
|
-
ListInputCacheWrite$.outboundSchema = exports.ListInputCacheWrite$outboundSchema;
|
|
624
|
-
})(ListInputCacheWrite$ || (exports.ListInputCacheWrite$ = ListInputCacheWrite$ = {}));
|
|
625
|
-
function listInputCacheWriteToJSON(listInputCacheWrite) {
|
|
626
|
-
return JSON.stringify(exports.ListInputCacheWrite$outboundSchema.parse(listInputCacheWrite));
|
|
627
|
-
}
|
|
628
|
-
function listInputCacheWriteFromJSON(jsonString) {
|
|
629
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListInputCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInputCacheWrite' from JSON`);
|
|
630
|
-
}
|
|
631
|
-
/** @internal */
|
|
632
|
-
exports.ListPricing$inboundSchema = z.object({
|
|
633
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
634
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
635
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
636
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
637
|
-
image_output: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
638
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
639
|
-
input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
640
|
-
web_search: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
641
|
-
internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
642
|
-
input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
643
|
-
input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
644
|
-
discount: z.number().optional(),
|
|
645
|
-
}).transform((v) => {
|
|
646
|
-
return (0, primitives_js_1.remap)(v, {
|
|
647
|
-
"image_output": "imageOutput",
|
|
648
|
-
"input_audio_cache": "inputAudioCache",
|
|
649
|
-
"web_search": "webSearch",
|
|
650
|
-
"internal_reasoning": "internalReasoning",
|
|
651
|
-
"input_cache_read": "inputCacheRead",
|
|
652
|
-
"input_cache_write": "inputCacheWrite",
|
|
653
|
-
});
|
|
654
|
-
});
|
|
655
|
-
/** @internal */
|
|
656
|
-
exports.ListPricing$outboundSchema = z.object({
|
|
657
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
658
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
659
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
660
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
661
|
-
imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
662
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
663
|
-
inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
664
|
-
webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
665
|
-
internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
666
|
-
inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
667
|
-
inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
668
|
-
discount: z.number().optional(),
|
|
669
|
-
}).transform((v) => {
|
|
670
|
-
return (0, primitives_js_1.remap)(v, {
|
|
671
|
-
imageOutput: "image_output",
|
|
672
|
-
inputAudioCache: "input_audio_cache",
|
|
673
|
-
webSearch: "web_search",
|
|
674
|
-
internalReasoning: "internal_reasoning",
|
|
675
|
-
inputCacheRead: "input_cache_read",
|
|
676
|
-
inputCacheWrite: "input_cache_write",
|
|
677
|
-
});
|
|
678
|
-
});
|
|
679
|
-
/**
|
|
680
|
-
* @internal
|
|
681
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
682
|
-
*/
|
|
683
|
-
var ListPricing$;
|
|
684
|
-
(function (ListPricing$) {
|
|
685
|
-
/** @deprecated use `ListPricing$inboundSchema` instead. */
|
|
686
|
-
ListPricing$.inboundSchema = exports.ListPricing$inboundSchema;
|
|
687
|
-
/** @deprecated use `ListPricing$outboundSchema` instead. */
|
|
688
|
-
ListPricing$.outboundSchema = exports.ListPricing$outboundSchema;
|
|
689
|
-
})(ListPricing$ || (exports.ListPricing$ = ListPricing$ = {}));
|
|
690
|
-
function listPricingToJSON(listPricing) {
|
|
691
|
-
return JSON.stringify(exports.ListPricing$outboundSchema.parse(listPricing));
|
|
692
|
-
}
|
|
693
|
-
function listPricingFromJSON(jsonString) {
|
|
694
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPricing' from JSON`);
|
|
695
|
-
}
|
|
696
|
-
/** @internal */
|
|
697
|
-
exports.ListProviderName$inboundSchema = z.nativeEnum(exports.ListProviderName);
|
|
698
|
-
/** @internal */
|
|
699
|
-
exports.ListProviderName$outboundSchema = exports.ListProviderName$inboundSchema;
|
|
700
|
-
/**
|
|
701
|
-
* @internal
|
|
702
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
703
|
-
*/
|
|
704
|
-
var ListProviderName$;
|
|
705
|
-
(function (ListProviderName$) {
|
|
706
|
-
/** @deprecated use `ListProviderName$inboundSchema` instead. */
|
|
707
|
-
ListProviderName$.inboundSchema = exports.ListProviderName$inboundSchema;
|
|
708
|
-
/** @deprecated use `ListProviderName$outboundSchema` instead. */
|
|
709
|
-
ListProviderName$.outboundSchema = exports.ListProviderName$outboundSchema;
|
|
710
|
-
})(ListProviderName$ || (exports.ListProviderName$ = ListProviderName$ = {}));
|
|
711
|
-
/** @internal */
|
|
712
|
-
exports.ListQuantization$inboundSchema = z.nativeEnum(exports.ListQuantization);
|
|
713
|
-
/** @internal */
|
|
714
|
-
exports.ListQuantization$outboundSchema = exports.ListQuantization$inboundSchema;
|
|
715
|
-
/**
|
|
716
|
-
* @internal
|
|
717
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
718
|
-
*/
|
|
719
|
-
var ListQuantization$;
|
|
720
|
-
(function (ListQuantization$) {
|
|
721
|
-
/** @deprecated use `ListQuantization$inboundSchema` instead. */
|
|
722
|
-
ListQuantization$.inboundSchema = exports.ListQuantization$inboundSchema;
|
|
723
|
-
/** @deprecated use `ListQuantization$outboundSchema` instead. */
|
|
724
|
-
ListQuantization$.outboundSchema = exports.ListQuantization$outboundSchema;
|
|
725
|
-
})(ListQuantization$ || (exports.ListQuantization$ = ListQuantization$ = {}));
|
|
726
|
-
/** @internal */
|
|
727
|
-
exports.ListSupportedParameter$inboundSchema = z.nativeEnum(exports.ListSupportedParameter);
|
|
728
|
-
/** @internal */
|
|
729
|
-
exports.ListSupportedParameter$outboundSchema = exports.ListSupportedParameter$inboundSchema;
|
|
730
|
-
/**
|
|
731
|
-
* @internal
|
|
732
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
733
|
-
*/
|
|
734
|
-
var ListSupportedParameter$;
|
|
735
|
-
(function (ListSupportedParameter$) {
|
|
736
|
-
/** @deprecated use `ListSupportedParameter$inboundSchema` instead. */
|
|
737
|
-
ListSupportedParameter$.inboundSchema = exports.ListSupportedParameter$inboundSchema;
|
|
738
|
-
/** @deprecated use `ListSupportedParameter$outboundSchema` instead. */
|
|
739
|
-
ListSupportedParameter$.outboundSchema = exports.ListSupportedParameter$outboundSchema;
|
|
740
|
-
})(ListSupportedParameter$ || (exports.ListSupportedParameter$ = ListSupportedParameter$ = {}));
|
|
741
|
-
/** @internal */
|
|
742
|
-
exports.ListStatus$inboundSchema = z
|
|
743
|
-
.nativeEnum(exports.ListStatus);
|
|
744
|
-
/** @internal */
|
|
745
|
-
exports.ListStatus$outboundSchema = exports.ListStatus$inboundSchema;
|
|
746
|
-
/**
|
|
747
|
-
* @internal
|
|
748
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
749
|
-
*/
|
|
750
|
-
var ListStatus$;
|
|
751
|
-
(function (ListStatus$) {
|
|
752
|
-
/** @deprecated use `ListStatus$inboundSchema` instead. */
|
|
753
|
-
ListStatus$.inboundSchema = exports.ListStatus$inboundSchema;
|
|
754
|
-
/** @deprecated use `ListStatus$outboundSchema` instead. */
|
|
755
|
-
ListStatus$.outboundSchema = exports.ListStatus$outboundSchema;
|
|
756
|
-
})(ListStatus$ || (exports.ListStatus$ = ListStatus$ = {}));
|
|
757
|
-
/** @internal */
|
|
758
|
-
exports.Endpoint$inboundSchema = z.object({
|
|
759
|
-
name: z.string(),
|
|
760
|
-
model_name: z.string(),
|
|
761
|
-
context_length: z.number(),
|
|
762
|
-
pricing: z.lazy(() => exports.ListPricing$inboundSchema),
|
|
763
|
-
provider_name: exports.ListProviderName$inboundSchema,
|
|
764
|
-
tag: z.string(),
|
|
765
|
-
quantization: z.nullable(exports.ListQuantization$inboundSchema),
|
|
766
|
-
max_completion_tokens: z.nullable(z.number()),
|
|
767
|
-
max_prompt_tokens: z.nullable(z.number()),
|
|
768
|
-
supported_parameters: z.array(exports.ListSupportedParameter$inboundSchema),
|
|
769
|
-
status: exports.ListStatus$inboundSchema.optional(),
|
|
770
|
-
uptime_last_30m: z.nullable(z.number()),
|
|
771
|
-
supports_implicit_caching: z.boolean(),
|
|
772
|
-
}).transform((v) => {
|
|
773
|
-
return (0, primitives_js_1.remap)(v, {
|
|
774
|
-
"model_name": "modelName",
|
|
775
|
-
"context_length": "contextLength",
|
|
776
|
-
"provider_name": "providerName",
|
|
777
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
778
|
-
"max_prompt_tokens": "maxPromptTokens",
|
|
779
|
-
"supported_parameters": "supportedParameters",
|
|
780
|
-
"uptime_last_30m": "uptimeLast30m",
|
|
781
|
-
"supports_implicit_caching": "supportsImplicitCaching",
|
|
782
|
-
});
|
|
783
|
-
});
|
|
784
|
-
/** @internal */
|
|
785
|
-
exports.Endpoint$outboundSchema = z.object({
|
|
786
|
-
name: z.string(),
|
|
787
|
-
modelName: z.string(),
|
|
788
|
-
contextLength: z.number(),
|
|
789
|
-
pricing: z.lazy(() => exports.ListPricing$outboundSchema),
|
|
790
|
-
providerName: exports.ListProviderName$outboundSchema,
|
|
791
|
-
tag: z.string(),
|
|
792
|
-
quantization: z.nullable(exports.ListQuantization$outboundSchema),
|
|
793
|
-
maxCompletionTokens: z.nullable(z.number()),
|
|
794
|
-
maxPromptTokens: z.nullable(z.number()),
|
|
795
|
-
supportedParameters: z.array(exports.ListSupportedParameter$outboundSchema),
|
|
796
|
-
status: exports.ListStatus$outboundSchema.optional(),
|
|
797
|
-
uptimeLast30m: z.nullable(z.number()),
|
|
798
|
-
supportsImplicitCaching: z.boolean(),
|
|
799
|
-
}).transform((v) => {
|
|
800
|
-
return (0, primitives_js_1.remap)(v, {
|
|
801
|
-
modelName: "model_name",
|
|
802
|
-
contextLength: "context_length",
|
|
803
|
-
providerName: "provider_name",
|
|
804
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
805
|
-
maxPromptTokens: "max_prompt_tokens",
|
|
806
|
-
supportedParameters: "supported_parameters",
|
|
807
|
-
uptimeLast30m: "uptime_last_30m",
|
|
808
|
-
supportsImplicitCaching: "supports_implicit_caching",
|
|
809
|
-
});
|
|
810
|
-
});
|
|
811
|
-
/**
|
|
812
|
-
* @internal
|
|
813
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
814
|
-
*/
|
|
815
|
-
var Endpoint$;
|
|
816
|
-
(function (Endpoint$) {
|
|
817
|
-
/** @deprecated use `Endpoint$inboundSchema` instead. */
|
|
818
|
-
Endpoint$.inboundSchema = exports.Endpoint$inboundSchema;
|
|
819
|
-
/** @deprecated use `Endpoint$outboundSchema` instead. */
|
|
820
|
-
Endpoint$.outboundSchema = exports.Endpoint$outboundSchema;
|
|
821
|
-
})(Endpoint$ || (exports.Endpoint$ = Endpoint$ = {}));
|
|
822
|
-
function endpointToJSON(endpoint) {
|
|
823
|
-
return JSON.stringify(exports.Endpoint$outboundSchema.parse(endpoint));
|
|
234
|
+
var Architecture$;
|
|
235
|
+
(function (Architecture$) {
|
|
236
|
+
/** @deprecated use `Architecture$inboundSchema` instead. */
|
|
237
|
+
Architecture$.inboundSchema = exports.Architecture$inboundSchema;
|
|
238
|
+
/** @deprecated use `Architecture$outboundSchema` instead. */
|
|
239
|
+
Architecture$.outboundSchema = exports.Architecture$outboundSchema;
|
|
240
|
+
})(Architecture$ || (exports.Architecture$ = Architecture$ = {}));
|
|
241
|
+
function architectureToJSON(architecture) {
|
|
242
|
+
return JSON.stringify(exports.Architecture$outboundSchema.parse(architecture));
|
|
824
243
|
}
|
|
825
|
-
function
|
|
826
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
244
|
+
function architectureFromJSON(jsonString) {
|
|
245
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Architecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Architecture' from JSON`);
|
|
827
246
|
}
|
|
828
247
|
/** @internal */
|
|
829
248
|
exports.ListData$inboundSchema = z.object({
|
|
@@ -831,8 +250,8 @@ exports.ListData$inboundSchema = z.object({
|
|
|
831
250
|
name: z.string(),
|
|
832
251
|
created: z.number(),
|
|
833
252
|
description: z.string(),
|
|
834
|
-
architecture: z.lazy(() => exports.
|
|
835
|
-
endpoints: z.array(
|
|
253
|
+
architecture: z.lazy(() => exports.Architecture$inboundSchema),
|
|
254
|
+
endpoints: z.array(models.EndpointsList$inboundSchema),
|
|
836
255
|
});
|
|
837
256
|
/** @internal */
|
|
838
257
|
exports.ListData$outboundSchema = z.object({
|
|
@@ -840,8 +259,8 @@ exports.ListData$outboundSchema = z.object({
|
|
|
840
259
|
name: z.string(),
|
|
841
260
|
created: z.number(),
|
|
842
261
|
description: z.string(),
|
|
843
|
-
architecture: z.lazy(() => exports.
|
|
844
|
-
endpoints: z.array(
|
|
262
|
+
architecture: z.lazy(() => exports.Architecture$outboundSchema),
|
|
263
|
+
endpoints: z.array(models.EndpointsList$outboundSchema),
|
|
845
264
|
});
|
|
846
265
|
/**
|
|
847
266
|
* @internal
|