@opengeni/contracts 0.26.1 → 0.28.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 CHANGED
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { type SessionEventBoundarySurface } from "./event-preview";
3
3
  export * from "./slack-bot-scopes";
4
+ export { CreateWorkspaceArtifactRequest, PublishWorkspaceArtifactVersionRequest, RollbackWorkspaceArtifactRequest, WorkspaceArtifact, WorkspaceArtifactContentResponse, WorkspaceArtifactDetailResponse, WorkspaceArtifactEvent, WorkspaceArtifactEventType, WorkspaceArtifactHtml, WorkspaceArtifactListQuery, WorkspaceArtifactListResponse, WorkspaceArtifactMutationResponse, WorkspaceArtifactSlug, WorkspaceArtifactStatus, WorkspaceArtifactVersion, WORKSPACE_ARTIFACT_CURSOR_MAX_CHARS, WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS, WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES, WORKSPACE_ARTIFACT_LIST_DEFAULT, WORKSPACE_ARTIFACT_LIST_MAX, WORKSPACE_ARTIFACT_TITLE_MAX_CHARS, normalizeWorkspaceArtifactSlug, } from "./artifacts";
4
5
  export { SESSION_EVENT_PAYLOAD_MAX_BYTES, approximateSessionEventTokens, boundSessionEventPayload, measureSessionEventJson, sessionEventJsonBytes, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, type BoundSessionEventPayloadOptions, type SessionEventBoundarySurface, type SessionEventMediaPreview, type SessionEventJsonMeasurement, type SessionEventPayloadTruncation, } from "./event-preview";
5
6
  export { RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, RetainedArtifactMetadataSchema, RetainedArtifactReferenceSchema, RetainedArtifactUnavailableSchema, RetainedOutputEvidenceSchema, RetainedOutputKind, RetainedOutputUnavailableReason, retainedArtifactReferenceFromFile, retainedOutputUnavailable, resolveRetainedOutputRange, validateRetainedOutputEvidence, type RetainedArtifactFileInput, type RetainedArtifactMetadata, type RetainedArtifactReference, type RetainedArtifactUnavailable, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, } from "./retained-output";
6
7
  export { NATIVE_SNAPSHOT_PREFIXES, WORKSPACE_ARCHIVE_DESCRIPTOR_VERSION, backendForNativeSnapshotProvider, decodeNativeSnapshotRef, parseWorkspaceArchiveDescriptor, type NativeSnapshotDescriptor, type NativeSnapshotProvider, type NativeSnapshotRef, type TarWorkspaceArchiveDescriptor, type WorkspaceArchiveDescriptor, type WorkspaceTreeFingerprint, } from "./sandbox-snapshots";
