@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
|
@@ -22,7 +22,7 @@ export type Input =
|
|
|
22
22
|
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
23
23
|
* - deny: use only providers which do not collect user data.
|
|
24
24
|
*/
|
|
25
|
-
export const
|
|
25
|
+
export const GenerateDataCollection = {
|
|
26
26
|
Deny: "deny",
|
|
27
27
|
Allow: "allow",
|
|
28
28
|
} as const;
|
|
@@ -33,9 +33,9 @@ export const DataCollection = {
|
|
|
33
33
|
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
34
34
|
* - deny: use only providers which do not collect user data.
|
|
35
35
|
*/
|
|
36
|
-
export type
|
|
36
|
+
export type GenerateDataCollection = ClosedEnum<typeof GenerateDataCollection>;
|
|
37
37
|
|
|
38
|
-
export const
|
|
38
|
+
export const GenerateOrderEnum = {
|
|
39
39
|
AnyScale: "AnyScale",
|
|
40
40
|
CentML: "Cent-ML",
|
|
41
41
|
HuggingFace: "HuggingFace",
|
|
@@ -119,11 +119,11 @@ export const OrderEnum = {
|
|
|
119
119
|
ZAi: "Z.AI",
|
|
120
120
|
FakeProvider: "FakeProvider",
|
|
121
121
|
} as const;
|
|
122
|
-
export type
|
|
122
|
+
export type GenerateOrderEnum = ClosedEnum<typeof GenerateOrderEnum>;
|
|
123
123
|
|
|
124
|
-
export type
|
|
124
|
+
export type GenerateOrderUnion = GenerateOrderEnum | string;
|
|
125
125
|
|
|
126
|
-
export const
|
|
126
|
+
export const GenerateOnlyEnum = {
|
|
127
127
|
AnyScale: "AnyScale",
|
|
128
128
|
CentML: "Cent-ML",
|
|
129
129
|
HuggingFace: "HuggingFace",
|
|
@@ -207,11 +207,11 @@ export const OnlyEnum = {
|
|
|
207
207
|
ZAi: "Z.AI",
|
|
208
208
|
FakeProvider: "FakeProvider",
|
|
209
209
|
} as const;
|
|
210
|
-
export type
|
|
210
|
+
export type GenerateOnlyEnum = ClosedEnum<typeof GenerateOnlyEnum>;
|
|
211
211
|
|
|
212
|
-
export type
|
|
212
|
+
export type GenerateOnlyUnion = GenerateOnlyEnum | string;
|
|
213
213
|
|
|
214
|
-
export const
|
|
214
|
+
export const GenerateIgnoreEnum = {
|
|
215
215
|
AnyScale: "AnyScale",
|
|
216
216
|
CentML: "Cent-ML",
|
|
217
217
|
HuggingFace: "HuggingFace",
|
|
@@ -295,9 +295,9 @@ export const IgnoreEnum = {
|
|
|
295
295
|
ZAi: "Z.AI",
|
|
296
296
|
FakeProvider: "FakeProvider",
|
|
297
297
|
} as const;
|
|
298
|
-
export type
|
|
298
|
+
export type GenerateIgnoreEnum = ClosedEnum<typeof GenerateIgnoreEnum>;
|
|
299
299
|
|
|
300
|
-
export type
|
|
300
|
+
export type GenerateIgnoreUnion = GenerateIgnoreEnum | string;
|
|
301
301
|
|
|
302
302
|
export const GenerateQuantization = {
|
|
303
303
|
Int4: "int4",
|
|
@@ -315,7 +315,7 @@ export type GenerateQuantization = ClosedEnum<typeof GenerateQuantization>;
|
|
|
315
315
|
/**
|
|
316
316
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
317
317
|
*/
|
|
318
|
-
export const
|
|
318
|
+
export const GenerateSort = {
|
|
319
319
|
Price: "price",
|
|
320
320
|
Throughput: "throughput",
|
|
321
321
|
Latency: "latency",
|
|
@@ -323,7 +323,7 @@ export const Sort = {
|
|
|
323
323
|
/**
|
|
324
324
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
325
325
|
*/
|
|
326
|
-
export type
|
|
326
|
+
export type GenerateSort = ClosedEnum<typeof GenerateSort>;
|
|
327
327
|
|
|
328
328
|
export type GeneratePrompt = number | string | any;
|
|
329
329
|
|
|
@@ -338,7 +338,7 @@ export type GenerateRequestUnion = number | string | any;
|
|
|
338
338
|
/**
|
|
339
339
|
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
340
340
|
*/
|
|
341
|
-
export type
|
|
341
|
+
export type GenerateMaxPrice = {
|
|
342
342
|
prompt?: number | string | any | undefined;
|
|
343
343
|
completion?: number | string | any | undefined;
|
|
344
344
|
image?: number | string | any | undefined;
|
|
@@ -346,7 +346,7 @@ export type MaxPrice = {
|
|
|
346
346
|
request?: number | string | any | undefined;
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
export type
|
|
349
|
+
export type GenerateExperimental = {};
|
|
350
350
|
|
|
351
351
|
export type GenerateProvider = {
|
|
352
352
|
/**
|
|
@@ -368,7 +368,7 @@ export type GenerateProvider = {
|
|
|
368
368
|
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
369
369
|
* - deny: use only providers which do not collect user data.
|
|
370
370
|
*/
|
|
371
|
-
dataCollection?:
|
|
371
|
+
dataCollection?: GenerateDataCollection | null | undefined;
|
|
372
372
|
/**
|
|
373
373
|
* Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
|
|
374
374
|
*/
|
|
@@ -376,15 +376,15 @@ export type GenerateProvider = {
|
|
|
376
376
|
/**
|
|
377
377
|
* An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
|
|
378
378
|
*/
|
|
379
|
-
order?: Array<
|
|
379
|
+
order?: Array<GenerateOrderEnum | string> | null | undefined;
|
|
380
380
|
/**
|
|
381
381
|
* List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
|
|
382
382
|
*/
|
|
383
|
-
only?: Array<
|
|
383
|
+
only?: Array<GenerateOnlyEnum | string> | null | undefined;
|
|
384
384
|
/**
|
|
385
385
|
* List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
|
|
386
386
|
*/
|
|
387
|
-
ignore?: Array<
|
|
387
|
+
ignore?: Array<GenerateIgnoreEnum | string> | null | undefined;
|
|
388
388
|
/**
|
|
389
389
|
* A list of quantization levels to filter the provider by.
|
|
390
390
|
*/
|
|
@@ -392,12 +392,12 @@ export type GenerateProvider = {
|
|
|
392
392
|
/**
|
|
393
393
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
394
394
|
*/
|
|
395
|
-
sort?:
|
|
395
|
+
sort?: GenerateSort | null | undefined;
|
|
396
396
|
/**
|
|
397
397
|
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
398
398
|
*/
|
|
399
|
-
maxPrice?:
|
|
400
|
-
experimental?:
|
|
399
|
+
maxPrice?: GenerateMaxPrice | undefined;
|
|
400
|
+
experimental?: GenerateExperimental | null | undefined;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
export const EncodingFormatBase64 = {
|
|
@@ -509,200 +509,230 @@ export function inputFromJSON(
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
/** @internal */
|
|
512
|
-
export const
|
|
513
|
-
typeof
|
|
514
|
-
> = z.nativeEnum(
|
|
512
|
+
export const GenerateDataCollection$inboundSchema: z.ZodNativeEnum<
|
|
513
|
+
typeof GenerateDataCollection
|
|
514
|
+
> = z.nativeEnum(GenerateDataCollection);
|
|
515
515
|
|
|
516
516
|
/** @internal */
|
|
517
|
-
export const
|
|
518
|
-
typeof
|
|
519
|
-
> =
|
|
517
|
+
export const GenerateDataCollection$outboundSchema: z.ZodNativeEnum<
|
|
518
|
+
typeof GenerateDataCollection
|
|
519
|
+
> = GenerateDataCollection$inboundSchema;
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* @internal
|
|
523
523
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
524
524
|
*/
|
|
525
|
-
export namespace
|
|
526
|
-
/** @deprecated use `
|
|
527
|
-
export const inboundSchema =
|
|
528
|
-
/** @deprecated use `
|
|
529
|
-
export const outboundSchema =
|
|
525
|
+
export namespace GenerateDataCollection$ {
|
|
526
|
+
/** @deprecated use `GenerateDataCollection$inboundSchema` instead. */
|
|
527
|
+
export const inboundSchema = GenerateDataCollection$inboundSchema;
|
|
528
|
+
/** @deprecated use `GenerateDataCollection$outboundSchema` instead. */
|
|
529
|
+
export const outboundSchema = GenerateDataCollection$outboundSchema;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
/** @internal */
|
|
533
|
-
export const
|
|
534
|
-
|
|
533
|
+
export const GenerateOrderEnum$inboundSchema: z.ZodNativeEnum<
|
|
534
|
+
typeof GenerateOrderEnum
|
|
535
|
+
> = z.nativeEnum(GenerateOrderEnum);
|
|
535
536
|
|
|
536
537
|
/** @internal */
|
|
537
|
-
export const
|
|
538
|
-
|
|
538
|
+
export const GenerateOrderEnum$outboundSchema: z.ZodNativeEnum<
|
|
539
|
+
typeof GenerateOrderEnum
|
|
540
|
+
> = GenerateOrderEnum$inboundSchema;
|
|
539
541
|
|
|
540
542
|
/**
|
|
541
543
|
* @internal
|
|
542
544
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
545
|
*/
|
|
544
|
-
export namespace
|
|
545
|
-
/** @deprecated use `
|
|
546
|
-
export const inboundSchema =
|
|
547
|
-
/** @deprecated use `
|
|
548
|
-
export const outboundSchema =
|
|
546
|
+
export namespace GenerateOrderEnum$ {
|
|
547
|
+
/** @deprecated use `GenerateOrderEnum$inboundSchema` instead. */
|
|
548
|
+
export const inboundSchema = GenerateOrderEnum$inboundSchema;
|
|
549
|
+
/** @deprecated use `GenerateOrderEnum$outboundSchema` instead. */
|
|
550
|
+
export const outboundSchema = GenerateOrderEnum$outboundSchema;
|
|
549
551
|
}
|
|
550
552
|
|
|
551
553
|
/** @internal */
|
|
552
|
-
export const
|
|
553
|
-
|
|
554
|
+
export const GenerateOrderUnion$inboundSchema: z.ZodType<
|
|
555
|
+
GenerateOrderUnion,
|
|
556
|
+
z.ZodTypeDef,
|
|
557
|
+
unknown
|
|
558
|
+
> = z.union([GenerateOrderEnum$inboundSchema, z.string()]);
|
|
554
559
|
|
|
555
560
|
/** @internal */
|
|
556
|
-
export type
|
|
561
|
+
export type GenerateOrderUnion$Outbound = string | string;
|
|
557
562
|
|
|
558
563
|
/** @internal */
|
|
559
|
-
export const
|
|
560
|
-
|
|
564
|
+
export const GenerateOrderUnion$outboundSchema: z.ZodType<
|
|
565
|
+
GenerateOrderUnion$Outbound,
|
|
561
566
|
z.ZodTypeDef,
|
|
562
|
-
|
|
563
|
-
> = z.union([
|
|
567
|
+
GenerateOrderUnion
|
|
568
|
+
> = z.union([GenerateOrderEnum$outboundSchema, z.string()]);
|
|
564
569
|
|
|
565
570
|
/**
|
|
566
571
|
* @internal
|
|
567
572
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
568
573
|
*/
|
|
569
|
-
export namespace
|
|
570
|
-
/** @deprecated use `
|
|
571
|
-
export const inboundSchema =
|
|
572
|
-
/** @deprecated use `
|
|
573
|
-
export const outboundSchema =
|
|
574
|
-
/** @deprecated use `
|
|
575
|
-
export type Outbound =
|
|
574
|
+
export namespace GenerateOrderUnion$ {
|
|
575
|
+
/** @deprecated use `GenerateOrderUnion$inboundSchema` instead. */
|
|
576
|
+
export const inboundSchema = GenerateOrderUnion$inboundSchema;
|
|
577
|
+
/** @deprecated use `GenerateOrderUnion$outboundSchema` instead. */
|
|
578
|
+
export const outboundSchema = GenerateOrderUnion$outboundSchema;
|
|
579
|
+
/** @deprecated use `GenerateOrderUnion$Outbound` instead. */
|
|
580
|
+
export type Outbound = GenerateOrderUnion$Outbound;
|
|
576
581
|
}
|
|
577
582
|
|
|
578
|
-
export function
|
|
579
|
-
|
|
583
|
+
export function generateOrderUnionToJSON(
|
|
584
|
+
generateOrderUnion: GenerateOrderUnion,
|
|
585
|
+
): string {
|
|
586
|
+
return JSON.stringify(
|
|
587
|
+
GenerateOrderUnion$outboundSchema.parse(generateOrderUnion),
|
|
588
|
+
);
|
|
580
589
|
}
|
|
581
590
|
|
|
582
|
-
export function
|
|
591
|
+
export function generateOrderUnionFromJSON(
|
|
583
592
|
jsonString: string,
|
|
584
|
-
): SafeParseResult<
|
|
593
|
+
): SafeParseResult<GenerateOrderUnion, SDKValidationError> {
|
|
585
594
|
return safeParse(
|
|
586
595
|
jsonString,
|
|
587
|
-
(x) =>
|
|
588
|
-
`Failed to parse '
|
|
596
|
+
(x) => GenerateOrderUnion$inboundSchema.parse(JSON.parse(x)),
|
|
597
|
+
`Failed to parse 'GenerateOrderUnion' from JSON`,
|
|
589
598
|
);
|
|
590
599
|
}
|
|
591
600
|
|
|
592
601
|
/** @internal */
|
|
593
|
-
export const
|
|
594
|
-
|
|
602
|
+
export const GenerateOnlyEnum$inboundSchema: z.ZodNativeEnum<
|
|
603
|
+
typeof GenerateOnlyEnum
|
|
604
|
+
> = z.nativeEnum(GenerateOnlyEnum);
|
|
595
605
|
|
|
596
606
|
/** @internal */
|
|
597
|
-
export const
|
|
598
|
-
|
|
607
|
+
export const GenerateOnlyEnum$outboundSchema: z.ZodNativeEnum<
|
|
608
|
+
typeof GenerateOnlyEnum
|
|
609
|
+
> = GenerateOnlyEnum$inboundSchema;
|
|
599
610
|
|
|
600
611
|
/**
|
|
601
612
|
* @internal
|
|
602
613
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
603
614
|
*/
|
|
604
|
-
export namespace
|
|
605
|
-
/** @deprecated use `
|
|
606
|
-
export const inboundSchema =
|
|
607
|
-
/** @deprecated use `
|
|
608
|
-
export const outboundSchema =
|
|
615
|
+
export namespace GenerateOnlyEnum$ {
|
|
616
|
+
/** @deprecated use `GenerateOnlyEnum$inboundSchema` instead. */
|
|
617
|
+
export const inboundSchema = GenerateOnlyEnum$inboundSchema;
|
|
618
|
+
/** @deprecated use `GenerateOnlyEnum$outboundSchema` instead. */
|
|
619
|
+
export const outboundSchema = GenerateOnlyEnum$outboundSchema;
|
|
609
620
|
}
|
|
610
621
|
|
|
611
622
|
/** @internal */
|
|
612
|
-
export const
|
|
613
|
-
|
|
623
|
+
export const GenerateOnlyUnion$inboundSchema: z.ZodType<
|
|
624
|
+
GenerateOnlyUnion,
|
|
625
|
+
z.ZodTypeDef,
|
|
626
|
+
unknown
|
|
627
|
+
> = z.union([GenerateOnlyEnum$inboundSchema, z.string()]);
|
|
614
628
|
|
|
615
629
|
/** @internal */
|
|
616
|
-
export type
|
|
630
|
+
export type GenerateOnlyUnion$Outbound = string | string;
|
|
617
631
|
|
|
618
632
|
/** @internal */
|
|
619
|
-
export const
|
|
620
|
-
|
|
633
|
+
export const GenerateOnlyUnion$outboundSchema: z.ZodType<
|
|
634
|
+
GenerateOnlyUnion$Outbound,
|
|
635
|
+
z.ZodTypeDef,
|
|
636
|
+
GenerateOnlyUnion
|
|
637
|
+
> = z.union([GenerateOnlyEnum$outboundSchema, z.string()]);
|
|
621
638
|
|
|
622
639
|
/**
|
|
623
640
|
* @internal
|
|
624
641
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
625
642
|
*/
|
|
626
|
-
export namespace
|
|
627
|
-
/** @deprecated use `
|
|
628
|
-
export const inboundSchema =
|
|
629
|
-
/** @deprecated use `
|
|
630
|
-
export const outboundSchema =
|
|
631
|
-
/** @deprecated use `
|
|
632
|
-
export type Outbound =
|
|
643
|
+
export namespace GenerateOnlyUnion$ {
|
|
644
|
+
/** @deprecated use `GenerateOnlyUnion$inboundSchema` instead. */
|
|
645
|
+
export const inboundSchema = GenerateOnlyUnion$inboundSchema;
|
|
646
|
+
/** @deprecated use `GenerateOnlyUnion$outboundSchema` instead. */
|
|
647
|
+
export const outboundSchema = GenerateOnlyUnion$outboundSchema;
|
|
648
|
+
/** @deprecated use `GenerateOnlyUnion$Outbound` instead. */
|
|
649
|
+
export type Outbound = GenerateOnlyUnion$Outbound;
|
|
633
650
|
}
|
|
634
651
|
|
|
635
|
-
export function
|
|
636
|
-
|
|
652
|
+
export function generateOnlyUnionToJSON(
|
|
653
|
+
generateOnlyUnion: GenerateOnlyUnion,
|
|
654
|
+
): string {
|
|
655
|
+
return JSON.stringify(
|
|
656
|
+
GenerateOnlyUnion$outboundSchema.parse(generateOnlyUnion),
|
|
657
|
+
);
|
|
637
658
|
}
|
|
638
659
|
|
|
639
|
-
export function
|
|
660
|
+
export function generateOnlyUnionFromJSON(
|
|
640
661
|
jsonString: string,
|
|
641
|
-
): SafeParseResult<
|
|
662
|
+
): SafeParseResult<GenerateOnlyUnion, SDKValidationError> {
|
|
642
663
|
return safeParse(
|
|
643
664
|
jsonString,
|
|
644
|
-
(x) =>
|
|
645
|
-
`Failed to parse '
|
|
665
|
+
(x) => GenerateOnlyUnion$inboundSchema.parse(JSON.parse(x)),
|
|
666
|
+
`Failed to parse 'GenerateOnlyUnion' from JSON`,
|
|
646
667
|
);
|
|
647
668
|
}
|
|
648
669
|
|
|
649
670
|
/** @internal */
|
|
650
|
-
export const
|
|
651
|
-
|
|
671
|
+
export const GenerateIgnoreEnum$inboundSchema: z.ZodNativeEnum<
|
|
672
|
+
typeof GenerateIgnoreEnum
|
|
673
|
+
> = z.nativeEnum(GenerateIgnoreEnum);
|
|
652
674
|
|
|
653
675
|
/** @internal */
|
|
654
|
-
export const
|
|
655
|
-
|
|
676
|
+
export const GenerateIgnoreEnum$outboundSchema: z.ZodNativeEnum<
|
|
677
|
+
typeof GenerateIgnoreEnum
|
|
678
|
+
> = GenerateIgnoreEnum$inboundSchema;
|
|
656
679
|
|
|
657
680
|
/**
|
|
658
681
|
* @internal
|
|
659
682
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
660
683
|
*/
|
|
661
|
-
export namespace
|
|
662
|
-
/** @deprecated use `
|
|
663
|
-
export const inboundSchema =
|
|
664
|
-
/** @deprecated use `
|
|
665
|
-
export const outboundSchema =
|
|
684
|
+
export namespace GenerateIgnoreEnum$ {
|
|
685
|
+
/** @deprecated use `GenerateIgnoreEnum$inboundSchema` instead. */
|
|
686
|
+
export const inboundSchema = GenerateIgnoreEnum$inboundSchema;
|
|
687
|
+
/** @deprecated use `GenerateIgnoreEnum$outboundSchema` instead. */
|
|
688
|
+
export const outboundSchema = GenerateIgnoreEnum$outboundSchema;
|
|
666
689
|
}
|
|
667
690
|
|
|
668
691
|
/** @internal */
|
|
669
|
-
export const
|
|
670
|
-
|
|
692
|
+
export const GenerateIgnoreUnion$inboundSchema: z.ZodType<
|
|
693
|
+
GenerateIgnoreUnion,
|
|
694
|
+
z.ZodTypeDef,
|
|
695
|
+
unknown
|
|
696
|
+
> = z.union([GenerateIgnoreEnum$inboundSchema, z.string()]);
|
|
671
697
|
|
|
672
698
|
/** @internal */
|
|
673
|
-
export type
|
|
699
|
+
export type GenerateIgnoreUnion$Outbound = string | string;
|
|
674
700
|
|
|
675
701
|
/** @internal */
|
|
676
|
-
export const
|
|
677
|
-
|
|
702
|
+
export const GenerateIgnoreUnion$outboundSchema: z.ZodType<
|
|
703
|
+
GenerateIgnoreUnion$Outbound,
|
|
678
704
|
z.ZodTypeDef,
|
|
679
|
-
|
|
680
|
-
> = z.union([
|
|
705
|
+
GenerateIgnoreUnion
|
|
706
|
+
> = z.union([GenerateIgnoreEnum$outboundSchema, z.string()]);
|
|
681
707
|
|
|
682
708
|
/**
|
|
683
709
|
* @internal
|
|
684
710
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
685
711
|
*/
|
|
686
|
-
export namespace
|
|
687
|
-
/** @deprecated use `
|
|
688
|
-
export const inboundSchema =
|
|
689
|
-
/** @deprecated use `
|
|
690
|
-
export const outboundSchema =
|
|
691
|
-
/** @deprecated use `
|
|
692
|
-
export type Outbound =
|
|
712
|
+
export namespace GenerateIgnoreUnion$ {
|
|
713
|
+
/** @deprecated use `GenerateIgnoreUnion$inboundSchema` instead. */
|
|
714
|
+
export const inboundSchema = GenerateIgnoreUnion$inboundSchema;
|
|
715
|
+
/** @deprecated use `GenerateIgnoreUnion$outboundSchema` instead. */
|
|
716
|
+
export const outboundSchema = GenerateIgnoreUnion$outboundSchema;
|
|
717
|
+
/** @deprecated use `GenerateIgnoreUnion$Outbound` instead. */
|
|
718
|
+
export type Outbound = GenerateIgnoreUnion$Outbound;
|
|
693
719
|
}
|
|
694
720
|
|
|
695
|
-
export function
|
|
696
|
-
|
|
721
|
+
export function generateIgnoreUnionToJSON(
|
|
722
|
+
generateIgnoreUnion: GenerateIgnoreUnion,
|
|
723
|
+
): string {
|
|
724
|
+
return JSON.stringify(
|
|
725
|
+
GenerateIgnoreUnion$outboundSchema.parse(generateIgnoreUnion),
|
|
726
|
+
);
|
|
697
727
|
}
|
|
698
728
|
|
|
699
|
-
export function
|
|
729
|
+
export function generateIgnoreUnionFromJSON(
|
|
700
730
|
jsonString: string,
|
|
701
|
-
): SafeParseResult<
|
|
731
|
+
): SafeParseResult<GenerateIgnoreUnion, SDKValidationError> {
|
|
702
732
|
return safeParse(
|
|
703
733
|
jsonString,
|
|
704
|
-
(x) =>
|
|
705
|
-
`Failed to parse '
|
|
734
|
+
(x) => GenerateIgnoreUnion$inboundSchema.parse(JSON.parse(x)),
|
|
735
|
+
`Failed to parse 'GenerateIgnoreUnion' from JSON`,
|
|
706
736
|
);
|
|
707
737
|
}
|
|
708
738
|
|
|
@@ -728,23 +758,22 @@ export namespace GenerateQuantization$ {
|
|
|
728
758
|
}
|
|
729
759
|
|
|
730
760
|
/** @internal */
|
|
731
|
-
export const
|
|
732
|
-
|
|
733
|
-
);
|
|
761
|
+
export const GenerateSort$inboundSchema: z.ZodNativeEnum<typeof GenerateSort> =
|
|
762
|
+
z.nativeEnum(GenerateSort);
|
|
734
763
|
|
|
735
764
|
/** @internal */
|
|
736
|
-
export const
|
|
737
|
-
|
|
765
|
+
export const GenerateSort$outboundSchema: z.ZodNativeEnum<typeof GenerateSort> =
|
|
766
|
+
GenerateSort$inboundSchema;
|
|
738
767
|
|
|
739
768
|
/**
|
|
740
769
|
* @internal
|
|
741
770
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
742
771
|
*/
|
|
743
|
-
export namespace
|
|
744
|
-
/** @deprecated use `
|
|
745
|
-
export const inboundSchema =
|
|
746
|
-
/** @deprecated use `
|
|
747
|
-
export const outboundSchema =
|
|
772
|
+
export namespace GenerateSort$ {
|
|
773
|
+
/** @deprecated use `GenerateSort$inboundSchema` instead. */
|
|
774
|
+
export const inboundSchema = GenerateSort$inboundSchema;
|
|
775
|
+
/** @deprecated use `GenerateSort$outboundSchema` instead. */
|
|
776
|
+
export const outboundSchema = GenerateSort$outboundSchema;
|
|
748
777
|
}
|
|
749
778
|
|
|
750
779
|
/** @internal */
|
|
@@ -976,8 +1005,8 @@ export function generateRequestUnionFromJSON(
|
|
|
976
1005
|
}
|
|
977
1006
|
|
|
978
1007
|
/** @internal */
|
|
979
|
-
export const
|
|
980
|
-
|
|
1008
|
+
export const GenerateMaxPrice$inboundSchema: z.ZodType<
|
|
1009
|
+
GenerateMaxPrice,
|
|
981
1010
|
z.ZodTypeDef,
|
|
982
1011
|
unknown
|
|
983
1012
|
> = z.object({
|
|
@@ -989,7 +1018,7 @@ export const MaxPrice$inboundSchema: z.ZodType<
|
|
|
989
1018
|
});
|
|
990
1019
|
|
|
991
1020
|
/** @internal */
|
|
992
|
-
export type
|
|
1021
|
+
export type GenerateMaxPrice$Outbound = {
|
|
993
1022
|
prompt?: number | string | any | undefined;
|
|
994
1023
|
completion?: number | string | any | undefined;
|
|
995
1024
|
image?: number | string | any | undefined;
|
|
@@ -998,10 +1027,10 @@ export type MaxPrice$Outbound = {
|
|
|
998
1027
|
};
|
|
999
1028
|
|
|
1000
1029
|
/** @internal */
|
|
1001
|
-
export const
|
|
1002
|
-
|
|
1030
|
+
export const GenerateMaxPrice$outboundSchema: z.ZodType<
|
|
1031
|
+
GenerateMaxPrice$Outbound,
|
|
1003
1032
|
z.ZodTypeDef,
|
|
1004
|
-
|
|
1033
|
+
GenerateMaxPrice
|
|
1005
1034
|
> = z.object({
|
|
1006
1035
|
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
1007
1036
|
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
@@ -1014,70 +1043,78 @@ export const MaxPrice$outboundSchema: z.ZodType<
|
|
|
1014
1043
|
* @internal
|
|
1015
1044
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1016
1045
|
*/
|
|
1017
|
-
export namespace
|
|
1018
|
-
/** @deprecated use `
|
|
1019
|
-
export const inboundSchema =
|
|
1020
|
-
/** @deprecated use `
|
|
1021
|
-
export const outboundSchema =
|
|
1022
|
-
/** @deprecated use `
|
|
1023
|
-
export type Outbound =
|
|
1046
|
+
export namespace GenerateMaxPrice$ {
|
|
1047
|
+
/** @deprecated use `GenerateMaxPrice$inboundSchema` instead. */
|
|
1048
|
+
export const inboundSchema = GenerateMaxPrice$inboundSchema;
|
|
1049
|
+
/** @deprecated use `GenerateMaxPrice$outboundSchema` instead. */
|
|
1050
|
+
export const outboundSchema = GenerateMaxPrice$outboundSchema;
|
|
1051
|
+
/** @deprecated use `GenerateMaxPrice$Outbound` instead. */
|
|
1052
|
+
export type Outbound = GenerateMaxPrice$Outbound;
|
|
1024
1053
|
}
|
|
1025
1054
|
|
|
1026
|
-
export function
|
|
1027
|
-
|
|
1055
|
+
export function generateMaxPriceToJSON(
|
|
1056
|
+
generateMaxPrice: GenerateMaxPrice,
|
|
1057
|
+
): string {
|
|
1058
|
+
return JSON.stringify(
|
|
1059
|
+
GenerateMaxPrice$outboundSchema.parse(generateMaxPrice),
|
|
1060
|
+
);
|
|
1028
1061
|
}
|
|
1029
1062
|
|
|
1030
|
-
export function
|
|
1063
|
+
export function generateMaxPriceFromJSON(
|
|
1031
1064
|
jsonString: string,
|
|
1032
|
-
): SafeParseResult<
|
|
1065
|
+
): SafeParseResult<GenerateMaxPrice, SDKValidationError> {
|
|
1033
1066
|
return safeParse(
|
|
1034
1067
|
jsonString,
|
|
1035
|
-
(x) =>
|
|
1036
|
-
`Failed to parse '
|
|
1068
|
+
(x) => GenerateMaxPrice$inboundSchema.parse(JSON.parse(x)),
|
|
1069
|
+
`Failed to parse 'GenerateMaxPrice' from JSON`,
|
|
1037
1070
|
);
|
|
1038
1071
|
}
|
|
1039
1072
|
|
|
1040
1073
|
/** @internal */
|
|
1041
|
-
export const
|
|
1042
|
-
|
|
1074
|
+
export const GenerateExperimental$inboundSchema: z.ZodType<
|
|
1075
|
+
GenerateExperimental,
|
|
1043
1076
|
z.ZodTypeDef,
|
|
1044
1077
|
unknown
|
|
1045
1078
|
> = z.object({});
|
|
1046
1079
|
|
|
1047
1080
|
/** @internal */
|
|
1048
|
-
export type
|
|
1081
|
+
export type GenerateExperimental$Outbound = {};
|
|
1049
1082
|
|
|
1050
1083
|
/** @internal */
|
|
1051
|
-
export const
|
|
1052
|
-
|
|
1084
|
+
export const GenerateExperimental$outboundSchema: z.ZodType<
|
|
1085
|
+
GenerateExperimental$Outbound,
|
|
1053
1086
|
z.ZodTypeDef,
|
|
1054
|
-
|
|
1087
|
+
GenerateExperimental
|
|
1055
1088
|
> = z.object({});
|
|
1056
1089
|
|
|
1057
1090
|
/**
|
|
1058
1091
|
* @internal
|
|
1059
1092
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1060
1093
|
*/
|
|
1061
|
-
export namespace
|
|
1062
|
-
/** @deprecated use `
|
|
1063
|
-
export const inboundSchema =
|
|
1064
|
-
/** @deprecated use `
|
|
1065
|
-
export const outboundSchema =
|
|
1066
|
-
/** @deprecated use `
|
|
1067
|
-
export type Outbound =
|
|
1094
|
+
export namespace GenerateExperimental$ {
|
|
1095
|
+
/** @deprecated use `GenerateExperimental$inboundSchema` instead. */
|
|
1096
|
+
export const inboundSchema = GenerateExperimental$inboundSchema;
|
|
1097
|
+
/** @deprecated use `GenerateExperimental$outboundSchema` instead. */
|
|
1098
|
+
export const outboundSchema = GenerateExperimental$outboundSchema;
|
|
1099
|
+
/** @deprecated use `GenerateExperimental$Outbound` instead. */
|
|
1100
|
+
export type Outbound = GenerateExperimental$Outbound;
|
|
1068
1101
|
}
|
|
1069
1102
|
|
|
1070
|
-
export function
|
|
1071
|
-
|
|
1103
|
+
export function generateExperimentalToJSON(
|
|
1104
|
+
generateExperimental: GenerateExperimental,
|
|
1105
|
+
): string {
|
|
1106
|
+
return JSON.stringify(
|
|
1107
|
+
GenerateExperimental$outboundSchema.parse(generateExperimental),
|
|
1108
|
+
);
|
|
1072
1109
|
}
|
|
1073
1110
|
|
|
1074
|
-
export function
|
|
1111
|
+
export function generateExperimentalFromJSON(
|
|
1075
1112
|
jsonString: string,
|
|
1076
|
-
): SafeParseResult<
|
|
1113
|
+
): SafeParseResult<GenerateExperimental, SDKValidationError> {
|
|
1077
1114
|
return safeParse(
|
|
1078
1115
|
jsonString,
|
|
1079
|
-
(x) =>
|
|
1080
|
-
`Failed to parse '
|
|
1116
|
+
(x) => GenerateExperimental$inboundSchema.parse(JSON.parse(x)),
|
|
1117
|
+
`Failed to parse 'GenerateExperimental' from JSON`,
|
|
1081
1118
|
);
|
|
1082
1119
|
}
|
|
1083
1120
|
|
|
@@ -1089,19 +1126,23 @@ export const GenerateProvider$inboundSchema: z.ZodType<
|
|
|
1089
1126
|
> = z.object({
|
|
1090
1127
|
allow_fallbacks: z.nullable(z.boolean()).optional(),
|
|
1091
1128
|
require_parameters: z.nullable(z.boolean()).optional(),
|
|
1092
|
-
data_collection: z.nullable(
|
|
1129
|
+
data_collection: z.nullable(GenerateDataCollection$inboundSchema).optional(),
|
|
1093
1130
|
zdr: z.nullable(z.boolean()).optional(),
|
|
1094
|
-
order: z.nullable(
|
|
1095
|
-
.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1131
|
+
order: z.nullable(
|
|
1132
|
+
z.array(z.union([GenerateOrderEnum$inboundSchema, z.string()])),
|
|
1133
|
+
).optional(),
|
|
1134
|
+
only: z.nullable(
|
|
1135
|
+
z.array(z.union([GenerateOnlyEnum$inboundSchema, z.string()])),
|
|
1136
|
+
).optional(),
|
|
1137
|
+
ignore: z.nullable(
|
|
1138
|
+
z.array(z.union([GenerateIgnoreEnum$inboundSchema, z.string()])),
|
|
1139
|
+
).optional(),
|
|
1100
1140
|
quantizations: z.nullable(z.array(GenerateQuantization$inboundSchema))
|
|
1101
1141
|
.optional(),
|
|
1102
|
-
sort: z.nullable(
|
|
1103
|
-
max_price: z.lazy(() =>
|
|
1104
|
-
experimental: z.nullable(z.lazy(() =>
|
|
1142
|
+
sort: z.nullable(GenerateSort$inboundSchema).optional(),
|
|
1143
|
+
max_price: z.lazy(() => GenerateMaxPrice$inboundSchema).optional(),
|
|
1144
|
+
experimental: z.nullable(z.lazy(() => GenerateExperimental$inboundSchema))
|
|
1145
|
+
.optional(),
|
|
1105
1146
|
}).transform((v) => {
|
|
1106
1147
|
return remap$(v, {
|
|
1107
1148
|
"allow_fallbacks": "allowFallbacks",
|
|
@@ -1122,8 +1163,8 @@ export type GenerateProvider$Outbound = {
|
|
|
1122
1163
|
ignore?: Array<string | string> | null | undefined;
|
|
1123
1164
|
quantizations?: Array<string> | null | undefined;
|
|
1124
1165
|
sort?: string | null | undefined;
|
|
1125
|
-
max_price?:
|
|
1126
|
-
experimental?:
|
|
1166
|
+
max_price?: GenerateMaxPrice$Outbound | undefined;
|
|
1167
|
+
experimental?: GenerateExperimental$Outbound | null | undefined;
|
|
1127
1168
|
};
|
|
1128
1169
|
|
|
1129
1170
|
/** @internal */
|
|
@@ -1134,19 +1175,22 @@ export const GenerateProvider$outboundSchema: z.ZodType<
|
|
|
1134
1175
|
> = z.object({
|
|
1135
1176
|
allowFallbacks: z.nullable(z.boolean()).optional(),
|
|
1136
1177
|
requireParameters: z.nullable(z.boolean()).optional(),
|
|
1137
|
-
dataCollection: z.nullable(
|
|
1178
|
+
dataCollection: z.nullable(GenerateDataCollection$outboundSchema).optional(),
|
|
1138
1179
|
zdr: z.nullable(z.boolean()).optional(),
|
|
1139
|
-
order: z.nullable(
|
|
1140
|
-
.
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1180
|
+
order: z.nullable(
|
|
1181
|
+
z.array(z.union([GenerateOrderEnum$outboundSchema, z.string()])),
|
|
1182
|
+
).optional(),
|
|
1183
|
+
only: z.nullable(
|
|
1184
|
+
z.array(z.union([GenerateOnlyEnum$outboundSchema, z.string()])),
|
|
1185
|
+
).optional(),
|
|
1186
|
+
ignore: z.nullable(
|
|
1187
|
+
z.array(z.union([GenerateIgnoreEnum$outboundSchema, z.string()])),
|
|
1188
|
+
).optional(),
|
|
1145
1189
|
quantizations: z.nullable(z.array(GenerateQuantization$outboundSchema))
|
|
1146
1190
|
.optional(),
|
|
1147
|
-
sort: z.nullable(
|
|
1148
|
-
maxPrice: z.lazy(() =>
|
|
1149
|
-
experimental: z.nullable(z.lazy(() =>
|
|
1191
|
+
sort: z.nullable(GenerateSort$outboundSchema).optional(),
|
|
1192
|
+
maxPrice: z.lazy(() => GenerateMaxPrice$outboundSchema).optional(),
|
|
1193
|
+
experimental: z.nullable(z.lazy(() => GenerateExperimental$outboundSchema))
|
|
1150
1194
|
.optional(),
|
|
1151
1195
|
}).transform((v) => {
|
|
1152
1196
|
return remap$(v, {
|