@opengeni/sdk 6.1.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -45
- package/dist/artifacts.js +4 -4
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-64S3VKJU.js → chunk-7ESHQLTB.js} +130 -83
- package/dist/chunk-7ESHQLTB.js.map +1 -0
- package/dist/{chunk-IZH5F7QC.js → chunk-L3MYVTPO.js} +10 -2
- package/dist/chunk-L3MYVTPO.js.map +1 -0
- package/dist/{chunk-CFSYTYMA.js → chunk-MXQX4M36.js} +2 -2
- package/dist/{chunk-VDACQXJZ.js → chunk-N76DIO4E.js} +8 -87
- package/dist/chunk-N76DIO4E.js.map +1 -0
- package/dist/{chunk-CMEU67C4.js → chunk-P7OFNKCH.js} +2 -2
- package/dist/chunk-P7OFNKCH.js.map +1 -0
- package/dist/{chunk-4ZQQQBOH.js → chunk-RCVWE6UR.js} +2 -2
- package/dist/client.d.ts +47 -21
- package/dist/core.js +3 -3
- package/dist/document-authority-client.d.ts +3 -1
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +13 -2
- package/dist/editable-artifacts.js.map +1 -1
- package/dist/embedding-client.d.ts +3 -21
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -6
- package/dist/knowledge.d.ts +5 -3
- package/dist/knowledge.js +12 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/organization-integration-policy.d.ts +26 -0
- package/dist/organization-integration-policy.js +26 -0
- package/dist/organization-integration-policy.js.map +1 -0
- package/dist/session-message-search.d.ts +41 -0
- package/dist/site-browser-runtime.gen.d.ts +1 -1
- package/dist/site-document.js +1 -1
- package/dist/site-document.js.map +1 -1
- package/dist/site.js +3 -3
- package/dist/skills.d.ts +3 -0
- package/dist/types.d.ts +168 -380
- package/package.json +7 -3
- package/src/browser.ts +12 -0
- package/src/client.ts +206 -136
- package/src/document-authority-client.ts +15 -0
- package/src/editable-artifacts/controller.ts +25 -1
- package/src/embedding-client.ts +10 -134
- package/src/index.ts +25 -34
- package/src/knowledge.ts +22 -1
- package/src/organization-integration-policy.ts +54 -0
- package/src/session-message-search.ts +39 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/src/skills.ts +3 -0
- package/src/types.ts +176 -432
- package/dist/chunk-64S3VKJU.js.map +0 -1
- package/dist/chunk-CMEU67C4.js.map +0 -1
- package/dist/chunk-IZH5F7QC.js.map +0 -1
- package/dist/chunk-VDACQXJZ.js.map +0 -1
- /package/dist/{chunk-CFSYTYMA.js.map → chunk-MXQX4M36.js.map} +0 -0
- /package/dist/{chunk-4ZQQQBOH.js.map → chunk-RCVWE6UR.js.map} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WorkspaceTranscriptionPolicy } from "./transcription.js";
|
|
2
|
-
export type
|
|
2
|
+
export type { SessionMessageSearchRequest, SessionMessageSearchMatch, SessionMessageSearchResponse, } from "./session-message-search.js";
|
|
3
|
+
export type BundledSkillId = "builtin:opengeni-help" | "builtin:opengeni-client" | "builtin:opengeni-visualize" | "builtin:document-parsing" | "builtin:opengeni-skills" | "builtin:opengeni-projects" | "builtin:opengeni-documents" | "builtin:opengeni-spreadsheets" | "builtin:opengeni-presentations" | "builtin:opengeni-sites" | "builtin:opengeni-video-generation";
|
|
3
4
|
export type CodexRealtimeWebrtcVersion = "v3";
|
|
4
5
|
export type CodexRealtimeVoice = "juniper" | "maple" | "spruce" | "ember" | "vale" | "breeze" | "arbor" | "sol" | "cove";
|
|
5
6
|
export type CodexRealtimeWebrtcRequest = {
|
|
@@ -416,9 +417,11 @@ export type ToolRef = {
|
|
|
416
417
|
export type SessionToolPolicy = {
|
|
417
418
|
mode: "workspace_default" | "explicit" | "inherited";
|
|
418
419
|
inheritedFromSessionId: string | null;
|
|
420
|
+
excludedMcpServerIds?: string[] | undefined;
|
|
419
421
|
};
|
|
420
422
|
export type UpdateSessionToolPolicyRequest = {
|
|
421
423
|
mode: "workspace_default";
|
|
424
|
+
excludedMcpServerIds?: string[] | undefined;
|
|
422
425
|
expectedVersion: number;
|
|
423
426
|
} | {
|
|
424
427
|
mode: "explicit";
|
|
@@ -448,10 +451,20 @@ export type SessionEffectiveToolPolicy = {
|
|
|
448
451
|
};
|
|
449
452
|
idsTruncated: boolean;
|
|
450
453
|
};
|
|
454
|
+
export type SessionGoalReportRequirement = {
|
|
455
|
+
id: string;
|
|
456
|
+
title: string;
|
|
457
|
+
};
|
|
458
|
+
export type SessionGoalReportDelivery = {
|
|
459
|
+
requirementId: string;
|
|
460
|
+
artifactId: string;
|
|
461
|
+
inspectionReceiptId: string;
|
|
462
|
+
};
|
|
451
463
|
export type GoalSpec = {
|
|
452
464
|
text: string;
|
|
453
465
|
successCriteria?: string | undefined;
|
|
454
466
|
rootConstraints?: string[] | undefined;
|
|
467
|
+
reportRequirements?: SessionGoalReportRequirement[] | undefined;
|
|
455
468
|
maxAutoContinuations?: number | undefined;
|
|
456
469
|
mutationPolicy?: SessionGoalMutationPolicy | undefined;
|
|
457
470
|
};
|
|
@@ -503,9 +516,14 @@ export type UpdateSessionMcpApprovalPolicyRequest = {
|
|
|
503
516
|
requireApproval: SessionMcpApprovalPolicy;
|
|
504
517
|
};
|
|
505
518
|
export type UpdateSessionMcpApprovalPolicyResponse = {
|
|
506
|
-
server:
|
|
519
|
+
server: SessionMcpApprovalPolicyTarget;
|
|
507
520
|
effectiveFrom: "next_attempt";
|
|
508
521
|
};
|
|
522
|
+
export type SessionMcpApprovalPolicyTarget = SessionMcpServerMetadata | {
|
|
523
|
+
id: string;
|
|
524
|
+
source: "workspace";
|
|
525
|
+
requireApproval: SessionMcpApprovalPolicy;
|
|
526
|
+
};
|
|
509
527
|
export type ConnectionKind = "oauth2" | "api_key" | "app_install" | "delegated";
|
|
510
528
|
export type ConnectionStatus = "active" | "needs_reauth" | "revoked" | "error";
|
|
511
529
|
export type UserResourceDelegation = {
|
|
@@ -522,13 +540,13 @@ export type UserResourceDelegation = {
|
|
|
522
540
|
grantGeneration: number;
|
|
523
541
|
resourceVersionId?: string | null | undefined;
|
|
524
542
|
};
|
|
525
|
-
export type
|
|
543
|
+
export type McpConnectionAccountSelection = {
|
|
526
544
|
serverId: string;
|
|
527
545
|
connectionId: string;
|
|
528
|
-
userDelegation: UserResourceDelegation;
|
|
529
546
|
};
|
|
530
547
|
export type McpServerConnectionRef = {
|
|
531
548
|
connectionId?: string | undefined;
|
|
549
|
+
accountSelection?: "all_eligible" | undefined;
|
|
532
550
|
authoritySource?: "host" | undefined;
|
|
533
551
|
/** accepted_turn is configuration-only; each accepted owner must select a grant. */
|
|
534
552
|
hostBinding?: {
|
|
@@ -1093,6 +1111,13 @@ export type CancelSessionBackgroundCommandResult = {
|
|
|
1093
1111
|
accepted: boolean;
|
|
1094
1112
|
};
|
|
1095
1113
|
export type Session = {
|
|
1114
|
+
/** Detail-only dispatch evidence; delivery does not prove turn execution. */
|
|
1115
|
+
dispatchWait?: {
|
|
1116
|
+
state: "pending" | "acknowledged" | "unavailable";
|
|
1117
|
+
attempts: number;
|
|
1118
|
+
nextAttemptAt: string | null;
|
|
1119
|
+
lastError: string | null;
|
|
1120
|
+
} | null | undefined;
|
|
1096
1121
|
/** Detail-only failure evidence through lastSequence; independent of timeline paging. */
|
|
1097
1122
|
failureDiagnostics?: {
|
|
1098
1123
|
eventId: string;
|
|
@@ -1148,6 +1173,7 @@ export type Session = {
|
|
|
1148
1173
|
firstPartyMcpPermissions: string[] | null;
|
|
1149
1174
|
firstPartyMcpTools: FirstPartyMcpToolName[];
|
|
1150
1175
|
mcpServers: SessionMcpServerMetadata[];
|
|
1176
|
+
mcpApprovalPolicies?: Record<string, SessionMcpApprovalPolicy> | undefined;
|
|
1151
1177
|
parentSessionId: string | null;
|
|
1152
1178
|
/** Immutable server-authored nested-agent lineage and policy snapshot. */
|
|
1153
1179
|
rootSessionId: string;
|
|
@@ -1247,6 +1273,10 @@ export type SessionListResponse = {
|
|
|
1247
1273
|
pinnedTruncated?: boolean;
|
|
1248
1274
|
/** Present only when the server recognized and applied additive list filters. */
|
|
1249
1275
|
filtersApplied?: true;
|
|
1276
|
+
/** Effective server ordering. Name: ASCII-space trim, ASCII case fold,
|
|
1277
|
+
* UTF-8 byte order, id ASC. Date keys and id ties are DESC. */
|
|
1278
|
+
sortBy?: "updatedAt" | "createdAt" | "name" | "archivedAt";
|
|
1279
|
+
archiveStatus?: "active" | "archived" | "all";
|
|
1250
1280
|
/** Server-resolved Site origin filter, when requested. */
|
|
1251
1281
|
originSiteId?: string;
|
|
1252
1282
|
sessions: Session[];
|
|
@@ -1445,6 +1475,7 @@ export type HumanInputOption = {
|
|
|
1445
1475
|
description?: string | null | undefined;
|
|
1446
1476
|
};
|
|
1447
1477
|
export type SkillReviewReference = {
|
|
1478
|
+
removalOperationId?: string | undefined;
|
|
1448
1479
|
sourceOperationId: string;
|
|
1449
1480
|
skillId: string;
|
|
1450
1481
|
revisionId: string;
|
|
@@ -1452,7 +1483,7 @@ export type SkillReviewReference = {
|
|
|
1452
1483
|
expectedScopeVersion: number;
|
|
1453
1484
|
};
|
|
1454
1485
|
export type HumanInputQuestion = {
|
|
1455
|
-
skillReview?: SkillReviewReference | undefined;
|
|
1486
|
+
skillReview?: SkillReviewReference | null | undefined;
|
|
1456
1487
|
id: string;
|
|
1457
1488
|
kind: HumanInputQuestionKind;
|
|
1458
1489
|
prompt: string;
|
|
@@ -1627,6 +1658,10 @@ export type SessionEventPage = {
|
|
|
1627
1658
|
};
|
|
1628
1659
|
export type ToolAuthNeededPayload = {
|
|
1629
1660
|
serverId: string;
|
|
1661
|
+
/** Configured connector for recovery; serverId retains the execution alias. */
|
|
1662
|
+
canonicalServerId?: string | undefined;
|
|
1663
|
+
/** Scope of the exact failed account, not the canonical catalog default. */
|
|
1664
|
+
connectionSubjectScope?: "workspace" | "subject" | undefined;
|
|
1630
1665
|
toolName?: string | null | undefined;
|
|
1631
1666
|
providerDomain: string;
|
|
1632
1667
|
provider?: string | undefined;
|
|
@@ -2260,6 +2295,7 @@ export type IncidentTelemetryPreflightInput = Omit<IncidentTelemetryPreflight, "
|
|
|
2260
2295
|
requiredVariableNames?: string[] | undefined;
|
|
2261
2296
|
};
|
|
2262
2297
|
export type ScheduledTaskAgentConfig = {
|
|
2298
|
+
connectionAccounts?: McpConnectionAccountSelection[] | undefined;
|
|
2263
2299
|
knowledgeSource?: Extract<ScheduledTaskAction, {
|
|
2264
2300
|
kind: "knowledge_source_sync";
|
|
2265
2301
|
}> | undefined;
|
|
@@ -2330,6 +2366,8 @@ export type ScheduledTask = {
|
|
|
2330
2366
|
accountId: string;
|
|
2331
2367
|
workspaceId: string;
|
|
2332
2368
|
name: string;
|
|
2369
|
+
/** Immutable execution owner; null for workspace/service tasks. */
|
|
2370
|
+
ownerSubjectId: string | null;
|
|
2333
2371
|
status: ScheduledTaskStatus;
|
|
2334
2372
|
schedule: ScheduledTaskScheduleSpec;
|
|
2335
2373
|
temporalScheduleId: string;
|
|
@@ -2339,7 +2377,6 @@ export type ScheduledTask = {
|
|
|
2339
2377
|
agentConfig: ScheduledTaskAgentConfig;
|
|
2340
2378
|
createdBy?: TurnInitiator | undefined;
|
|
2341
2379
|
createdByContext?: TurnInitiatorContext | undefined;
|
|
2342
|
-
personalConnections?: McpPersonalConnectionSummary[] | undefined;
|
|
2343
2380
|
authorityRevision: number;
|
|
2344
2381
|
executionDigest: string;
|
|
2345
2382
|
targetSessionId: string | null;
|
|
@@ -2353,14 +2390,9 @@ export type ScheduledTask = {
|
|
|
2353
2390
|
updatedAt: string;
|
|
2354
2391
|
};
|
|
2355
2392
|
export type CreateSessionRequest = {
|
|
2356
|
-
/** Opt-in host grants for a direct external-user initial turn. */
|
|
2357
|
-
selectedHostMcpDelegations?: {
|
|
2358
|
-
serverId: string;
|
|
2359
|
-
delegationId: string;
|
|
2360
|
-
generation: number;
|
|
2361
|
-
}[] | undefined;
|
|
2362
2393
|
/** Omitted: defaults/inheritance; []: no bundled guidance. Children cannot widen. */
|
|
2363
2394
|
bundledSkillIds?: BundledSkillId[] | undefined;
|
|
2395
|
+
excludedMcpServerIds?: string[] | undefined;
|
|
2364
2396
|
requestedSessionId?: string | undefined;
|
|
2365
2397
|
visibility?: SessionVisibility | undefined;
|
|
2366
2398
|
initialMessage?: string | undefined;
|
|
@@ -2399,6 +2431,8 @@ export type CreateSessionRequest = {
|
|
|
2399
2431
|
firstPartyMcpPermissions?: string[] | undefined;
|
|
2400
2432
|
firstPartyMcpTools?: FirstPartyMcpToolName[] | undefined;
|
|
2401
2433
|
mcpServers?: SessionMcpServerInput[] | undefined;
|
|
2434
|
+
mcpApprovalPolicies?: Record<string, SessionMcpApprovalPolicy> | undefined;
|
|
2435
|
+
connectionAccounts?: McpConnectionAccountSelection[] | undefined;
|
|
2402
2436
|
/** Atomically attach the server-derived personal Variable Set/Rig closure to the initial turn. */
|
|
2403
2437
|
personalResourceAttachment?: PersonalResourceAttachmentIntent | undefined;
|
|
2404
2438
|
sandbox?: "shared" | "new" | {
|
|
@@ -2421,7 +2455,7 @@ export type KnownPermission = (typeof KNOWN_PERMISSIONS)[number];
|
|
|
2421
2455
|
* can introduce permissions without breaking older SDK consumers.
|
|
2422
2456
|
*/
|
|
2423
2457
|
export type Permission = KnownPermission | (string & {});
|
|
2424
|
-
export type FirstPartyMcpToolName = "knowledge_search" | "knowledge_get" | "knowledge_browse" | "knowledge_save" | "knowledge_retain_file" | "knowledge_retain_message" | "knowledge_archive" | "instruction_policy_save" | "instruction_policy_get" | "set_session_title" | "goal_set" | "goal_update" | "goal_progress" | "wait_for_input" | "goal_complete" | "goal_pause" | "goal_resume" | "memory_search" | "memory_save" | "memory_correct" | "preference_registry_summary" | "preference_registry_get" | "task_notes_list" | "task_note_save" | "task_note_archive" | "task_note_replace" | "work_claim_upsert" | "work_claim_release" | "knowledge_propose" | "knowledge_correct" | "task_note_promote_knowledge" | "task_note_promote_instruction_policy" | "task_note_promote_preference" | "instruction_policy_propose" | "preference_propose" | "remember" | "remember_confirm" | "company_profile_propose" | "company_profile_confirm" | "sandboxes_list" | "sandbox_attach" | "sandbox_swap" | "run_on" | "sandbox_provision" | "connected_machine_remove" | "project_list" | "project_get" | "project_create" | "project_update" | "project_reorder" | "project_delete" | "session_set_project" | "rig_list" | "rig_get" | "rig_propose_change" | "rig_verify" | "rig_promote" | "sessions_list" | "session_get" | "session_events" | "session_wait" | "command_read" | "command_wait" | "session_create" | "session_send_message" | "session_pause" | "session_resume" | "session_steer" | "session_human_input_respond" | "set_other_session_title" | "interaction_discover" | "browser_open" | "browser_tabs" | "browser_observe" | "browser_act" | "browser_clipboard" | "browser_debug" | "browser_auth" | "interaction_request_human" | "browser_identity" | "browser_publish" | "browser_lifecycle" | "computer_open" | "computer_targets" | "computer_observe" | "computer_clipboard" | "computer_act" | "computer_lifecycle" | "variable_set_list" | "environment_list" | "variable_set_get_variable" | "variable_set_set_variable" | "environment_set_variable" | "capability_catalog_search" | "capability_authorization_request" | "github_connect_link" | "github_repositories_list" | "social_connections_list" | "social_posts_recent" | "social_daily_analysis_context" | "social_search_live" | "social_mentions_live" | "social_thread_fetch" | "social_posts_sync" | "social_post_reply" | "x_accounts_list" | "x_search_live" | "x_mentions_live" | "x_thread_fetch" | "x_posts_sync" | "x_post_reply" | "reddit_accounts_list" | "reddit_search_live" | "reddit_mentions_live" | "reddit_thread_fetch" | "reddit_posts_sync" | "reddit_post_reply" | "scheduled_tasks_list" | "scheduled_tasks_get" | "scheduled_tasks_create" | "scheduled_tasks_update" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_delete" | "scheduled_task_runs_list" | "slack_bot_list_channels" | "slack_bot_search" | "slack_bot_channel_history" | "slack_bot_thread_replies" | "slack_bot_list_users" | "slack_bot_list_files" | "slack_bot_file_info" | "slack_bot_file_content" | "slack_bot_post_message" | "slack_bot_delete_message" | "fiken_companies_list" | "fiken_contacts_list" | "fiken_contact_create" | "fiken_products_list" | "fiken_invoices_list" | "fiken_invoice_get" | "fiken_invoice_draft_create" | "fiken_bank_accounts_list" | "fiken_purchases_list" | "fiken_sales_list" | "atlassian_sources_list" | "atlassian_search" | "atlassian_get" | "sandbox_file_publish" | "artifacts_list" | "artifacts_get_source" | "artifacts_prepare_upload" | "artifacts_create" | "artifacts_publish" | "artifacts_rollback" | "artifacts_archive" | "artifacts_restore" | "editable_artifact_list" | "editable_artifact_create" | "editable_artifact_import" | "editable_artifact_get" | "editable_artifact_inspect" | "editable_artifact_apply" | "editable_artifact_export" | "editable_artifact_export_status";
|
|
2458
|
+
export type FirstPartyMcpToolName = "knowledge_search" | "knowledge_prepare_save" | "knowledge_get" | "knowledge_browse" | "knowledge_save" | "knowledge_retain_file" | "knowledge_retain_message" | "knowledge_archive" | "instruction_policy_save" | "instruction_policy_get" | "set_session_title" | "goal_set" | "goal_update" | "goal_progress" | "wait_for_input" | "goal_complete" | "goal_pause" | "goal_resume" | "memory_search" | "memory_save" | "memory_correct" | "preference_registry_summary" | "preference_registry_get" | "task_notes_list" | "task_note_save" | "task_note_archive" | "task_note_replace" | "work_claim_upsert" | "work_claim_release" | "knowledge_propose" | "knowledge_correct" | "task_note_promote_knowledge" | "task_note_promote_instruction_policy" | "task_note_promote_preference" | "instruction_policy_propose" | "preference_propose" | "remember" | "remember_confirm" | "company_profile_propose" | "company_profile_confirm" | "sandboxes_list" | "sandbox_attach" | "sandbox_swap" | "run_on" | "sandbox_provision" | "connected_machine_remove" | "project_list" | "project_get" | "project_create" | "project_update" | "project_reorder" | "project_delete" | "session_set_project" | "rig_list" | "rig_get" | "rig_propose_change" | "rig_verify" | "rig_promote" | "sessions_list" | "session_get" | "session_events" | "session_wait" | "command_read" | "command_wait" | "session_create" | "session_send_message" | "session_pause" | "session_resume" | "session_steer" | "session_human_input_respond" | "set_other_session_title" | "interaction_discover" | "browser_open" | "browser_tabs" | "browser_observe" | "browser_act" | "browser_clipboard" | "browser_debug" | "browser_auth" | "interaction_request_human" | "browser_identity" | "browser_publish" | "browser_lifecycle" | "computer_open" | "computer_targets" | "computer_observe" | "computer_clipboard" | "computer_act" | "computer_lifecycle" | "variable_set_list" | "environment_list" | "variable_set_get_variable" | "variable_set_set_variable" | "environment_set_variable" | "capability_catalog_search" | "capability_authorization_request" | "github_connect_link" | "github_repositories_list" | "social_connections_list" | "social_posts_recent" | "social_daily_analysis_context" | "social_search_live" | "social_mentions_live" | "social_thread_fetch" | "social_posts_sync" | "social_post_reply" | "x_accounts_list" | "x_search_live" | "x_mentions_live" | "x_thread_fetch" | "x_posts_sync" | "x_post_reply" | "reddit_accounts_list" | "reddit_search_live" | "reddit_mentions_live" | "reddit_thread_fetch" | "reddit_posts_sync" | "reddit_post_reply" | "scheduled_tasks_list" | "scheduled_tasks_get" | "scheduled_tasks_create" | "scheduled_tasks_update" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_delete" | "scheduled_task_runs_list" | "slack_bot_list_channels" | "slack_bot_search" | "slack_bot_channel_history" | "slack_bot_thread_replies" | "slack_bot_list_users" | "slack_bot_list_files" | "slack_bot_file_info" | "slack_bot_file_content" | "slack_bot_post_message" | "slack_bot_delete_message" | "fiken_companies_list" | "fiken_contacts_list" | "fiken_contact_create" | "fiken_products_list" | "fiken_invoices_list" | "fiken_invoice_get" | "fiken_invoice_draft_create" | "fiken_bank_accounts_list" | "fiken_purchases_list" | "fiken_sales_list" | "atlassian_sources_list" | "atlassian_search" | "atlassian_get" | "sandbox_file_publish" | "artifacts_list" | "artifacts_get_source" | "artifacts_prepare_upload" | "artifacts_create" | "artifacts_publish" | "artifacts_rollback" | "artifacts_archive" | "artifacts_restore" | "editable_artifact_list" | "editable_artifact_create" | "editable_artifact_import" | "editable_artifact_get" | "editable_artifact_inspect" | "editable_artifact_apply" | "editable_artifact_export" | "editable_artifact_export_status";
|
|
2425
2459
|
export type ProductAccessMode = "local" | "configured" | "managed";
|
|
2426
2460
|
export type ModelCapabilitySupportV1 = "supported" | "unsupported" | "unknown";
|
|
2427
2461
|
export type ModelCapabilityStateV1 = {
|
|
@@ -2811,6 +2845,17 @@ export type CodexAccountsResponse = {
|
|
|
2811
2845
|
settings: CodexRotationSettings;
|
|
2812
2846
|
};
|
|
2813
2847
|
export type OrganizationCodexAccountsResponse = Omit<CodexAccountsResponse, "apps" | "source">;
|
|
2848
|
+
/** Session-authorized choices: the accepted pool for a capacity wait, otherwise
|
|
2849
|
+
* the current pool for the next turn. Current execution may use another pool. */
|
|
2850
|
+
export type SessionCodexAccountsResponse = Omit<CodexAccountsResponse, "apps" | "source"> & {
|
|
2851
|
+
currentSelection: {
|
|
2852
|
+
credentialId: string | null;
|
|
2853
|
+
waiting: boolean;
|
|
2854
|
+
} | null;
|
|
2855
|
+
currentAccount: CodexAccount | null;
|
|
2856
|
+
pinnedAccountId: string | null;
|
|
2857
|
+
lastAccountId: string | null;
|
|
2858
|
+
};
|
|
2814
2859
|
export type CodexAppsUpdate = {
|
|
2815
2860
|
credentialId: string | null;
|
|
2816
2861
|
version: number;
|
|
@@ -2950,7 +2995,7 @@ export type ClientAuthConfig = {
|
|
|
2950
2995
|
/** Configured managed sign-in providers; omitted by older deployments. */
|
|
2951
2996
|
socialProviders?: ("google" | "github")[];
|
|
2952
2997
|
};
|
|
2953
|
-
export declare const OPENGENI_API_CONTRACT_REVISION: "2026-
|
|
2998
|
+
export declare const OPENGENI_API_CONTRACT_REVISION: "2026-09-plugins-and-skills-v1";
|
|
2954
2999
|
export declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
|
|
2955
3000
|
/** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
|
|
2956
3001
|
export declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
|
|
@@ -3148,7 +3193,7 @@ export type UserResourceAuthoritySummary = {
|
|
|
3148
3193
|
grants: UserResourceAuthorityGrant[];
|
|
3149
3194
|
};
|
|
3150
3195
|
export type ListUserResourceAuthoritiesOptions = {
|
|
3151
|
-
resourceKind: UserResourceKind
|
|
3196
|
+
resourceKind: Exclude<UserResourceKind, "connection">;
|
|
3152
3197
|
cursor?: string | undefined;
|
|
3153
3198
|
limit?: number | undefined;
|
|
3154
3199
|
};
|
|
@@ -3159,7 +3204,7 @@ export type ListUserResourceAuthoritiesResponse = {
|
|
|
3159
3204
|
};
|
|
3160
3205
|
export type IssueUserResourceGrantRequest = {
|
|
3161
3206
|
scope: "user";
|
|
3162
|
-
resourceKind: UserResourceKind
|
|
3207
|
+
resourceKind: Exclude<UserResourceKind, "connection">;
|
|
3163
3208
|
mode: "session";
|
|
3164
3209
|
context: "user_private" | "workspace_shared";
|
|
3165
3210
|
sessionId: string;
|
|
@@ -3167,7 +3212,7 @@ export type IssueUserResourceGrantRequest = {
|
|
|
3167
3212
|
workspaceSharedAcknowledged?: boolean | undefined;
|
|
3168
3213
|
} | {
|
|
3169
3214
|
scope: "user";
|
|
3170
|
-
resourceKind: UserResourceKind
|
|
3215
|
+
resourceKind: Exclude<UserResourceKind, "connection">;
|
|
3171
3216
|
mode: "always";
|
|
3172
3217
|
context: "user_private" | "workspace_shared";
|
|
3173
3218
|
sessionId?: null | undefined;
|
|
@@ -3557,6 +3602,7 @@ export type WorkspaceSessionDefaults = {
|
|
|
3557
3602
|
reasoningEffort: ReasoningEffort;
|
|
3558
3603
|
};
|
|
3559
3604
|
export type WorkspaceSessionToolDefaults = {
|
|
3605
|
+
inheritConnectedMcpServers?: boolean | undefined;
|
|
3560
3606
|
mcpServerIds?: string[];
|
|
3561
3607
|
firstPartyMcpTools?: FirstPartyMcpToolName[];
|
|
3562
3608
|
};
|
|
@@ -3620,6 +3666,7 @@ export type UpdateWorkspaceSettingsRequest = {
|
|
|
3620
3666
|
sessionToolDefaults?: {
|
|
3621
3667
|
mcpServerIds?: string[] | null;
|
|
3622
3668
|
firstPartyMcpTools?: FirstPartyMcpToolName[] | null;
|
|
3669
|
+
inheritConnectedMcpServers?: boolean | null;
|
|
3623
3670
|
} | undefined;
|
|
3624
3671
|
voiceInput?: WorkspaceVoiceInputSettings | undefined;
|
|
3625
3672
|
transcription?: WorkspaceTranscriptionPolicy | undefined;
|
|
@@ -3854,6 +3901,8 @@ export type SessionGoal = {
|
|
|
3854
3901
|
text: string;
|
|
3855
3902
|
successCriteria: string | null;
|
|
3856
3903
|
rootConstraints: string[];
|
|
3904
|
+
/** Optional for older-server/source compatibility; current servers always supply this projection. */
|
|
3905
|
+
reportRequirements?: SessionGoalReportRequirement[] | undefined;
|
|
3857
3906
|
evidence: string | null;
|
|
3858
3907
|
rationale: string | null;
|
|
3859
3908
|
pausedReason: string | null;
|
|
@@ -3961,6 +4010,7 @@ export type ComposerDraft = {
|
|
|
3961
4010
|
};
|
|
3962
4011
|
export type NewSessionDraftOptions = {
|
|
3963
4012
|
agentLearning?: import("@opengeni/contracts").AgentLearningOverrides | undefined;
|
|
4013
|
+
excludedMcpServerIds?: string[] | undefined;
|
|
3964
4014
|
visibility?: SessionVisibility | undefined;
|
|
3965
4015
|
sandboxBackend?: SandboxBackend | undefined;
|
|
3966
4016
|
targetSandboxId?: string | undefined;
|
|
@@ -4057,6 +4107,49 @@ export type SessionSystemUpdate = {
|
|
|
4057
4107
|
deliveredAt: string | null;
|
|
4058
4108
|
createdAt: string;
|
|
4059
4109
|
};
|
|
4110
|
+
export type SessionRetryRequest = {
|
|
4111
|
+
clientEventId: string;
|
|
4112
|
+
failureEventId: string;
|
|
4113
|
+
model?: string;
|
|
4114
|
+
reasoningEffort?: ReasoningEffort;
|
|
4115
|
+
latencyMode?: LatencyMode;
|
|
4116
|
+
};
|
|
4117
|
+
export type SandboxRecoverySelection = {
|
|
4118
|
+
version: 1;
|
|
4119
|
+
sessionId: string;
|
|
4120
|
+
sandboxGroupId: string;
|
|
4121
|
+
leaseId: string;
|
|
4122
|
+
routeEpoch: number;
|
|
4123
|
+
authorityEpoch: number;
|
|
4124
|
+
leaseEpoch: number;
|
|
4125
|
+
workspaceGeneration: number;
|
|
4126
|
+
archiveGeneration: number;
|
|
4127
|
+
artifactId: string;
|
|
4128
|
+
revision: string;
|
|
4129
|
+
capturedAt: string;
|
|
4130
|
+
};
|
|
4131
|
+
export type SandboxRecoveryProjection = {
|
|
4132
|
+
version: 1;
|
|
4133
|
+
status: "unsupported" | "blocked" | "eligible" | "consent_accepted" | "restoring" | "restored";
|
|
4134
|
+
reason: string | null;
|
|
4135
|
+
checkpoint: SandboxRecoverySelection | null;
|
|
4136
|
+
operationId: string | null;
|
|
4137
|
+
};
|
|
4138
|
+
export type SandboxRecoveryRequest = {
|
|
4139
|
+
operationId: string;
|
|
4140
|
+
acceptHistoricalCheckpoint: true;
|
|
4141
|
+
selection: SandboxRecoverySelection;
|
|
4142
|
+
};
|
|
4143
|
+
export type SandboxRecoveryResponse = {
|
|
4144
|
+
outcome: "accepted" | "replayed";
|
|
4145
|
+
operationId: string;
|
|
4146
|
+
recovery: SandboxRecoveryProjection;
|
|
4147
|
+
};
|
|
4148
|
+
export type SessionRetryResponse = {
|
|
4149
|
+
outcome: "accepted" | "replayed";
|
|
4150
|
+
turnId: string;
|
|
4151
|
+
failureEventId: string;
|
|
4152
|
+
};
|
|
4060
4153
|
export type SessionControlResponse = {
|
|
4061
4154
|
receipt: SessionCommandReceipt;
|
|
4062
4155
|
effectiveControl: EffectiveSessionControl;
|
|
@@ -4151,7 +4244,7 @@ export type SubmitComposerDraftRequest = Omit<SaveComposerDraftRequest, "expecte
|
|
|
4151
4244
|
controlEtag?: string;
|
|
4152
4245
|
modelContext?: string;
|
|
4153
4246
|
mcpCredentialUpdates?: SessionMcpCredentialUpdateInput[];
|
|
4154
|
-
|
|
4247
|
+
connectionAccounts?: McpConnectionAccountSelection[];
|
|
4155
4248
|
personalResourceAttachment?: PersonalResourceAttachmentIntent;
|
|
4156
4249
|
};
|
|
4157
4250
|
export type SubmitComposerDraftResponse = {
|
|
@@ -4200,8 +4293,7 @@ export type CreateAgentScheduledTaskRequest = {
|
|
|
4200
4293
|
} | undefined;
|
|
4201
4294
|
runMode?: ScheduledTaskRunMode | undefined;
|
|
4202
4295
|
targetSessionId?: string | null | undefined;
|
|
4203
|
-
|
|
4204
|
-
selectedHostMcpDelegations?: CreateSessionRequest["selectedHostMcpDelegations"];
|
|
4296
|
+
connectionAccounts?: McpConnectionAccountSelection[] | undefined;
|
|
4205
4297
|
overlapPolicy?: ScheduledTaskOverlapPolicy | undefined;
|
|
4206
4298
|
agentConfig: ScheduledTaskAgentConfigInput;
|
|
4207
4299
|
status?: ScheduledTaskStatus | undefined;
|
|
@@ -4227,8 +4319,7 @@ export type UpdateScheduledTaskRequest = {
|
|
|
4227
4319
|
schedule?: ScheduledTaskScheduleSpec | undefined;
|
|
4228
4320
|
runMode?: ScheduledTaskRunMode | undefined;
|
|
4229
4321
|
targetSessionId?: string | null | undefined;
|
|
4230
|
-
|
|
4231
|
-
selectedHostMcpDelegations?: CreateSessionRequest["selectedHostMcpDelegations"];
|
|
4322
|
+
connectionAccounts?: McpConnectionAccountSelection[] | undefined;
|
|
4232
4323
|
overlapPolicy?: ScheduledTaskOverlapPolicy | undefined;
|
|
4233
4324
|
action?: ScheduledTaskAction | undefined;
|
|
4234
4325
|
agentConfig?: ScheduledTaskAgentConfigInput | undefined;
|
|
@@ -5042,283 +5133,24 @@ export type WorkspaceMemorySearchResult = {
|
|
|
5042
5133
|
export type WorkspaceMemorySearchResponse = {
|
|
5043
5134
|
results: WorkspaceMemorySearchResult[];
|
|
5044
5135
|
};
|
|
5045
|
-
export type
|
|
5046
|
-
export type CapabilityPackConnector = {
|
|
5047
|
-
id: string;
|
|
5048
|
-
name: string;
|
|
5049
|
-
category: string;
|
|
5050
|
-
authModel: CapabilityPackConnectorAuthModel;
|
|
5051
|
-
providers: string[];
|
|
5052
|
-
scopes: string[];
|
|
5053
|
-
required: boolean;
|
|
5054
|
-
metadata: Record<string, unknown>;
|
|
5055
|
-
};
|
|
5056
|
-
export type CapabilityPackKnowledge = {
|
|
5057
|
-
type: "document_base";
|
|
5058
|
-
id: string;
|
|
5059
|
-
name: string;
|
|
5060
|
-
description: string | null;
|
|
5061
|
-
required: boolean;
|
|
5062
|
-
};
|
|
5063
|
-
export type CapabilityPackScheduledTaskTemplate = {
|
|
5064
|
-
id: string;
|
|
5065
|
-
name: string;
|
|
5066
|
-
description: string;
|
|
5067
|
-
defaultSchedule: ScheduledTaskScheduleSpec;
|
|
5068
|
-
defaultRunMode: ScheduledTaskRunMode;
|
|
5069
|
-
defaultOverlapPolicy: ScheduledTaskOverlapPolicy;
|
|
5070
|
-
prompt?: string | undefined;
|
|
5071
|
-
};
|
|
5072
|
-
export type CapabilityPackAutomationTemplate = {
|
|
5073
|
-
id: string;
|
|
5074
|
-
name: string;
|
|
5075
|
-
description: string;
|
|
5076
|
-
adapterId: string;
|
|
5077
|
-
eventTypes: string[];
|
|
5078
|
-
sessionTemplate: {
|
|
5079
|
-
bundledSkillIds?: BundledSkillId[] | undefined;
|
|
5080
|
-
prompt: string;
|
|
5081
|
-
instructions: string | null;
|
|
5082
|
-
resources: ResourceRef[];
|
|
5083
|
-
skills: CapabilityPackSkill[];
|
|
5084
|
-
tools: ToolRef[];
|
|
5085
|
-
firstPartyMcpTools: string[];
|
|
5086
|
-
firstPartyMcpPermissions: Permission[];
|
|
5087
|
-
model: string | null;
|
|
5088
|
-
reasoningEffort: ReasoningEffort | null;
|
|
5089
|
-
sandboxBackend: SandboxBackend | null;
|
|
5090
|
-
policyRole: string | null;
|
|
5091
|
-
metadata: Record<string, unknown>;
|
|
5092
|
-
};
|
|
5093
|
-
configuration: Record<string, unknown>;
|
|
5094
|
-
connectionRequirement: string | null;
|
|
5095
|
-
};
|
|
5096
|
-
export type CapabilityPackSkillFile = {
|
|
5136
|
+
export type SkillArtifactFile = {
|
|
5097
5137
|
path: string;
|
|
5098
5138
|
content: string;
|
|
5099
5139
|
};
|
|
5100
|
-
export type
|
|
5140
|
+
export type SkillArtifactDefinition = {
|
|
5101
5141
|
name: string;
|
|
5102
5142
|
description?: string | undefined;
|
|
5103
5143
|
/** Omitted means workspace-wide; session_selected requires explicit session attachment. */
|
|
5104
5144
|
activationMode?: "workspace_managed" | "session_selected" | undefined;
|
|
5105
|
-
files:
|
|
5145
|
+
files: SkillArtifactFile[];
|
|
5106
5146
|
};
|
|
5107
|
-
export type SessionSkill = Omit<
|
|
5147
|
+
export type SessionSkill = Omit<SkillArtifactDefinition, "activationMode">;
|
|
5108
5148
|
/** SKILL.md owns metadata; supplied legacy fields must exactly match it. */
|
|
5109
|
-
export type
|
|
5149
|
+
export type SkillArtifactDefinitionInput = Omit<SkillArtifactDefinition, "name" | "description"> & {
|
|
5110
5150
|
name?: string | undefined;
|
|
5111
5151
|
description?: string | undefined;
|
|
5112
5152
|
};
|
|
5113
|
-
export type SessionSkillInput = Omit<
|
|
5114
|
-
export type CapabilityPackVariableSetSpec = {
|
|
5115
|
-
description: string;
|
|
5116
|
-
requiredVariables: string[];
|
|
5117
|
-
required: boolean;
|
|
5118
|
-
};
|
|
5119
|
-
export type CapabilityPackComponentReference = {
|
|
5120
|
-
key: string;
|
|
5121
|
-
kind: "plugin";
|
|
5122
|
-
pluginKey: string;
|
|
5123
|
-
version: string;
|
|
5124
|
-
manifestDigest: string;
|
|
5125
|
-
required: boolean;
|
|
5126
|
-
} | {
|
|
5127
|
-
key: string;
|
|
5128
|
-
kind: "skill";
|
|
5129
|
-
capabilityId: string;
|
|
5130
|
-
contentSha256: string;
|
|
5131
|
-
required: boolean;
|
|
5132
|
-
} | {
|
|
5133
|
-
key: string;
|
|
5134
|
-
kind: "integration";
|
|
5135
|
-
capabilityId: string;
|
|
5136
|
-
instanceKey: string;
|
|
5137
|
-
revisionId: string;
|
|
5138
|
-
contentSha256: string;
|
|
5139
|
-
required: boolean;
|
|
5140
|
-
} | {
|
|
5141
|
-
key: string;
|
|
5142
|
-
kind: "facet";
|
|
5143
|
-
capabilityId: string;
|
|
5144
|
-
instanceKey: string;
|
|
5145
|
-
facetKey: string;
|
|
5146
|
-
bindingKey: string;
|
|
5147
|
-
configDigest: string;
|
|
5148
|
-
required: boolean;
|
|
5149
|
-
};
|
|
5150
|
-
export type CapabilityPackRigRequirement = {
|
|
5151
|
-
description?: string | undefined;
|
|
5152
|
-
required: boolean;
|
|
5153
|
-
rigId?: string | undefined;
|
|
5154
|
-
requireVerified: boolean;
|
|
5155
|
-
};
|
|
5156
|
-
export type CapabilityPack = {
|
|
5157
|
-
id: string;
|
|
5158
|
-
name: string;
|
|
5159
|
-
description: string;
|
|
5160
|
-
role: string;
|
|
5161
|
-
category: string;
|
|
5162
|
-
version: string;
|
|
5163
|
-
sandboxImage?: string | undefined;
|
|
5164
|
-
sandboxProviderImages?: {
|
|
5165
|
-
modal?: {
|
|
5166
|
-
imageId: string;
|
|
5167
|
-
} | undefined;
|
|
5168
|
-
} | undefined;
|
|
5169
|
-
skills: CapabilityPackSkill[];
|
|
5170
|
-
components: CapabilityPackComponentReference[];
|
|
5171
|
-
rig?: CapabilityPackRigRequirement | undefined;
|
|
5172
|
-
tools: ToolRef[];
|
|
5173
|
-
connectors: CapabilityPackConnector[];
|
|
5174
|
-
knowledge: CapabilityPackKnowledge[];
|
|
5175
|
-
scheduledTaskTemplates: CapabilityPackScheduledTaskTemplate[];
|
|
5176
|
-
automationTemplates?: CapabilityPackAutomationTemplate[] | undefined;
|
|
5177
|
-
variableSet?: CapabilityPackVariableSetSpec | undefined;
|
|
5178
|
-
metadata: Record<string, unknown>;
|
|
5179
|
-
};
|
|
5180
|
-
/** Input shape for registering a pack manifest (server applies defaults). */
|
|
5181
|
-
export type RegisterCapabilityPackRequest = {
|
|
5182
|
-
id: string;
|
|
5183
|
-
name: string;
|
|
5184
|
-
description: string;
|
|
5185
|
-
role: string;
|
|
5186
|
-
category: string;
|
|
5187
|
-
version: string;
|
|
5188
|
-
sandboxImage?: string | undefined;
|
|
5189
|
-
sandboxProviderImages?: {
|
|
5190
|
-
modal?: {
|
|
5191
|
-
imageId: string;
|
|
5192
|
-
} | undefined;
|
|
5193
|
-
} | undefined;
|
|
5194
|
-
skills?: {
|
|
5195
|
-
name?: string | undefined;
|
|
5196
|
-
description?: string | undefined;
|
|
5197
|
-
activationMode?: "workspace_managed" | "session_selected" | undefined;
|
|
5198
|
-
files: CapabilityPackSkillFile[];
|
|
5199
|
-
}[] | undefined;
|
|
5200
|
-
components?: ({
|
|
5201
|
-
key: string;
|
|
5202
|
-
kind: "plugin";
|
|
5203
|
-
pluginKey: string;
|
|
5204
|
-
version: string;
|
|
5205
|
-
manifestDigest: string;
|
|
5206
|
-
required?: boolean | undefined;
|
|
5207
|
-
} | {
|
|
5208
|
-
key: string;
|
|
5209
|
-
kind: "skill";
|
|
5210
|
-
capabilityId: string;
|
|
5211
|
-
contentSha256: string;
|
|
5212
|
-
required?: boolean | undefined;
|
|
5213
|
-
} | {
|
|
5214
|
-
key: string;
|
|
5215
|
-
kind: "integration";
|
|
5216
|
-
capabilityId: string;
|
|
5217
|
-
instanceKey: string;
|
|
5218
|
-
revisionId: string;
|
|
5219
|
-
contentSha256: string;
|
|
5220
|
-
required?: boolean | undefined;
|
|
5221
|
-
} | {
|
|
5222
|
-
key: string;
|
|
5223
|
-
kind: "facet";
|
|
5224
|
-
capabilityId: string;
|
|
5225
|
-
instanceKey: string;
|
|
5226
|
-
facetKey: string;
|
|
5227
|
-
bindingKey: string;
|
|
5228
|
-
configDigest: string;
|
|
5229
|
-
required?: boolean | undefined;
|
|
5230
|
-
})[] | undefined;
|
|
5231
|
-
rig?: {
|
|
5232
|
-
description?: string | undefined;
|
|
5233
|
-
required?: boolean | undefined;
|
|
5234
|
-
rigId?: string | undefined;
|
|
5235
|
-
requireVerified?: boolean | undefined;
|
|
5236
|
-
} | undefined;
|
|
5237
|
-
tools?: ToolRef[] | undefined;
|
|
5238
|
-
connectors?: {
|
|
5239
|
-
id: string;
|
|
5240
|
-
name: string;
|
|
5241
|
-
category: string;
|
|
5242
|
-
authModel: CapabilityPackConnectorAuthModel;
|
|
5243
|
-
providers?: string[] | undefined;
|
|
5244
|
-
scopes?: string[] | undefined;
|
|
5245
|
-
required?: boolean | undefined;
|
|
5246
|
-
metadata?: Record<string, unknown> | undefined;
|
|
5247
|
-
}[] | undefined;
|
|
5248
|
-
knowledge?: {
|
|
5249
|
-
type: "document_base";
|
|
5250
|
-
id: string;
|
|
5251
|
-
name: string;
|
|
5252
|
-
description?: string | null | undefined;
|
|
5253
|
-
required?: boolean | undefined;
|
|
5254
|
-
}[] | undefined;
|
|
5255
|
-
scheduledTaskTemplates?: {
|
|
5256
|
-
id: string;
|
|
5257
|
-
name: string;
|
|
5258
|
-
description: string;
|
|
5259
|
-
defaultSchedule: ScheduledTaskScheduleSpec;
|
|
5260
|
-
defaultRunMode?: ScheduledTaskRunMode | undefined;
|
|
5261
|
-
defaultOverlapPolicy?: ScheduledTaskOverlapPolicy | undefined;
|
|
5262
|
-
prompt?: string | undefined;
|
|
5263
|
-
}[] | undefined;
|
|
5264
|
-
automationTemplates?: {
|
|
5265
|
-
id: string;
|
|
5266
|
-
name: string;
|
|
5267
|
-
description: string;
|
|
5268
|
-
adapterId: string;
|
|
5269
|
-
eventTypes: string[];
|
|
5270
|
-
sessionTemplate: {
|
|
5271
|
-
bundledSkillIds?: BundledSkillId[] | undefined;
|
|
5272
|
-
prompt: string;
|
|
5273
|
-
instructions?: string | null | undefined;
|
|
5274
|
-
resources?: ResourceRef[] | undefined;
|
|
5275
|
-
skills?: CapabilityPackSkill[] | undefined;
|
|
5276
|
-
tools?: ToolRef[] | undefined;
|
|
5277
|
-
firstPartyMcpTools?: string[] | undefined;
|
|
5278
|
-
firstPartyMcpPermissions?: Permission[] | undefined;
|
|
5279
|
-
model?: string | null | undefined;
|
|
5280
|
-
reasoningEffort?: ReasoningEffort | null | undefined;
|
|
5281
|
-
sandboxBackend?: SandboxBackend | null | undefined;
|
|
5282
|
-
policyRole?: string | null | undefined;
|
|
5283
|
-
metadata?: Record<string, unknown> | undefined;
|
|
5284
|
-
};
|
|
5285
|
-
configuration?: Record<string, unknown> | undefined;
|
|
5286
|
-
connectionRequirement?: string | null | undefined;
|
|
5287
|
-
}[] | undefined;
|
|
5288
|
-
variableSet?: {
|
|
5289
|
-
description: string;
|
|
5290
|
-
requiredVariables?: string[] | undefined;
|
|
5291
|
-
required?: boolean | undefined;
|
|
5292
|
-
} | undefined;
|
|
5293
|
-
metadata?: Record<string, unknown> | undefined;
|
|
5294
|
-
};
|
|
5295
|
-
export type WorkspaceRegisteredPack = {
|
|
5296
|
-
accountId: string;
|
|
5297
|
-
workspaceId: string;
|
|
5298
|
-
pack: CapabilityPack;
|
|
5299
|
-
createdAt: string;
|
|
5300
|
-
updatedAt: string;
|
|
5301
|
-
};
|
|
5302
|
-
export type PackInstallationStatus = "installing" | "active" | "needs_attention" | "disabled";
|
|
5303
|
-
export type PackInstallation = {
|
|
5304
|
-
skillPublications?: import("./skills.js").SkillPublicationReceipt[] | undefined;
|
|
5305
|
-
skillWrites?: import("./skills.js").SkillWriteReceipt[] | undefined;
|
|
5306
|
-
skillReleases?: import("./skills.js").SkillSourceReleaseReceipt[] | undefined;
|
|
5307
|
-
id: string;
|
|
5308
|
-
accountId: string;
|
|
5309
|
-
workspaceId: string;
|
|
5310
|
-
packId: string;
|
|
5311
|
-
status: PackInstallationStatus;
|
|
5312
|
-
version: number;
|
|
5313
|
-
/** Exact accepted manifest, not a normalized executable Pack. */
|
|
5314
|
-
manifestSnapshot: Record<string, unknown> | null;
|
|
5315
|
-
manifestDigest: string | null;
|
|
5316
|
-
selectedRigId: string | null;
|
|
5317
|
-
installedBySubjectId: string | null;
|
|
5318
|
-
metadata: Record<string, unknown>;
|
|
5319
|
-
enabledAt: string;
|
|
5320
|
-
updatedAt: string;
|
|
5321
|
-
};
|
|
5153
|
+
export type SessionSkillInput = Omit<SkillArtifactDefinitionInput, "activationMode">;
|
|
5322
5154
|
export type PrReviewProvider = GitCredentialProvider;
|
|
5323
5155
|
export type PrReviewCredentialKind = "github_app" | "managed_github_app" | "provider_token";
|
|
5324
5156
|
export type PrReviewWebhookAuthKind = "hmac_sha256" | "shared_token" | "basic";
|
|
@@ -5421,89 +5253,7 @@ export type PrReviewManagedGitHubSetup = {
|
|
|
5421
5253
|
installations: PrReviewManagedGitHubInstallation[];
|
|
5422
5254
|
missing: string[];
|
|
5423
5255
|
};
|
|
5424
|
-
export type
|
|
5425
|
-
variableSetId?: string | undefined;
|
|
5426
|
-
/** @deprecated use variableSetId */
|
|
5427
|
-
environmentId?: string | undefined;
|
|
5428
|
-
metadata?: Record<string, unknown> | undefined;
|
|
5429
|
-
};
|
|
5430
|
-
export type PackComponentResolutionStatus = "ready" | "missing" | "mismatch";
|
|
5431
|
-
export type PackComponentResolution = {
|
|
5432
|
-
key: string;
|
|
5433
|
-
kind: "plugin" | "skill" | "integration" | "facet" | "inline_skill";
|
|
5434
|
-
capabilityId: string;
|
|
5435
|
-
required: boolean;
|
|
5436
|
-
status: PackComponentResolutionStatus;
|
|
5437
|
-
expectedDigest: string;
|
|
5438
|
-
actualDigest: string | null;
|
|
5439
|
-
resolvedId: string | null;
|
|
5440
|
-
label: string;
|
|
5441
|
-
};
|
|
5442
|
-
export type PackRigResolution = {
|
|
5443
|
-
required: boolean;
|
|
5444
|
-
status: "not_required" | "ready" | "missing" | "mismatch" | "unverified";
|
|
5445
|
-
requestedRigId: string | null;
|
|
5446
|
-
rigId: string | null;
|
|
5447
|
-
rigVersionId: string | null;
|
|
5448
|
-
name: string | null;
|
|
5449
|
-
image: string | null;
|
|
5450
|
-
};
|
|
5451
|
-
export type PreviewPackInstallationRequest = {
|
|
5452
|
-
rigId?: string | undefined;
|
|
5453
|
-
variableSetId?: string | undefined;
|
|
5454
|
-
};
|
|
5455
|
-
export type PackInstallationPreview = {
|
|
5456
|
-
packId: string;
|
|
5457
|
-
packVersion: string;
|
|
5458
|
-
manifestDigest: string;
|
|
5459
|
-
installationVersion: number | null;
|
|
5460
|
-
action: "install" | "update" | "repair";
|
|
5461
|
-
ready: boolean;
|
|
5462
|
-
blockers: string[];
|
|
5463
|
-
components: PackComponentResolution[];
|
|
5464
|
-
rig: PackRigResolution;
|
|
5465
|
-
variableSetId: string | null;
|
|
5466
|
-
legacyInlineSkillCount: number;
|
|
5467
|
-
legacySandboxImage: string | null;
|
|
5468
|
-
};
|
|
5469
|
-
export type InstallPackRequest = {
|
|
5470
|
-
expectedManifestDigest: string;
|
|
5471
|
-
expectedInstallationVersion?: number | undefined;
|
|
5472
|
-
rigId?: string | undefined;
|
|
5473
|
-
variableSetId?: string | undefined;
|
|
5474
|
-
idempotencyKey: string;
|
|
5475
|
-
metadata?: Record<string, unknown> | undefined;
|
|
5476
|
-
};
|
|
5477
|
-
export type PackUninstallPreview = {
|
|
5478
|
-
packId: string;
|
|
5479
|
-
installed: boolean;
|
|
5480
|
-
installationVersion: number | null;
|
|
5481
|
-
components: Array<{
|
|
5482
|
-
key: string;
|
|
5483
|
-
kind: "plugin" | "skill" | "integration" | "facet" | "inline_skill";
|
|
5484
|
-
capabilityId: string;
|
|
5485
|
-
retainedByOtherOwners: boolean;
|
|
5486
|
-
}>;
|
|
5487
|
-
};
|
|
5488
|
-
export type UninstallPackRequest = {
|
|
5489
|
-
expectedInstallationVersion: number;
|
|
5490
|
-
idempotencyKey: string;
|
|
5491
|
-
};
|
|
5492
|
-
export type UninstallPackResult = {
|
|
5493
|
-
skillReleases?: import("./skills.js").SkillSourceReleaseReceipt[] | undefined;
|
|
5494
|
-
packId: string;
|
|
5495
|
-
status: "not_installed" | "uninstalled";
|
|
5496
|
-
retainedComponents: string[];
|
|
5497
|
-
};
|
|
5498
|
-
export type ListPacksResponse = {
|
|
5499
|
-
packs: CapabilityPack[];
|
|
5500
|
-
installations: PackInstallation[];
|
|
5501
|
-
};
|
|
5502
|
-
export type GetPackResponse = {
|
|
5503
|
-
pack: CapabilityPack;
|
|
5504
|
-
installation: PackInstallation | null;
|
|
5505
|
-
};
|
|
5506
|
-
export type CapabilityKind = "pack" | "mcp" | "api" | "skill" | "plugin";
|
|
5256
|
+
export type CapabilityKind = "mcp" | "api" | "skill" | "plugin";
|
|
5507
5257
|
export type CapabilitySource = "built_in" | "library" | "configured" | "public_registry" | "registry" | "manual";
|
|
5508
5258
|
export type CapabilityInstallationStatus = "active" | "disabled";
|
|
5509
5259
|
export type CapabilityCatalogAuthKind = "oauth2" | "api_key" | "none" | "unknown";
|
|
@@ -5565,6 +5315,7 @@ export type CapabilityCatalogItem = {
|
|
|
5565
5315
|
/** The connection backing this enabled installation, or null when none is involved. */
|
|
5566
5316
|
connectionRef: {
|
|
5567
5317
|
connectionId?: string | undefined;
|
|
5318
|
+
accountSelection?: "all_eligible" | undefined;
|
|
5568
5319
|
authoritySource?: "host" | undefined;
|
|
5569
5320
|
providerDomain: string;
|
|
5570
5321
|
kind: string;
|
|
@@ -5605,6 +5356,7 @@ export type CreateCapabilityCatalogItemRequest = {
|
|
|
5605
5356
|
metadata?: Record<string, unknown> | undefined;
|
|
5606
5357
|
};
|
|
5607
5358
|
export type EnableCapabilityRequest = {
|
|
5359
|
+
onlyIfUninstalled?: boolean | undefined;
|
|
5608
5360
|
config?: Record<string, unknown> | undefined;
|
|
5609
5361
|
metadata?: Record<string, unknown> | undefined;
|
|
5610
5362
|
connectionRef?: McpServerConnectionRef | undefined;
|
|
@@ -5621,7 +5373,7 @@ export type DiscoverMcpCapabilitiesResponse = {
|
|
|
5621
5373
|
sourceUrl: string;
|
|
5622
5374
|
};
|
|
5623
5375
|
export type SkillImportSource = "github" | "skills_sh";
|
|
5624
|
-
export type SkillInstallationSource = "library" | "github" | "skills_sh"
|
|
5376
|
+
export type SkillInstallationSource = "library" | "github" | "skills_sh";
|
|
5625
5377
|
export type PreviewSkillImportRequest = {
|
|
5626
5378
|
url: string;
|
|
5627
5379
|
};
|
|
@@ -5677,7 +5429,7 @@ export type InstalledSkill = {
|
|
|
5677
5429
|
status: "installed";
|
|
5678
5430
|
};
|
|
5679
5431
|
export type CapabilityComponentOwner = {
|
|
5680
|
-
kind: "direct" | "plugin" | "
|
|
5432
|
+
kind: "direct" | "plugin" | "migration";
|
|
5681
5433
|
id: string;
|
|
5682
5434
|
removable: boolean;
|
|
5683
5435
|
};
|
|
@@ -6085,19 +5837,30 @@ export type PluginInstallationSummary = {
|
|
|
6085
5837
|
export type ListInstalledPluginsResponse = {
|
|
6086
5838
|
plugins: PluginInstallationSummary[];
|
|
6087
5839
|
};
|
|
5840
|
+
export type PluginUninstallComponentImpact = {
|
|
5841
|
+
capabilityId: string;
|
|
5842
|
+
kind: "skill" | "integration" | "mcp";
|
|
5843
|
+
retainedByOtherOwners: boolean;
|
|
5844
|
+
name: string;
|
|
5845
|
+
disposition: "removed" | "retained" | "inactive";
|
|
5846
|
+
retentionReasons: Array<"other_owners" | "customized" | "re_scoped" | "registry_unavailable">;
|
|
5847
|
+
remainingOwners: Array<{
|
|
5848
|
+
kind: "direct" | "plugin" | "migration";
|
|
5849
|
+
name: string;
|
|
5850
|
+
}>;
|
|
5851
|
+
skillId?: string | undefined;
|
|
5852
|
+
};
|
|
6088
5853
|
export type PluginUninstallPreview = {
|
|
6089
5854
|
pluginKey: string;
|
|
6090
5855
|
installed: boolean;
|
|
6091
5856
|
version: string | null;
|
|
6092
5857
|
installationVersion: number | null;
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
kind: "skill" | "integration" | "mcp";
|
|
6096
|
-
retainedByOtherOwners: boolean;
|
|
6097
|
-
}>;
|
|
5858
|
+
previewToken?: string | undefined;
|
|
5859
|
+
components: PluginUninstallComponentImpact[];
|
|
6098
5860
|
};
|
|
6099
5861
|
export type UninstallPluginRequest = {
|
|
6100
5862
|
expectedInstallationVersion: number;
|
|
5863
|
+
expectedPreviewToken?: string | undefined;
|
|
6101
5864
|
idempotencyKey: string;
|
|
6102
5865
|
};
|
|
6103
5866
|
export type UninstallPluginResult = {
|
|
@@ -6496,8 +6259,7 @@ export type UserMessageEventInput = {
|
|
|
6496
6259
|
controlEtag?: string | undefined;
|
|
6497
6260
|
expectedDraftRevision?: number | undefined;
|
|
6498
6261
|
mcpCredentialUpdates?: SessionMcpCredentialUpdateInput[] | undefined;
|
|
6499
|
-
|
|
6500
|
-
selectedHostMcpDelegations?: CreateSessionRequest["selectedHostMcpDelegations"];
|
|
6262
|
+
connectionAccounts?: McpConnectionAccountSelection[] | undefined;
|
|
6501
6263
|
personalResourceAttachment?: PersonalResourceAttachmentIntent | undefined;
|
|
6502
6264
|
};
|
|
6503
6265
|
};
|
|
@@ -6788,4 +6550,30 @@ export type ModelConnectionAccessResponse = {
|
|
|
6788
6550
|
}>;
|
|
6789
6551
|
personalWorkspacesSupported: boolean;
|
|
6790
6552
|
};
|
|
6791
|
-
export
|
|
6553
|
+
export type ConnectorToolPermission = "allow" | "ask" | "block";
|
|
6554
|
+
export type ConnectorToolPermissionEntry = {
|
|
6555
|
+
name: string;
|
|
6556
|
+
title?: string | undefined;
|
|
6557
|
+
description?: string | undefined;
|
|
6558
|
+
group: "read" | "write" | "other";
|
|
6559
|
+
permission: ConnectorToolPermission;
|
|
6560
|
+
inherited: boolean;
|
|
6561
|
+
approvalRequired: boolean;
|
|
6562
|
+
};
|
|
6563
|
+
export type ConnectorToolPermissionsResponse = {
|
|
6564
|
+
connectionId: string;
|
|
6565
|
+
serverId: string;
|
|
6566
|
+
defaultPermission: ConnectorToolPermission | null;
|
|
6567
|
+
tools: ConnectorToolPermissionEntry[];
|
|
6568
|
+
discoveryError: string | null;
|
|
6569
|
+
canManage: boolean;
|
|
6570
|
+
};
|
|
6571
|
+
export type UpdateConnectorToolPermissionsRequest = {
|
|
6572
|
+
connectionId: string;
|
|
6573
|
+
permission: ConnectorToolPermission;
|
|
6574
|
+
} & ({
|
|
6575
|
+
target: "default";
|
|
6576
|
+
} | {
|
|
6577
|
+
target: "tools";
|
|
6578
|
+
toolNames: string[];
|
|
6579
|
+
});
|