@@ -201,6 +202,8 @@ export declare const Permission: z.ZodEnum<{
201
202
  "account:admin": "account:admin";
202
203
  "account:read": "account:read";
203
204
  "api_keys:manage": "api_keys:manage";
205
+ "artifacts:publish": "artifacts:publish";
206
+ "artifacts:read": "artifacts:read";
204
207
  "billing:manage": "billing:manage";
205
208
  "billing:read": "billing:read";
206
209
  "connections:read": "connections:read";
@@ -246,7 +249,7 @@ export type Permission = z.infer<typeof Permission>;
246
249
  * child whose parent was narrowed must inherit the parent's effective subset,
247
250
  * never fall back to a different runtime-local default.
248
251
  */
249
- 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"];
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"];
250
253
  /**
251
254
  * Exact public catalog for tools served by the broad first-party `opengeni`
252
255
  * MCP server. Adding a registration does not make it model-visible: the name
@@ -255,8 +258,13 @@ export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:r
255
258
  * `files_get_download_url` intentionally is not in this catalog. It belongs to
256
259
  * the dedicated `files` MCP server.
257
260
  */
258
- 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"];
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"];
259
262
  export declare const FirstPartyMcpToolName: z.ZodEnum<{
263
+ artifacts_create: "artifacts_create";
264
+ artifacts_get_source: "artifacts_get_source";
265
+ artifacts_list: "artifacts_list";
266
+ artifacts_publish: "artifacts_publish";
267
+ artifacts_rollback: "artifacts_rollback";
260
268
  environment_list: "environment_list";
261
269
  environment_set_variable: "environment_set_variable";
262
270
  github_connect_link: "github_connect_link";
@@ -311,17 +319,22 @@ export declare const FirstPartyMcpToolName: z.ZodEnum<{
311
319
  slack_bot_thread_replies: "slack_bot_thread_replies";
312
320
  social_connections_list: "social_connections_list";
313
321
  social_daily_analysis_context: "social_daily_analysis_context";
322
+ social_mentions_live: "social_mentions_live";
323
+ social_post_reply: "social_post_reply";
314
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";
315
328
  variable_set_list: "variable_set_list";
316
329
  variable_set_set_variable: "variable_set_set_variable";
317
330
  }>;
318
331
  export type FirstPartyMcpToolName = z.infer<typeof FirstPartyMcpToolName>;
319
332
  /**
320
- * Every catalogued OpenGeni tool is selected by default. Registration-time
321
- * authorization remains the independent access boundary; an explicit session
322
- * policy may narrow this model-visible set.
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.
323
336
  */
324
- export declare const DEFAULT_FIRST_PARTY_MCP_TOOLS: 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"];
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")[];
325
338
  export declare function prefixedMcpToolName(registryId: string, toolName: string): string;
326
339
  export declare const ProductAccessMode: z.ZodEnum<{
327
340
  configured: "configured";
@@ -889,6 +902,8 @@ export declare const AccountGrant: z.ZodObject<{
889
902
  "account:admin": "account:admin";
890
903
  "account:read": "account:read";
891
904
  "api_keys:manage": "api_keys:manage";
905
+ "artifacts:publish": "artifacts:publish";
906
+ "artifacts:read": "artifacts:read";
892
907
  "billing:manage": "billing:manage";
893
908
  "billing:read": "billing:read";
894
909
  "connections:read": "connections:read";
@@ -937,6 +952,8 @@ export declare const AccessGrant: z.ZodObject<{
937
952
  "account:admin": "account:admin";
938
953
  "account:read": "account:read";
939
954
  "api_keys:manage": "api_keys:manage";
955
+ "artifacts:publish": "artifacts:publish";
956
+ "artifacts:read": "artifacts:read";
940
957
  "billing:manage": "billing:manage";
941
958
  "billing:read": "billing:read";
942
959
  "connections:read": "connections:read";
@@ -1010,6 +1027,8 @@ export declare const AccessContext: z.ZodObject<{
1010
1027
  "account:admin": "account:admin";
1011
1028
  "account:read": "account:read";
1012
1029
  "api_keys:manage": "api_keys:manage";
1030
+ "artifacts:publish": "artifacts:publish";
1031
+ "artifacts:read": "artifacts:read";
1013
1032
  "billing:manage": "billing:manage";
1014
1033
  "billing:read": "billing:read";
1015
1034
  "connections:read": "connections:read";
@@ -1057,6 +1076,8 @@ export declare const AccessContext: z.ZodObject<{
1057
1076
  "account:admin": "account:admin";
1058
1077
  "account:read": "account:read";
1059
1078
  "api_keys:manage": "api_keys:manage";
1079
+ "artifacts:publish": "artifacts:publish";
1080
+ "artifacts:read": "artifacts:read";
1060
1081
  "billing:manage": "billing:manage";
1061
1082
  "billing:read": "billing:read";
1062
1083
  "connections:read": "connections:read";
@@ -1121,6 +1142,8 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
1121
1142
  "account:admin": "account:admin";
1122
1143
  "account:read": "account:read";
1123
1144
  "api_keys:manage": "api_keys:manage";
1145
+ "artifacts:publish": "artifacts:publish";
1146
+ "artifacts:read": "artifacts:read";
1124
1147
  "billing:manage": "billing:manage";
1125
1148
  "billing:read": "billing:read";
1126
1149
  "connections:read": "connections:read";
@@ -1170,6 +1193,11 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
1170
1193
  serviceInitiatorContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1171
1194
  sessionId: z.ZodOptional<z.ZodString>;
1172
1195
  firstPartyMcpTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1196
+ artifacts_create: "artifacts_create";
1197
+ artifacts_get_source: "artifacts_get_source";
1198
+ artifacts_list: "artifacts_list";
1199
+ artifacts_publish: "artifacts_publish";
1200
+ artifacts_rollback: "artifacts_rollback";
1173
1201
  environment_list: "environment_list";
1174
1202
  environment_set_variable: "environment_set_variable";
1175
1203
  github_connect_link: "github_connect_link";
@@ -1224,7 +1252,12 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
1224
1252
  slack_bot_thread_replies: "slack_bot_thread_replies";
1225
1253
  social_connections_list: "social_connections_list";
1226
1254
  social_daily_analysis_context: "social_daily_analysis_context";
1255
+ social_mentions_live: "social_mentions_live";
1256
+ social_post_reply: "social_post_reply";
1227
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";
1228
1261
  variable_set_list: "variable_set_list";
1229
1262
  variable_set_set_variable: "variable_set_set_variable";
1230
1263
  }>>>;
@@ -1332,6 +1365,8 @@ export declare const ApiKey: z.ZodObject<{
1332
1365
  "account:admin": "account:admin";
1333
1366
  "account:read": "account:read";
1334
1367
  "api_keys:manage": "api_keys:manage";
1368
+ "artifacts:publish": "artifacts:publish";
1369
+ "artifacts:read": "artifacts:read";
1335
1370
  "billing:manage": "billing:manage";
1336
1371
  "billing:read": "billing:read";
1337
1372
  "connections:read": "connections:read";
@@ -1382,6 +1417,8 @@ export declare const CreateApiKeyRequest: z.ZodObject<{
1382
1417
  "account:admin": "account:admin";
1383
1418
  "account:read": "account:read";
1384
1419
  "api_keys:manage": "api_keys:manage";
1420
+ "artifacts:publish": "artifacts:publish";
1421
+ "artifacts:read": "artifacts:read";
1385
1422
  "billing:manage": "billing:manage";
1386
1423
  "billing:read": "billing:read";
1387
1424
  "connections:read": "connections:read";
@@ -1432,6 +1469,8 @@ export declare const CreateApiKeyResponse: z.ZodObject<{
1432
1469
  "account:admin": "account:admin";
1433
1470
  "account:read": "account:read";
1434
1471
  "api_keys:manage": "api_keys:manage";
1472
+ "artifacts:publish": "artifacts:publish";
1473
+ "artifacts:read": "artifacts:read";
1435
1474
  "billing:manage": "billing:manage";
1436
1475
  "billing:read": "billing:read";
1437
1476
  "connections:read": "connections:read";
@@ -1485,6 +1524,8 @@ export declare const WorkspaceMember: z.ZodObject<{
1485
1524
  "account:admin": "account:admin";
1486
1525
  "account:read": "account:read";
1487
1526
  "api_keys:manage": "api_keys:manage";
1527
+ "artifacts:publish": "artifacts:publish";
1528
+ "artifacts:read": "artifacts:read";
1488
1529
  "billing:manage": "billing:manage";
1489
1530
  "billing:read": "billing:read";
1490
1531
  "connections:read": "connections:read";
@@ -1533,6 +1574,8 @@ export declare const ListWorkspaceMembersResponse: z.ZodObject<{
1533
1574
  "account:admin": "account:admin";
1534
1575
  "account:read": "account:read";
1535
1576
  "api_keys:manage": "api_keys:manage";
1577
+ "artifacts:publish": "artifacts:publish";
1578
+ "artifacts:read": "artifacts:read";
1536
1579
  "billing:manage": "billing:manage";
1537
1580
  "billing:read": "billing:read";
1538
1581
  "connections:read": "connections:read";
@@ -1580,6 +1623,8 @@ export declare const AddWorkspaceMemberRequest: z.ZodObject<{
1580
1623
  "account:admin": "account:admin";
1581
1624
  "account:read": "account:read";
1582
1625
  "api_keys:manage": "api_keys:manage";
1626
+ "artifacts:publish": "artifacts:publish";
1627
+ "artifacts:read": "artifacts:read";
1583
1628
  "billing:manage": "billing:manage";
1584
1629
  "billing:read": "billing:read";
1585
1630
  "connections:read": "connections:read";
@@ -1624,6 +1669,8 @@ export declare const UpdateWorkspaceMemberRequest: z.ZodObject<{
1624
1669
  "account:admin": "account:admin";
1625
1670
  "account:read": "account:read";
1626
1671
  "api_keys:manage": "api_keys:manage";
1672
+ "artifacts:publish": "artifacts:publish";
1673
+ "artifacts:read": "artifacts:read";
1627
1674
  "billing:manage": "billing:manage";
1628
1675
  "billing:read": "billing:read";
1629
1676
  "connections:read": "connections:read";
@@ -3595,6 +3642,11 @@ export declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodO
3595
3642
  optional: z.ZodOptional<z.ZodBoolean>;
3596
3643
  }, z.core.$strip>>;
3597
3644
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
3645
+ artifacts_create: "artifacts_create";
3646
+ artifacts_get_source: "artifacts_get_source";
3647
+ artifacts_list: "artifacts_list";
3648
+ artifacts_publish: "artifacts_publish";
3649
+ artifacts_rollback: "artifacts_rollback";
3598
3650
  environment_list: "environment_list";
3599
3651
  environment_set_variable: "environment_set_variable";
3600
3652
  github_connect_link: "github_connect_link";
@@ -3649,7 +3701,12 @@ export declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodO
3649
3701
  slack_bot_thread_replies: "slack_bot_thread_replies";
3650
3702
  social_connections_list: "social_connections_list";
3651
3703
  social_daily_analysis_context: "social_daily_analysis_context";
3704
+ social_mentions_live: "social_mentions_live";
3705
+ social_post_reply: "social_post_reply";
3652
3706
  social_posts_recent: "social_posts_recent";
3707
+ social_posts_sync: "social_posts_sync";
3708
+ social_search_live: "social_search_live";
3709
+ social_thread_fetch: "social_thread_fetch";
3653
3710
  variable_set_list: "variable_set_list";
3654
3711
  variable_set_set_variable: "variable_set_set_variable";
3655
3712
  }>>;
@@ -4246,6 +4303,8 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
4246
4303
  "account:admin": "account:admin";
4247
4304
  "account:read": "account:read";
4248
4305
  "api_keys:manage": "api_keys:manage";
4306
+ "artifacts:publish": "artifacts:publish";
4307
+ "artifacts:read": "artifacts:read";
4249
4308
  "billing:manage": "billing:manage";
4250
4309
  "billing:read": "billing:read";
4251
4310
  "connections:read": "connections:read";
@@ -4283,6 +4342,11 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
4283
4342
  "workspace:read": "workspace:read";
4284
4343
  }>>>;
4285
4344
  firstPartyMcpTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4345
+ artifacts_create: "artifacts_create";
4346
+ artifacts_get_source: "artifacts_get_source";
4347
+ artifacts_list: "artifacts_list";
4348
+ artifacts_publish: "artifacts_publish";
4349
+ artifacts_rollback: "artifacts_rollback";
4286
4350
  environment_list: "environment_list";
4287
4351
  environment_set_variable: "environment_set_variable";
4288
4352
  github_connect_link: "github_connect_link";
@@ -4337,7 +4401,12 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
4337
4401
  slack_bot_thread_replies: "slack_bot_thread_replies";
4338
4402
  social_connections_list: "social_connections_list";
4339
4403
  social_daily_analysis_context: "social_daily_analysis_context";
4404
+ social_mentions_live: "social_mentions_live";
4405
+ social_post_reply: "social_post_reply";
4340
4406
  social_posts_recent: "social_posts_recent";
4407
+ social_posts_sync: "social_posts_sync";
4408
+ social_search_live: "social_search_live";
4409
+ social_thread_fetch: "social_thread_fetch";
4341
4410
  variable_set_list: "variable_set_list";
4342
4411
  variable_set_set_variable: "variable_set_set_variable";
4343
4412
  }>>>;
@@ -4421,6 +4490,8 @@ export declare const NewSessionDraft: z.ZodObject<{
4421
4490
  "account:admin": "account:admin";
4422
4491
  "account:read": "account:read";
4423
4492
  "api_keys:manage": "api_keys:manage";
4493
+ "artifacts:publish": "artifacts:publish";
4494
+ "artifacts:read": "artifacts:read";
4424
4495
  "billing:manage": "billing:manage";
4425
4496
  "billing:read": "billing:read";
4426
4497
  "connections:read": "connections:read";
@@ -4458,6 +4529,11 @@ export declare const NewSessionDraft: z.ZodObject<{
4458
4529
  "workspace:read": "workspace:read";
4459
4530
  }>>>;
4460
4531
  firstPartyMcpTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4532
+ artifacts_create: "artifacts_create";
4533
+ artifacts_get_source: "artifacts_get_source";
4534
+ artifacts_list: "artifacts_list";
4535
+ artifacts_publish: "artifacts_publish";
4536
+ artifacts_rollback: "artifacts_rollback";
4461
4537
  environment_list: "environment_list";
4462
4538
  environment_set_variable: "environment_set_variable";
4463
4539
  github_connect_link: "github_connect_link";
@@ -4512,7 +4588,12 @@ export declare const NewSessionDraft: z.ZodObject<{
4512
4588
  slack_bot_thread_replies: "slack_bot_thread_replies";
4513
4589
  social_connections_list: "social_connections_list";
4514
4590
  social_daily_analysis_context: "social_daily_analysis_context";
4591
+ social_mentions_live: "social_mentions_live";
4592
+ social_post_reply: "social_post_reply";
4515
4593
  social_posts_recent: "social_posts_recent";
4594
+ social_posts_sync: "social_posts_sync";
4595
+ social_search_live: "social_search_live";
4596
+ social_thread_fetch: "social_thread_fetch";
4516
4597
  variable_set_list: "variable_set_list";
4517
4598
  variable_set_set_variable: "variable_set_set_variable";
4518
4599
  }>>>;
@@ -4596,6 +4677,8 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
4596
4677
  "account:admin": "account:admin";
4597
4678
  "account:read": "account:read";
4598
4679
  "api_keys:manage": "api_keys:manage";
4680
+ "artifacts:publish": "artifacts:publish";
4681
+ "artifacts:read": "artifacts:read";
4599
4682
  "billing:manage": "billing:manage";
4600
4683
  "billing:read": "billing:read";
4601
4684
  "connections:read": "connections:read";
@@ -4633,6 +4716,11 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
4633
4716
  "workspace:read": "workspace:read";
4634
4717
  }>>>;
4635
4718
  firstPartyMcpTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4719
+ artifacts_create: "artifacts_create";
4720
+ artifacts_get_source: "artifacts_get_source";
4721
+ artifacts_list: "artifacts_list";
4722
+ artifacts_publish: "artifacts_publish";
4723
+ artifacts_rollback: "artifacts_rollback";
4636
4724
  environment_list: "environment_list";
4637
4725
  environment_set_variable: "environment_set_variable";
4638
4726
  github_connect_link: "github_connect_link";
@@ -4687,7 +4775,12 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
4687
4775
  slack_bot_thread_replies: "slack_bot_thread_replies";
4688
4776
  social_connections_list: "social_connections_list";
4689
4777
  social_daily_analysis_context: "social_daily_analysis_context";
4778
+ social_mentions_live: "social_mentions_live";
4779
+ social_post_reply: "social_post_reply";
4690
4780
  social_posts_recent: "social_posts_recent";
4781
+ social_posts_sync: "social_posts_sync";
4782
+ social_search_live: "social_search_live";
4783
+ social_thread_fetch: "social_thread_fetch";
4691
4784
  variable_set_list: "variable_set_list";
4692
4785
  variable_set_set_variable: "variable_set_set_variable";
4693
4786
  }>>>;
@@ -6449,6 +6542,7 @@ export declare const SocialProvider: z.ZodEnum<{
6449
6542
  facebook: "facebook";
6450
6543
  instagram: "instagram";
6451
6544
  linkedin: "linkedin";
6545
+ reddit: "reddit";
6452
6546
  tiktok: "tiktok";
6453
6547
  x: "x";
6454
6548
  youtube: "youtube";
@@ -6469,6 +6563,7 @@ export declare const SocialConnection: z.ZodObject<{
6469
6563
  facebook: "facebook";
6470
6564
  instagram: "instagram";
6471
6565
  linkedin: "linkedin";
6566
+ reddit: "reddit";
6472
6567
  tiktok: "tiktok";
6473
6568
  x: "x";
6474
6569
  youtube: "youtube";
@@ -6495,6 +6590,7 @@ export declare const CreateSocialConnectionRequest: z.ZodObject<{
6495
6590
  facebook: "facebook";
6496
6591
  instagram: "instagram";
6497
6592
  linkedin: "linkedin";
6593
+ reddit: "reddit";
6498
6594
  tiktok: "tiktok";
6499
6595
  x: "x";
6500
6596
  youtube: "youtube";
@@ -6523,6 +6619,7 @@ export declare const SocialPost: z.ZodObject<{
6523
6619
  facebook: "facebook";
6524
6620
  instagram: "instagram";
6525
6621
  linkedin: "linkedin";
6622
+ reddit: "reddit";
6526
6623
  tiktok: "tiktok";
6527
6624
  x: "x";
6528
6625
  youtube: "youtube";
@@ -6548,6 +6645,20 @@ export declare const CreateSocialPostRequest: z.ZodObject<{
6548
6645
  raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6549
6646
  }, z.core.$strip>;
6550
6647
  export type CreateSocialPostRequest = z.infer<typeof CreateSocialPostRequest>;
6648
+ export declare const SocialOAuthProviderId: z.ZodEnum<{
6649
+ reddit: "reddit";
6650
+ x: "x";
6651
+ }>;
6652
+ export type SocialOAuthProviderId = z.infer<typeof SocialOAuthProviderId>;
6653
+ export declare const SocialOAuthStartRequest: z.ZodObject<{
6654
+ provider: z.ZodEnum<{
6655
+ reddit: "reddit";
6656
+ x: "x";
6657
+ }>;
6658
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
6659
+ returnPath: z.ZodOptional<z.ZodString>;
6660
+ }, z.core.$strip>;
6661
+ export type SocialOAuthStartRequest = z.infer<typeof SocialOAuthStartRequest>;
6551
6662
  export declare const ConnectionKind: z.ZodEnum<{
6552
6663
  api_key: "api_key";
6553
6664
  app_install: "app_install";
@@ -6610,6 +6721,15 @@ export declare const ConnectionMetadata: z.ZodObject<{
6610
6721
  updatedAt: z.ZodString;
6611
6722
  }, z.core.$strip>;
6612
6723
  export type ConnectionMetadata = z.infer<typeof ConnectionMetadata>;
6724
+ type PersonalSlackCanonicalConnection = Pick<ConnectionMetadata, "id" | "status" | "createdAt" | "updatedAt">;
6725
+ /**
6726
+ * Canonical ordering for duplicate subject-owned Personal Slack rows.
6727
+ *
6728
+ * PostgreSQL broker lookup mirrors this exact sequence: usable status first,
6729
+ * then newest update, newest creation, and immutable UUID descending.
6730
+ */
6731
+ export declare function comparePersonalSlackCanonicalConnections(left: PersonalSlackCanonicalConnection, right: PersonalSlackCanonicalConnection): number;
6732
+ export declare function selectCanonicalPersonalSlackConnection<T extends PersonalSlackCanonicalConnection>(connections: readonly T[]): T | null;
6613
6733
  export declare const ConnectionCredentialBundle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6614
6734
  export type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
6615
6735
  export declare const CreateConnectionRequest: z.ZodObject<{
@@ -7367,6 +7487,8 @@ export declare const Session: z.ZodObject<{
7367
7487
  "account:admin": "account:admin";
7368
7488
  "account:read": "account:read";
7369
7489
  "api_keys:manage": "api_keys:manage";
7490
+ "artifacts:publish": "artifacts:publish";
7491
+ "artifacts:read": "artifacts:read";
7370
7492
  "billing:manage": "billing:manage";
7371
7493
  "billing:read": "billing:read";
7372
7494
  "connections:read": "connections:read";
@@ -7404,6 +7526,11 @@ export declare const Session: z.ZodObject<{
7404
7526
  "workspace:read": "workspace:read";
7405
7527
  }>>>;
7406
7528
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
7529
+ artifacts_create: "artifacts_create";
7530
+ artifacts_get_source: "artifacts_get_source";
7531
+ artifacts_list: "artifacts_list";
7532
+ artifacts_publish: "artifacts_publish";
7533
+ artifacts_rollback: "artifacts_rollback";
7407
7534
  environment_list: "environment_list";
7408
7535
  environment_set_variable: "environment_set_variable";
7409
7536
  github_connect_link: "github_connect_link";
@@ -7458,7 +7585,12 @@ export declare const Session: z.ZodObject<{
7458
7585
  slack_bot_thread_replies: "slack_bot_thread_replies";
7459
7586
  social_connections_list: "social_connections_list";
7460
7587
  social_daily_analysis_context: "social_daily_analysis_context";
7588
+ social_mentions_live: "social_mentions_live";
7589
+ social_post_reply: "social_post_reply";
7461
7590
  social_posts_recent: "social_posts_recent";
7591
+ social_posts_sync: "social_posts_sync";
7592
+ social_search_live: "social_search_live";
7593
+ social_thread_fetch: "social_thread_fetch";
7462
7594
  variable_set_list: "variable_set_list";
7463
7595
  variable_set_set_variable: "variable_set_set_variable";
7464
7596
  }>>;
@@ -7764,6 +7896,8 @@ export declare const CreateSessionResponse: z.ZodObject<{
7764
7896
  "account:admin": "account:admin";
7765
7897
  "account:read": "account:read";
7766
7898
  "api_keys:manage": "api_keys:manage";
7899
+ "artifacts:publish": "artifacts:publish";
7900
+ "artifacts:read": "artifacts:read";
7767
7901
  "billing:manage": "billing:manage";
7768
7902
  "billing:read": "billing:read";
7769
7903
  "connections:read": "connections:read";
@@ -7801,6 +7935,11 @@ export declare const CreateSessionResponse: z.ZodObject<{
7801
7935
  "workspace:read": "workspace:read";
7802
7936
  }>>>;
7803
7937
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
7938
+ artifacts_create: "artifacts_create";
7939
+ artifacts_get_source: "artifacts_get_source";
7940
+ artifacts_list: "artifacts_list";
7941
+ artifacts_publish: "artifacts_publish";
7942
+ artifacts_rollback: "artifacts_rollback";
7804
7943
  environment_list: "environment_list";
7805
7944
  environment_set_variable: "environment_set_variable";
7806
7945
  github_connect_link: "github_connect_link";
@@ -7855,7 +7994,12 @@ export declare const CreateSessionResponse: z.ZodObject<{
7855
7994
  slack_bot_thread_replies: "slack_bot_thread_replies";
7856
7995
  social_connections_list: "social_connections_list";
7857
7996
  social_daily_analysis_context: "social_daily_analysis_context";
7997
+ social_mentions_live: "social_mentions_live";
7998
+ social_post_reply: "social_post_reply";
7858
7999
  social_posts_recent: "social_posts_recent";
8000
+ social_posts_sync: "social_posts_sync";
8001
+ social_search_live: "social_search_live";
8002
+ social_thread_fetch: "social_thread_fetch";
7859
8003
  variable_set_list: "variable_set_list";
7860
8004
  variable_set_set_variable: "variable_set_set_variable";
7861
8005
  }>>;
@@ -8167,6 +8311,8 @@ export declare const SessionListResponse: z.ZodObject<{
8167
8311
  "account:admin": "account:admin";
8168
8312
  "account:read": "account:read";
8169
8313
  "api_keys:manage": "api_keys:manage";
8314
+ "artifacts:publish": "artifacts:publish";
8315
+ "artifacts:read": "artifacts:read";
8170
8316
  "billing:manage": "billing:manage";
8171
8317
  "billing:read": "billing:read";
8172
8318
  "connections:read": "connections:read";
@@ -8204,6 +8350,11 @@ export declare const SessionListResponse: z.ZodObject<{
8204
8350
  "workspace:read": "workspace:read";
8205
8351
  }>>>;
8206
8352
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
8353
+ artifacts_create: "artifacts_create";
8354
+ artifacts_get_source: "artifacts_get_source";
8355
+ artifacts_list: "artifacts_list";
8356
+ artifacts_publish: "artifacts_publish";
8357
+ artifacts_rollback: "artifacts_rollback";
8207
8358
  environment_list: "environment_list";
8208
8359
  environment_set_variable: "environment_set_variable";
8209
8360
  github_connect_link: "github_connect_link";
@@ -8258,7 +8409,12 @@ export declare const SessionListResponse: z.ZodObject<{
8258
8409
  slack_bot_thread_replies: "slack_bot_thread_replies";
8259
8410
  social_connections_list: "social_connections_list";
8260
8411
  social_daily_analysis_context: "social_daily_analysis_context";
8412
+ social_mentions_live: "social_mentions_live";
8413
+ social_post_reply: "social_post_reply";
8261
8414
  social_posts_recent: "social_posts_recent";
8415
+ social_posts_sync: "social_posts_sync";
8416
+ social_search_live: "social_search_live";
8417
+ social_thread_fetch: "social_thread_fetch";
8262
8418
  variable_set_list: "variable_set_list";
8263
8419
  variable_set_set_variable: "variable_set_set_variable";
8264
8420
  }>>;
@@ -8559,6 +8715,8 @@ export declare const SessionListResponse: z.ZodObject<{
8559
8715
  "account:admin": "account:admin";
8560
8716
  "account:read": "account:read";
8561
8717
  "api_keys:manage": "api_keys:manage";
8718
+ "artifacts:publish": "artifacts:publish";
8719
+ "artifacts:read": "artifacts:read";
8562
8720
  "billing:manage": "billing:manage";
8563
8721
  "billing:read": "billing:read";
8564
8722
  "connections:read": "connections:read";
@@ -8596,6 +8754,11 @@ export declare const SessionListResponse: z.ZodObject<{
8596
8754
  "workspace:read": "workspace:read";
8597
8755
  }>>>;
8598
8756
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
8757
+ artifacts_create: "artifacts_create";
8758
+ artifacts_get_source: "artifacts_get_source";
8759
+ artifacts_list: "artifacts_list";
8760
+ artifacts_publish: "artifacts_publish";
8761
+ artifacts_rollback: "artifacts_rollback";
8599
8762
  environment_list: "environment_list";
8600
8763
  environment_set_variable: "environment_set_variable";
8601
8764
  github_connect_link: "github_connect_link";
@@ -8650,7 +8813,12 @@ export declare const SessionListResponse: z.ZodObject<{
8650
8813
  slack_bot_thread_replies: "slack_bot_thread_replies";
8651
8814
  social_connections_list: "social_connections_list";
8652
8815
  social_daily_analysis_context: "social_daily_analysis_context";
8816
+ social_mentions_live: "social_mentions_live";
8817
+ social_post_reply: "social_post_reply";
8653
8818
  social_posts_recent: "social_posts_recent";
8819
+ social_posts_sync: "social_posts_sync";
8820
+ social_search_live: "social_search_live";
8821
+ social_thread_fetch: "social_thread_fetch";
8654
8822
  variable_set_list: "variable_set_list";
8655
8823
  variable_set_set_variable: "variable_set_set_variable";
8656
8824
  }>>;
@@ -8959,6 +9127,8 @@ export declare const SessionLineageResponse: z.ZodObject<{
8959
9127
  "account:admin": "account:admin";
8960
9128
  "account:read": "account:read";
8961
9129
  "api_keys:manage": "api_keys:manage";
9130
+ "artifacts:publish": "artifacts:publish";
9131
+ "artifacts:read": "artifacts:read";
8962
9132
  "billing:manage": "billing:manage";
8963
9133
  "billing:read": "billing:read";
8964
9134
  "connections:read": "connections:read";
@@ -8996,6 +9166,11 @@ export declare const SessionLineageResponse: z.ZodObject<{
8996
9166
  "workspace:read": "workspace:read";
8997
9167
  }>>>;
8998
9168
  firstPartyMcpTools: z.ZodArray<z.ZodEnum<{
9169
+ artifacts_create: "artifacts_create";
9170
+ artifacts_get_source: "artifacts_get_source";
9171
+ artifacts_list: "artifacts_list";
9172
+ artifacts_publish: "artifacts_publish";
9173
+ artifacts_rollback: "artifacts_rollback";
8999
9174
  environment_list: "environment_list";
9000
9175
  environment_set_variable: "environment_set_variable";
9001
9176
  github_connect_link: "github_connect_link";
@@ -9050,7 +9225,12 @@ export declare const SessionLineageResponse: z.ZodObject<{
9050
9225
  slack_bot_thread_replies: "slack_bot_thread_replies";
9051
9226
  social_connections_list: "social_connections_list";
9052
9227
  social_daily_analysis_context: "social_daily_analysis_context";
9228
+ social_mentions_live: "social_mentions_live";
9229
+ social_post_reply: "social_post_reply";
9053
9230
  social_posts_recent: "social_posts_recent";
9231
+ social_posts_sync: "social_posts_sync";
9232
+ social_search_live: "social_search_live";
9233
+ social_thread_fetch: "social_thread_fetch";
9054
9234
  variable_set_list: "variable_set_list";
9055
9235
  variable_set_set_variable: "variable_set_set_variable";
9056
9236
  }>>;
@@ -11509,6 +11689,8 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
11509
11689
  "account:admin": "account:admin";
11510
11690
  "account:read": "account:read";
11511
11691
  "api_keys:manage": "api_keys:manage";
11692
+ "artifacts:publish": "artifacts:publish";
11693
+ "artifacts:read": "artifacts:read";
11512
11694
  "billing:manage": "billing:manage";
11513
11695
  "billing:read": "billing:read";
11514
11696
  "connections:read": "connections:read";
@@ -11546,6 +11728,11 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
11546
11728
  "workspace:read": "workspace:read";
11547
11729
  }>>>;
11548
11730
  firstPartyMcpTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11731
+ artifacts_create: "artifacts_create";
11732
+ artifacts_get_source: "artifacts_get_source";
11733
+ artifacts_list: "artifacts_list";
11734
+ artifacts_publish: "artifacts_publish";
11735
+ artifacts_rollback: "artifacts_rollback";
11549
11736
  environment_list: "environment_list";
11550
11737
  environment_set_variable: "environment_set_variable";
11551
11738
  github_connect_link: "github_connect_link";
@@ -11600,7 +11787,12 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
11600
11787
  slack_bot_thread_replies: "slack_bot_thread_replies";
11601
11788
  social_connections_list: "social_connections_list";
11602
11789
  social_daily_analysis_context: "social_daily_analysis_context";
11790
+ social_mentions_live: "social_mentions_live";
11791
+ social_post_reply: "social_post_reply";
11603
11792
  social_posts_recent: "social_posts_recent";
11793
+ social_posts_sync: "social_posts_sync";
11794
+ social_search_live: "social_search_live";
11795
+ social_thread_fetch: "social_thread_fetch";
11604
11796
  variable_set_list: "variable_set_list";
11605
11797
  variable_set_set_variable: "variable_set_set_variable";
11606
11798
  }>>>;
@@ -14111,13 +14303,13 @@ export type WorkspaceModelCatalogResponse = z.infer<typeof WorkspaceModelCatalog
14111
14303
  * that rollout boundary. Mutating clients send this value in
14112
14304
  * `x-opengeni-api-contract`; the API rejects any other value before routing.
14113
14305
  */
14114
- export declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
14306
+ export declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-workspace-artifacts-v1";
14115
14307
  export declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
14116
14308
  /** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
14117
14309
  export declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
14118
14310
  export declare const ClientConfig: z.ZodObject<{
14119
14311
  deploymentRevision: z.ZodString;
14120
- apiContractRevision: z.ZodLiteral<"2026-07-turn-instructions-v1">;
14312
+ apiContractRevision: z.ZodLiteral<"2026-07-workspace-artifacts-v1">;
14121
14313
  serverVersion: z.ZodOptional<z.ZodString>;
14122
14314
  defaultModel: z.ZodString;
14123
14315
  allowedModels: z.ZodArray<z.ZodString>;
@@ -14356,6 +14548,21 @@ export declare const ClientConfig: z.ZodObject<{
14356
14548
  mode: z.ZodLiteral<"managedSession">;
14357
14549
  session: z.ZodLiteral<"cookie">;
14358
14550
  }, z.core.$strip>], "mode">>;
14551
+ analytics: z.ZodDefault<z.ZodObject<{
14552
+ consentRequired: z.ZodBoolean;
14553
+ providers: z.ZodObject<{
14554
+ reo: z.ZodOptional<z.ZodObject<{
14555
+ clientId: z.ZodString;
14556
+ }, z.core.$strip>>;
14557
+ posthog: z.ZodOptional<z.ZodObject<{
14558
+ projectKey: z.ZodString;
14559
+ host: z.ZodString;
14560
+ }, z.core.$strip>>;
14561
+ ga4: z.ZodOptional<z.ZodObject<{
14562
+ measurementId: z.ZodString;
14563
+ }, z.core.$strip>>;
14564
+ }, z.core.$strip>;
14565
+ }, z.core.$strip>>;
14359
14566
  structuredServices: z.ZodDefault<z.ZodObject<{
14360
14567
  fileSystem: z.ZodBoolean;
14361
14568
  git: z.ZodBoolean;