@opengeni/contracts 0.38.1 → 0.38.3

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-XRNQOQ2K.js";
3
+ } from "./chunk-ZNH72ZGW.js";
4
4
  import {
5
5
  ConnectorDocumentDestination,
6
6
  ConnectorDocumentDestinationSelection
package/dist/index.d.ts CHANGED
@@ -260,7 +260,7 @@ export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:r
260
260
  * `files_get_download_url` intentionally is not in this catalog. It belongs to
261
261
  * the dedicated `files` MCP server.
262
262
  */
263
- 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"];
263
+ 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_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"];
264
264
  export declare const FirstPartyMcpToolName: z.ZodEnum<{
265
265
  artifacts_create: "artifacts_create";
266
266
  artifacts_get_source: "artifacts_get_source";
@@ -271,7 +271,6 @@ export declare const FirstPartyMcpToolName: z.ZodEnum<{
271
271
  environment_set_variable: "environment_set_variable";
272
272
  github_connect_link: "github_connect_link";
273
273
  github_repositories_list: "github_repositories_list";
274
- github_token: "github_token";
275
274
  goal_complete: "goal_complete";
276
275
  goal_pause: "goal_pause";
277
276
  goal_set: "goal_set";
@@ -336,7 +335,7 @@ export type FirstPartyMcpToolName = z.infer<typeof FirstPartyMcpToolName>;
336
335
  * the non-connector catalog, while an explicit session policy may still select
337
336
  * any catalogued connector tool and remains independently permission-gated.
338
337
  */
339
- 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")[];
338
+ 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" | "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")[];
340
339
  export declare function prefixedMcpToolName(registryId: string, toolName: string): string;
341
340
  export declare const ProductAccessMode: z.ZodEnum<{
342
341
  configured: "configured";
@@ -1268,7 +1267,6 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
1268
1267
  environment_set_variable: "environment_set_variable";
1269
1268
  github_connect_link: "github_connect_link";
1270
1269
  github_repositories_list: "github_repositories_list";
1271
- github_token: "github_token";
1272
1270
  goal_complete: "goal_complete";
1273
1271
  goal_pause: "goal_pause";
1274
1272
  goal_set: "goal_set";
@@ -2473,6 +2471,10 @@ export declare const McpPersonalConnectionDelegation: z.ZodObject<{
2473
2471
  delegated: "delegated";
2474
2472
  oauth2: "oauth2";
2475
2473
  }>>;
2474
+ connectionType: z.ZodOptional<z.ZodEnum<{
2475
+ mcp: "mcp";
2476
+ social: "social";
2477
+ }>>;
2476
2478
  }, z.core.$strict>;
2477
2479
  export type McpPersonalConnectionDelegation = z.infer<typeof McpPersonalConnectionDelegation>;
2478
2480
  /**
@@ -2491,6 +2493,10 @@ export declare const McpPersonalConnectionDelegations: z.ZodArray<z.ZodObject<{
2491
2493
  delegated: "delegated";
2492
2494
  oauth2: "oauth2";
2493
2495
  }>>;
2496
+ connectionType: z.ZodOptional<z.ZodEnum<{
2497
+ mcp: "mcp";
2498
+ social: "social";
2499
+ }>>;
2494
2500
  }, z.core.$strict>>;
2495
2501
  export declare const McpPersonalConnectionSummary: z.ZodObject<{
2496
2502
  serverId: z.ZodString;
@@ -3838,7 +3844,6 @@ export declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodO
3838
3844
  environment_set_variable: "environment_set_variable";
3839
3845
  github_connect_link: "github_connect_link";
3840
3846
  github_repositories_list: "github_repositories_list";
3841
- github_token: "github_token";
3842
3847
  goal_complete: "goal_complete";
3843
3848
  goal_pause: "goal_pause";
3844
3849
  goal_set: "goal_set";
@@ -4991,7 +4996,6 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
4991
4996
  environment_set_variable: "environment_set_variable";
4992
4997
  github_connect_link: "github_connect_link";
4993
4998
  github_repositories_list: "github_repositories_list";
4994
- github_token: "github_token";
4995
4999
  goal_complete: "goal_complete";
4996
5000
  goal_pause: "goal_pause";
4997
5001
  goal_set: "goal_set";
@@ -5179,7 +5183,6 @@ export declare const NewSessionDraft: z.ZodObject<{
5179
5183
  environment_set_variable: "environment_set_variable";
5180
5184
  github_connect_link: "github_connect_link";
5181
5185
  github_repositories_list: "github_repositories_list";
5182
- github_token: "github_token";
5183
5186
  goal_complete: "goal_complete";
5184
5187
  goal_pause: "goal_pause";
5185
5188
  goal_set: "goal_set";
@@ -5367,7 +5370,6 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
5367
5370
  environment_set_variable: "environment_set_variable";
5368
5371
  github_connect_link: "github_connect_link";
5369
5372
  github_repositories_list: "github_repositories_list";
5370
- github_token: "github_token";
5371
5373
  goal_complete: "goal_complete";
5372
5374
  goal_pause: "goal_pause";
5373
5375
  goal_set: "goal_set";
@@ -7240,6 +7242,11 @@ export declare const SocialConnectionStatus: z.ZodEnum<{
7240
7242
  needs_reauth: "needs_reauth";
7241
7243
  }>;
7242
7244
  export type SocialConnectionStatus = z.infer<typeof SocialConnectionStatus>;
7245
+ export declare const ConnectionOwnership: z.ZodEnum<{
7246
+ personal: "personal";
7247
+ workspace: "workspace";
7248
+ }>;
7249
+ export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
7243
7250
  export declare const SocialConnection: z.ZodObject<{
7244
7251
  id: z.ZodString;
7245
7252
  accountId: z.ZodString;
@@ -7257,6 +7264,10 @@ export declare const SocialConnection: z.ZodObject<{
7257
7264
  accountHandle: z.ZodString;
7258
7265
  accountName: z.ZodNullable<z.ZodString>;
7259
7266
  externalAccountId: z.ZodNullable<z.ZodString>;
7267
+ ownership: z.ZodEnum<{
7268
+ personal: "personal";
7269
+ workspace: "workspace";
7270
+ }>;
7260
7271
  status: z.ZodEnum<{
7261
7272
  connected: "connected";
7262
7273
  disabled: "disabled";
@@ -7341,6 +7352,10 @@ export declare const SocialOAuthStartRequest: z.ZodObject<{
7341
7352
  reddit: "reddit";
7342
7353
  x: "x";
7343
7354
  }>;
7355
+ ownership: z.ZodDefault<z.ZodEnum<{
7356
+ personal: "personal";
7357
+ workspace: "workspace";
7358
+ }>>;
7344
7359
  scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
7345
7360
  returnPath: z.ZodOptional<z.ZodString>;
7346
7361
  }, z.core.$strip>;
@@ -7418,11 +7433,6 @@ export declare function comparePersonalSlackCanonicalConnections(left: PersonalS
7418
7433
  export declare function selectCanonicalPersonalSlackConnection<T extends PersonalSlackCanonicalConnection>(connections: readonly T[]): T | null;
7419
7434
  export declare const ConnectionCredentialBundle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7420
7435
  export type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
7421
- export declare const ConnectionOwnership: z.ZodEnum<{
7422
- personal: "personal";
7423
- workspace: "workspace";
7424
- }>;
7425
- export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
7426
7436
  export declare const CreateConnectionRequest: z.ZodObject<{
7427
7437
  providerDomain: z.ZodString;
7428
7438
  kind: z.ZodEnum<{
@@ -8236,7 +8246,6 @@ export declare const Session: z.ZodObject<{
8236
8246
  environment_set_variable: "environment_set_variable";
8237
8247
  github_connect_link: "github_connect_link";
8238
8248
  github_repositories_list: "github_repositories_list";
8239
- github_token: "github_token";
8240
8249
  goal_complete: "goal_complete";
8241
8250
  goal_pause: "goal_pause";
8242
8251
  goal_set: "goal_set";
@@ -8647,7 +8656,6 @@ export declare const CreateSessionResponse: z.ZodObject<{
8647
8656
  environment_set_variable: "environment_set_variable";
8648
8657
  github_connect_link: "github_connect_link";
8649
8658
  github_repositories_list: "github_repositories_list";
8650
- github_token: "github_token";
8651
8659
  goal_complete: "goal_complete";
8652
8660
  goal_pause: "goal_pause";
8653
8661
  goal_set: "goal_set";
@@ -9064,7 +9072,6 @@ export declare const SessionListResponse: z.ZodObject<{
9064
9072
  environment_set_variable: "environment_set_variable";
9065
9073
  github_connect_link: "github_connect_link";
9066
9074
  github_repositories_list: "github_repositories_list";
9067
- github_token: "github_token";
9068
9075
  goal_complete: "goal_complete";
9069
9076
  goal_pause: "goal_pause";
9070
9077
  goal_set: "goal_set";
@@ -9470,7 +9477,6 @@ export declare const SessionListResponse: z.ZodObject<{
9470
9477
  environment_set_variable: "environment_set_variable";
9471
9478
  github_connect_link: "github_connect_link";
9472
9479
  github_repositories_list: "github_repositories_list";
9473
- github_token: "github_token";
9474
9480
  goal_complete: "goal_complete";
9475
9481
  goal_pause: "goal_pause";
9476
9482
  goal_set: "goal_set";
@@ -9884,7 +9890,6 @@ export declare const SessionLineageResponse: z.ZodObject<{
9884
9890
  environment_set_variable: "environment_set_variable";
9885
9891
  github_connect_link: "github_connect_link";
9886
9892
  github_repositories_list: "github_repositories_list";
9887
- github_token: "github_token";
9888
9893
  goal_complete: "goal_complete";
9889
9894
  goal_pause: "goal_pause";
9890
9895
  goal_set: "goal_set";
@@ -12466,7 +12471,6 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
12466
12471
  environment_set_variable: "environment_set_variable";
12467
12472
  github_connect_link: "github_connect_link";
12468
12473
  github_repositories_list: "github_repositories_list";
12469
- github_token: "github_token";
12470
12474
  goal_complete: "goal_complete";
12471
12475
  goal_pause: "goal_pause";
12472
12476
  goal_set: "goal_set";
package/dist/index.js CHANGED
@@ -765,7 +765,7 @@ import {
765
765
  verifyStreamToken,
766
766
  workspaceControlUtf8Bytes,
767
767
  workspaceSlackReactionChannelAllowed
768
- } from "./chunk-XRNQOQ2K.js";
768
+ } from "./chunk-ZNH72ZGW.js";
769
769
  import {
770
770
  ConnectorDocumentDestination,
771
771
  ConnectorDocumentDestinationAuthority,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "0.38.1",
3
+ "version": "0.38.3",
4
4
  "description": "Shared zod schemas and wire-contract types for the OpenGeni API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -733,7 +733,6 @@ export const FIRST_PARTY_MCP_TOOL_NAMES = [
733
733
  "variable_set_set_variable",
734
734
  "environment_set_variable",
735
735
  "github_connect_link",
736
- "github_token",
737
736
  "github_repositories_list",
738
737
  "social_connections_list",
739
738
  "social_posts_recent",
@@ -2650,6 +2649,7 @@ export const McpPersonalConnectionDelegation = z
2650
2649
  ownerSubjectId: z.string().min(1).max(512),
2651
2650
  providerDomain: z.string().min(1).max(2048),
2652
2651
  kind: z.enum(["oauth2", "api_key", "app_install", "delegated"]).optional(),
2652
+ connectionType: z.enum(["mcp", "social"]).optional(),
2653
2653
  })
2654
2654
  .strict();
2655
2655
  export type McpPersonalConnectionDelegation = z.infer<typeof McpPersonalConnectionDelegation>;
@@ -5687,6 +5687,9 @@ export type SocialProvider = z.infer<typeof SocialProvider>;
5687
5687
  export const SocialConnectionStatus = z.enum(["connected", "needs_reauth", "disabled"]);
5688
5688
  export type SocialConnectionStatus = z.infer<typeof SocialConnectionStatus>;
5689
5689
 
5690
+ export const ConnectionOwnership = z.enum(["workspace", "personal"]);
5691
+ export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
5692
+
5690
5693
  export const SocialConnection = z.object({
5691
5694
  id: z.string().uuid(),
5692
5695
  accountId: z.string().uuid(),
@@ -5695,6 +5698,7 @@ export const SocialConnection = z.object({
5695
5698
  accountHandle: z.string().min(1),
5696
5699
  accountName: z.string().nullable(),
5697
5700
  externalAccountId: z.string().nullable(),
5701
+ ownership: ConnectionOwnership,
5698
5702
  status: SocialConnectionStatus,
5699
5703
  scopes: z.array(z.string()),
5700
5704
  credentialRef: z.string().nullable(),
@@ -5755,6 +5759,7 @@ export type SocialOAuthProviderId = z.infer<typeof SocialOAuthProviderId>;
5755
5759
 
5756
5760
  export const SocialOAuthStartRequest = z.object({
5757
5761
  provider: SocialOAuthProviderId,
5762
+ ownership: ConnectionOwnership.default("workspace"),
5758
5763
  scopes: z.array(z.string().min(1)).optional(),
5759
5764
  returnPath: z.string().optional(),
5760
5765
  });
@@ -5876,9 +5881,6 @@ function compareDescending(left: number | string, right: number | string): numbe
5876
5881
  export const ConnectionCredentialBundle = z.record(z.string(), z.unknown());
5877
5882
  export type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
5878
5883
 
5879
- export const ConnectionOwnership = z.enum(["workspace", "personal"]);
5880
- export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
5881
-
5882
5884
  export const CreateConnectionRequest = z.object({
5883
5885
  providerDomain: z.string().min(1),
5884
5886
  kind: ConnectionKind,