@openrouter/sdk 1.5.18 → 1.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/funcs/modelsList.d.ts +1 -1
- package/esm/funcs/modelsList.js +2 -2
- package/esm/funcs/modelsListForUser.d.ts +1 -1
- package/esm/funcs/modelsListForUser.js +2 -2
- package/esm/funcs/privateEndpointsUpdate.d.ts +2 -2
- package/esm/funcs/privateEndpointsUpdate.js +2 -2
- package/esm/funcs/privateEndpointsUpdateParameters.d.ts +4 -2
- package/esm/funcs/privateEndpointsUpdateParameters.js +4 -2
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +4 -2
- package/esm/funcs/privateEndpointsUpdatePricing.js +4 -2
- package/esm/funcs/privateProvidersCreate.d.ts +18 -0
- package/esm/funcs/privateProvidersCreate.js +99 -0
- package/esm/funcs/privateProvidersDelete.d.ts +18 -0
- package/esm/funcs/privateProvidersDelete.js +102 -0
- package/esm/funcs/privateProvidersGet.d.ts +18 -0
- package/esm/funcs/privateProvidersGet.js +102 -0
- package/esm/funcs/privateProvidersList.d.ts +18 -0
- package/esm/funcs/privateProvidersList.js +96 -0
- package/esm/funcs/privateProvidersUpdate.d.ts +18 -0
- package/esm/funcs/privateProvidersUpdate.js +105 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/createguardrailrequest.d.ts +5 -0
- package/esm/models/createguardrailrequest.js +2 -0
- package/esm/models/createprivateendpointrequest.d.ts +6 -0
- package/esm/models/createprivateendpointrequest.js +2 -0
- package/esm/models/createprivateproviderrequest.d.ts +36 -0
- package/esm/models/createprivateproviderrequest.js +25 -0
- package/esm/models/guardrail.d.ts +4 -0
- package/esm/models/guardrail.js +2 -0
- package/esm/models/index.d.ts +8 -0
- package/esm/models/index.js +8 -0
- package/esm/models/operations/createprivateprovider.d.ts +67 -0
- package/esm/models/operations/createprivateprovider.js +31 -0
- package/esm/models/operations/deleteprivateprovider.d.ts +75 -0
- package/esm/models/operations/deleteprivateprovider.js +36 -0
- package/esm/models/operations/getprivateprovider.d.ts +67 -0
- package/esm/models/operations/getprivateprovider.js +30 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.js +5 -0
- package/esm/models/operations/listprivateproviders.d.ts +65 -0
- package/esm/models/operations/listprivateproviders.js +29 -0
- package/esm/models/operations/updateprivateprovider.d.ts +69 -0
- package/esm/models/operations/updateprivateprovider.js +32 -0
- package/esm/models/organizationsettings.d.ts +1 -1
- package/esm/models/privateendpoint.d.ts +5 -0
- package/esm/models/privateendpoint.js +2 -0
- package/esm/models/privateendpointquantization.d.ts +28 -0
- package/esm/models/privateendpointquantization.js +27 -0
- package/esm/models/privateendpointreasoningreturnmechanism.d.ts +20 -0
- package/esm/models/privateendpointreasoningreturnmechanism.js +19 -0
- package/esm/models/privateendpointsettings.d.ts +142 -0
- package/esm/models/privateendpointsettings.js +112 -0
- package/esm/models/privateprovider.d.ts +47 -0
- package/esm/models/privateprovider.js +41 -0
- package/esm/models/privateproviderdatapolicy.d.ts +28 -0
- package/esm/models/privateproviderdatapolicy.js +21 -0
- package/esm/models/updateguardrailrequest.d.ts +5 -0
- package/esm/models/updateguardrailrequest.js +2 -0
- package/esm/models/updateorganizationsettingsrequest.d.ts +1 -1
- package/esm/models/updateprivateendpointrequest.d.ts +17 -2
- package/esm/models/updateprivateendpointrequest.js +9 -1
- package/esm/models/updateprivateendpointsettingsrequest.d.ts +177 -0
- package/esm/models/updateprivateendpointsettingsrequest.js +111 -0
- package/esm/models/updateprivateproviderrequest.d.ts +42 -0
- package/esm/models/updateprivateproviderrequest.js +36 -0
- package/esm/sdk/privateendpoints.d.ts +10 -6
- package/esm/sdk/privateendpoints.js +10 -6
- package/esm/sdk/privateproviders.d.ts +40 -0
- package/esm/sdk/privateproviders.js +59 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { PrivateEndpointQuantization } from "./privateendpointquantization.js";
|
|
4
|
+
import { PrivateEndpointReasoningReturnMechanism } from "./privateendpointreasoningreturnmechanism.js";
|
|
5
|
+
export type UpdatePrivateEndpointSettingsRequestCompletions = {
|
|
6
|
+
/**
|
|
7
|
+
* Serves `/chat/completions`; `null` uses the provider default.
|
|
8
|
+
*/
|
|
9
|
+
chat?: boolean | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Serves `/completions`; `null` uses the provider default.
|
|
12
|
+
*/
|
|
13
|
+
text?: boolean | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const UpdatePrivateEndpointSettingsRequestExcludedParameter: {
|
|
16
|
+
readonly Temperature: "temperature";
|
|
17
|
+
readonly TopP: "top_p";
|
|
18
|
+
readonly TopK: "top_k";
|
|
19
|
+
readonly MinP: "min_p";
|
|
20
|
+
readonly TopA: "top_a";
|
|
21
|
+
readonly FrequencyPenalty: "frequency_penalty";
|
|
22
|
+
readonly PresencePenalty: "presence_penalty";
|
|
23
|
+
readonly RepetitionPenalty: "repetition_penalty";
|
|
24
|
+
readonly MaxTokens: "max_tokens";
|
|
25
|
+
readonly MaxCompletionTokens: "max_completion_tokens";
|
|
26
|
+
readonly LogitBias: "logit_bias";
|
|
27
|
+
readonly Logprobs: "logprobs";
|
|
28
|
+
readonly TopLogprobs: "top_logprobs";
|
|
29
|
+
readonly Prediction: "prediction";
|
|
30
|
+
readonly Seed: "seed";
|
|
31
|
+
readonly ResponseFormat: "response_format";
|
|
32
|
+
readonly StructuredOutputs: "structured_outputs";
|
|
33
|
+
readonly Stop: "stop";
|
|
34
|
+
readonly Tools: "tools";
|
|
35
|
+
readonly ToolChoice: "tool_choice";
|
|
36
|
+
readonly ParallelToolCalls: "parallel_tool_calls";
|
|
37
|
+
readonly IncludeReasoning: "include_reasoning";
|
|
38
|
+
readonly Reasoning: "reasoning";
|
|
39
|
+
readonly ReasoningEffort: "reasoning_effort";
|
|
40
|
+
readonly WebSearchOptions: "web_search_options";
|
|
41
|
+
readonly Verbosity: "verbosity";
|
|
42
|
+
};
|
|
43
|
+
export type UpdatePrivateEndpointSettingsRequestExcludedParameter = OpenEnum<typeof UpdatePrivateEndpointSettingsRequestExcludedParameter>;
|
|
44
|
+
export type UpdatePrivateEndpointSettingsRequestInputs = {
|
|
45
|
+
/**
|
|
46
|
+
* Accepts audio input. `null` keeps the provider default.
|
|
47
|
+
*/
|
|
48
|
+
audio?: boolean | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Accepts base64 file data. `null` keeps the provider default.
|
|
51
|
+
*/
|
|
52
|
+
base64Files?: boolean | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Accepts base64 image data. `null` keeps the provider default.
|
|
55
|
+
*/
|
|
56
|
+
base64Images?: boolean | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Accepts file URLs. `null` keeps the provider default.
|
|
59
|
+
*/
|
|
60
|
+
fileUrls?: boolean | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Accepts image URLs. `null` keeps the provider default.
|
|
63
|
+
*/
|
|
64
|
+
imageUrls?: boolean | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type UpdatePrivateEndpointSettingsRequestReasoning = {
|
|
67
|
+
/**
|
|
68
|
+
* Where the upstream puts reasoning tokens in its response: `reasoning` and `reasoning-content` are response fields, `content-string` is inline in the message, `none` returns no reasoning. `null` uses the provider default.
|
|
69
|
+
*/
|
|
70
|
+
returnMechanism?: PrivateEndpointReasoningReturnMechanism | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Whether requests with `reasoning` route to this endpoint.
|
|
73
|
+
*/
|
|
74
|
+
supported?: boolean | undefined;
|
|
75
|
+
};
|
|
76
|
+
export type UpdatePrivateEndpointSettingsRequestToolChoice = {
|
|
77
|
+
/**
|
|
78
|
+
* Accepts `tool_choice: "auto"`.
|
|
79
|
+
*/
|
|
80
|
+
auto?: boolean | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Accepts a named function in `tool_choice`.
|
|
83
|
+
*/
|
|
84
|
+
function?: boolean | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Accepts `tool_choice: "none"`.
|
|
87
|
+
*/
|
|
88
|
+
none?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Accepts `tool_choice: "required"`.
|
|
91
|
+
*/
|
|
92
|
+
required?: boolean | undefined;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Capabilities and limits to set over the ones copied from the public endpoint for this model and provider (or from the model). Omitted fields keep the copied values.
|
|
96
|
+
*/
|
|
97
|
+
export type UpdatePrivateEndpointSettingsRequest = {
|
|
98
|
+
completions?: UpdatePrivateEndpointSettingsRequestCompletions | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Longest prompt plus completion, in tokens, or `null` to keep the model default.
|
|
101
|
+
*/
|
|
102
|
+
contextLength?: number | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Request parameters the upstream rejects even though the model supports them; requests using one do not route here. Cannot name a tested parameter.
|
|
105
|
+
*/
|
|
106
|
+
excludedParameters?: Array<UpdatePrivateEndpointSettingsRequestExcludedParameter> | undefined;
|
|
107
|
+
inputs?: UpdatePrivateEndpointSettingsRequestInputs | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Longest completion the upstream returns, in tokens, or `null` to keep the model default.
|
|
110
|
+
*/
|
|
111
|
+
maxCompletionTokens?: number | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Longest prompt, in tokens, or `null` for no cap below the context length. Cannot exceed `context_length`, or the model context length while `context_length` is `null`.
|
|
114
|
+
*/
|
|
115
|
+
maxPromptTokens?: number | null | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Weight precision the deployment runs at; `unknown` when not stated.
|
|
118
|
+
*/
|
|
119
|
+
quantization?: PrivateEndpointQuantization | undefined;
|
|
120
|
+
reasoning?: UpdatePrivateEndpointSettingsRequestReasoning | undefined;
|
|
121
|
+
toolChoice?: UpdatePrivateEndpointSettingsRequestToolChoice | undefined;
|
|
122
|
+
};
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type UpdatePrivateEndpointSettingsRequestCompletions$Outbound = {
|
|
125
|
+
chat?: boolean | null | undefined;
|
|
126
|
+
text?: boolean | null | undefined;
|
|
127
|
+
};
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestCompletions$Outbound, UpdatePrivateEndpointSettingsRequestCompletions>;
|
|
130
|
+
export declare function updatePrivateEndpointSettingsRequestCompletionsToJSON(updatePrivateEndpointSettingsRequestCompletions: UpdatePrivateEndpointSettingsRequestCompletions): string;
|
|
131
|
+
/** @internal */
|
|
132
|
+
export declare const UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema: z.ZodType<string, UpdatePrivateEndpointSettingsRequestExcludedParameter>;
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type UpdatePrivateEndpointSettingsRequestInputs$Outbound = {
|
|
135
|
+
audio?: boolean | null | undefined;
|
|
136
|
+
base64_files?: boolean | null | undefined;
|
|
137
|
+
base64_images?: boolean | null | undefined;
|
|
138
|
+
file_urls?: boolean | null | undefined;
|
|
139
|
+
image_urls?: boolean | null | undefined;
|
|
140
|
+
};
|
|
141
|
+
/** @internal */
|
|
142
|
+
export declare const UpdatePrivateEndpointSettingsRequestInputs$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestInputs$Outbound, UpdatePrivateEndpointSettingsRequestInputs>;
|
|
143
|
+
export declare function updatePrivateEndpointSettingsRequestInputsToJSON(updatePrivateEndpointSettingsRequestInputs: UpdatePrivateEndpointSettingsRequestInputs): string;
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type UpdatePrivateEndpointSettingsRequestReasoning$Outbound = {
|
|
146
|
+
return_mechanism?: string | null | undefined;
|
|
147
|
+
supported?: boolean | undefined;
|
|
148
|
+
};
|
|
149
|
+
/** @internal */
|
|
150
|
+
export declare const UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestReasoning$Outbound, UpdatePrivateEndpointSettingsRequestReasoning>;
|
|
151
|
+
export declare function updatePrivateEndpointSettingsRequestReasoningToJSON(updatePrivateEndpointSettingsRequestReasoning: UpdatePrivateEndpointSettingsRequestReasoning): string;
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type UpdatePrivateEndpointSettingsRequestToolChoice$Outbound = {
|
|
154
|
+
auto?: boolean | undefined;
|
|
155
|
+
function?: boolean | undefined;
|
|
156
|
+
none?: boolean | undefined;
|
|
157
|
+
required?: boolean | undefined;
|
|
158
|
+
};
|
|
159
|
+
/** @internal */
|
|
160
|
+
export declare const UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequestToolChoice$Outbound, UpdatePrivateEndpointSettingsRequestToolChoice>;
|
|
161
|
+
export declare function updatePrivateEndpointSettingsRequestToolChoiceToJSON(updatePrivateEndpointSettingsRequestToolChoice: UpdatePrivateEndpointSettingsRequestToolChoice): string;
|
|
162
|
+
/** @internal */
|
|
163
|
+
export type UpdatePrivateEndpointSettingsRequest$Outbound = {
|
|
164
|
+
completions?: UpdatePrivateEndpointSettingsRequestCompletions$Outbound | undefined;
|
|
165
|
+
context_length?: number | null | undefined;
|
|
166
|
+
excluded_parameters?: Array<string> | undefined;
|
|
167
|
+
inputs?: UpdatePrivateEndpointSettingsRequestInputs$Outbound | undefined;
|
|
168
|
+
max_completion_tokens?: number | null | undefined;
|
|
169
|
+
max_prompt_tokens?: number | null | undefined;
|
|
170
|
+
quantization?: string | undefined;
|
|
171
|
+
reasoning?: UpdatePrivateEndpointSettingsRequestReasoning$Outbound | undefined;
|
|
172
|
+
tool_choice?: UpdatePrivateEndpointSettingsRequestToolChoice$Outbound | undefined;
|
|
173
|
+
};
|
|
174
|
+
/** @internal */
|
|
175
|
+
export declare const UpdatePrivateEndpointSettingsRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointSettingsRequest$Outbound, UpdatePrivateEndpointSettingsRequest>;
|
|
176
|
+
export declare function updatePrivateEndpointSettingsRequestToJSON(updatePrivateEndpointSettingsRequest: UpdatePrivateEndpointSettingsRequest): string;
|
|
177
|
+
//# sourceMappingURL=updateprivateendpointsettingsrequest.d.ts.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5104217fe6cc
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { PrivateEndpointQuantization$outboundSchema, } from "./privateendpointquantization.js";
|
|
9
|
+
import { PrivateEndpointReasoningReturnMechanism$outboundSchema, } from "./privateendpointreasoningreturnmechanism.js";
|
|
10
|
+
export const UpdatePrivateEndpointSettingsRequestExcludedParameter = {
|
|
11
|
+
Temperature: "temperature",
|
|
12
|
+
TopP: "top_p",
|
|
13
|
+
TopK: "top_k",
|
|
14
|
+
MinP: "min_p",
|
|
15
|
+
TopA: "top_a",
|
|
16
|
+
FrequencyPenalty: "frequency_penalty",
|
|
17
|
+
PresencePenalty: "presence_penalty",
|
|
18
|
+
RepetitionPenalty: "repetition_penalty",
|
|
19
|
+
MaxTokens: "max_tokens",
|
|
20
|
+
MaxCompletionTokens: "max_completion_tokens",
|
|
21
|
+
LogitBias: "logit_bias",
|
|
22
|
+
Logprobs: "logprobs",
|
|
23
|
+
TopLogprobs: "top_logprobs",
|
|
24
|
+
Prediction: "prediction",
|
|
25
|
+
Seed: "seed",
|
|
26
|
+
ResponseFormat: "response_format",
|
|
27
|
+
StructuredOutputs: "structured_outputs",
|
|
28
|
+
Stop: "stop",
|
|
29
|
+
Tools: "tools",
|
|
30
|
+
ToolChoice: "tool_choice",
|
|
31
|
+
ParallelToolCalls: "parallel_tool_calls",
|
|
32
|
+
IncludeReasoning: "include_reasoning",
|
|
33
|
+
Reasoning: "reasoning",
|
|
34
|
+
ReasoningEffort: "reasoning_effort",
|
|
35
|
+
WebSearchOptions: "web_search_options",
|
|
36
|
+
Verbosity: "verbosity",
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema = z.object({
|
|
40
|
+
chat: z.nullable(z.boolean()).optional(),
|
|
41
|
+
text: z.nullable(z.boolean()).optional(),
|
|
42
|
+
});
|
|
43
|
+
export function updatePrivateEndpointSettingsRequestCompletionsToJSON(updatePrivateEndpointSettingsRequestCompletions) {
|
|
44
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema.parse(updatePrivateEndpointSettingsRequestCompletions));
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema = openEnums.outboundSchema(UpdatePrivateEndpointSettingsRequestExcludedParameter);
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const UpdatePrivateEndpointSettingsRequestInputs$outboundSchema = z.object({
|
|
50
|
+
audio: z.nullable(z.boolean()).optional(),
|
|
51
|
+
base64Files: z.nullable(z.boolean()).optional(),
|
|
52
|
+
base64Images: z.nullable(z.boolean()).optional(),
|
|
53
|
+
fileUrls: z.nullable(z.boolean()).optional(),
|
|
54
|
+
imageUrls: z.nullable(z.boolean()).optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
base64Files: "base64_files",
|
|
58
|
+
base64Images: "base64_images",
|
|
59
|
+
fileUrls: "file_urls",
|
|
60
|
+
imageUrls: "image_urls",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
export function updatePrivateEndpointSettingsRequestInputsToJSON(updatePrivateEndpointSettingsRequestInputs) {
|
|
64
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestInputs$outboundSchema.parse(updatePrivateEndpointSettingsRequestInputs));
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema = z.object({
|
|
68
|
+
returnMechanism: z.nullable(PrivateEndpointReasoningReturnMechanism$outboundSchema).optional(),
|
|
69
|
+
supported: z.boolean().optional(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
returnMechanism: "return_mechanism",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
export function updatePrivateEndpointSettingsRequestReasoningToJSON(updatePrivateEndpointSettingsRequestReasoning) {
|
|
76
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema.parse(updatePrivateEndpointSettingsRequestReasoning));
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema = z.object({
|
|
80
|
+
auto: z.boolean().optional(),
|
|
81
|
+
function: z.boolean().optional(),
|
|
82
|
+
none: z.boolean().optional(),
|
|
83
|
+
required: z.boolean().optional(),
|
|
84
|
+
});
|
|
85
|
+
export function updatePrivateEndpointSettingsRequestToolChoiceToJSON(updatePrivateEndpointSettingsRequestToolChoice) {
|
|
86
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema.parse(updatePrivateEndpointSettingsRequestToolChoice));
|
|
87
|
+
}
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const UpdatePrivateEndpointSettingsRequest$outboundSchema = z.object({
|
|
90
|
+
completions: z.lazy(() => UpdatePrivateEndpointSettingsRequestCompletions$outboundSchema).optional(),
|
|
91
|
+
contextLength: z.nullable(z.int()).optional(),
|
|
92
|
+
excludedParameters: z.array(UpdatePrivateEndpointSettingsRequestExcludedParameter$outboundSchema).optional(),
|
|
93
|
+
inputs: z.lazy(() => UpdatePrivateEndpointSettingsRequestInputs$outboundSchema).optional(),
|
|
94
|
+
maxCompletionTokens: z.nullable(z.int()).optional(),
|
|
95
|
+
maxPromptTokens: z.nullable(z.int()).optional(),
|
|
96
|
+
quantization: PrivateEndpointQuantization$outboundSchema.optional(),
|
|
97
|
+
reasoning: z.lazy(() => UpdatePrivateEndpointSettingsRequestReasoning$outboundSchema).optional(),
|
|
98
|
+
toolChoice: z.lazy(() => UpdatePrivateEndpointSettingsRequestToolChoice$outboundSchema).optional(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
contextLength: "context_length",
|
|
102
|
+
excludedParameters: "excluded_parameters",
|
|
103
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
104
|
+
maxPromptTokens: "max_prompt_tokens",
|
|
105
|
+
toolChoice: "tool_choice",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
export function updatePrivateEndpointSettingsRequestToJSON(updatePrivateEndpointSettingsRequest) {
|
|
109
|
+
return JSON.stringify(UpdatePrivateEndpointSettingsRequest$outboundSchema.parse(updatePrivateEndpointSettingsRequest));
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=updateprivateendpointsettingsrequest.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type UpdatePrivateProviderRequestDataPolicy = {
|
|
3
|
+
/**
|
|
4
|
+
* Days prompts are retained. Must be `null` unless `retains_prompts` is true.
|
|
5
|
+
*/
|
|
6
|
+
promptRetentionDays?: number | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the provider retains prompts or completions.
|
|
9
|
+
*/
|
|
10
|
+
retainsPrompts?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the provider trains on prompts.
|
|
13
|
+
*/
|
|
14
|
+
training?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type UpdatePrivateProviderRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.
|
|
19
|
+
*/
|
|
20
|
+
baseUrl?: string | undefined;
|
|
21
|
+
dataPolicy?: UpdatePrivateProviderRequestDataPolicy | undefined;
|
|
22
|
+
displayName?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type UpdatePrivateProviderRequestDataPolicy$Outbound = {
|
|
26
|
+
prompt_retention_days?: number | null | undefined;
|
|
27
|
+
retains_prompts?: boolean | undefined;
|
|
28
|
+
training?: boolean | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const UpdatePrivateProviderRequestDataPolicy$outboundSchema: z.ZodType<UpdatePrivateProviderRequestDataPolicy$Outbound, UpdatePrivateProviderRequestDataPolicy>;
|
|
32
|
+
export declare function updatePrivateProviderRequestDataPolicyToJSON(updatePrivateProviderRequestDataPolicy: UpdatePrivateProviderRequestDataPolicy): string;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type UpdatePrivateProviderRequest$Outbound = {
|
|
35
|
+
base_url?: string | undefined;
|
|
36
|
+
data_policy?: UpdatePrivateProviderRequestDataPolicy$Outbound | undefined;
|
|
37
|
+
display_name?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const UpdatePrivateProviderRequest$outboundSchema: z.ZodType<UpdatePrivateProviderRequest$Outbound, UpdatePrivateProviderRequest>;
|
|
41
|
+
export declare function updatePrivateProviderRequestToJSON(updatePrivateProviderRequest: UpdatePrivateProviderRequest): string;
|
|
42
|
+
//# sourceMappingURL=updateprivateproviderrequest.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 52820b5609e0
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UpdatePrivateProviderRequestDataPolicy$outboundSchema = z.object({
|
|
9
|
+
promptRetentionDays: z.nullable(z.int()).optional(),
|
|
10
|
+
retainsPrompts: z.boolean().optional(),
|
|
11
|
+
training: z.boolean().optional(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
promptRetentionDays: "prompt_retention_days",
|
|
15
|
+
retainsPrompts: "retains_prompts",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function updatePrivateProviderRequestDataPolicyToJSON(updatePrivateProviderRequestDataPolicy) {
|
|
19
|
+
return JSON.stringify(UpdatePrivateProviderRequestDataPolicy$outboundSchema.parse(updatePrivateProviderRequestDataPolicy));
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const UpdatePrivateProviderRequest$outboundSchema = z.object({
|
|
23
|
+
baseUrl: z.string().optional(),
|
|
24
|
+
dataPolicy: z.lazy(() => UpdatePrivateProviderRequestDataPolicy$outboundSchema).optional(),
|
|
25
|
+
displayName: z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
baseUrl: "base_url",
|
|
29
|
+
dataPolicy: "data_policy",
|
|
30
|
+
displayName: "display_name",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function updatePrivateProviderRequestToJSON(updatePrivateProviderRequest) {
|
|
34
|
+
return JSON.stringify(UpdatePrivateProviderRequest$outboundSchema.parse(updatePrivateProviderRequest));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=updateprivateproviderrequest.js.map
|
|
@@ -31,10 +31,10 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
31
31
|
*/
|
|
32
32
|
get(request: operations.GetPrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
33
33
|
/**
|
|
34
|
-
* Update a
|
|
34
|
+
* Update a private endpoint
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* Change any of the endpoint fields you own in one call; only the fields present change, and the response is the whole endpoint. `pricing` and `declared_parameters` replace their stored value, `settings` changes only the fields it names (`null` clears a limit or restores the provider default); routing picks these up for subsequent requests on drafts and active endpoints alike. `upstream_model_id`, `base_url`, `declared_zdr` and `declared_region` re-point a draft: an omitted `upstream_model_id` or `base_url` keeps the stored one, omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes, and any upstream change clears earlier validation. Naming an upstream field on an active endpoint returns 409 `already_active` and writes nothing; delete and re-create instead. Every group is checked before anything is written: 400 `parameters_invalid` when `tool_choice` is declared without `tools` tested or declared, 400 `settings_invalid` when `max_prompt_tokens` exceeds the context length, both completion APIs are off, or `excluded_parameters` names a tested parameter, 422 `pricing_invalid` for rates the provider strategy cannot represent. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
38
38
|
*/
|
|
39
39
|
update(request: operations.UpdatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
40
40
|
/**
|
|
@@ -59,17 +59,21 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
59
59
|
*/
|
|
60
60
|
enable(request: operations.EnablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
|
|
61
61
|
/**
|
|
62
|
-
* Set private endpoint supported parameters
|
|
62
|
+
* Set private endpoint supported parameters (deprecated)
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
|
-
*
|
|
65
|
+
* Deprecated: send `declared_parameters` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the earlier declaration and is read as a set; `tested_parameters` stay. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools` being tested or declared. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
66
68
|
*/
|
|
67
69
|
updateParameters(request: operations.UpdatePrivateEndpointParametersRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
68
70
|
/**
|
|
69
|
-
* Set private endpoint pricing
|
|
71
|
+
* Set private endpoint pricing (deprecated)
|
|
70
72
|
*
|
|
71
73
|
* @remarks
|
|
72
|
-
*
|
|
74
|
+
* Deprecated: send `pricing` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
73
77
|
*/
|
|
74
78
|
updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
75
79
|
/**
|
|
@@ -53,10 +53,10 @@ export class PrivateEndpoints extends ClientSDK {
|
|
|
53
53
|
return unwrapAsync(privateEndpointsGet(this, request, options));
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Update a
|
|
56
|
+
* Update a private endpoint
|
|
57
57
|
*
|
|
58
58
|
* @remarks
|
|
59
|
-
*
|
|
59
|
+
* Change any of the endpoint fields you own in one call; only the fields present change, and the response is the whole endpoint. `pricing` and `declared_parameters` replace their stored value, `settings` changes only the fields it names (`null` clears a limit or restores the provider default); routing picks these up for subsequent requests on drafts and active endpoints alike. `upstream_model_id`, `base_url`, `declared_zdr` and `declared_region` re-point a draft: an omitted `upstream_model_id` or `base_url` keeps the stored one, omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes, and any upstream change clears earlier validation. Naming an upstream field on an active endpoint returns 409 `already_active` and writes nothing; delete and re-create instead. Every group is checked before anything is written: 400 `parameters_invalid` when `tool_choice` is declared without `tools` tested or declared, 400 `settings_invalid` when `max_prompt_tokens` exceeds the context length, both completion APIs are off, or `excluded_parameters` names a tested parameter, 422 `pricing_invalid` for rates the provider strategy cannot represent. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
60
60
|
*/
|
|
61
61
|
async update(request, options) {
|
|
62
62
|
return unwrapAsync(privateEndpointsUpdate(this, request, options));
|
|
@@ -89,19 +89,23 @@ export class PrivateEndpoints extends ClientSDK {
|
|
|
89
89
|
return unwrapAsync(privateEndpointsEnable(this, request, options));
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* Set private endpoint supported parameters
|
|
92
|
+
* Set private endpoint supported parameters (deprecated)
|
|
93
93
|
*
|
|
94
94
|
* @remarks
|
|
95
|
-
*
|
|
95
|
+
* Deprecated: send `declared_parameters` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the earlier declaration and is read as a set; `tested_parameters` stay. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools` being tested or declared. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
96
98
|
*/
|
|
97
99
|
async updateParameters(request, options) {
|
|
98
100
|
return unwrapAsync(privateEndpointsUpdateParameters(this, request, options));
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
|
-
* Set private endpoint pricing
|
|
103
|
+
* Set private endpoint pricing (deprecated)
|
|
102
104
|
*
|
|
103
105
|
* @remarks
|
|
104
|
-
*
|
|
106
|
+
* Deprecated: send `pricing` to `PATCH /private-endpoints/{id}` instead; this route behaves exactly like that call and will be removed. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
107
|
+
*
|
|
108
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
105
109
|
*/
|
|
106
110
|
async updatePricing(request, options) {
|
|
107
111
|
return unwrapAsync(privateEndpointsUpdatePricing(this, request, options));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as operations from "../models/operations/index.js";
|
|
3
|
+
export declare class PrivateProviders extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* List private providers
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* List the organization's private providers. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
9
|
+
*/
|
|
10
|
+
list(request?: operations.ListPrivateProvidersRequest | undefined, options?: RequestOptions): Promise<operations.ListPrivateProvidersResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a private provider
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
*/
|
|
17
|
+
create(request: operations.CreatePrivateProviderRequest, options?: RequestOptions): Promise<operations.CreatePrivateProviderResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a private provider
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Delete a private provider. Refuses (409) while any private endpoint still runs under it. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
23
|
+
*/
|
|
24
|
+
delete(request: operations.DeletePrivateProviderRequest, options?: RequestOptions): Promise<operations.DeletePrivateProviderResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a private provider
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Get one of the organization’s private providers by slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
30
|
+
*/
|
|
31
|
+
get(request: operations.GetPrivateProviderRequest, options?: RequestOptions): Promise<operations.GetPrivateProviderResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Update a private provider
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Update a private provider’s details or declared data policy. The name and slug cannot change. Refuses (409) a data-policy change while OpenRouter pins the declared policy on one of its endpoints. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
37
|
+
*/
|
|
38
|
+
update(request: operations.UpdatePrivateProviderRequest, options?: RequestOptions): Promise<operations.UpdatePrivateProviderResponse>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=privateproviders.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3fb163efa9be
|
|
4
|
+
*/
|
|
5
|
+
import { privateProvidersCreate } from "../funcs/privateProvidersCreate.js";
|
|
6
|
+
import { privateProvidersDelete } from "../funcs/privateProvidersDelete.js";
|
|
7
|
+
import { privateProvidersGet } from "../funcs/privateProvidersGet.js";
|
|
8
|
+
import { privateProvidersList } from "../funcs/privateProvidersList.js";
|
|
9
|
+
import { privateProvidersUpdate } from "../funcs/privateProvidersUpdate.js";
|
|
10
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
export class PrivateProviders extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* List private providers
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* List the organization's private providers. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
18
|
+
*/
|
|
19
|
+
async list(request, options) {
|
|
20
|
+
return unwrapAsync(privateProvidersList(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a private provider
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
|
+
*/
|
|
28
|
+
async create(request, options) {
|
|
29
|
+
return unwrapAsync(privateProvidersCreate(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Delete a private provider
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Delete a private provider. Refuses (409) while any private endpoint still runs under it. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
36
|
+
*/
|
|
37
|
+
async delete(request, options) {
|
|
38
|
+
return unwrapAsync(privateProvidersDelete(this, request, options));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get a private provider
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Get one of the organization’s private providers by slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
45
|
+
*/
|
|
46
|
+
async get(request, options) {
|
|
47
|
+
return unwrapAsync(privateProvidersGet(this, request, options));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Update a private provider
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Update a private provider’s details or declared data policy. The name and slug cannot change. Refuses (409) a data-policy change while OpenRouter pins the declared policy on one of its endpoints. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
54
|
+
*/
|
|
55
|
+
async update(request, options) {
|
|
56
|
+
return unwrapAsync(privateProvidersUpdate(this, request, options));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=privateproviders.js.map
|
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { Observability } from "./observability.js";
|
|
|
25
25
|
import { Organization } from "./organization.js";
|
|
26
26
|
import { Presets } from "./presets.js";
|
|
27
27
|
import { PrivateEndpoints } from "./privateendpoints.js";
|
|
28
|
+
import { PrivateProviders } from "./privateproviders.js";
|
|
28
29
|
import { Providers } from "./providers.js";
|
|
29
30
|
import { Rerank } from "./rerank.js";
|
|
30
31
|
import { Responses } from "./responses.js";
|
|
@@ -97,6 +98,8 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
97
98
|
get presets(): Presets;
|
|
98
99
|
private _privateEndpoints?;
|
|
99
100
|
get privateEndpoints(): PrivateEndpoints;
|
|
101
|
+
private _privateProviders?;
|
|
102
|
+
get privateProviders(): PrivateProviders;
|
|
100
103
|
private _providers?;
|
|
101
104
|
get providers(): Providers;
|
|
102
105
|
private _rerank?;
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -29,6 +29,7 @@ import { Observability } from "./observability.js";
|
|
|
29
29
|
import { Organization } from "./organization.js";
|
|
30
30
|
import { Presets } from "./presets.js";
|
|
31
31
|
import { PrivateEndpoints } from "./privateendpoints.js";
|
|
32
|
+
import { PrivateProviders } from "./privateproviders.js";
|
|
32
33
|
import { Providers } from "./providers.js";
|
|
33
34
|
import { Rerank } from "./rerank.js";
|
|
34
35
|
import { Responses } from "./responses.js";
|
|
@@ -126,6 +127,9 @@ export class OpenRouter extends ClientSDK {
|
|
|
126
127
|
get privateEndpoints() {
|
|
127
128
|
return (this._privateEndpoints ?? (this._privateEndpoints = new PrivateEndpoints(this._options)));
|
|
128
129
|
}
|
|
130
|
+
get privateProviders() {
|
|
131
|
+
return (this._privateProviders ?? (this._privateProviders = new PrivateProviders(this._options)));
|
|
132
|
+
}
|
|
129
133
|
get providers() {
|
|
130
134
|
return (this._providers ?? (this._providers = new Providers(this._options)));
|
|
131
135
|
}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.20",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
+
"test": "vitest --run --project unit",
|
|
76
78
|
"test:e2e": "vitest --run --project e2e",
|
|
77
79
|
"test:watch": "vitest --watch --project unit",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
80
|
"typecheck:transit": "exit 0",
|
|
80
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
81
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
82
81
|
"prepare": "npm run build",
|
|
83
|
-
"test": "
|
|
84
|
-
"
|
|
82
|
+
"test:transit": "exit 0",
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"compile": "tsc && node scripts/unbarrel-imports.js"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|