@llmops/core 0.1.0-beta.8 → 0.1.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.
@@ -0,0 +1,2075 @@
1
+ import { A as Variant, B as variantVersionsSchema, C as Insertable, D as TargetingRule, E as TableName, F as configsSchema, I as environmentSecretsSchema, L as environmentsSchema, M as VariantVersionsTable, N as VariantsTable, O as TargetingRulesTable, P as configVariantsSchema, R as schemas, S as EnvironmentsTable, T as Selectable, V as variantsSchema, _ as ConfigsTable, a as detectDatabaseType, b as EnvironmentSecret, c as matchType, d as parseTableData, f as validatePartialTableData, g as ConfigVariantsTable, h as ConfigVariant, i as createDatabaseFromConnection, j as VariantVersion, k as Updateable, l as runAutoMigrations, m as Config, n as DatabaseType, o as MigrationResult, p as validateTableData, r as createDatabase, s as getMigrations, t as DatabaseConnection, u as parsePartialTableData, v as Database, w as SCHEMA_METADATA, x as EnvironmentSecretsTable, y as Environment, z as targetingRulesSchema } from "./index-9HhrwwZi.cjs";
2
+ import { Kysely } from "kysely";
3
+ import * as zod21 from "zod";
4
+ import { z } from "zod";
5
+ import gateway from "@llmops/gateway";
6
+ import pino from "pino";
7
+ import * as zod_v4_core0 from "zod/v4/core";
8
+
9
+ //#region src/providers/supported-providers.d.ts
10
+ /**
11
+ * Supported providers - derived from @llmops/gateway providers
12
+ * @see packages/gateway/src/providers/index.ts
13
+ */
14
+ declare enum SupportedProviders {
15
+ OPENAI = "openai",
16
+ COHERE = "cohere",
17
+ ANTHROPIC = "anthropic",
18
+ AZURE_OPENAI = "azure-openai",
19
+ HUGGINGFACE = "huggingface",
20
+ ANYSCALE = "anyscale",
21
+ PALM = "palm",
22
+ TOGETHER_AI = "together-ai",
23
+ GOOGLE = "google",
24
+ VERTEX_AI = "vertex-ai",
25
+ PERPLEXITY_AI = "perplexity-ai",
26
+ MISTRAL_AI = "mistral-ai",
27
+ DEEPINFRA = "deepinfra",
28
+ NCOMPASS = "ncompass",
29
+ STABILITY_AI = "stability-ai",
30
+ NOMIC = "nomic",
31
+ OLLAMA = "ollama",
32
+ AI21 = "ai21",
33
+ BEDROCK = "bedrock",
34
+ GROQ = "groq",
35
+ SEGMIND = "segmind",
36
+ JINA = "jina",
37
+ FIREWORKS_AI = "fireworks-ai",
38
+ WORKERS_AI = "workers-ai",
39
+ REKA_AI = "reka-ai",
40
+ MOONSHOT = "moonshot",
41
+ OPENROUTER = "openrouter",
42
+ LINGYI = "lingyi",
43
+ ZHIPU = "zhipu",
44
+ NOVITA_AI = "novita-ai",
45
+ MONSTERAPI = "monsterapi",
46
+ DEEPSEEK = "deepseek",
47
+ PREDIBASE = "predibase",
48
+ TRITON = "triton",
49
+ VOYAGE = "voyage",
50
+ AZURE_AI = "azure-ai",
51
+ GITHUB = "github",
52
+ DEEPBRICKS = "deepbricks",
53
+ SILICONFLOW = "siliconflow",
54
+ CEREBRAS = "cerebras",
55
+ INFERENCE_NET = "inference-net",
56
+ SAMBANOVA = "sambanova",
57
+ LEMONFOX_AI = "lemonfox-ai",
58
+ UPSTAGE = "upstage",
59
+ LAMBDA = "lambda",
60
+ DASHSCOPE = "dashscope",
61
+ X_AI = "x-ai",
62
+ QDRANT = "qdrant",
63
+ SAGEMAKER = "sagemaker",
64
+ NEBIUS = "nebius",
65
+ RECRAFT_AI = "recraft-ai",
66
+ MILVUS = "milvus",
67
+ REPLICATE = "replicate",
68
+ LEPTON = "lepton",
69
+ KLUSTER_AI = "kluster-ai",
70
+ NSCALE = "nscale",
71
+ HYPERBOLIC = "hyperbolic",
72
+ BYTEZ = "bytez",
73
+ FEATHERLESS_AI = "featherless-ai",
74
+ KRUTRIM = "krutrim",
75
+ AI302 = "302ai",
76
+ COMETAPI = "cometapi",
77
+ MATTERAI = "matterai",
78
+ MESHY = "meshy",
79
+ NEXTBIT = "nextbit",
80
+ TRIPO3D = "tripo3d",
81
+ MODAL = "modal",
82
+ Z_AI = "z-ai",
83
+ ORACLE = "oracle",
84
+ IOINTELLIGENCE = "iointelligence",
85
+ AIBADGR = "aibadgr",
86
+ }
87
+ //#endregion
88
+ //#region src/providers/provider-configs.d.ts
89
+ /**
90
+ * Base provider configuration - all providers require at least an API key
91
+ */
92
+ interface BaseProviderConfig {
93
+ /** The API key for authentication */
94
+ apiKey: string;
95
+ /** Custom base URL for the provider */
96
+ customHost?: string;
97
+ /** Request timeout in milliseconds */
98
+ requestTimeout?: number;
99
+ /** Headers to forward to the provider */
100
+ forwardHeaders?: string[];
101
+ }
102
+ /**
103
+ * OpenAI-specific configuration
104
+ */
105
+ interface OpenAIProviderConfig extends BaseProviderConfig {
106
+ /** OpenAI organization ID */
107
+ openaiOrganization?: string;
108
+ /** OpenAI project ID */
109
+ openaiProject?: string;
110
+ /** OpenAI beta features header */
111
+ openaiBeta?: string;
112
+ }
113
+ /**
114
+ * Anthropic-specific configuration
115
+ */
116
+ interface AnthropicProviderConfig extends BaseProviderConfig {
117
+ /** Anthropic beta features header */
118
+ anthropicBeta?: string;
119
+ /** Anthropic API version */
120
+ anthropicVersion?: string;
121
+ }
122
+ /**
123
+ * Azure OpenAI-specific configuration
124
+ */
125
+ interface AzureOpenAIProviderConfig extends BaseProviderConfig {
126
+ /** Azure resource name */
127
+ resourceName?: string;
128
+ /** Azure deployment ID */
129
+ deploymentId?: string;
130
+ /** Azure API version */
131
+ apiVersion?: string;
132
+ /** Azure model name */
133
+ azureModelName?: string;
134
+ /** Azure authentication mode: 'apiKey' | 'entra' | 'managed' | 'workload' */
135
+ azureAuthMode?: string;
136
+ /** Azure AD token for authentication */
137
+ azureAdToken?: string;
138
+ /** Azure managed identity client ID */
139
+ azureManagedClientId?: string;
140
+ /** Azure workload identity client ID */
141
+ azureWorkloadClientId?: string;
142
+ /** Azure Entra client ID */
143
+ azureEntraClientId?: string;
144
+ /** Azure Entra client secret */
145
+ azureEntraClientSecret?: string;
146
+ /** Azure Entra tenant ID */
147
+ azureEntraTenantId?: string;
148
+ /** Azure Entra scope */
149
+ azureEntraScope?: string;
150
+ }
151
+ /**
152
+ * Azure AI (Foundry) specific configuration
153
+ */
154
+ interface AzureAIProviderConfig extends BaseProviderConfig {
155
+ /** Azure API version */
156
+ azureApiVersion?: string;
157
+ /** Azure Foundry URL */
158
+ azureFoundryUrl?: string;
159
+ /** Azure deployment name */
160
+ azureDeploymentName?: string;
161
+ /** Extra parameters for Azure */
162
+ azureExtraParameters?: string;
163
+ }
164
+ /**
165
+ * AWS Bedrock-specific configuration
166
+ */
167
+ interface BedrockProviderConfig extends BaseProviderConfig {
168
+ /** AWS secret access key */
169
+ awsSecretAccessKey?: string;
170
+ /** AWS access key ID */
171
+ awsAccessKeyId?: string;
172
+ /** AWS session token (for temporary credentials) */
173
+ awsSessionToken?: string;
174
+ /** AWS region (e.g., 'us-east-1') */
175
+ awsRegion?: string;
176
+ /** AWS authentication type: 'assumedRole' | 'apiKey' */
177
+ awsAuthType?: string;
178
+ /** AWS role ARN for assumed role authentication */
179
+ awsRoleArn?: string;
180
+ /** AWS external ID for cross-account access */
181
+ awsExternalId?: string;
182
+ /** AWS Bedrock model ID */
183
+ awsBedrockModel?: string;
184
+ }
185
+ /**
186
+ * AWS Sagemaker-specific configuration
187
+ */
188
+ interface SagemakerProviderConfig extends BedrockProviderConfig {
189
+ /** Sagemaker custom attributes */
190
+ amznSagemakerCustomAttributes?: string;
191
+ /** Sagemaker target model */
192
+ amznSagemakerTargetModel?: string;
193
+ /** Sagemaker target variant */
194
+ amznSagemakerTargetVariant?: string;
195
+ /** Sagemaker target container hostname */
196
+ amznSagemakerTargetContainerHostname?: string;
197
+ /** Sagemaker inference ID */
198
+ amznSagemakerInferenceId?: string;
199
+ /** Sagemaker enable explanations */
200
+ amznSagemakerEnableExplanations?: string;
201
+ /** Sagemaker inference component */
202
+ amznSagemakerInferenceComponent?: string;
203
+ /** Sagemaker session ID */
204
+ amznSagemakerSessionId?: string;
205
+ /** Sagemaker model name */
206
+ amznSagemakerModelName?: string;
207
+ /** AWS S3 bucket for file operations */
208
+ awsS3Bucket?: string;
209
+ /** AWS S3 object key */
210
+ awsS3ObjectKey?: string;
211
+ }
212
+ /**
213
+ * Google Vertex AI-specific configuration
214
+ */
215
+ interface VertexAIProviderConfig extends BaseProviderConfig {
216
+ /** Vertex AI region (e.g., 'us-central1') */
217
+ vertexRegion?: string;
218
+ /** Vertex AI project ID */
219
+ vertexProjectId?: string;
220
+ /** Vertex AI service account JSON credentials */
221
+ vertexServiceAccountJson?: Record<string, unknown>;
222
+ /** Vertex AI storage bucket name */
223
+ vertexStorageBucketName?: string;
224
+ /** Vertex AI model name */
225
+ vertexModelName?: string;
226
+ }
227
+ /**
228
+ * Google AI (Gemini) configuration
229
+ */
230
+ interface GoogleProviderConfig extends BaseProviderConfig {}
231
+ /**
232
+ * Cloudflare Workers AI-specific configuration
233
+ */
234
+ interface WorkersAIProviderConfig extends BaseProviderConfig {
235
+ /** Cloudflare account ID */
236
+ workersAiAccountId?: string;
237
+ }
238
+ /**
239
+ * Stability AI-specific configuration
240
+ */
241
+ interface StabilityAIProviderConfig extends BaseProviderConfig {
242
+ /** Stability client ID */
243
+ stabilityClientId?: string;
244
+ /** Stability client user ID */
245
+ stabilityClientUserId?: string;
246
+ /** Stability client version */
247
+ stabilityClientVersion?: string;
248
+ }
249
+ /**
250
+ * Hugging Face-specific configuration
251
+ */
252
+ interface HuggingFaceProviderConfig extends BaseProviderConfig {
253
+ /** Hugging Face base URL for inference endpoints */
254
+ huggingfaceBaseUrl?: string;
255
+ }
256
+ /**
257
+ * Fireworks AI-specific configuration
258
+ */
259
+ interface FireworksAIProviderConfig extends BaseProviderConfig {
260
+ /** Fireworks account ID */
261
+ fireworksAccountId?: string;
262
+ }
263
+ /**
264
+ * Mistral AI-specific configuration
265
+ */
266
+ interface MistralAIProviderConfig extends BaseProviderConfig {
267
+ /** Use FIM completions endpoint */
268
+ mistralFimCompletion?: string;
269
+ }
270
+ /**
271
+ * Oracle Cloud-specific configuration
272
+ */
273
+ interface OracleProviderConfig extends BaseProviderConfig {
274
+ /** Oracle API version (e.g., '20160918') */
275
+ oracleApiVersion?: string;
276
+ /** Oracle region (e.g., 'us-ashburn-1') */
277
+ oracleRegion?: string;
278
+ /** Oracle compartment ID */
279
+ oracleCompartmentId?: string;
280
+ /** Oracle serving mode: 'ON_DEMAND' | 'DEDICATED' */
281
+ oracleServingMode?: string;
282
+ /** Oracle tenancy OCID */
283
+ oracleTenancy?: string;
284
+ /** Oracle user OCID */
285
+ oracleUser?: string;
286
+ /** Oracle API key fingerprint */
287
+ oracleFingerprint?: string;
288
+ /** Oracle private key (PEM format) */
289
+ oraclePrivateKey?: string;
290
+ /** Oracle key passphrase */
291
+ oracleKeyPassphrase?: string;
292
+ }
293
+ /**
294
+ * Snowflake Cortex-specific configuration
295
+ */
296
+ interface CortexProviderConfig extends BaseProviderConfig {
297
+ /** Snowflake account identifier */
298
+ snowflakeAccount?: string;
299
+ }
300
+ /**
301
+ * Provider config type mapping - maps each provider to its specific config type
302
+ */
303
+ interface ProviderConfigMap {
304
+ [SupportedProviders.OPENAI]: OpenAIProviderConfig;
305
+ [SupportedProviders.ANTHROPIC]: AnthropicProviderConfig;
306
+ [SupportedProviders.AZURE_OPENAI]: AzureOpenAIProviderConfig;
307
+ [SupportedProviders.AZURE_AI]: AzureAIProviderConfig;
308
+ [SupportedProviders.BEDROCK]: BedrockProviderConfig;
309
+ [SupportedProviders.SAGEMAKER]: SagemakerProviderConfig;
310
+ [SupportedProviders.VERTEX_AI]: VertexAIProviderConfig;
311
+ [SupportedProviders.GOOGLE]: GoogleProviderConfig;
312
+ [SupportedProviders.WORKERS_AI]: WorkersAIProviderConfig;
313
+ [SupportedProviders.STABILITY_AI]: StabilityAIProviderConfig;
314
+ [SupportedProviders.HUGGINGFACE]: HuggingFaceProviderConfig;
315
+ [SupportedProviders.FIREWORKS_AI]: FireworksAIProviderConfig;
316
+ [SupportedProviders.MISTRAL_AI]: MistralAIProviderConfig;
317
+ [SupportedProviders.ORACLE]: OracleProviderConfig;
318
+ [SupportedProviders.COHERE]: BaseProviderConfig;
319
+ [SupportedProviders.ANYSCALE]: BaseProviderConfig;
320
+ [SupportedProviders.PALM]: BaseProviderConfig;
321
+ [SupportedProviders.TOGETHER_AI]: BaseProviderConfig;
322
+ [SupportedProviders.PERPLEXITY_AI]: BaseProviderConfig;
323
+ [SupportedProviders.DEEPINFRA]: BaseProviderConfig;
324
+ [SupportedProviders.NCOMPASS]: BaseProviderConfig;
325
+ [SupportedProviders.NOMIC]: BaseProviderConfig;
326
+ [SupportedProviders.OLLAMA]: BaseProviderConfig;
327
+ [SupportedProviders.AI21]: BaseProviderConfig;
328
+ [SupportedProviders.GROQ]: BaseProviderConfig;
329
+ [SupportedProviders.SEGMIND]: BaseProviderConfig;
330
+ [SupportedProviders.JINA]: BaseProviderConfig;
331
+ [SupportedProviders.REKA_AI]: BaseProviderConfig;
332
+ [SupportedProviders.MOONSHOT]: BaseProviderConfig;
333
+ [SupportedProviders.OPENROUTER]: BaseProviderConfig;
334
+ [SupportedProviders.LINGYI]: BaseProviderConfig;
335
+ [SupportedProviders.ZHIPU]: BaseProviderConfig;
336
+ [SupportedProviders.NOVITA_AI]: BaseProviderConfig;
337
+ [SupportedProviders.MONSTERAPI]: BaseProviderConfig;
338
+ [SupportedProviders.DEEPSEEK]: BaseProviderConfig;
339
+ [SupportedProviders.PREDIBASE]: BaseProviderConfig;
340
+ [SupportedProviders.TRITON]: BaseProviderConfig;
341
+ [SupportedProviders.VOYAGE]: BaseProviderConfig;
342
+ [SupportedProviders.GITHUB]: BaseProviderConfig;
343
+ [SupportedProviders.DEEPBRICKS]: BaseProviderConfig;
344
+ [SupportedProviders.SILICONFLOW]: BaseProviderConfig;
345
+ [SupportedProviders.CEREBRAS]: BaseProviderConfig;
346
+ [SupportedProviders.INFERENCE_NET]: BaseProviderConfig;
347
+ [SupportedProviders.SAMBANOVA]: BaseProviderConfig;
348
+ [SupportedProviders.LEMONFOX_AI]: BaseProviderConfig;
349
+ [SupportedProviders.UPSTAGE]: BaseProviderConfig;
350
+ [SupportedProviders.LAMBDA]: BaseProviderConfig;
351
+ [SupportedProviders.DASHSCOPE]: BaseProviderConfig;
352
+ [SupportedProviders.X_AI]: BaseProviderConfig;
353
+ [SupportedProviders.QDRANT]: BaseProviderConfig;
354
+ [SupportedProviders.NEBIUS]: BaseProviderConfig;
355
+ [SupportedProviders.RECRAFT_AI]: BaseProviderConfig;
356
+ [SupportedProviders.MILVUS]: BaseProviderConfig;
357
+ [SupportedProviders.REPLICATE]: BaseProviderConfig;
358
+ [SupportedProviders.LEPTON]: BaseProviderConfig;
359
+ [SupportedProviders.KLUSTER_AI]: BaseProviderConfig;
360
+ [SupportedProviders.NSCALE]: BaseProviderConfig;
361
+ [SupportedProviders.HYPERBOLIC]: BaseProviderConfig;
362
+ [SupportedProviders.BYTEZ]: BaseProviderConfig;
363
+ [SupportedProviders.FEATHERLESS_AI]: BaseProviderConfig;
364
+ [SupportedProviders.KRUTRIM]: BaseProviderConfig;
365
+ [SupportedProviders.AI302]: BaseProviderConfig;
366
+ [SupportedProviders.COMETAPI]: BaseProviderConfig;
367
+ [SupportedProviders.MATTERAI]: BaseProviderConfig;
368
+ [SupportedProviders.MESHY]: BaseProviderConfig;
369
+ [SupportedProviders.NEXTBIT]: BaseProviderConfig;
370
+ [SupportedProviders.TRIPO3D]: BaseProviderConfig;
371
+ [SupportedProviders.MODAL]: BaseProviderConfig;
372
+ [SupportedProviders.Z_AI]: BaseProviderConfig;
373
+ [SupportedProviders.IOINTELLIGENCE]: BaseProviderConfig;
374
+ [SupportedProviders.AIBADGR]: BaseProviderConfig;
375
+ }
376
+ /**
377
+ * Union of all possible provider configs
378
+ */
379
+ type AnyProviderConfig = ProviderConfigMap[SupportedProviders];
380
+ /**
381
+ * Partial provider configurations - all providers are optional
382
+ */
383
+ type ProvidersConfig = { [K in SupportedProviders]?: ProviderConfigMap[K] };
384
+ //#endregion
385
+ //#region src/schemas/config.d.ts
386
+ /**
387
+ * Auto-migration configuration options:
388
+ * - true: Always run migrations on startup
389
+ * - false: Never run migrations on startup (default)
390
+ * - 'development': Only run migrations when NODE_ENV is 'development'
391
+ */
392
+ type AutoMigrateConfig = boolean | 'development';
393
+ declare const llmopsConfigSchema: z.ZodObject<{
394
+ database: z.ZodAny;
395
+ auth: z.ZodObject<{
396
+ type: z.ZodLiteral<"basic">;
397
+ defaultUser: z.ZodString;
398
+ defaultPassword: z.ZodString;
399
+ }, z.core.$strip>;
400
+ basePath: z.ZodString;
401
+ providers: z.ZodObject<{
402
+ openai: z.ZodOptional<z.ZodObject<{
403
+ apiKey: z.ZodString;
404
+ customHost: z.ZodOptional<z.ZodString>;
405
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
406
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
+ }, z.core.$loose>>;
408
+ cohere: z.ZodOptional<z.ZodObject<{
409
+ apiKey: z.ZodString;
410
+ customHost: z.ZodOptional<z.ZodString>;
411
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
412
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
413
+ }, z.core.$loose>>;
414
+ anthropic: z.ZodOptional<z.ZodObject<{
415
+ apiKey: z.ZodString;
416
+ customHost: z.ZodOptional<z.ZodString>;
417
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
418
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ }, z.core.$loose>>;
420
+ "azure-openai": z.ZodOptional<z.ZodObject<{
421
+ apiKey: z.ZodString;
422
+ customHost: z.ZodOptional<z.ZodString>;
423
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
424
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
425
+ }, z.core.$loose>>;
426
+ huggingface: z.ZodOptional<z.ZodObject<{
427
+ apiKey: z.ZodString;
428
+ customHost: z.ZodOptional<z.ZodString>;
429
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
430
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
431
+ }, z.core.$loose>>;
432
+ anyscale: z.ZodOptional<z.ZodObject<{
433
+ apiKey: z.ZodString;
434
+ customHost: z.ZodOptional<z.ZodString>;
435
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
436
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
437
+ }, z.core.$loose>>;
438
+ palm: z.ZodOptional<z.ZodObject<{
439
+ apiKey: z.ZodString;
440
+ customHost: z.ZodOptional<z.ZodString>;
441
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
442
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
+ }, z.core.$loose>>;
444
+ "together-ai": z.ZodOptional<z.ZodObject<{
445
+ apiKey: z.ZodString;
446
+ customHost: z.ZodOptional<z.ZodString>;
447
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
448
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
449
+ }, z.core.$loose>>;
450
+ google: z.ZodOptional<z.ZodObject<{
451
+ apiKey: z.ZodString;
452
+ customHost: z.ZodOptional<z.ZodString>;
453
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
454
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
455
+ }, z.core.$loose>>;
456
+ "vertex-ai": z.ZodOptional<z.ZodObject<{
457
+ apiKey: z.ZodString;
458
+ customHost: z.ZodOptional<z.ZodString>;
459
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
460
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
461
+ }, z.core.$loose>>;
462
+ "perplexity-ai": z.ZodOptional<z.ZodObject<{
463
+ apiKey: z.ZodString;
464
+ customHost: z.ZodOptional<z.ZodString>;
465
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
466
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
467
+ }, z.core.$loose>>;
468
+ "mistral-ai": z.ZodOptional<z.ZodObject<{
469
+ apiKey: z.ZodString;
470
+ customHost: z.ZodOptional<z.ZodString>;
471
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
472
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
473
+ }, z.core.$loose>>;
474
+ deepinfra: z.ZodOptional<z.ZodObject<{
475
+ apiKey: z.ZodString;
476
+ customHost: z.ZodOptional<z.ZodString>;
477
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
478
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
+ }, z.core.$loose>>;
480
+ ncompass: z.ZodOptional<z.ZodObject<{
481
+ apiKey: z.ZodString;
482
+ customHost: z.ZodOptional<z.ZodString>;
483
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
484
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
+ }, z.core.$loose>>;
486
+ "stability-ai": z.ZodOptional<z.ZodObject<{
487
+ apiKey: z.ZodString;
488
+ customHost: z.ZodOptional<z.ZodString>;
489
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
490
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
491
+ }, z.core.$loose>>;
492
+ nomic: z.ZodOptional<z.ZodObject<{
493
+ apiKey: z.ZodString;
494
+ customHost: z.ZodOptional<z.ZodString>;
495
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
496
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
497
+ }, z.core.$loose>>;
498
+ ollama: z.ZodOptional<z.ZodObject<{
499
+ apiKey: z.ZodString;
500
+ customHost: z.ZodOptional<z.ZodString>;
501
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
502
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
503
+ }, z.core.$loose>>;
504
+ ai21: z.ZodOptional<z.ZodObject<{
505
+ apiKey: z.ZodString;
506
+ customHost: z.ZodOptional<z.ZodString>;
507
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
508
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
509
+ }, z.core.$loose>>;
510
+ bedrock: z.ZodOptional<z.ZodObject<{
511
+ apiKey: z.ZodString;
512
+ customHost: z.ZodOptional<z.ZodString>;
513
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
514
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
+ }, z.core.$loose>>;
516
+ groq: z.ZodOptional<z.ZodObject<{
517
+ apiKey: z.ZodString;
518
+ customHost: z.ZodOptional<z.ZodString>;
519
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
520
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
+ }, z.core.$loose>>;
522
+ segmind: z.ZodOptional<z.ZodObject<{
523
+ apiKey: z.ZodString;
524
+ customHost: z.ZodOptional<z.ZodString>;
525
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
526
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
527
+ }, z.core.$loose>>;
528
+ jina: z.ZodOptional<z.ZodObject<{
529
+ apiKey: z.ZodString;
530
+ customHost: z.ZodOptional<z.ZodString>;
531
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
532
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
533
+ }, z.core.$loose>>;
534
+ "fireworks-ai": z.ZodOptional<z.ZodObject<{
535
+ apiKey: z.ZodString;
536
+ customHost: z.ZodOptional<z.ZodString>;
537
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
538
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
539
+ }, z.core.$loose>>;
540
+ "workers-ai": z.ZodOptional<z.ZodObject<{
541
+ apiKey: z.ZodString;
542
+ customHost: z.ZodOptional<z.ZodString>;
543
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
544
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
545
+ }, z.core.$loose>>;
546
+ "reka-ai": z.ZodOptional<z.ZodObject<{
547
+ apiKey: z.ZodString;
548
+ customHost: z.ZodOptional<z.ZodString>;
549
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
550
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
551
+ }, z.core.$loose>>;
552
+ moonshot: z.ZodOptional<z.ZodObject<{
553
+ apiKey: z.ZodString;
554
+ customHost: z.ZodOptional<z.ZodString>;
555
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
556
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
557
+ }, z.core.$loose>>;
558
+ openrouter: z.ZodOptional<z.ZodObject<{
559
+ apiKey: z.ZodString;
560
+ customHost: z.ZodOptional<z.ZodString>;
561
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
562
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
563
+ }, z.core.$loose>>;
564
+ lingyi: z.ZodOptional<z.ZodObject<{
565
+ apiKey: z.ZodString;
566
+ customHost: z.ZodOptional<z.ZodString>;
567
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
568
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
+ }, z.core.$loose>>;
570
+ zhipu: z.ZodOptional<z.ZodObject<{
571
+ apiKey: z.ZodString;
572
+ customHost: z.ZodOptional<z.ZodString>;
573
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
574
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
575
+ }, z.core.$loose>>;
576
+ "novita-ai": z.ZodOptional<z.ZodObject<{
577
+ apiKey: z.ZodString;
578
+ customHost: z.ZodOptional<z.ZodString>;
579
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
580
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
581
+ }, z.core.$loose>>;
582
+ monsterapi: z.ZodOptional<z.ZodObject<{
583
+ apiKey: z.ZodString;
584
+ customHost: z.ZodOptional<z.ZodString>;
585
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
586
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
587
+ }, z.core.$loose>>;
588
+ deepseek: z.ZodOptional<z.ZodObject<{
589
+ apiKey: z.ZodString;
590
+ customHost: z.ZodOptional<z.ZodString>;
591
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
592
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
593
+ }, z.core.$loose>>;
594
+ predibase: z.ZodOptional<z.ZodObject<{
595
+ apiKey: z.ZodString;
596
+ customHost: z.ZodOptional<z.ZodString>;
597
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
598
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
599
+ }, z.core.$loose>>;
600
+ triton: z.ZodOptional<z.ZodObject<{
601
+ apiKey: z.ZodString;
602
+ customHost: z.ZodOptional<z.ZodString>;
603
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
604
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
605
+ }, z.core.$loose>>;
606
+ voyage: z.ZodOptional<z.ZodObject<{
607
+ apiKey: z.ZodString;
608
+ customHost: z.ZodOptional<z.ZodString>;
609
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
610
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
611
+ }, z.core.$loose>>;
612
+ "azure-ai": z.ZodOptional<z.ZodObject<{
613
+ apiKey: z.ZodString;
614
+ customHost: z.ZodOptional<z.ZodString>;
615
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
616
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
617
+ }, z.core.$loose>>;
618
+ github: z.ZodOptional<z.ZodObject<{
619
+ apiKey: z.ZodString;
620
+ customHost: z.ZodOptional<z.ZodString>;
621
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
622
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
623
+ }, z.core.$loose>>;
624
+ deepbricks: z.ZodOptional<z.ZodObject<{
625
+ apiKey: z.ZodString;
626
+ customHost: z.ZodOptional<z.ZodString>;
627
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
628
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
629
+ }, z.core.$loose>>;
630
+ siliconflow: z.ZodOptional<z.ZodObject<{
631
+ apiKey: z.ZodString;
632
+ customHost: z.ZodOptional<z.ZodString>;
633
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
634
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
635
+ }, z.core.$loose>>;
636
+ cerebras: z.ZodOptional<z.ZodObject<{
637
+ apiKey: z.ZodString;
638
+ customHost: z.ZodOptional<z.ZodString>;
639
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
640
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
641
+ }, z.core.$loose>>;
642
+ "inference-net": z.ZodOptional<z.ZodObject<{
643
+ apiKey: z.ZodString;
644
+ customHost: z.ZodOptional<z.ZodString>;
645
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
646
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
647
+ }, z.core.$loose>>;
648
+ sambanova: z.ZodOptional<z.ZodObject<{
649
+ apiKey: z.ZodString;
650
+ customHost: z.ZodOptional<z.ZodString>;
651
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
652
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
653
+ }, z.core.$loose>>;
654
+ "lemonfox-ai": z.ZodOptional<z.ZodObject<{
655
+ apiKey: z.ZodString;
656
+ customHost: z.ZodOptional<z.ZodString>;
657
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
658
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
659
+ }, z.core.$loose>>;
660
+ upstage: z.ZodOptional<z.ZodObject<{
661
+ apiKey: z.ZodString;
662
+ customHost: z.ZodOptional<z.ZodString>;
663
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
664
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
+ }, z.core.$loose>>;
666
+ lambda: z.ZodOptional<z.ZodObject<{
667
+ apiKey: z.ZodString;
668
+ customHost: z.ZodOptional<z.ZodString>;
669
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
670
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
671
+ }, z.core.$loose>>;
672
+ dashscope: z.ZodOptional<z.ZodObject<{
673
+ apiKey: z.ZodString;
674
+ customHost: z.ZodOptional<z.ZodString>;
675
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
676
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
677
+ }, z.core.$loose>>;
678
+ "x-ai": z.ZodOptional<z.ZodObject<{
679
+ apiKey: z.ZodString;
680
+ customHost: z.ZodOptional<z.ZodString>;
681
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
682
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
683
+ }, z.core.$loose>>;
684
+ qdrant: z.ZodOptional<z.ZodObject<{
685
+ apiKey: z.ZodString;
686
+ customHost: z.ZodOptional<z.ZodString>;
687
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
688
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
689
+ }, z.core.$loose>>;
690
+ sagemaker: z.ZodOptional<z.ZodObject<{
691
+ apiKey: z.ZodString;
692
+ customHost: z.ZodOptional<z.ZodString>;
693
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
694
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
695
+ }, z.core.$loose>>;
696
+ nebius: z.ZodOptional<z.ZodObject<{
697
+ apiKey: z.ZodString;
698
+ customHost: z.ZodOptional<z.ZodString>;
699
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
700
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
701
+ }, z.core.$loose>>;
702
+ "recraft-ai": z.ZodOptional<z.ZodObject<{
703
+ apiKey: z.ZodString;
704
+ customHost: z.ZodOptional<z.ZodString>;
705
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
706
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
707
+ }, z.core.$loose>>;
708
+ milvus: z.ZodOptional<z.ZodObject<{
709
+ apiKey: z.ZodString;
710
+ customHost: z.ZodOptional<z.ZodString>;
711
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
712
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
713
+ }, z.core.$loose>>;
714
+ replicate: z.ZodOptional<z.ZodObject<{
715
+ apiKey: z.ZodString;
716
+ customHost: z.ZodOptional<z.ZodString>;
717
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
718
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
719
+ }, z.core.$loose>>;
720
+ lepton: z.ZodOptional<z.ZodObject<{
721
+ apiKey: z.ZodString;
722
+ customHost: z.ZodOptional<z.ZodString>;
723
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
724
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
725
+ }, z.core.$loose>>;
726
+ "kluster-ai": z.ZodOptional<z.ZodObject<{
727
+ apiKey: z.ZodString;
728
+ customHost: z.ZodOptional<z.ZodString>;
729
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
730
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
731
+ }, z.core.$loose>>;
732
+ nscale: z.ZodOptional<z.ZodObject<{
733
+ apiKey: z.ZodString;
734
+ customHost: z.ZodOptional<z.ZodString>;
735
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
736
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
737
+ }, z.core.$loose>>;
738
+ hyperbolic: z.ZodOptional<z.ZodObject<{
739
+ apiKey: z.ZodString;
740
+ customHost: z.ZodOptional<z.ZodString>;
741
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
742
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
743
+ }, z.core.$loose>>;
744
+ bytez: z.ZodOptional<z.ZodObject<{
745
+ apiKey: z.ZodString;
746
+ customHost: z.ZodOptional<z.ZodString>;
747
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
748
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
749
+ }, z.core.$loose>>;
750
+ "featherless-ai": z.ZodOptional<z.ZodObject<{
751
+ apiKey: z.ZodString;
752
+ customHost: z.ZodOptional<z.ZodString>;
753
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
754
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
755
+ }, z.core.$loose>>;
756
+ krutrim: z.ZodOptional<z.ZodObject<{
757
+ apiKey: z.ZodString;
758
+ customHost: z.ZodOptional<z.ZodString>;
759
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
760
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
761
+ }, z.core.$loose>>;
762
+ "302ai": z.ZodOptional<z.ZodObject<{
763
+ apiKey: z.ZodString;
764
+ customHost: z.ZodOptional<z.ZodString>;
765
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
766
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
767
+ }, z.core.$loose>>;
768
+ cometapi: z.ZodOptional<z.ZodObject<{
769
+ apiKey: z.ZodString;
770
+ customHost: z.ZodOptional<z.ZodString>;
771
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
772
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
773
+ }, z.core.$loose>>;
774
+ matterai: z.ZodOptional<z.ZodObject<{
775
+ apiKey: z.ZodString;
776
+ customHost: z.ZodOptional<z.ZodString>;
777
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
778
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
779
+ }, z.core.$loose>>;
780
+ meshy: z.ZodOptional<z.ZodObject<{
781
+ apiKey: z.ZodString;
782
+ customHost: z.ZodOptional<z.ZodString>;
783
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
784
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
785
+ }, z.core.$loose>>;
786
+ nextbit: z.ZodOptional<z.ZodObject<{
787
+ apiKey: z.ZodString;
788
+ customHost: z.ZodOptional<z.ZodString>;
789
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
790
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
791
+ }, z.core.$loose>>;
792
+ tripo3d: z.ZodOptional<z.ZodObject<{
793
+ apiKey: z.ZodString;
794
+ customHost: z.ZodOptional<z.ZodString>;
795
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
796
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
797
+ }, z.core.$loose>>;
798
+ modal: z.ZodOptional<z.ZodObject<{
799
+ apiKey: z.ZodString;
800
+ customHost: z.ZodOptional<z.ZodString>;
801
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
802
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
803
+ }, z.core.$loose>>;
804
+ "z-ai": z.ZodOptional<z.ZodObject<{
805
+ apiKey: z.ZodString;
806
+ customHost: z.ZodOptional<z.ZodString>;
807
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
808
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
809
+ }, z.core.$loose>>;
810
+ oracle: z.ZodOptional<z.ZodObject<{
811
+ apiKey: z.ZodString;
812
+ customHost: z.ZodOptional<z.ZodString>;
813
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
814
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
815
+ }, z.core.$loose>>;
816
+ iointelligence: z.ZodOptional<z.ZodObject<{
817
+ apiKey: z.ZodString;
818
+ customHost: z.ZodOptional<z.ZodString>;
819
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
820
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
+ }, z.core.$loose>>;
822
+ aibadgr: z.ZodOptional<z.ZodObject<{
823
+ apiKey: z.ZodString;
824
+ customHost: z.ZodOptional<z.ZodString>;
825
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
826
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
827
+ }, z.core.$loose>>;
828
+ }, z.core.$strip>;
829
+ autoMigrate: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"development">]>>>;
830
+ }, z.core.$strip>;
831
+ /**
832
+ * Validated LLMOps configuration with typed providers
833
+ * Uses ProvidersConfig for proper provider-specific typing
834
+ *
835
+ * Note: autoMigrate is optional in input but always present after validation
836
+ */
837
+ type ValidatedLLMOpsConfig = Omit<z.infer<typeof llmopsConfigSchema>, 'providers' | 'autoMigrate'> & {
838
+ providers: ProvidersConfig;
839
+ autoMigrate?: AutoMigrateConfig;
840
+ };
841
+ declare function validateLLMOpsConfig(config: unknown): ValidatedLLMOpsConfig;
842
+ //#endregion
843
+ //#region src/types/helper.d.ts
844
+ /**
845
+ * @references From better-auth
846
+ */
847
+ type Prettify<T> = Omit<T, never>;
848
+ //#endregion
849
+ //#region src/types/index.d.ts
850
+ type LLMOpsConfig = ValidatedLLMOpsConfig;
851
+ type LLMOpsClient = {
852
+ handler: (request: Request) => Promise<Response>;
853
+ config: LLMOpsConfig;
854
+ };
855
+ //#endregion
856
+ //#region src/schemas/openai.d.ts
857
+ declare const chatCompletionCreateParamsBaseSchema: z.ZodObject<{
858
+ messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
859
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
860
+ text: z.ZodString;
861
+ type: z.ZodLiteral<"text">;
862
+ }, z.core.$strip>>]>;
863
+ role: z.ZodLiteral<"developer">;
864
+ name: z.ZodOptional<z.ZodString>;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
867
+ text: z.ZodString;
868
+ type: z.ZodLiteral<"text">;
869
+ }, z.core.$strip>>]>;
870
+ role: z.ZodLiteral<"system">;
871
+ name: z.ZodOptional<z.ZodString>;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
874
+ text: z.ZodString;
875
+ type: z.ZodLiteral<"text">;
876
+ }, z.core.$strip>, z.ZodObject<{
877
+ image_url: z.ZodObject<{
878
+ url: z.ZodString;
879
+ detail: z.ZodOptional<z.ZodEnum<{
880
+ auto: "auto";
881
+ low: "low";
882
+ high: "high";
883
+ }>>;
884
+ }, z.core.$strip>;
885
+ type: z.ZodLiteral<"image_url">;
886
+ }, z.core.$strip>, z.ZodObject<{
887
+ input_audio: z.ZodObject<{
888
+ data: z.ZodString;
889
+ format: z.ZodEnum<{
890
+ wav: "wav";
891
+ mp3: "mp3";
892
+ }>;
893
+ }, z.core.$strip>;
894
+ type: z.ZodLiteral<"input_audio">;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ file: z.ZodObject<{
897
+ file_data: z.ZodOptional<z.ZodString>;
898
+ file_id: z.ZodOptional<z.ZodString>;
899
+ filename: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strip>;
901
+ type: z.ZodLiteral<"file">;
902
+ }, z.core.$strip>]>>]>;
903
+ role: z.ZodLiteral<"user">;
904
+ name: z.ZodOptional<z.ZodString>;
905
+ }, z.core.$strip>, z.ZodObject<{
906
+ role: z.ZodLiteral<"assistant">;
907
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
908
+ id: z.ZodString;
909
+ }, z.core.$strip>>>;
910
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
911
+ text: z.ZodString;
912
+ type: z.ZodLiteral<"text">;
913
+ }, z.core.$strip>, z.ZodObject<{
914
+ refusal: z.ZodString;
915
+ type: z.ZodLiteral<"refusal">;
916
+ }, z.core.$strip>]>>]>>>;
917
+ function_call: z.ZodNullable<z.ZodOptional<z.ZodObject<{
918
+ arguments: z.ZodString;
919
+ name: z.ZodString;
920
+ }, z.core.$strip>>>;
921
+ name: z.ZodOptional<z.ZodString>;
922
+ refusal: z.ZodNullable<z.ZodOptional<z.ZodString>>;
923
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
924
+ id: z.ZodString;
925
+ function: z.ZodObject<{
926
+ arguments: z.ZodString;
927
+ name: z.ZodString;
928
+ }, z.core.$strip>;
929
+ type: z.ZodLiteral<"function">;
930
+ }, z.core.$strip>>>;
931
+ }, z.core.$strip>, z.ZodObject<{
932
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
933
+ text: z.ZodString;
934
+ type: z.ZodLiteral<"text">;
935
+ }, z.core.$strip>>]>;
936
+ role: z.ZodLiteral<"tool">;
937
+ tool_call_id: z.ZodString;
938
+ }, z.core.$strip>, z.ZodObject<{
939
+ content: z.ZodNullable<z.ZodString>;
940
+ name: z.ZodString;
941
+ role: z.ZodLiteral<"function">;
942
+ }, z.core.$strip>]>>;
943
+ model: z.ZodString;
944
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
945
+ format: z.ZodEnum<{
946
+ wav: "wav";
947
+ mp3: "mp3";
948
+ aac: "aac";
949
+ flac: "flac";
950
+ opus: "opus";
951
+ pcm16: "pcm16";
952
+ }>;
953
+ voice: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
954
+ alloy: "alloy";
955
+ ash: "ash";
956
+ ballad: "ballad";
957
+ coral: "coral";
958
+ echo: "echo";
959
+ sage: "sage";
960
+ shimmer: "shimmer";
961
+ verse: "verse";
962
+ marin: "marin";
963
+ cedar: "cedar";
964
+ }>]>;
965
+ }, z.core.$strip>>>;
966
+ frequency_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
967
+ function_call: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
968
+ auto: "auto";
969
+ none: "none";
970
+ }>, z.ZodObject<{
971
+ name: z.ZodString;
972
+ }, z.core.$strip>]>>;
973
+ functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
974
+ name: z.ZodString;
975
+ description: z.ZodOptional<z.ZodString>;
976
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
977
+ }, z.core.$strip>>>;
978
+ logit_bias: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
979
+ logprobs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
980
+ max_completion_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
981
+ max_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
982
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
983
+ modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
984
+ text: "text";
985
+ audio: "audio";
986
+ }>>>>;
987
+ n: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
988
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
989
+ prediction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
990
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
991
+ text: z.ZodString;
992
+ type: z.ZodLiteral<"text">;
993
+ }, z.core.$strip>>]>;
994
+ type: z.ZodLiteral<"content">;
995
+ }, z.core.$strip>>>;
996
+ presence_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
997
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
998
+ prompt_cache_retention: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
999
+ "in-memory": "in-memory";
1000
+ "24h": "24h";
1001
+ }>>>;
1002
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1003
+ low: "low";
1004
+ high: "high";
1005
+ none: "none";
1006
+ minimal: "minimal";
1007
+ medium: "medium";
1008
+ xhigh: "xhigh";
1009
+ }>>>;
1010
+ response_format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1011
+ type: z.ZodLiteral<"text">;
1012
+ }, z.core.$strip>, z.ZodObject<{
1013
+ type: z.ZodLiteral<"json_object">;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ type: z.ZodLiteral<"json_schema">;
1016
+ json_schema: z.ZodObject<{
1017
+ name: z.ZodString;
1018
+ description: z.ZodOptional<z.ZodString>;
1019
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1020
+ strict: z.ZodOptional<z.ZodBoolean>;
1021
+ }, z.core.$strip>;
1022
+ }, z.core.$strip>]>>;
1023
+ safety_identifier: z.ZodOptional<z.ZodString>;
1024
+ seed: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1025
+ service_tier: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1026
+ default: "default";
1027
+ priority: "priority";
1028
+ auto: "auto";
1029
+ flex: "flex";
1030
+ scale: "scale";
1031
+ }>>>;
1032
+ stop: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1033
+ store: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1034
+ stream: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1035
+ stream_options: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1036
+ include_obfuscation: z.ZodOptional<z.ZodBoolean>;
1037
+ include_usage: z.ZodOptional<z.ZodBoolean>;
1038
+ }, z.core.$strip>>>;
1039
+ temperature: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1040
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1041
+ auto: "auto";
1042
+ none: "none";
1043
+ required: "required";
1044
+ }>, z.ZodObject<{
1045
+ allowed_tools: z.ZodObject<{
1046
+ mode: z.ZodEnum<{
1047
+ auto: "auto";
1048
+ required: "required";
1049
+ }>;
1050
+ tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1051
+ }, z.core.$strip>;
1052
+ type: z.ZodLiteral<"allowed_tools">;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ function: z.ZodObject<{
1055
+ name: z.ZodString;
1056
+ }, z.core.$strip>;
1057
+ type: z.ZodLiteral<"function">;
1058
+ }, z.core.$strip>, z.ZodObject<{
1059
+ custom: z.ZodObject<{
1060
+ name: z.ZodString;
1061
+ }, z.core.$strip>;
1062
+ type: z.ZodLiteral<"custom">;
1063
+ }, z.core.$strip>]>>;
1064
+ tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1065
+ function: z.ZodObject<{
1066
+ name: z.ZodString;
1067
+ description: z.ZodOptional<z.ZodString>;
1068
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1069
+ }, z.core.$strip>;
1070
+ type: z.ZodLiteral<"function">;
1071
+ }, z.core.$strip>, z.ZodObject<{
1072
+ custom: z.ZodObject<{
1073
+ name: z.ZodString;
1074
+ description: z.ZodOptional<z.ZodString>;
1075
+ format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1076
+ type: z.ZodLiteral<"text">;
1077
+ }, z.core.$strip>, z.ZodObject<{
1078
+ grammar: z.ZodObject<{
1079
+ definition: z.ZodString;
1080
+ syntax: z.ZodEnum<{
1081
+ lark: "lark";
1082
+ regex: "regex";
1083
+ }>;
1084
+ }, z.core.$strip>;
1085
+ type: z.ZodLiteral<"grammar">;
1086
+ }, z.core.$strip>]>>;
1087
+ }, z.core.$strip>;
1088
+ type: z.ZodLiteral<"custom">;
1089
+ }, z.core.$strip>]>>>;
1090
+ top_logprobs: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1091
+ top_p: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1092
+ user: z.ZodOptional<z.ZodString>;
1093
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1094
+ low: "low";
1095
+ high: "high";
1096
+ medium: "medium";
1097
+ }>>>;
1098
+ web_search_options: z.ZodOptional<z.ZodObject<{
1099
+ search_context_size: z.ZodOptional<z.ZodEnum<{
1100
+ low: "low";
1101
+ high: "high";
1102
+ medium: "medium";
1103
+ }>>;
1104
+ user_location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1105
+ approximate: z.ZodObject<{
1106
+ city: z.ZodOptional<z.ZodString>;
1107
+ country: z.ZodOptional<z.ZodString>;
1108
+ region: z.ZodOptional<z.ZodString>;
1109
+ timezone: z.ZodOptional<z.ZodString>;
1110
+ }, z.core.$strip>;
1111
+ type: z.ZodLiteral<"approximate">;
1112
+ }, z.core.$strip>>>;
1113
+ }, z.core.$strip>>;
1114
+ }, z.core.$strip>;
1115
+ type ChatCompletionCreateParamsBase = z.infer<typeof chatCompletionCreateParamsBaseSchema>;
1116
+ /**
1117
+ * Schema for variant jsonData - these are the parameters that can be
1118
+ * configured per variant to override the default chat completion settings.
1119
+ * This is a subset of ChatCompletionCreateParamsBase that makes sense to
1120
+ * configure at the variant level (excludes messages which come from the request).
1121
+ */
1122
+ declare const variantJsonDataSchema: z.ZodObject<{
1123
+ system_prompt: z.ZodOptional<z.ZodString>;
1124
+ model: z.ZodOptional<z.ZodString>;
1125
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1126
+ format: z.ZodEnum<{
1127
+ wav: "wav";
1128
+ mp3: "mp3";
1129
+ aac: "aac";
1130
+ flac: "flac";
1131
+ opus: "opus";
1132
+ pcm16: "pcm16";
1133
+ }>;
1134
+ voice: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
1135
+ alloy: "alloy";
1136
+ ash: "ash";
1137
+ ballad: "ballad";
1138
+ coral: "coral";
1139
+ echo: "echo";
1140
+ sage: "sage";
1141
+ shimmer: "shimmer";
1142
+ verse: "verse";
1143
+ marin: "marin";
1144
+ cedar: "cedar";
1145
+ }>]>;
1146
+ }, z.core.$strip>>>;
1147
+ frequency_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1148
+ function_call: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1149
+ auto: "auto";
1150
+ none: "none";
1151
+ }>, z.ZodObject<{
1152
+ name: z.ZodString;
1153
+ }, z.core.$strip>]>>;
1154
+ functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
+ name: z.ZodString;
1156
+ description: z.ZodOptional<z.ZodString>;
1157
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1158
+ }, z.core.$strip>>>;
1159
+ logit_bias: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
1160
+ logprobs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1161
+ max_completion_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1162
+ max_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1163
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1164
+ modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1165
+ text: "text";
1166
+ audio: "audio";
1167
+ }>>>>;
1168
+ n: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1169
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
1170
+ prediction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1171
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
1172
+ text: z.ZodString;
1173
+ type: z.ZodLiteral<"text">;
1174
+ }, z.core.$strip>>]>;
1175
+ type: z.ZodLiteral<"content">;
1176
+ }, z.core.$strip>>>;
1177
+ presence_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1178
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
1179
+ prompt_cache_retention: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1180
+ "in-memory": "in-memory";
1181
+ "24h": "24h";
1182
+ }>>>;
1183
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1184
+ low: "low";
1185
+ high: "high";
1186
+ none: "none";
1187
+ minimal: "minimal";
1188
+ medium: "medium";
1189
+ xhigh: "xhigh";
1190
+ }>>>;
1191
+ response_format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1192
+ type: z.ZodLiteral<"text">;
1193
+ }, z.core.$strip>, z.ZodObject<{
1194
+ type: z.ZodLiteral<"json_object">;
1195
+ }, z.core.$strip>, z.ZodObject<{
1196
+ type: z.ZodLiteral<"json_schema">;
1197
+ json_schema: z.ZodObject<{
1198
+ name: z.ZodString;
1199
+ description: z.ZodOptional<z.ZodString>;
1200
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1201
+ strict: z.ZodOptional<z.ZodBoolean>;
1202
+ }, z.core.$strip>;
1203
+ }, z.core.$strip>]>>;
1204
+ safety_identifier: z.ZodOptional<z.ZodString>;
1205
+ seed: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1206
+ service_tier: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1207
+ default: "default";
1208
+ priority: "priority";
1209
+ auto: "auto";
1210
+ flex: "flex";
1211
+ scale: "scale";
1212
+ }>>>;
1213
+ stop: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1214
+ store: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1215
+ stream: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1216
+ stream_options: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1217
+ include_obfuscation: z.ZodOptional<z.ZodBoolean>;
1218
+ include_usage: z.ZodOptional<z.ZodBoolean>;
1219
+ }, z.core.$strip>>>;
1220
+ temperature: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1221
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1222
+ auto: "auto";
1223
+ none: "none";
1224
+ required: "required";
1225
+ }>, z.ZodObject<{
1226
+ allowed_tools: z.ZodObject<{
1227
+ mode: z.ZodEnum<{
1228
+ auto: "auto";
1229
+ required: "required";
1230
+ }>;
1231
+ tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1232
+ }, z.core.$strip>;
1233
+ type: z.ZodLiteral<"allowed_tools">;
1234
+ }, z.core.$strip>, z.ZodObject<{
1235
+ function: z.ZodObject<{
1236
+ name: z.ZodString;
1237
+ }, z.core.$strip>;
1238
+ type: z.ZodLiteral<"function">;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ custom: z.ZodObject<{
1241
+ name: z.ZodString;
1242
+ }, z.core.$strip>;
1243
+ type: z.ZodLiteral<"custom">;
1244
+ }, z.core.$strip>]>>;
1245
+ tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1246
+ function: z.ZodObject<{
1247
+ name: z.ZodString;
1248
+ description: z.ZodOptional<z.ZodString>;
1249
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1250
+ }, z.core.$strip>;
1251
+ type: z.ZodLiteral<"function">;
1252
+ }, z.core.$strip>, z.ZodObject<{
1253
+ custom: z.ZodObject<{
1254
+ name: z.ZodString;
1255
+ description: z.ZodOptional<z.ZodString>;
1256
+ format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1257
+ type: z.ZodLiteral<"text">;
1258
+ }, z.core.$strip>, z.ZodObject<{
1259
+ grammar: z.ZodObject<{
1260
+ definition: z.ZodString;
1261
+ syntax: z.ZodEnum<{
1262
+ lark: "lark";
1263
+ regex: "regex";
1264
+ }>;
1265
+ }, z.core.$strip>;
1266
+ type: z.ZodLiteral<"grammar">;
1267
+ }, z.core.$strip>]>>;
1268
+ }, z.core.$strip>;
1269
+ type: z.ZodLiteral<"custom">;
1270
+ }, z.core.$strip>]>>>;
1271
+ top_logprobs: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1272
+ top_p: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1273
+ user: z.ZodOptional<z.ZodString>;
1274
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1275
+ low: "low";
1276
+ high: "high";
1277
+ medium: "medium";
1278
+ }>>>;
1279
+ web_search_options: z.ZodOptional<z.ZodObject<{
1280
+ search_context_size: z.ZodOptional<z.ZodEnum<{
1281
+ low: "low";
1282
+ high: "high";
1283
+ medium: "medium";
1284
+ }>>;
1285
+ user_location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1286
+ approximate: z.ZodObject<{
1287
+ city: z.ZodOptional<z.ZodString>;
1288
+ country: z.ZodOptional<z.ZodString>;
1289
+ region: z.ZodOptional<z.ZodString>;
1290
+ timezone: z.ZodOptional<z.ZodString>;
1291
+ }, z.core.$strip>;
1292
+ type: z.ZodLiteral<"approximate">;
1293
+ }, z.core.$strip>>>;
1294
+ }, z.core.$strip>>;
1295
+ }, z.core.$strip>;
1296
+ type VariantJsonData = z.infer<typeof variantJsonDataSchema>;
1297
+ //#endregion
1298
+ //#region src/utils/logger.d.ts
1299
+ declare const logger: pino.Logger<never, boolean>;
1300
+ //#endregion
1301
+ //#region src/utils/id.d.ts
1302
+ declare const generateId: (size?: number) => string;
1303
+ //#endregion
1304
+ //#region src/datalayer/index.d.ts
1305
+ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
1306
+ createVariantVersion: (params: zod21.infer<zod21.ZodObject<{
1307
+ variantId: zod21.ZodString;
1308
+ provider: zod21.ZodString;
1309
+ modelName: zod21.ZodString;
1310
+ jsonData: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodRecord<zod21.ZodString, zod21.ZodUnknown>>>;
1311
+ }, zod_v4_core0.$strip>>) => Promise<{
1312
+ version: number;
1313
+ id: string;
1314
+ createdAt: Date;
1315
+ updatedAt: Date;
1316
+ variantId: string;
1317
+ provider: string;
1318
+ modelName: string;
1319
+ jsonData: Record<string, unknown>;
1320
+ } | undefined>;
1321
+ getVariantVersionById: (params: zod21.infer<zod21.ZodObject<{
1322
+ id: zod21.ZodString;
1323
+ }, zod_v4_core0.$strip>>) => Promise<{
1324
+ version: number;
1325
+ id: string;
1326
+ createdAt: Date;
1327
+ updatedAt: Date;
1328
+ variantId: string;
1329
+ provider: string;
1330
+ modelName: string;
1331
+ jsonData: Record<string, unknown>;
1332
+ } | undefined>;
1333
+ getVariantVersionsByVariantId: (params: zod21.infer<zod21.ZodObject<{
1334
+ variantId: zod21.ZodString;
1335
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1336
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1337
+ }, zod_v4_core0.$strip>>) => Promise<{
1338
+ version: number;
1339
+ id: string;
1340
+ createdAt: Date;
1341
+ updatedAt: Date;
1342
+ variantId: string;
1343
+ provider: string;
1344
+ modelName: string;
1345
+ jsonData: Record<string, unknown>;
1346
+ }[]>;
1347
+ getLatestVariantVersion: (params: zod21.infer<zod21.ZodObject<{
1348
+ variantId: zod21.ZodString;
1349
+ }, zod_v4_core0.$strip>>) => Promise<{
1350
+ version: number;
1351
+ id: string;
1352
+ createdAt: Date;
1353
+ updatedAt: Date;
1354
+ variantId: string;
1355
+ provider: string;
1356
+ modelName: string;
1357
+ jsonData: Record<string, unknown>;
1358
+ } | undefined>;
1359
+ getVariantVersionByNumber: (params: zod21.infer<zod21.ZodObject<{
1360
+ variantId: zod21.ZodString;
1361
+ version: zod21.ZodNumber;
1362
+ }, zod_v4_core0.$strip>>) => Promise<{
1363
+ version: number;
1364
+ id: string;
1365
+ createdAt: Date;
1366
+ updatedAt: Date;
1367
+ variantId: string;
1368
+ provider: string;
1369
+ modelName: string;
1370
+ jsonData: Record<string, unknown>;
1371
+ } | undefined>;
1372
+ deleteVariantVersion: (params: zod21.infer<zod21.ZodObject<{
1373
+ id: zod21.ZodString;
1374
+ }, zod_v4_core0.$strip>>) => Promise<{
1375
+ version: number;
1376
+ id: string;
1377
+ createdAt: Date;
1378
+ updatedAt: Date;
1379
+ variantId: string;
1380
+ provider: string;
1381
+ modelName: string;
1382
+ jsonData: Record<string, unknown>;
1383
+ } | undefined>;
1384
+ deleteVariantVersionsByVariantId: (params: zod21.infer<zod21.ZodObject<{
1385
+ variantId: zod21.ZodString;
1386
+ }, zod_v4_core0.$strip>>) => Promise<{
1387
+ version: number;
1388
+ id: string;
1389
+ createdAt: Date;
1390
+ updatedAt: Date;
1391
+ variantId: string;
1392
+ provider: string;
1393
+ modelName: string;
1394
+ jsonData: Record<string, unknown>;
1395
+ }[]>;
1396
+ getVariantVersionWithVariant: (params: zod21.infer<zod21.ZodObject<{
1397
+ id: zod21.ZodString;
1398
+ }, zod_v4_core0.$strip>>) => Promise<{
1399
+ version: number;
1400
+ id: string;
1401
+ createdAt: Date;
1402
+ updatedAt: Date;
1403
+ variantId: string;
1404
+ provider: string;
1405
+ modelName: string;
1406
+ jsonData: Record<string, unknown>;
1407
+ variantName: string;
1408
+ } | undefined>;
1409
+ getVariantVersionsWithVariantByVariantId: (params: zod21.infer<zod21.ZodObject<{
1410
+ variantId: zod21.ZodString;
1411
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1412
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1413
+ }, zod_v4_core0.$strip>>) => Promise<{
1414
+ version: number;
1415
+ id: string;
1416
+ createdAt: Date;
1417
+ updatedAt: Date;
1418
+ variantId: string;
1419
+ provider: string;
1420
+ modelName: string;
1421
+ jsonData: Record<string, unknown>;
1422
+ variantName: string;
1423
+ }[]>;
1424
+ createVariant: (params: zod21.infer<zod21.ZodObject<{
1425
+ name: zod21.ZodString;
1426
+ }, zod_v4_core0.$strip>>) => Promise<{
1427
+ name: string;
1428
+ id: string;
1429
+ createdAt: Date;
1430
+ updatedAt: Date;
1431
+ } | undefined>;
1432
+ updateVariant: (params: zod21.infer<zod21.ZodObject<{
1433
+ variantId: zod21.ZodString;
1434
+ name: zod21.ZodOptional<zod21.ZodString>;
1435
+ }, zod_v4_core0.$strip>>) => Promise<{
1436
+ name: string;
1437
+ id: string;
1438
+ createdAt: Date;
1439
+ updatedAt: Date;
1440
+ } | undefined>;
1441
+ getVariantById: (params: zod21.infer<zod21.ZodObject<{
1442
+ variantId: zod21.ZodString;
1443
+ }, zod_v4_core0.$strip>>) => Promise<{
1444
+ name: string;
1445
+ id: string;
1446
+ createdAt: Date;
1447
+ updatedAt: Date;
1448
+ } | undefined>;
1449
+ getVariantWithLatestVersion: (params: zod21.infer<zod21.ZodObject<{
1450
+ variantId: zod21.ZodString;
1451
+ }, zod_v4_core0.$strip>>) => Promise<{
1452
+ latestVersion: {
1453
+ version: number;
1454
+ id: string;
1455
+ createdAt: Date;
1456
+ updatedAt: Date;
1457
+ variantId: string;
1458
+ provider: string;
1459
+ modelName: string;
1460
+ jsonData: Record<string, unknown>;
1461
+ } | null;
1462
+ name: string;
1463
+ id: string;
1464
+ createdAt: Date;
1465
+ updatedAt: Date;
1466
+ } | undefined>;
1467
+ deleteVariant: (params: zod21.infer<zod21.ZodObject<{
1468
+ variantId: zod21.ZodString;
1469
+ }, zod_v4_core0.$strip>>) => Promise<{
1470
+ name: string;
1471
+ id: string;
1472
+ createdAt: Date;
1473
+ updatedAt: Date;
1474
+ } | undefined>;
1475
+ listVariants: (params?: zod21.infer<zod21.ZodObject<{
1476
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1477
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1478
+ }, zod_v4_core0.$strip>>) => Promise<{
1479
+ name: string;
1480
+ id: string;
1481
+ createdAt: Date;
1482
+ updatedAt: Date;
1483
+ }[]>;
1484
+ listVariantsWithLatestVersion: (params?: zod21.infer<zod21.ZodObject<{
1485
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1486
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1487
+ }, zod_v4_core0.$strip>>) => Promise<{
1488
+ latestVersion: {
1489
+ version: number;
1490
+ id: string;
1491
+ createdAt: Date;
1492
+ updatedAt: Date;
1493
+ variantId: string;
1494
+ provider: string;
1495
+ modelName: string;
1496
+ jsonData: Record<string, unknown>;
1497
+ } | null;
1498
+ name: string;
1499
+ id: string;
1500
+ createdAt: Date;
1501
+ updatedAt: Date;
1502
+ }[]>;
1503
+ createTargetingRule: (params: zod21.infer<zod21.ZodObject<{
1504
+ environmentId: zod21.ZodString;
1505
+ configId: zod21.ZodString;
1506
+ configVariantId: zod21.ZodString;
1507
+ variantVersionId: zod21.ZodOptional<zod21.ZodNullable<zod21.ZodString>>;
1508
+ weight: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodNumber>>;
1509
+ priority: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodNumber>>;
1510
+ enabled: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodBoolean>>;
1511
+ conditions: zod21.ZodOptional<zod21.ZodNullable<zod21.ZodRecord<zod21.ZodString, zod21.ZodUnknown>>>;
1512
+ }, zod_v4_core0.$strip>>) => Promise<{
1513
+ id: string;
1514
+ createdAt: Date;
1515
+ updatedAt: Date;
1516
+ environmentId: string;
1517
+ configId: string;
1518
+ configVariantId: string;
1519
+ variantVersionId: string | null;
1520
+ weight: number;
1521
+ priority: number;
1522
+ enabled: boolean;
1523
+ conditions: Record<string, unknown>;
1524
+ } | undefined>;
1525
+ updateTargetingRule: (params: zod21.infer<zod21.ZodObject<{
1526
+ id: zod21.ZodString;
1527
+ variantVersionId: zod21.ZodOptional<zod21.ZodNullable<zod21.ZodString>>;
1528
+ weight: zod21.ZodOptional<zod21.ZodNumber>;
1529
+ priority: zod21.ZodOptional<zod21.ZodNumber>;
1530
+ enabled: zod21.ZodOptional<zod21.ZodBoolean>;
1531
+ conditions: zod21.ZodOptional<zod21.ZodNullable<zod21.ZodRecord<zod21.ZodString, zod21.ZodUnknown>>>;
1532
+ }, zod_v4_core0.$strip>>) => Promise<{
1533
+ id: string;
1534
+ createdAt: Date;
1535
+ updatedAt: Date;
1536
+ environmentId: string;
1537
+ configId: string;
1538
+ configVariantId: string;
1539
+ variantVersionId: string | null;
1540
+ weight: number;
1541
+ priority: number;
1542
+ enabled: boolean;
1543
+ conditions: Record<string, unknown>;
1544
+ } | undefined>;
1545
+ getTargetingRuleById: (params: zod21.infer<zod21.ZodObject<{
1546
+ id: zod21.ZodString;
1547
+ }, zod_v4_core0.$strip>>) => Promise<{
1548
+ id: string;
1549
+ createdAt: Date;
1550
+ updatedAt: Date;
1551
+ environmentId: string;
1552
+ configId: string;
1553
+ configVariantId: string;
1554
+ variantVersionId: string | null;
1555
+ weight: number;
1556
+ priority: number;
1557
+ enabled: boolean;
1558
+ conditions: Record<string, unknown>;
1559
+ } | undefined>;
1560
+ getTargetingRulesByConfigId: (params: zod21.infer<zod21.ZodObject<{
1561
+ configId: zod21.ZodString;
1562
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1563
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1564
+ }, zod_v4_core0.$strip>>) => Promise<{
1565
+ id: string;
1566
+ createdAt: Date;
1567
+ updatedAt: Date;
1568
+ environmentId: string;
1569
+ configId: string;
1570
+ configVariantId: string;
1571
+ variantVersionId: string | null;
1572
+ weight: number;
1573
+ priority: number;
1574
+ enabled: boolean;
1575
+ conditions: Record<string, unknown>;
1576
+ }[]>;
1577
+ getTargetingRulesByEnvironmentId: (params: zod21.infer<zod21.ZodObject<{
1578
+ environmentId: zod21.ZodString;
1579
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1580
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1581
+ }, zod_v4_core0.$strip>>) => Promise<{
1582
+ id: string;
1583
+ createdAt: Date;
1584
+ updatedAt: Date;
1585
+ environmentId: string;
1586
+ configId: string;
1587
+ configVariantId: string;
1588
+ variantVersionId: string | null;
1589
+ weight: number;
1590
+ priority: number;
1591
+ enabled: boolean;
1592
+ conditions: Record<string, unknown>;
1593
+ }[]>;
1594
+ getTargetingRulesByConfigAndEnvironment: (params: zod21.infer<zod21.ZodObject<{
1595
+ configId: zod21.ZodString;
1596
+ environmentId: zod21.ZodString;
1597
+ }, zod_v4_core0.$strip>>) => Promise<{
1598
+ id: string;
1599
+ createdAt: Date;
1600
+ updatedAt: Date;
1601
+ environmentId: string;
1602
+ configId: string;
1603
+ configVariantId: string;
1604
+ variantVersionId: string | null;
1605
+ weight: number;
1606
+ priority: number;
1607
+ enabled: boolean;
1608
+ conditions: Record<string, unknown>;
1609
+ }[]>;
1610
+ deleteTargetingRule: (params: zod21.infer<zod21.ZodObject<{
1611
+ id: zod21.ZodString;
1612
+ }, zod_v4_core0.$strip>>) => Promise<{
1613
+ id: string;
1614
+ createdAt: Date;
1615
+ updatedAt: Date;
1616
+ environmentId: string;
1617
+ configId: string;
1618
+ configVariantId: string;
1619
+ variantVersionId: string | null;
1620
+ weight: number;
1621
+ priority: number;
1622
+ enabled: boolean;
1623
+ conditions: Record<string, unknown>;
1624
+ } | undefined>;
1625
+ deleteTargetingRulesByConfigId: (params: zod21.infer<zod21.ZodObject<{
1626
+ configId: zod21.ZodString;
1627
+ }, zod_v4_core0.$strip>>) => Promise<{
1628
+ id: string;
1629
+ createdAt: Date;
1630
+ updatedAt: Date;
1631
+ environmentId: string;
1632
+ configId: string;
1633
+ configVariantId: string;
1634
+ variantVersionId: string | null;
1635
+ weight: number;
1636
+ priority: number;
1637
+ enabled: boolean;
1638
+ conditions: Record<string, unknown>;
1639
+ }[]>;
1640
+ deleteTargetingRulesByEnvironmentId: (params: zod21.infer<zod21.ZodObject<{
1641
+ environmentId: zod21.ZodString;
1642
+ }, zod_v4_core0.$strip>>) => Promise<{
1643
+ id: string;
1644
+ createdAt: Date;
1645
+ updatedAt: Date;
1646
+ environmentId: string;
1647
+ configId: string;
1648
+ configVariantId: string;
1649
+ variantVersionId: string | null;
1650
+ weight: number;
1651
+ priority: number;
1652
+ enabled: boolean;
1653
+ conditions: Record<string, unknown>;
1654
+ }[]>;
1655
+ listTargetingRules: (params?: zod21.infer<zod21.ZodObject<{
1656
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1657
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1658
+ }, zod_v4_core0.$strip>>) => Promise<{
1659
+ id: string;
1660
+ createdAt: Date;
1661
+ updatedAt: Date;
1662
+ environmentId: string;
1663
+ configId: string;
1664
+ configVariantId: string;
1665
+ variantVersionId: string | null;
1666
+ weight: number;
1667
+ priority: number;
1668
+ enabled: boolean;
1669
+ conditions: Record<string, unknown>;
1670
+ }[]>;
1671
+ getTargetingRulesWithDetailsByConfigId: (params: zod21.infer<zod21.ZodObject<{
1672
+ configId: zod21.ZodString;
1673
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1674
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1675
+ }, zod_v4_core0.$strip>>) => Promise<{
1676
+ variantProvider: string | null;
1677
+ variantModelName: string | null;
1678
+ pinnedVersion: number | null | undefined;
1679
+ latestVersion: number | null | undefined;
1680
+ variantName: string | null;
1681
+ id: string;
1682
+ createdAt: Date;
1683
+ updatedAt: Date;
1684
+ environmentId: string;
1685
+ configId: string;
1686
+ configVariantId: string;
1687
+ variantVersionId: string | null;
1688
+ weight: number;
1689
+ priority: number;
1690
+ enabled: boolean;
1691
+ conditions: Record<string, unknown>;
1692
+ variantId: string | null;
1693
+ environmentName: string | null;
1694
+ environmentSlug: string | null;
1695
+ }[]>;
1696
+ setTargetingForEnvironment: (params: zod21.infer<zod21.ZodObject<{
1697
+ environmentId: zod21.ZodString;
1698
+ configId: zod21.ZodString;
1699
+ configVariantId: zod21.ZodString;
1700
+ variantVersionId: zod21.ZodOptional<zod21.ZodNullable<zod21.ZodString>>;
1701
+ }, zod_v4_core0.$strip>>) => Promise<{
1702
+ id: string;
1703
+ createdAt: Date;
1704
+ updatedAt: Date;
1705
+ environmentId: string;
1706
+ configId: string;
1707
+ configVariantId: string;
1708
+ variantVersionId: string | null;
1709
+ weight: number;
1710
+ priority: number;
1711
+ enabled: boolean;
1712
+ conditions: Record<string, unknown>;
1713
+ } | undefined>;
1714
+ createEnvironmentSecret: (params: zod21.infer<zod21.ZodObject<{
1715
+ environmentId: zod21.ZodUUID;
1716
+ keyName: zod21.ZodString;
1717
+ keyValue: zod21.ZodString;
1718
+ }, zod_v4_core0.$strip>>) => Promise<{
1719
+ id: string;
1720
+ createdAt: Date;
1721
+ updatedAt: Date;
1722
+ environmentId: string;
1723
+ keyName: string;
1724
+ keyValue: string;
1725
+ } | undefined>;
1726
+ updateEnvironmentSecret: (params: zod21.infer<zod21.ZodObject<{
1727
+ secretId: zod21.ZodUUID;
1728
+ keyName: zod21.ZodOptional<zod21.ZodString>;
1729
+ keyValue: zod21.ZodOptional<zod21.ZodString>;
1730
+ }, zod_v4_core0.$strip>>) => Promise<{
1731
+ id: string;
1732
+ createdAt: Date;
1733
+ updatedAt: Date;
1734
+ environmentId: string;
1735
+ keyName: string;
1736
+ keyValue: string;
1737
+ } | undefined>;
1738
+ getEnvironmentSecretById: (params: zod21.infer<zod21.ZodObject<{
1739
+ secretId: zod21.ZodUUID;
1740
+ }, zod_v4_core0.$strip>>) => Promise<{
1741
+ id: string;
1742
+ createdAt: Date;
1743
+ updatedAt: Date;
1744
+ environmentId: string;
1745
+ keyName: string;
1746
+ keyValue: string;
1747
+ } | undefined>;
1748
+ getSecretsByEnvironmentId: (params: zod21.infer<zod21.ZodObject<{
1749
+ environmentId: zod21.ZodUUID;
1750
+ }, zod_v4_core0.$strip>>) => Promise<{
1751
+ id: string;
1752
+ createdAt: Date;
1753
+ updatedAt: Date;
1754
+ environmentId: string;
1755
+ keyName: string;
1756
+ keyValue: string;
1757
+ }[]>;
1758
+ deleteEnvironmentSecret: (params: zod21.infer<zod21.ZodObject<{
1759
+ secretId: zod21.ZodUUID;
1760
+ }, zod_v4_core0.$strip>>) => Promise<{
1761
+ id: string;
1762
+ createdAt: Date;
1763
+ updatedAt: Date;
1764
+ environmentId: string;
1765
+ keyName: string;
1766
+ keyValue: string;
1767
+ } | undefined>;
1768
+ deleteSecretsByEnvironmentId: (params: zod21.infer<zod21.ZodObject<{
1769
+ environmentId: zod21.ZodUUID;
1770
+ }, zod_v4_core0.$strip>>) => Promise<{
1771
+ id: string;
1772
+ createdAt: Date;
1773
+ updatedAt: Date;
1774
+ environmentId: string;
1775
+ keyName: string;
1776
+ keyValue: string;
1777
+ }[]>;
1778
+ listEnvironmentSecrets: (params?: zod21.infer<zod21.ZodObject<{
1779
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1780
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1781
+ }, zod_v4_core0.$strip>>) => Promise<{
1782
+ id: string;
1783
+ createdAt: Date;
1784
+ updatedAt: Date;
1785
+ environmentId: string;
1786
+ keyName: string;
1787
+ keyValue: string;
1788
+ }[]>;
1789
+ countEnvironmentSecrets: () => Promise<number>;
1790
+ createNewEnvironment: (params: zod21.infer<zod21.ZodObject<{
1791
+ name: zod21.ZodString;
1792
+ slug: zod21.ZodString;
1793
+ isProd: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodBoolean>>;
1794
+ }, zod_v4_core0.$strip>>) => Promise<{
1795
+ slug: string;
1796
+ name: string;
1797
+ id: string;
1798
+ createdAt: Date;
1799
+ updatedAt: Date;
1800
+ isProd: boolean;
1801
+ } | undefined>;
1802
+ updateEnvironment: (params: zod21.infer<zod21.ZodObject<{
1803
+ environmentId: zod21.ZodUUID;
1804
+ name: zod21.ZodOptional<zod21.ZodString>;
1805
+ slug: zod21.ZodOptional<zod21.ZodString>;
1806
+ }, zod_v4_core0.$strip>>) => Promise<{
1807
+ slug: string;
1808
+ name: string;
1809
+ id: string;
1810
+ createdAt: Date;
1811
+ updatedAt: Date;
1812
+ isProd: boolean;
1813
+ } | undefined>;
1814
+ getEnvironmentById: (params: zod21.infer<zod21.ZodObject<{
1815
+ environmentId: zod21.ZodUUID;
1816
+ }, zod_v4_core0.$strip>>) => Promise<{
1817
+ slug: string;
1818
+ name: string;
1819
+ id: string;
1820
+ createdAt: Date;
1821
+ updatedAt: Date;
1822
+ isProd: boolean;
1823
+ } | undefined>;
1824
+ getEnvironmentBySlug: (params: zod21.infer<zod21.ZodObject<{
1825
+ slug: zod21.ZodString;
1826
+ }, zod_v4_core0.$strip>>) => Promise<{
1827
+ slug: string;
1828
+ name: string;
1829
+ id: string;
1830
+ createdAt: Date;
1831
+ updatedAt: Date;
1832
+ isProd: boolean;
1833
+ } | undefined>;
1834
+ deleteEnvironment: (params: zod21.infer<zod21.ZodObject<{
1835
+ environmentId: zod21.ZodUUID;
1836
+ }, zod_v4_core0.$strip>>) => Promise<{
1837
+ slug: string;
1838
+ name: string;
1839
+ id: string;
1840
+ createdAt: Date;
1841
+ updatedAt: Date;
1842
+ isProd: boolean;
1843
+ } | undefined>;
1844
+ listEnvironments: (params?: zod21.infer<zod21.ZodObject<{
1845
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1846
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1847
+ }, zod_v4_core0.$strip>>) => Promise<{
1848
+ slug: string;
1849
+ name: string;
1850
+ id: string;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ isProd: boolean;
1854
+ }[]>;
1855
+ countEnvironments: () => Promise<number>;
1856
+ createConfigVariant: (params: zod21.infer<zod21.ZodObject<{
1857
+ configId: zod21.ZodString;
1858
+ variantId: zod21.ZodString;
1859
+ }, zod_v4_core0.$strip>>) => Promise<{
1860
+ id: string;
1861
+ createdAt: Date;
1862
+ updatedAt: Date;
1863
+ variantId: string;
1864
+ configId: string;
1865
+ } | undefined>;
1866
+ getConfigVariantById: (params: zod21.infer<zod21.ZodObject<{
1867
+ id: zod21.ZodString;
1868
+ }, zod_v4_core0.$strip>>) => Promise<{
1869
+ id: string;
1870
+ createdAt: Date;
1871
+ updatedAt: Date;
1872
+ variantId: string;
1873
+ configId: string;
1874
+ } | undefined>;
1875
+ getConfigVariantsByConfigId: (params: zod21.infer<zod21.ZodObject<{
1876
+ configId: zod21.ZodString;
1877
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1878
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1879
+ }, zod_v4_core0.$strip>>) => Promise<{
1880
+ id: string;
1881
+ createdAt: Date;
1882
+ updatedAt: Date;
1883
+ variantId: string;
1884
+ configId: string;
1885
+ }[]>;
1886
+ getConfigVariantsByVariantId: (params: zod21.infer<zod21.ZodObject<{
1887
+ variantId: zod21.ZodString;
1888
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1889
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1890
+ }, zod_v4_core0.$strip>>) => Promise<{
1891
+ id: string;
1892
+ createdAt: Date;
1893
+ updatedAt: Date;
1894
+ variantId: string;
1895
+ configId: string;
1896
+ }[]>;
1897
+ deleteConfigVariant: (params: zod21.infer<zod21.ZodObject<{
1898
+ id: zod21.ZodString;
1899
+ }, zod_v4_core0.$strip>>) => Promise<{
1900
+ id: string;
1901
+ createdAt: Date;
1902
+ updatedAt: Date;
1903
+ variantId: string;
1904
+ configId: string;
1905
+ } | undefined>;
1906
+ deleteConfigVariantByIds: (params: zod21.infer<zod21.ZodObject<{
1907
+ configId: zod21.ZodString;
1908
+ variantId: zod21.ZodString;
1909
+ }, zod_v4_core0.$strip>>) => Promise<{
1910
+ id: string;
1911
+ createdAt: Date;
1912
+ updatedAt: Date;
1913
+ variantId: string;
1914
+ configId: string;
1915
+ } | undefined>;
1916
+ listConfigVariants: (params?: zod21.infer<zod21.ZodObject<{
1917
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1918
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1919
+ }, zod_v4_core0.$strip>>) => Promise<{
1920
+ id: string;
1921
+ createdAt: Date;
1922
+ updatedAt: Date;
1923
+ variantId: string;
1924
+ configId: string;
1925
+ }[]>;
1926
+ getConfigVariantWithDetails: (params: zod21.infer<zod21.ZodObject<{
1927
+ id: zod21.ZodString;
1928
+ }, zod_v4_core0.$strip>>) => Promise<{
1929
+ latestVersion: {
1930
+ version: number;
1931
+ id: string;
1932
+ createdAt: Date;
1933
+ updatedAt: Date;
1934
+ variantId: string;
1935
+ provider: string;
1936
+ modelName: string;
1937
+ jsonData: Record<string, unknown>;
1938
+ } | null;
1939
+ variantName: string | null;
1940
+ id: string;
1941
+ createdAt: Date;
1942
+ updatedAt: Date;
1943
+ variantId: string;
1944
+ configId: string;
1945
+ configName: string | null | undefined;
1946
+ } | undefined>;
1947
+ getConfigVariantsWithDetailsByConfigId: (params: zod21.infer<zod21.ZodObject<{
1948
+ configId: zod21.ZodString;
1949
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
1950
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
1951
+ }, zod_v4_core0.$strip>>) => Promise<{
1952
+ provider: string | null;
1953
+ modelName: string | null;
1954
+ jsonData: Record<string, unknown> | null;
1955
+ latestVersion: {
1956
+ version: number;
1957
+ id: string;
1958
+ createdAt: Date;
1959
+ updatedAt: Date;
1960
+ variantId: string;
1961
+ provider: string;
1962
+ modelName: string;
1963
+ jsonData: Record<string, unknown>;
1964
+ } | null;
1965
+ name: string | null;
1966
+ id: string;
1967
+ createdAt: Date;
1968
+ updatedAt: Date;
1969
+ variantId: string;
1970
+ configId: string;
1971
+ }[]>;
1972
+ createVariantAndLinkToConfig: (params: zod21.infer<zod21.ZodObject<{
1973
+ configId: zod21.ZodString;
1974
+ name: zod21.ZodString;
1975
+ provider: zod21.ZodString;
1976
+ modelName: zod21.ZodString;
1977
+ jsonData: zod21.ZodDefault<zod21.ZodOptional<zod21.ZodRecord<zod21.ZodString, zod21.ZodUnknown>>>;
1978
+ }, zod_v4_core0.$strip>>) => Promise<{
1979
+ variant: {
1980
+ name: string;
1981
+ id: string;
1982
+ createdAt: Date;
1983
+ updatedAt: Date;
1984
+ };
1985
+ version: {
1986
+ version: number;
1987
+ id: string;
1988
+ createdAt: Date;
1989
+ updatedAt: Date;
1990
+ variantId: string;
1991
+ provider: string;
1992
+ modelName: string;
1993
+ jsonData: Record<string, unknown>;
1994
+ };
1995
+ configVariant: {
1996
+ id: string;
1997
+ createdAt: Date;
1998
+ updatedAt: Date;
1999
+ variantId: string;
2000
+ configId: string;
2001
+ };
2002
+ }>;
2003
+ getVariantJsonDataForConfig: (params: zod21.infer<zod21.ZodObject<{
2004
+ configId: zod21.ZodString;
2005
+ envSecret: zod21.ZodOptional<zod21.ZodString>;
2006
+ }, zod_v4_core0.$strip>>) => Promise<{
2007
+ version: number;
2008
+ provider: string;
2009
+ modelName: string;
2010
+ jsonData: Record<string, unknown>;
2011
+ }>;
2012
+ createNewConfig: (params: zod21.infer<zod21.ZodObject<{
2013
+ name: zod21.ZodString;
2014
+ }, zod_v4_core0.$strip>>) => Promise<{
2015
+ slug: string;
2016
+ name: string | undefined;
2017
+ id: string;
2018
+ createdAt: Date;
2019
+ updatedAt: Date;
2020
+ } | undefined>;
2021
+ updateConfigName: (params: zod21.infer<zod21.ZodObject<{
2022
+ configId: zod21.ZodUUID;
2023
+ newName: zod21.ZodString;
2024
+ }, zod_v4_core0.$strip>>) => Promise<{
2025
+ slug: string;
2026
+ name: string | undefined;
2027
+ id: string;
2028
+ createdAt: Date;
2029
+ updatedAt: Date;
2030
+ } | undefined>;
2031
+ getConfigById: (params: zod21.infer<zod21.ZodObject<{
2032
+ configId: zod21.ZodUUID;
2033
+ }, zod_v4_core0.$strip>>) => Promise<{
2034
+ slug: string;
2035
+ name: string | undefined;
2036
+ id: string;
2037
+ createdAt: Date;
2038
+ updatedAt: Date;
2039
+ } | undefined>;
2040
+ deleteConfig: (params: zod21.infer<zod21.ZodObject<{
2041
+ configId: zod21.ZodUUID;
2042
+ }, zod_v4_core0.$strip>>) => Promise<{
2043
+ slug: string;
2044
+ name: string | undefined;
2045
+ id: string;
2046
+ createdAt: Date;
2047
+ updatedAt: Date;
2048
+ } | undefined>;
2049
+ listConfigs: (params?: zod21.infer<zod21.ZodObject<{
2050
+ limit: zod21.ZodOptional<zod21.ZodNumber>;
2051
+ offset: zod21.ZodOptional<zod21.ZodNumber>;
2052
+ }, zod_v4_core0.$strip>>) => Promise<{
2053
+ slug: string;
2054
+ name: string | undefined;
2055
+ id: string;
2056
+ createdAt: Date;
2057
+ updatedAt: Date;
2058
+ }[]>;
2059
+ getConfigWithVariants: (params: zod21.infer<zod21.ZodObject<{
2060
+ configId: zod21.ZodUUID;
2061
+ }, zod_v4_core0.$strip>>) => Promise<{
2062
+ provider: string | null;
2063
+ modelName: string | null;
2064
+ jsonData: Record<string, unknown> | null;
2065
+ variantName: string | null;
2066
+ id: string;
2067
+ slug: string;
2068
+ name: string | undefined;
2069
+ createdAt: Date;
2070
+ updatedAt: Date;
2071
+ variantId: string | null;
2072
+ }[]>;
2073
+ }>;
2074
+ //#endregion
2075
+ export { type AnthropicProviderConfig, type AnyProviderConfig, AutoMigrateConfig, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, type BaseProviderConfig, type BedrockProviderConfig, ChatCompletionCreateParamsBase, Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, type CortexProviderConfig, Database, DatabaseConnection, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, Insertable, LLMOpsClient, LLMOpsConfig, MigrationResult, type MistralAIProviderConfig, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, type ProviderConfigMap, type ProvidersConfig, SCHEMA_METADATA, type SagemakerProviderConfig, Selectable, type StabilityAIProviderConfig, SupportedProviders, TableName, TargetingRule, TargetingRulesTable, Updateable, type ValidatedLLMOpsConfig, Variant, VariantJsonData, VariantVersion, VariantVersionsTable, VariantsTable, type VertexAIProviderConfig, type WorkersAIProviderConfig, chatCompletionCreateParamsBaseSchema, configVariantsSchema, configsSchema, createDataLayer, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, gateway, generateId, getMigrations, llmopsConfigSchema, logger, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema };