@opengeni/config 2.0.0 → 2.0.2-canary.38686408778001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,33 @@
1
- import { Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1, type VideoGenerationResolution, type FirstPartyMcpToolName as FirstPartyMcpToolNameType } from "@opengeni/contracts";
1
+ export { managedUserEmailAllowed } from "./managed-user-admission.js";
2
+ export * from "./realtime-voice-pricing.js";
3
+ export * from "./web-search.js";
4
+ export { CreditPromotionPolicy, signupCreditModelIds, promotionalCreditScope, } from "./credit-promotions.js";
5
+ import { type AgentConfigDeploymentLimits, type OrganizationModelDefaults, type ModelCompactionPolicy, Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, TurnServingPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1, type VideoGenerationResolution, type FirstPartyMcpToolName as FirstPartyMcpToolNameType, type Session } from "@opengeni/contracts";
6
+ import type { CodeSearchDeploymentPolicy } from "@opengeni/contracts/code-search";
2
7
  export { XAI_SUBSCRIPTION_MODEL_ID_PREFIX } from "@opengeni/xai-subscription";
3
8
  import { z } from "zod";
9
+ /**
10
+ * Default maximum provider silence on a generic OpenAI-compatible model stream
11
+ * while the worker is waiting for the next chunk. Matches the Codex transport
12
+ * and SuperGrok idle defaults (5 minutes): long enough for a reasoning model's
13
+ * silent thinking gaps, short enough that a wedged stream recovers the same
14
+ * turn instead of hanging until a worker roll.
15
+ */
16
+ export declare const DEFAULT_MODEL_STREAM_IDLE_TIMEOUT_MS = 300000;
17
+ /**
18
+ * Default maximum wait across keepalive-only traffic (SSE comments, `ping` /
19
+ * `keepalive` events, repeated `response.in_progress`) for the next
20
+ * model-progress event on a generic model stream. A provider can keep a
21
+ * connection alive while its generation is wedged; this bounds that case.
22
+ * Ten minutes leaves room for a reasoning model's longest silent thinking
23
+ * window (reasoning summaries stream as progress).
24
+ */
25
+ export declare const DEFAULT_MODEL_STREAM_PROGRESS_TIMEOUT_MS = 600000;
4
26
  export declare const DEFAULT_OPENROUTER_MODEL_ID: "openrouter/nvidia/nemotron-3-super-120b-a12b:free";
5
27
  export declare const DEFAULT_MODEL_COST_POLICY_JSON: string;
6
28
  export declare const SANDBOX_ARCHIVE_CAPTURE_MAX_TIMEOUT_MS: number;
7
29
  export declare const SANDBOX_ARCHIVE_CAPTURE_SETTLEMENT_GRACE_MS = 10000;
30
+ export declare const SANDBOX_DEADLINE_COMMAND_STOP_GRACE_MS = 120000;
8
31
  export declare const SANDBOX_SNAPSHOT_MAX_TIMEOUT_MS: number;
9
32
  export declare const GOOGLE_DRIVE_PROVIDER_REQUEST_TIMEOUT_MAX_MS = 60000;
10
33
  export declare const GOOGLE_DRIVE_PROVIDER_RETRY_DELAY_MAX_MS = 60000;
@@ -28,8 +51,9 @@ export declare const sandboxPreparationProfiles: Record<string, {
28
51
  export declare const AGENT_INSTRUCTIONS_CORE_PLACEHOLDER = "{{core}}";
29
52
  /**
30
53
  * Default per-workspace agent persona template. This is the BRAND + tool-usage
31
- * opinion (the white-labellable surface): the "You are an OpenGeni workspace
32
- * agent." identity line, the framing/opinion lines, and the mount-path facts.
54
+ * opinion (the white-labellable surface): the general-assistant identity line,
55
+ * the framing/opinion lines, and the mount-path facts. Domain-specific tooling
56
+ * guidance (for example Terraform or Checkov) belongs in opt-in Skills.
33
57
  *
34
58
  * The CORE that MUST survive any override — the goal-loop ownership line (which
35
59
  * names the opengeni__goal_* tools) and the dynamic workspace-environment block
@@ -78,13 +102,14 @@ export declare const McpOperationRecoverySchema: z.ZodRecord<z.ZodString, z.ZodO
78
102
  observerTool: z.ZodString;
79
103
  }, z.core.$strict>>;
80
104
  /** Public, digest-pinned desktop image used by Modal unless the operator overrides it. */
81
- export declare const DEFAULT_MODAL_IMAGE_REF = "opengenipublicneuacr.azurecr.io/opengeni-desktop@sha256:c3bd17b8841de1bff9bb2777aad422cf8c75de78e2c30f9ac81d0cd6810a1b78";
105
+ export declare const DEFAULT_MODAL_IMAGE_REF = "opengenipublicneuacr.azurecr.io/opengeni-desktop@sha256:554d5b324a580071dd669e7c1190931e498eb1b397412a27c7de84a430ef393a";
82
106
  declare const SettingsSchema: z.ZodObject<{
83
107
  serviceName: z.ZodDefault<z.ZodString>;
84
108
  environment: z.ZodDefault<z.ZodString>;
85
109
  deploymentRevision: z.ZodDefault<z.ZodString>;
86
110
  serverVersion: z.ZodOptional<z.ZodString>;
87
111
  databaseUrl: z.ZodDefault<z.ZodString>;
112
+ apiDatabasePoolMax: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
88
113
  dbSchema: z.ZodDefault<z.ZodString>;
89
114
  rlsStrategy: z.ZodDefault<z.ZodEnum<{
90
115
  force: "force";
@@ -126,23 +151,37 @@ declare const SettingsSchema: z.ZodObject<{
126
151
  analyticsPosthogProjectKey: z.ZodOptional<z.ZodString>;
127
152
  analyticsPosthogHost: z.ZodOptional<z.ZodString>;
128
153
  analyticsGa4MeasurementId: z.ZodOptional<z.ZodString>;
154
+ legalPrivacyPolicyUrl: z.ZodOptional<z.ZodString>;
155
+ legalTermsOfServiceUrl: z.ZodOptional<z.ZodString>;
156
+ supportEmail: z.ZodOptional<z.ZodString>;
129
157
  publicBaseUrl: z.ZodOptional<z.ZodString>;
158
+ documentationUrl: z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodURL>>>;
130
159
  mcpOauthEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
131
- mcpOauthTrustedProxyHops: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
160
+ apiTrustedProxyHops: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
161
+ apiTrustedProxyCidrs: z.ZodDefault<z.ZodString>;
132
162
  webBaseUrl: z.ZodOptional<z.ZodString>;
133
163
  agentReleasesBaseUrl: z.ZodDefault<z.ZodString>;
134
164
  agentStableVersion: z.ZodDefault<z.ZodString>;
135
165
  agentBetaVersion: z.ZodOptional<z.ZodString>;
166
+ agentAutoUpdate: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
136
167
  productAccessMode: z.ZodDefault<z.ZodEnum<{
137
168
  configured: "configured";
138
169
  local: "local";
139
170
  managed: "managed";
140
171
  }>>;
141
- organizationTenancyCanonicalActivationEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
142
172
  billingMode: z.ZodDefault<z.ZodEnum<{
143
173
  disabled: "disabled";
144
174
  stripe: "stripe";
145
175
  }>>;
176
+ verifiedSignupTrialCreditsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
177
+ creditPromotionPolicy: z.ZodPreprocess<z.ZodDefault<z.ZodObject<{
178
+ defaultModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
179
+ signupModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
180
+ offers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
181
+ label: z.ZodString;
182
+ eligibleModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
183
+ }, z.core.$strict>>>;
184
+ }, z.core.$strict>>>;
146
185
  entitlementsMode: z.ZodDefault<z.ZodEnum<{
147
186
  managed: "managed";
148
187
  none: "none";
@@ -153,10 +192,14 @@ declare const SettingsSchema: z.ZodObject<{
153
192
  none: "none";
154
193
  static: "static";
155
194
  }>>;
195
+ usageAllowancesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
156
196
  staticEntitlementsJson: z.ZodDefault<z.ZodString>;
157
197
  staticUsageLimitsJson: z.ZodDefault<z.ZodString>;
158
198
  delegationSecret: z.ZodOptional<z.ZodString>;
159
199
  defaultFirstPartyMcpTools: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
200
+ admin_action_call: "admin_action_call";
201
+ admin_action_describe: "admin_action_describe";
202
+ admin_actions_search: "admin_actions_search";
160
203
  artifacts_archive: "artifacts_archive";
161
204
  artifacts_create: "artifacts_create";
162
205
  artifacts_get_source: "artifacts_get_source";
@@ -172,11 +215,15 @@ declare const SettingsSchema: z.ZodObject<{
172
215
  browser_auth: "browser_auth";
173
216
  browser_clipboard: "browser_clipboard";
174
217
  browser_debug: "browser_debug";
218
+ browser_download_save: "browser_download_save";
219
+ browser_downloads: "browser_downloads";
175
220
  browser_identity: "browser_identity";
176
221
  browser_lifecycle: "browser_lifecycle";
177
222
  browser_observe: "browser_observe";
178
223
  browser_open: "browser_open";
179
224
  browser_publish: "browser_publish";
225
+ browser_read: "browser_read";
226
+ browser_screenshot: "browser_screenshot";
180
227
  browser_tabs: "browser_tabs";
181
228
  capability_authorization_request: "capability_authorization_request";
182
229
  capability_catalog_search: "capability_catalog_search";
@@ -190,7 +237,10 @@ declare const SettingsSchema: z.ZodObject<{
190
237
  computer_observe: "computer_observe";
191
238
  computer_open: "computer_open";
192
239
  computer_targets: "computer_targets";
240
+ connected_machine_enable_screen_control: "connected_machine_enable_screen_control";
241
+ connected_machine_enroll_token: "connected_machine_enroll_token";
193
242
  connected_machine_remove: "connected_machine_remove";
243
+ custom_mcp_setup_request: "custom_mcp_setup_request";
194
244
  editable_artifact_apply: "editable_artifact_apply";
195
245
  editable_artifact_create: "editable_artifact_create";
196
246
  editable_artifact_export: "editable_artifact_export";
@@ -219,6 +269,7 @@ declare const SettingsSchema: z.ZodObject<{
219
269
  goal_resume: "goal_resume";
220
270
  goal_set: "goal_set";
221
271
  goal_update: "goal_update";
272
+ inbox_tidy: "inbox_tidy";
222
273
  instruction_policy_get: "instruction_policy_get";
223
274
  instruction_policy_propose: "instruction_policy_propose";
224
275
  instruction_policy_save: "instruction_policy_save";
@@ -237,6 +288,8 @@ declare const SettingsSchema: z.ZodObject<{
237
288
  memory_correct: "memory_correct";
238
289
  memory_save: "memory_save";
239
290
  memory_search: "memory_search";
291
+ notification_withdraw: "notification_withdraw";
292
+ notify_user: "notify_user";
240
293
  preference_propose: "preference_propose";
241
294
  preference_registry_get: "preference_registry_get";
242
295
  preference_registry_summary: "preference_registry_summary";
@@ -274,19 +327,51 @@ declare const SettingsSchema: z.ZodObject<{
274
327
  scheduled_tasks_resume: "scheduled_tasks_resume";
275
328
  scheduled_tasks_trigger: "scheduled_tasks_trigger";
276
329
  scheduled_tasks_update: "scheduled_tasks_update";
330
+ secret_delete: "secret_delete";
331
+ secret_get: "secret_get";
332
+ secret_move: "secret_move";
333
+ secret_save: "secret_save";
334
+ secret_search: "secret_search";
277
335
  session_create: "session_create";
278
336
  session_events: "session_events";
279
337
  session_get: "session_get";
280
338
  session_human_input_respond: "session_human_input_respond";
339
+ session_message_status: "session_message_status";
281
340
  session_pause: "session_pause";
282
341
  session_resume: "session_resume";
283
342
  session_send_message: "session_send_message";
343
+ session_set_model: "session_set_model";
284
344
  session_set_project: "session_set_project";
285
345
  session_steer: "session_steer";
346
+ session_target_get: "session_target_get";
347
+ session_target_set: "session_target_set";
286
348
  session_wait: "session_wait";
287
349
  sessions_list: "sessions_list";
288
350
  set_other_session_title: "set_other_session_title";
289
351
  set_session_title: "set_session_title";
352
+ site_data_define_collection: "site_data_define_collection";
353
+ site_data_describe: "site_data_describe";
354
+ site_data_export: "site_data_export";
355
+ site_data_import: "site_data_import";
356
+ site_data_query: "site_data_query";
357
+ site_data_reset: "site_data_reset";
358
+ site_data_write: "site_data_write";
359
+ site_files_delete: "site_files_delete";
360
+ site_files_list: "site_files_list";
361
+ site_files_upload: "site_files_upload";
362
+ site_hostname_check: "site_hostname_check";
363
+ site_publication_get: "site_publication_get";
364
+ site_publication_update: "site_publication_update";
365
+ site_sql_define_query: "site_sql_define_query";
366
+ site_sql_enable: "site_sql_enable";
367
+ site_sql_execute: "site_sql_execute";
368
+ site_sql_export: "site_sql_export";
369
+ site_sql_import: "site_sql_import";
370
+ site_sql_inspect: "site_sql_inspect";
371
+ site_sql_migrate: "site_sql_migrate";
372
+ site_sql_query: "site_sql_query";
373
+ site_sql_reset: "site_sql_reset";
374
+ site_sql_run: "site_sql_run";
290
375
  slack_bot_channel_history: "slack_bot_channel_history";
291
376
  slack_bot_delete_message: "slack_bot_delete_message";
292
377
  slack_bot_file_content: "slack_bot_file_content";
@@ -295,8 +380,11 @@ declare const SettingsSchema: z.ZodObject<{
295
380
  slack_bot_list_files: "slack_bot_list_files";
296
381
  slack_bot_list_users: "slack_bot_list_users";
297
382
  slack_bot_post_message: "slack_bot_post_message";
383
+ slack_bot_prepare_message: "slack_bot_prepare_message";
298
384
  slack_bot_search: "slack_bot_search";
385
+ slack_bot_send_prepared_message: "slack_bot_send_prepared_message";
299
386
  slack_bot_thread_replies: "slack_bot_thread_replies";
387
+ slack_bot_upload_file: "slack_bot_upload_file";
300
388
  social_connections_list: "social_connections_list";
301
389
  social_daily_analysis_context: "social_daily_analysis_context";
302
390
  social_mentions_live: "social_mentions_live";
@@ -326,6 +414,9 @@ declare const SettingsSchema: z.ZodObject<{
326
414
  x_thread_fetch: "x_thread_fetch";
327
415
  }>>>>;
328
416
  allowedFirstPartyMcpTools: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
417
+ admin_action_call: "admin_action_call";
418
+ admin_action_describe: "admin_action_describe";
419
+ admin_actions_search: "admin_actions_search";
329
420
  artifacts_archive: "artifacts_archive";
330
421
  artifacts_create: "artifacts_create";
331
422
  artifacts_get_source: "artifacts_get_source";
@@ -341,11 +432,15 @@ declare const SettingsSchema: z.ZodObject<{
341
432
  browser_auth: "browser_auth";
342
433
  browser_clipboard: "browser_clipboard";
343
434
  browser_debug: "browser_debug";
435
+ browser_download_save: "browser_download_save";
436
+ browser_downloads: "browser_downloads";
344
437
  browser_identity: "browser_identity";
345
438
  browser_lifecycle: "browser_lifecycle";
346
439
  browser_observe: "browser_observe";
347
440
  browser_open: "browser_open";
348
441
  browser_publish: "browser_publish";
442
+ browser_read: "browser_read";
443
+ browser_screenshot: "browser_screenshot";
349
444
  browser_tabs: "browser_tabs";
350
445
  capability_authorization_request: "capability_authorization_request";
351
446
  capability_catalog_search: "capability_catalog_search";
@@ -359,7 +454,10 @@ declare const SettingsSchema: z.ZodObject<{
359
454
  computer_observe: "computer_observe";
360
455
  computer_open: "computer_open";
361
456
  computer_targets: "computer_targets";
457
+ connected_machine_enable_screen_control: "connected_machine_enable_screen_control";
458
+ connected_machine_enroll_token: "connected_machine_enroll_token";
362
459
  connected_machine_remove: "connected_machine_remove";
460
+ custom_mcp_setup_request: "custom_mcp_setup_request";
363
461
  editable_artifact_apply: "editable_artifact_apply";
364
462
  editable_artifact_create: "editable_artifact_create";
365
463
  editable_artifact_export: "editable_artifact_export";
@@ -388,6 +486,7 @@ declare const SettingsSchema: z.ZodObject<{
388
486
  goal_resume: "goal_resume";
389
487
  goal_set: "goal_set";
390
488
  goal_update: "goal_update";
489
+ inbox_tidy: "inbox_tidy";
391
490
  instruction_policy_get: "instruction_policy_get";
392
491
  instruction_policy_propose: "instruction_policy_propose";
393
492
  instruction_policy_save: "instruction_policy_save";
@@ -406,6 +505,8 @@ declare const SettingsSchema: z.ZodObject<{
406
505
  memory_correct: "memory_correct";
407
506
  memory_save: "memory_save";
408
507
  memory_search: "memory_search";
508
+ notification_withdraw: "notification_withdraw";
509
+ notify_user: "notify_user";
409
510
  preference_propose: "preference_propose";
410
511
  preference_registry_get: "preference_registry_get";
411
512
  preference_registry_summary: "preference_registry_summary";
@@ -443,19 +544,51 @@ declare const SettingsSchema: z.ZodObject<{
443
544
  scheduled_tasks_resume: "scheduled_tasks_resume";
444
545
  scheduled_tasks_trigger: "scheduled_tasks_trigger";
445
546
  scheduled_tasks_update: "scheduled_tasks_update";
547
+ secret_delete: "secret_delete";
548
+ secret_get: "secret_get";
549
+ secret_move: "secret_move";
550
+ secret_save: "secret_save";
551
+ secret_search: "secret_search";
446
552
  session_create: "session_create";
447
553
  session_events: "session_events";
448
554
  session_get: "session_get";
449
555
  session_human_input_respond: "session_human_input_respond";
556
+ session_message_status: "session_message_status";
450
557
  session_pause: "session_pause";
451
558
  session_resume: "session_resume";
452
559
  session_send_message: "session_send_message";
560
+ session_set_model: "session_set_model";
453
561
  session_set_project: "session_set_project";
454
562
  session_steer: "session_steer";
563
+ session_target_get: "session_target_get";
564
+ session_target_set: "session_target_set";
455
565
  session_wait: "session_wait";
456
566
  sessions_list: "sessions_list";
457
567
  set_other_session_title: "set_other_session_title";
458
568
  set_session_title: "set_session_title";
569
+ site_data_define_collection: "site_data_define_collection";
570
+ site_data_describe: "site_data_describe";
571
+ site_data_export: "site_data_export";
572
+ site_data_import: "site_data_import";
573
+ site_data_query: "site_data_query";
574
+ site_data_reset: "site_data_reset";
575
+ site_data_write: "site_data_write";
576
+ site_files_delete: "site_files_delete";
577
+ site_files_list: "site_files_list";
578
+ site_files_upload: "site_files_upload";
579
+ site_hostname_check: "site_hostname_check";
580
+ site_publication_get: "site_publication_get";
581
+ site_publication_update: "site_publication_update";
582
+ site_sql_define_query: "site_sql_define_query";
583
+ site_sql_enable: "site_sql_enable";
584
+ site_sql_execute: "site_sql_execute";
585
+ site_sql_export: "site_sql_export";
586
+ site_sql_import: "site_sql_import";
587
+ site_sql_inspect: "site_sql_inspect";
588
+ site_sql_migrate: "site_sql_migrate";
589
+ site_sql_query: "site_sql_query";
590
+ site_sql_reset: "site_sql_reset";
591
+ site_sql_run: "site_sql_run";
459
592
  slack_bot_channel_history: "slack_bot_channel_history";
460
593
  slack_bot_delete_message: "slack_bot_delete_message";
461
594
  slack_bot_file_content: "slack_bot_file_content";
@@ -464,8 +597,11 @@ declare const SettingsSchema: z.ZodObject<{
464
597
  slack_bot_list_files: "slack_bot_list_files";
465
598
  slack_bot_list_users: "slack_bot_list_users";
466
599
  slack_bot_post_message: "slack_bot_post_message";
600
+ slack_bot_prepare_message: "slack_bot_prepare_message";
467
601
  slack_bot_search: "slack_bot_search";
602
+ slack_bot_send_prepared_message: "slack_bot_send_prepared_message";
468
603
  slack_bot_thread_replies: "slack_bot_thread_replies";
604
+ slack_bot_upload_file: "slack_bot_upload_file";
469
605
  social_connections_list: "social_connections_list";
470
606
  social_daily_analysis_context: "social_daily_analysis_context";
471
607
  social_mentions_live: "social_mentions_live";
@@ -494,6 +630,7 @@ declare const SettingsSchema: z.ZodObject<{
494
630
  x_search_live: "x_search_live";
495
631
  x_thread_fetch: "x_thread_fetch";
496
632
  }>>>>;
633
+ artifactMaterializerDeployed: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
497
634
  streamTokenSecret: z.ZodOptional<z.ZodString>;
498
635
  streamControlEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
499
636
  workDiscoveryEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
@@ -502,16 +639,27 @@ declare const SettingsSchema: z.ZodObject<{
502
639
  workDiscoveryAutomaticNudgesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
503
640
  ogtoolPackageSpec: z.ZodOptional<z.ZodString>;
504
641
  environmentsEncryptionKey: z.ZodOptional<z.ZodString>;
642
+ onePasswordFakeTokens: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
505
643
  integrationsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
506
644
  integrationsStateSecret: z.ZodOptional<z.ZodString>;
507
645
  integrationsAllowPrivateNetworkTargets: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
646
+ privacyOnlyMeAllowed: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
647
+ privacyWorkspaceDefaultRequired: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
648
+ privacyAdminScheduleSummariesRequired: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
508
649
  integrationsOauthClientsJson: z.ZodDefault<z.ZodString>;
650
+ gmailWatchTopicName: z.ZodOptional<z.ZodString>;
509
651
  slackClientId: z.ZodOptional<z.ZodString>;
510
652
  slackClientSecret: z.ZodOptional<z.ZodString>;
511
653
  slackSigningSecret: z.ZodOptional<z.ZodString>;
654
+ slackAccessMode: z.ZodDefault<z.ZodEnum<{
655
+ full: "full";
656
+ limited: "limited";
657
+ }>>;
512
658
  slackBotDisplayName: z.ZodDefault<z.ZodEnum<{
513
659
  OpenGeni: "OpenGeni";
514
660
  "OpenGeni Staging": "OpenGeni Staging";
661
+ Opengeni: "Opengeni";
662
+ "Opengeni Staging": "Opengeni Staging";
515
663
  }>>;
516
664
  slackCommand: z.ZodDefault<z.ZodString>;
517
665
  googleDriveClientId: z.ZodOptional<z.ZodString>;
@@ -538,6 +686,7 @@ declare const SettingsSchema: z.ZodObject<{
538
686
  goalIdleBackoffMs: z.ZodDefault<z.ZodPreprocess<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
539
687
  goalIdleBackoffMaxMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
540
688
  childLifecycleNoticesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
689
+ sessionUsageLimitsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
541
690
  slackWorkspaceRoutingEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
542
691
  agentMaxModelCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
543
692
  contextWindowTokens: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -552,10 +701,12 @@ declare const SettingsSchema: z.ZodObject<{
552
701
  authAllowMetrics: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
553
702
  apiHost: z.ZodDefault<z.ZodString>;
554
703
  apiPort: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
704
+ apiMetricsPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
555
705
  workerHttpPort: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
556
706
  opengeniMcpInternalUrl: z.ZodOptional<z.ZodString>;
557
707
  opengeniMcpUrl: z.ZodOptional<z.ZodString>;
558
708
  corsAllowOriginRegex: z.ZodDefault<z.ZodString>;
709
+ localAllowedOrigins: z.ZodOptional<z.ZodString>;
559
710
  openaiProvider: z.ZodDefault<z.ZodEnum<{
560
711
  azure: "azure";
561
712
  openai: "openai";
@@ -581,6 +732,8 @@ declare const SettingsSchema: z.ZodObject<{
581
732
  voiceInputResumableMaxDurationSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
582
733
  voiceInputResumableMaxSizeBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
583
734
  voiceInputResumableMaxChunkSizeBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
735
+ sessionArchiveEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
736
+ sessionArchiveIdleDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
584
737
  voiceInputResumableRetentionSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
585
738
  voiceInputFfmpegPath: z.ZodDefault<z.ZodString>;
586
739
  voiceInputProviderOrder: z.ZodDefault<z.ZodString>;
@@ -594,6 +747,20 @@ declare const SettingsSchema: z.ZodObject<{
594
747
  voiceInputAzureApiVersion: z.ZodOptional<z.ZodString>;
595
748
  voiceInputAzureApiKey: z.ZodOptional<z.ZodString>;
596
749
  voiceInputAzureAdToken: z.ZodOptional<z.ZodString>;
750
+ azureLiveEndpoint: z.ZodOptional<z.ZodString>;
751
+ azureLiveApiKey: z.ZodOptional<z.ZodString>;
752
+ azureLiveDeployment: z.ZodDefault<z.ZodString>;
753
+ azureLiveVoice: z.ZodDefault<z.ZodString>;
754
+ azureLivePricingJson: z.ZodOptional<z.ZodString>;
755
+ aiGatewayRealtimePricingJson: z.ZodOptional<z.ZodString>;
756
+ voiceInputMaiEndpoint: z.ZodOptional<z.ZodString>;
757
+ voiceInputMaiApiKey: z.ZodOptional<z.ZodString>;
758
+ voiceInputMaiApiVersion: z.ZodDefault<z.ZodString>;
759
+ voiceInputMaiPricingJson: z.ZodOptional<z.ZodString>;
760
+ voiceInputMaiModel: z.ZodDefault<z.ZodString>;
761
+ voiceInputAzureModel: z.ZodOptional<z.ZodString>;
762
+ voiceInputOpenaiPricingJson: z.ZodOptional<z.ZodString>;
763
+ voiceInputAzurePricingJson: z.ZodOptional<z.ZodString>;
597
764
  voiceInputCodexExperimentalEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
598
765
  modelPricingJson: z.ZodDefault<z.ZodString>;
599
766
  modelCatalogSource: z.ZodDefault<z.ZodEnum<{
@@ -603,17 +770,30 @@ declare const SettingsSchema: z.ZodObject<{
603
770
  modelCostPolicyJson: z.ZodDefault<z.ZodString>;
604
771
  modelNotesJson: z.ZodDefault<z.ZodString>;
605
772
  openrouterApiKey: z.ZodOptional<z.ZodString>;
773
+ opperApiKey: z.ZodOptional<z.ZodString>;
774
+ managedModelsJson: z.ZodOptional<z.ZodString>;
606
775
  resolvedGatewayModelsJson: z.ZodOptional<z.ZodString>;
607
776
  resolvedOpenRouterModelsJson: z.ZodOptional<z.ZodString>;
777
+ resolvedOpperModelsJson: z.ZodOptional<z.ZodString>;
778
+ resolvedCodexModelsJson: z.ZodOptional<z.ZodString>;
608
779
  modelProvidersJson: z.ZodDefault<z.ZodString>;
609
780
  codexSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
781
+ experimentSystemPromptCacheSplit: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
782
+ experimentCutPolling: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
783
+ experimentOutputCost: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
610
784
  supergrokSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
785
+ claudeSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
611
786
  supergrokResponseStreamIdleTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
787
+ modelStreamIdleTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
788
+ modelStreamProgressTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
612
789
  codexConnectedAppsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
613
790
  codexProductSku: z.ZodOptional<z.ZodString>;
614
791
  codexToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
615
792
  lazyToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
616
793
  codexFleetPolicyShadowEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
794
+ subscriptionCoreShadowEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
795
+ subscriptionCrossProviderFailoverEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
796
+ subscriptionCoreShadowTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
617
797
  codexRotationNearExhaustionPct: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
618
798
  reasoningConfigurationUpdatesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
619
799
  openaiReasoningEffort: z.ZodDefault<z.ZodEnum<{
@@ -626,6 +806,16 @@ declare const SettingsSchema: z.ZodObject<{
626
806
  xhigh: "xhigh";
627
807
  }>>;
628
808
  openaiAllowedReasoningEfforts: z.ZodDefault<z.ZodString>;
809
+ creditsDefaultModel: z.ZodDefault<z.ZodString>;
810
+ creditsDefaultReasoningEffort: z.ZodDefault<z.ZodEnum<{
811
+ high: "high";
812
+ low: "low";
813
+ max: "max";
814
+ medium: "medium";
815
+ minimal: "minimal";
816
+ none: "none";
817
+ xhigh: "xhigh";
818
+ }>>;
629
819
  openaiResponsesTransport: z.ZodDefault<z.ZodEnum<{
630
820
  http: "http";
631
821
  websocket: "websocket";
@@ -637,7 +827,32 @@ declare const SettingsSchema: z.ZodObject<{
637
827
  openaiReasoningEncryptedContent: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
638
828
  openaiMaxRetries: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
639
829
  webSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
830
+ webSearchProvider: z.ZodOptional<z.ZodString>;
831
+ webFetchProvider: z.ZodOptional<z.ZodString>;
832
+ webSearchPrefer: z.ZodOptional<z.ZodString>;
833
+ webSearchProviderCredentials: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
834
+ apiKey: z.ZodOptional<z.ZodString>;
835
+ baseUrl: z.ZodOptional<z.ZodString>;
836
+ }, z.core.$strict>>>;
837
+ webSearchApiKey: z.ZodOptional<z.ZodString>;
838
+ webSearchBaseUrl: z.ZodOptional<z.ZodString>;
839
+ webFetchApiKey: z.ZodOptional<z.ZodString>;
840
+ webFetchBaseUrl: z.ZodOptional<z.ZodString>;
841
+ webSearchProviderMode: z.ZodOptional<z.ZodString>;
842
+ webSearchPricingJson: z.ZodOptional<z.ZodString>;
843
+ webSearchRequestTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
844
+ jevApiKey: z.ZodOptional<z.ZodString>;
845
+ jevBaseUrl: z.ZodDefault<z.ZodString>;
846
+ jevModel: z.ZodDefault<z.ZodString>;
847
+ jevRequestTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
848
+ codeSearchMode: z.ZodDefault<z.ZodEnum<{
849
+ default_on: "default_on";
850
+ experiment: "experiment";
851
+ off: "off";
852
+ opt_in: "opt_in";
853
+ }>>;
640
854
  agentInstructionsTemplate: z.ZodDefault<z.ZodString>;
855
+ experimentKnowledgeRetrievalGuidance: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
641
856
  azureOpenaiBaseUrl: z.ZodOptional<z.ZodString>;
642
857
  azureOpenaiEndpoint: z.ZodOptional<z.ZodString>;
643
858
  azureOpenaiDeployment: z.ZodOptional<z.ZodString>;
@@ -731,6 +946,7 @@ declare const SettingsSchema: z.ZodObject<{
731
946
  blaxelTtl: z.ZodOptional<z.ZodString>;
732
947
  cloudflareWorkerUrl: z.ZodOptional<z.ZodString>;
733
948
  cloudflareApiKey: z.ZodOptional<z.ZodString>;
949
+ experimentalBrowserContextPoolEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
734
950
  browserbaseApiKey: z.ZodOptional<z.ZodString>;
735
951
  kernelApiKey: z.ZodOptional<z.ZodString>;
736
952
  kernelEndpoint: z.ZodOptional<z.ZodString>;
@@ -773,6 +989,7 @@ declare const SettingsSchema: z.ZodObject<{
773
989
  sandboxViewerHolderTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
774
990
  sandboxInteractionHolderTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
775
991
  sandboxIdleGraceMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
992
+ sandboxIdleCommandContainmentMs: z.ZodPipe<z.ZodOptional<z.ZodCoercedNumber<unknown>>, z.ZodTransform<number | undefined, number | undefined>>;
776
993
  sandboxSnapshotIntervalMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
777
994
  sandboxSnapshotTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
778
995
  sandboxDrainSnapshotTimeoutMs: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -784,9 +1001,15 @@ declare const SettingsSchema: z.ZodObject<{
784
1001
  workspaceControlLockTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
785
1002
  rigSetupTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
786
1003
  sandboxWarmRateMicrosPerSecondJson: z.ZodDefault<z.ZodString>;
1004
+ sandboxWarmBillingMode: z.ZodDefault<z.ZodEnum<{
1005
+ credits: "credits";
1006
+ shadow: "shadow";
1007
+ usage_only: "usage_only";
1008
+ }>>;
787
1009
  sandboxMaxWarmSecondsPerWorkspace: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
788
1010
  sandboxPreparationProfiles: z.ZodDefault<z.ZodString>;
789
1011
  sandboxEnvAllowlist: z.ZodDefault<z.ZodString>;
1012
+ sandboxImageAllowlist: z.ZodDefault<z.ZodString>;
790
1013
  objectStorageEndpoint: z.ZodOptional<z.ZodString>;
791
1014
  objectStorageInternalEndpoint: z.ZodOptional<z.ZodString>;
792
1015
  objectStorageSandboxEndpoint: z.ZodOptional<z.ZodString>;
@@ -821,6 +1044,64 @@ declare const SettingsSchema: z.ZodObject<{
821
1044
  documentEmbeddingDimensions: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
822
1045
  documentEmbeddingApiKey: z.ZodOptional<z.ZodString>;
823
1046
  documentEmbeddingBaseUrl: z.ZodOptional<z.ZodString>;
1047
+ documentEmbeddingBillingMode: z.ZodDefault<z.ZodEnum<{
1048
+ credits: "credits";
1049
+ shadow: "shadow";
1050
+ usage_only: "usage_only";
1051
+ }>>;
1052
+ sitesCloudflareStorageEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1053
+ sitesGatewayInternalOrigin: z.ZodOptional<z.ZodString>;
1054
+ sitesSqlFreeStorageBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1055
+ sitesSqlFreeRowsReadPerMonth: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1056
+ sitesSqlFreeRowsWrittenPerMonth: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1057
+ sitesSqlFreeCallsPerMinutePerViewer: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1058
+ sitesSqlFreeCallsPerMinutePerSite: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1059
+ sitesSqlMaxRowsPerCall: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1060
+ sitesSqlMaxResponseBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1061
+ sitesSqlTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1062
+ siteDataRecordBytesPerSite: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1063
+ siteDataMaxRecordBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1064
+ siteDataMaxCollectionsPerSite: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1065
+ siteDataFileBytesPerSite: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1066
+ siteDataMaxFileBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1067
+ siteDataWorkspaceBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1068
+ siteDataViewerWritesPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1069
+ siteDataSiteWritesPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1070
+ siteDataViewerReadsPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1071
+ siteDataManagerWritesPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1072
+ siteDataSiteValidationMsPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1073
+ siteDataWorkspaceValidationMsPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1074
+ siteDataMaxRecordsPerCollection: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1075
+ sitesDomain: z.ZodOptional<z.ZodString>;
1076
+ sitesGatewaySecret: z.ZodOptional<z.ZodString>;
1077
+ sitesGatewaySecretPrevious: z.ZodOptional<z.ZodString>;
1078
+ sitesPublicEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1079
+ sitesPublicAgentsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1080
+ sitesLoginOnly: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1081
+ sitesForceNoindex: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1082
+ sitesAbuseEmail: z.ZodOptional<z.ZodString>;
1083
+ sitesGuestAgentHumanCheck: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1084
+ sitesFreeRequestsPerMinutePerVisitor: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1085
+ sitesFreeGuestWritesPerMinute: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1086
+ sitesFreeConversationsPerVisitorPerDay: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1087
+ sitesFreeConversationsPerSitePerDay: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1088
+ sitesFreeTurnsPerConversation: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1089
+ sitesFreeAgentMicrosPerConversation: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1090
+ sitesFreeAgentMicrosPerVisitorPerDay: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1091
+ sitesFreeAgentMicrosPerSitePerMonth: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1092
+ sitesCreditsLimitMultiplier: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1093
+ sitesReportsPerMinutePerVisitor: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1094
+ sitesViewerSessionIdleSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1095
+ sitesViewerSessionAbsoluteSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1096
+ sitesHostnameHoldDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1097
+ sitesCloudflareApiToken: z.ZodOptional<z.ZodString>;
1098
+ sitesCloudflareAccountId: z.ZodOptional<z.ZodString>;
1099
+ sitesCloudflareKvNamespaceId: z.ZodOptional<z.ZodString>;
1100
+ sitesCloudflareZoneId: z.ZodOptional<z.ZodString>;
1101
+ sitesHostMapTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1102
+ sitesWebRiskApiKey: z.ZodOptional<z.ZodString>;
1103
+ documentEmbeddingCreditsActivatedAt: z.ZodOptional<z.ZodISODateTime>;
1104
+ documentEmbeddingRateMicrosPerMillionBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
824
1105
  documentCurationProvider: z.ZodDefault<z.ZodEnum<{
825
1106
  heuristic: "heuristic";
826
1107
  none: "none";
@@ -859,16 +1140,29 @@ declare const SettingsSchema: z.ZodObject<{
859
1140
  managedAuthGoogleClientSecret: z.ZodOptional<z.ZodString>;
860
1141
  managedAuthGithubClientId: z.ZodOptional<z.ZodString>;
861
1142
  managedAuthGithubClientSecret: z.ZodOptional<z.ZodString>;
1143
+ allowedUserEmails: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>>>;
862
1144
  managedAuthSessionSetMode: z.ZodDefault<z.ZodEnum<{
863
1145
  broker: "broker";
864
1146
  dual: "dual";
865
1147
  legacy: "legacy";
866
1148
  }>>;
1149
+ nativeAppSchemes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1150
+ nativeAppIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1151
+ apnsKeyId: z.ZodOptional<z.ZodString>;
1152
+ apnsTeamId: z.ZodOptional<z.ZodString>;
1153
+ apnsPrivateKey: z.ZodOptional<z.ZodString>;
1154
+ fcmServiceAccountJson: z.ZodOptional<z.ZodString>;
1155
+ managedAuthNewSignupsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1156
+ managedAuthRequireEmailVerification: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
867
1157
  organizationUserSetupEmailTokenTransport: z.ZodDefault<z.ZodEnum<{
868
1158
  fragment: "fragment";
869
1159
  query: "query";
870
1160
  }>>;
871
1161
  organizationUserSetupQueryEdgeSanitizationConfirmed: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
1162
+ managedEmailDelivery: z.ZodDefault<z.ZodEnum<{
1163
+ disabled: "disabled";
1164
+ resend: "resend";
1165
+ }>>;
872
1166
  resendApiKey: z.ZodOptional<z.ZodString>;
873
1167
  emailFrom: z.ZodDefault<z.ZodString>;
874
1168
  stripeSecretKey: z.ZodOptional<z.ZodString>;
@@ -881,6 +1175,7 @@ declare const SettingsSchema: z.ZodObject<{
881
1175
  url: z.ZodString;
882
1176
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
883
1177
  timeoutMs: z.ZodOptional<z.ZodNumber>;
1178
+ setupTimeoutMs: z.ZodOptional<z.ZodNumber>;
884
1179
  cacheToolsList: z.ZodDefault<z.ZodBoolean>;
885
1180
  requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>]>>;
886
1181
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1031,13 +1326,23 @@ export declare function googleDriveOAuthCallbackUrl(publicBaseUrl: string | unde
1031
1326
  /** Exact callback registered on the environment-specific personal GitHub OAuth App. */
1032
1327
  export declare function personalGitHubOAuthCallbackUrl(publicBaseUrl: string | undefined): string | null;
1033
1328
  /** Declarative voice-input transcription provider ids. */
1034
- export type VoiceInputProviderId = "openai" | "azure-openai" | "codex-subscription" | "supergrok-subscription";
1329
+ export type VoiceInputProviderId = "openai" | "azure-openai" | "azure-mai" | "codex-subscription" | "supergrok-subscription";
1035
1330
  export type VoiceInputProviderConfig = {
1331
+ id: "azure-mai";
1332
+ kind: "azure-mai";
1333
+ pricing: VoiceInputPricing | null;
1334
+ endpoint: string;
1335
+ apiKey: string;
1336
+ apiVersion: string;
1337
+ model: string;
1338
+ } | {
1036
1339
  id: "openai";
1037
1340
  kind: "openai";
1038
1341
  apiKey: string;
1039
1342
  baseUrl: string;
1040
1343
  model: string;
1344
+ /** Deployment-funded: Opengeni pays upstream and charges credits. */
1345
+ pricing: VoiceInputPricing | null;
1041
1346
  } | {
1042
1347
  id: "azure-openai";
1043
1348
  kind: "azure-openai";
@@ -1046,6 +1351,10 @@ export type VoiceInputProviderConfig = {
1046
1351
  apiVersion: string;
1047
1352
  apiKey: string | null;
1048
1353
  adToken: string | null;
1354
+ /** Underlying model (pricing + response shape); defaults to the deployment name. */
1355
+ model: string;
1356
+ /** Deployment-funded: Opengeni pays upstream and charges credits. */
1357
+ pricing: VoiceInputPricing | null;
1049
1358
  } | {
1050
1359
  id: "codex-subscription";
1051
1360
  kind: "codex-subscription";
@@ -1055,6 +1364,17 @@ export type VoiceInputProviderConfig = {
1055
1364
  kind: "supergrok-subscription";
1056
1365
  experimental: true;
1057
1366
  };
1367
+ /** The deployment's Jev key, or undefined when it is missing or a placeholder. */
1368
+ export declare function usableJevApiKey(settings: Pick<Settings, "jevApiKey">): string | undefined;
1369
+ /** Deployment half of agent configuration: hard capability limits. */
1370
+ export declare function agentConfigDeploymentPolicy(settings: FirstPartyMcpToolPolicySettings & Pick<Settings, "webSearchEnabled">): AgentConfigDeploymentLimits;
1371
+ /**
1372
+ * Deployment half of the `code_search` decision. `available` is false when
1373
+ * the mode is off or no usable Jev key is configured; workspaces then cannot
1374
+ * turn it on. `workspaceDefault` applies to workspaces without their own
1375
+ * setting.
1376
+ */
1377
+ export declare function codeSearchDeploymentPolicy(settings: Pick<Settings, "codeSearchMode" | "jevApiKey">): CodeSearchDeploymentPolicy;
1058
1378
  /**
1059
1379
  * Reject empty / template secrets so `.env.example` placeholders like
1060
1380
  * `your-key` cannot advertise voice input as available and then 401 upstream.
@@ -1066,6 +1386,93 @@ export declare function isUsableVoiceInputSecret(value: string | null | undefine
1066
1386
  * whether at least one non-experimental (or probed experimental) provider exists.
1067
1387
  */
1068
1388
  export declare function resolveVoiceInputProviderRegistry(settings: Settings): VoiceInputProviderConfig[];
1389
+ /** Why a credentialed deployment-funded voice provider is withheld. */
1390
+ export type VoiceInputPricingIssue = {
1391
+ providerId: "openai" | "azure-openai" | "azure-mai";
1392
+ env: string;
1393
+ reason: "malformed" | "unpriced";
1394
+ message: string;
1395
+ };
1396
+ /**
1397
+ * Pricing problems that withhold a credentialed deployment-funded provider.
1398
+ * A malformed PRICING_JSON never fails boot (workers share this config and
1399
+ * must not crash-loop over a voice-only setting); the API logs each issue
1400
+ * once at startup and the provider stays unavailable.
1401
+ */
1402
+ export declare function voiceInputPricingIssues(settings: Settings): VoiceInputPricingIssue[];
1403
+ /**
1404
+ * Opengeni credit price for one deployment-funded transcription provider.
1405
+ * Rates are upstream list prices in integer USD micros; `marginBps` (500 =
1406
+ * +5%) is added on top, exactly like model pricing. `microsPerMinute` prices
1407
+ * provider-reported audio duration (Whisper, `usage.type: "duration"`) and is
1408
+ * a server-measured WAV duration when provider usage is absent. Token
1409
+ * rates price `usage.type: "tokens"` (gpt-4o-transcribe family); `input`
1410
+ * covers text input tokens and, unless `audioInput` is set, audio tokens.
1411
+ */
1412
+ export type VoiceInputPricing = {
1413
+ microsPerMinute: number;
1414
+ inputMicrosPerMillionTokens?: number | undefined;
1415
+ audioInputMicrosPerMillionTokens?: number | undefined;
1416
+ outputMicrosPerMillionTokens?: number | undefined;
1417
+ marginBps?: number | undefined;
1418
+ };
1419
+ /**
1420
+ * Built-in list prices (OpenAI API pricing, "Transcription models" table)
1421
+ * plus the default 5% Opengeni margin used for model pricing. Azure Global
1422
+ * Standard deployments use the same list prices; set the provider
1423
+ * PRICING_JSON when a deployment's contracted or regional price differs.
1424
+ */
1425
+ export declare const defaultVoiceInputPricing: Readonly<Record<string, VoiceInputPricing>>;
1426
+ /** Lowercased model with a dated snapshot suffix (`-2025-03-20`) removed. */
1427
+ export declare function canonicalVoiceInputModel(model: string): string;
1428
+ /** Whisper reports its billed audio duration only in `verbose_json`. */
1429
+ export declare function voiceInputModelReportsDurationOnly(model: string): boolean;
1430
+ /** Parse one provider pricing JSON. Throws a configuration error when malformed. */
1431
+ export declare function parseVoiceInputPricingJson(raw: string | undefined, env?: string): VoiceInputPricing | null;
1432
+ /** Explicit provider pricing JSON wins; otherwise the built-in list price for the model. */
1433
+ export declare function resolveVoiceInputPricing(raw: string | undefined, model: string): VoiceInputPricing | null;
1434
+ /** Non-throwing {@link resolveVoiceInputPricing} for registry resolution. */
1435
+ export declare function safeResolveVoiceInputPricing(raw: string | undefined, model: string, env?: string): {
1436
+ ok: true;
1437
+ pricing: VoiceInputPricing | null;
1438
+ } | {
1439
+ ok: false;
1440
+ error: string;
1441
+ };
1442
+ /** Same predicate as model/credit limits: credit balance and debits are enforced. */
1443
+ export declare function voiceInputCreditBillingActive(settings: Pick<Settings, "billingMode" | "usageLimitsMode">): boolean;
1444
+ /** Provider-reported transcription usage, normalized. Never client-reported. */
1445
+ export type VoiceInputUsage = {
1446
+ kind: "tokens";
1447
+ inputTokens: number;
1448
+ audioInputTokens: number;
1449
+ textInputTokens: number;
1450
+ outputTokens: number;
1451
+ } | {
1452
+ kind: "duration";
1453
+ seconds: number;
1454
+ };
1455
+ export type VoiceInputCost = {
1456
+ /** Upstream list cost before margin, rounded up to whole micros. */
1457
+ providerCostMicros: number;
1458
+ /** Opengeni credit price after margin, rounded up to whole micros. */
1459
+ creditCostMicros: number;
1460
+ };
1461
+ /** True when token usage can be priced exactly. */
1462
+ export declare function voiceInputPricingHasTokenRates(pricing: VoiceInputPricing): boolean;
1463
+ /**
1464
+ * Exact integer credit math. Token usage needs token rates; duration usage
1465
+ * uses `microsPerMinute` at millisecond resolution. Both round up once, after
1466
+ * summing, so a positive use never becomes a free debit.
1467
+ */
1468
+ export declare function calculateVoiceInputCost(pricing: VoiceInputPricing, usage: VoiceInputUsage): VoiceInputCost;
1469
+ /**
1470
+ * Deployment-funded providers that have credentials but are withheld because
1471
+ * credit billing is active and no price is known. The API logs these (and
1472
+ * malformed pricing, see {@link voiceInputPricingIssues}) once at startup so
1473
+ * an operator sees why voice input stayed unavailable.
1474
+ */
1475
+ export declare function unpricedVoiceInputProviders(settings: Settings): VoiceInputProviderId[];
1069
1476
  /** True when the deployment has at least one supported (non-experimental) provider. */
1070
1477
  export declare function voiceInputDeploymentConfigured(settings: Settings): boolean;
1071
1478
  export type TemporalTlsConnectionConfig = {
@@ -1103,11 +1510,29 @@ export type ModelUsageInput = {
1103
1510
  requestUsageEntries?: ModelUsageInput[] | undefined;
1104
1511
  };
1105
1512
  export type ModelUsageCostBreakdown = {
1106
- /** Provider-rate cost basis for the exact usage, before OpenGeni margin. */
1513
+ /** Provider-rate cost basis for the exact usage, before Opengeni margin. */
1107
1514
  providerCostMicros: number;
1108
- /** OpenGeni credit price after configured margin and latency-mode multiplier. */
1515
+ /** Opengeni credit price after configured margin and latency-mode multiplier. */
1109
1516
  creditCostMicros: number;
1110
1517
  };
1518
+ export type ModelListCostClassesMicros = {
1519
+ uncachedInput: number;
1520
+ cacheRead: number;
1521
+ cacheWrite: number;
1522
+ output: number;
1523
+ };
1524
+ export type ModelListUsageCostSnapshot = ModelUsageCostBreakdown & {
1525
+ /** Captured upstream list costs, summing to providerCostMicros, never debits. */
1526
+ listByClassMicros: ModelListCostClassesMicros | null;
1527
+ /** True only when a returned class split includes latency rounding allocation. */
1528
+ listByClassApprox: boolean;
1529
+ };
1530
+ export type ModelRecordedListCostAllocation = {
1531
+ /** Approximate attribution of a stored upstream total, never a new price. */
1532
+ listByClassMicros: ModelListCostClassesMicros | null;
1533
+ /** True for every eligible historical allocation, including known zero. */
1534
+ listByClassApprox: boolean;
1535
+ };
1111
1536
  export type StaticUsageLimitsConfig = StaticUsageLimits;
1112
1537
  export type EntitlementsConfig = Entitlements;
1113
1538
  export declare const CapabilitySupportV1: z.ZodEnum<{
@@ -1284,7 +1709,7 @@ export type CredentialSourceV1 = {
1284
1709
  mechanism: "api_key" | "azure_ad_bearer" | "none";
1285
1710
  } | {
1286
1711
  kind: "connected_subscription";
1287
- provider: "codex" | "xai";
1712
+ provider: "codex" | "xai" | "claude";
1288
1713
  } | {
1289
1714
  kind: "workspace_connection";
1290
1715
  mechanism: "api_key";
@@ -1304,6 +1729,7 @@ export type BillingAttributionV1 = {
1304
1729
  * silently no-ops hosted tools (see docs/model-providers.md).
1305
1730
  */
1306
1731
  export declare const ModelProviderApi: z.ZodEnum<{
1732
+ "anthropic-messages": "anthropic-messages";
1307
1733
  chat: "chat";
1308
1734
  responses: "responses";
1309
1735
  }>;
@@ -1326,10 +1752,18 @@ export type ModelProviderWireProfile = z.infer<typeof ModelProviderWireProfile>;
1326
1752
  */
1327
1753
  export declare const RegistryProviderKind: z.ZodEnum<{
1328
1754
  anonymous: "anonymous";
1755
+ "anthropic-organization": "anthropic-organization";
1756
+ "anthropic-workspace": "anthropic-workspace";
1329
1757
  "api-key": "api-key";
1758
+ "claude-subscription-organization": "claude-subscription-organization";
1759
+ "claude-subscription-workspace": "claude-subscription-workspace";
1330
1760
  "codex-subscription": "codex-subscription";
1761
+ "direct-azure-workspace": "direct-azure-workspace";
1762
+ "direct-openai-workspace": "direct-openai-workspace";
1331
1763
  "openrouter-organization": "openrouter-organization";
1332
1764
  "openrouter-workspace": "openrouter-workspace";
1765
+ "opper-organization": "opper-organization";
1766
+ "opper-workspace": "opper-workspace";
1333
1767
  "vercel-gateway-managed": "vercel-gateway-managed";
1334
1768
  "vercel-gateway-organization": "vercel-gateway-organization";
1335
1769
  "vercel-gateway-workspace": "vercel-gateway-workspace";
@@ -1337,13 +1771,60 @@ export declare const RegistryProviderKind: z.ZodEnum<{
1337
1771
  }>;
1338
1772
  export type RegistryProviderKind = z.infer<typeof RegistryProviderKind>;
1339
1773
  /** A non-built-in provider declared by the host via OPENGENI_MODEL_PROVIDERS_JSON. */
1774
+ export declare const ClaudeSubscriptionIdentity: z.ZodObject<{
1775
+ accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1776
+ deviceId: z.ZodString;
1777
+ }, z.core.$strict>;
1778
+ export type ClaudeSubscriptionIdentity = z.infer<typeof ClaudeSubscriptionIdentity>;
1779
+ export declare const ClaudeSubscriptionCredential: z.ZodObject<{
1780
+ version: z.ZodLiteral<1>;
1781
+ token: z.ZodString;
1782
+ identity: z.ZodObject<{
1783
+ accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1784
+ deviceId: z.ZodString;
1785
+ }, z.core.$strict>;
1786
+ oauth: z.ZodOptional<z.ZodObject<{
1787
+ refreshToken: z.ZodString;
1788
+ expiresAt: z.ZodString;
1789
+ scopes: z.ZodArray<z.ZodString>;
1790
+ }, z.core.$strict>>;
1791
+ }, z.core.$strict>;
1792
+ declare const AnthropicProviderOptions: z.ZodObject<{
1793
+ identity: z.ZodOptional<z.ZodObject<{
1794
+ accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1795
+ deviceId: z.ZodString;
1796
+ }, z.core.$strict>>;
1797
+ credentialBinding: z.ZodOptional<z.ZodObject<{
1798
+ connectionId: z.ZodString;
1799
+ credentialVersion: z.ZodNumber;
1800
+ }, z.core.$strict>>;
1801
+ auth: z.ZodDefault<z.ZodEnum<{
1802
+ "api-key": "api-key";
1803
+ oauth: "oauth";
1804
+ }>>;
1805
+ cacheTtl: z.ZodDefault<z.ZodEnum<{
1806
+ "1h": "1h";
1807
+ "5m": "5m";
1808
+ off: "off";
1809
+ }>>;
1810
+ maxOutputTokens: z.ZodDefault<z.ZodNumber>;
1811
+ streamIdleTimeoutMs: z.ZodDefault<z.ZodNumber>;
1812
+ }, z.core.$strip>;
1340
1813
  declare const RegistryProviderSchema: z.ZodObject<{
1341
1814
  kind: z.ZodDefault<z.ZodEnum<{
1342
1815
  anonymous: "anonymous";
1816
+ "anthropic-organization": "anthropic-organization";
1817
+ "anthropic-workspace": "anthropic-workspace";
1343
1818
  "api-key": "api-key";
1819
+ "claude-subscription-organization": "claude-subscription-organization";
1820
+ "claude-subscription-workspace": "claude-subscription-workspace";
1344
1821
  "codex-subscription": "codex-subscription";
1822
+ "direct-azure-workspace": "direct-azure-workspace";
1823
+ "direct-openai-workspace": "direct-openai-workspace";
1345
1824
  "openrouter-organization": "openrouter-organization";
1346
1825
  "openrouter-workspace": "openrouter-workspace";
1826
+ "opper-organization": "opper-organization";
1827
+ "opper-workspace": "opper-workspace";
1347
1828
  "vercel-gateway-managed": "vercel-gateway-managed";
1348
1829
  "vercel-gateway-organization": "vercel-gateway-organization";
1349
1830
  "vercel-gateway-workspace": "vercel-gateway-workspace";
@@ -1352,9 +1833,33 @@ declare const RegistryProviderSchema: z.ZodObject<{
1352
1833
  id: z.ZodString;
1353
1834
  label: z.ZodOptional<z.ZodString>;
1354
1835
  api: z.ZodDefault<z.ZodEnum<{
1836
+ "anthropic-messages": "anthropic-messages";
1355
1837
  chat: "chat";
1356
1838
  responses: "responses";
1357
1839
  }>>;
1840
+ anthropic: z.ZodOptional<z.ZodObject<{
1841
+ identity: z.ZodOptional<z.ZodObject<{
1842
+ accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
1843
+ deviceId: z.ZodString;
1844
+ }, z.core.$strict>>;
1845
+ credentialBinding: z.ZodOptional<z.ZodObject<{
1846
+ connectionId: z.ZodString;
1847
+ credentialVersion: z.ZodNumber;
1848
+ }, z.core.$strict>>;
1849
+ auth: z.ZodDefault<z.ZodEnum<{
1850
+ "api-key": "api-key";
1851
+ oauth: "oauth";
1852
+ }>>;
1853
+ cacheTtl: z.ZodDefault<z.ZodEnum<{
1854
+ "1h": "1h";
1855
+ "5m": "5m";
1856
+ off: "off";
1857
+ }>>;
1858
+ maxOutputTokens: z.ZodDefault<z.ZodNumber>;
1859
+ streamIdleTimeoutMs: z.ZodDefault<z.ZodNumber>;
1860
+ }, z.core.$strip>>;
1861
+ streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
1862
+ streamProgressTimeoutMs: z.ZodOptional<z.ZodNumber>;
1358
1863
  wireProfile: z.ZodDefault<z.ZodEnum<{
1359
1864
  "azure-openai": "azure-openai";
1360
1865
  openai: "openai";
@@ -1374,6 +1879,7 @@ declare const RegistryProviderSchema: z.ZodObject<{
1374
1879
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1375
1880
  label: z.ZodOptional<z.ZodString>;
1376
1881
  shortLabel: z.ZodOptional<z.ZodString>;
1882
+ logoUrl: z.ZodOptional<z.ZodString>;
1377
1883
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
1378
1884
  effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
1379
1885
  autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
@@ -1565,6 +2071,14 @@ export declare const WORKSPACE_OPENROUTER_MODEL_ID_PREFIX: "workspace-openrouter
1565
2071
  export declare const ORGANIZATION_OPENROUTER_PROVIDER_ID: "organization-openrouter";
1566
2072
  export declare const ORGANIZATION_OPENROUTER_MODEL_ID_PREFIX: "organization-openrouter/";
1567
2073
  export declare const OPENROUTER_BASE_URL: "https://openrouter.ai/api/v1";
2074
+ export declare const OPPER_PROVIDER_ID: "opper";
2075
+ export declare const OPPER_MODEL_ID_PREFIX: "opper/";
2076
+ export declare const WORKSPACE_OPPER_PROVIDER_ID: "workspace-opper";
2077
+ export declare const WORKSPACE_OPPER_MODEL_ID_PREFIX: "workspace-opper/";
2078
+ export declare const ORGANIZATION_OPPER_PROVIDER_ID: "organization-opper";
2079
+ export declare const ORGANIZATION_OPPER_MODEL_ID_PREFIX: "organization-opper/";
2080
+ /** Opper's OpenAI-compatible Chat Completions surface (Bearer key). */
2081
+ export declare const OPPER_BASE_URL: "https://api.opper.ai/v3/compat";
1568
2082
  export declare const ModelCostClass: z.ZodEnum<{
1569
2083
  credits: "credits";
1570
2084
  free: "free";
@@ -1587,6 +2101,7 @@ export declare const GatewayCatalogModel: z.ZodObject<{
1587
2101
  upstreamModelId: z.ZodString;
1588
2102
  label: z.ZodString;
1589
2103
  shortLabel: z.ZodOptional<z.ZodString>;
2104
+ logoUrl: z.ZodOptional<z.ZodString>;
1590
2105
  providers: z.ZodArray<z.ZodString>;
1591
2106
  implicitCaching: z.ZodDefault<z.ZodBoolean>;
1592
2107
  vision: z.ZodDefault<z.ZodBoolean>;
@@ -1628,6 +2143,7 @@ export declare const OpenRouterCatalogModel: z.ZodObject<{
1628
2143
  upstreamModelId: z.ZodString;
1629
2144
  label: z.ZodString;
1630
2145
  shortLabel: z.ZodOptional<z.ZodString>;
2146
+ logoUrl: z.ZodOptional<z.ZodString>;
1631
2147
  aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
1632
2148
  capabilities: z.ZodObject<{
1633
2149
  reasoning: z.ZodObject<{
@@ -1782,6 +2298,196 @@ export declare const OpenRouterCatalogModel: z.ZodObject<{
1782
2298
  apiKey: z.ZodOptional<z.ZodNever>;
1783
2299
  }, z.core.$strict>;
1784
2300
  export type OpenRouterCatalogModel = z.infer<typeof OpenRouterCatalogModel>;
2301
+ /**
2302
+ * One reviewed Opper route. `upstreamModelId` is Opper's exact catalogue id:
2303
+ * a bare upstream name is a pool (Opper picks the serving provider), while a
2304
+ * `provider/model` id pins one route and region. Curated entries pin a route.
2305
+ * Code-defined entries may carry a reviewed price; database documents may not.
2306
+ */
2307
+ export declare const OpperCatalogModel: z.ZodObject<{
2308
+ upstreamModelId: z.ZodString;
2309
+ label: z.ZodString;
2310
+ shortLabel: z.ZodOptional<z.ZodString>;
2311
+ logoUrl: z.ZodOptional<z.ZodString>;
2312
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
2313
+ capabilities: z.ZodObject<{
2314
+ reasoning: z.ZodObject<{
2315
+ upstream: z.ZodEnum<{
2316
+ supported: "supported";
2317
+ unknown: "unknown";
2318
+ unsupported: "unsupported";
2319
+ }>;
2320
+ runnable: z.ZodBoolean;
2321
+ efforts: z.ZodArray<z.ZodEnum<{
2322
+ high: "high";
2323
+ low: "low";
2324
+ max: "max";
2325
+ medium: "medium";
2326
+ minimal: "minimal";
2327
+ none: "none";
2328
+ xhigh: "xhigh";
2329
+ }>>;
2330
+ defaultEffort: z.ZodNullable<z.ZodEnum<{
2331
+ high: "high";
2332
+ low: "low";
2333
+ max: "max";
2334
+ medium: "medium";
2335
+ minimal: "minimal";
2336
+ none: "none";
2337
+ xhigh: "xhigh";
2338
+ }>>;
2339
+ required: z.ZodBoolean;
2340
+ }, z.core.$strip>;
2341
+ functionCalling: z.ZodObject<{
2342
+ upstream: z.ZodEnum<{
2343
+ supported: "supported";
2344
+ unknown: "unknown";
2345
+ unsupported: "unsupported";
2346
+ }>;
2347
+ runnable: z.ZodBoolean;
2348
+ }, z.core.$strip>;
2349
+ structuredOutput: z.ZodObject<{
2350
+ upstream: z.ZodEnum<{
2351
+ supported: "supported";
2352
+ unknown: "unknown";
2353
+ unsupported: "unsupported";
2354
+ }>;
2355
+ runnable: z.ZodBoolean;
2356
+ }, z.core.$strip>;
2357
+ hostedTools: z.ZodObject<{
2358
+ webSearch: z.ZodObject<{
2359
+ upstream: z.ZodEnum<{
2360
+ supported: "supported";
2361
+ unknown: "unknown";
2362
+ unsupported: "unsupported";
2363
+ }>;
2364
+ runnable: z.ZodBoolean;
2365
+ }, z.core.$strip>;
2366
+ xSearch: z.ZodObject<{
2367
+ upstream: z.ZodEnum<{
2368
+ supported: "supported";
2369
+ unknown: "unknown";
2370
+ unsupported: "unsupported";
2371
+ }>;
2372
+ runnable: z.ZodBoolean;
2373
+ }, z.core.$strip>;
2374
+ codeExecution: z.ZodObject<{
2375
+ upstream: z.ZodEnum<{
2376
+ supported: "supported";
2377
+ unknown: "unknown";
2378
+ unsupported: "unsupported";
2379
+ }>;
2380
+ runnable: z.ZodBoolean;
2381
+ }, z.core.$strip>;
2382
+ imageGeneration: z.ZodDefault<z.ZodObject<{
2383
+ upstream: z.ZodEnum<{
2384
+ supported: "supported";
2385
+ unknown: "unknown";
2386
+ unsupported: "unsupported";
2387
+ }>;
2388
+ runnable: z.ZodBoolean;
2389
+ }, z.core.$strip>>;
2390
+ }, z.core.$strip>;
2391
+ inputModalities: z.ZodArray<z.ZodEnum<{
2392
+ audio: "audio";
2393
+ image: "image";
2394
+ text: "text";
2395
+ }>>;
2396
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2397
+ outputModalities: z.ZodArray<z.ZodEnum<{
2398
+ audio: "audio";
2399
+ image: "image";
2400
+ text: "text";
2401
+ }>>;
2402
+ transports: z.ZodObject<{
2403
+ sse: z.ZodObject<{
2404
+ upstream: z.ZodEnum<{
2405
+ supported: "supported";
2406
+ unknown: "unknown";
2407
+ unsupported: "unsupported";
2408
+ }>;
2409
+ runnable: z.ZodBoolean;
2410
+ }, z.core.$strip>;
2411
+ responsesWebSocket: z.ZodObject<{
2412
+ upstream: z.ZodEnum<{
2413
+ supported: "supported";
2414
+ unknown: "unknown";
2415
+ unsupported: "unsupported";
2416
+ }>;
2417
+ runnable: z.ZodBoolean;
2418
+ }, z.core.$strip>;
2419
+ realtimeAudio: z.ZodObject<{
2420
+ upstream: z.ZodEnum<{
2421
+ supported: "supported";
2422
+ unknown: "unknown";
2423
+ unsupported: "unsupported";
2424
+ }>;
2425
+ runnable: z.ZodBoolean;
2426
+ }, z.core.$strip>;
2427
+ }, z.core.$strip>;
2428
+ promptCaching: z.ZodOptional<z.ZodObject<{
2429
+ upstream: z.ZodEnum<{
2430
+ supported: "supported";
2431
+ unknown: "unknown";
2432
+ unsupported: "unsupported";
2433
+ }>;
2434
+ runnable: z.ZodBoolean;
2435
+ mode: z.ZodEnum<{
2436
+ automatic: "automatic";
2437
+ implicit: "implicit";
2438
+ none: "none";
2439
+ }>;
2440
+ }, z.core.$strip>>;
2441
+ latencyModes: z.ZodArray<z.ZodObject<{
2442
+ id: z.ZodEnum<{
2443
+ fast: "fast";
2444
+ priority: "priority";
2445
+ standard: "standard";
2446
+ }>;
2447
+ upstream: z.ZodEnum<{
2448
+ supported: "supported";
2449
+ unknown: "unknown";
2450
+ unsupported: "unsupported";
2451
+ }>;
2452
+ runnable: z.ZodBoolean;
2453
+ billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
2454
+ }, z.core.$strip>>;
2455
+ }, z.core.$strip>;
2456
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
2457
+ effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
2458
+ autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
2459
+ toolOutputTruncationTokens: z.ZodOptional<z.ZodNumber>;
2460
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2461
+ pricing: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2462
+ inputMicrosPerMillionTokens: z.ZodNumber;
2463
+ cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2464
+ cacheWriteMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2465
+ outputMicrosPerMillionTokens: z.ZodNumber;
2466
+ marginBps: z.ZodOptional<z.ZodNumber>;
2467
+ }, z.core.$strip>, z.ZodObject<{
2468
+ default: z.ZodObject<{
2469
+ inputMicrosPerMillionTokens: z.ZodNumber;
2470
+ cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2471
+ cacheWriteMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2472
+ outputMicrosPerMillionTokens: z.ZodNumber;
2473
+ marginBps: z.ZodOptional<z.ZodNumber>;
2474
+ }, z.core.$strip>;
2475
+ inputTokenTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2476
+ minimumInputTokens: z.ZodNumber;
2477
+ pricing: z.ZodObject<{
2478
+ inputMicrosPerMillionTokens: z.ZodNumber;
2479
+ cachedInputMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2480
+ cacheWriteMicrosPerMillionTokens: z.ZodOptional<z.ZodNumber>;
2481
+ outputMicrosPerMillionTokens: z.ZodNumber;
2482
+ marginBps: z.ZodOptional<z.ZodNumber>;
2483
+ }, z.core.$strip>;
2484
+ }, z.core.$strip>>>;
2485
+ }, z.core.$strip>]>>;
2486
+ credentialSource: z.ZodOptional<z.ZodNever>;
2487
+ billing: z.ZodOptional<z.ZodNever>;
2488
+ apiKey: z.ZodOptional<z.ZodNever>;
2489
+ }, z.core.$strict>;
2490
+ export type OpperCatalogModel = z.infer<typeof OpperCatalogModel>;
1785
2491
  export declare const ModelCatalogDocument: z.ZodObject<{
1786
2492
  schemaVersion: z.ZodLiteral<1>;
1787
2493
  defaultModel: z.ZodOptional<z.ZodString>;
@@ -1790,9 +2496,33 @@ export declare const ModelCatalogDocument: z.ZodObject<{
1790
2496
  id: z.ZodString;
1791
2497
  label: z.ZodOptional<z.ZodString>;
1792
2498
  api: z.ZodDefault<z.ZodEnum<{
2499
+ "anthropic-messages": "anthropic-messages";
1793
2500
  chat: "chat";
1794
2501
  responses: "responses";
1795
2502
  }>>;
2503
+ anthropic: z.ZodOptional<z.ZodObject<{
2504
+ identity: z.ZodOptional<z.ZodObject<{
2505
+ accountUuid: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
2506
+ deviceId: z.ZodString;
2507
+ }, z.core.$strict>>;
2508
+ credentialBinding: z.ZodOptional<z.ZodObject<{
2509
+ connectionId: z.ZodString;
2510
+ credentialVersion: z.ZodNumber;
2511
+ }, z.core.$strict>>;
2512
+ auth: z.ZodDefault<z.ZodEnum<{
2513
+ "api-key": "api-key";
2514
+ oauth: "oauth";
2515
+ }>>;
2516
+ cacheTtl: z.ZodDefault<z.ZodEnum<{
2517
+ "1h": "1h";
2518
+ "5m": "5m";
2519
+ off: "off";
2520
+ }>>;
2521
+ maxOutputTokens: z.ZodDefault<z.ZodNumber>;
2522
+ streamIdleTimeoutMs: z.ZodDefault<z.ZodNumber>;
2523
+ }, z.core.$strip>>;
2524
+ streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
2525
+ streamProgressTimeoutMs: z.ZodOptional<z.ZodNumber>;
1796
2526
  wireProfile: z.ZodDefault<z.ZodEnum<{
1797
2527
  "azure-openai": "azure-openai";
1798
2528
  openai: "openai";
@@ -1810,6 +2540,7 @@ export declare const ModelCatalogDocument: z.ZodObject<{
1810
2540
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1811
2541
  label: z.ZodOptional<z.ZodString>;
1812
2542
  shortLabel: z.ZodOptional<z.ZodString>;
2543
+ logoUrl: z.ZodOptional<z.ZodString>;
1813
2544
  contextWindowTokens: z.ZodOptional<z.ZodNumber>;
1814
2545
  effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
1815
2546
  autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
@@ -1970,12 +2701,690 @@ export declare const ModelCatalogDocument: z.ZodObject<{
1970
2701
  publicDefaultHeaderNames: z.ZodOptional<z.ZodNever>;
1971
2702
  publicDefaultQueryNames: z.ZodOptional<z.ZodNever>;
1972
2703
  }, z.core.$strict>>>;
1973
- gatewayModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
1974
- productId: z.ZodString;
1975
- workspaceProductId: z.ZodString;
1976
- upstreamModelId: z.ZodString;
1977
- label: z.ZodString;
1978
- shortLabel: z.ZodOptional<z.ZodString>;
2704
+ codexModels: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
2705
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
2706
+ label: z.ZodOptional<z.ZodString>;
2707
+ shortLabel: z.ZodOptional<z.ZodString>;
2708
+ logoUrl: z.ZodOptional<z.ZodString>;
2709
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
2710
+ effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
2711
+ autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
2712
+ toolOutputTruncationTokens: z.ZodOptional<z.ZodNumber>;
2713
+ reasoningEffort: z.ZodOptional<z.ZodBoolean>;
2714
+ hostedWebSearch: z.ZodOptional<z.ZodBoolean>;
2715
+ credentialSource: z.ZodOptional<z.ZodNever>;
2716
+ billing: z.ZodOptional<z.ZodNever>;
2717
+ retired: z.ZodOptional<z.ZodBoolean>;
2718
+ id: z.ZodString;
2719
+ upstreamModelId: z.ZodString;
2720
+ capabilities: z.ZodObject<{
2721
+ reasoning: z.ZodObject<{
2722
+ upstream: z.ZodEnum<{
2723
+ supported: "supported";
2724
+ unknown: "unknown";
2725
+ unsupported: "unsupported";
2726
+ }>;
2727
+ runnable: z.ZodBoolean;
2728
+ efforts: z.ZodArray<z.ZodEnum<{
2729
+ high: "high";
2730
+ low: "low";
2731
+ max: "max";
2732
+ medium: "medium";
2733
+ minimal: "minimal";
2734
+ none: "none";
2735
+ xhigh: "xhigh";
2736
+ }>>;
2737
+ defaultEffort: z.ZodNullable<z.ZodEnum<{
2738
+ high: "high";
2739
+ low: "low";
2740
+ max: "max";
2741
+ medium: "medium";
2742
+ minimal: "minimal";
2743
+ none: "none";
2744
+ xhigh: "xhigh";
2745
+ }>>;
2746
+ required: z.ZodBoolean;
2747
+ }, z.core.$strip>;
2748
+ functionCalling: z.ZodObject<{
2749
+ upstream: z.ZodEnum<{
2750
+ supported: "supported";
2751
+ unknown: "unknown";
2752
+ unsupported: "unsupported";
2753
+ }>;
2754
+ runnable: z.ZodBoolean;
2755
+ }, z.core.$strip>;
2756
+ structuredOutput: z.ZodObject<{
2757
+ upstream: z.ZodEnum<{
2758
+ supported: "supported";
2759
+ unknown: "unknown";
2760
+ unsupported: "unsupported";
2761
+ }>;
2762
+ runnable: z.ZodBoolean;
2763
+ }, z.core.$strip>;
2764
+ hostedTools: z.ZodObject<{
2765
+ webSearch: z.ZodObject<{
2766
+ upstream: z.ZodEnum<{
2767
+ supported: "supported";
2768
+ unknown: "unknown";
2769
+ unsupported: "unsupported";
2770
+ }>;
2771
+ runnable: z.ZodBoolean;
2772
+ }, z.core.$strip>;
2773
+ xSearch: z.ZodObject<{
2774
+ upstream: z.ZodEnum<{
2775
+ supported: "supported";
2776
+ unknown: "unknown";
2777
+ unsupported: "unsupported";
2778
+ }>;
2779
+ runnable: z.ZodBoolean;
2780
+ }, z.core.$strip>;
2781
+ codeExecution: z.ZodObject<{
2782
+ upstream: z.ZodEnum<{
2783
+ supported: "supported";
2784
+ unknown: "unknown";
2785
+ unsupported: "unsupported";
2786
+ }>;
2787
+ runnable: z.ZodBoolean;
2788
+ }, z.core.$strip>;
2789
+ imageGeneration: z.ZodDefault<z.ZodObject<{
2790
+ upstream: z.ZodEnum<{
2791
+ supported: "supported";
2792
+ unknown: "unknown";
2793
+ unsupported: "unsupported";
2794
+ }>;
2795
+ runnable: z.ZodBoolean;
2796
+ }, z.core.$strip>>;
2797
+ }, z.core.$strip>;
2798
+ inputModalities: z.ZodArray<z.ZodEnum<{
2799
+ audio: "audio";
2800
+ image: "image";
2801
+ text: "text";
2802
+ }>>;
2803
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2804
+ outputModalities: z.ZodArray<z.ZodEnum<{
2805
+ audio: "audio";
2806
+ image: "image";
2807
+ text: "text";
2808
+ }>>;
2809
+ transports: z.ZodObject<{
2810
+ sse: z.ZodObject<{
2811
+ upstream: z.ZodEnum<{
2812
+ supported: "supported";
2813
+ unknown: "unknown";
2814
+ unsupported: "unsupported";
2815
+ }>;
2816
+ runnable: z.ZodBoolean;
2817
+ }, z.core.$strip>;
2818
+ responsesWebSocket: z.ZodObject<{
2819
+ upstream: z.ZodEnum<{
2820
+ supported: "supported";
2821
+ unknown: "unknown";
2822
+ unsupported: "unsupported";
2823
+ }>;
2824
+ runnable: z.ZodBoolean;
2825
+ }, z.core.$strip>;
2826
+ realtimeAudio: z.ZodObject<{
2827
+ upstream: z.ZodEnum<{
2828
+ supported: "supported";
2829
+ unknown: "unknown";
2830
+ unsupported: "unsupported";
2831
+ }>;
2832
+ runnable: z.ZodBoolean;
2833
+ }, z.core.$strip>;
2834
+ }, z.core.$strip>;
2835
+ promptCaching: z.ZodOptional<z.ZodObject<{
2836
+ upstream: z.ZodEnum<{
2837
+ supported: "supported";
2838
+ unknown: "unknown";
2839
+ unsupported: "unsupported";
2840
+ }>;
2841
+ runnable: z.ZodBoolean;
2842
+ mode: z.ZodEnum<{
2843
+ automatic: "automatic";
2844
+ implicit: "implicit";
2845
+ none: "none";
2846
+ }>;
2847
+ }, z.core.$strip>>;
2848
+ latencyModes: z.ZodArray<z.ZodObject<{
2849
+ id: z.ZodEnum<{
2850
+ fast: "fast";
2851
+ priority: "priority";
2852
+ standard: "standard";
2853
+ }>;
2854
+ upstream: z.ZodEnum<{
2855
+ supported: "supported";
2856
+ unknown: "unknown";
2857
+ unsupported: "unsupported";
2858
+ }>;
2859
+ runnable: z.ZodBoolean;
2860
+ billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
2861
+ }, z.core.$strip>>;
2862
+ }, z.core.$strip>;
2863
+ pricing: z.ZodOptional<z.ZodNever>;
2864
+ }, z.core.$strict>, z.ZodTransform<{
2865
+ aliases?: string[] | undefined;
2866
+ label?: string | undefined;
2867
+ shortLabel?: string | undefined;
2868
+ logoUrl?: string | undefined;
2869
+ contextWindowTokens?: number | undefined;
2870
+ effectiveContextWindowTokens?: number | undefined;
2871
+ autoCompactTokenLimit?: number | undefined;
2872
+ toolOutputTruncationTokens?: number | undefined;
2873
+ reasoningEffort?: boolean | undefined;
2874
+ hostedWebSearch?: boolean | undefined;
2875
+ credentialSource?: undefined;
2876
+ billing?: undefined;
2877
+ retired?: boolean | undefined;
2878
+ id: string;
2879
+ upstreamModelId: string;
2880
+ pricing?: undefined;
2881
+ capabilities: {
2882
+ reasoning: {
2883
+ upstream: "supported" | "unknown" | "unsupported";
2884
+ runnable: boolean;
2885
+ efforts: ("high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh")[];
2886
+ defaultEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null;
2887
+ required: boolean;
2888
+ };
2889
+ functionCalling: {
2890
+ upstream: "supported" | "unknown" | "unsupported";
2891
+ runnable: boolean;
2892
+ };
2893
+ structuredOutput: {
2894
+ upstream: "supported" | "unknown" | "unsupported";
2895
+ runnable: boolean;
2896
+ };
2897
+ hostedTools: {
2898
+ webSearch: {
2899
+ upstream: "supported" | "unknown" | "unsupported";
2900
+ runnable: boolean;
2901
+ };
2902
+ xSearch: {
2903
+ upstream: "supported" | "unknown" | "unsupported";
2904
+ runnable: boolean;
2905
+ };
2906
+ codeExecution: {
2907
+ upstream: "supported" | "unknown" | "unsupported";
2908
+ runnable: boolean;
2909
+ };
2910
+ imageGeneration: {
2911
+ upstream: "supported" | "unknown" | "unsupported";
2912
+ runnable: boolean;
2913
+ };
2914
+ };
2915
+ inputModalities: ("audio" | "image" | "text")[];
2916
+ inputFileMediaTypes: string[];
2917
+ outputModalities: ("audio" | "image" | "text")[];
2918
+ transports: {
2919
+ sse: {
2920
+ upstream: "supported" | "unknown" | "unsupported";
2921
+ runnable: boolean;
2922
+ };
2923
+ responsesWebSocket: {
2924
+ upstream: "supported" | "unknown" | "unsupported";
2925
+ runnable: boolean;
2926
+ };
2927
+ realtimeAudio: {
2928
+ upstream: "supported" | "unknown" | "unsupported";
2929
+ runnable: boolean;
2930
+ };
2931
+ };
2932
+ promptCaching?: {
2933
+ upstream: "supported" | "unknown" | "unsupported";
2934
+ runnable: boolean;
2935
+ mode: "automatic" | "implicit" | "none";
2936
+ } | undefined;
2937
+ latencyModes: {
2938
+ id: "fast" | "priority" | "standard";
2939
+ upstream: "supported" | "unknown" | "unsupported";
2940
+ runnable: boolean;
2941
+ billingMultiplierBps?: number | undefined;
2942
+ }[];
2943
+ };
2944
+ }, {
2945
+ aliases?: string[] | undefined;
2946
+ label?: string | undefined;
2947
+ shortLabel?: string | undefined;
2948
+ logoUrl?: string | undefined;
2949
+ contextWindowTokens?: number | undefined;
2950
+ effectiveContextWindowTokens?: number | undefined;
2951
+ autoCompactTokenLimit?: number | undefined;
2952
+ toolOutputTruncationTokens?: number | undefined;
2953
+ reasoningEffort?: boolean | undefined;
2954
+ hostedWebSearch?: boolean | undefined;
2955
+ credentialSource?: undefined;
2956
+ billing?: undefined;
2957
+ retired?: boolean | undefined;
2958
+ id: string;
2959
+ upstreamModelId: string;
2960
+ capabilities: {
2961
+ reasoning: {
2962
+ upstream: "supported" | "unknown" | "unsupported";
2963
+ runnable: boolean;
2964
+ efforts: ("high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh")[];
2965
+ defaultEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null;
2966
+ required: boolean;
2967
+ };
2968
+ functionCalling: {
2969
+ upstream: "supported" | "unknown" | "unsupported";
2970
+ runnable: boolean;
2971
+ };
2972
+ structuredOutput: {
2973
+ upstream: "supported" | "unknown" | "unsupported";
2974
+ runnable: boolean;
2975
+ };
2976
+ hostedTools: {
2977
+ webSearch: {
2978
+ upstream: "supported" | "unknown" | "unsupported";
2979
+ runnable: boolean;
2980
+ };
2981
+ xSearch: {
2982
+ upstream: "supported" | "unknown" | "unsupported";
2983
+ runnable: boolean;
2984
+ };
2985
+ codeExecution: {
2986
+ upstream: "supported" | "unknown" | "unsupported";
2987
+ runnable: boolean;
2988
+ };
2989
+ imageGeneration: {
2990
+ upstream: "supported" | "unknown" | "unsupported";
2991
+ runnable: boolean;
2992
+ };
2993
+ };
2994
+ inputModalities: ("audio" | "image" | "text")[];
2995
+ inputFileMediaTypes: string[];
2996
+ outputModalities: ("audio" | "image" | "text")[];
2997
+ transports: {
2998
+ sse: {
2999
+ upstream: "supported" | "unknown" | "unsupported";
3000
+ runnable: boolean;
3001
+ };
3002
+ responsesWebSocket: {
3003
+ upstream: "supported" | "unknown" | "unsupported";
3004
+ runnable: boolean;
3005
+ };
3006
+ realtimeAudio: {
3007
+ upstream: "supported" | "unknown" | "unsupported";
3008
+ runnable: boolean;
3009
+ };
3010
+ };
3011
+ promptCaching?: {
3012
+ upstream: "supported" | "unknown" | "unsupported";
3013
+ runnable: boolean;
3014
+ mode: "automatic" | "implicit" | "none";
3015
+ } | undefined;
3016
+ latencyModes: {
3017
+ id: "fast" | "priority" | "standard";
3018
+ upstream: "supported" | "unknown" | "unsupported";
3019
+ runnable: boolean;
3020
+ billingMultiplierBps?: number | undefined;
3021
+ }[];
3022
+ };
3023
+ pricing?: undefined;
3024
+ }>>>>;
3025
+ gatewayModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
3026
+ productId: z.ZodString;
3027
+ workspaceProductId: z.ZodString;
3028
+ upstreamModelId: z.ZodString;
3029
+ label: z.ZodString;
3030
+ shortLabel: z.ZodOptional<z.ZodString>;
3031
+ logoUrl: z.ZodOptional<z.ZodString>;
3032
+ providers: z.ZodArray<z.ZodString>;
3033
+ implicitCaching: z.ZodDefault<z.ZodBoolean>;
3034
+ vision: z.ZodDefault<z.ZodBoolean>;
3035
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3036
+ contextWindowTokens: z.ZodDefault<z.ZodNumber>;
3037
+ effectiveContextWindowTokens: z.ZodDefault<z.ZodNumber>;
3038
+ autoCompactTokenLimit: z.ZodDefault<z.ZodNumber>;
3039
+ credentialSource: z.ZodOptional<z.ZodNever>;
3040
+ billing: z.ZodOptional<z.ZodNever>;
3041
+ apiKey: z.ZodOptional<z.ZodNever>;
3042
+ pricing: z.ZodOptional<z.ZodNever>;
3043
+ }, z.core.$strict>>>;
3044
+ openrouterModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
3045
+ upstreamModelId: z.ZodString;
3046
+ label: z.ZodString;
3047
+ shortLabel: z.ZodOptional<z.ZodString>;
3048
+ logoUrl: z.ZodOptional<z.ZodString>;
3049
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
3050
+ capabilities: z.ZodObject<{
3051
+ reasoning: z.ZodObject<{
3052
+ upstream: z.ZodEnum<{
3053
+ supported: "supported";
3054
+ unknown: "unknown";
3055
+ unsupported: "unsupported";
3056
+ }>;
3057
+ runnable: z.ZodBoolean;
3058
+ efforts: z.ZodArray<z.ZodEnum<{
3059
+ high: "high";
3060
+ low: "low";
3061
+ max: "max";
3062
+ medium: "medium";
3063
+ minimal: "minimal";
3064
+ none: "none";
3065
+ xhigh: "xhigh";
3066
+ }>>;
3067
+ defaultEffort: z.ZodNullable<z.ZodEnum<{
3068
+ high: "high";
3069
+ low: "low";
3070
+ max: "max";
3071
+ medium: "medium";
3072
+ minimal: "minimal";
3073
+ none: "none";
3074
+ xhigh: "xhigh";
3075
+ }>>;
3076
+ required: z.ZodBoolean;
3077
+ }, z.core.$strip>;
3078
+ functionCalling: z.ZodObject<{
3079
+ upstream: z.ZodEnum<{
3080
+ supported: "supported";
3081
+ unknown: "unknown";
3082
+ unsupported: "unsupported";
3083
+ }>;
3084
+ runnable: z.ZodBoolean;
3085
+ }, z.core.$strip>;
3086
+ structuredOutput: z.ZodObject<{
3087
+ upstream: z.ZodEnum<{
3088
+ supported: "supported";
3089
+ unknown: "unknown";
3090
+ unsupported: "unsupported";
3091
+ }>;
3092
+ runnable: z.ZodBoolean;
3093
+ }, z.core.$strip>;
3094
+ hostedTools: z.ZodObject<{
3095
+ webSearch: z.ZodObject<{
3096
+ upstream: z.ZodEnum<{
3097
+ supported: "supported";
3098
+ unknown: "unknown";
3099
+ unsupported: "unsupported";
3100
+ }>;
3101
+ runnable: z.ZodBoolean;
3102
+ }, z.core.$strip>;
3103
+ xSearch: z.ZodObject<{
3104
+ upstream: z.ZodEnum<{
3105
+ supported: "supported";
3106
+ unknown: "unknown";
3107
+ unsupported: "unsupported";
3108
+ }>;
3109
+ runnable: z.ZodBoolean;
3110
+ }, z.core.$strip>;
3111
+ codeExecution: z.ZodObject<{
3112
+ upstream: z.ZodEnum<{
3113
+ supported: "supported";
3114
+ unknown: "unknown";
3115
+ unsupported: "unsupported";
3116
+ }>;
3117
+ runnable: z.ZodBoolean;
3118
+ }, z.core.$strip>;
3119
+ imageGeneration: z.ZodDefault<z.ZodObject<{
3120
+ upstream: z.ZodEnum<{
3121
+ supported: "supported";
3122
+ unknown: "unknown";
3123
+ unsupported: "unsupported";
3124
+ }>;
3125
+ runnable: z.ZodBoolean;
3126
+ }, z.core.$strip>>;
3127
+ }, z.core.$strip>;
3128
+ inputModalities: z.ZodArray<z.ZodEnum<{
3129
+ audio: "audio";
3130
+ image: "image";
3131
+ text: "text";
3132
+ }>>;
3133
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3134
+ outputModalities: z.ZodArray<z.ZodEnum<{
3135
+ audio: "audio";
3136
+ image: "image";
3137
+ text: "text";
3138
+ }>>;
3139
+ transports: z.ZodObject<{
3140
+ sse: z.ZodObject<{
3141
+ upstream: z.ZodEnum<{
3142
+ supported: "supported";
3143
+ unknown: "unknown";
3144
+ unsupported: "unsupported";
3145
+ }>;
3146
+ runnable: z.ZodBoolean;
3147
+ }, z.core.$strip>;
3148
+ responsesWebSocket: z.ZodObject<{
3149
+ upstream: z.ZodEnum<{
3150
+ supported: "supported";
3151
+ unknown: "unknown";
3152
+ unsupported: "unsupported";
3153
+ }>;
3154
+ runnable: z.ZodBoolean;
3155
+ }, z.core.$strip>;
3156
+ realtimeAudio: z.ZodObject<{
3157
+ upstream: z.ZodEnum<{
3158
+ supported: "supported";
3159
+ unknown: "unknown";
3160
+ unsupported: "unsupported";
3161
+ }>;
3162
+ runnable: z.ZodBoolean;
3163
+ }, z.core.$strip>;
3164
+ }, z.core.$strip>;
3165
+ promptCaching: z.ZodOptional<z.ZodObject<{
3166
+ upstream: z.ZodEnum<{
3167
+ supported: "supported";
3168
+ unknown: "unknown";
3169
+ unsupported: "unsupported";
3170
+ }>;
3171
+ runnable: z.ZodBoolean;
3172
+ mode: z.ZodEnum<{
3173
+ automatic: "automatic";
3174
+ implicit: "implicit";
3175
+ none: "none";
3176
+ }>;
3177
+ }, z.core.$strip>>;
3178
+ latencyModes: z.ZodArray<z.ZodObject<{
3179
+ id: z.ZodEnum<{
3180
+ fast: "fast";
3181
+ priority: "priority";
3182
+ standard: "standard";
3183
+ }>;
3184
+ upstream: z.ZodEnum<{
3185
+ supported: "supported";
3186
+ unknown: "unknown";
3187
+ unsupported: "unsupported";
3188
+ }>;
3189
+ runnable: z.ZodBoolean;
3190
+ billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
3191
+ }, z.core.$strip>>;
3192
+ }, z.core.$strip>;
3193
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
3194
+ effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
3195
+ autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
3196
+ toolOutputTruncationTokens: z.ZodOptional<z.ZodNumber>;
3197
+ credentialSource: z.ZodOptional<z.ZodNever>;
3198
+ billing: z.ZodOptional<z.ZodNever>;
3199
+ pricing: z.ZodOptional<z.ZodNever>;
3200
+ apiKey: z.ZodOptional<z.ZodNever>;
3201
+ }, z.core.$strict>>>;
3202
+ opperModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
3203
+ upstreamModelId: z.ZodString;
3204
+ label: z.ZodString;
3205
+ shortLabel: z.ZodOptional<z.ZodString>;
3206
+ logoUrl: z.ZodOptional<z.ZodString>;
3207
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
3208
+ capabilities: z.ZodObject<{
3209
+ reasoning: z.ZodObject<{
3210
+ upstream: z.ZodEnum<{
3211
+ supported: "supported";
3212
+ unknown: "unknown";
3213
+ unsupported: "unsupported";
3214
+ }>;
3215
+ runnable: z.ZodBoolean;
3216
+ efforts: z.ZodArray<z.ZodEnum<{
3217
+ high: "high";
3218
+ low: "low";
3219
+ max: "max";
3220
+ medium: "medium";
3221
+ minimal: "minimal";
3222
+ none: "none";
3223
+ xhigh: "xhigh";
3224
+ }>>;
3225
+ defaultEffort: z.ZodNullable<z.ZodEnum<{
3226
+ high: "high";
3227
+ low: "low";
3228
+ max: "max";
3229
+ medium: "medium";
3230
+ minimal: "minimal";
3231
+ none: "none";
3232
+ xhigh: "xhigh";
3233
+ }>>;
3234
+ required: z.ZodBoolean;
3235
+ }, z.core.$strip>;
3236
+ functionCalling: z.ZodObject<{
3237
+ upstream: z.ZodEnum<{
3238
+ supported: "supported";
3239
+ unknown: "unknown";
3240
+ unsupported: "unsupported";
3241
+ }>;
3242
+ runnable: z.ZodBoolean;
3243
+ }, z.core.$strip>;
3244
+ structuredOutput: z.ZodObject<{
3245
+ upstream: z.ZodEnum<{
3246
+ supported: "supported";
3247
+ unknown: "unknown";
3248
+ unsupported: "unsupported";
3249
+ }>;
3250
+ runnable: z.ZodBoolean;
3251
+ }, z.core.$strip>;
3252
+ hostedTools: z.ZodObject<{
3253
+ webSearch: z.ZodObject<{
3254
+ upstream: z.ZodEnum<{
3255
+ supported: "supported";
3256
+ unknown: "unknown";
3257
+ unsupported: "unsupported";
3258
+ }>;
3259
+ runnable: z.ZodBoolean;
3260
+ }, z.core.$strip>;
3261
+ xSearch: z.ZodObject<{
3262
+ upstream: z.ZodEnum<{
3263
+ supported: "supported";
3264
+ unknown: "unknown";
3265
+ unsupported: "unsupported";
3266
+ }>;
3267
+ runnable: z.ZodBoolean;
3268
+ }, z.core.$strip>;
3269
+ codeExecution: z.ZodObject<{
3270
+ upstream: z.ZodEnum<{
3271
+ supported: "supported";
3272
+ unknown: "unknown";
3273
+ unsupported: "unsupported";
3274
+ }>;
3275
+ runnable: z.ZodBoolean;
3276
+ }, z.core.$strip>;
3277
+ imageGeneration: z.ZodDefault<z.ZodObject<{
3278
+ upstream: z.ZodEnum<{
3279
+ supported: "supported";
3280
+ unknown: "unknown";
3281
+ unsupported: "unsupported";
3282
+ }>;
3283
+ runnable: z.ZodBoolean;
3284
+ }, z.core.$strip>>;
3285
+ }, z.core.$strip>;
3286
+ inputModalities: z.ZodArray<z.ZodEnum<{
3287
+ audio: "audio";
3288
+ image: "image";
3289
+ text: "text";
3290
+ }>>;
3291
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3292
+ outputModalities: z.ZodArray<z.ZodEnum<{
3293
+ audio: "audio";
3294
+ image: "image";
3295
+ text: "text";
3296
+ }>>;
3297
+ transports: z.ZodObject<{
3298
+ sse: z.ZodObject<{
3299
+ upstream: z.ZodEnum<{
3300
+ supported: "supported";
3301
+ unknown: "unknown";
3302
+ unsupported: "unsupported";
3303
+ }>;
3304
+ runnable: z.ZodBoolean;
3305
+ }, z.core.$strip>;
3306
+ responsesWebSocket: z.ZodObject<{
3307
+ upstream: z.ZodEnum<{
3308
+ supported: "supported";
3309
+ unknown: "unknown";
3310
+ unsupported: "unsupported";
3311
+ }>;
3312
+ runnable: z.ZodBoolean;
3313
+ }, z.core.$strip>;
3314
+ realtimeAudio: z.ZodObject<{
3315
+ upstream: z.ZodEnum<{
3316
+ supported: "supported";
3317
+ unknown: "unknown";
3318
+ unsupported: "unsupported";
3319
+ }>;
3320
+ runnable: z.ZodBoolean;
3321
+ }, z.core.$strip>;
3322
+ }, z.core.$strip>;
3323
+ promptCaching: z.ZodOptional<z.ZodObject<{
3324
+ upstream: z.ZodEnum<{
3325
+ supported: "supported";
3326
+ unknown: "unknown";
3327
+ unsupported: "unsupported";
3328
+ }>;
3329
+ runnable: z.ZodBoolean;
3330
+ mode: z.ZodEnum<{
3331
+ automatic: "automatic";
3332
+ implicit: "implicit";
3333
+ none: "none";
3334
+ }>;
3335
+ }, z.core.$strip>>;
3336
+ latencyModes: z.ZodArray<z.ZodObject<{
3337
+ id: z.ZodEnum<{
3338
+ fast: "fast";
3339
+ priority: "priority";
3340
+ standard: "standard";
3341
+ }>;
3342
+ upstream: z.ZodEnum<{
3343
+ supported: "supported";
3344
+ unknown: "unknown";
3345
+ unsupported: "unsupported";
3346
+ }>;
3347
+ runnable: z.ZodBoolean;
3348
+ billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
3349
+ }, z.core.$strip>>;
3350
+ }, z.core.$strip>;
3351
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
3352
+ effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
3353
+ autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
3354
+ toolOutputTruncationTokens: z.ZodOptional<z.ZodNumber>;
3355
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3356
+ credentialSource: z.ZodOptional<z.ZodNever>;
3357
+ billing: z.ZodOptional<z.ZodNever>;
3358
+ apiKey: z.ZodOptional<z.ZodNever>;
3359
+ pricing: z.ZodOptional<z.ZodNever>;
3360
+ }, z.core.$strict>>>;
3361
+ modelNotes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
3362
+ billing: z.ZodOptional<z.ZodNever>;
3363
+ enabled: z.ZodOptional<z.ZodNever>;
3364
+ apiKey: z.ZodOptional<z.ZodNever>;
3365
+ bands: z.ZodOptional<z.ZodNever>;
3366
+ }, z.core.$strict>;
3367
+ export type ModelCatalogDocument = z.infer<typeof ModelCatalogDocument>;
3368
+ export declare function parseModelCatalogDocument(value: unknown): ModelCatalogDocument;
3369
+ /** Pure secret-free database catalog overlay. getSettings remains env-only. */
3370
+ /**
3371
+ * OPENGENI_MANAGED_MODELS_JSON: the managed-provider slice of a catalog
3372
+ * document for code catalog mode. Each present array uses the database
3373
+ * document's exact strict entry schema (so no entry may carry `pricing`,
3374
+ * credentials, or billing) and replaces that provider's reviewed code table;
3375
+ * an omitted array keeps it. Price authority stays with provider-reported
3376
+ * cost (Gateway/Opper), the reviewed code snapshot, and
3377
+ * OPENGENI_MODEL_PRICING_JSON, which boot validation requires for every
3378
+ * credits-billed product without a reviewed price.
3379
+ */
3380
+ export declare const ManagedModelsOverride: z.ZodObject<{
3381
+ gatewayModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
3382
+ productId: z.ZodString;
3383
+ workspaceProductId: z.ZodString;
3384
+ upstreamModelId: z.ZodString;
3385
+ label: z.ZodString;
3386
+ shortLabel: z.ZodOptional<z.ZodString>;
3387
+ logoUrl: z.ZodOptional<z.ZodString>;
1979
3388
  providers: z.ZodArray<z.ZodString>;
1980
3389
  implicitCaching: z.ZodDefault<z.ZodBoolean>;
1981
3390
  vision: z.ZodDefault<z.ZodBoolean>;
@@ -1988,10 +3397,11 @@ export declare const ModelCatalogDocument: z.ZodObject<{
1988
3397
  apiKey: z.ZodOptional<z.ZodNever>;
1989
3398
  pricing: z.ZodOptional<z.ZodNever>;
1990
3399
  }, z.core.$strict>>>;
1991
- openrouterModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
3400
+ openrouterModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
1992
3401
  upstreamModelId: z.ZodString;
1993
3402
  label: z.ZodString;
1994
3403
  shortLabel: z.ZodOptional<z.ZodString>;
3404
+ logoUrl: z.ZodOptional<z.ZodString>;
1995
3405
  aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
1996
3406
  capabilities: z.ZodObject<{
1997
3407
  reasoning: z.ZodObject<{
@@ -2145,15 +3555,169 @@ export declare const ModelCatalogDocument: z.ZodObject<{
2145
3555
  pricing: z.ZodOptional<z.ZodNever>;
2146
3556
  apiKey: z.ZodOptional<z.ZodNever>;
2147
3557
  }, z.core.$strict>>>;
2148
- modelNotes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2149
- billing: z.ZodOptional<z.ZodNever>;
2150
- enabled: z.ZodOptional<z.ZodNever>;
2151
- apiKey: z.ZodOptional<z.ZodNever>;
2152
- bands: z.ZodOptional<z.ZodNever>;
3558
+ opperModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
3559
+ upstreamModelId: z.ZodString;
3560
+ label: z.ZodString;
3561
+ shortLabel: z.ZodOptional<z.ZodString>;
3562
+ logoUrl: z.ZodOptional<z.ZodString>;
3563
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
3564
+ capabilities: z.ZodObject<{
3565
+ reasoning: z.ZodObject<{
3566
+ upstream: z.ZodEnum<{
3567
+ supported: "supported";
3568
+ unknown: "unknown";
3569
+ unsupported: "unsupported";
3570
+ }>;
3571
+ runnable: z.ZodBoolean;
3572
+ efforts: z.ZodArray<z.ZodEnum<{
3573
+ high: "high";
3574
+ low: "low";
3575
+ max: "max";
3576
+ medium: "medium";
3577
+ minimal: "minimal";
3578
+ none: "none";
3579
+ xhigh: "xhigh";
3580
+ }>>;
3581
+ defaultEffort: z.ZodNullable<z.ZodEnum<{
3582
+ high: "high";
3583
+ low: "low";
3584
+ max: "max";
3585
+ medium: "medium";
3586
+ minimal: "minimal";
3587
+ none: "none";
3588
+ xhigh: "xhigh";
3589
+ }>>;
3590
+ required: z.ZodBoolean;
3591
+ }, z.core.$strip>;
3592
+ functionCalling: z.ZodObject<{
3593
+ upstream: z.ZodEnum<{
3594
+ supported: "supported";
3595
+ unknown: "unknown";
3596
+ unsupported: "unsupported";
3597
+ }>;
3598
+ runnable: z.ZodBoolean;
3599
+ }, z.core.$strip>;
3600
+ structuredOutput: z.ZodObject<{
3601
+ upstream: z.ZodEnum<{
3602
+ supported: "supported";
3603
+ unknown: "unknown";
3604
+ unsupported: "unsupported";
3605
+ }>;
3606
+ runnable: z.ZodBoolean;
3607
+ }, z.core.$strip>;
3608
+ hostedTools: z.ZodObject<{
3609
+ webSearch: z.ZodObject<{
3610
+ upstream: z.ZodEnum<{
3611
+ supported: "supported";
3612
+ unknown: "unknown";
3613
+ unsupported: "unsupported";
3614
+ }>;
3615
+ runnable: z.ZodBoolean;
3616
+ }, z.core.$strip>;
3617
+ xSearch: z.ZodObject<{
3618
+ upstream: z.ZodEnum<{
3619
+ supported: "supported";
3620
+ unknown: "unknown";
3621
+ unsupported: "unsupported";
3622
+ }>;
3623
+ runnable: z.ZodBoolean;
3624
+ }, z.core.$strip>;
3625
+ codeExecution: z.ZodObject<{
3626
+ upstream: z.ZodEnum<{
3627
+ supported: "supported";
3628
+ unknown: "unknown";
3629
+ unsupported: "unsupported";
3630
+ }>;
3631
+ runnable: z.ZodBoolean;
3632
+ }, z.core.$strip>;
3633
+ imageGeneration: z.ZodDefault<z.ZodObject<{
3634
+ upstream: z.ZodEnum<{
3635
+ supported: "supported";
3636
+ unknown: "unknown";
3637
+ unsupported: "unsupported";
3638
+ }>;
3639
+ runnable: z.ZodBoolean;
3640
+ }, z.core.$strip>>;
3641
+ }, z.core.$strip>;
3642
+ inputModalities: z.ZodArray<z.ZodEnum<{
3643
+ audio: "audio";
3644
+ image: "image";
3645
+ text: "text";
3646
+ }>>;
3647
+ inputFileMediaTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3648
+ outputModalities: z.ZodArray<z.ZodEnum<{
3649
+ audio: "audio";
3650
+ image: "image";
3651
+ text: "text";
3652
+ }>>;
3653
+ transports: z.ZodObject<{
3654
+ sse: z.ZodObject<{
3655
+ upstream: z.ZodEnum<{
3656
+ supported: "supported";
3657
+ unknown: "unknown";
3658
+ unsupported: "unsupported";
3659
+ }>;
3660
+ runnable: z.ZodBoolean;
3661
+ }, z.core.$strip>;
3662
+ responsesWebSocket: z.ZodObject<{
3663
+ upstream: z.ZodEnum<{
3664
+ supported: "supported";
3665
+ unknown: "unknown";
3666
+ unsupported: "unsupported";
3667
+ }>;
3668
+ runnable: z.ZodBoolean;
3669
+ }, z.core.$strip>;
3670
+ realtimeAudio: z.ZodObject<{
3671
+ upstream: z.ZodEnum<{
3672
+ supported: "supported";
3673
+ unknown: "unknown";
3674
+ unsupported: "unsupported";
3675
+ }>;
3676
+ runnable: z.ZodBoolean;
3677
+ }, z.core.$strip>;
3678
+ }, z.core.$strip>;
3679
+ promptCaching: z.ZodOptional<z.ZodObject<{
3680
+ upstream: z.ZodEnum<{
3681
+ supported: "supported";
3682
+ unknown: "unknown";
3683
+ unsupported: "unsupported";
3684
+ }>;
3685
+ runnable: z.ZodBoolean;
3686
+ mode: z.ZodEnum<{
3687
+ automatic: "automatic";
3688
+ implicit: "implicit";
3689
+ none: "none";
3690
+ }>;
3691
+ }, z.core.$strip>>;
3692
+ latencyModes: z.ZodArray<z.ZodObject<{
3693
+ id: z.ZodEnum<{
3694
+ fast: "fast";
3695
+ priority: "priority";
3696
+ standard: "standard";
3697
+ }>;
3698
+ upstream: z.ZodEnum<{
3699
+ supported: "supported";
3700
+ unknown: "unknown";
3701
+ unsupported: "unsupported";
3702
+ }>;
3703
+ runnable: z.ZodBoolean;
3704
+ billingMultiplierBps: z.ZodOptional<z.ZodNumber>;
3705
+ }, z.core.$strip>>;
3706
+ }, z.core.$strip>;
3707
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
3708
+ effectiveContextWindowTokens: z.ZodOptional<z.ZodNumber>;
3709
+ autoCompactTokenLimit: z.ZodOptional<z.ZodNumber>;
3710
+ toolOutputTruncationTokens: z.ZodOptional<z.ZodNumber>;
3711
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
3712
+ credentialSource: z.ZodOptional<z.ZodNever>;
3713
+ billing: z.ZodOptional<z.ZodNever>;
3714
+ apiKey: z.ZodOptional<z.ZodNever>;
3715
+ pricing: z.ZodOptional<z.ZodNever>;
3716
+ }, z.core.$strict>>>;
2153
3717
  }, z.core.$strict>;
2154
- export type ModelCatalogDocument = z.infer<typeof ModelCatalogDocument>;
2155
- export declare function parseModelCatalogDocument(value: unknown): ModelCatalogDocument;
2156
- /** Pure secret-free database catalog overlay. getSettings remains env-only. */
3718
+ export type ManagedModelsOverride = z.infer<typeof ManagedModelsOverride>;
3719
+ /** Parse and validate OPENGENI_MANAGED_MODELS_JSON (memoized per raw value). */
3720
+ export declare function parseManagedModelsJson(raw: string): ManagedModelsOverride;
2157
3721
  export declare function applyModelCatalogDocument(settings: Settings, rawDocument: unknown): Settings;
2158
3722
  export declare const IntegrationOAuthClientConfigSchema: z.ZodObject<{
2159
3723
  clientId: z.ZodString;
@@ -2173,9 +3737,10 @@ export type IntegrationOAuthClientConfig = z.infer<typeof IntegrationOAuthClient
2173
3737
  * replacement.
2174
3738
  */
2175
3739
  export interface ResolvedModelProvider {
3740
+ anthropic?: z.infer<typeof AnthropicProviderOptions> | undefined;
2176
3741
  id: string;
2177
3742
  label: string;
2178
- kind: RegistryProviderKind | "openrouter-managed";
3743
+ kind: RegistryProviderKind | "openrouter-managed" | "opper-managed";
2179
3744
  api: ModelProviderApi;
2180
3745
  wireProfile: ModelProviderWireProfile;
2181
3746
  builtin: boolean;
@@ -2185,6 +3750,10 @@ export interface ResolvedModelProvider {
2185
3750
  defaultHeaders?: Record<string, string> | undefined;
2186
3751
  publicDefaultQueryNames?: string[] | undefined;
2187
3752
  publicDefaultHeaderNames?: string[] | undefined;
3753
+ /** Generic OpenAI-compatible stream silence bound override (ms). */
3754
+ streamIdleTimeoutMs?: number | undefined;
3755
+ /** Generic OpenAI-compatible keepalive-only progress bound override (ms). */
3756
+ streamProgressTimeoutMs?: number | undefined;
2188
3757
  credentialSource: CredentialSourceV1;
2189
3758
  billing: BillingAttributionV1;
2190
3759
  }
@@ -2196,6 +3765,8 @@ export interface ConfiguredModel {
2196
3765
  label: string;
2197
3766
  /** Optional curated compact label for dense UI (e.g. mobile composer). */
2198
3767
  shortLabel?: string | undefined;
3768
+ /** Optional HTTPS maker logo; display metadata does not change execution identity. */
3769
+ logoUrl?: string | undefined;
2199
3770
  providerId: string;
2200
3771
  providerLabel: string;
2201
3772
  api: ModelProviderApi;
@@ -2222,12 +3793,35 @@ export interface ConfiguredModel {
2222
3793
  reasoningEffort: boolean;
2223
3794
  hostedWebSearch: boolean;
2224
3795
  }
3796
+ /**
3797
+ * Whether a resolved route is the deployment-funded OpenRouter free tier: the
3798
+ * managed OpenRouter provider, which sends every workspace's requests with the
3799
+ * deployment's one OpenRouter key, serving an upstream `:free` variant (the
3800
+ * curated catalog admits nothing else). OpenRouter limits free-variant
3801
+ * requests per account per minute and per day, so each request on this route
3802
+ * spends quota that every turn on the deployment shares. A workspace or
3803
+ * organization OpenRouter connection uses its own account and is not this
3804
+ * route.
3805
+ */
3806
+ export declare function isManagedOpenRouterFreeRoute(route: {
3807
+ provider: Pick<ResolvedModelProvider, "kind">;
3808
+ configured: Pick<ConfiguredModel, "upstreamModelId">;
3809
+ }): boolean;
2225
3810
  export declare const VERCEL_AI_GATEWAY_BASE_URL: "https://ai-gateway.vercel.sh/v1";
2226
3811
  export declare const VERCEL_AI_GATEWAY_AI_SDK_BASE_URL: "https://ai-gateway.vercel.sh/v4/ai";
2227
3812
  export declare const VERCEL_AI_GATEWAY_CONNECTION_DOMAIN: "ai-gateway.vercel.sh";
2228
3813
  export declare const VERCEL_AI_GATEWAY_CONNECTION_ROLE: "vercel_ai_gateway";
2229
3814
  export declare const WORKSPACE_OPENROUTER_CONNECTION_DOMAIN: "openrouter.ai";
2230
3815
  export declare const WORKSPACE_OPENROUTER_CONNECTION_ROLE: "openrouter";
3816
+ export declare const WORKSPACE_OPPER_CONNECTION_DOMAIN: "api.opper.ai";
3817
+ export declare const WORKSPACE_OPPER_CONNECTION_ROLE: "opper";
3818
+ /**
3819
+ * Opper issues separate management keys (`op-mak-…`) that its inference routes
3820
+ * refuse with 403 ("management API keys cannot be used on inference routes").
3821
+ * Reject them before they are stored so a connection never looks ready while
3822
+ * every turn fails. Returns a user-facing explanation, or null when usable.
3823
+ */
3824
+ export declare function opperCredentialProblem(apiKey: string): string | null;
2231
3825
  export declare const CODEX_REALTIME_MODEL_ID: "gpt-live-1-boulder-alpha";
2232
3826
  export declare const SUPERGROK_REALTIME_MODEL_ID: "supergrok/grok-voice-think-fast-2.0";
2233
3827
  export declare const OPENGENI_REALTIME_MODEL_ID_PREFIX: "opengeni-gateway/";
@@ -2282,6 +3876,35 @@ export declare const OPENGENI_GATEWAY_MODELS: {
2282
3876
  };
2283
3877
  };
2284
3878
  export declare const OPENGENI_OPENROUTER_MODELS: readonly OpenRouterCatalogModel[];
3879
+ /**
3880
+ * Reviewed Opper starter route. Snapshot of Opper's catalogue
3881
+ * (`GET https://api.opper.ai/v3/compat/models`) reviewed 2026-10-05 and probed
3882
+ * live end to end. The route is provider-pinned (`provider/model`) to AWS
3883
+ * Bedrock eu-north-1 (Stockholm) with no provider logging, so Opper never
3884
+ * pools it onto a non-EU provider. `pricing` is Opper's listed supplier rate
3885
+ * (USD per 1M tokens); turns debit Opper's exact reported cost +5% and use
3886
+ * this rate only when cost metadata is absent. Hosts replace this list with
3887
+ * OPENGENI_OPPER_MODELS_JSON (code mode) or the catalog document's
3888
+ * `opperModels` (database mode).
3889
+ */
3890
+ /**
3891
+ * Default automatic-compaction threshold for Claude Opus 5.5 on every route.
3892
+ * Workspaces can still choose another threshold per model.
3893
+ */
3894
+ export declare const OPUS_5_5_AUTO_COMPACT_TOKEN_LIMIT = 300000;
3895
+ export declare const OPENGENI_OPPER_MODELS: readonly OpperCatalogModel[];
3896
+ /** Keepalive-only progress bound for Opper streams: room for a full 128,000-
3897
+ * token hidden-reasoning response at roughly 35 tokens per second. */
3898
+ export declare const OPPER_STREAM_PROGRESS_TIMEOUT_MS: number;
3899
+ /**
3900
+ * `max_tokens` the Opper Chat adapter sends when a request sets none. Opper's
3901
+ * own default is 4,096 output tokens, which hidden reasoning can exhaust before
3902
+ * any answer, and Opper rejects (does not clamp) a value above the route's
3903
+ * limit. A configured entry's `maxOutputTokens` wins; a Claude-family custom id
3904
+ * gets the smallest Claude limit in Opper's catalogue; other ids keep Opper's
3905
+ * default.
3906
+ */
3907
+ export declare function opperMaxOutputTokens(settings: Settings, upstreamModelId: string): number | undefined;
2285
3908
  export declare function configuredGatewayUpstreamModelIds(settings: Settings): string[];
2286
3909
  export declare function configuredGatewayWorkspaceProductModelIds(settings: Settings): string[];
2287
3910
  export declare function configuredGatewayOrganizationProductModelIds(settings: Settings): string[];
@@ -2289,8 +3912,11 @@ export declare function configuredModelInputIdentities(settings: Settings): stri
2289
3912
  export declare function configuredOpenRouterUpstreamModelIds(settings: Settings): string[];
2290
3913
  export declare function configuredOpenRouterWorkspaceProductModelIds(settings: Settings): string[];
2291
3914
  export declare function configuredOpenRouterOrganizationProductModelIds(settings: Settings): string[];
3915
+ export declare function configuredOpperUpstreamModelIds(settings: Settings): string[];
3916
+ export declare function configuredOpperWorkspaceProductModelIds(settings: Settings): string[];
3917
+ export declare function configuredOpperOrganizationProductModelIds(settings: Settings): string[];
2292
3918
  /**
2293
- * Built-in OpenGeni credit pricing schedules.
3919
+ * Built-in Opengeni credit pricing schedules.
2294
3920
  *
2295
3921
  * Rates are provider list prices in USD micros per 1M tokens. Debit applies
2296
3922
  * `marginBps` (500 = +5%) on top. Long-context tiers follow OpenAI's
@@ -2298,7 +3924,7 @@ export declare function configuredOpenRouterOrganizationProductModelIds(settings
2298
3924
  *
2299
3925
  * GPT-5.4 and older families are intentionally omitted — they are no longer
2300
3926
  * offered. Codex / connected-subscription turns use `metering: external`, so
2301
- * this map never debits them, but it does provide their equivalent OpenGeni
3927
+ * this map never debits them, but it does provide their equivalent Opengeni
2302
3928
  * credit price when a matching product model is configured.
2303
3929
  *
2304
3930
  * When adding or changing a billed model, run `bun run check:model-pricing`
@@ -2306,6 +3932,8 @@ export declare function configuredOpenRouterOrganizationProductModelIds(settings
2306
3932
  * llm-prices.com as a ground-truth canary; it does not generate this table.
2307
3933
  */
2308
3934
  export declare const defaultModelPricing: Record<string, ModelPricingScheduleV1>;
3935
+ /** Reviewed comparison rates only; never debit or execution-definition defaults. */
3936
+ export declare const reviewedModelListPricing: Record<string, ModelPricingScheduleV1>;
2309
3937
  export type SandboxRequiredEnv = {
2310
3938
  field: keyof Settings;
2311
3939
  env: string;
@@ -2325,15 +3953,24 @@ export type FirstPartyMcpToolPolicy = {
2325
3953
  default: FirstPartyMcpToolNameType[];
2326
3954
  allowed: FirstPartyMcpToolNameType[];
2327
3955
  };
3956
+ export type FirstPartyMcpToolPolicySettings = Pick<Settings, "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools" | "artifactMaterializerDeployed">;
3957
+ /**
3958
+ * First-party tools whose backing workload this deployment does not run. They
3959
+ * are absent from the ceiling (never offered) and an explicit request for one
3960
+ * is dropped rather than rejected: it is a deployment fact, not a caller error.
3961
+ */
3962
+ export declare function deploymentUnavailableFirstPartyMcpTools(settings: Pick<Settings, "artifactMaterializerDeployed">): ReadonlySet<FirstPartyMcpToolNameType>;
2328
3963
  /** Resolve the deployment's session-tool defaults and hard execution ceiling. */
2329
- export declare function resolveFirstPartyMcpToolPolicy(settings: Pick<Settings, "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools">): FirstPartyMcpToolPolicy;
3964
+ export declare function resolveFirstPartyMcpToolPolicy(settings: FirstPartyMcpToolPolicySettings): FirstPartyMcpToolPolicy;
2330
3965
  /** Apply the deployment ceiling to an existing durable session selection. */
2331
- export declare function allowedFirstPartyMcpToolsForSession(settings: Pick<Settings, "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools">, selected: readonly FirstPartyMcpToolNameType[] | null | undefined): FirstPartyMcpToolNameType[];
3966
+ export declare function allowedFirstPartyMcpToolsForSession(settings: FirstPartyMcpToolPolicySettings, selected: readonly FirstPartyMcpToolNameType[] | null | undefined): FirstPartyMcpToolNameType[];
3967
+ /** Resolve durable selection intent before freezing a new attempt's catalog. */
3968
+ export declare function resolveSessionFirstPartyMcpTools(settings: FirstPartyMcpToolPolicySettings, session: Pick<Session, "firstPartyMcpTools" | "toolPolicy"> & Partial<Pick<Session, "agent">>, workspaceSettings: unknown): FirstPartyMcpToolNameType[];
2332
3969
  /**
2333
3970
  * The Modal sandbox idle timeout (seconds) the provider actually passes as
2334
3971
  * idleTimeoutMs (sandbox-file-persistence). When the operator did not pin
2335
3972
  * OPENGENI_MODAL_IDLE_TIMEOUT_SECONDS we DEFAULT it to the hard lifetime
2336
- * (modalTimeoutSeconds): OpenGeni's reaper owns box lifecycle, so Modal's
3973
+ * (modalTimeoutSeconds): Opengeni's reaper owns box lifecycle, so Modal's
2337
3974
  * built-in idle-reap (which would otherwise fire on its short server default and
2338
3975
  * kill the box BEFORE the reaper can snapshot /workspace) is pushed out to the
2339
3976
  * hard backstop. An explicit smaller value is honoured (the boot invariant keeps
@@ -2355,15 +3992,26 @@ export declare function effectiveSandboxLifecycle(settings: Settings, backend?:
2355
3992
  /**
2356
3993
  * One shared upper bound for the durable provider-capture claim and for command
2357
3994
  * admission waiting behind it. The SDK request itself is bounded by
2358
- * sandboxSnapshotTimeoutMs; the extra window lets a non-cancellable provider
2359
- * response settle and release its exact claim without turning a normal
2360
- * checkpoint into a visible command failure. Database validation caps both
2361
- * consumers at one hour.
3995
+ * sandboxSnapshotTimeoutMs (a warm host-backed spool capture is stopped there);
3996
+ * the extra window lets a non-cancellable provider response settle and release
3997
+ * its exact claim without turning a normal checkpoint into a visible command
3998
+ * failure. Database validation caps both consumers at one hour.
2362
3999
  */
2363
4000
  export declare function sandboxArchiveCaptureTimeoutMs(settings: Pick<Settings, "sandboxSnapshotTimeoutMs">): number;
2364
4001
  /** Provider operation budget used only by zero-holder drain/rotation capture.
2365
4002
  * Unset preserves the historical shared snapshot budget exactly. */
2366
4003
  export declare function effectiveSandboxDrainSnapshotTimeoutMs(settings: Pick<Settings, "sandboxSnapshotTimeoutMs" | "sandboxDrainSnapshotTimeoutMs">): number;
4004
+ /**
4005
+ * How long before a finite provider deadline the deadline save stops waiting
4006
+ * for an orderly shutdown and becomes mandatory. Past this point the
4007
+ * reaper captures and terminates the box around anything that cannot finish in
4008
+ * time (pending owner quiescence, sibling attempts that do not hold the box,
4009
+ * in-flight requests whose holders are gone, commands that ignored their stop
4010
+ * request) instead of letting the provider kill it uncaptured. It leaves the
4011
+ * legacy command stop grace, the full drain capture budget and two reaper
4012
+ * periods before the deadline, and never exceeds the rotation lead.
4013
+ */
4014
+ export declare function sandboxDeadlineMandatoryCaptureLeadMs(settings: Pick<Settings, "sandboxRotationLeadMs" | "sandboxSnapshotTimeoutMs" | "sandboxDrainSnapshotTimeoutMs" | "sandboxLeaseReaperPeriodMs">): number;
2367
4015
  export declare function sandboxLifecycleTransitionWaitMs(settings: Pick<Settings, "sandboxSnapshotTimeoutMs" | "sandboxDrainSnapshotTimeoutMs" | "sandboxLeaseReaperPeriodMs">): number;
2368
4016
  export declare function collectSandboxEnvironment(settings: Settings, source?: NodeJS.ProcessEnv): Record<string, string>;
2369
4017
  /**
@@ -2375,6 +4023,17 @@ export declare function collectSandboxEnvironment(settings: Settings, source?: N
2375
4023
  */
2376
4024
  export declare function resolveProviderApiKey(provider: Pick<RegistryProvider, "apiKey" | "apiKeyEnv">, source?: NodeJS.ProcessEnv): string | undefined;
2377
4025
  export declare function gatewayRequestPolicyForUpstreamModel(upstreamModelId: string, models?: readonly GatewayCatalogModel[]): ConfiguredModel["requestPolicy"];
4026
+ /** Customer-owned OpenAI/Azure routes, bound to immutable connection identity. */
4027
+ export declare function withDirectModelProviders(settings: Settings, connections: readonly {
4028
+ id: string;
4029
+ version: number;
4030
+ subjectId: string | null;
4031
+ kind: string;
4032
+ status: string;
4033
+ providerDomain: string;
4034
+ metadata: Record<string, unknown>;
4035
+ apiKey?: string;
4036
+ }[]): Settings;
2378
4037
  /** Static catalog overlay; it contains no concrete workspace credential. */
2379
4038
  export declare function withWorkspaceGatewayCatalogProvider(settings: Settings, customModels?: readonly {
2380
4039
  upstreamModelId: string;
@@ -2395,6 +4054,25 @@ export declare function withWorkspaceOpenRouterCredential(settings: Settings, ap
2395
4054
  upstreamModelId: string;
2396
4055
  label?: string | null;
2397
4056
  }[]): Settings;
4057
+ /** Static Opper catalog overlay; it contains no concrete workspace credential. */
4058
+ export declare function withWorkspaceOpperCatalogProvider(settings: Settings, customModels?: readonly {
4059
+ upstreamModelId: string;
4060
+ label?: string | null;
4061
+ }[]): Settings;
4062
+ /** Runtime overlay after the worker resolves the workspace's encrypted Opper key. */
4063
+ export declare function withWorkspaceOpperCredential(settings: Settings, apiKey: string, customModels?: readonly {
4064
+ upstreamModelId: string;
4065
+ label?: string | null;
4066
+ }[]): Settings;
4067
+ /** Secret-free organization Opper catalog overlay. */
4068
+ export declare function withOrganizationOpperCatalogProvider(settings: Settings, customModels?: readonly {
4069
+ upstreamModelId: string;
4070
+ label?: string | null;
4071
+ }[]): Settings;
4072
+ export declare function withOrganizationOpperCredential(settings: Settings, apiKey: string, customModels?: readonly {
4073
+ upstreamModelId: string;
4074
+ label?: string | null;
4075
+ }[]): Settings;
2398
4076
  /** Secret-free organization Vercel AI Gateway catalog overlay. */
2399
4077
  export declare function withOrganizationGatewayCatalogProvider(settings: Settings, customModels?: readonly {
2400
4078
  upstreamModelId: string;
@@ -2428,7 +4106,7 @@ export declare function productShortLabelForModelId(modelId: string): string | n
2428
4106
  /** Undefined and the exact public OpenAI v1 endpoint are the same direct route. */
2429
4107
  export declare function isDirectOpenAiApiBaseUrl(baseUrl: string | undefined): boolean;
2430
4108
  /**
2431
- * Map OpenGeni latency mode to the provider `service_tier` wire value.
4109
+ * Map Opengeni latency mode to the provider `service_tier` wire value.
2432
4110
  * Azure, Codex ChatGPT, and xAI accept `priority`; OpenAI API accepts `fast`.
2433
4111
  * Standard omits the field.
2434
4112
  */
@@ -2436,7 +4114,22 @@ export declare function serviceTierForLatencyMode(providerId: string, latencyMod
2436
4114
  /** True when the response tier fulfills a non-standard Fast/priority request. */
2437
4115
  export declare function responseSatisfiesLatencyMode(requested: LatencyMode, responseServiceTier: string | null | undefined): boolean;
2438
4116
  export declare function runnableLatencyModesForModel(settings: Settings, modelId: string): LatencyMode[];
4117
+ export declare class UnsupportedLatencyModeError extends Error {
4118
+ readonly modelId: string;
4119
+ readonly latencyMode: LatencyMode;
4120
+ readonly allowedLatencyModes: readonly LatencyMode[];
4121
+ readonly code = "UNSUPPORTED_LATENCY_MODE";
4122
+ constructor(modelId: string, latencyMode: LatencyMode, allowedLatencyModes: readonly LatencyMode[]);
4123
+ }
2439
4124
  export declare function modelCostClassForConfiguredModel(_settings: Settings, model: Pick<ConfiguredModel, "cost">): ConfiguredModelCostClass;
4125
+ /**
4126
+ * The executable model an accepted turn runs: the current definition, except
4127
+ * that a turn frozen before hosted web search was enabled keeps its frozen
4128
+ * tool set (no web_search) on every recovery attempt. Only the next accepted
4129
+ * logical turn resolves the newly enabled tool. Call only with a policy that
4130
+ * already passed assertTurnExecutionPolicyMatchesConfigV1.
4131
+ */
4132
+ export declare function configuredModelForAcceptedTurnExecutionPolicy(model: ConfiguredModel, provider: ResolvedModelProvider, policy: TurnExecutionPolicyV1): ConfiguredModel;
2440
4133
  /**
2441
4134
  * The built-in provider's stable id: "openai" on the OpenAI platform, "azure"
2442
4135
  * on Azure. Exported because the workspace model-policy gate must attribute
@@ -2460,6 +4153,8 @@ export declare function configuredProviders(settings: Settings, source?: NodeJS.
2460
4153
  * select, lease, refresh, or expose a concrete credential; those runtime
2461
4154
  * operations remain owned by the credential allocator.
2462
4155
  */
4156
+ /** Exact upstream slugs of the active Codex catalog (or the built-in fallback list). */
4157
+ export declare function codexUpstreamModelSlugs(settings: Settings): string[];
2463
4158
  export declare function withCodexCatalogProvider(settings: Settings): Settings;
2464
4159
  /**
2465
4160
  * Static SuperGrok product catalogue, matching the Codex subscription seam.
@@ -2481,6 +4176,18 @@ export declare function withXaiSubscriptionCatalogProvider(settings: Settings):
2481
4176
  * serves. A policy blocking the built-in must block this path too.
2482
4177
  */
2483
4178
  export declare function policyProviderIdForModel(settings: Settings, modelId: string): string;
4179
+ /**
4180
+ * Whether a model id spends Opengeni credits, for the workspace model
4181
+ * policy's credit switch. MUST agree with the cost the worker bills
4182
+ * (`ConfiguredModel.cost === "credits"`):
4183
+ * - a configured model → its own cost class;
4184
+ * - `codex/…`, `xai…/`, and workspace/organization connection ids → never;
4185
+ * - anything else → the legacy built-in fallback, which the deployment pays
4186
+ * and bills in credits unless the cost policy marks that exact id free.
4187
+ * Failing closed here keeps an unknown id from slipping past a workspace
4188
+ * that turned credits off.
4189
+ */
4190
+ export declare function policyChargesCreditsForModel(settings: Settings, modelId: string): boolean;
2484
4191
  /**
2485
4192
  * Every model a client may use, the built-in provider's models first
2486
4193
  * (configuredAllowedModels-from-openai, mapped to "responses" with
@@ -2500,6 +4207,14 @@ export declare function canonicalizeConfiguredModelId(settings: Settings, modelI
2500
4207
  * openai allow-list, then registry ids.
2501
4208
  */
2502
4209
  export declare function configuredAllowedModels(settings: Settings): string[];
4210
+ /** Retirement is selection metadata, never provider authority or executable identity. */
4211
+ export declare function isModelAvailableForNewSelection(settings: Settings, modelId: string): boolean;
4212
+ /** Called only with the durable policy installed for a claimed accepted attempt. */
4213
+ export declare function settingsForAcceptedSubscriptionTurn(settings: Settings, policy: TurnExecutionPolicyV1, expected: {
4214
+ modelId: string;
4215
+ reasoningEffort: Settings["openaiReasoningEffort"];
4216
+ latencyMode?: LatencyMode;
4217
+ }): Settings;
2503
4218
  /**
2504
4219
  * Resolve a model string to the provider that serves it and its configured
2505
4220
  * shape. Returns undefined when the id is not exposed (built-in allow-list nor
@@ -2527,16 +4242,33 @@ export type ResolveTurnExecutionPolicyV1Input = {
2527
4242
  * callers must keep their live credential/readiness gate authoritative.
2528
4243
  */
2529
4244
  export declare function resolveModelProviderForTurn(settings: Settings, modelId: string): ReturnType<typeof resolveModelProvider>;
4245
+ /**
4246
+ * The requested model cannot start new work: it is retired from new selection
4247
+ * or absent from the configured catalog. Callers that own a durable refusal
4248
+ * (for example a scheduled occurrence) record it instead of failing blindly.
4249
+ */
4250
+ export declare class TurnExecutionPolicyModelUnavailableError extends Error {
4251
+ constructor(message: string);
4252
+ }
2530
4253
  /**
2531
4254
  * Build a trusted, secret-safe execution policy from the normalized catalog.
2532
4255
  * The Codex overlay here contains static product/provider identity only; it
2533
4256
  * neither proves readiness nor chooses, decrypts, leases, or exposes an account.
2534
4257
  */
2535
4258
  export declare function resolveTurnExecutionPolicyV1(settings: Settings, input: ResolveTurnExecutionPolicyV1Input): TurnExecutionPolicyV1;
4259
+ /** Explicit accepted execution identity matches, but its definition digest differs. */
4260
+ export declare class TurnExecutionPolicyDefinitionMismatchError extends Error {
4261
+ readonly code = "turn_execution_policy_definition_mismatch";
4262
+ constructor();
4263
+ }
2536
4264
  /**
2537
4265
  * Parse-time validation lives in @opengeni/contracts; this verifier binds a
2538
- * present snapshot to the current executable definition and exact turn row.
2539
- * Any deployment/provider drift fails before a provider or compaction call.
4266
+ * serving snapshot to its executable definition and mapped reasoning. This
4267
+ * does not activate placement or replace the immutable accepted-turn policy.
4268
+ */
4269
+ export declare function assertTurnServingPolicyMatchesConfigV1(settings: Settings, revision: TurnServingPolicyV1, acceptedPolicy: TurnExecutionPolicyV1): ReturnType<typeof assertTurnExecutionPolicyMatchesConfigV1>;
4270
+ /** Bind an accepted snapshot to the current definition and exact turn row.
4271
+ * Non-additive executable drift fails before a provider or compaction call.
2540
4272
  */
2541
4273
  export declare function assertTurnExecutionPolicyMatchesConfigV1(settings: Settings, policy: TurnExecutionPolicyV1, expected: {
2542
4274
  modelId: string;
@@ -2554,6 +4286,13 @@ export declare function assertTurnExecutionPolicyMatchesConfigV1(settings: Setti
2554
4286
  * complete schedule, and always replace the lower-precedence schedule.
2555
4287
  */
2556
4288
  export declare function configuredModelPricingSchedules(settings: Settings): Record<string, ModelPricingScheduleV1>;
4289
+ /**
4290
+ * Insights list-price metadata, including reviewed namespaced provider routes.
4291
+ * Kept separate from debit/catalog pricing: adding a comparison must not change
4292
+ * an accepted turn's frozen execution-definition hash or payer classification.
4293
+ * Inline registry and explicit product-ID prices always win over projections.
4294
+ */
4295
+ export declare function configuredModelListPricingSchedules(settings: Settings): Record<string, ModelPricingScheduleV1>;
2557
4296
  /** Legacy flat projection: returns the default/below-threshold price. */
2558
4297
  export declare function configuredModelPricing(settings: Settings): Record<string, ModelPricing>;
2559
4298
  /** Select the per-provider-request price at an exact input-token threshold. */
@@ -2568,7 +4307,15 @@ export declare function contextInputBudgetTokens(settings: Pick<Settings, "conte
2568
4307
  * metadata is authoritative when present; deployment defaults remain the
2569
4308
  * fallback for models that do not declare their own limits.
2570
4309
  */
2571
- export declare function settingsWithResolvedModelContext(settings: Settings, model: Pick<ConfiguredModel, "contextWindowTokens" | "effectiveContextWindowTokens" | "autoCompactTokenLimit" | "toolOutputTruncationTokens">): Settings;
4310
+ export declare function settingsWithResolvedModelContext(settings: Settings, model: Pick<ConfiguredModel, "contextWindowTokens" | "effectiveContextWindowTokens" | "autoCompactTokenLimit" | "toolOutputTruncationTokens"> & {
4311
+ id?: string;
4312
+ }, workspaceSettings?: unknown, organizationDefaults?: Pick<OrganizationModelDefaults, "modelCompactionThresholds"> | null): Settings;
4313
+ /**
4314
+ * One policy projection for settings UI and all model-facing worker paths.
4315
+ * The workspace's own preference wins, then the organization's default for
4316
+ * the model, then the model's own default.
4317
+ */
4318
+ export declare function workspaceModelCompactionPolicy(settings: Settings, model: Pick<ConfiguredModel, "id" | "contextWindowTokens" | "effectiveContextWindowTokens" | "autoCompactTokenLimit">, workspaceSettings: unknown, organizationDefaults?: Pick<OrganizationModelDefaults, "modelCompactionThresholds"> | null): ModelCompactionPolicy;
2572
4319
  export declare function configuredStaticUsageLimits(settings: Settings): StaticUsageLimitsConfig;
2573
4320
  export declare function configuredEntitlements(settings: Settings): EntitlementsConfig;
2574
4321
  export declare function calculateModelUsageCostMicros(settings: Settings, model: string, usage: ModelUsageInput, options?: {
@@ -2577,21 +4324,44 @@ export declare function calculateModelUsageCostMicros(settings: Settings, model:
2577
4324
  export declare function calculateModelUsageCostBreakdown(settings: Settings, model: string, usage: ModelUsageInput, options?: {
2578
4325
  latencyMode?: LatencyMode;
2579
4326
  }): ModelUsageCostBreakdown;
4327
+ /** Provider-list/equivalent-credit comparison only; never debit authority. */
4328
+ export declare function calculateModelListUsageCostBreakdown(settings: Settings, model: string, usage: ModelUsageInput, options?: {
4329
+ latencyMode?: LatencyMode;
4330
+ }): ModelUsageCostBreakdown;
4331
+ /**
4332
+ * Forward-only list comparison snapshot for the model-call fact writer.
4333
+ * Callers must establish request price provenance (including geography/service
4334
+ * tier) and retain per-request counters. Unknown counters/TTL/modifiers yield
4335
+ * no class split, not invented zeros. Historical facts must not use this helper.
4336
+ * Native Claude details preserve cache_write_tokens_5m and cache_write_tokens_1h.
4337
+ */
4338
+ export declare function calculateModelListUsageCostSnapshot(settings: Settings, model: string, usage: ModelUsageInput, options?: {
4339
+ latencyMode?: LatencyMode;
4340
+ priceContextKnown?: boolean;
4341
+ }): ModelListUsageCostSnapshot;
2580
4342
  /**
2581
- * Convert AI Gateway's exact USD inference cost to OpenGeni credit micros and
4343
+ * Approximate class attribution of a previously recorded upstream list total.
4344
+ * Current reviewed rates are weights only: this never recomputes that total,
4345
+ * credits, or charges. Missing class counters/rates remain unknown. Historical
4346
+ * cache writes use the schedule's single TTL rate, not an exact TTL assertion.
4347
+ * Reasoning is already included in outputTokens and is never added again.
4348
+ */
4349
+ export declare function allocateRecordedModelListCostByClass(settings: Settings, model: string, usage: ModelUsageInput, recordedProviderCostMicros: number | null | undefined): ModelRecordedListCostAllocation;
4350
+ /**
4351
+ * Convert AI Gateway's exact USD inference cost to Opengeni credit micros and
2582
4352
  * apply the configured model margin. Decimal arithmetic is integer-only so a
2583
4353
  * sub-micro provider charge cannot be lost to floating-point rounding.
2584
4354
  */
2585
4355
  export declare function calculateGatewayReportedCostMicros(settings: Settings, model: string, inferenceCostUsd: string, options?: {
2586
4356
  inputTokens?: number;
2587
4357
  }): number;
2588
- /** Exact provider-reported Gateway cost without requiring an OpenGeni price schedule. */
4358
+ /** Exact provider-reported Gateway cost without requiring an Opengeni price schedule. */
2589
4359
  export declare function calculateGatewayReportedProviderCostMicros(inferenceCostUsd: string): number;
2590
4360
  export declare function calculateGatewayReportedCostBreakdown(settings: Settings, model: string, inferenceCostUsd: string, options?: {
2591
4361
  inputTokens?: number;
2592
4362
  }): ModelUsageCostBreakdown;
2593
4363
  /**
2594
- * Exact OpenGeni product price frozen before a managed video request starts.
4364
+ * Exact Opengeni product price frozen before a managed video request starts.
2595
4365
  * Gateway reporting is delayed for asynchronous video, so this deliberately
2596
4366
  * does not masquerade as provider-reported cost.
2597
4367
  */
@@ -2615,7 +4385,7 @@ export declare function environmentsEncryptionKeyBytes(settings: Settings): Uint
2615
4385
  */
2616
4386
  export declare function temporalConnectionOptions(settings: Settings): TemporalConnectionOptions;
2617
4387
  /**
2618
- * The connection `search_path` for OpenGeni's db handles + the managed-auth pool
4388
+ * The connection `search_path` for Opengeni's db handles + the managed-auth pool
2619
4389
  * (Step I, §7.8 runtime half). Returns `undefined` when `dbSchema` is unset
2620
4390
  * (standalone) so no `search_path` startup parameter is sent and the server
2621
4391
  * default (`public`) applies — byte-for-byte today's behavior. When `dbSchema`
@@ -2626,6 +4396,15 @@ export declare function temporalConnectionOptions(settings: Settings): TemporalC
2626
4396
  */
2627
4397
  export declare function dbSearchPath(settings: Pick<Settings, "dbSchema">): string | undefined;
2628
4398
  export declare function collectGitIdentityEnvironment(settings: Settings): Record<string, string>;
4399
+ /**
4400
+ * The manifest-env constants predicate (W1 secrets delivery, RM-3). A sandbox
4401
+ * manifest may carry only deployment constants: HOME, PATH, git identity and
4402
+ * askpass pointers, `OPENGENI_*` pointers, and the deployment allowlist
4403
+ * (`sandboxEnvironmentVariableNames`). User secrets never qualify: they are
4404
+ * resolved per command from `{{secret:…}}` references. Used by `buildManifest`
4405
+ * and the persisted-envelope strip as a defensive filter.
4406
+ */
4407
+ export declare function sandboxManifestEnvironmentNamePredicate(settings: Settings): (name: string) => boolean;
2629
4408
  /**
2630
4409
  * The STABLE run-scoped sandbox environment: the subset of a run's box-manifest
2631
4410
  * environment that is IDENTICAL whether the box is first warmed by the worker
@@ -2637,9 +4416,9 @@ export declare function collectGitIdentityEnvironment(settings: Settings): Recor
2637
4416
  * manifest lacks or carries a different value for).
2638
4417
  *
2639
4418
  * Precedence (lowest → highest): deployment allowlist (`collectSandboxEnvironment`)
2640
- * < git identity (`collectGitIdentityEnvironment`) < the session's attached
2641
- * workspace environment < the backend-aware HOME default. Reserved-name validation
2642
- * at write time keeps workspace values from colliding with platform entries.
4419
+ * < git identity (`collectGitIdentityEnvironment`) < the backend-aware HOME default.
4420
+ * The manifest holds deployment constants only: user secrets never ride it.
4421
+ * They are resolved per command from `{{secret:…}}` references (W1 delivery).
2643
4422
  *
2644
4423
  * DELIBERATELY EXCLUDES the per-run, ROTATING git provider token VALUES that
2645
4424
  * `sandboxEnvironmentForRun` mints when a repository resource is
@@ -2655,10 +4434,9 @@ export declare function collectGitIdentityEnvironment(settings: Settings): Recor
2655
4434
  * the platform never mints or seeds git provider tokens there. The attach
2656
4435
  * surfaces have only the `Session` (no repo resources) and so never seed a token,
2657
4436
  * but unwritten files simply yield no auth; the BLOCKING attach-vs-turn error
2658
- * this helper fixes is for the common (no-repo) and workspace-environment-attached
2659
- * provisioned-box cases.
4437
+ * this helper fixes is for the common (no-repo) provisioned-box case.
2660
4438
  */
2661
- export declare function stableSandboxEnvironmentForRun(settings: Settings, workspaceEnvironment?: Record<string, string>, options?: {
4439
+ export declare function stableSandboxEnvironmentForRun(settings: Settings, options?: {
2662
4440
  workspaceId?: string;
2663
4441
  }): Record<string, string>;
2664
4442
  /**
@@ -2732,6 +4510,13 @@ export declare function sandboxWarmRateMicrosPerSecond(settings: Settings, backe
2732
4510
  */
2733
4511
  export declare function parseModelProvidersJson(raw: string): RegistryProvider[];
2734
4512
  export declare function parseIntegrationsOauthClientsJson(raw: string | undefined): Record<string, IntegrationOAuthClientConfig>;
4513
+ /**
4514
+ * The operator-registered client for one authorization server, matched by
4515
+ * exact issuer/URL key first and then trailing-slash-insensitively. The OAuth
4516
+ * start flow and the connector catalog's connectability projection share this
4517
+ * so a catalog row is offered exactly when a start would find a client.
4518
+ */
4519
+ export declare function findIntegrationsOauthClient(configured: Readonly<Record<string, IntegrationOAuthClientConfig>>, candidates: readonly string[]): IntegrationOAuthClientConfig | null;
2735
4520
  export declare const SocialOAuthClientConfigSchema: z.ZodObject<{
2736
4521
  clientId: z.ZodString;
2737
4522
  clientSecret: z.ZodOptional<z.ZodString>;
@@ -2742,12 +4527,18 @@ export declare function parseSocialOauthClientsJson(raw: string | undefined): Pa
2742
4527
  export declare function parseStaticUsageLimitsJson(raw: string): StaticUsageLimitsConfig;
2743
4528
  export declare function parseStaticEntitlementsJson(raw: string): EntitlementsConfig;
2744
4529
  /**
2745
- * The sandbox/external base URL of OpenGeni's first-party MCP endpoint, as a
4530
+ * Setup bound for Opengeni's own MCP servers. They are the deployment's API,
4531
+ * which is briefly slow while it restarts or is under load; the client's
4532
+ * 5-second default turned that into failed turns. Tool calls are unaffected.
4533
+ */
4534
+ export declare const FIRST_PARTY_MCP_SETUP_TIMEOUT_MS = 30000;
4535
+ /**
4536
+ * The sandbox/external base URL of Opengeni's first-party MCP endpoint, as a
2746
4537
  * `{workspaceId}` template. Codemode and remote placements use this route.
2747
4538
  *
2748
4539
  * BINDING CONTRACT (`opengeniMcpUrl`):
2749
4540
  * - STANDALONE (unset): falls back to the loopback default.
2750
- * - EMBEDDED / MOUNTED (must set): when OpenGeni's API is mounted as a host
4541
+ * - EMBEDDED / MOUNTED (must set): when Opengeni's API is mounted as a host
2751
4542
  * sub-app under a prefix (e.g. `https://host/og/v1/...`), the loopback
2752
4543
  * default is WRONG — the worker runs in the host process and `127.0.0.1:
2753
4544
  * ${apiPort}` is not where the mounted, sandbox-routable MCP lives. The host
@@ -2765,6 +4556,38 @@ export declare function firstPartyMcpInternalBaseUrl(settings: Settings): string
2765
4556
  export declare function firstPartyMcpWorkspaceUrl(settings: Settings, workspaceId: string): string;
2766
4557
  export declare function firstPartyMcpInternalWorkspaceUrl(settings: Settings, workspaceId: string): string;
2767
4558
  export declare function codemodeWorkspaceUrl(settings: Settings, workspaceId: string): string;
4559
+ export type TrustedProxyCidr = {
4560
+ address: string;
4561
+ prefix: number;
4562
+ family: "ipv4" | "ipv6";
4563
+ };
4564
+ /**
4565
+ * Parse `OPENGENI_API_TRUSTED_PROXY_CIDRS`: comma-separated IPv4/IPv6 CIDRs or
4566
+ * single addresses. Throws on any malformed entry so a typo can never widen or
4567
+ * silently disable the trusted proxy set.
4568
+ */
4569
+ export declare function trustedProxyCidrEntries(raw: string): TrustedProxyCidr[];
4570
+ /**
4571
+ * Parse `OPENGENI_LOCAL_ALLOWED_ORIGINS`: comma-separated exact browser origins
4572
+ * (`http(s)://host[:port]`, no path, query, credentials, or wildcard). Throws on
4573
+ * any malformed entry so a typo can never widen or silently disable the local
4574
+ * browser boundary.
4575
+ */
4576
+ export declare function localAllowedOriginEntries(raw: string | undefined): string[];
4577
+ /**
4578
+ * Local development only: whether a normalized API path is one a sandbox calls
4579
+ * (Codemode, first-party MCP, and the personal Git broker). The Linux Docker
4580
+ * sandbox route relays only these, and the local API serves only these on the
4581
+ * addresses that only sandboxes use (see `apps/api/src/http/local-browser-boundary.ts`).
4582
+ */
4583
+ export declare function localSandboxApiRouteAllowed(pathname: string): boolean;
4584
+ /**
4585
+ * Published Sites serve untrusted HTML, so their domain must not hold or sit
4586
+ * inside the console or API hosts: a Site could otherwise read or set their
4587
+ * cookies. A separate registrable domain is required (see
4588
+ * docs/published-sites.md); this catches the nesting a host check can see.
4589
+ */
4590
+ export declare function validateSitesDomain(settings: Pick<Settings, "sitesDomain" | "publicBaseUrl" | "webBaseUrl">): void;
2768
4591
  /** Validate one fully resolved, secret-bearing executable catalog. */
2769
4592
  export declare function validateModelCatalogSettings(settings: Settings, source?: NodeJS.ProcessEnv): ConfiguredModel[];
2770
4593
  /**
@@ -2830,3 +4653,39 @@ export interface NatsControlPlaneAuth {
2830
4653
  password: string;
2831
4654
  }
2832
4655
  export declare function resolveNatsControlPlaneAuth(settings: Pick<Settings, "selfhostedNatsControlUser" | "selfhostedNatsControlPassword">): NatsControlPlaneAuth | null;
4656
+ /** Image references a workspace may select as its default sandbox image. */
4657
+ export declare function sandboxImageAllowlist(settings: Pick<Settings, "sandboxImageAllowlist">): string[];
4658
+ /** Native Claude connections reuse the encrypted workspace and organization boundaries. */
4659
+ export declare const CLAUDE_CONNECTION_KINDS: readonly ["anthropic", "claude_subscription"];
4660
+ export type ClaudeConnectionKind = (typeof CLAUDE_CONNECTION_KINDS)[number];
4661
+ export declare function claudeNativeModelProfile(upstreamModelId: string): Readonly<{
4662
+ efforts: readonly ReasoningEffort[];
4663
+ defaultEffort: ReasoningEffort | null;
4664
+ contextWindowTokens: number;
4665
+ maxOutputTokens: number;
4666
+ autoCompactTokenLimit?: number;
4667
+ prefixBoundThinking?: boolean;
4668
+ }> | undefined;
4669
+ /**
4670
+ * Models a new Claude connection offers without anyone adding them. Seeded
4671
+ * once per scope and connection kind, only when that scope never configured
4672
+ * Claude models; a removed model stays removed.
4673
+ */
4674
+ export declare const CLAUDE_DEFAULT_CONNECTION_MODEL_IDS: readonly ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"];
4675
+ export declare function claudeProviderId(kind: ClaudeConnectionKind, scope?: "workspace" | "organization"): string;
4676
+ export type ClaudeConnectionCatalog = Partial<Record<ClaudeConnectionKind, {
4677
+ active?: boolean;
4678
+ models: readonly {
4679
+ upstreamModelId: string;
4680
+ label?: string | null;
4681
+ }[];
4682
+ }>>;
4683
+ export declare function withClaudeConnectionCatalog(settings: Settings, connections: ClaudeConnectionCatalog, scope?: "workspace" | "organization"): Settings;
4684
+ export declare function withClaudeConnectionCredential(settings: Settings, kind: ClaudeConnectionKind, credential: string, scope?: "workspace" | "organization", credentialBinding?: {
4685
+ connectionId: string;
4686
+ credentialVersion: number;
4687
+ }): Settings;
4688
+ export * from "./claude-subscription-usage.js";
4689
+ export * from "./claude-subscription-oauth.js";
4690
+ export * from "./subscription-account-selection.js";
4691
+ export * from "./claude-subscription-capacity.js";