@game-infra/ai-schemas 0.3.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/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/catalog.d.ts +137 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +209 -0
- package/dist/catalog.js.map +1 -0
- package/dist/contracts.d.ts +1073 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +243 -0
- package/dist/contracts.js.map +1 -0
- package/dist/featuredModels.d.ts +95 -0
- package/dist/featuredModels.d.ts.map +1 -0
- package/dist/featuredModels.js +189 -0
- package/dist/featuredModels.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/inference.d.ts +323 -0
- package/dist/inference.d.ts.map +1 -0
- package/dist/inference.js +162 -0
- package/dist/inference.js.map +1 -0
- package/dist/preference.d.ts +49 -0
- package/dist/preference.d.ts.map +1 -0
- package/dist/preference.js +74 -0
- package/dist/preference.js.map +1 -0
- package/dist/preset.d.ts +422 -0
- package/dist/preset.d.ts.map +1 -0
- package/dist/preset.js +212 -0
- package/dist/preset.js.map +1 -0
- package/dist/provider.d.ts +487 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +224 -0
- package/dist/provider.js.map +1 -0
- package/dist/schemaRegistry.d.ts +71 -0
- package/dist/schemaRegistry.d.ts.map +1 -0
- package/dist/schemaRegistry.js +35 -0
- package/dist/schemaRegistry.js.map +1 -0
- package/dist/service.d.ts +143 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +103 -0
- package/dist/service.js.map +1 -0
- package/dist/subscription.d.ts +275 -0
- package/dist/subscription.d.ts.map +1 -0
- package/dist/subscription.js +198 -0
- package/dist/subscription.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,1073 @@
|
|
|
1
|
+
import { ContractNoBody } from "@toad-contracts/valibot";
|
|
2
|
+
export declare const aiReadinessContract: {
|
|
3
|
+
readonly method: "get";
|
|
4
|
+
readonly pathResolver: () => string;
|
|
5
|
+
readonly responsesByStatusCode: {
|
|
6
|
+
200: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
8
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
9
|
+
} & {
|
|
10
|
+
checks: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
|
|
11
|
+
failedChecks: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
12
|
+
usableProviders: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
13
|
+
enabledPresets: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/** Everything the console needs to render its provider pickers. */
|
|
18
|
+
export declare const aiCatalogContract: {
|
|
19
|
+
readonly method: "get";
|
|
20
|
+
readonly pathResolver: () => string;
|
|
21
|
+
readonly responsesByStatusCode: {
|
|
22
|
+
200: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
24
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
25
|
+
} & {
|
|
26
|
+
providers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
27
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
28
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
29
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
30
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
31
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
32
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly note: import("valibot").StringSchema<undefined>;
|
|
34
|
+
}, undefined>, undefined>, undefined>;
|
|
35
|
+
subscriptionVendors: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
36
|
+
readonly vendor: import("valibot").StringSchema<undefined>;
|
|
37
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
38
|
+
readonly baseUrl: import("valibot").StringSchema<undefined>;
|
|
39
|
+
readonly dialect: import("valibot").StringSchema<undefined>;
|
|
40
|
+
readonly authScheme: import("valibot").StringSchema<undefined>;
|
|
41
|
+
readonly individualOnly: import("valibot").BooleanSchema<undefined>;
|
|
42
|
+
}, undefined>, undefined>, undefined>;
|
|
43
|
+
tiers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
44
|
+
defaultTierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
45
|
+
featuredModels: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
46
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
47
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
48
|
+
readonly purpose: import("valibot").PicklistSchema<readonly ["creative-writing"], undefined>;
|
|
49
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
50
|
+
readonly providerModelId: import("valibot").StringSchema<undefined>;
|
|
51
|
+
readonly flagship: import("valibot").BooleanSchema<undefined>;
|
|
52
|
+
readonly note: import("valibot").StringSchema<undefined>;
|
|
53
|
+
}, undefined>, undefined>, undefined>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/** Recent calls and their per-provider fold. */
|
|
58
|
+
export declare const aiCallListContract: {
|
|
59
|
+
readonly method: "get";
|
|
60
|
+
readonly pathResolver: () => string;
|
|
61
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
62
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200, undefined>]>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
readonly responsesByStatusCode: {
|
|
65
|
+
200: import("valibot").ObjectSchema<{
|
|
66
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
67
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
68
|
+
} & {
|
|
69
|
+
scope: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["account", "all"], undefined>, undefined>;
|
|
70
|
+
calls: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
71
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
72
|
+
readonly kind: import("valibot").StringSchema<undefined>;
|
|
73
|
+
readonly userId: import("valibot").StringSchema<undefined>;
|
|
74
|
+
readonly preset: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly schemaId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
76
|
+
readonly callLabel: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
77
|
+
readonly providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly model: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly succeeded: import("valibot").BooleanSchema<undefined>;
|
|
80
|
+
readonly attempts: import("valibot").NumberSchema<undefined>;
|
|
81
|
+
readonly inputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
82
|
+
readonly outputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
83
|
+
readonly latencyMs: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
84
|
+
readonly failure: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
86
|
+
}, undefined>, undefined>, undefined>;
|
|
87
|
+
byProvider: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
88
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
89
|
+
readonly calls: import("valibot").NumberSchema<undefined>;
|
|
90
|
+
readonly failures: import("valibot").NumberSchema<undefined>;
|
|
91
|
+
readonly inputTokens: import("valibot").NumberSchema<undefined>;
|
|
92
|
+
readonly outputTokens: import("valibot").NumberSchema<undefined>;
|
|
93
|
+
}, undefined>, undefined>, undefined>;
|
|
94
|
+
}, undefined>;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const aiProviderListContract: {
|
|
98
|
+
readonly method: "get";
|
|
99
|
+
readonly pathResolver: () => string;
|
|
100
|
+
readonly responsesByStatusCode: {
|
|
101
|
+
200: import("valibot").ObjectSchema<{
|
|
102
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
103
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
104
|
+
} & {
|
|
105
|
+
providers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
106
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
107
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
108
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
109
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
110
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
111
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
112
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
113
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
114
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
115
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
116
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
117
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
118
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
119
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
120
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
121
|
+
}, undefined>, undefined>;
|
|
122
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
123
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
124
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
125
|
+
}, undefined>, undefined>, undefined>;
|
|
126
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
127
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
128
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
129
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
130
|
+
}, undefined>, undefined>, undefined>;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export declare const aiProviderCreateContract: {
|
|
135
|
+
readonly method: "post";
|
|
136
|
+
readonly pathResolver: () => string;
|
|
137
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
138
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
139
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
140
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
141
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
142
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
143
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
144
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
145
|
+
readonly models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
146
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
147
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
148
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
149
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
150
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
151
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
152
|
+
}, undefined>, undefined>, undefined>;
|
|
153
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
154
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
155
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
156
|
+
}, undefined>, undefined>, undefined>;
|
|
157
|
+
readonly apiKey: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
158
|
+
}, undefined>;
|
|
159
|
+
readonly responsesByStatusCode: {
|
|
160
|
+
201: import("valibot").ObjectSchema<{
|
|
161
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
162
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
163
|
+
} & {
|
|
164
|
+
provider: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
165
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
166
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
167
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
168
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
169
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
170
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
171
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
172
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
173
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
174
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
175
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
176
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
177
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
178
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
179
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
180
|
+
}, undefined>, undefined>;
|
|
181
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
182
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
183
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
184
|
+
}, undefined>, undefined>, undefined>;
|
|
185
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
186
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
187
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
188
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
189
|
+
}, undefined>, undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export declare const aiProviderGetContract: {
|
|
194
|
+
readonly method: "get";
|
|
195
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
196
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
197
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
198
|
+
readonly pathResolver: ({ providerId }: {
|
|
199
|
+
providerId: string;
|
|
200
|
+
}) => string;
|
|
201
|
+
readonly responsesByStatusCode: {
|
|
202
|
+
200: import("valibot").ObjectSchema<{
|
|
203
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
204
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
205
|
+
} & {
|
|
206
|
+
provider: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
207
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
208
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
209
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
210
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
211
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
212
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
213
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
214
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
215
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
216
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
217
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
218
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
219
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
220
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
221
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
222
|
+
}, undefined>, undefined>;
|
|
223
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
224
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
225
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
226
|
+
}, undefined>, undefined>, undefined>;
|
|
227
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
228
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
229
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
230
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
231
|
+
}, undefined>, undefined>;
|
|
232
|
+
}, undefined>;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
export declare const aiProviderUpdateContract: {
|
|
236
|
+
readonly method: "patch";
|
|
237
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
238
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
239
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
240
|
+
readonly pathResolver: ({ providerId }: {
|
|
241
|
+
providerId: string;
|
|
242
|
+
}) => string;
|
|
243
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
244
|
+
readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
245
|
+
readonly tier: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
246
|
+
readonly dialect: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>, undefined>;
|
|
247
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
248
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
249
|
+
readonly models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
250
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
251
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
252
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
253
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
254
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
255
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
256
|
+
}, undefined>, undefined>, undefined>;
|
|
257
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
258
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
259
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
260
|
+
}, undefined>, undefined>, undefined>;
|
|
261
|
+
}, undefined>;
|
|
262
|
+
readonly responsesByStatusCode: {
|
|
263
|
+
200: import("valibot").ObjectSchema<{
|
|
264
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
265
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
266
|
+
} & {
|
|
267
|
+
provider: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
268
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
269
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
270
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
271
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
272
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
273
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
274
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
275
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
276
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
277
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
278
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
279
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
280
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
281
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
282
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
283
|
+
}, undefined>, undefined>;
|
|
284
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
285
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
286
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
287
|
+
}, undefined>, undefined>, undefined>;
|
|
288
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
289
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
290
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
291
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
292
|
+
}, undefined>, undefined>;
|
|
293
|
+
}, undefined>;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export declare const aiProviderDeleteContract: {
|
|
297
|
+
readonly method: "delete";
|
|
298
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
299
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
300
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
301
|
+
readonly pathResolver: ({ providerId }: {
|
|
302
|
+
providerId: string;
|
|
303
|
+
}) => string;
|
|
304
|
+
readonly responsesByStatusCode: {
|
|
305
|
+
200: import("valibot").ObjectSchema<{
|
|
306
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
307
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
308
|
+
} & {
|
|
309
|
+
deleted: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
310
|
+
}, undefined>;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
/** Seal a key for a provider, replacing whatever was stored. */
|
|
314
|
+
export declare const aiProviderCredentialSetContract: {
|
|
315
|
+
readonly method: "put";
|
|
316
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
317
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
318
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
319
|
+
readonly pathResolver: ({ providerId }: {
|
|
320
|
+
providerId: string;
|
|
321
|
+
}) => string;
|
|
322
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
323
|
+
readonly apiKey: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>;
|
|
324
|
+
}, undefined>;
|
|
325
|
+
readonly responsesByStatusCode: {
|
|
326
|
+
200: import("valibot").ObjectSchema<{
|
|
327
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
328
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
329
|
+
} & {
|
|
330
|
+
provider: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
331
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
332
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
333
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
334
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
335
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
336
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
337
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
338
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
339
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
340
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
341
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
342
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
343
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
344
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
345
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
346
|
+
}, undefined>, undefined>;
|
|
347
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
348
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
349
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
350
|
+
}, undefined>, undefined>, undefined>;
|
|
351
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
352
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
353
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
354
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
355
|
+
}, undefined>, undefined>;
|
|
356
|
+
}, undefined>;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
export declare const aiProviderCredentialDeleteContract: {
|
|
360
|
+
readonly method: "delete";
|
|
361
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
362
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
363
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
364
|
+
readonly pathResolver: ({ providerId }: {
|
|
365
|
+
providerId: string;
|
|
366
|
+
}) => string;
|
|
367
|
+
readonly responsesByStatusCode: {
|
|
368
|
+
200: import("valibot").ObjectSchema<{
|
|
369
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
370
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
371
|
+
} & {
|
|
372
|
+
provider: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
373
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
374
|
+
readonly providerId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
375
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
376
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
377
|
+
readonly dialect: import("valibot").PicklistSchema<readonly ["openai", "anthropic", "openai-compatible", "workers-ai"], undefined>;
|
|
378
|
+
readonly credentialKind: import("valibot").PicklistSchema<readonly ["api-key", "subscription", "none"], undefined>;
|
|
379
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
380
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
381
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
382
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
383
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
384
|
+
readonly inputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
385
|
+
readonly outputCostPerMillion: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
386
|
+
readonly acceptsImages: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
387
|
+
readonly supportsStructuredOutput: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
388
|
+
}, undefined>, undefined>;
|
|
389
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
390
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
391
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
392
|
+
}, undefined>, undefined>, undefined>;
|
|
393
|
+
readonly credentialConfigured: import("valibot").BooleanSchema<undefined>;
|
|
394
|
+
readonly credentialHint: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
395
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
396
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
397
|
+
}, undefined>, undefined>;
|
|
398
|
+
}, undefined>;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
/** Call the provider for real and report what came back. */
|
|
402
|
+
export declare const aiProviderProbeContract: {
|
|
403
|
+
readonly method: "post";
|
|
404
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
405
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
406
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
407
|
+
readonly pathResolver: ({ providerId }: {
|
|
408
|
+
providerId: string;
|
|
409
|
+
}) => string;
|
|
410
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
411
|
+
readonly responsesByStatusCode: {
|
|
412
|
+
200: import("valibot").ObjectSchema<{
|
|
413
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
414
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
415
|
+
} & {
|
|
416
|
+
providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
417
|
+
reachable: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
418
|
+
model: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
419
|
+
latencyMs: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
420
|
+
failure: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
421
|
+
}, undefined>;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/** Ask the provider which models it serves. */
|
|
425
|
+
export declare const aiProviderModelsContract: {
|
|
426
|
+
readonly method: "get";
|
|
427
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
428
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
429
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
430
|
+
readonly pathResolver: ({ providerId }: {
|
|
431
|
+
providerId: string;
|
|
432
|
+
}) => string;
|
|
433
|
+
readonly responsesByStatusCode: {
|
|
434
|
+
200: import("valibot").ObjectSchema<{
|
|
435
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
436
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
437
|
+
} & {
|
|
438
|
+
providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
439
|
+
supported: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
440
|
+
models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
441
|
+
failure: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
442
|
+
}, undefined>;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
export declare const aiSubscriptionListContract: {
|
|
446
|
+
readonly method: "get";
|
|
447
|
+
readonly pathResolver: () => string;
|
|
448
|
+
readonly responsesByStatusCode: {
|
|
449
|
+
200: import("valibot").ObjectSchema<{
|
|
450
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
451
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
452
|
+
} & {
|
|
453
|
+
subscriptions: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
454
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
455
|
+
readonly vendor: import("valibot").PicklistSchema<readonly ["claude", "glm", "kimi", "deepseek", "codex"], undefined>;
|
|
456
|
+
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
457
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
458
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
459
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
460
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
461
|
+
}, undefined>, undefined>, undefined>;
|
|
462
|
+
readonly ownerUserId: import("valibot").StringSchema<undefined>;
|
|
463
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
464
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
465
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
466
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
467
|
+
}, undefined>, undefined>;
|
|
468
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
469
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
470
|
+
}, undefined>, undefined>, undefined>;
|
|
471
|
+
}, undefined>;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
export declare const aiSubscriptionCreateContract: {
|
|
475
|
+
readonly method: "post";
|
|
476
|
+
readonly pathResolver: () => string;
|
|
477
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
478
|
+
readonly vendor: import("valibot").PicklistSchema<readonly ["claude", "glm", "kimi", "deepseek", "codex"], undefined>;
|
|
479
|
+
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
480
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
481
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
482
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
483
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
484
|
+
}, undefined>, undefined>, undefined>;
|
|
485
|
+
readonly credential: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 8000, undefined>]>;
|
|
486
|
+
readonly password: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 8, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>;
|
|
487
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
488
|
+
readonly models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
489
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
490
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
491
|
+
}, undefined>, undefined>, undefined>;
|
|
492
|
+
}, undefined>;
|
|
493
|
+
readonly responsesByStatusCode: {
|
|
494
|
+
201: import("valibot").ObjectSchema<{
|
|
495
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
496
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
497
|
+
} & {
|
|
498
|
+
subscription: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
499
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
500
|
+
readonly vendor: import("valibot").PicklistSchema<readonly ["claude", "glm", "kimi", "deepseek", "codex"], undefined>;
|
|
501
|
+
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
502
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
503
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
504
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
505
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
506
|
+
}, undefined>, undefined>, undefined>;
|
|
507
|
+
readonly ownerUserId: import("valibot").StringSchema<undefined>;
|
|
508
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
509
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
510
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
511
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
512
|
+
}, undefined>, undefined>;
|
|
513
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
514
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
515
|
+
}, undefined>, undefined>;
|
|
516
|
+
}, undefined>;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
export declare const aiSubscriptionUpdateContract: {
|
|
520
|
+
readonly method: "patch";
|
|
521
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
522
|
+
readonly subscriptionId: import("valibot").StringSchema<undefined>;
|
|
523
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
524
|
+
readonly pathResolver: ({ subscriptionId }: {
|
|
525
|
+
subscriptionId: string;
|
|
526
|
+
}) => string;
|
|
527
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
528
|
+
readonly label: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
529
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
530
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
531
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
532
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
533
|
+
}, undefined>, undefined>, undefined>;
|
|
534
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
535
|
+
readonly models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
536
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
537
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
538
|
+
}, undefined>, undefined>, undefined>;
|
|
539
|
+
}, undefined>;
|
|
540
|
+
readonly responsesByStatusCode: {
|
|
541
|
+
200: import("valibot").ObjectSchema<{
|
|
542
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
543
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
544
|
+
} & {
|
|
545
|
+
subscription: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
546
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
547
|
+
readonly vendor: import("valibot").PicklistSchema<readonly ["claude", "glm", "kimi", "deepseek", "codex"], undefined>;
|
|
548
|
+
readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
549
|
+
readonly baseUrl: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
550
|
+
readonly headers: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
551
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
552
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
553
|
+
}, undefined>, undefined>, undefined>;
|
|
554
|
+
readonly ownerUserId: import("valibot").StringSchema<undefined>;
|
|
555
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
556
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
557
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
558
|
+
readonly providerModelId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
559
|
+
}, undefined>, undefined>;
|
|
560
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
561
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
562
|
+
}, undefined>, undefined>;
|
|
563
|
+
}, undefined>;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
export declare const aiSubscriptionDeleteContract: {
|
|
567
|
+
readonly method: "delete";
|
|
568
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
569
|
+
readonly subscriptionId: import("valibot").StringSchema<undefined>;
|
|
570
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
571
|
+
readonly pathResolver: ({ subscriptionId }: {
|
|
572
|
+
subscriptionId: string;
|
|
573
|
+
}) => string;
|
|
574
|
+
readonly responsesByStatusCode: {
|
|
575
|
+
200: import("valibot").ObjectSchema<{
|
|
576
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
577
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
578
|
+
} & {
|
|
579
|
+
deleted: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
580
|
+
}, undefined>;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
/** Check that a password opens the seal, without spending anything on a model. */
|
|
584
|
+
export declare const aiSubscriptionUnlockContract: {
|
|
585
|
+
readonly method: "post";
|
|
586
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
587
|
+
readonly subscriptionId: import("valibot").StringSchema<undefined>;
|
|
588
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
589
|
+
readonly pathResolver: ({ subscriptionId }: {
|
|
590
|
+
subscriptionId: string;
|
|
591
|
+
}) => string;
|
|
592
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
593
|
+
readonly password: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 400, undefined>]>;
|
|
594
|
+
}, undefined>;
|
|
595
|
+
readonly responsesByStatusCode: {
|
|
596
|
+
200: import("valibot").ObjectSchema<{
|
|
597
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
598
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
599
|
+
} & {
|
|
600
|
+
unlocked: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
601
|
+
}, undefined>;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
export declare const aiPresetListContract: {
|
|
605
|
+
readonly method: "get";
|
|
606
|
+
readonly pathResolver: () => string;
|
|
607
|
+
readonly responsesByStatusCode: {
|
|
608
|
+
200: import("valibot").ObjectSchema<{
|
|
609
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
610
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
611
|
+
} & {
|
|
612
|
+
presets: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
613
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
614
|
+
readonly slug: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
615
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
616
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
617
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
618
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
619
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
620
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
621
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
622
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
623
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
624
|
+
}, undefined>, undefined>;
|
|
625
|
+
readonly tierPreference: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
626
|
+
readonly providerPreference: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
627
|
+
readonly lockedSubscriptionPolicy: import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>;
|
|
628
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
629
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
630
|
+
readonly maxAttempts: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>;
|
|
631
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
632
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
633
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
634
|
+
}, undefined>, undefined>, undefined>;
|
|
635
|
+
}, undefined>;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
export declare const aiPresetCreateContract: {
|
|
639
|
+
readonly method: "post";
|
|
640
|
+
readonly pathResolver: () => string;
|
|
641
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
642
|
+
readonly slug: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
643
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
644
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
645
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
646
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
647
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
648
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
649
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
650
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
651
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
652
|
+
}, undefined>, undefined>;
|
|
653
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
654
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
655
|
+
readonly lockedSubscriptionPolicy: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>, undefined>;
|
|
656
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
657
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
658
|
+
readonly maxAttempts: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
659
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
660
|
+
}, undefined>;
|
|
661
|
+
readonly responsesByStatusCode: {
|
|
662
|
+
201: import("valibot").ObjectSchema<{
|
|
663
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
664
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
665
|
+
} & {
|
|
666
|
+
preset: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
667
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
668
|
+
readonly slug: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
669
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
670
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
671
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
672
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
673
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
674
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
675
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
676
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
677
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
678
|
+
}, undefined>, undefined>;
|
|
679
|
+
readonly tierPreference: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
680
|
+
readonly providerPreference: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
681
|
+
readonly lockedSubscriptionPolicy: import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>;
|
|
682
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
683
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
684
|
+
readonly maxAttempts: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>;
|
|
685
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
686
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
687
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
688
|
+
}, undefined>, undefined>;
|
|
689
|
+
}, undefined>;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
export declare const aiPresetGetContract: {
|
|
693
|
+
readonly method: "get";
|
|
694
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
695
|
+
readonly presetId: import("valibot").StringSchema<undefined>;
|
|
696
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
697
|
+
readonly pathResolver: ({ presetId }: {
|
|
698
|
+
presetId: string;
|
|
699
|
+
}) => string;
|
|
700
|
+
readonly responsesByStatusCode: {
|
|
701
|
+
200: import("valibot").ObjectSchema<{
|
|
702
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
703
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
704
|
+
} & {
|
|
705
|
+
preset: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
706
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
707
|
+
readonly slug: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
708
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
709
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
710
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
711
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
712
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
713
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
714
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
715
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
716
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
717
|
+
}, undefined>, undefined>;
|
|
718
|
+
readonly tierPreference: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
719
|
+
readonly providerPreference: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
720
|
+
readonly lockedSubscriptionPolicy: import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>;
|
|
721
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
722
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
723
|
+
readonly maxAttempts: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>;
|
|
724
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
725
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
726
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
727
|
+
}, undefined>, undefined>;
|
|
728
|
+
}, undefined>;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
export declare const aiPresetUpdateContract: {
|
|
732
|
+
readonly method: "patch";
|
|
733
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
734
|
+
readonly presetId: import("valibot").StringSchema<undefined>;
|
|
735
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
736
|
+
readonly pathResolver: ({ presetId }: {
|
|
737
|
+
presetId: string;
|
|
738
|
+
}) => string;
|
|
739
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
740
|
+
readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
741
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
742
|
+
readonly models: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
743
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
744
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
745
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
746
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
747
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
748
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
749
|
+
}, undefined>, undefined>, undefined>;
|
|
750
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
751
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
752
|
+
readonly lockedSubscriptionPolicy: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>, undefined>;
|
|
753
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
754
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
755
|
+
readonly maxAttempts: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
756
|
+
readonly enabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
757
|
+
}, undefined>;
|
|
758
|
+
readonly responsesByStatusCode: {
|
|
759
|
+
200: import("valibot").ObjectSchema<{
|
|
760
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
761
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
762
|
+
} & {
|
|
763
|
+
preset: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
764
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
765
|
+
readonly slug: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>;
|
|
766
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
767
|
+
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 600, undefined>]>, undefined>;
|
|
768
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
769
|
+
readonly model: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>;
|
|
770
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
771
|
+
readonly tierPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>, undefined>;
|
|
772
|
+
readonly providerPreference: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>, undefined>;
|
|
773
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
774
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
775
|
+
}, undefined>, undefined>;
|
|
776
|
+
readonly tierPreference: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
777
|
+
readonly providerPreference: import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
778
|
+
readonly lockedSubscriptionPolicy: import("valibot").PicklistSchema<readonly ["fall-back", "require"], undefined>;
|
|
779
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
780
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
781
|
+
readonly maxAttempts: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 10, undefined>]>;
|
|
782
|
+
readonly enabled: import("valibot").BooleanSchema<undefined>;
|
|
783
|
+
readonly createdAt: import("valibot").StringSchema<undefined>;
|
|
784
|
+
readonly updatedAt: import("valibot").StringSchema<undefined>;
|
|
785
|
+
}, undefined>, undefined>;
|
|
786
|
+
}, undefined>;
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
export declare const aiPresetDeleteContract: {
|
|
790
|
+
readonly method: "delete";
|
|
791
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
792
|
+
readonly presetId: import("valibot").StringSchema<undefined>;
|
|
793
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
794
|
+
readonly pathResolver: ({ presetId }: {
|
|
795
|
+
presetId: string;
|
|
796
|
+
}) => string;
|
|
797
|
+
readonly responsesByStatusCode: {
|
|
798
|
+
200: import("valibot").ObjectSchema<{
|
|
799
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
800
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
801
|
+
} & {
|
|
802
|
+
deleted: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
803
|
+
}, undefined>;
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* The routes a preset would take against the current configuration, without
|
|
808
|
+
* calling anything. Addressed by slug rather than by id, because that is what a
|
|
809
|
+
* caller writes into a request and therefore what somebody debugging one has in
|
|
810
|
+
* front of them.
|
|
811
|
+
*/
|
|
812
|
+
export declare const aiPresetRoutePlanContract: {
|
|
813
|
+
readonly method: "get";
|
|
814
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
815
|
+
readonly slug: import("valibot").StringSchema<undefined>;
|
|
816
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
817
|
+
readonly pathResolver: ({ slug }: {
|
|
818
|
+
slug: string;
|
|
819
|
+
}) => string;
|
|
820
|
+
readonly responsesByStatusCode: {
|
|
821
|
+
200: import("valibot").ObjectSchema<{
|
|
822
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
823
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
824
|
+
} & {
|
|
825
|
+
preset: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
826
|
+
candidates: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
827
|
+
readonly order: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
828
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
829
|
+
readonly providerModelId: import("valibot").StringSchema<undefined>;
|
|
830
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
831
|
+
readonly providerName: import("valibot").StringSchema<undefined>;
|
|
832
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
833
|
+
readonly unlockable: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
834
|
+
}, undefined>, undefined>, undefined>;
|
|
835
|
+
excluded: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
836
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
837
|
+
readonly providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
838
|
+
readonly tier: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
839
|
+
readonly reason: import("valibot").PicklistSchema<readonly ["model_not_served", "provider_disabled", "credential_missing", "subscription_locked", "subscription_not_owned", "subscription_required", "pinned_provider_unavailable", "model_no_image_input", "unknown_model_image_input", "structured_output_unsupported", "attempt_budget_exhausted"], undefined>;
|
|
840
|
+
readonly detail: import("valibot").StringSchema<undefined>;
|
|
841
|
+
}, undefined>, undefined>, undefined>;
|
|
842
|
+
}, undefined>;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
export declare const aiSchemaListContract: {
|
|
846
|
+
readonly method: "get";
|
|
847
|
+
readonly pathResolver: () => string;
|
|
848
|
+
readonly responsesByStatusCode: {
|
|
849
|
+
200: import("valibot").ObjectSchema<{
|
|
850
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
851
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
852
|
+
} & {
|
|
853
|
+
schemas: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
854
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
855
|
+
readonly description: import("valibot").StringSchema<undefined>;
|
|
856
|
+
readonly strict: import("valibot").BooleanSchema<undefined>;
|
|
857
|
+
readonly jsonSchema: import("valibot").AnySchema;
|
|
858
|
+
}, undefined>, undefined>, undefined>;
|
|
859
|
+
}, undefined>;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
export declare const aiSchemaGetContract: {
|
|
863
|
+
readonly method: "get";
|
|
864
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
865
|
+
readonly schemaId: import("valibot").StringSchema<undefined>;
|
|
866
|
+
}, undefined> & import("@toad-contracts/valibot").StandardObjectKeysV1<unknown, unknown>;
|
|
867
|
+
readonly pathResolver: ({ schemaId }: {
|
|
868
|
+
schemaId: string;
|
|
869
|
+
}) => string;
|
|
870
|
+
readonly responsesByStatusCode: {
|
|
871
|
+
200: import("valibot").ObjectSchema<{
|
|
872
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
873
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
874
|
+
} & {
|
|
875
|
+
schema: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
876
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
877
|
+
readonly description: import("valibot").StringSchema<undefined>;
|
|
878
|
+
readonly strict: import("valibot").BooleanSchema<undefined>;
|
|
879
|
+
readonly jsonSchema: import("valibot").AnySchema;
|
|
880
|
+
}, undefined>, undefined>;
|
|
881
|
+
}, undefined>;
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
export declare const aiGenerateTextContract: {
|
|
885
|
+
readonly method: "post";
|
|
886
|
+
readonly pathResolver: () => string;
|
|
887
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
888
|
+
readonly preset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
889
|
+
readonly model: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
890
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
891
|
+
readonly messages: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
892
|
+
readonly role: import("valibot").PicklistSchema<readonly ["system", "user", "assistant"], undefined>;
|
|
893
|
+
readonly content: import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>, import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
894
|
+
readonly type: import("valibot").PicklistSchema<["text"], undefined>;
|
|
895
|
+
readonly text: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>;
|
|
896
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
897
|
+
readonly type: import("valibot").PicklistSchema<["image"], undefined>;
|
|
898
|
+
readonly image: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 20000000, undefined>]>;
|
|
899
|
+
readonly mediaType: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
900
|
+
}, undefined>], undefined>, undefined>], undefined>;
|
|
901
|
+
}, undefined>, undefined>, import("valibot").MinLengthAction<{
|
|
902
|
+
role: "assistant" | "system" | "user";
|
|
903
|
+
content: string | ({
|
|
904
|
+
type: "text";
|
|
905
|
+
text: string;
|
|
906
|
+
} | {
|
|
907
|
+
type: "image";
|
|
908
|
+
image: string;
|
|
909
|
+
mediaType?: string | undefined;
|
|
910
|
+
})[];
|
|
911
|
+
}[], 1, undefined>]>;
|
|
912
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
913
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
914
|
+
readonly callLabel: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
915
|
+
}, undefined>;
|
|
916
|
+
readonly responsesByStatusCode: {
|
|
917
|
+
200: import("valibot").ObjectSchema<{
|
|
918
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
919
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
920
|
+
} & {
|
|
921
|
+
text: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
922
|
+
finishReason: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
923
|
+
usage: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
924
|
+
readonly inputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
925
|
+
readonly outputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
926
|
+
readonly cachedInputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
927
|
+
readonly totalTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
928
|
+
}, undefined>, undefined>;
|
|
929
|
+
route: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
930
|
+
readonly served: import("valibot").ObjectSchema<{
|
|
931
|
+
readonly order: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
932
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
933
|
+
readonly providerModelId: import("valibot").StringSchema<undefined>;
|
|
934
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
935
|
+
readonly providerName: import("valibot").StringSchema<undefined>;
|
|
936
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
937
|
+
readonly unlockable: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
938
|
+
}, undefined>;
|
|
939
|
+
readonly attempts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
940
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
941
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
942
|
+
readonly failure: import("valibot").StringSchema<undefined>;
|
|
943
|
+
readonly retryable: import("valibot").BooleanSchema<undefined>;
|
|
944
|
+
}, undefined>, undefined>;
|
|
945
|
+
readonly excluded: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
946
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
947
|
+
readonly providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
948
|
+
readonly tier: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
949
|
+
readonly reason: import("valibot").PicklistSchema<readonly ["model_not_served", "provider_disabled", "credential_missing", "subscription_locked", "subscription_not_owned", "subscription_required", "pinned_provider_unavailable", "model_no_image_input", "unknown_model_image_input", "structured_output_unsupported", "attempt_budget_exhausted"], undefined>;
|
|
950
|
+
readonly detail: import("valibot").StringSchema<undefined>;
|
|
951
|
+
}, undefined>, undefined>;
|
|
952
|
+
}, undefined>, undefined>;
|
|
953
|
+
latencyMs: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
954
|
+
}, undefined>;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
export declare const aiGenerateObjectContract: {
|
|
958
|
+
readonly method: "post";
|
|
959
|
+
readonly pathResolver: () => string;
|
|
960
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
961
|
+
readonly preset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
962
|
+
readonly model: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
963
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
964
|
+
readonly messages: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
965
|
+
readonly role: import("valibot").PicklistSchema<readonly ["system", "user", "assistant"], undefined>;
|
|
966
|
+
readonly content: import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>, import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
967
|
+
readonly type: import("valibot").PicklistSchema<["text"], undefined>;
|
|
968
|
+
readonly text: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>;
|
|
969
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
970
|
+
readonly type: import("valibot").PicklistSchema<["image"], undefined>;
|
|
971
|
+
readonly image: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 20000000, undefined>]>;
|
|
972
|
+
readonly mediaType: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
973
|
+
}, undefined>], undefined>, undefined>], undefined>;
|
|
974
|
+
}, undefined>, undefined>, import("valibot").MinLengthAction<{
|
|
975
|
+
role: "assistant" | "system" | "user";
|
|
976
|
+
content: string | ({
|
|
977
|
+
type: "text";
|
|
978
|
+
text: string;
|
|
979
|
+
} | {
|
|
980
|
+
type: "image";
|
|
981
|
+
image: string;
|
|
982
|
+
mediaType?: string | undefined;
|
|
983
|
+
})[];
|
|
984
|
+
}[], 1, undefined>]>;
|
|
985
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
986
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
987
|
+
readonly callLabel: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
988
|
+
readonly schemaId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
|
|
989
|
+
}, undefined>;
|
|
990
|
+
readonly responsesByStatusCode: {
|
|
991
|
+
200: import("valibot").ObjectSchema<{
|
|
992
|
+
readonly success: import("valibot").BooleanSchema<undefined>;
|
|
993
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
994
|
+
} & {
|
|
995
|
+
object: import("valibot").OptionalSchema<import("valibot").AnySchema, undefined>;
|
|
996
|
+
schemaId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
997
|
+
finishReason: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
998
|
+
usage: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
999
|
+
readonly inputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1000
|
+
readonly outputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1001
|
+
readonly cachedInputTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1002
|
+
readonly totalTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1003
|
+
}, undefined>, undefined>;
|
|
1004
|
+
route: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
1005
|
+
readonly served: import("valibot").ObjectSchema<{
|
|
1006
|
+
readonly order: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
1007
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
1008
|
+
readonly providerModelId: import("valibot").StringSchema<undefined>;
|
|
1009
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
1010
|
+
readonly providerName: import("valibot").StringSchema<undefined>;
|
|
1011
|
+
readonly tier: import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>;
|
|
1012
|
+
readonly unlockable: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
1013
|
+
}, undefined>;
|
|
1014
|
+
readonly attempts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
1015
|
+
readonly providerId: import("valibot").StringSchema<undefined>;
|
|
1016
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
1017
|
+
readonly failure: import("valibot").StringSchema<undefined>;
|
|
1018
|
+
readonly retryable: import("valibot").BooleanSchema<undefined>;
|
|
1019
|
+
}, undefined>, undefined>;
|
|
1020
|
+
readonly excluded: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
1021
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
1022
|
+
readonly providerId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
1023
|
+
readonly tier: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["subscription", "direct", "local", "umbrella"], undefined>, undefined>;
|
|
1024
|
+
readonly reason: import("valibot").PicklistSchema<readonly ["model_not_served", "provider_disabled", "credential_missing", "subscription_locked", "subscription_not_owned", "subscription_required", "pinned_provider_unavailable", "model_no_image_input", "unknown_model_image_input", "structured_output_unsupported", "attempt_budget_exhausted"], undefined>;
|
|
1025
|
+
readonly detail: import("valibot").StringSchema<undefined>;
|
|
1026
|
+
}, undefined>, undefined>;
|
|
1027
|
+
}, undefined>, undefined>;
|
|
1028
|
+
latencyMs: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1029
|
+
}, undefined>;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* The streaming twin of {@link aiGenerateTextContract}.
|
|
1034
|
+
*
|
|
1035
|
+
* It declares no success response because it does not answer with one: the body
|
|
1036
|
+
* is an SSE stream whose events are described by `STREAM_EVENTS`, and a schema
|
|
1037
|
+
* claiming a JSON body would be a lie a generated client would then act on.
|
|
1038
|
+
*/
|
|
1039
|
+
export declare const aiGenerateStreamContract: {
|
|
1040
|
+
readonly method: "post";
|
|
1041
|
+
readonly pathResolver: () => string;
|
|
1042
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
1043
|
+
readonly preset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
1044
|
+
readonly model: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
1045
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 64, undefined>, import("valibot").RegexAction<string, "must be lowercase words separated by single dashes">]>, undefined>;
|
|
1046
|
+
readonly messages: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
1047
|
+
readonly role: import("valibot").PicklistSchema<readonly ["system", "user", "assistant"], undefined>;
|
|
1048
|
+
readonly content: import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>, import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
1049
|
+
readonly type: import("valibot").PicklistSchema<["text"], undefined>;
|
|
1050
|
+
readonly text: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000000, undefined>]>;
|
|
1051
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
1052
|
+
readonly type: import("valibot").PicklistSchema<["image"], undefined>;
|
|
1053
|
+
readonly image: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 20000000, undefined>]>;
|
|
1054
|
+
readonly mediaType: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
1055
|
+
}, undefined>], undefined>, undefined>], undefined>;
|
|
1056
|
+
}, undefined>, undefined>, import("valibot").MinLengthAction<{
|
|
1057
|
+
role: "assistant" | "system" | "user";
|
|
1058
|
+
content: string | ({
|
|
1059
|
+
type: "text";
|
|
1060
|
+
text: string;
|
|
1061
|
+
} | {
|
|
1062
|
+
type: "image";
|
|
1063
|
+
image: string;
|
|
1064
|
+
mediaType?: string | undefined;
|
|
1065
|
+
})[];
|
|
1066
|
+
}[], 1, undefined>]>;
|
|
1067
|
+
readonly temperature: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2, undefined>]>, undefined>;
|
|
1068
|
+
readonly maxOutputTokens: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
1069
|
+
readonly callLabel: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
1070
|
+
}, undefined>;
|
|
1071
|
+
readonly responsesByStatusCode: {};
|
|
1072
|
+
};
|
|
1073
|
+
//# sourceMappingURL=contracts.d.ts.map
|