@llmops/core 0.1.0-beta.11 → 0.1.0-beta.13

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,2064 @@
1
+ import { A as configVariantsSchema, C as TargetingRule, D as VariantVersion, E as Variant, F as targetingRulesSchema, I as variantVersionsSchema, L as variantsSchema, M as environmentSecretsSchema, N as environmentsSchema, O as VariantVersionsTable, P as schemas, S as TableName, T as Updateable, _ as EnvironmentSecretsTable, a as detectDatabaseType, b as SCHEMA_METADATA, c as validatePartialTableData, d as ConfigVariant, f as ConfigVariantsTable, g as EnvironmentSecret, h as Environment, i as createDatabaseFromConnection, j as configsSchema, k as VariantsTable, l as validateTableData, m as Database, n as DatabaseType, o as parsePartialTableData, p as ConfigsTable, r as createDatabase, s as parseTableData, t as DatabaseConnection, u as Config, v as EnvironmentsTable, w as TargetingRulesTable, x as Selectable, y as Insertable } from "./index-B-ZIrOBc.cjs";
2
+ import { Kysely } from "kysely";
3
+ import * as zod0 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
+ declare const llmopsConfigSchema: z.ZodObject<{
387
+ database: z.ZodAny;
388
+ auth: z.ZodObject<{
389
+ type: z.ZodLiteral<"basic">;
390
+ defaultUser: z.ZodString;
391
+ defaultPassword: z.ZodString;
392
+ }, z.core.$strip>;
393
+ basePath: z.ZodString;
394
+ providers: z.ZodObject<{
395
+ openai: z.ZodOptional<z.ZodObject<{
396
+ apiKey: z.ZodString;
397
+ customHost: z.ZodOptional<z.ZodString>;
398
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
399
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
+ }, z.core.$loose>>;
401
+ cohere: z.ZodOptional<z.ZodObject<{
402
+ apiKey: z.ZodString;
403
+ customHost: z.ZodOptional<z.ZodString>;
404
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
405
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
406
+ }, z.core.$loose>>;
407
+ anthropic: z.ZodOptional<z.ZodObject<{
408
+ apiKey: z.ZodString;
409
+ customHost: z.ZodOptional<z.ZodString>;
410
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
411
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
+ }, z.core.$loose>>;
413
+ "azure-openai": z.ZodOptional<z.ZodObject<{
414
+ apiKey: z.ZodString;
415
+ customHost: z.ZodOptional<z.ZodString>;
416
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
417
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ }, z.core.$loose>>;
419
+ huggingface: z.ZodOptional<z.ZodObject<{
420
+ apiKey: z.ZodString;
421
+ customHost: z.ZodOptional<z.ZodString>;
422
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
423
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
+ }, z.core.$loose>>;
425
+ anyscale: z.ZodOptional<z.ZodObject<{
426
+ apiKey: z.ZodString;
427
+ customHost: z.ZodOptional<z.ZodString>;
428
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
429
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ }, z.core.$loose>>;
431
+ palm: z.ZodOptional<z.ZodObject<{
432
+ apiKey: z.ZodString;
433
+ customHost: z.ZodOptional<z.ZodString>;
434
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
435
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
+ }, z.core.$loose>>;
437
+ "together-ai": z.ZodOptional<z.ZodObject<{
438
+ apiKey: z.ZodString;
439
+ customHost: z.ZodOptional<z.ZodString>;
440
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
441
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
+ }, z.core.$loose>>;
443
+ google: z.ZodOptional<z.ZodObject<{
444
+ apiKey: z.ZodString;
445
+ customHost: z.ZodOptional<z.ZodString>;
446
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
447
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
448
+ }, z.core.$loose>>;
449
+ "vertex-ai": z.ZodOptional<z.ZodObject<{
450
+ apiKey: z.ZodString;
451
+ customHost: z.ZodOptional<z.ZodString>;
452
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
453
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
454
+ }, z.core.$loose>>;
455
+ "perplexity-ai": z.ZodOptional<z.ZodObject<{
456
+ apiKey: z.ZodString;
457
+ customHost: z.ZodOptional<z.ZodString>;
458
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
459
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ }, z.core.$loose>>;
461
+ "mistral-ai": z.ZodOptional<z.ZodObject<{
462
+ apiKey: z.ZodString;
463
+ customHost: z.ZodOptional<z.ZodString>;
464
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
465
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
466
+ }, z.core.$loose>>;
467
+ deepinfra: z.ZodOptional<z.ZodObject<{
468
+ apiKey: z.ZodString;
469
+ customHost: z.ZodOptional<z.ZodString>;
470
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
471
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
+ }, z.core.$loose>>;
473
+ ncompass: z.ZodOptional<z.ZodObject<{
474
+ apiKey: z.ZodString;
475
+ customHost: z.ZodOptional<z.ZodString>;
476
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
477
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
478
+ }, z.core.$loose>>;
479
+ "stability-ai": z.ZodOptional<z.ZodObject<{
480
+ apiKey: z.ZodString;
481
+ customHost: z.ZodOptional<z.ZodString>;
482
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
483
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
+ }, z.core.$loose>>;
485
+ nomic: z.ZodOptional<z.ZodObject<{
486
+ apiKey: z.ZodString;
487
+ customHost: z.ZodOptional<z.ZodString>;
488
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
489
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
+ }, z.core.$loose>>;
491
+ ollama: z.ZodOptional<z.ZodObject<{
492
+ apiKey: z.ZodString;
493
+ customHost: z.ZodOptional<z.ZodString>;
494
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
495
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
496
+ }, z.core.$loose>>;
497
+ ai21: z.ZodOptional<z.ZodObject<{
498
+ apiKey: z.ZodString;
499
+ customHost: z.ZodOptional<z.ZodString>;
500
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
501
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
502
+ }, z.core.$loose>>;
503
+ bedrock: z.ZodOptional<z.ZodObject<{
504
+ apiKey: z.ZodString;
505
+ customHost: z.ZodOptional<z.ZodString>;
506
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
507
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
508
+ }, z.core.$loose>>;
509
+ groq: z.ZodOptional<z.ZodObject<{
510
+ apiKey: z.ZodString;
511
+ customHost: z.ZodOptional<z.ZodString>;
512
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
513
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
514
+ }, z.core.$loose>>;
515
+ segmind: z.ZodOptional<z.ZodObject<{
516
+ apiKey: z.ZodString;
517
+ customHost: z.ZodOptional<z.ZodString>;
518
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
519
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ }, z.core.$loose>>;
521
+ jina: z.ZodOptional<z.ZodObject<{
522
+ apiKey: z.ZodString;
523
+ customHost: z.ZodOptional<z.ZodString>;
524
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
525
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
526
+ }, z.core.$loose>>;
527
+ "fireworks-ai": z.ZodOptional<z.ZodObject<{
528
+ apiKey: z.ZodString;
529
+ customHost: z.ZodOptional<z.ZodString>;
530
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
531
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
532
+ }, z.core.$loose>>;
533
+ "workers-ai": z.ZodOptional<z.ZodObject<{
534
+ apiKey: z.ZodString;
535
+ customHost: z.ZodOptional<z.ZodString>;
536
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
537
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
+ }, z.core.$loose>>;
539
+ "reka-ai": z.ZodOptional<z.ZodObject<{
540
+ apiKey: z.ZodString;
541
+ customHost: z.ZodOptional<z.ZodString>;
542
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
543
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
544
+ }, z.core.$loose>>;
545
+ moonshot: z.ZodOptional<z.ZodObject<{
546
+ apiKey: z.ZodString;
547
+ customHost: z.ZodOptional<z.ZodString>;
548
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
549
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
550
+ }, z.core.$loose>>;
551
+ openrouter: z.ZodOptional<z.ZodObject<{
552
+ apiKey: z.ZodString;
553
+ customHost: z.ZodOptional<z.ZodString>;
554
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
555
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
556
+ }, z.core.$loose>>;
557
+ lingyi: z.ZodOptional<z.ZodObject<{
558
+ apiKey: z.ZodString;
559
+ customHost: z.ZodOptional<z.ZodString>;
560
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
561
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
562
+ }, z.core.$loose>>;
563
+ zhipu: z.ZodOptional<z.ZodObject<{
564
+ apiKey: z.ZodString;
565
+ customHost: z.ZodOptional<z.ZodString>;
566
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
567
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
+ }, z.core.$loose>>;
569
+ "novita-ai": z.ZodOptional<z.ZodObject<{
570
+ apiKey: z.ZodString;
571
+ customHost: z.ZodOptional<z.ZodString>;
572
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
573
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
574
+ }, z.core.$loose>>;
575
+ monsterapi: z.ZodOptional<z.ZodObject<{
576
+ apiKey: z.ZodString;
577
+ customHost: z.ZodOptional<z.ZodString>;
578
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
579
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
+ }, z.core.$loose>>;
581
+ deepseek: z.ZodOptional<z.ZodObject<{
582
+ apiKey: z.ZodString;
583
+ customHost: z.ZodOptional<z.ZodString>;
584
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
585
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
586
+ }, z.core.$loose>>;
587
+ predibase: z.ZodOptional<z.ZodObject<{
588
+ apiKey: z.ZodString;
589
+ customHost: z.ZodOptional<z.ZodString>;
590
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
591
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
592
+ }, z.core.$loose>>;
593
+ triton: z.ZodOptional<z.ZodObject<{
594
+ apiKey: z.ZodString;
595
+ customHost: z.ZodOptional<z.ZodString>;
596
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
597
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
598
+ }, z.core.$loose>>;
599
+ voyage: z.ZodOptional<z.ZodObject<{
600
+ apiKey: z.ZodString;
601
+ customHost: z.ZodOptional<z.ZodString>;
602
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
603
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
604
+ }, z.core.$loose>>;
605
+ "azure-ai": z.ZodOptional<z.ZodObject<{
606
+ apiKey: z.ZodString;
607
+ customHost: z.ZodOptional<z.ZodString>;
608
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
609
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
610
+ }, z.core.$loose>>;
611
+ github: z.ZodOptional<z.ZodObject<{
612
+ apiKey: z.ZodString;
613
+ customHost: z.ZodOptional<z.ZodString>;
614
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
615
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
616
+ }, z.core.$loose>>;
617
+ deepbricks: z.ZodOptional<z.ZodObject<{
618
+ apiKey: z.ZodString;
619
+ customHost: z.ZodOptional<z.ZodString>;
620
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
621
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
622
+ }, z.core.$loose>>;
623
+ siliconflow: z.ZodOptional<z.ZodObject<{
624
+ apiKey: z.ZodString;
625
+ customHost: z.ZodOptional<z.ZodString>;
626
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
627
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
+ }, z.core.$loose>>;
629
+ cerebras: z.ZodOptional<z.ZodObject<{
630
+ apiKey: z.ZodString;
631
+ customHost: z.ZodOptional<z.ZodString>;
632
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
633
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
634
+ }, z.core.$loose>>;
635
+ "inference-net": z.ZodOptional<z.ZodObject<{
636
+ apiKey: z.ZodString;
637
+ customHost: z.ZodOptional<z.ZodString>;
638
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
639
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ }, z.core.$loose>>;
641
+ sambanova: z.ZodOptional<z.ZodObject<{
642
+ apiKey: z.ZodString;
643
+ customHost: z.ZodOptional<z.ZodString>;
644
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
645
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
646
+ }, z.core.$loose>>;
647
+ "lemonfox-ai": z.ZodOptional<z.ZodObject<{
648
+ apiKey: z.ZodString;
649
+ customHost: z.ZodOptional<z.ZodString>;
650
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
651
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
652
+ }, z.core.$loose>>;
653
+ upstage: z.ZodOptional<z.ZodObject<{
654
+ apiKey: z.ZodString;
655
+ customHost: z.ZodOptional<z.ZodString>;
656
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
657
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
+ }, z.core.$loose>>;
659
+ lambda: z.ZodOptional<z.ZodObject<{
660
+ apiKey: z.ZodString;
661
+ customHost: z.ZodOptional<z.ZodString>;
662
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
663
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
664
+ }, z.core.$loose>>;
665
+ dashscope: z.ZodOptional<z.ZodObject<{
666
+ apiKey: z.ZodString;
667
+ customHost: z.ZodOptional<z.ZodString>;
668
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
669
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
670
+ }, z.core.$loose>>;
671
+ "x-ai": z.ZodOptional<z.ZodObject<{
672
+ apiKey: z.ZodString;
673
+ customHost: z.ZodOptional<z.ZodString>;
674
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
675
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
676
+ }, z.core.$loose>>;
677
+ qdrant: z.ZodOptional<z.ZodObject<{
678
+ apiKey: z.ZodString;
679
+ customHost: z.ZodOptional<z.ZodString>;
680
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
681
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
682
+ }, z.core.$loose>>;
683
+ sagemaker: z.ZodOptional<z.ZodObject<{
684
+ apiKey: z.ZodString;
685
+ customHost: z.ZodOptional<z.ZodString>;
686
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
687
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
+ }, z.core.$loose>>;
689
+ nebius: z.ZodOptional<z.ZodObject<{
690
+ apiKey: z.ZodString;
691
+ customHost: z.ZodOptional<z.ZodString>;
692
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
693
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
694
+ }, z.core.$loose>>;
695
+ "recraft-ai": z.ZodOptional<z.ZodObject<{
696
+ apiKey: z.ZodString;
697
+ customHost: z.ZodOptional<z.ZodString>;
698
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
699
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
700
+ }, z.core.$loose>>;
701
+ milvus: z.ZodOptional<z.ZodObject<{
702
+ apiKey: z.ZodString;
703
+ customHost: z.ZodOptional<z.ZodString>;
704
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
705
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
706
+ }, z.core.$loose>>;
707
+ replicate: z.ZodOptional<z.ZodObject<{
708
+ apiKey: z.ZodString;
709
+ customHost: z.ZodOptional<z.ZodString>;
710
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
711
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
712
+ }, z.core.$loose>>;
713
+ lepton: z.ZodOptional<z.ZodObject<{
714
+ apiKey: z.ZodString;
715
+ customHost: z.ZodOptional<z.ZodString>;
716
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
717
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
718
+ }, z.core.$loose>>;
719
+ "kluster-ai": z.ZodOptional<z.ZodObject<{
720
+ apiKey: z.ZodString;
721
+ customHost: z.ZodOptional<z.ZodString>;
722
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
723
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
724
+ }, z.core.$loose>>;
725
+ nscale: z.ZodOptional<z.ZodObject<{
726
+ apiKey: z.ZodString;
727
+ customHost: z.ZodOptional<z.ZodString>;
728
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
729
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
730
+ }, z.core.$loose>>;
731
+ hyperbolic: z.ZodOptional<z.ZodObject<{
732
+ apiKey: z.ZodString;
733
+ customHost: z.ZodOptional<z.ZodString>;
734
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
735
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
736
+ }, z.core.$loose>>;
737
+ bytez: z.ZodOptional<z.ZodObject<{
738
+ apiKey: z.ZodString;
739
+ customHost: z.ZodOptional<z.ZodString>;
740
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
741
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
742
+ }, z.core.$loose>>;
743
+ "featherless-ai": z.ZodOptional<z.ZodObject<{
744
+ apiKey: z.ZodString;
745
+ customHost: z.ZodOptional<z.ZodString>;
746
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
747
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
748
+ }, z.core.$loose>>;
749
+ krutrim: z.ZodOptional<z.ZodObject<{
750
+ apiKey: z.ZodString;
751
+ customHost: z.ZodOptional<z.ZodString>;
752
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
753
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
754
+ }, z.core.$loose>>;
755
+ "302ai": z.ZodOptional<z.ZodObject<{
756
+ apiKey: z.ZodString;
757
+ customHost: z.ZodOptional<z.ZodString>;
758
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
759
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
+ }, z.core.$loose>>;
761
+ cometapi: z.ZodOptional<z.ZodObject<{
762
+ apiKey: z.ZodString;
763
+ customHost: z.ZodOptional<z.ZodString>;
764
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
765
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
766
+ }, z.core.$loose>>;
767
+ matterai: z.ZodOptional<z.ZodObject<{
768
+ apiKey: z.ZodString;
769
+ customHost: z.ZodOptional<z.ZodString>;
770
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
771
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
772
+ }, z.core.$loose>>;
773
+ meshy: z.ZodOptional<z.ZodObject<{
774
+ apiKey: z.ZodString;
775
+ customHost: z.ZodOptional<z.ZodString>;
776
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
777
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
778
+ }, z.core.$loose>>;
779
+ nextbit: z.ZodOptional<z.ZodObject<{
780
+ apiKey: z.ZodString;
781
+ customHost: z.ZodOptional<z.ZodString>;
782
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
783
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
+ }, z.core.$loose>>;
785
+ tripo3d: z.ZodOptional<z.ZodObject<{
786
+ apiKey: z.ZodString;
787
+ customHost: z.ZodOptional<z.ZodString>;
788
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
789
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
790
+ }, z.core.$loose>>;
791
+ modal: z.ZodOptional<z.ZodObject<{
792
+ apiKey: z.ZodString;
793
+ customHost: z.ZodOptional<z.ZodString>;
794
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
795
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
796
+ }, z.core.$loose>>;
797
+ "z-ai": z.ZodOptional<z.ZodObject<{
798
+ apiKey: z.ZodString;
799
+ customHost: z.ZodOptional<z.ZodString>;
800
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
801
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
802
+ }, z.core.$loose>>;
803
+ oracle: z.ZodOptional<z.ZodObject<{
804
+ apiKey: z.ZodString;
805
+ customHost: z.ZodOptional<z.ZodString>;
806
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
807
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
808
+ }, z.core.$loose>>;
809
+ iointelligence: z.ZodOptional<z.ZodObject<{
810
+ apiKey: z.ZodString;
811
+ customHost: z.ZodOptional<z.ZodString>;
812
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
813
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
814
+ }, z.core.$loose>>;
815
+ aibadgr: z.ZodOptional<z.ZodObject<{
816
+ apiKey: z.ZodString;
817
+ customHost: z.ZodOptional<z.ZodString>;
818
+ requestTimeout: z.ZodOptional<z.ZodNumber>;
819
+ forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
+ }, z.core.$loose>>;
821
+ }, z.core.$strip>;
822
+ }, z.core.$strip>;
823
+ /**
824
+ * Validated LLMOps configuration with typed providers
825
+ * Uses ProvidersConfig for proper provider-specific typing
826
+ */
827
+ type ValidatedLLMOpsConfig = Omit<z.infer<typeof llmopsConfigSchema>, 'providers'> & {
828
+ providers: ProvidersConfig;
829
+ };
830
+ declare function validateLLMOpsConfig(config: unknown): ValidatedLLMOpsConfig;
831
+ //#endregion
832
+ //#region src/types/helper.d.ts
833
+ /**
834
+ * @references From better-auth
835
+ */
836
+ type Prettify<T> = Omit<T, never>;
837
+ //#endregion
838
+ //#region src/types/index.d.ts
839
+ type LLMOpsConfig = ValidatedLLMOpsConfig;
840
+ type LLMOpsClient = {
841
+ handler: (request: Request) => Promise<Response>;
842
+ config: LLMOpsConfig;
843
+ };
844
+ //#endregion
845
+ //#region src/schemas/openai.d.ts
846
+ declare const chatCompletionCreateParamsBaseSchema: z.ZodObject<{
847
+ messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
848
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
849
+ text: z.ZodString;
850
+ type: z.ZodLiteral<"text">;
851
+ }, z.core.$strip>>]>;
852
+ role: z.ZodLiteral<"developer">;
853
+ name: z.ZodOptional<z.ZodString>;
854
+ }, z.core.$strip>, z.ZodObject<{
855
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
856
+ text: z.ZodString;
857
+ type: z.ZodLiteral<"text">;
858
+ }, z.core.$strip>>]>;
859
+ role: z.ZodLiteral<"system">;
860
+ name: z.ZodOptional<z.ZodString>;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
863
+ text: z.ZodString;
864
+ type: z.ZodLiteral<"text">;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ image_url: z.ZodObject<{
867
+ url: z.ZodString;
868
+ detail: z.ZodOptional<z.ZodEnum<{
869
+ auto: "auto";
870
+ low: "low";
871
+ high: "high";
872
+ }>>;
873
+ }, z.core.$strip>;
874
+ type: z.ZodLiteral<"image_url">;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ input_audio: z.ZodObject<{
877
+ data: z.ZodString;
878
+ format: z.ZodEnum<{
879
+ wav: "wav";
880
+ mp3: "mp3";
881
+ }>;
882
+ }, z.core.$strip>;
883
+ type: z.ZodLiteral<"input_audio">;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ file: z.ZodObject<{
886
+ file_data: z.ZodOptional<z.ZodString>;
887
+ file_id: z.ZodOptional<z.ZodString>;
888
+ filename: z.ZodOptional<z.ZodString>;
889
+ }, z.core.$strip>;
890
+ type: z.ZodLiteral<"file">;
891
+ }, z.core.$strip>]>>]>;
892
+ role: z.ZodLiteral<"user">;
893
+ name: z.ZodOptional<z.ZodString>;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ role: z.ZodLiteral<"assistant">;
896
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
897
+ id: z.ZodString;
898
+ }, z.core.$strip>>>;
899
+ content: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
900
+ text: z.ZodString;
901
+ type: z.ZodLiteral<"text">;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ refusal: z.ZodString;
904
+ type: z.ZodLiteral<"refusal">;
905
+ }, z.core.$strip>]>>]>>>;
906
+ function_call: z.ZodNullable<z.ZodOptional<z.ZodObject<{
907
+ arguments: z.ZodString;
908
+ name: z.ZodString;
909
+ }, z.core.$strip>>>;
910
+ name: z.ZodOptional<z.ZodString>;
911
+ refusal: z.ZodNullable<z.ZodOptional<z.ZodString>>;
912
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
913
+ id: z.ZodString;
914
+ function: z.ZodObject<{
915
+ arguments: z.ZodString;
916
+ name: z.ZodString;
917
+ }, z.core.$strip>;
918
+ type: z.ZodLiteral<"function">;
919
+ }, z.core.$strip>>>;
920
+ }, z.core.$strip>, z.ZodObject<{
921
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
922
+ text: z.ZodString;
923
+ type: z.ZodLiteral<"text">;
924
+ }, z.core.$strip>>]>;
925
+ role: z.ZodLiteral<"tool">;
926
+ tool_call_id: z.ZodString;
927
+ }, z.core.$strip>, z.ZodObject<{
928
+ content: z.ZodNullable<z.ZodString>;
929
+ name: z.ZodString;
930
+ role: z.ZodLiteral<"function">;
931
+ }, z.core.$strip>]>>;
932
+ model: z.ZodString;
933
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
934
+ format: z.ZodEnum<{
935
+ wav: "wav";
936
+ mp3: "mp3";
937
+ aac: "aac";
938
+ flac: "flac";
939
+ opus: "opus";
940
+ pcm16: "pcm16";
941
+ }>;
942
+ voice: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
943
+ alloy: "alloy";
944
+ ash: "ash";
945
+ ballad: "ballad";
946
+ coral: "coral";
947
+ echo: "echo";
948
+ sage: "sage";
949
+ shimmer: "shimmer";
950
+ verse: "verse";
951
+ marin: "marin";
952
+ cedar: "cedar";
953
+ }>]>;
954
+ }, z.core.$strip>>>;
955
+ frequency_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
956
+ function_call: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
957
+ auto: "auto";
958
+ none: "none";
959
+ }>, z.ZodObject<{
960
+ name: z.ZodString;
961
+ }, z.core.$strip>]>>;
962
+ functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ name: z.ZodString;
964
+ description: z.ZodOptional<z.ZodString>;
965
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
966
+ }, z.core.$strip>>>;
967
+ logit_bias: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
968
+ logprobs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
969
+ max_completion_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
970
+ max_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
971
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
972
+ modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
973
+ text: "text";
974
+ audio: "audio";
975
+ }>>>>;
976
+ n: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
977
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
978
+ prediction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
979
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
980
+ text: z.ZodString;
981
+ type: z.ZodLiteral<"text">;
982
+ }, z.core.$strip>>]>;
983
+ type: z.ZodLiteral<"content">;
984
+ }, z.core.$strip>>>;
985
+ presence_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
986
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
987
+ prompt_cache_retention: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
988
+ "in-memory": "in-memory";
989
+ "24h": "24h";
990
+ }>>>;
991
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
992
+ low: "low";
993
+ high: "high";
994
+ none: "none";
995
+ minimal: "minimal";
996
+ medium: "medium";
997
+ xhigh: "xhigh";
998
+ }>>>;
999
+ response_format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1000
+ type: z.ZodLiteral<"text">;
1001
+ }, z.core.$strip>, z.ZodObject<{
1002
+ type: z.ZodLiteral<"json_object">;
1003
+ }, z.core.$strip>, z.ZodObject<{
1004
+ type: z.ZodLiteral<"json_schema">;
1005
+ json_schema: z.ZodObject<{
1006
+ name: z.ZodString;
1007
+ description: z.ZodOptional<z.ZodString>;
1008
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1009
+ strict: z.ZodOptional<z.ZodBoolean>;
1010
+ }, z.core.$strip>;
1011
+ }, z.core.$strip>]>>;
1012
+ safety_identifier: z.ZodOptional<z.ZodString>;
1013
+ seed: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1014
+ service_tier: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1015
+ default: "default";
1016
+ priority: "priority";
1017
+ auto: "auto";
1018
+ flex: "flex";
1019
+ scale: "scale";
1020
+ }>>>;
1021
+ stop: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1022
+ store: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1023
+ stream: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1024
+ stream_options: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1025
+ include_obfuscation: z.ZodOptional<z.ZodBoolean>;
1026
+ include_usage: z.ZodOptional<z.ZodBoolean>;
1027
+ }, z.core.$strip>>>;
1028
+ temperature: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1029
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1030
+ auto: "auto";
1031
+ none: "none";
1032
+ required: "required";
1033
+ }>, z.ZodObject<{
1034
+ allowed_tools: z.ZodObject<{
1035
+ mode: z.ZodEnum<{
1036
+ auto: "auto";
1037
+ required: "required";
1038
+ }>;
1039
+ tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1040
+ }, z.core.$strip>;
1041
+ type: z.ZodLiteral<"allowed_tools">;
1042
+ }, z.core.$strip>, z.ZodObject<{
1043
+ function: z.ZodObject<{
1044
+ name: z.ZodString;
1045
+ }, z.core.$strip>;
1046
+ type: z.ZodLiteral<"function">;
1047
+ }, z.core.$strip>, z.ZodObject<{
1048
+ custom: z.ZodObject<{
1049
+ name: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ type: z.ZodLiteral<"custom">;
1052
+ }, z.core.$strip>]>>;
1053
+ tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1054
+ function: z.ZodObject<{
1055
+ name: z.ZodString;
1056
+ description: z.ZodOptional<z.ZodString>;
1057
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1058
+ }, z.core.$strip>;
1059
+ type: z.ZodLiteral<"function">;
1060
+ }, z.core.$strip>, z.ZodObject<{
1061
+ custom: z.ZodObject<{
1062
+ name: z.ZodString;
1063
+ description: z.ZodOptional<z.ZodString>;
1064
+ format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1065
+ type: z.ZodLiteral<"text">;
1066
+ }, z.core.$strip>, z.ZodObject<{
1067
+ grammar: z.ZodObject<{
1068
+ definition: z.ZodString;
1069
+ syntax: z.ZodEnum<{
1070
+ lark: "lark";
1071
+ regex: "regex";
1072
+ }>;
1073
+ }, z.core.$strip>;
1074
+ type: z.ZodLiteral<"grammar">;
1075
+ }, z.core.$strip>]>>;
1076
+ }, z.core.$strip>;
1077
+ type: z.ZodLiteral<"custom">;
1078
+ }, z.core.$strip>]>>>;
1079
+ top_logprobs: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1080
+ top_p: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1081
+ user: z.ZodOptional<z.ZodString>;
1082
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1083
+ low: "low";
1084
+ high: "high";
1085
+ medium: "medium";
1086
+ }>>>;
1087
+ web_search_options: z.ZodOptional<z.ZodObject<{
1088
+ search_context_size: z.ZodOptional<z.ZodEnum<{
1089
+ low: "low";
1090
+ high: "high";
1091
+ medium: "medium";
1092
+ }>>;
1093
+ user_location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1094
+ approximate: z.ZodObject<{
1095
+ city: z.ZodOptional<z.ZodString>;
1096
+ country: z.ZodOptional<z.ZodString>;
1097
+ region: z.ZodOptional<z.ZodString>;
1098
+ timezone: z.ZodOptional<z.ZodString>;
1099
+ }, z.core.$strip>;
1100
+ type: z.ZodLiteral<"approximate">;
1101
+ }, z.core.$strip>>>;
1102
+ }, z.core.$strip>>;
1103
+ }, z.core.$strip>;
1104
+ type ChatCompletionCreateParamsBase = z.infer<typeof chatCompletionCreateParamsBaseSchema>;
1105
+ /**
1106
+ * Schema for variant jsonData - these are the parameters that can be
1107
+ * configured per variant to override the default chat completion settings.
1108
+ * This is a subset of ChatCompletionCreateParamsBase that makes sense to
1109
+ * configure at the variant level (excludes messages which come from the request).
1110
+ */
1111
+ declare const variantJsonDataSchema: z.ZodObject<{
1112
+ system_prompt: z.ZodOptional<z.ZodString>;
1113
+ model: z.ZodOptional<z.ZodString>;
1114
+ audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1115
+ format: z.ZodEnum<{
1116
+ wav: "wav";
1117
+ mp3: "mp3";
1118
+ aac: "aac";
1119
+ flac: "flac";
1120
+ opus: "opus";
1121
+ pcm16: "pcm16";
1122
+ }>;
1123
+ voice: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
1124
+ alloy: "alloy";
1125
+ ash: "ash";
1126
+ ballad: "ballad";
1127
+ coral: "coral";
1128
+ echo: "echo";
1129
+ sage: "sage";
1130
+ shimmer: "shimmer";
1131
+ verse: "verse";
1132
+ marin: "marin";
1133
+ cedar: "cedar";
1134
+ }>]>;
1135
+ }, z.core.$strip>>>;
1136
+ frequency_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1137
+ function_call: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1138
+ auto: "auto";
1139
+ none: "none";
1140
+ }>, z.ZodObject<{
1141
+ name: z.ZodString;
1142
+ }, z.core.$strip>]>>;
1143
+ functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1144
+ name: z.ZodString;
1145
+ description: z.ZodOptional<z.ZodString>;
1146
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1147
+ }, z.core.$strip>>>;
1148
+ logit_bias: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
1149
+ logprobs: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1150
+ max_completion_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1151
+ max_tokens: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1152
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1153
+ modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1154
+ text: "text";
1155
+ audio: "audio";
1156
+ }>>>>;
1157
+ n: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1158
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
1159
+ prediction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1160
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
1161
+ text: z.ZodString;
1162
+ type: z.ZodLiteral<"text">;
1163
+ }, z.core.$strip>>]>;
1164
+ type: z.ZodLiteral<"content">;
1165
+ }, z.core.$strip>>>;
1166
+ presence_penalty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1167
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
1168
+ prompt_cache_retention: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1169
+ "in-memory": "in-memory";
1170
+ "24h": "24h";
1171
+ }>>>;
1172
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1173
+ low: "low";
1174
+ high: "high";
1175
+ none: "none";
1176
+ minimal: "minimal";
1177
+ medium: "medium";
1178
+ xhigh: "xhigh";
1179
+ }>>>;
1180
+ response_format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1181
+ type: z.ZodLiteral<"text">;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ type: z.ZodLiteral<"json_object">;
1184
+ }, z.core.$strip>, z.ZodObject<{
1185
+ type: z.ZodLiteral<"json_schema">;
1186
+ json_schema: z.ZodObject<{
1187
+ name: z.ZodString;
1188
+ description: z.ZodOptional<z.ZodString>;
1189
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1190
+ strict: z.ZodOptional<z.ZodBoolean>;
1191
+ }, z.core.$strip>;
1192
+ }, z.core.$strip>]>>;
1193
+ safety_identifier: z.ZodOptional<z.ZodString>;
1194
+ seed: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1195
+ service_tier: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1196
+ default: "default";
1197
+ priority: "priority";
1198
+ auto: "auto";
1199
+ flex: "flex";
1200
+ scale: "scale";
1201
+ }>>>;
1202
+ stop: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
1203
+ store: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1204
+ stream: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1205
+ stream_options: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1206
+ include_obfuscation: z.ZodOptional<z.ZodBoolean>;
1207
+ include_usage: z.ZodOptional<z.ZodBoolean>;
1208
+ }, z.core.$strip>>>;
1209
+ temperature: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1210
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1211
+ auto: "auto";
1212
+ none: "none";
1213
+ required: "required";
1214
+ }>, z.ZodObject<{
1215
+ allowed_tools: z.ZodObject<{
1216
+ mode: z.ZodEnum<{
1217
+ auto: "auto";
1218
+ required: "required";
1219
+ }>;
1220
+ tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1221
+ }, z.core.$strip>;
1222
+ type: z.ZodLiteral<"allowed_tools">;
1223
+ }, z.core.$strip>, z.ZodObject<{
1224
+ function: z.ZodObject<{
1225
+ name: z.ZodString;
1226
+ }, z.core.$strip>;
1227
+ type: z.ZodLiteral<"function">;
1228
+ }, z.core.$strip>, z.ZodObject<{
1229
+ custom: z.ZodObject<{
1230
+ name: z.ZodString;
1231
+ }, z.core.$strip>;
1232
+ type: z.ZodLiteral<"custom">;
1233
+ }, z.core.$strip>]>>;
1234
+ tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1235
+ function: z.ZodObject<{
1236
+ name: z.ZodString;
1237
+ description: z.ZodOptional<z.ZodString>;
1238
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1239
+ }, z.core.$strip>;
1240
+ type: z.ZodLiteral<"function">;
1241
+ }, z.core.$strip>, z.ZodObject<{
1242
+ custom: z.ZodObject<{
1243
+ name: z.ZodString;
1244
+ description: z.ZodOptional<z.ZodString>;
1245
+ format: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1246
+ type: z.ZodLiteral<"text">;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ grammar: z.ZodObject<{
1249
+ definition: z.ZodString;
1250
+ syntax: z.ZodEnum<{
1251
+ lark: "lark";
1252
+ regex: "regex";
1253
+ }>;
1254
+ }, z.core.$strip>;
1255
+ type: z.ZodLiteral<"grammar">;
1256
+ }, z.core.$strip>]>>;
1257
+ }, z.core.$strip>;
1258
+ type: z.ZodLiteral<"custom">;
1259
+ }, z.core.$strip>]>>>;
1260
+ top_logprobs: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1261
+ top_p: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1262
+ user: z.ZodOptional<z.ZodString>;
1263
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1264
+ low: "low";
1265
+ high: "high";
1266
+ medium: "medium";
1267
+ }>>>;
1268
+ web_search_options: z.ZodOptional<z.ZodObject<{
1269
+ search_context_size: z.ZodOptional<z.ZodEnum<{
1270
+ low: "low";
1271
+ high: "high";
1272
+ medium: "medium";
1273
+ }>>;
1274
+ user_location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1275
+ approximate: z.ZodObject<{
1276
+ city: z.ZodOptional<z.ZodString>;
1277
+ country: z.ZodOptional<z.ZodString>;
1278
+ region: z.ZodOptional<z.ZodString>;
1279
+ timezone: z.ZodOptional<z.ZodString>;
1280
+ }, z.core.$strip>;
1281
+ type: z.ZodLiteral<"approximate">;
1282
+ }, z.core.$strip>>>;
1283
+ }, z.core.$strip>>;
1284
+ }, z.core.$strip>;
1285
+ type VariantJsonData = z.infer<typeof variantJsonDataSchema>;
1286
+ //#endregion
1287
+ //#region src/utils/logger.d.ts
1288
+ declare const logger: pino.Logger<never, boolean>;
1289
+ //#endregion
1290
+ //#region src/utils/id.d.ts
1291
+ declare const generateId: (size?: number) => string;
1292
+ //#endregion
1293
+ //#region src/datalayer/index.d.ts
1294
+ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
1295
+ createVariantVersion: (params: zod0.infer<zod0.ZodObject<{
1296
+ variantId: zod0.ZodString;
1297
+ provider: zod0.ZodString;
1298
+ modelName: zod0.ZodString;
1299
+ jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
1300
+ }, zod_v4_core0.$strip>>) => Promise<{
1301
+ version: number;
1302
+ variantId: string;
1303
+ id: string;
1304
+ provider: string;
1305
+ modelName: string;
1306
+ jsonData: Record<string, unknown>;
1307
+ createdAt: Date;
1308
+ updatedAt: Date;
1309
+ } | undefined>;
1310
+ getVariantVersionById: (params: zod0.infer<zod0.ZodObject<{
1311
+ id: zod0.ZodString;
1312
+ }, zod_v4_core0.$strip>>) => Promise<{
1313
+ version: number;
1314
+ variantId: string;
1315
+ id: string;
1316
+ provider: string;
1317
+ modelName: string;
1318
+ jsonData: Record<string, unknown>;
1319
+ createdAt: Date;
1320
+ updatedAt: Date;
1321
+ } | undefined>;
1322
+ getVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
1323
+ variantId: zod0.ZodString;
1324
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1325
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1326
+ }, zod_v4_core0.$strip>>) => Promise<{
1327
+ version: number;
1328
+ variantId: string;
1329
+ id: string;
1330
+ provider: string;
1331
+ modelName: string;
1332
+ jsonData: Record<string, unknown>;
1333
+ createdAt: Date;
1334
+ updatedAt: Date;
1335
+ }[]>;
1336
+ getLatestVariantVersion: (params: zod0.infer<zod0.ZodObject<{
1337
+ variantId: zod0.ZodString;
1338
+ }, zod_v4_core0.$strip>>) => Promise<{
1339
+ version: number;
1340
+ variantId: string;
1341
+ id: string;
1342
+ provider: string;
1343
+ modelName: string;
1344
+ jsonData: Record<string, unknown>;
1345
+ createdAt: Date;
1346
+ updatedAt: Date;
1347
+ } | undefined>;
1348
+ getVariantVersionByNumber: (params: zod0.infer<zod0.ZodObject<{
1349
+ variantId: zod0.ZodString;
1350
+ version: zod0.ZodNumber;
1351
+ }, zod_v4_core0.$strip>>) => Promise<{
1352
+ version: number;
1353
+ variantId: string;
1354
+ id: string;
1355
+ provider: string;
1356
+ modelName: string;
1357
+ jsonData: Record<string, unknown>;
1358
+ createdAt: Date;
1359
+ updatedAt: Date;
1360
+ } | undefined>;
1361
+ deleteVariantVersion: (params: zod0.infer<zod0.ZodObject<{
1362
+ id: zod0.ZodString;
1363
+ }, zod_v4_core0.$strip>>) => Promise<{
1364
+ version: number;
1365
+ variantId: string;
1366
+ id: string;
1367
+ provider: string;
1368
+ modelName: string;
1369
+ jsonData: Record<string, unknown>;
1370
+ createdAt: Date;
1371
+ updatedAt: Date;
1372
+ } | undefined>;
1373
+ deleteVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
1374
+ variantId: zod0.ZodString;
1375
+ }, zod_v4_core0.$strip>>) => Promise<{
1376
+ version: number;
1377
+ variantId: string;
1378
+ id: string;
1379
+ provider: string;
1380
+ modelName: string;
1381
+ jsonData: Record<string, unknown>;
1382
+ createdAt: Date;
1383
+ updatedAt: Date;
1384
+ }[]>;
1385
+ getVariantVersionWithVariant: (params: zod0.infer<zod0.ZodObject<{
1386
+ id: zod0.ZodString;
1387
+ }, zod_v4_core0.$strip>>) => Promise<{
1388
+ version: number;
1389
+ variantId: string;
1390
+ id: string;
1391
+ provider: string;
1392
+ modelName: string;
1393
+ jsonData: Record<string, unknown>;
1394
+ createdAt: Date;
1395
+ updatedAt: Date;
1396
+ variantName: string;
1397
+ } | undefined>;
1398
+ getVariantVersionsWithVariantByVariantId: (params: zod0.infer<zod0.ZodObject<{
1399
+ variantId: zod0.ZodString;
1400
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1401
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1402
+ }, zod_v4_core0.$strip>>) => Promise<{
1403
+ version: number;
1404
+ variantId: string;
1405
+ id: string;
1406
+ provider: string;
1407
+ modelName: string;
1408
+ jsonData: Record<string, unknown>;
1409
+ createdAt: Date;
1410
+ updatedAt: Date;
1411
+ variantName: string;
1412
+ }[]>;
1413
+ createVariant: (params: zod0.infer<zod0.ZodObject<{
1414
+ name: zod0.ZodString;
1415
+ }, zod_v4_core0.$strip>>) => Promise<{
1416
+ name: string;
1417
+ id: string;
1418
+ createdAt: Date;
1419
+ updatedAt: Date;
1420
+ } | undefined>;
1421
+ updateVariant: (params: zod0.infer<zod0.ZodObject<{
1422
+ variantId: zod0.ZodString;
1423
+ name: zod0.ZodOptional<zod0.ZodString>;
1424
+ }, zod_v4_core0.$strip>>) => Promise<{
1425
+ name: string;
1426
+ id: string;
1427
+ createdAt: Date;
1428
+ updatedAt: Date;
1429
+ } | undefined>;
1430
+ getVariantById: (params: zod0.infer<zod0.ZodObject<{
1431
+ variantId: zod0.ZodString;
1432
+ }, zod_v4_core0.$strip>>) => Promise<{
1433
+ name: string;
1434
+ id: string;
1435
+ createdAt: Date;
1436
+ updatedAt: Date;
1437
+ } | undefined>;
1438
+ getVariantWithLatestVersion: (params: zod0.infer<zod0.ZodObject<{
1439
+ variantId: zod0.ZodString;
1440
+ }, zod_v4_core0.$strip>>) => Promise<{
1441
+ latestVersion: {
1442
+ version: number;
1443
+ variantId: string;
1444
+ id: string;
1445
+ provider: string;
1446
+ modelName: string;
1447
+ jsonData: Record<string, unknown>;
1448
+ createdAt: Date;
1449
+ updatedAt: Date;
1450
+ } | null;
1451
+ name: string;
1452
+ id: string;
1453
+ createdAt: Date;
1454
+ updatedAt: Date;
1455
+ } | undefined>;
1456
+ deleteVariant: (params: zod0.infer<zod0.ZodObject<{
1457
+ variantId: zod0.ZodString;
1458
+ }, zod_v4_core0.$strip>>) => Promise<{
1459
+ name: string;
1460
+ id: string;
1461
+ createdAt: Date;
1462
+ updatedAt: Date;
1463
+ } | undefined>;
1464
+ listVariants: (params?: zod0.infer<zod0.ZodObject<{
1465
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1466
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1467
+ }, zod_v4_core0.$strip>>) => Promise<{
1468
+ name: string;
1469
+ id: string;
1470
+ createdAt: Date;
1471
+ updatedAt: Date;
1472
+ }[]>;
1473
+ listVariantsWithLatestVersion: (params?: zod0.infer<zod0.ZodObject<{
1474
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1475
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1476
+ }, zod_v4_core0.$strip>>) => Promise<{
1477
+ latestVersion: {
1478
+ version: number;
1479
+ variantId: string;
1480
+ id: string;
1481
+ provider: string;
1482
+ modelName: string;
1483
+ jsonData: Record<string, unknown>;
1484
+ createdAt: Date;
1485
+ updatedAt: Date;
1486
+ } | null;
1487
+ name: string;
1488
+ id: string;
1489
+ createdAt: Date;
1490
+ updatedAt: Date;
1491
+ }[]>;
1492
+ createTargetingRule: (params: zod0.infer<zod0.ZodObject<{
1493
+ environmentId: zod0.ZodString;
1494
+ configId: zod0.ZodString;
1495
+ configVariantId: zod0.ZodString;
1496
+ variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
1497
+ weight: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
1498
+ priority: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
1499
+ enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
1500
+ conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
1501
+ }, zod_v4_core0.$strip>>) => Promise<{
1502
+ configId: string;
1503
+ id: string;
1504
+ environmentId: string;
1505
+ configVariantId: string;
1506
+ variantVersionId: string | null;
1507
+ weight: number;
1508
+ priority: number;
1509
+ enabled: boolean;
1510
+ conditions: Record<string, unknown>;
1511
+ createdAt: Date;
1512
+ updatedAt: Date;
1513
+ } | undefined>;
1514
+ updateTargetingRule: (params: zod0.infer<zod0.ZodObject<{
1515
+ id: zod0.ZodString;
1516
+ variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
1517
+ weight: zod0.ZodOptional<zod0.ZodNumber>;
1518
+ priority: zod0.ZodOptional<zod0.ZodNumber>;
1519
+ enabled: zod0.ZodOptional<zod0.ZodBoolean>;
1520
+ conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
1521
+ }, zod_v4_core0.$strip>>) => Promise<{
1522
+ configId: string;
1523
+ id: string;
1524
+ environmentId: string;
1525
+ configVariantId: string;
1526
+ variantVersionId: string | null;
1527
+ weight: number;
1528
+ priority: number;
1529
+ enabled: boolean;
1530
+ conditions: Record<string, unknown>;
1531
+ createdAt: Date;
1532
+ updatedAt: Date;
1533
+ } | undefined>;
1534
+ getTargetingRuleById: (params: zod0.infer<zod0.ZodObject<{
1535
+ id: zod0.ZodString;
1536
+ }, zod_v4_core0.$strip>>) => Promise<{
1537
+ configId: string;
1538
+ id: string;
1539
+ environmentId: string;
1540
+ configVariantId: string;
1541
+ variantVersionId: string | null;
1542
+ weight: number;
1543
+ priority: number;
1544
+ enabled: boolean;
1545
+ conditions: Record<string, unknown>;
1546
+ createdAt: Date;
1547
+ updatedAt: Date;
1548
+ } | undefined>;
1549
+ getTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
1550
+ configId: zod0.ZodString;
1551
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1552
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1553
+ }, zod_v4_core0.$strip>>) => Promise<{
1554
+ configId: string;
1555
+ id: string;
1556
+ environmentId: string;
1557
+ configVariantId: string;
1558
+ variantVersionId: string | null;
1559
+ weight: number;
1560
+ priority: number;
1561
+ enabled: boolean;
1562
+ conditions: Record<string, unknown>;
1563
+ createdAt: Date;
1564
+ updatedAt: Date;
1565
+ }[]>;
1566
+ getTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
1567
+ environmentId: zod0.ZodString;
1568
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1569
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1570
+ }, zod_v4_core0.$strip>>) => Promise<{
1571
+ configId: string;
1572
+ id: string;
1573
+ environmentId: string;
1574
+ configVariantId: string;
1575
+ variantVersionId: string | null;
1576
+ weight: number;
1577
+ priority: number;
1578
+ enabled: boolean;
1579
+ conditions: Record<string, unknown>;
1580
+ createdAt: Date;
1581
+ updatedAt: Date;
1582
+ }[]>;
1583
+ getTargetingRulesByConfigAndEnvironment: (params: zod0.infer<zod0.ZodObject<{
1584
+ configId: zod0.ZodString;
1585
+ environmentId: zod0.ZodString;
1586
+ }, zod_v4_core0.$strip>>) => Promise<{
1587
+ configId: string;
1588
+ id: string;
1589
+ environmentId: string;
1590
+ configVariantId: string;
1591
+ variantVersionId: string | null;
1592
+ weight: number;
1593
+ priority: number;
1594
+ enabled: boolean;
1595
+ conditions: Record<string, unknown>;
1596
+ createdAt: Date;
1597
+ updatedAt: Date;
1598
+ }[]>;
1599
+ deleteTargetingRule: (params: zod0.infer<zod0.ZodObject<{
1600
+ id: zod0.ZodString;
1601
+ }, zod_v4_core0.$strip>>) => Promise<{
1602
+ configId: string;
1603
+ id: string;
1604
+ environmentId: string;
1605
+ configVariantId: string;
1606
+ variantVersionId: string | null;
1607
+ weight: number;
1608
+ priority: number;
1609
+ enabled: boolean;
1610
+ conditions: Record<string, unknown>;
1611
+ createdAt: Date;
1612
+ updatedAt: Date;
1613
+ } | undefined>;
1614
+ deleteTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
1615
+ configId: zod0.ZodString;
1616
+ }, zod_v4_core0.$strip>>) => Promise<{
1617
+ configId: string;
1618
+ id: string;
1619
+ environmentId: string;
1620
+ configVariantId: string;
1621
+ variantVersionId: string | null;
1622
+ weight: number;
1623
+ priority: number;
1624
+ enabled: boolean;
1625
+ conditions: Record<string, unknown>;
1626
+ createdAt: Date;
1627
+ updatedAt: Date;
1628
+ }[]>;
1629
+ deleteTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
1630
+ environmentId: zod0.ZodString;
1631
+ }, zod_v4_core0.$strip>>) => Promise<{
1632
+ configId: string;
1633
+ id: string;
1634
+ environmentId: string;
1635
+ configVariantId: string;
1636
+ variantVersionId: string | null;
1637
+ weight: number;
1638
+ priority: number;
1639
+ enabled: boolean;
1640
+ conditions: Record<string, unknown>;
1641
+ createdAt: Date;
1642
+ updatedAt: Date;
1643
+ }[]>;
1644
+ listTargetingRules: (params?: zod0.infer<zod0.ZodObject<{
1645
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1646
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1647
+ }, zod_v4_core0.$strip>>) => Promise<{
1648
+ configId: string;
1649
+ id: string;
1650
+ environmentId: string;
1651
+ configVariantId: string;
1652
+ variantVersionId: string | null;
1653
+ weight: number;
1654
+ priority: number;
1655
+ enabled: boolean;
1656
+ conditions: Record<string, unknown>;
1657
+ createdAt: Date;
1658
+ updatedAt: Date;
1659
+ }[]>;
1660
+ getTargetingRulesWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
1661
+ configId: zod0.ZodString;
1662
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1663
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1664
+ }, zod_v4_core0.$strip>>) => Promise<{
1665
+ variantProvider: string | null;
1666
+ variantModelName: string | null;
1667
+ pinnedVersion: number | null | undefined;
1668
+ latestVersion: number | null | undefined;
1669
+ variantName: string | null;
1670
+ configId: string;
1671
+ id: string;
1672
+ environmentId: string;
1673
+ configVariantId: string;
1674
+ variantVersionId: string | null;
1675
+ weight: number;
1676
+ priority: number;
1677
+ enabled: boolean;
1678
+ conditions: Record<string, unknown>;
1679
+ createdAt: Date;
1680
+ updatedAt: Date;
1681
+ variantId: string | null;
1682
+ environmentName: string | null;
1683
+ environmentSlug: string | null;
1684
+ }[]>;
1685
+ setTargetingForEnvironment: (params: zod0.infer<zod0.ZodObject<{
1686
+ environmentId: zod0.ZodString;
1687
+ configId: zod0.ZodString;
1688
+ configVariantId: zod0.ZodString;
1689
+ variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
1690
+ }, zod_v4_core0.$strip>>) => Promise<{
1691
+ configId: string;
1692
+ id: string;
1693
+ environmentId: string;
1694
+ configVariantId: string;
1695
+ variantVersionId: string | null;
1696
+ weight: number;
1697
+ priority: number;
1698
+ enabled: boolean;
1699
+ conditions: Record<string, unknown>;
1700
+ createdAt: Date;
1701
+ updatedAt: Date;
1702
+ } | undefined>;
1703
+ createEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
1704
+ environmentId: zod0.ZodUUID;
1705
+ keyName: zod0.ZodString;
1706
+ keyValue: zod0.ZodString;
1707
+ }, zod_v4_core0.$strip>>) => Promise<{
1708
+ id: string;
1709
+ environmentId: string;
1710
+ keyName: string;
1711
+ keyValue: string;
1712
+ createdAt: Date;
1713
+ updatedAt: Date;
1714
+ } | undefined>;
1715
+ updateEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
1716
+ secretId: zod0.ZodUUID;
1717
+ keyName: zod0.ZodOptional<zod0.ZodString>;
1718
+ keyValue: zod0.ZodOptional<zod0.ZodString>;
1719
+ }, zod_v4_core0.$strip>>) => Promise<{
1720
+ id: string;
1721
+ environmentId: string;
1722
+ keyName: string;
1723
+ keyValue: string;
1724
+ createdAt: Date;
1725
+ updatedAt: Date;
1726
+ } | undefined>;
1727
+ getEnvironmentSecretById: (params: zod0.infer<zod0.ZodObject<{
1728
+ secretId: zod0.ZodUUID;
1729
+ }, zod_v4_core0.$strip>>) => Promise<{
1730
+ id: string;
1731
+ environmentId: string;
1732
+ keyName: string;
1733
+ keyValue: string;
1734
+ createdAt: Date;
1735
+ updatedAt: Date;
1736
+ } | undefined>;
1737
+ getSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
1738
+ environmentId: zod0.ZodUUID;
1739
+ }, zod_v4_core0.$strip>>) => Promise<{
1740
+ id: string;
1741
+ environmentId: string;
1742
+ keyName: string;
1743
+ keyValue: string;
1744
+ createdAt: Date;
1745
+ updatedAt: Date;
1746
+ }[]>;
1747
+ deleteEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
1748
+ secretId: zod0.ZodUUID;
1749
+ }, zod_v4_core0.$strip>>) => Promise<{
1750
+ id: string;
1751
+ environmentId: string;
1752
+ keyName: string;
1753
+ keyValue: string;
1754
+ createdAt: Date;
1755
+ updatedAt: Date;
1756
+ } | undefined>;
1757
+ deleteSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
1758
+ environmentId: zod0.ZodUUID;
1759
+ }, zod_v4_core0.$strip>>) => Promise<{
1760
+ id: string;
1761
+ environmentId: string;
1762
+ keyName: string;
1763
+ keyValue: string;
1764
+ createdAt: Date;
1765
+ updatedAt: Date;
1766
+ }[]>;
1767
+ listEnvironmentSecrets: (params?: zod0.infer<zod0.ZodObject<{
1768
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1769
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1770
+ }, zod_v4_core0.$strip>>) => Promise<{
1771
+ id: string;
1772
+ environmentId: string;
1773
+ keyName: string;
1774
+ keyValue: string;
1775
+ createdAt: Date;
1776
+ updatedAt: Date;
1777
+ }[]>;
1778
+ countEnvironmentSecrets: () => Promise<number>;
1779
+ createNewEnvironment: (params: zod0.infer<zod0.ZodObject<{
1780
+ name: zod0.ZodString;
1781
+ slug: zod0.ZodString;
1782
+ isProd: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
1783
+ }, zod_v4_core0.$strip>>) => Promise<{
1784
+ name: string;
1785
+ id: string;
1786
+ slug: string;
1787
+ isProd: boolean;
1788
+ createdAt: Date;
1789
+ updatedAt: Date;
1790
+ } | undefined>;
1791
+ updateEnvironment: (params: zod0.infer<zod0.ZodObject<{
1792
+ environmentId: zod0.ZodUUID;
1793
+ name: zod0.ZodOptional<zod0.ZodString>;
1794
+ slug: zod0.ZodOptional<zod0.ZodString>;
1795
+ }, zod_v4_core0.$strip>>) => Promise<{
1796
+ name: string;
1797
+ id: string;
1798
+ slug: string;
1799
+ isProd: boolean;
1800
+ createdAt: Date;
1801
+ updatedAt: Date;
1802
+ } | undefined>;
1803
+ getEnvironmentById: (params: zod0.infer<zod0.ZodObject<{
1804
+ environmentId: zod0.ZodUUID;
1805
+ }, zod_v4_core0.$strip>>) => Promise<{
1806
+ name: string;
1807
+ id: string;
1808
+ slug: string;
1809
+ isProd: boolean;
1810
+ createdAt: Date;
1811
+ updatedAt: Date;
1812
+ } | undefined>;
1813
+ getEnvironmentBySlug: (params: zod0.infer<zod0.ZodObject<{
1814
+ slug: zod0.ZodString;
1815
+ }, zod_v4_core0.$strip>>) => Promise<{
1816
+ name: string;
1817
+ id: string;
1818
+ slug: string;
1819
+ isProd: boolean;
1820
+ createdAt: Date;
1821
+ updatedAt: Date;
1822
+ } | undefined>;
1823
+ deleteEnvironment: (params: zod0.infer<zod0.ZodObject<{
1824
+ environmentId: zod0.ZodUUID;
1825
+ }, zod_v4_core0.$strip>>) => Promise<{
1826
+ name: string;
1827
+ id: string;
1828
+ slug: string;
1829
+ isProd: boolean;
1830
+ createdAt: Date;
1831
+ updatedAt: Date;
1832
+ } | undefined>;
1833
+ listEnvironments: (params?: zod0.infer<zod0.ZodObject<{
1834
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1835
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1836
+ }, zod_v4_core0.$strip>>) => Promise<{
1837
+ name: string;
1838
+ id: string;
1839
+ slug: string;
1840
+ isProd: boolean;
1841
+ createdAt: Date;
1842
+ updatedAt: Date;
1843
+ }[]>;
1844
+ countEnvironments: () => Promise<number>;
1845
+ createConfigVariant: (params: zod0.infer<zod0.ZodObject<{
1846
+ configId: zod0.ZodString;
1847
+ variantId: zod0.ZodString;
1848
+ }, zod_v4_core0.$strip>>) => Promise<{
1849
+ configId: string;
1850
+ variantId: string;
1851
+ id: string;
1852
+ createdAt: Date;
1853
+ updatedAt: Date;
1854
+ } | undefined>;
1855
+ getConfigVariantById: (params: zod0.infer<zod0.ZodObject<{
1856
+ id: zod0.ZodString;
1857
+ }, zod_v4_core0.$strip>>) => Promise<{
1858
+ configId: string;
1859
+ variantId: string;
1860
+ id: string;
1861
+ createdAt: Date;
1862
+ updatedAt: Date;
1863
+ } | undefined>;
1864
+ getConfigVariantsByConfigId: (params: zod0.infer<zod0.ZodObject<{
1865
+ configId: zod0.ZodString;
1866
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1867
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1868
+ }, zod_v4_core0.$strip>>) => Promise<{
1869
+ configId: string;
1870
+ variantId: string;
1871
+ id: string;
1872
+ createdAt: Date;
1873
+ updatedAt: Date;
1874
+ }[]>;
1875
+ getConfigVariantsByVariantId: (params: zod0.infer<zod0.ZodObject<{
1876
+ variantId: zod0.ZodString;
1877
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1878
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1879
+ }, zod_v4_core0.$strip>>) => Promise<{
1880
+ configId: string;
1881
+ variantId: string;
1882
+ id: string;
1883
+ createdAt: Date;
1884
+ updatedAt: Date;
1885
+ }[]>;
1886
+ deleteConfigVariant: (params: zod0.infer<zod0.ZodObject<{
1887
+ id: zod0.ZodString;
1888
+ }, zod_v4_core0.$strip>>) => Promise<{
1889
+ configId: string;
1890
+ variantId: string;
1891
+ id: string;
1892
+ createdAt: Date;
1893
+ updatedAt: Date;
1894
+ } | undefined>;
1895
+ deleteConfigVariantByIds: (params: zod0.infer<zod0.ZodObject<{
1896
+ configId: zod0.ZodString;
1897
+ variantId: zod0.ZodString;
1898
+ }, zod_v4_core0.$strip>>) => Promise<{
1899
+ configId: string;
1900
+ variantId: string;
1901
+ id: string;
1902
+ createdAt: Date;
1903
+ updatedAt: Date;
1904
+ } | undefined>;
1905
+ listConfigVariants: (params?: zod0.infer<zod0.ZodObject<{
1906
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1907
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1908
+ }, zod_v4_core0.$strip>>) => Promise<{
1909
+ configId: string;
1910
+ variantId: string;
1911
+ id: string;
1912
+ createdAt: Date;
1913
+ updatedAt: Date;
1914
+ }[]>;
1915
+ getConfigVariantWithDetails: (params: zod0.infer<zod0.ZodObject<{
1916
+ id: zod0.ZodString;
1917
+ }, zod_v4_core0.$strip>>) => Promise<{
1918
+ latestVersion: {
1919
+ version: number;
1920
+ variantId: string;
1921
+ id: string;
1922
+ provider: string;
1923
+ modelName: string;
1924
+ jsonData: Record<string, unknown>;
1925
+ createdAt: Date;
1926
+ updatedAt: Date;
1927
+ } | null;
1928
+ variantName: string | null;
1929
+ id: string;
1930
+ configId: string;
1931
+ variantId: string;
1932
+ createdAt: Date;
1933
+ updatedAt: Date;
1934
+ configName: string | null | undefined;
1935
+ } | undefined>;
1936
+ getConfigVariantsWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
1937
+ configId: zod0.ZodString;
1938
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
1939
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
1940
+ }, zod_v4_core0.$strip>>) => Promise<{
1941
+ provider: string | null;
1942
+ modelName: string | null;
1943
+ jsonData: Record<string, unknown> | null;
1944
+ latestVersion: {
1945
+ version: number;
1946
+ variantId: string;
1947
+ id: string;
1948
+ provider: string;
1949
+ modelName: string;
1950
+ jsonData: Record<string, unknown>;
1951
+ createdAt: Date;
1952
+ updatedAt: Date;
1953
+ } | null;
1954
+ name: string | null;
1955
+ id: string;
1956
+ configId: string;
1957
+ variantId: string;
1958
+ createdAt: Date;
1959
+ updatedAt: Date;
1960
+ }[]>;
1961
+ createVariantAndLinkToConfig: (params: zod0.infer<zod0.ZodObject<{
1962
+ configId: zod0.ZodString;
1963
+ name: zod0.ZodString;
1964
+ provider: zod0.ZodString;
1965
+ modelName: zod0.ZodString;
1966
+ jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
1967
+ }, zod_v4_core0.$strip>>) => Promise<{
1968
+ variant: {
1969
+ name: string;
1970
+ id: string;
1971
+ createdAt: Date;
1972
+ updatedAt: Date;
1973
+ };
1974
+ version: {
1975
+ version: number;
1976
+ variantId: string;
1977
+ id: string;
1978
+ provider: string;
1979
+ modelName: string;
1980
+ jsonData: Record<string, unknown>;
1981
+ createdAt: Date;
1982
+ updatedAt: Date;
1983
+ };
1984
+ configVariant: {
1985
+ configId: string;
1986
+ variantId: string;
1987
+ id: string;
1988
+ createdAt: Date;
1989
+ updatedAt: Date;
1990
+ };
1991
+ }>;
1992
+ getVariantJsonDataForConfig: (params: zod0.infer<zod0.ZodObject<{
1993
+ configId: zod0.ZodString;
1994
+ envSecret: zod0.ZodOptional<zod0.ZodString>;
1995
+ }, zod_v4_core0.$strip>>) => Promise<{
1996
+ version: number;
1997
+ provider: string;
1998
+ modelName: string;
1999
+ jsonData: Record<string, unknown>;
2000
+ }>;
2001
+ createNewConfig: (params: zod0.infer<zod0.ZodObject<{
2002
+ name: zod0.ZodString;
2003
+ }, zod_v4_core0.$strip>>) => Promise<{
2004
+ name: string | undefined;
2005
+ id: string;
2006
+ slug: string;
2007
+ createdAt: Date;
2008
+ updatedAt: Date;
2009
+ } | undefined>;
2010
+ updateConfigName: (params: zod0.infer<zod0.ZodObject<{
2011
+ configId: zod0.ZodUUID;
2012
+ newName: zod0.ZodString;
2013
+ }, zod_v4_core0.$strip>>) => Promise<{
2014
+ name: string | undefined;
2015
+ id: string;
2016
+ slug: string;
2017
+ createdAt: Date;
2018
+ updatedAt: Date;
2019
+ } | undefined>;
2020
+ getConfigById: (params: zod0.infer<zod0.ZodObject<{
2021
+ configId: zod0.ZodUUID;
2022
+ }, zod_v4_core0.$strip>>) => Promise<{
2023
+ name: string | undefined;
2024
+ id: string;
2025
+ slug: string;
2026
+ createdAt: Date;
2027
+ updatedAt: Date;
2028
+ } | undefined>;
2029
+ deleteConfig: (params: zod0.infer<zod0.ZodObject<{
2030
+ configId: zod0.ZodUUID;
2031
+ }, zod_v4_core0.$strip>>) => Promise<{
2032
+ name: string | undefined;
2033
+ id: string;
2034
+ slug: string;
2035
+ createdAt: Date;
2036
+ updatedAt: Date;
2037
+ } | undefined>;
2038
+ listConfigs: (params?: zod0.infer<zod0.ZodObject<{
2039
+ limit: zod0.ZodOptional<zod0.ZodNumber>;
2040
+ offset: zod0.ZodOptional<zod0.ZodNumber>;
2041
+ }, zod_v4_core0.$strip>>) => Promise<{
2042
+ name: string | undefined;
2043
+ id: string;
2044
+ slug: string;
2045
+ createdAt: Date;
2046
+ updatedAt: Date;
2047
+ }[]>;
2048
+ getConfigWithVariants: (params: zod0.infer<zod0.ZodObject<{
2049
+ configId: zod0.ZodUUID;
2050
+ }, zod_v4_core0.$strip>>) => Promise<{
2051
+ provider: string | null;
2052
+ modelName: string | null;
2053
+ jsonData: Record<string, unknown> | null;
2054
+ variantName: string | null;
2055
+ id: string;
2056
+ name: string | undefined;
2057
+ slug: string;
2058
+ createdAt: Date;
2059
+ updatedAt: Date;
2060
+ variantId: string | null;
2061
+ }[]>;
2062
+ }>;
2063
+ //#endregion
2064
+ export { type AnthropicProviderConfig, type AnyProviderConfig, 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, 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, llmopsConfigSchema, logger, parsePartialTableData, parseTableData, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema };