@opengeni/config 0.12.1 → 0.16.1
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 +362 -12
- package/dist/index.js +433 -63
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/index.ts +616 -69
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1 } from "@opengeni/contracts";
|
|
1
|
+
import { Entitlements, LatencyMode, ReasoningEffort, SandboxBackend, StaticUsageLimits, TurnExecutionPolicyV1, type TurnExecutionLatencyModeSourceV1, type TurnExecutionModelSourceV1, type TurnExecutionReasoningSourceV1, type VideoGenerationResolution, type FirstPartyMcpToolName as FirstPartyMcpToolNameType } from "@opengeni/contracts";
|
|
2
|
+
export { XAI_SUBSCRIPTION_MODEL_ID_PREFIX } from "@opengeni/xai-subscription";
|
|
2
3
|
import { z } from "zod";
|
|
4
|
+
export declare const SANDBOX_ARCHIVE_CAPTURE_MAX_TIMEOUT_MS: number;
|
|
5
|
+
export declare const SANDBOX_ARCHIVE_CAPTURE_SETTLEMENT_GRACE_MS = 10000;
|
|
6
|
+
export declare const SANDBOX_SNAPSHOT_MAX_TIMEOUT_MS: number;
|
|
7
|
+
export declare const SANDBOX_LIFECYCLE_TRANSITION_MAX_WAIT_MS: number;
|
|
8
|
+
export declare const SANDBOX_LIFECYCLE_RETRY_HANDOFF_GRACE_MS = 10000;
|
|
3
9
|
export declare const sandboxPreparationProfiles: Record<string, {
|
|
4
10
|
env: string[];
|
|
5
11
|
hooks: string[];
|
|
@@ -84,6 +90,9 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
84
90
|
turnWorkerMaxConcurrentTurns: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
85
91
|
turnWorkerTargetCpuUsage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
86
92
|
turnWorkerTargetMemoryUsage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
93
|
+
turnWorkerEmergencyMemoryUsage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
94
|
+
turnWorkerMemoryGuardIntervalMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
95
|
+
turnWorkerMemoryGuardSustainMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
87
96
|
observabilityStructuredLogs: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
88
97
|
observabilityMetricsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
89
98
|
observabilityOtlpEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -121,21 +130,280 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
121
130
|
staticEntitlementsJson: z.ZodDefault<z.ZodString>;
|
|
122
131
|
staticUsageLimitsJson: z.ZodDefault<z.ZodString>;
|
|
123
132
|
delegationSecret: z.ZodOptional<z.ZodString>;
|
|
133
|
+
defaultFirstPartyMcpTools: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
134
|
+
artifacts_create: "artifacts_create";
|
|
135
|
+
artifacts_get_source: "artifacts_get_source";
|
|
136
|
+
artifacts_list: "artifacts_list";
|
|
137
|
+
artifacts_publish: "artifacts_publish";
|
|
138
|
+
artifacts_rollback: "artifacts_rollback";
|
|
139
|
+
atlassian_get: "atlassian_get";
|
|
140
|
+
atlassian_search: "atlassian_search";
|
|
141
|
+
atlassian_sources_list: "atlassian_sources_list";
|
|
142
|
+
browser_act: "browser_act";
|
|
143
|
+
browser_auth: "browser_auth";
|
|
144
|
+
browser_clipboard: "browser_clipboard";
|
|
145
|
+
browser_debug: "browser_debug";
|
|
146
|
+
browser_identity: "browser_identity";
|
|
147
|
+
browser_lifecycle: "browser_lifecycle";
|
|
148
|
+
browser_observe: "browser_observe";
|
|
149
|
+
browser_open: "browser_open";
|
|
150
|
+
browser_publish: "browser_publish";
|
|
151
|
+
browser_tabs: "browser_tabs";
|
|
152
|
+
capability_authorization_request: "capability_authorization_request";
|
|
153
|
+
capability_catalog_search: "capability_catalog_search";
|
|
154
|
+
computer_act: "computer_act";
|
|
155
|
+
computer_clipboard: "computer_clipboard";
|
|
156
|
+
computer_lifecycle: "computer_lifecycle";
|
|
157
|
+
computer_observe: "computer_observe";
|
|
158
|
+
computer_open: "computer_open";
|
|
159
|
+
computer_targets: "computer_targets";
|
|
160
|
+
connected_machine_remove: "connected_machine_remove";
|
|
161
|
+
editable_artifact_apply: "editable_artifact_apply";
|
|
162
|
+
editable_artifact_create: "editable_artifact_create";
|
|
163
|
+
editable_artifact_export: "editable_artifact_export";
|
|
164
|
+
editable_artifact_export_status: "editable_artifact_export_status";
|
|
165
|
+
editable_artifact_get: "editable_artifact_get";
|
|
166
|
+
editable_artifact_import: "editable_artifact_import";
|
|
167
|
+
editable_artifact_inspect: "editable_artifact_inspect";
|
|
168
|
+
editable_artifact_list: "editable_artifact_list";
|
|
169
|
+
environment_list: "environment_list";
|
|
170
|
+
environment_set_variable: "environment_set_variable";
|
|
171
|
+
fiken_bank_accounts_list: "fiken_bank_accounts_list";
|
|
172
|
+
fiken_companies_list: "fiken_companies_list";
|
|
173
|
+
fiken_contact_create: "fiken_contact_create";
|
|
174
|
+
fiken_contacts_list: "fiken_contacts_list";
|
|
175
|
+
fiken_invoice_draft_create: "fiken_invoice_draft_create";
|
|
176
|
+
fiken_invoice_get: "fiken_invoice_get";
|
|
177
|
+
fiken_invoices_list: "fiken_invoices_list";
|
|
178
|
+
fiken_products_list: "fiken_products_list";
|
|
179
|
+
fiken_purchases_list: "fiken_purchases_list";
|
|
180
|
+
fiken_sales_list: "fiken_sales_list";
|
|
181
|
+
github_connect_link: "github_connect_link";
|
|
182
|
+
github_repositories_list: "github_repositories_list";
|
|
183
|
+
goal_complete: "goal_complete";
|
|
184
|
+
goal_pause: "goal_pause";
|
|
185
|
+
goal_progress: "goal_progress";
|
|
186
|
+
goal_set: "goal_set";
|
|
187
|
+
goal_update: "goal_update";
|
|
188
|
+
interaction_discover: "interaction_discover";
|
|
189
|
+
interaction_request_human: "interaction_request_human";
|
|
190
|
+
memory_correct: "memory_correct";
|
|
191
|
+
memory_save: "memory_save";
|
|
192
|
+
memory_search: "memory_search";
|
|
193
|
+
preference_registry_get: "preference_registry_get";
|
|
194
|
+
preference_registry_summary: "preference_registry_summary";
|
|
195
|
+
reddit_accounts_list: "reddit_accounts_list";
|
|
196
|
+
reddit_mentions_live: "reddit_mentions_live";
|
|
197
|
+
reddit_post_reply: "reddit_post_reply";
|
|
198
|
+
reddit_posts_sync: "reddit_posts_sync";
|
|
199
|
+
reddit_search_live: "reddit_search_live";
|
|
200
|
+
reddit_thread_fetch: "reddit_thread_fetch";
|
|
201
|
+
rig_get: "rig_get";
|
|
202
|
+
rig_list: "rig_list";
|
|
203
|
+
rig_promote: "rig_promote";
|
|
204
|
+
rig_propose_change: "rig_propose_change";
|
|
205
|
+
rig_verify: "rig_verify";
|
|
206
|
+
run_on: "run_on";
|
|
207
|
+
sandbox_attach: "sandbox_attach";
|
|
208
|
+
sandbox_provision: "sandbox_provision";
|
|
209
|
+
sandbox_swap: "sandbox_swap";
|
|
210
|
+
sandboxes_list: "sandboxes_list";
|
|
211
|
+
scheduled_task_runs_list: "scheduled_task_runs_list";
|
|
212
|
+
scheduled_tasks_create: "scheduled_tasks_create";
|
|
213
|
+
scheduled_tasks_delete: "scheduled_tasks_delete";
|
|
214
|
+
scheduled_tasks_get: "scheduled_tasks_get";
|
|
215
|
+
scheduled_tasks_list: "scheduled_tasks_list";
|
|
216
|
+
scheduled_tasks_pause: "scheduled_tasks_pause";
|
|
217
|
+
scheduled_tasks_resume: "scheduled_tasks_resume";
|
|
218
|
+
scheduled_tasks_trigger: "scheduled_tasks_trigger";
|
|
219
|
+
scheduled_tasks_update: "scheduled_tasks_update";
|
|
220
|
+
session_create: "session_create";
|
|
221
|
+
session_events: "session_events";
|
|
222
|
+
session_get: "session_get";
|
|
223
|
+
session_pause: "session_pause";
|
|
224
|
+
session_resume: "session_resume";
|
|
225
|
+
session_send_message: "session_send_message";
|
|
226
|
+
session_steer: "session_steer";
|
|
227
|
+
sessions_list: "sessions_list";
|
|
228
|
+
set_other_session_title: "set_other_session_title";
|
|
229
|
+
set_session_title: "set_session_title";
|
|
230
|
+
slack_bot_channel_history: "slack_bot_channel_history";
|
|
231
|
+
slack_bot_delete_message: "slack_bot_delete_message";
|
|
232
|
+
slack_bot_file_content: "slack_bot_file_content";
|
|
233
|
+
slack_bot_file_info: "slack_bot_file_info";
|
|
234
|
+
slack_bot_list_channels: "slack_bot_list_channels";
|
|
235
|
+
slack_bot_list_files: "slack_bot_list_files";
|
|
236
|
+
slack_bot_list_users: "slack_bot_list_users";
|
|
237
|
+
slack_bot_post_message: "slack_bot_post_message";
|
|
238
|
+
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
239
|
+
social_connections_list: "social_connections_list";
|
|
240
|
+
social_daily_analysis_context: "social_daily_analysis_context";
|
|
241
|
+
social_mentions_live: "social_mentions_live";
|
|
242
|
+
social_post_reply: "social_post_reply";
|
|
243
|
+
social_posts_recent: "social_posts_recent";
|
|
244
|
+
social_posts_sync: "social_posts_sync";
|
|
245
|
+
social_search_live: "social_search_live";
|
|
246
|
+
social_thread_fetch: "social_thread_fetch";
|
|
247
|
+
task_note_archive: "task_note_archive";
|
|
248
|
+
task_note_save: "task_note_save";
|
|
249
|
+
task_notes_list: "task_notes_list";
|
|
250
|
+
variable_set_get_variable: "variable_set_get_variable";
|
|
251
|
+
variable_set_list: "variable_set_list";
|
|
252
|
+
variable_set_set_variable: "variable_set_set_variable";
|
|
253
|
+
x_accounts_list: "x_accounts_list";
|
|
254
|
+
x_mentions_live: "x_mentions_live";
|
|
255
|
+
x_post_reply: "x_post_reply";
|
|
256
|
+
x_posts_sync: "x_posts_sync";
|
|
257
|
+
x_search_live: "x_search_live";
|
|
258
|
+
x_thread_fetch: "x_thread_fetch";
|
|
259
|
+
}>>>>;
|
|
260
|
+
allowedFirstPartyMcpTools: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
261
|
+
artifacts_create: "artifacts_create";
|
|
262
|
+
artifacts_get_source: "artifacts_get_source";
|
|
263
|
+
artifacts_list: "artifacts_list";
|
|
264
|
+
artifacts_publish: "artifacts_publish";
|
|
265
|
+
artifacts_rollback: "artifacts_rollback";
|
|
266
|
+
atlassian_get: "atlassian_get";
|
|
267
|
+
atlassian_search: "atlassian_search";
|
|
268
|
+
atlassian_sources_list: "atlassian_sources_list";
|
|
269
|
+
browser_act: "browser_act";
|
|
270
|
+
browser_auth: "browser_auth";
|
|
271
|
+
browser_clipboard: "browser_clipboard";
|
|
272
|
+
browser_debug: "browser_debug";
|
|
273
|
+
browser_identity: "browser_identity";
|
|
274
|
+
browser_lifecycle: "browser_lifecycle";
|
|
275
|
+
browser_observe: "browser_observe";
|
|
276
|
+
browser_open: "browser_open";
|
|
277
|
+
browser_publish: "browser_publish";
|
|
278
|
+
browser_tabs: "browser_tabs";
|
|
279
|
+
capability_authorization_request: "capability_authorization_request";
|
|
280
|
+
capability_catalog_search: "capability_catalog_search";
|
|
281
|
+
computer_act: "computer_act";
|
|
282
|
+
computer_clipboard: "computer_clipboard";
|
|
283
|
+
computer_lifecycle: "computer_lifecycle";
|
|
284
|
+
computer_observe: "computer_observe";
|
|
285
|
+
computer_open: "computer_open";
|
|
286
|
+
computer_targets: "computer_targets";
|
|
287
|
+
connected_machine_remove: "connected_machine_remove";
|
|
288
|
+
editable_artifact_apply: "editable_artifact_apply";
|
|
289
|
+
editable_artifact_create: "editable_artifact_create";
|
|
290
|
+
editable_artifact_export: "editable_artifact_export";
|
|
291
|
+
editable_artifact_export_status: "editable_artifact_export_status";
|
|
292
|
+
editable_artifact_get: "editable_artifact_get";
|
|
293
|
+
editable_artifact_import: "editable_artifact_import";
|
|
294
|
+
editable_artifact_inspect: "editable_artifact_inspect";
|
|
295
|
+
editable_artifact_list: "editable_artifact_list";
|
|
296
|
+
environment_list: "environment_list";
|
|
297
|
+
environment_set_variable: "environment_set_variable";
|
|
298
|
+
fiken_bank_accounts_list: "fiken_bank_accounts_list";
|
|
299
|
+
fiken_companies_list: "fiken_companies_list";
|
|
300
|
+
fiken_contact_create: "fiken_contact_create";
|
|
301
|
+
fiken_contacts_list: "fiken_contacts_list";
|
|
302
|
+
fiken_invoice_draft_create: "fiken_invoice_draft_create";
|
|
303
|
+
fiken_invoice_get: "fiken_invoice_get";
|
|
304
|
+
fiken_invoices_list: "fiken_invoices_list";
|
|
305
|
+
fiken_products_list: "fiken_products_list";
|
|
306
|
+
fiken_purchases_list: "fiken_purchases_list";
|
|
307
|
+
fiken_sales_list: "fiken_sales_list";
|
|
308
|
+
github_connect_link: "github_connect_link";
|
|
309
|
+
github_repositories_list: "github_repositories_list";
|
|
310
|
+
goal_complete: "goal_complete";
|
|
311
|
+
goal_pause: "goal_pause";
|
|
312
|
+
goal_progress: "goal_progress";
|
|
313
|
+
goal_set: "goal_set";
|
|
314
|
+
goal_update: "goal_update";
|
|
315
|
+
interaction_discover: "interaction_discover";
|
|
316
|
+
interaction_request_human: "interaction_request_human";
|
|
317
|
+
memory_correct: "memory_correct";
|
|
318
|
+
memory_save: "memory_save";
|
|
319
|
+
memory_search: "memory_search";
|
|
320
|
+
preference_registry_get: "preference_registry_get";
|
|
321
|
+
preference_registry_summary: "preference_registry_summary";
|
|
322
|
+
reddit_accounts_list: "reddit_accounts_list";
|
|
323
|
+
reddit_mentions_live: "reddit_mentions_live";
|
|
324
|
+
reddit_post_reply: "reddit_post_reply";
|
|
325
|
+
reddit_posts_sync: "reddit_posts_sync";
|
|
326
|
+
reddit_search_live: "reddit_search_live";
|
|
327
|
+
reddit_thread_fetch: "reddit_thread_fetch";
|
|
328
|
+
rig_get: "rig_get";
|
|
329
|
+
rig_list: "rig_list";
|
|
330
|
+
rig_promote: "rig_promote";
|
|
331
|
+
rig_propose_change: "rig_propose_change";
|
|
332
|
+
rig_verify: "rig_verify";
|
|
333
|
+
run_on: "run_on";
|
|
334
|
+
sandbox_attach: "sandbox_attach";
|
|
335
|
+
sandbox_provision: "sandbox_provision";
|
|
336
|
+
sandbox_swap: "sandbox_swap";
|
|
337
|
+
sandboxes_list: "sandboxes_list";
|
|
338
|
+
scheduled_task_runs_list: "scheduled_task_runs_list";
|
|
339
|
+
scheduled_tasks_create: "scheduled_tasks_create";
|
|
340
|
+
scheduled_tasks_delete: "scheduled_tasks_delete";
|
|
341
|
+
scheduled_tasks_get: "scheduled_tasks_get";
|
|
342
|
+
scheduled_tasks_list: "scheduled_tasks_list";
|
|
343
|
+
scheduled_tasks_pause: "scheduled_tasks_pause";
|
|
344
|
+
scheduled_tasks_resume: "scheduled_tasks_resume";
|
|
345
|
+
scheduled_tasks_trigger: "scheduled_tasks_trigger";
|
|
346
|
+
scheduled_tasks_update: "scheduled_tasks_update";
|
|
347
|
+
session_create: "session_create";
|
|
348
|
+
session_events: "session_events";
|
|
349
|
+
session_get: "session_get";
|
|
350
|
+
session_pause: "session_pause";
|
|
351
|
+
session_resume: "session_resume";
|
|
352
|
+
session_send_message: "session_send_message";
|
|
353
|
+
session_steer: "session_steer";
|
|
354
|
+
sessions_list: "sessions_list";
|
|
355
|
+
set_other_session_title: "set_other_session_title";
|
|
356
|
+
set_session_title: "set_session_title";
|
|
357
|
+
slack_bot_channel_history: "slack_bot_channel_history";
|
|
358
|
+
slack_bot_delete_message: "slack_bot_delete_message";
|
|
359
|
+
slack_bot_file_content: "slack_bot_file_content";
|
|
360
|
+
slack_bot_file_info: "slack_bot_file_info";
|
|
361
|
+
slack_bot_list_channels: "slack_bot_list_channels";
|
|
362
|
+
slack_bot_list_files: "slack_bot_list_files";
|
|
363
|
+
slack_bot_list_users: "slack_bot_list_users";
|
|
364
|
+
slack_bot_post_message: "slack_bot_post_message";
|
|
365
|
+
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
366
|
+
social_connections_list: "social_connections_list";
|
|
367
|
+
social_daily_analysis_context: "social_daily_analysis_context";
|
|
368
|
+
social_mentions_live: "social_mentions_live";
|
|
369
|
+
social_post_reply: "social_post_reply";
|
|
370
|
+
social_posts_recent: "social_posts_recent";
|
|
371
|
+
social_posts_sync: "social_posts_sync";
|
|
372
|
+
social_search_live: "social_search_live";
|
|
373
|
+
social_thread_fetch: "social_thread_fetch";
|
|
374
|
+
task_note_archive: "task_note_archive";
|
|
375
|
+
task_note_save: "task_note_save";
|
|
376
|
+
task_notes_list: "task_notes_list";
|
|
377
|
+
variable_set_get_variable: "variable_set_get_variable";
|
|
378
|
+
variable_set_list: "variable_set_list";
|
|
379
|
+
variable_set_set_variable: "variable_set_set_variable";
|
|
380
|
+
x_accounts_list: "x_accounts_list";
|
|
381
|
+
x_mentions_live: "x_mentions_live";
|
|
382
|
+
x_post_reply: "x_post_reply";
|
|
383
|
+
x_posts_sync: "x_posts_sync";
|
|
384
|
+
x_search_live: "x_search_live";
|
|
385
|
+
x_thread_fetch: "x_thread_fetch";
|
|
386
|
+
}>>>>;
|
|
124
387
|
streamTokenSecret: z.ZodOptional<z.ZodString>;
|
|
125
388
|
streamControlEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
126
|
-
|
|
127
|
-
toolspaceMaxCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
389
|
+
codemodeMaxCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
128
390
|
ogtoolPackageSpec: z.ZodOptional<z.ZodString>;
|
|
129
391
|
environmentsEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
130
392
|
integrationsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
131
393
|
integrationsStateSecret: z.ZodOptional<z.ZodString>;
|
|
132
394
|
integrationsAllowPrivateNetworkTargets: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
133
395
|
integrationsOauthClientsJson: z.ZodDefault<z.ZodString>;
|
|
396
|
+
gmailRestAdapterEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
134
397
|
slackClientId: z.ZodOptional<z.ZodString>;
|
|
135
398
|
slackClientSecret: z.ZodOptional<z.ZodString>;
|
|
136
399
|
slackSigningSecret: z.ZodOptional<z.ZodString>;
|
|
137
400
|
googleDriveClientId: z.ZodOptional<z.ZodString>;
|
|
138
401
|
googleDriveClientSecret: z.ZodOptional<z.ZodString>;
|
|
402
|
+
fikenClientId: z.ZodOptional<z.ZodString>;
|
|
403
|
+
fikenClientSecret: z.ZodOptional<z.ZodString>;
|
|
404
|
+
googleDriveWorkspaceEventsEnabled: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
405
|
+
atlassianClientId: z.ZodOptional<z.ZodString>;
|
|
406
|
+
atlassianClientSecret: z.ZodOptional<z.ZodString>;
|
|
139
407
|
maxNestedAgentDepth: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
140
408
|
socialOauthClientsJson: z.ZodDefault<z.ZodString>;
|
|
141
409
|
goalMaxAutoContinuations: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -165,6 +433,16 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
165
433
|
openaiModel: z.ZodDefault<z.ZodString>;
|
|
166
434
|
openaiAllowedModels: z.ZodDefault<z.ZodString>;
|
|
167
435
|
vercelAiGatewayApiKey: z.ZodOptional<z.ZodString>;
|
|
436
|
+
imageGenerationModel: z.ZodDefault<z.ZodString>;
|
|
437
|
+
videoGenerationPollIntervalMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
438
|
+
videoGenerationRecoveryDeadlineMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
439
|
+
videoGenerationReferenceUrlTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
440
|
+
videoGenerationMaxConcurrentPerWorkspace: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
441
|
+
videoGenerationWorkspaceQuotaBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
442
|
+
videoGenerationTempDirectory: z.ZodDefault<z.ZodString>;
|
|
443
|
+
videoGenerationFfprobePath: z.ZodDefault<z.ZodString>;
|
|
444
|
+
videoGenerationCredit480pMicrosPerSecond: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
445
|
+
videoGenerationCredit720pMicrosPerSecond: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
168
446
|
voiceInputMaxDurationSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
169
447
|
voiceInputMaxSizeBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
170
448
|
voiceInputResumableEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
@@ -188,9 +466,11 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
188
466
|
modelPricingJson: z.ZodDefault<z.ZodString>;
|
|
189
467
|
modelProvidersJson: z.ZodDefault<z.ZodString>;
|
|
190
468
|
codexSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
469
|
+
supergrokSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
191
470
|
codexConnectedAppsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
192
471
|
codexProductSku: z.ZodOptional<z.ZodString>;
|
|
193
472
|
codexToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
473
|
+
lazyToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
194
474
|
codexCredentialLeasingEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
195
475
|
codexFleetPolicyShadowEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
196
476
|
codexRotationNearExhaustionPct: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -237,6 +517,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
237
517
|
vercel: "vercel";
|
|
238
518
|
}>>;
|
|
239
519
|
dockerImage: z.ZodDefault<z.ZodString>;
|
|
520
|
+
sandboxArtifactRuntimeEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
240
521
|
dockerExposedPorts: z.ZodDefault<z.ZodString>;
|
|
241
522
|
dockerNetwork: z.ZodOptional<z.ZodString>;
|
|
242
523
|
dockerWorkspaceBaseDir: z.ZodOptional<z.ZodString>;
|
|
@@ -306,6 +587,11 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
306
587
|
blaxelTtl: z.ZodOptional<z.ZodString>;
|
|
307
588
|
cloudflareWorkerUrl: z.ZodOptional<z.ZodString>;
|
|
308
589
|
cloudflareApiKey: z.ZodOptional<z.ZodString>;
|
|
590
|
+
browserbaseApiKey: z.ZodOptional<z.ZodString>;
|
|
591
|
+
kernelApiKey: z.ZodOptional<z.ZodString>;
|
|
592
|
+
kernelEndpoint: z.ZodOptional<z.ZodString>;
|
|
593
|
+
kernelBrowserTimeoutSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
594
|
+
kernelBrowserStealth: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
309
595
|
vercelToken: z.ZodOptional<z.ZodString>;
|
|
310
596
|
vercelProjectId: z.ZodOptional<z.ZodString>;
|
|
311
597
|
vercelTeamId: z.ZodOptional<z.ZodString>;
|
|
@@ -330,6 +616,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
330
616
|
sandboxSelfhostedControlTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
331
617
|
sandboxLeaseReaperPeriodMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
332
618
|
sandboxViewerHolderTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
619
|
+
sandboxInteractionHolderTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
333
620
|
sandboxIdleGraceMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
334
621
|
sandboxSnapshotIntervalMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
335
622
|
sandboxSnapshotTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -442,7 +729,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
442
729
|
export type Settings = z.infer<typeof SettingsSchema>;
|
|
443
730
|
export type McpServerConfig = Settings["mcpServers"][number];
|
|
444
731
|
/** Declarative voice-input transcription provider ids. */
|
|
445
|
-
export type VoiceInputProviderId = "openai" | "azure-openai" | "codex-subscription";
|
|
732
|
+
export type VoiceInputProviderId = "openai" | "azure-openai" | "codex-subscription" | "supergrok-subscription";
|
|
446
733
|
export type VoiceInputProviderConfig = {
|
|
447
734
|
id: "openai";
|
|
448
735
|
kind: "openai";
|
|
@@ -461,6 +748,10 @@ export type VoiceInputProviderConfig = {
|
|
|
461
748
|
id: "codex-subscription";
|
|
462
749
|
kind: "codex-subscription";
|
|
463
750
|
experimental: true;
|
|
751
|
+
} | {
|
|
752
|
+
id: "supergrok-subscription";
|
|
753
|
+
kind: "supergrok-subscription";
|
|
754
|
+
experimental: true;
|
|
464
755
|
};
|
|
465
756
|
/**
|
|
466
757
|
* Reject empty / template secrets so `.env.example` placeholders like
|
|
@@ -508,6 +799,12 @@ export type ModelUsageInput = {
|
|
|
508
799
|
inputTokensDetails?: Record<string, number> | Array<Record<string, number>> | undefined;
|
|
509
800
|
requestUsageEntries?: ModelUsageInput[] | undefined;
|
|
510
801
|
};
|
|
802
|
+
export type ModelUsageCostBreakdown = {
|
|
803
|
+
/** Provider-rate cost basis for the exact usage, before OpenGeni margin. */
|
|
804
|
+
providerCostMicros: number;
|
|
805
|
+
/** OpenGeni credit price after configured margin and latency-mode multiplier. */
|
|
806
|
+
creditCostMicros: number;
|
|
807
|
+
};
|
|
511
808
|
export type StaticUsageLimitsConfig = StaticUsageLimits;
|
|
512
809
|
export type EntitlementsConfig = Entitlements;
|
|
513
810
|
export declare const CapabilitySupportV1: z.ZodEnum<{
|
|
@@ -594,6 +891,14 @@ export declare const ModelCapabilitiesV1Schema: z.ZodObject<{
|
|
|
594
891
|
}>;
|
|
595
892
|
runnable: z.ZodBoolean;
|
|
596
893
|
}, z.core.$strip>;
|
|
894
|
+
imageGeneration: z.ZodDefault<z.ZodObject<{
|
|
895
|
+
upstream: z.ZodEnum<{
|
|
896
|
+
supported: "supported";
|
|
897
|
+
unknown: "unknown";
|
|
898
|
+
unsupported: "unsupported";
|
|
899
|
+
}>;
|
|
900
|
+
runnable: z.ZodBoolean;
|
|
901
|
+
}, z.core.$strip>>;
|
|
597
902
|
}, z.core.$strip>;
|
|
598
903
|
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
599
904
|
audio: "audio";
|
|
@@ -676,7 +981,7 @@ export type CredentialSourceV1 = {
|
|
|
676
981
|
mechanism: "api_key" | "azure_ad_bearer";
|
|
677
982
|
} | {
|
|
678
983
|
kind: "connected_subscription";
|
|
679
|
-
provider: "codex";
|
|
984
|
+
provider: "codex" | "xai";
|
|
680
985
|
} | {
|
|
681
986
|
kind: "workspace_connection";
|
|
682
987
|
mechanism: "api_key";
|
|
@@ -699,14 +1004,15 @@ export declare const ModelProviderApi: z.ZodEnum<{
|
|
|
699
1004
|
export type ModelProviderApi = z.infer<typeof ModelProviderApi>;
|
|
700
1005
|
/**
|
|
701
1006
|
* Registry provider kind. "api-key" providers carry their own static key/headers;
|
|
702
|
-
*
|
|
703
|
-
*
|
|
1007
|
+
* connected-subscription providers resolve a workspace account token at call
|
|
1008
|
+
* time and never carry a static key in the registry definition.
|
|
704
1009
|
*/
|
|
705
1010
|
export declare const RegistryProviderKind: z.ZodEnum<{
|
|
706
1011
|
"api-key": "api-key";
|
|
707
1012
|
"codex-subscription": "codex-subscription";
|
|
708
1013
|
"vercel-gateway-managed": "vercel-gateway-managed";
|
|
709
1014
|
"vercel-gateway-workspace": "vercel-gateway-workspace";
|
|
1015
|
+
"xai-subscription": "xai-subscription";
|
|
710
1016
|
}>;
|
|
711
1017
|
export type RegistryProviderKind = z.infer<typeof RegistryProviderKind>;
|
|
712
1018
|
/** A non-built-in provider declared by the host via OPENGENI_MODEL_PROVIDERS_JSON. */
|
|
@@ -716,6 +1022,7 @@ declare const RegistryProviderSchema: z.ZodObject<{
|
|
|
716
1022
|
"codex-subscription": "codex-subscription";
|
|
717
1023
|
"vercel-gateway-managed": "vercel-gateway-managed";
|
|
718
1024
|
"vercel-gateway-workspace": "vercel-gateway-workspace";
|
|
1025
|
+
"xai-subscription": "xai-subscription";
|
|
719
1026
|
}>>;
|
|
720
1027
|
id: z.ZodString;
|
|
721
1028
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -813,6 +1120,14 @@ declare const RegistryProviderSchema: z.ZodObject<{
|
|
|
813
1120
|
}>;
|
|
814
1121
|
runnable: z.ZodBoolean;
|
|
815
1122
|
}, z.core.$strip>;
|
|
1123
|
+
imageGeneration: z.ZodDefault<z.ZodObject<{
|
|
1124
|
+
upstream: z.ZodEnum<{
|
|
1125
|
+
supported: "supported";
|
|
1126
|
+
unknown: "unknown";
|
|
1127
|
+
unsupported: "unsupported";
|
|
1128
|
+
}>;
|
|
1129
|
+
runnable: z.ZodBoolean;
|
|
1130
|
+
}, z.core.$strip>>;
|
|
816
1131
|
}, z.core.$strip>;
|
|
817
1132
|
inputModalities: z.ZodArray<z.ZodEnum<{
|
|
818
1133
|
audio: "audio";
|
|
@@ -978,6 +1293,7 @@ export declare const WORKSPACE_GATEWAY_MODEL_ID_PREFIX: "workspace-gateway/";
|
|
|
978
1293
|
export declare const VERCEL_AI_GATEWAY_CONNECTION_DOMAIN: "ai-gateway.vercel.sh";
|
|
979
1294
|
export declare const VERCEL_AI_GATEWAY_CONNECTION_ROLE: "vercel_ai_gateway";
|
|
980
1295
|
export declare const CODEX_REALTIME_MODEL_ID: "gpt-live-1-boulder-alpha";
|
|
1296
|
+
export declare const SUPERGROK_REALTIME_MODEL_ID: "supergrok/grok-voice-think-fast-2.0";
|
|
981
1297
|
export declare const OPENGENI_REALTIME_MODEL_ID_PREFIX: "opengeni-gateway/";
|
|
982
1298
|
export declare const WORKSPACE_REALTIME_MODEL_ID_PREFIX: "workspace-gateway/";
|
|
983
1299
|
/** Curated voice models exposed through AI Gateway's normalized realtime API. */
|
|
@@ -1060,6 +1376,14 @@ export declare function getSettings(): Settings;
|
|
|
1060
1376
|
* require an operator-provided secret.
|
|
1061
1377
|
*/
|
|
1062
1378
|
export declare function resolveFirstPartyDelegationSecret(settings: Settings): string | undefined;
|
|
1379
|
+
export type FirstPartyMcpToolPolicy = {
|
|
1380
|
+
default: FirstPartyMcpToolNameType[];
|
|
1381
|
+
allowed: FirstPartyMcpToolNameType[];
|
|
1382
|
+
};
|
|
1383
|
+
/** Resolve the deployment's session-tool defaults and hard execution ceiling. */
|
|
1384
|
+
export declare function resolveFirstPartyMcpToolPolicy(settings: Pick<Settings, "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools">): FirstPartyMcpToolPolicy;
|
|
1385
|
+
/** Apply the deployment ceiling to an existing durable session selection. */
|
|
1386
|
+
export declare function allowedFirstPartyMcpToolsForSession(settings: Pick<Settings, "defaultFirstPartyMcpTools" | "allowedFirstPartyMcpTools">, selected: readonly FirstPartyMcpToolNameType[] | null | undefined): FirstPartyMcpToolNameType[];
|
|
1063
1387
|
/**
|
|
1064
1388
|
* The Modal sandbox idle timeout (seconds) the provider actually passes as
|
|
1065
1389
|
* idleTimeoutMs (sandbox-file-persistence). When the operator did not pin
|
|
@@ -1081,6 +1405,7 @@ export declare function effectiveModalIdleTimeoutSeconds(settings: Settings): nu
|
|
|
1081
1405
|
* consumers at one hour.
|
|
1082
1406
|
*/
|
|
1083
1407
|
export declare function sandboxArchiveCaptureTimeoutMs(settings: Pick<Settings, "sandboxSnapshotTimeoutMs">): number;
|
|
1408
|
+
export declare function sandboxLifecycleTransitionWaitMs(settings: Pick<Settings, "sandboxSnapshotTimeoutMs" | "sandboxLeaseReaperPeriodMs">): number;
|
|
1084
1409
|
export declare function collectSandboxEnvironment(settings: Settings, source?: NodeJS.ProcessEnv): Record<string, string>;
|
|
1085
1410
|
/**
|
|
1086
1411
|
* Resolved API key for a registry provider: the inline `apiKey` when present,
|
|
@@ -1098,17 +1423,20 @@ export declare function withWorkspaceGatewayCredential(settings: Settings, apiKe
|
|
|
1098
1423
|
/**
|
|
1099
1424
|
* Product display label for catalog/picker UI.
|
|
1100
1425
|
* Same string for OpenAI and Codex copies of a slug (`gpt-5.6-luna` and
|
|
1101
|
-
* `codex/gpt-5.6-luna` → `GPT-5.6 Luna`).
|
|
1426
|
+
* `codex/gpt-5.6-luna` → `GPT-5.6 Luna`). Curated Grok slugs receive the same
|
|
1427
|
+
* product casing; other ids pass through unchanged.
|
|
1102
1428
|
*/
|
|
1103
1429
|
export declare function productLabelForModelId(modelId: string): string;
|
|
1104
1430
|
/**
|
|
1105
|
-
* Curated compact product labels for dense UI.
|
|
1106
|
-
*
|
|
1431
|
+
* Curated compact product labels for dense UI. Unknown model slugs return null
|
|
1432
|
+
* so callers fall back to the full `label`.
|
|
1107
1433
|
*/
|
|
1108
1434
|
export declare function productShortLabelForModelId(modelId: string): string | null;
|
|
1435
|
+
/** Undefined and the exact public OpenAI v1 endpoint are the same direct route. */
|
|
1436
|
+
export declare function isDirectOpenAiApiBaseUrl(baseUrl: string | undefined): boolean;
|
|
1109
1437
|
/**
|
|
1110
1438
|
* Map OpenGeni latency mode to the provider `service_tier` wire value.
|
|
1111
|
-
* Azure
|
|
1439
|
+
* Azure, Codex ChatGPT, and xAI accept `priority`; OpenAI API accepts `fast`.
|
|
1112
1440
|
* Standard omits the field.
|
|
1113
1441
|
*/
|
|
1114
1442
|
export declare function serviceTierForLatencyMode(providerId: string, latencyMode: LatencyMode): "fast" | "priority" | undefined;
|
|
@@ -1139,6 +1467,12 @@ export declare function configuredProviders(settings: Settings): ResolvedModelPr
|
|
|
1139
1467
|
* operations remain owned by the credential allocator.
|
|
1140
1468
|
*/
|
|
1141
1469
|
export declare function withCodexCatalogProvider(settings: Settings): Settings;
|
|
1470
|
+
/**
|
|
1471
|
+
* Static SuperGrok product catalogue, matching the Codex subscription seam.
|
|
1472
|
+
* The overlay never contains a concrete account id or bearer; selection and
|
|
1473
|
+
* per-turn credential freeze remain worker/DB responsibilities.
|
|
1474
|
+
*/
|
|
1475
|
+
export declare function withXaiSubscriptionCatalogProvider(settings: Settings): Settings;
|
|
1142
1476
|
/**
|
|
1143
1477
|
* The provider identity a model id resolves to, for workspace model-policy
|
|
1144
1478
|
* evaluation — MUST agree with the real router (resolveTurnModel /
|
|
@@ -1241,6 +1575,9 @@ export declare function configuredEntitlements(settings: Settings): Entitlements
|
|
|
1241
1575
|
export declare function calculateModelUsageCostMicros(settings: Settings, model: string, usage: ModelUsageInput, options?: {
|
|
1242
1576
|
latencyMode?: LatencyMode;
|
|
1243
1577
|
}): number;
|
|
1578
|
+
export declare function calculateModelUsageCostBreakdown(settings: Settings, model: string, usage: ModelUsageInput, options?: {
|
|
1579
|
+
latencyMode?: LatencyMode;
|
|
1580
|
+
}): ModelUsageCostBreakdown;
|
|
1244
1581
|
/**
|
|
1245
1582
|
* Convert AI Gateway's exact USD inference cost to OpenGeni credit micros and
|
|
1246
1583
|
* apply the configured model margin. Decimal arithmetic is integer-only so a
|
|
@@ -1249,6 +1586,19 @@ export declare function calculateModelUsageCostMicros(settings: Settings, model:
|
|
|
1249
1586
|
export declare function calculateGatewayReportedCostMicros(settings: Settings, model: string, inferenceCostUsd: string, options?: {
|
|
1250
1587
|
inputTokens?: number;
|
|
1251
1588
|
}): number;
|
|
1589
|
+
export declare function calculateGatewayReportedCostBreakdown(settings: Settings, model: string, inferenceCostUsd: string, options?: {
|
|
1590
|
+
inputTokens?: number;
|
|
1591
|
+
}): ModelUsageCostBreakdown;
|
|
1592
|
+
/**
|
|
1593
|
+
* Exact OpenGeni product price frozen before a managed video request starts.
|
|
1594
|
+
* Gateway reporting is delayed for asynchronous video, so this deliberately
|
|
1595
|
+
* does not masquerade as provider-reported cost.
|
|
1596
|
+
*/
|
|
1597
|
+
export declare function calculateVideoGenerationCreditCostMicros(settings: Settings, input: {
|
|
1598
|
+
modelId: string;
|
|
1599
|
+
resolution: VideoGenerationResolution;
|
|
1600
|
+
durationSeconds: number;
|
|
1601
|
+
}): number;
|
|
1252
1602
|
export declare function configuredAllowedReasoningEfforts(settings: Settings): Array<z.infer<typeof ReasoningEffort>>;
|
|
1253
1603
|
/**
|
|
1254
1604
|
* Decodes OPENGENI_ENVIRONMENTS_ENCRYPTION_KEY (base64, exactly 32 bytes) for
|
|
@@ -1412,6 +1762,7 @@ export declare function parseStaticEntitlementsJson(raw: string): EntitlementsCo
|
|
|
1412
1762
|
*/
|
|
1413
1763
|
export declare function firstPartyMcpBaseUrl(settings: Settings): string;
|
|
1414
1764
|
export declare function firstPartyMcpWorkspaceUrl(settings: Settings, workspaceId: string): string;
|
|
1765
|
+
export declare function codemodeWorkspaceUrl(settings: Settings, workspaceId: string): string;
|
|
1415
1766
|
/**
|
|
1416
1767
|
* Resolve the secret used to sign/verify scoped stream tokens (sandbox contract
|
|
1417
1768
|
* §C.3). Falls back to `delegationSecret` (the same HMAC envelope family —
|
|
@@ -1475,4 +1826,3 @@ export interface NatsControlPlaneAuth {
|
|
|
1475
1826
|
password: string;
|
|
1476
1827
|
}
|
|
1477
1828
|
export declare function resolveNatsControlPlaneAuth(settings: Settings): NatsControlPlaneAuth | null;
|
|
1478
|
-
export {};
|