@opengeni/contracts 0.27.0 → 0.30.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/dist/{chunk-S4F2GZPD.js → chunk-YWKPXSLB.js} +2578 -2422
- package/dist/chunk-YWKPXSLB.js.map +1 -0
- package/dist/google-drive.js +1 -1
- package/dist/index.d.ts +197 -7
- package/dist/index.js +39 -1
- package/dist/scoped-knowledge.d.ts +233 -0
- package/package.json +1 -1
- package/src/index.ts +182 -8
- package/src/scoped-knowledge.ts +216 -0
- package/dist/chunk-S4F2GZPD.js.map +0 -1
package/dist/google-drive.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -249,7 +249,7 @@ export type Permission = z.infer<typeof Permission>;
|
|
|
249
249
|
* child whose parent was narrowed must inherit the parent's effective subset,
|
|
250
250
|
* never fall back to a different runtime-local default.
|
|
251
251
|
*/
|
|
252
|
-
export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:read", "files:read", "documents:search", "scheduled_tasks:manage", "scheduled_tasks:run", "goals:manage", "sessions:read", "sessions:create", "sessions:control", "variable-sets:use", "variable-sets:manage", "rigs:use", "github:use", "artifacts:read", "artifacts:publish"];
|
|
252
|
+
export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:read", "files:read", "documents:search", "scheduled_tasks:manage", "scheduled_tasks:run", "goals:manage", "sessions:read", "sessions:create", "sessions:control", "connections:read", "variable-sets:use", "variable-sets:manage", "rigs:use", "github:use", "artifacts:read", "artifacts:publish"];
|
|
253
253
|
/**
|
|
254
254
|
* Exact public catalog for tools served by the broad first-party `opengeni`
|
|
255
255
|
* MCP server. Adding a registration does not make it model-visible: the name
|
|
@@ -258,7 +258,7 @@ export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:r
|
|
|
258
258
|
* `files_get_download_url` intentionally is not in this catalog. It belongs to
|
|
259
259
|
* the dedicated `files` MCP server.
|
|
260
260
|
*/
|
|
261
|
-
export declare const FIRST_PARTY_MCP_TOOL_NAMES: readonly ["set_session_title", "goal_set", "goal_update", "goal_complete", "goal_pause", "memory_search", "memory_save", "memory_correct", "preference_registry_summary", "preference_registry_get", "sandboxes_list", "sandbox_attach", "sandbox_swap", "run_on", "sandbox_provision", "rig_list", "rig_get", "rig_propose_change", "rig_verify", "rig_promote", "sessions_list", "session_get", "session_events", "session_create", "session_send_message", "session_pause", "session_resume", "session_steer", "set_other_session_title", "variable_set_list", "environment_list", "variable_set_set_variable", "environment_set_variable", "github_connect_link", "github_token", "github_repositories_list", "social_connections_list", "social_posts_recent", "social_daily_analysis_context", "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_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", "artifacts_list", "artifacts_get_source", "artifacts_create", "artifacts_publish", "artifacts_rollback"];
|
|
261
|
+
export declare const FIRST_PARTY_MCP_TOOL_NAMES: readonly ["set_session_title", "goal_set", "goal_update", "goal_complete", "goal_pause", "memory_search", "memory_save", "memory_correct", "preference_registry_summary", "preference_registry_get", "sandboxes_list", "sandbox_attach", "sandbox_swap", "run_on", "sandbox_provision", "rig_list", "rig_get", "rig_propose_change", "rig_verify", "rig_promote", "sessions_list", "session_get", "session_events", "session_create", "session_send_message", "session_pause", "session_resume", "session_steer", "set_other_session_title", "variable_set_list", "environment_list", "variable_set_set_variable", "environment_set_variable", "github_connect_link", "github_token", "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", "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_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", "artifacts_list", "artifacts_get_source", "artifacts_create", "artifacts_publish", "artifacts_rollback"];
|
|
262
262
|
export declare const FirstPartyMcpToolName: z.ZodEnum<{
|
|
263
263
|
artifacts_create: "artifacts_create";
|
|
264
264
|
artifacts_get_source: "artifacts_get_source";
|
|
@@ -319,17 +319,22 @@ export declare const FirstPartyMcpToolName: z.ZodEnum<{
|
|
|
319
319
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
320
320
|
social_connections_list: "social_connections_list";
|
|
321
321
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
322
|
+
social_mentions_live: "social_mentions_live";
|
|
323
|
+
social_post_reply: "social_post_reply";
|
|
322
324
|
social_posts_recent: "social_posts_recent";
|
|
325
|
+
social_posts_sync: "social_posts_sync";
|
|
326
|
+
social_search_live: "social_search_live";
|
|
327
|
+
social_thread_fetch: "social_thread_fetch";
|
|
323
328
|
variable_set_list: "variable_set_list";
|
|
324
329
|
variable_set_set_variable: "variable_set_set_variable";
|
|
325
330
|
}>;
|
|
326
331
|
export type FirstPartyMcpToolName = z.infer<typeof FirstPartyMcpToolName>;
|
|
327
332
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
333
|
+
* Connector-wide tools are explicit-only. Ordinary session omission selects
|
|
334
|
+
* the non-connector catalog, while an explicit session policy may still select
|
|
335
|
+
* any catalogued connector tool and remains independently permission-gated.
|
|
331
336
|
*/
|
|
332
|
-
export declare const DEFAULT_FIRST_PARTY_MCP_TOOLS:
|
|
337
|
+
export declare const DEFAULT_FIRST_PARTY_MCP_TOOLS: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "github_token" | "goal_complete" | "goal_pause" | "goal_set" | "goal_update" | "memory_correct" | "memory_save" | "memory_search" | "preference_registry_get" | "preference_registry_summary" | "rig_get" | "rig_list" | "rig_promote" | "rig_propose_change" | "rig_verify" | "run_on" | "sandbox_attach" | "sandbox_provision" | "sandbox_swap" | "sandboxes_list" | "scheduled_task_runs_list" | "scheduled_tasks_create" | "scheduled_tasks_delete" | "scheduled_tasks_get" | "scheduled_tasks_list" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_update" | "session_create" | "session_events" | "session_get" | "session_pause" | "session_resume" | "session_send_message" | "session_steer" | "sessions_list" | "set_other_session_title" | "set_session_title" | "slack_bot_channel_history" | "slack_bot_delete_message" | "slack_bot_file_content" | "slack_bot_file_info" | "slack_bot_list_channels" | "slack_bot_list_files" | "slack_bot_list_users" | "slack_bot_post_message" | "slack_bot_thread_replies" | "social_connections_list" | "social_daily_analysis_context" | "social_mentions_live" | "social_post_reply" | "social_posts_recent" | "social_posts_sync" | "social_search_live" | "social_thread_fetch" | "variable_set_list" | "variable_set_set_variable")[];
|
|
333
338
|
export declare function prefixedMcpToolName(registryId: string, toolName: string): string;
|
|
334
339
|
export declare const ProductAccessMode: z.ZodEnum<{
|
|
335
340
|
configured: "configured";
|
|
@@ -1247,7 +1252,12 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
1247
1252
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
1248
1253
|
social_connections_list: "social_connections_list";
|
|
1249
1254
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
1255
|
+
social_mentions_live: "social_mentions_live";
|
|
1256
|
+
social_post_reply: "social_post_reply";
|
|
1250
1257
|
social_posts_recent: "social_posts_recent";
|
|
1258
|
+
social_posts_sync: "social_posts_sync";
|
|
1259
|
+
social_search_live: "social_search_live";
|
|
1260
|
+
social_thread_fetch: "social_thread_fetch";
|
|
1251
1261
|
variable_set_list: "variable_set_list";
|
|
1252
1262
|
variable_set_set_variable: "variable_set_set_variable";
|
|
1253
1263
|
}>>>;
|
|
@@ -2385,6 +2395,42 @@ export declare const McpServerConnectionRef: z.ZodObject<{
|
|
|
2385
2395
|
}>>;
|
|
2386
2396
|
}, z.core.$strict>;
|
|
2387
2397
|
export type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
|
|
2398
|
+
/** Internal frozen authority for one personal MCP connection. */
|
|
2399
|
+
export declare const McpPersonalConnectionDelegation: z.ZodObject<{
|
|
2400
|
+
serverId: z.ZodString;
|
|
2401
|
+
connectionId: z.ZodString;
|
|
2402
|
+
ownerSubjectId: z.ZodString;
|
|
2403
|
+
providerDomain: z.ZodString;
|
|
2404
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2405
|
+
api_key: "api_key";
|
|
2406
|
+
app_install: "app_install";
|
|
2407
|
+
delegated: "delegated";
|
|
2408
|
+
oauth2: "oauth2";
|
|
2409
|
+
}>>;
|
|
2410
|
+
}, z.core.$strict>;
|
|
2411
|
+
export type McpPersonalConnectionDelegation = z.infer<typeof McpPersonalConnectionDelegation>;
|
|
2412
|
+
/**
|
|
2413
|
+
* Exact personal MCP authority frozen on one causal turn or scheduled task.
|
|
2414
|
+
* One server can have at most one grant; bounded validation keeps corrupt JSON
|
|
2415
|
+
* from becoming executable credential authority at a DB read boundary.
|
|
2416
|
+
*/
|
|
2417
|
+
export declare const McpPersonalConnectionDelegations: z.ZodArray<z.ZodObject<{
|
|
2418
|
+
serverId: z.ZodString;
|
|
2419
|
+
connectionId: z.ZodString;
|
|
2420
|
+
ownerSubjectId: z.ZodString;
|
|
2421
|
+
providerDomain: z.ZodString;
|
|
2422
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2423
|
+
api_key: "api_key";
|
|
2424
|
+
app_install: "app_install";
|
|
2425
|
+
delegated: "delegated";
|
|
2426
|
+
oauth2: "oauth2";
|
|
2427
|
+
}>>;
|
|
2428
|
+
}, z.core.$strict>>;
|
|
2429
|
+
export declare const McpPersonalConnectionSummary: z.ZodObject<{
|
|
2430
|
+
serverId: z.ZodString;
|
|
2431
|
+
providerDomain: z.ZodString;
|
|
2432
|
+
}, z.core.$strict>;
|
|
2433
|
+
export type McpPersonalConnectionSummary = z.infer<typeof McpPersonalConnectionSummary>;
|
|
2388
2434
|
export type McpCredentialsRequest = {
|
|
2389
2435
|
accountId: string;
|
|
2390
2436
|
workspaceId: string;
|
|
@@ -2409,7 +2455,7 @@ export type McpCredentialsRequest = {
|
|
|
2409
2455
|
connectionRef: McpServerConnectionRef;
|
|
2410
2456
|
forceRefresh: boolean;
|
|
2411
2457
|
};
|
|
2412
|
-
export type McpCredentialAuthNeededReason = CredentialAuthNeededReason | "unsupported_auth" | "resource_scope_unavailable";
|
|
2458
|
+
export type McpCredentialAuthNeededReason = CredentialAuthNeededReason | "personal_authority_unavailable" | "unsupported_auth" | "resource_scope_unavailable";
|
|
2413
2459
|
export type McpCredentialResolution = {
|
|
2414
2460
|
status: "ok";
|
|
2415
2461
|
/** Scope echoes are mandatory and verified before any header is used. */
|
|
@@ -3691,7 +3737,12 @@ export declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodO
|
|
|
3691
3737
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
3692
3738
|
social_connections_list: "social_connections_list";
|
|
3693
3739
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
3740
|
+
social_mentions_live: "social_mentions_live";
|
|
3741
|
+
social_post_reply: "social_post_reply";
|
|
3694
3742
|
social_posts_recent: "social_posts_recent";
|
|
3743
|
+
social_posts_sync: "social_posts_sync";
|
|
3744
|
+
social_search_live: "social_search_live";
|
|
3745
|
+
social_thread_fetch: "social_thread_fetch";
|
|
3695
3746
|
variable_set_list: "variable_set_list";
|
|
3696
3747
|
variable_set_set_variable: "variable_set_set_variable";
|
|
3697
3748
|
}>>;
|
|
@@ -4002,6 +4053,10 @@ export declare const SessionTurn: z.ZodObject<{
|
|
|
4002
4053
|
}>;
|
|
4003
4054
|
}, z.core.$strip>;
|
|
4004
4055
|
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4056
|
+
personalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4057
|
+
serverId: z.ZodString;
|
|
4058
|
+
providerDomain: z.ZodString;
|
|
4059
|
+
}, z.core.$strict>>>;
|
|
4005
4060
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
4006
4061
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
4007
4062
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -4386,7 +4441,12 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
|
|
|
4386
4441
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
4387
4442
|
social_connections_list: "social_connections_list";
|
|
4388
4443
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
4444
|
+
social_mentions_live: "social_mentions_live";
|
|
4445
|
+
social_post_reply: "social_post_reply";
|
|
4389
4446
|
social_posts_recent: "social_posts_recent";
|
|
4447
|
+
social_posts_sync: "social_posts_sync";
|
|
4448
|
+
social_search_live: "social_search_live";
|
|
4449
|
+
social_thread_fetch: "social_thread_fetch";
|
|
4390
4450
|
variable_set_list: "variable_set_list";
|
|
4391
4451
|
variable_set_set_variable: "variable_set_set_variable";
|
|
4392
4452
|
}>>>;
|
|
@@ -4568,7 +4628,12 @@ export declare const NewSessionDraft: z.ZodObject<{
|
|
|
4568
4628
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
4569
4629
|
social_connections_list: "social_connections_list";
|
|
4570
4630
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
4631
|
+
social_mentions_live: "social_mentions_live";
|
|
4632
|
+
social_post_reply: "social_post_reply";
|
|
4571
4633
|
social_posts_recent: "social_posts_recent";
|
|
4634
|
+
social_posts_sync: "social_posts_sync";
|
|
4635
|
+
social_search_live: "social_search_live";
|
|
4636
|
+
social_thread_fetch: "social_thread_fetch";
|
|
4572
4637
|
variable_set_list: "variable_set_list";
|
|
4573
4638
|
variable_set_set_variable: "variable_set_set_variable";
|
|
4574
4639
|
}>>>;
|
|
@@ -4750,7 +4815,12 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
|
|
|
4750
4815
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
4751
4816
|
social_connections_list: "social_connections_list";
|
|
4752
4817
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
4818
|
+
social_mentions_live: "social_mentions_live";
|
|
4819
|
+
social_post_reply: "social_post_reply";
|
|
4753
4820
|
social_posts_recent: "social_posts_recent";
|
|
4821
|
+
social_posts_sync: "social_posts_sync";
|
|
4822
|
+
social_search_live: "social_search_live";
|
|
4823
|
+
social_thread_fetch: "social_thread_fetch";
|
|
4754
4824
|
variable_set_list: "variable_set_list";
|
|
4755
4825
|
variable_set_set_variable: "variable_set_set_variable";
|
|
4756
4826
|
}>>>;
|
|
@@ -5167,6 +5237,10 @@ export declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
5167
5237
|
quiescencePendingCount: z.ZodNumber;
|
|
5168
5238
|
}, z.core.$strip>>;
|
|
5169
5239
|
}, z.core.$strip>;
|
|
5240
|
+
activePersonalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5241
|
+
serverId: z.ZodString;
|
|
5242
|
+
providerDomain: z.ZodString;
|
|
5243
|
+
}, z.core.$strict>>>;
|
|
5170
5244
|
stoppingPreviousAttempt: z.ZodBoolean;
|
|
5171
5245
|
items: z.ZodArray<z.ZodObject<{
|
|
5172
5246
|
id: z.ZodString;
|
|
@@ -5275,6 +5349,10 @@ export declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
5275
5349
|
}>;
|
|
5276
5350
|
}, z.core.$strip>;
|
|
5277
5351
|
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5352
|
+
personalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5353
|
+
serverId: z.ZodString;
|
|
5354
|
+
providerDomain: z.ZodString;
|
|
5355
|
+
}, z.core.$strict>>>;
|
|
5278
5356
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
5279
5357
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
5280
5358
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -5829,6 +5907,19 @@ export declare const ScheduledTask: z.ZodObject<{
|
|
|
5829
5907
|
}, z.core.$strip>>;
|
|
5830
5908
|
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
5831
5909
|
}, z.core.$strip>;
|
|
5910
|
+
createdBy: z.ZodDefault<z.ZodObject<{
|
|
5911
|
+
subjectId: z.ZodString;
|
|
5912
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5913
|
+
kind: z.ZodEnum<{
|
|
5914
|
+
service: "service";
|
|
5915
|
+
subject: "subject";
|
|
5916
|
+
}>;
|
|
5917
|
+
}, z.core.$strip>>;
|
|
5918
|
+
createdByContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5919
|
+
personalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5920
|
+
serverId: z.ZodString;
|
|
5921
|
+
providerDomain: z.ZodString;
|
|
5922
|
+
}, z.core.$strict>>>;
|
|
5832
5923
|
reusableSessionId: z.ZodNullable<z.ZodString>;
|
|
5833
5924
|
variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5834
5925
|
environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -6512,6 +6603,7 @@ export declare const SocialProvider: z.ZodEnum<{
|
|
|
6512
6603
|
facebook: "facebook";
|
|
6513
6604
|
instagram: "instagram";
|
|
6514
6605
|
linkedin: "linkedin";
|
|
6606
|
+
reddit: "reddit";
|
|
6515
6607
|
tiktok: "tiktok";
|
|
6516
6608
|
x: "x";
|
|
6517
6609
|
youtube: "youtube";
|
|
@@ -6532,6 +6624,7 @@ export declare const SocialConnection: z.ZodObject<{
|
|
|
6532
6624
|
facebook: "facebook";
|
|
6533
6625
|
instagram: "instagram";
|
|
6534
6626
|
linkedin: "linkedin";
|
|
6627
|
+
reddit: "reddit";
|
|
6535
6628
|
tiktok: "tiktok";
|
|
6536
6629
|
x: "x";
|
|
6537
6630
|
youtube: "youtube";
|
|
@@ -6558,6 +6651,7 @@ export declare const CreateSocialConnectionRequest: z.ZodObject<{
|
|
|
6558
6651
|
facebook: "facebook";
|
|
6559
6652
|
instagram: "instagram";
|
|
6560
6653
|
linkedin: "linkedin";
|
|
6654
|
+
reddit: "reddit";
|
|
6561
6655
|
tiktok: "tiktok";
|
|
6562
6656
|
x: "x";
|
|
6563
6657
|
youtube: "youtube";
|
|
@@ -6586,6 +6680,7 @@ export declare const SocialPost: z.ZodObject<{
|
|
|
6586
6680
|
facebook: "facebook";
|
|
6587
6681
|
instagram: "instagram";
|
|
6588
6682
|
linkedin: "linkedin";
|
|
6683
|
+
reddit: "reddit";
|
|
6589
6684
|
tiktok: "tiktok";
|
|
6590
6685
|
x: "x";
|
|
6591
6686
|
youtube: "youtube";
|
|
@@ -6611,6 +6706,20 @@ export declare const CreateSocialPostRequest: z.ZodObject<{
|
|
|
6611
6706
|
raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6612
6707
|
}, z.core.$strip>;
|
|
6613
6708
|
export type CreateSocialPostRequest = z.infer<typeof CreateSocialPostRequest>;
|
|
6709
|
+
export declare const SocialOAuthProviderId: z.ZodEnum<{
|
|
6710
|
+
reddit: "reddit";
|
|
6711
|
+
x: "x";
|
|
6712
|
+
}>;
|
|
6713
|
+
export type SocialOAuthProviderId = z.infer<typeof SocialOAuthProviderId>;
|
|
6714
|
+
export declare const SocialOAuthStartRequest: z.ZodObject<{
|
|
6715
|
+
provider: z.ZodEnum<{
|
|
6716
|
+
reddit: "reddit";
|
|
6717
|
+
x: "x";
|
|
6718
|
+
}>;
|
|
6719
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6720
|
+
returnPath: z.ZodOptional<z.ZodString>;
|
|
6721
|
+
}, z.core.$strip>;
|
|
6722
|
+
export type SocialOAuthStartRequest = z.infer<typeof SocialOAuthStartRequest>;
|
|
6614
6723
|
export declare const ConnectionKind: z.ZodEnum<{
|
|
6615
6724
|
api_key: "api_key";
|
|
6616
6725
|
app_install: "app_install";
|
|
@@ -6673,8 +6782,22 @@ export declare const ConnectionMetadata: z.ZodObject<{
|
|
|
6673
6782
|
updatedAt: z.ZodString;
|
|
6674
6783
|
}, z.core.$strip>;
|
|
6675
6784
|
export type ConnectionMetadata = z.infer<typeof ConnectionMetadata>;
|
|
6785
|
+
type PersonalSlackCanonicalConnection = Pick<ConnectionMetadata, "id" | "status" | "createdAt" | "updatedAt">;
|
|
6786
|
+
/**
|
|
6787
|
+
* Canonical ordering for duplicate subject-owned Personal Slack rows.
|
|
6788
|
+
*
|
|
6789
|
+
* PostgreSQL broker lookup mirrors this exact sequence: usable status first,
|
|
6790
|
+
* then newest update, newest creation, and immutable UUID descending.
|
|
6791
|
+
*/
|
|
6792
|
+
export declare function comparePersonalSlackCanonicalConnections(left: PersonalSlackCanonicalConnection, right: PersonalSlackCanonicalConnection): number;
|
|
6793
|
+
export declare function selectCanonicalPersonalSlackConnection<T extends PersonalSlackCanonicalConnection>(connections: readonly T[]): T | null;
|
|
6676
6794
|
export declare const ConnectionCredentialBundle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6677
6795
|
export type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
|
|
6796
|
+
export declare const ConnectionOwnership: z.ZodEnum<{
|
|
6797
|
+
personal: "personal";
|
|
6798
|
+
workspace: "workspace";
|
|
6799
|
+
}>;
|
|
6800
|
+
export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
|
|
6678
6801
|
export declare const CreateConnectionRequest: z.ZodObject<{
|
|
6679
6802
|
providerDomain: z.ZodString;
|
|
6680
6803
|
kind: z.ZodEnum<{
|
|
@@ -6683,6 +6806,10 @@ export declare const CreateConnectionRequest: z.ZodObject<{
|
|
|
6683
6806
|
delegated: "delegated";
|
|
6684
6807
|
oauth2: "oauth2";
|
|
6685
6808
|
}>;
|
|
6809
|
+
ownership: z.ZodOptional<z.ZodEnum<{
|
|
6810
|
+
personal: "personal";
|
|
6811
|
+
workspace: "workspace";
|
|
6812
|
+
}>>;
|
|
6686
6813
|
subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6687
6814
|
credential: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6688
6815
|
grantedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -6797,6 +6924,10 @@ export declare const OAuthStartRequest: z.ZodObject<{
|
|
|
6797
6924
|
requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6798
6925
|
returnPath: z.ZodOptional<z.ZodString>;
|
|
6799
6926
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6927
|
+
ownership: z.ZodOptional<z.ZodEnum<{
|
|
6928
|
+
personal: "personal";
|
|
6929
|
+
workspace: "workspace";
|
|
6930
|
+
}>>;
|
|
6800
6931
|
oauthClient: z.ZodOptional<z.ZodObject<{
|
|
6801
6932
|
clientId: z.ZodString;
|
|
6802
6933
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
@@ -7528,7 +7659,12 @@ export declare const Session: z.ZodObject<{
|
|
|
7528
7659
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
7529
7660
|
social_connections_list: "social_connections_list";
|
|
7530
7661
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
7662
|
+
social_mentions_live: "social_mentions_live";
|
|
7663
|
+
social_post_reply: "social_post_reply";
|
|
7531
7664
|
social_posts_recent: "social_posts_recent";
|
|
7665
|
+
social_posts_sync: "social_posts_sync";
|
|
7666
|
+
social_search_live: "social_search_live";
|
|
7667
|
+
social_thread_fetch: "social_thread_fetch";
|
|
7532
7668
|
variable_set_list: "variable_set_list";
|
|
7533
7669
|
variable_set_set_variable: "variable_set_set_variable";
|
|
7534
7670
|
}>>;
|
|
@@ -7932,7 +8068,12 @@ export declare const CreateSessionResponse: z.ZodObject<{
|
|
|
7932
8068
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
7933
8069
|
social_connections_list: "social_connections_list";
|
|
7934
8070
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
8071
|
+
social_mentions_live: "social_mentions_live";
|
|
8072
|
+
social_post_reply: "social_post_reply";
|
|
7935
8073
|
social_posts_recent: "social_posts_recent";
|
|
8074
|
+
social_posts_sync: "social_posts_sync";
|
|
8075
|
+
social_search_live: "social_search_live";
|
|
8076
|
+
social_thread_fetch: "social_thread_fetch";
|
|
7936
8077
|
variable_set_list: "variable_set_list";
|
|
7937
8078
|
variable_set_set_variable: "variable_set_set_variable";
|
|
7938
8079
|
}>>;
|
|
@@ -8342,7 +8483,12 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
8342
8483
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
8343
8484
|
social_connections_list: "social_connections_list";
|
|
8344
8485
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
8486
|
+
social_mentions_live: "social_mentions_live";
|
|
8487
|
+
social_post_reply: "social_post_reply";
|
|
8345
8488
|
social_posts_recent: "social_posts_recent";
|
|
8489
|
+
social_posts_sync: "social_posts_sync";
|
|
8490
|
+
social_search_live: "social_search_live";
|
|
8491
|
+
social_thread_fetch: "social_thread_fetch";
|
|
8346
8492
|
variable_set_list: "variable_set_list";
|
|
8347
8493
|
variable_set_set_variable: "variable_set_set_variable";
|
|
8348
8494
|
}>>;
|
|
@@ -8741,7 +8887,12 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
8741
8887
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
8742
8888
|
social_connections_list: "social_connections_list";
|
|
8743
8889
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
8890
|
+
social_mentions_live: "social_mentions_live";
|
|
8891
|
+
social_post_reply: "social_post_reply";
|
|
8744
8892
|
social_posts_recent: "social_posts_recent";
|
|
8893
|
+
social_posts_sync: "social_posts_sync";
|
|
8894
|
+
social_search_live: "social_search_live";
|
|
8895
|
+
social_thread_fetch: "social_thread_fetch";
|
|
8745
8896
|
variable_set_list: "variable_set_list";
|
|
8746
8897
|
variable_set_set_variable: "variable_set_set_variable";
|
|
8747
8898
|
}>>;
|
|
@@ -9148,7 +9299,12 @@ export declare const SessionLineageResponse: z.ZodObject<{
|
|
|
9148
9299
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
9149
9300
|
social_connections_list: "social_connections_list";
|
|
9150
9301
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
9302
|
+
social_mentions_live: "social_mentions_live";
|
|
9303
|
+
social_post_reply: "social_post_reply";
|
|
9151
9304
|
social_posts_recent: "social_posts_recent";
|
|
9305
|
+
social_posts_sync: "social_posts_sync";
|
|
9306
|
+
social_search_live: "social_search_live";
|
|
9307
|
+
social_thread_fetch: "social_thread_fetch";
|
|
9152
9308
|
variable_set_list: "variable_set_list";
|
|
9153
9309
|
variable_set_set_variable: "variable_set_set_variable";
|
|
9154
9310
|
}>>;
|
|
@@ -9484,6 +9640,7 @@ export declare const ToolAuthNeededPayload: z.ZodObject<{
|
|
|
9484
9640
|
expired: "expired";
|
|
9485
9641
|
insufficient_scope: "insufficient_scope";
|
|
9486
9642
|
missing_connection: "missing_connection";
|
|
9643
|
+
personal_authority_unavailable: "personal_authority_unavailable";
|
|
9487
9644
|
refresh_failed: "refresh_failed";
|
|
9488
9645
|
resource_scope_unavailable: "resource_scope_unavailable";
|
|
9489
9646
|
unsupported_auth: "unsupported_auth";
|
|
@@ -11223,6 +11380,10 @@ export declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
11223
11380
|
quiescencePendingCount: z.ZodNumber;
|
|
11224
11381
|
}, z.core.$strip>>;
|
|
11225
11382
|
}, z.core.$strip>;
|
|
11383
|
+
activePersonalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
11384
|
+
serverId: z.ZodString;
|
|
11385
|
+
providerDomain: z.ZodString;
|
|
11386
|
+
}, z.core.$strict>>>;
|
|
11226
11387
|
stoppingPreviousAttempt: z.ZodBoolean;
|
|
11227
11388
|
items: z.ZodArray<z.ZodObject<{
|
|
11228
11389
|
id: z.ZodString;
|
|
@@ -11331,6 +11492,10 @@ export declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
11331
11492
|
}>;
|
|
11332
11493
|
}, z.core.$strip>;
|
|
11333
11494
|
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11495
|
+
personalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
11496
|
+
serverId: z.ZodString;
|
|
11497
|
+
providerDomain: z.ZodString;
|
|
11498
|
+
}, z.core.$strict>>>;
|
|
11334
11499
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
11335
11500
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
11336
11501
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -11705,7 +11870,12 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
11705
11870
|
slack_bot_thread_replies: "slack_bot_thread_replies";
|
|
11706
11871
|
social_connections_list: "social_connections_list";
|
|
11707
11872
|
social_daily_analysis_context: "social_daily_analysis_context";
|
|
11873
|
+
social_mentions_live: "social_mentions_live";
|
|
11874
|
+
social_post_reply: "social_post_reply";
|
|
11708
11875
|
social_posts_recent: "social_posts_recent";
|
|
11876
|
+
social_posts_sync: "social_posts_sync";
|
|
11877
|
+
social_search_live: "social_search_live";
|
|
11878
|
+
social_thread_fetch: "social_thread_fetch";
|
|
11709
11879
|
variable_set_list: "variable_set_list";
|
|
11710
11880
|
variable_set_set_variable: "variable_set_set_variable";
|
|
11711
11881
|
}>>>;
|
|
@@ -12281,6 +12451,10 @@ export declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
12281
12451
|
}>;
|
|
12282
12452
|
}, z.core.$strip>;
|
|
12283
12453
|
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12454
|
+
personalConnections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12455
|
+
serverId: z.ZodString;
|
|
12456
|
+
providerDomain: z.ZodString;
|
|
12457
|
+
}, z.core.$strict>>>;
|
|
12284
12458
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
12285
12459
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
12286
12460
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -14461,6 +14635,21 @@ export declare const ClientConfig: z.ZodObject<{
|
|
|
14461
14635
|
mode: z.ZodLiteral<"managedSession">;
|
|
14462
14636
|
session: z.ZodLiteral<"cookie">;
|
|
14463
14637
|
}, z.core.$strip>], "mode">>;
|
|
14638
|
+
analytics: z.ZodDefault<z.ZodObject<{
|
|
14639
|
+
consentRequired: z.ZodBoolean;
|
|
14640
|
+
providers: z.ZodObject<{
|
|
14641
|
+
reo: z.ZodOptional<z.ZodObject<{
|
|
14642
|
+
clientId: z.ZodString;
|
|
14643
|
+
}, z.core.$strip>>;
|
|
14644
|
+
posthog: z.ZodOptional<z.ZodObject<{
|
|
14645
|
+
projectKey: z.ZodString;
|
|
14646
|
+
host: z.ZodString;
|
|
14647
|
+
}, z.core.$strip>>;
|
|
14648
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
14649
|
+
measurementId: z.ZodString;
|
|
14650
|
+
}, z.core.$strip>>;
|
|
14651
|
+
}, z.core.$strip>;
|
|
14652
|
+
}, z.core.$strip>>;
|
|
14464
14653
|
structuredServices: z.ZodDefault<z.ZodObject<{
|
|
14465
14654
|
fileSystem: z.ZodBoolean;
|
|
14466
14655
|
git: z.ZodBoolean;
|
|
@@ -14503,3 +14692,4 @@ export * from "./secret-redaction";
|
|
|
14503
14692
|
export * from "./workspace-instruction-policies";
|
|
14504
14693
|
export * from "./workspace-state";
|
|
14505
14694
|
export * from "./preference-registry";
|
|
14695
|
+
export * from "./scoped-knowledge";
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
ConnectionCredentialBundle,
|
|
54
54
|
ConnectionKind,
|
|
55
55
|
ConnectionMetadata,
|
|
56
|
+
ConnectionOwnership,
|
|
56
57
|
ConnectionResponse,
|
|
57
58
|
ConnectionStatus,
|
|
58
59
|
CorrectPreferenceRegistryRequest,
|
|
@@ -215,12 +216,21 @@ import {
|
|
|
215
216
|
InsightsSpendDriver,
|
|
216
217
|
InsightsWarmGroupRow,
|
|
217
218
|
IntegrationClientMetadata,
|
|
219
|
+
KnowledgeChangeProposalTargetKind,
|
|
220
|
+
KnowledgeClaimEvidencePolarity,
|
|
221
|
+
KnowledgeClaimOrigin,
|
|
222
|
+
KnowledgeClaimRelationType,
|
|
223
|
+
KnowledgeClaimReviewState,
|
|
224
|
+
KnowledgeFactObjectKind,
|
|
225
|
+
KnowledgeLifecycleEventType,
|
|
226
|
+
KnowledgeLifecycleState,
|
|
218
227
|
KnowledgeMemory,
|
|
219
228
|
KnowledgeMemoryKind,
|
|
220
229
|
KnowledgeMemorySearchRequest,
|
|
221
230
|
KnowledgeMemoryStatus,
|
|
222
231
|
KnowledgeSourceKind,
|
|
223
232
|
KnowledgeSourceRef,
|
|
233
|
+
KnowledgeSyncRunState,
|
|
224
234
|
LatencyMode,
|
|
225
235
|
LimitAction,
|
|
226
236
|
LimitDecision,
|
|
@@ -237,6 +247,9 @@ import {
|
|
|
237
247
|
ManagedAccount,
|
|
238
248
|
MarketingDailyAnalysisTaskRequest,
|
|
239
249
|
McpConnectionResourceScope,
|
|
250
|
+
McpPersonalConnectionDelegation,
|
|
251
|
+
McpPersonalConnectionDelegations,
|
|
252
|
+
McpPersonalConnectionSummary,
|
|
240
253
|
McpServerConnectionRef,
|
|
241
254
|
MetricSample,
|
|
242
255
|
MintEnrollTokenRequest,
|
|
@@ -383,6 +396,8 @@ import {
|
|
|
383
396
|
ScheduledTaskScheduleSpec,
|
|
384
397
|
ScheduledTaskStatus,
|
|
385
398
|
ScheduledTaskTriggerType,
|
|
399
|
+
ScopedKnowledgeActorKind,
|
|
400
|
+
ScopedKnowledgeScopeKind,
|
|
386
401
|
ServiceTurnInitiator,
|
|
387
402
|
ServiceTurnInitiatorContext,
|
|
388
403
|
Session,
|
|
@@ -443,6 +458,8 @@ import {
|
|
|
443
458
|
SetWorkspaceEnvironmentVariableRequest,
|
|
444
459
|
SocialConnection,
|
|
445
460
|
SocialConnectionStatus,
|
|
461
|
+
SocialOAuthProviderId,
|
|
462
|
+
SocialOAuthStartRequest,
|
|
446
463
|
SocialPost,
|
|
447
464
|
SocialProvider,
|
|
448
465
|
StaticUsageLimits,
|
|
@@ -620,6 +637,7 @@ import {
|
|
|
620
637
|
capabilityCatalogItemIsTrustedForExposure,
|
|
621
638
|
compactSessionEventResult,
|
|
622
639
|
compareCodexFleetCanonicalStringsV1,
|
|
640
|
+
comparePersonalSlackCanonicalConnections,
|
|
623
641
|
createCodexFleetReplayRecordV1,
|
|
624
642
|
createSecretRedactor,
|
|
625
643
|
decodeNativeSnapshotRef,
|
|
@@ -664,6 +682,7 @@ import {
|
|
|
664
682
|
resourceMountPathCollisionKey,
|
|
665
683
|
retainedArtifactReferenceFromFile,
|
|
666
684
|
retainedOutputUnavailable,
|
|
685
|
+
selectCanonicalPersonalSlackConnection,
|
|
667
686
|
sessionEventJsonBytes,
|
|
668
687
|
sessionEventLatestClassToSemanticClass,
|
|
669
688
|
sessionEventMediaPreview,
|
|
@@ -684,7 +703,7 @@ import {
|
|
|
684
703
|
verifyRelayToken,
|
|
685
704
|
verifyStreamToken,
|
|
686
705
|
workspaceControlUtf8Bytes
|
|
687
|
-
} from "./chunk-
|
|
706
|
+
} from "./chunk-YWKPXSLB.js";
|
|
688
707
|
import {
|
|
689
708
|
OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
|
|
690
709
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
@@ -747,6 +766,7 @@ export {
|
|
|
747
766
|
ConnectionCredentialBundle,
|
|
748
767
|
ConnectionKind,
|
|
749
768
|
ConnectionMetadata,
|
|
769
|
+
ConnectionOwnership,
|
|
750
770
|
ConnectionResponse,
|
|
751
771
|
ConnectionStatus,
|
|
752
772
|
CorrectPreferenceRegistryRequest,
|
|
@@ -909,12 +929,21 @@ export {
|
|
|
909
929
|
InsightsSpendDriver,
|
|
910
930
|
InsightsWarmGroupRow,
|
|
911
931
|
IntegrationClientMetadata,
|
|
932
|
+
KnowledgeChangeProposalTargetKind,
|
|
933
|
+
KnowledgeClaimEvidencePolarity,
|
|
934
|
+
KnowledgeClaimOrigin,
|
|
935
|
+
KnowledgeClaimRelationType,
|
|
936
|
+
KnowledgeClaimReviewState,
|
|
937
|
+
KnowledgeFactObjectKind,
|
|
938
|
+
KnowledgeLifecycleEventType,
|
|
939
|
+
KnowledgeLifecycleState,
|
|
912
940
|
KnowledgeMemory,
|
|
913
941
|
KnowledgeMemoryKind,
|
|
914
942
|
KnowledgeMemorySearchRequest,
|
|
915
943
|
KnowledgeMemoryStatus,
|
|
916
944
|
KnowledgeSourceKind,
|
|
917
945
|
KnowledgeSourceRef,
|
|
946
|
+
KnowledgeSyncRunState,
|
|
918
947
|
LatencyMode,
|
|
919
948
|
LimitAction,
|
|
920
949
|
LimitDecision,
|
|
@@ -931,6 +960,9 @@ export {
|
|
|
931
960
|
ManagedAccount,
|
|
932
961
|
MarketingDailyAnalysisTaskRequest,
|
|
933
962
|
McpConnectionResourceScope,
|
|
963
|
+
McpPersonalConnectionDelegation,
|
|
964
|
+
McpPersonalConnectionDelegations,
|
|
965
|
+
McpPersonalConnectionSummary,
|
|
934
966
|
McpServerConnectionRef,
|
|
935
967
|
MetricSample,
|
|
936
968
|
MintEnrollTokenRequest,
|
|
@@ -1080,6 +1112,8 @@ export {
|
|
|
1080
1112
|
ScheduledTaskScheduleSpec,
|
|
1081
1113
|
ScheduledTaskStatus,
|
|
1082
1114
|
ScheduledTaskTriggerType,
|
|
1115
|
+
ScopedKnowledgeActorKind,
|
|
1116
|
+
ScopedKnowledgeScopeKind,
|
|
1083
1117
|
ServiceTurnInitiator,
|
|
1084
1118
|
ServiceTurnInitiatorContext,
|
|
1085
1119
|
Session,
|
|
@@ -1140,6 +1174,8 @@ export {
|
|
|
1140
1174
|
SetWorkspaceEnvironmentVariableRequest,
|
|
1141
1175
|
SocialConnection,
|
|
1142
1176
|
SocialConnectionStatus,
|
|
1177
|
+
SocialOAuthProviderId,
|
|
1178
|
+
SocialOAuthStartRequest,
|
|
1143
1179
|
SocialPost,
|
|
1144
1180
|
SocialProvider,
|
|
1145
1181
|
StaticUsageLimits,
|
|
@@ -1318,6 +1354,7 @@ export {
|
|
|
1318
1354
|
capabilityCatalogItemIsTrustedForExposure,
|
|
1319
1355
|
compactSessionEventResult,
|
|
1320
1356
|
compareCodexFleetCanonicalStringsV1,
|
|
1357
|
+
comparePersonalSlackCanonicalConnections,
|
|
1321
1358
|
createCodexFleetReplayRecordV1,
|
|
1322
1359
|
createSecretRedactor,
|
|
1323
1360
|
decodeNativeSnapshotRef,
|
|
@@ -1363,6 +1400,7 @@ export {
|
|
|
1363
1400
|
resourceMountPathCollisionKey,
|
|
1364
1401
|
retainedArtifactReferenceFromFile,
|
|
1365
1402
|
retainedOutputUnavailable,
|
|
1403
|
+
selectCanonicalPersonalSlackConnection,
|
|
1366
1404
|
sessionEventJsonBytes,
|
|
1367
1405
|
sessionEventLatestClassToSemanticClass,
|
|
1368
1406
|
sessionEventMediaPreview,
|