@openrouter/sdk 0.4.0 → 0.8.0
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 -1
- package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +4 -2
- package/esm/funcs/apiKeysCreate.d.ts +1 -1
- package/esm/funcs/apiKeysCreate.js +5 -3
- package/esm/funcs/apiKeysDelete.d.ts +1 -1
- package/esm/funcs/apiKeysDelete.js +3 -1
- package/esm/funcs/apiKeysGet.d.ts +1 -1
- package/esm/funcs/apiKeysGet.js +3 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +14 -3
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +4 -2
- package/esm/funcs/apiKeysUpdate.d.ts +1 -1
- package/esm/funcs/apiKeysUpdate.js +3 -1
- package/esm/funcs/betaResponsesSend.d.ts +9 -5
- package/esm/funcs/betaResponsesSend.js +10 -5
- package/esm/funcs/chatSend.d.ts +9 -5
- package/esm/funcs/chatSend.js +10 -5
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -2
- package/esm/funcs/creditsCreateCoinbaseCharge.js +7 -4
- package/esm/funcs/creditsGetCredits.d.ts +2 -2
- package/esm/funcs/creditsGetCredits.js +15 -4
- package/esm/funcs/embeddingsGenerate.js +4 -2
- package/esm/funcs/embeddingsListModels.d.ts +2 -1
- package/esm/funcs/embeddingsListModels.js +15 -3
- package/esm/funcs/endpointsList.js +2 -0
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +1 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +14 -3
- package/esm/funcs/generationsGetGeneration.js +3 -1
- package/esm/funcs/guardrailsBulkAssignKeys.d.ts +1 -1
- package/esm/funcs/guardrailsBulkAssignKeys.js +3 -1
- package/esm/funcs/guardrailsBulkAssignMembers.d.ts +1 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +3 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.d.ts +1 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +3 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.d.ts +1 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +3 -1
- package/esm/funcs/guardrailsCreate.d.ts +1 -1
- package/esm/funcs/guardrailsCreate.js +5 -3
- package/esm/funcs/guardrailsDelete.d.ts +1 -1
- package/esm/funcs/guardrailsDelete.js +3 -1
- package/esm/funcs/guardrailsGet.d.ts +1 -1
- package/esm/funcs/guardrailsGet.js +3 -1
- package/esm/funcs/guardrailsList.d.ts +1 -1
- package/esm/funcs/guardrailsList.js +4 -2
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +3 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +3 -1
- package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +4 -2
- package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +4 -2
- package/esm/funcs/guardrailsUpdate.d.ts +1 -1
- package/esm/funcs/guardrailsUpdate.js +3 -1
- package/esm/funcs/modelsCount.d.ts +2 -1
- package/esm/funcs/modelsCount.js +15 -3
- package/esm/funcs/modelsList.js +3 -1
- package/esm/funcs/modelsListForUser.d.ts +1 -1
- package/esm/funcs/modelsListForUser.js +15 -3
- package/esm/funcs/oAuthCreateAuthCode.js +4 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +4 -2
- package/esm/funcs/providersList.d.ts +1 -1
- package/esm/funcs/providersList.js +14 -3
- package/esm/lib/config.d.ts +8 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/model-result.d.ts +7 -8
- package/esm/lib/model-result.js +155 -44
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.js +28 -8
- package/esm/lib/stream-transformers.js +7 -7
- package/esm/lib/stream-type-guards.d.ts +1 -1
- package/esm/lib/stream-type-guards.js +1 -1
- package/esm/lib/tool-executor.js +11 -14
- package/esm/lib/tool-orchestrator.js +2 -2
- package/esm/lib/tool-types.d.ts +1 -1
- package/esm/models/assistantmessage.d.ts +3 -3
- package/esm/models/assistantmessage.js +3 -3
- package/esm/models/chatgenerationparams.d.ts +43 -234
- package/esm/models/chatgenerationparams.js +32 -159
- package/esm/models/chatstreamingmessagechunk.d.ts +2 -2
- package/esm/models/chatstreamingmessagechunk.js +2 -2
- package/esm/models/developermessage.d.ts +23 -0
- package/esm/models/developermessage.js +24 -0
- package/esm/models/index.d.ts +6 -2
- package/esm/models/index.js +6 -2
- package/esm/models/message.d.ts +3 -23
- package/esm/models/message.js +2 -19
- package/esm/models/openresponsesrequest.d.ts +33 -45
- package/esm/models/openresponsesrequest.js +36 -36
- package/esm/models/operations/bulkassignkeystoguardrail.d.ts +30 -0
- package/esm/models/operations/bulkassignkeystoguardrail.js +4 -0
- package/esm/models/operations/bulkassignmemberstoguardrail.d.ts +30 -0
- package/esm/models/operations/bulkassignmemberstoguardrail.js +4 -0
- package/esm/models/operations/bulkunassignkeysfromguardrail.d.ts +30 -0
- package/esm/models/operations/bulkunassignkeysfromguardrail.js +4 -0
- package/esm/models/operations/bulkunassignmembersfromguardrail.d.ts +30 -0
- package/esm/models/operations/bulkunassignmembersfromguardrail.js +4 -0
- package/esm/models/operations/createauthkeyscode.d.ts +42 -2
- package/esm/models/operations/createauthkeyscode.js +16 -1
- package/esm/models/operations/createcoinbasecharge.d.ts +41 -0
- package/esm/models/operations/createcoinbasecharge.js +16 -0
- package/esm/models/operations/createembeddings.d.ts +42 -2
- package/esm/models/operations/createembeddings.js +16 -1
- package/esm/models/operations/createguardrail.d.ts +42 -2
- package/esm/models/operations/createguardrail.js +16 -1
- package/esm/models/operations/createkeys.d.ts +42 -2
- package/esm/models/operations/createkeys.js +16 -1
- package/esm/models/operations/createresponses.d.ts +40 -0
- package/esm/models/operations/createresponses.js +16 -0
- package/esm/models/operations/deleteguardrail.d.ts +30 -0
- package/esm/models/operations/deleteguardrail.js +8 -0
- package/esm/models/operations/deletekeys.d.ts +30 -0
- package/esm/models/operations/deletekeys.js +8 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +42 -2
- package/esm/models/operations/exchangeauthcodeforapikey.js +16 -1
- package/esm/models/operations/getcredits.d.ts +38 -0
- package/esm/models/operations/getcredits.js +13 -0
- package/esm/models/operations/getcurrentkey.d.ts +45 -1
- package/esm/models/operations/getcurrentkey.js +15 -0
- package/esm/models/operations/getgeneration.d.ts +151 -0
- package/esm/models/operations/getgeneration.js +133 -0
- package/esm/models/operations/getguardrail.d.ts +30 -0
- package/esm/models/operations/getguardrail.js +7 -0
- package/esm/models/operations/getkey.d.ts +30 -0
- package/esm/models/operations/getkey.js +7 -0
- package/esm/models/operations/getmodels.d.ts +30 -0
- package/esm/models/operations/getmodels.js +4 -0
- package/esm/models/operations/getuseractivity.d.ts +30 -0
- package/esm/models/operations/getuseractivity.js +8 -0
- package/esm/models/operations/index.d.ts +2 -0
- package/esm/models/operations/index.js +2 -0
- package/esm/models/operations/list.d.ts +30 -0
- package/esm/models/operations/list.js +4 -0
- package/esm/models/operations/listembeddingsmodels.d.ts +40 -0
- package/esm/models/operations/listembeddingsmodels.js +20 -0
- package/esm/models/operations/listendpoints.d.ts +30 -0
- package/esm/models/operations/listendpoints.js +8 -0
- package/esm/models/operations/listendpointszdr.d.ts +38 -0
- package/esm/models/operations/listendpointszdr.js +14 -0
- package/esm/models/operations/listguardrailkeyassignments.d.ts +30 -0
- package/esm/models/operations/listguardrailkeyassignments.js +7 -0
- package/esm/models/operations/listguardrailmemberassignments.d.ts +30 -0
- package/esm/models/operations/listguardrailmemberassignments.js +7 -0
- package/esm/models/operations/listguardrails.d.ts +30 -0
- package/esm/models/operations/listguardrails.js +7 -0
- package/esm/models/operations/listkeyassignments.d.ts +30 -0
- package/esm/models/operations/listkeyassignments.js +7 -0
- package/esm/models/operations/listmemberassignments.d.ts +30 -0
- package/esm/models/operations/listmemberassignments.js +7 -0
- package/esm/models/operations/listmodelscount.d.ts +40 -0
- package/esm/models/operations/listmodelscount.js +20 -0
- package/esm/models/operations/listmodelsuser.d.ts +38 -0
- package/esm/models/operations/listmodelsuser.js +14 -0
- package/esm/models/operations/listproviders.d.ts +38 -0
- package/esm/models/operations/listproviders.js +13 -0
- package/esm/models/operations/sendchatcompletionrequest.d.ts +43 -0
- package/esm/models/operations/sendchatcompletionrequest.js +16 -0
- package/esm/models/operations/updateguardrail.d.ts +30 -0
- package/esm/models/operations/updateguardrail.js +4 -0
- package/esm/models/operations/updatekeys.d.ts +30 -0
- package/esm/models/operations/updatekeys.js +4 -0
- package/esm/models/providername.d.ts +2 -0
- package/esm/models/providername.js +2 -0
- package/esm/models/providerpreferences.d.ts +1 -13
- package/esm/models/publicendpoint.d.ts +0 -39
- package/esm/models/publicpricing.d.ts +0 -39
- package/esm/models/schema10.d.ts +33 -0
- package/esm/models/schema10.js +30 -0
- package/esm/models/schema14.d.ts +8 -0
- package/esm/models/schema14.js +12 -0
- package/esm/models/schema17.d.ts +102 -0
- package/esm/models/schema17.js +95 -0
- package/esm/models/schema19.d.ts +92 -0
- package/esm/models/schema19.js +109 -0
- package/esm/models/{schema0.d.ts → schema5.d.ts} +10 -8
- package/esm/models/{schema0.js → schema5.js} +10 -8
- package/esm/sdk/analytics.d.ts +1 -1
- package/esm/sdk/analytics.js +1 -1
- package/esm/sdk/apikeys.d.ts +6 -6
- package/esm/sdk/apikeys.js +7 -7
- package/esm/sdk/chat.d.ts +9 -5
- package/esm/sdk/credits.d.ts +3 -4
- package/esm/sdk/credits.js +3 -3
- package/esm/sdk/embeddings.d.ts +1 -1
- package/esm/sdk/embeddings.js +2 -2
- package/esm/sdk/endpoints.d.ts +1 -1
- package/esm/sdk/endpoints.js +2 -2
- package/esm/sdk/guardrails.d.ts +13 -13
- package/esm/sdk/guardrails.js +13 -13
- package/esm/sdk/models.d.ts +2 -2
- package/esm/sdk/models.js +4 -4
- package/esm/sdk/providers.d.ts +1 -1
- package/esm/sdk/providers.js +2 -2
- package/esm/sdk/responses.d.ts +9 -5
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/esm/models/schema2.d.ts +0 -92
- package/esm/models/schema2.js +0 -109
|
@@ -2,6 +2,36 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import * as models from "../index.js";
|
|
5
|
+
export type ListEndpointsZdrGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
xTitle?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type ListEndpointsZdrRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* This is used to track API usage per application.
|
|
26
|
+
*/
|
|
27
|
+
httpReferer?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
*/
|
|
33
|
+
xTitle?: string | undefined;
|
|
34
|
+
};
|
|
5
35
|
/**
|
|
6
36
|
* Returns a list of endpoints
|
|
7
37
|
*/
|
|
@@ -9,6 +39,14 @@ export type ListEndpointsZdrResponse = {
|
|
|
9
39
|
data: Array<models.PublicEndpoint>;
|
|
10
40
|
};
|
|
11
41
|
/** @internal */
|
|
42
|
+
export type ListEndpointsZdrRequest$Outbound = {
|
|
43
|
+
"HTTP-Referer"?: string | undefined;
|
|
44
|
+
"X-Title"?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const ListEndpointsZdrRequest$outboundSchema: z.ZodType<ListEndpointsZdrRequest$Outbound, ListEndpointsZdrRequest>;
|
|
48
|
+
export declare function listEndpointsZdrRequestToJSON(listEndpointsZdrRequest: ListEndpointsZdrRequest): string;
|
|
49
|
+
/** @internal */
|
|
12
50
|
export declare const ListEndpointsZdrResponse$inboundSchema: z.ZodType<ListEndpointsZdrResponse, unknown>;
|
|
13
51
|
export declare function listEndpointsZdrResponseFromJSON(jsonString: string): SafeParseResult<ListEndpointsZdrResponse, SDKValidationError>;
|
|
14
52
|
//# sourceMappingURL=listendpointszdr.d.ts.map
|
|
@@ -3,9 +3,23 @@
|
|
|
3
3
|
* @generated-id: d52e6aeefb5e
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import * as models from "../index.js";
|
|
8
9
|
/** @internal */
|
|
10
|
+
export const ListEndpointsZdrRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
xTitle: z.string().optional(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
xTitle: "X-Title",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function listEndpointsZdrRequestToJSON(listEndpointsZdrRequest) {
|
|
20
|
+
return JSON.stringify(ListEndpointsZdrRequest$outboundSchema.parse(listEndpointsZdrRequest));
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
9
23
|
export const ListEndpointsZdrResponse$inboundSchema = z.object({
|
|
10
24
|
data: z.array(models.PublicEndpoint$inboundSchema),
|
|
11
25
|
});
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ListGuardrailKeyAssignmentsGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
xTitle?: string | undefined;
|
|
18
|
+
};
|
|
4
19
|
export type ListGuardrailKeyAssignmentsRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* This is used to track API usage per application.
|
|
25
|
+
*/
|
|
26
|
+
httpReferer?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*/
|
|
32
|
+
xTitle?: string | undefined;
|
|
5
33
|
/**
|
|
6
34
|
* The unique identifier of the guardrail
|
|
7
35
|
*/
|
|
@@ -60,6 +88,8 @@ export type ListGuardrailKeyAssignmentsResponse = {
|
|
|
60
88
|
};
|
|
61
89
|
/** @internal */
|
|
62
90
|
export type ListGuardrailKeyAssignmentsRequest$Outbound = {
|
|
91
|
+
"HTTP-Referer"?: string | undefined;
|
|
92
|
+
"X-Title"?: string | undefined;
|
|
63
93
|
id: string;
|
|
64
94
|
offset?: string | undefined;
|
|
65
95
|
limit?: string | undefined;
|
|
@@ -7,9 +7,16 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const ListGuardrailKeyAssignmentsRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
xTitle: z.string().optional(),
|
|
10
12
|
id: z.string(),
|
|
11
13
|
offset: z.string().optional(),
|
|
12
14
|
limit: z.string().optional(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
xTitle: "X-Title",
|
|
19
|
+
});
|
|
13
20
|
});
|
|
14
21
|
export function listGuardrailKeyAssignmentsRequestToJSON(listGuardrailKeyAssignmentsRequest) {
|
|
15
22
|
return JSON.stringify(ListGuardrailKeyAssignmentsRequest$outboundSchema.parse(listGuardrailKeyAssignmentsRequest));
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ListGuardrailMemberAssignmentsGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
xTitle?: string | undefined;
|
|
18
|
+
};
|
|
4
19
|
export type ListGuardrailMemberAssignmentsRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* This is used to track API usage per application.
|
|
25
|
+
*/
|
|
26
|
+
httpReferer?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*/
|
|
32
|
+
xTitle?: string | undefined;
|
|
5
33
|
/**
|
|
6
34
|
* The unique identifier of the guardrail
|
|
7
35
|
*/
|
|
@@ -56,6 +84,8 @@ export type ListGuardrailMemberAssignmentsResponse = {
|
|
|
56
84
|
};
|
|
57
85
|
/** @internal */
|
|
58
86
|
export type ListGuardrailMemberAssignmentsRequest$Outbound = {
|
|
87
|
+
"HTTP-Referer"?: string | undefined;
|
|
88
|
+
"X-Title"?: string | undefined;
|
|
59
89
|
id: string;
|
|
60
90
|
offset?: string | undefined;
|
|
61
91
|
limit?: string | undefined;
|
|
@@ -7,9 +7,16 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const ListGuardrailMemberAssignmentsRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
xTitle: z.string().optional(),
|
|
10
12
|
id: z.string(),
|
|
11
13
|
offset: z.string().optional(),
|
|
12
14
|
limit: z.string().optional(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
xTitle: "X-Title",
|
|
19
|
+
});
|
|
13
20
|
});
|
|
14
21
|
export function listGuardrailMemberAssignmentsRequestToJSON(listGuardrailMemberAssignmentsRequest) {
|
|
15
22
|
return JSON.stringify(ListGuardrailMemberAssignmentsRequest$outboundSchema.parse(listGuardrailMemberAssignmentsRequest));
|
|
@@ -2,7 +2,35 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type ListGuardrailsGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
xTitle?: string | undefined;
|
|
19
|
+
};
|
|
5
20
|
export type ListGuardrailsRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* This is used to track API usage per application.
|
|
26
|
+
*/
|
|
27
|
+
httpReferer?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
*/
|
|
33
|
+
xTitle?: string | undefined;
|
|
6
34
|
/**
|
|
7
35
|
* Number of records to skip for pagination
|
|
8
36
|
*/
|
|
@@ -81,6 +109,8 @@ export type ListGuardrailsResponse = {
|
|
|
81
109
|
};
|
|
82
110
|
/** @internal */
|
|
83
111
|
export type ListGuardrailsRequest$Outbound = {
|
|
112
|
+
"HTTP-Referer"?: string | undefined;
|
|
113
|
+
"X-Title"?: string | undefined;
|
|
84
114
|
offset?: string | undefined;
|
|
85
115
|
limit?: string | undefined;
|
|
86
116
|
};
|
|
@@ -16,8 +16,15 @@ export const ListGuardrailsResetInterval = {
|
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const ListGuardrailsRequest$outboundSchema = z.object({
|
|
19
|
+
httpReferer: z.string().optional(),
|
|
20
|
+
xTitle: z.string().optional(),
|
|
19
21
|
offset: z.string().optional(),
|
|
20
22
|
limit: z.string().optional(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
httpReferer: "HTTP-Referer",
|
|
26
|
+
xTitle: "X-Title",
|
|
27
|
+
});
|
|
21
28
|
});
|
|
22
29
|
export function listGuardrailsRequestToJSON(listGuardrailsRequest) {
|
|
23
30
|
return JSON.stringify(ListGuardrailsRequest$outboundSchema.parse(listGuardrailsRequest));
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ListKeyAssignmentsGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
xTitle?: string | undefined;
|
|
18
|
+
};
|
|
4
19
|
export type ListKeyAssignmentsRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* This is used to track API usage per application.
|
|
25
|
+
*/
|
|
26
|
+
httpReferer?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*/
|
|
32
|
+
xTitle?: string | undefined;
|
|
5
33
|
/**
|
|
6
34
|
* Number of records to skip for pagination
|
|
7
35
|
*/
|
|
@@ -56,6 +84,8 @@ export type ListKeyAssignmentsResponse = {
|
|
|
56
84
|
};
|
|
57
85
|
/** @internal */
|
|
58
86
|
export type ListKeyAssignmentsRequest$Outbound = {
|
|
87
|
+
"HTTP-Referer"?: string | undefined;
|
|
88
|
+
"X-Title"?: string | undefined;
|
|
59
89
|
offset?: string | undefined;
|
|
60
90
|
limit?: string | undefined;
|
|
61
91
|
};
|
|
@@ -7,8 +7,15 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const ListKeyAssignmentsRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
xTitle: z.string().optional(),
|
|
10
12
|
offset: z.string().optional(),
|
|
11
13
|
limit: z.string().optional(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
xTitle: "X-Title",
|
|
18
|
+
});
|
|
12
19
|
});
|
|
13
20
|
export function listKeyAssignmentsRequestToJSON(listKeyAssignmentsRequest) {
|
|
14
21
|
return JSON.stringify(ListKeyAssignmentsRequest$outboundSchema.parse(listKeyAssignmentsRequest));
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ListMemberAssignmentsGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
xTitle?: string | undefined;
|
|
18
|
+
};
|
|
4
19
|
export type ListMemberAssignmentsRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* This is used to track API usage per application.
|
|
25
|
+
*/
|
|
26
|
+
httpReferer?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*/
|
|
32
|
+
xTitle?: string | undefined;
|
|
5
33
|
/**
|
|
6
34
|
* Number of records to skip for pagination
|
|
7
35
|
*/
|
|
@@ -52,6 +80,8 @@ export type ListMemberAssignmentsResponse = {
|
|
|
52
80
|
};
|
|
53
81
|
/** @internal */
|
|
54
82
|
export type ListMemberAssignmentsRequest$Outbound = {
|
|
83
|
+
"HTTP-Referer"?: string | undefined;
|
|
84
|
+
"X-Title"?: string | undefined;
|
|
55
85
|
offset?: string | undefined;
|
|
56
86
|
limit?: string | undefined;
|
|
57
87
|
};
|
|
@@ -7,8 +7,15 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const ListMemberAssignmentsRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
xTitle: z.string().optional(),
|
|
10
12
|
offset: z.string().optional(),
|
|
11
13
|
limit: z.string().optional(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
xTitle: "X-Title",
|
|
18
|
+
});
|
|
12
19
|
});
|
|
13
20
|
export function listMemberAssignmentsRequestToJSON(listMemberAssignmentsRequest) {
|
|
14
21
|
return JSON.stringify(ListMemberAssignmentsRequest$outboundSchema.parse(listMemberAssignmentsRequest));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type ListModelsCountGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
xTitle?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type ListModelsCountRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This is used to track API usage per application.
|
|
23
|
+
*/
|
|
24
|
+
httpReferer?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*/
|
|
30
|
+
xTitle?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type ListModelsCountRequest$Outbound = {
|
|
34
|
+
"HTTP-Referer"?: string | undefined;
|
|
35
|
+
"X-Title"?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const ListModelsCountRequest$outboundSchema: z.ZodType<ListModelsCountRequest$Outbound, ListModelsCountRequest>;
|
|
39
|
+
export declare function listModelsCountRequestToJSON(listModelsCountRequest: ListModelsCountRequest): string;
|
|
40
|
+
//# sourceMappingURL=listmodelscount.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8def1e8eb7b5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ListModelsCountRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
xTitle: z.string().optional(),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return remap$(v, {
|
|
13
|
+
httpReferer: "HTTP-Referer",
|
|
14
|
+
xTitle: "X-Title",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
export function listModelsCountRequestToJSON(listModelsCountRequest) {
|
|
18
|
+
return JSON.stringify(ListModelsCountRequest$outboundSchema.parse(listModelsCountRequest));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=listmodelscount.js.map
|
|
@@ -1,7 +1,37 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
export type ListModelsUserGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
xTitle?: string | undefined;
|
|
16
|
+
};
|
|
2
17
|
export type ListModelsUserSecurity = {
|
|
3
18
|
bearer: string;
|
|
4
19
|
};
|
|
20
|
+
export type ListModelsUserRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* This is used to track API usage per application.
|
|
26
|
+
*/
|
|
27
|
+
httpReferer?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
*/
|
|
33
|
+
xTitle?: string | undefined;
|
|
34
|
+
};
|
|
5
35
|
/** @internal */
|
|
6
36
|
export type ListModelsUserSecurity$Outbound = {
|
|
7
37
|
bearer: string;
|
|
@@ -9,4 +39,12 @@ export type ListModelsUserSecurity$Outbound = {
|
|
|
9
39
|
/** @internal */
|
|
10
40
|
export declare const ListModelsUserSecurity$outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound, ListModelsUserSecurity>;
|
|
11
41
|
export declare function listModelsUserSecurityToJSON(listModelsUserSecurity: ListModelsUserSecurity): string;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type ListModelsUserRequest$Outbound = {
|
|
44
|
+
"HTTP-Referer"?: string | undefined;
|
|
45
|
+
"X-Title"?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const ListModelsUserRequest$outboundSchema: z.ZodType<ListModelsUserRequest$Outbound, ListModelsUserRequest>;
|
|
49
|
+
export declare function listModelsUserRequestToJSON(listModelsUserRequest: ListModelsUserRequest): string;
|
|
12
50
|
//# sourceMappingURL=listmodelsuser.d.ts.map
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @generated-id: 0846aac6be02
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const ListModelsUserSecurity$outboundSchema = z.object({
|
|
8
9
|
bearer: z.string(),
|
|
@@ -10,4 +11,17 @@ export const ListModelsUserSecurity$outboundSchema = z.object({
|
|
|
10
11
|
export function listModelsUserSecurityToJSON(listModelsUserSecurity) {
|
|
11
12
|
return JSON.stringify(ListModelsUserSecurity$outboundSchema.parse(listModelsUserSecurity));
|
|
12
13
|
}
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const ListModelsUserRequest$outboundSchema = z.object({
|
|
16
|
+
httpReferer: z.string().optional(),
|
|
17
|
+
xTitle: z.string().optional(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
httpReferer: "HTTP-Referer",
|
|
21
|
+
xTitle: "X-Title",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function listModelsUserRequestToJSON(listModelsUserRequest) {
|
|
25
|
+
return JSON.stringify(ListModelsUserRequest$outboundSchema.parse(listModelsUserRequest));
|
|
26
|
+
}
|
|
13
27
|
//# sourceMappingURL=listmodelsuser.js.map
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ListProvidersGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
xTitle?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
export type ListProvidersRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* This is used to track API usage per application.
|
|
25
|
+
*/
|
|
26
|
+
httpReferer?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*/
|
|
32
|
+
xTitle?: string | undefined;
|
|
33
|
+
};
|
|
4
34
|
export type ListProvidersData = {
|
|
5
35
|
/**
|
|
6
36
|
* Display name of the provider
|
|
@@ -30,6 +60,14 @@ export type ListProvidersResponse = {
|
|
|
30
60
|
data: Array<ListProvidersData>;
|
|
31
61
|
};
|
|
32
62
|
/** @internal */
|
|
63
|
+
export type ListProvidersRequest$Outbound = {
|
|
64
|
+
"HTTP-Referer"?: string | undefined;
|
|
65
|
+
"X-Title"?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const ListProvidersRequest$outboundSchema: z.ZodType<ListProvidersRequest$Outbound, ListProvidersRequest>;
|
|
69
|
+
export declare function listProvidersRequestToJSON(listProvidersRequest: ListProvidersRequest): string;
|
|
70
|
+
/** @internal */
|
|
33
71
|
export declare const ListProvidersData$inboundSchema: z.ZodType<ListProvidersData, unknown>;
|
|
34
72
|
export declare function listProvidersDataFromJSON(jsonString: string): SafeParseResult<ListProvidersData, SDKValidationError>;
|
|
35
73
|
/** @internal */
|
|
@@ -6,6 +6,19 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
|
+
export const ListProvidersRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
xTitle: z.string().optional(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
httpReferer: "HTTP-Referer",
|
|
15
|
+
xTitle: "X-Title",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listProvidersRequestToJSON(listProvidersRequest) {
|
|
19
|
+
return JSON.stringify(ListProvidersRequest$outboundSchema.parse(listProvidersRequest));
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
9
22
|
export const ListProvidersData$inboundSchema = z.object({
|
|
10
23
|
name: z.string(),
|
|
11
24
|
slug: z.string(),
|
|
@@ -3,8 +3,51 @@ import { EventStream } from "../../lib/event-streams.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import * as models from "../index.js";
|
|
6
|
+
export type SendChatCompletionRequestGlobals = {
|
|
7
|
+
/**
|
|
8
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This is used to track API usage per application.
|
|
12
|
+
*/
|
|
13
|
+
httpReferer?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*/
|
|
19
|
+
xTitle?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type SendChatCompletionRequestRequest = {
|
|
22
|
+
/**
|
|
23
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This is used to track API usage per application.
|
|
27
|
+
*/
|
|
28
|
+
httpReferer?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
*/
|
|
34
|
+
xTitle?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Chat completion request parameters
|
|
37
|
+
*/
|
|
38
|
+
chatGenerationParams: models.ChatGenerationParams;
|
|
39
|
+
};
|
|
6
40
|
export type SendChatCompletionRequestResponse = models.ChatResponse | EventStream<models.ChatStreamingResponseChunkData>;
|
|
7
41
|
/** @internal */
|
|
42
|
+
export type SendChatCompletionRequestRequest$Outbound = {
|
|
43
|
+
"HTTP-Referer"?: string | undefined;
|
|
44
|
+
"X-Title"?: string | undefined;
|
|
45
|
+
ChatGenerationParams: models.ChatGenerationParams$Outbound;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const SendChatCompletionRequestRequest$outboundSchema: z.ZodType<SendChatCompletionRequestRequest$Outbound, SendChatCompletionRequestRequest>;
|
|
49
|
+
export declare function sendChatCompletionRequestRequestToJSON(sendChatCompletionRequestRequest: SendChatCompletionRequestRequest): string;
|
|
50
|
+
/** @internal */
|
|
8
51
|
export declare const SendChatCompletionRequestResponse$inboundSchema: z.ZodType<SendChatCompletionRequestResponse, unknown>;
|
|
9
52
|
export declare function sendChatCompletionRequestResponseFromJSON(jsonString: string): SafeParseResult<SendChatCompletionRequestResponse, SDKValidationError>;
|
|
10
53
|
//# sourceMappingURL=sendchatcompletionrequest.d.ts.map
|