@opengeni/contracts 0.31.1 → 0.32.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/index.js CHANGED
@@ -6,12 +6,14 @@ import {
6
6
  AccountRole,
7
7
  AcknowledgeStreamRequest,
8
8
  AcknowledgeStreamResponse,
9
+ ActivateCodexRealtimeConnectionRequest,
9
10
  ActivatePreferenceRegistryRevisionRequest,
10
11
  ActivateWorkspaceInstructionPolicyRequest,
11
12
  AddDocumentRequest,
12
13
  AddWorkspaceMemberRequest,
13
14
  ApiKey,
14
15
  AttachViewerRequest,
16
+ BeginSessionRealtimeRequest,
15
17
  BillingBalance,
16
18
  BillingMode,
17
19
  CAPABILITY_DESCRIPTORS,
@@ -46,6 +48,10 @@ import {
46
48
  ClientSessionEvent,
47
49
  ClientVoiceInputConfig,
48
50
  CodexCompactionMode,
51
+ CodexRealtimeVoice,
52
+ CodexRealtimeWebrtcRequest,
53
+ CodexRealtimeWebrtcResponse,
54
+ CodexRealtimeWebrtcVersion,
49
55
  CompactSessionContextRequest,
50
56
  CompactSessionContextResult,
51
57
  CompleteFileUploadResponse,
@@ -84,6 +90,7 @@ import {
84
90
  DEFAULT_CODEX_FLEET_POLICY_V1,
85
91
  DEFAULT_FIRST_PARTY_MCP_PERMISSIONS,
86
92
  DEFAULT_FIRST_PARTY_MCP_TOOLS,
93
+ DEFAULT_WORKSPACE_SLACK_REACTION_SUMMON_SETTINGS,
87
94
  DESKTOP_STREAM_PORT,
88
95
  DeactivatePreferenceRegistryRequest,
89
96
  DelegatedAccessPrincipalKind,
@@ -117,6 +124,7 @@ import {
117
124
  EffectiveSessionControl,
118
125
  EnableCapabilityRequest,
119
126
  EnablePackRequest,
127
+ EndSessionRealtimeRequest,
120
128
  EnrollTokenExchangeRequest,
121
129
  EnrollTokenExchangeResponse,
122
130
  EnrollTokenPayload,
@@ -155,6 +163,9 @@ import {
155
163
  FsTreeNode,
156
164
  FsWriteRequest,
157
165
  FsWriteResponse,
166
+ GatewayRealtimeConnectRequest,
167
+ GatewayRealtimeConnectResponse,
168
+ GatewayRealtimeInitialItem,
158
169
  GetWorkspaceCaptureFileResponse,
159
170
  GetWorkspaceCaptureResponse,
160
171
  GitChangedPayload,
@@ -340,8 +351,11 @@ import {
340
351
  RegisterCapabilityPackRequest,
341
352
  RejectPreferenceRegistryProposalRequest,
342
353
  RelayTokenPayload,
354
+ RenewSessionRealtimeRequest,
343
355
  RepositoryResourceRef,
344
356
  RequestHumanInputToolInput,
357
+ ResolvedWorkspaceInstructionPolicySnapshot,
358
+ ResolvedWorkspaceInstructionPolicySnapshotEntry,
345
359
  ResourceMountPathError,
346
360
  ResourceRef,
347
361
  ResourceRefConflictError,
@@ -440,6 +454,15 @@ import {
440
454
  SessionPendingInputPreview,
441
455
  SessionQueueMutationResponse,
442
456
  SessionQueueSnapshot,
457
+ SessionRealtimeEndReason,
458
+ SessionRealtimeInboundEntry,
459
+ SessionRealtimeLedgerDirection,
460
+ SessionRealtimeLedgerEntry,
461
+ SessionRealtimeLedgerKind,
462
+ SessionRealtimeMode,
463
+ SessionRealtimeModel,
464
+ SessionRealtimeMutationResponse,
465
+ SessionRealtimeState,
443
466
  SessionSkill,
444
467
  SessionSkills,
445
468
  SessionSpawnDenial,
@@ -456,6 +479,9 @@ import {
456
479
  SetVariableSetVariableRequest,
457
480
  SetWorkspaceDefaultRigRequest,
458
481
  SetWorkspaceEnvironmentVariableRequest,
482
+ SlackReactionChannel,
483
+ SlackReactionChannelListResponse,
484
+ SlackReactionEmojiName,
459
485
  SocialConnection,
460
486
  SocialConnectionStatus,
461
487
  SocialOAuthProviderId,
@@ -475,6 +501,8 @@ import {
475
501
  SupersedePreferenceRegistryRequest,
476
502
  SwapActiveSandboxRequest,
477
503
  SwapActiveSandboxResponse,
504
+ SyncSessionRealtimeLedgerRequest,
505
+ SyncSessionRealtimeLedgerResponse,
478
506
  SystemUpdateClassification,
479
507
  TERMINAL_STREAM_PORT,
480
508
  TURN_EXECUTION_POLICY_METADATA_KEY,
@@ -540,6 +568,7 @@ import {
540
568
  WORKSPACE_CONTROL_EVENT_MAX_BYTES,
541
569
  WORKSPACE_CONTROL_REASON_MAX_BYTES,
542
570
  WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS,
571
+ WORKSPACE_INSTRUCTION_POLICY_PROMPT_MAX_UTF8_BYTES,
543
572
  WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS,
544
573
  WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS,
545
574
  WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS,
@@ -594,7 +623,12 @@ import {
594
623
  WorkspaceInstructionPolicyRevision,
595
624
  WorkspaceInstructionPolicyRevisionIdentity,
596
625
  WorkspaceInstructionPolicyRoleKey,
626
+ WorkspaceInstructionPolicyRoleKeyInput,
627
+ WorkspaceInstructionPolicyRoleSource,
597
628
  WorkspaceInstructionPolicyScope,
629
+ WorkspaceInstructionPolicySnapshot,
630
+ WorkspaceInstructionPolicySnapshotEntry,
631
+ WorkspaceInstructionPolicySnapshotProvenance,
598
632
  WorkspaceInstructionPolicyTarget,
599
633
  WorkspaceMember,
600
634
  WorkspaceMemorySearchMode,
@@ -603,10 +637,14 @@ import {
603
637
  WorkspaceMemorySearchResult,
604
638
  WorkspaceModelCatalogModel,
605
639
  WorkspaceModelCatalogResponse,
640
+ WorkspaceRealtimeModelCatalogItem,
641
+ WorkspaceRealtimeModelCatalogResponse,
606
642
  WorkspaceRegisteredPack,
607
643
  WorkspaceRevisionCapturedPayload,
608
644
  WorkspaceRevisionDegradedPayload,
609
645
  WorkspaceSettingsSchema,
646
+ WorkspaceSlackReactionChannelPolicy,
647
+ WorkspaceSlackReactionSummonSettings,
610
648
  WorkspaceStateDocumentStatusCounts,
611
649
  WorkspaceStateGap,
612
650
  WorkspaceStateGapCode,
@@ -676,6 +714,7 @@ import {
676
714
  resolveSessionEventTypeFilters,
677
715
  resolveWorkspaceCodexCompactionDefault,
678
716
  resolveWorkspaceMemoryEnabled,
717
+ resolveWorkspaceSlackReactionSummonSettings,
679
718
  resolveWorkspaceVoiceInputEnabled,
680
719
  resourceIdentityKey,
681
720
  resourceMountPath,
@@ -702,15 +741,22 @@ import {
702
741
  verifyEnrollmentBearer,
703
742
  verifyRelayToken,
704
743
  verifyStreamToken,
705
- workspaceControlUtf8Bytes
706
- } from "./chunk-TQC34EGL.js";
744
+ workspaceControlUtf8Bytes,
745
+ workspaceSlackReactionChannelAllowed
746
+ } from "./chunk-GMOYIHF3.js";
707
747
  import {
748
+ OPENGENI_MANAGED_PUBLIC_BASE_URL,
749
+ OPENGENI_SLACK_BOT_EVENTS,
708
750
  OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
751
+ OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
709
752
  OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
710
753
  OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
754
+ OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
711
755
  areOpenGeniSlackBotScopesAccepted,
712
- evaluateOpenGeniSlackBotScopes
713
- } from "./chunk-KGL5BVGF.js";
756
+ buildOpenGeniSlackBotManifest,
757
+ evaluateOpenGeniSlackBotScopes,
758
+ hasOpenGeniSlackReactionScope
759
+ } from "./chunk-7JZMI22I.js";
714
760
  export {
715
761
  AccessContext,
716
762
  AccessGrant,
@@ -719,12 +765,14 @@ export {
719
765
  AccountRole,
720
766
  AcknowledgeStreamRequest,
721
767
  AcknowledgeStreamResponse,
768
+ ActivateCodexRealtimeConnectionRequest,
722
769
  ActivatePreferenceRegistryRevisionRequest,
723
770
  ActivateWorkspaceInstructionPolicyRequest,
724
771
  AddDocumentRequest,
725
772
  AddWorkspaceMemberRequest,
726
773
  ApiKey,
727
774
  AttachViewerRequest,
775
+ BeginSessionRealtimeRequest,
728
776
  BillingBalance,
729
777
  BillingMode,
730
778
  CAPABILITY_DESCRIPTORS,
@@ -759,6 +807,10 @@ export {
759
807
  ClientSessionEvent,
760
808
  ClientVoiceInputConfig,
761
809
  CodexCompactionMode,
810
+ CodexRealtimeVoice,
811
+ CodexRealtimeWebrtcRequest,
812
+ CodexRealtimeWebrtcResponse,
813
+ CodexRealtimeWebrtcVersion,
762
814
  CompactSessionContextRequest,
763
815
  CompactSessionContextResult,
764
816
  CompleteFileUploadResponse,
@@ -797,6 +849,7 @@ export {
797
849
  DEFAULT_CODEX_FLEET_POLICY_V1,
798
850
  DEFAULT_FIRST_PARTY_MCP_PERMISSIONS,
799
851
  DEFAULT_FIRST_PARTY_MCP_TOOLS,
852
+ DEFAULT_WORKSPACE_SLACK_REACTION_SUMMON_SETTINGS,
800
853
  DESKTOP_STREAM_PORT,
801
854
  DeactivatePreferenceRegistryRequest,
802
855
  DelegatedAccessPrincipalKind,
@@ -830,6 +883,7 @@ export {
830
883
  EffectiveSessionControl,
831
884
  EnableCapabilityRequest,
832
885
  EnablePackRequest,
886
+ EndSessionRealtimeRequest,
833
887
  EnrollTokenExchangeRequest,
834
888
  EnrollTokenExchangeResponse,
835
889
  EnrollTokenPayload,
@@ -868,6 +922,9 @@ export {
868
922
  FsTreeNode,
869
923
  FsWriteRequest,
870
924
  FsWriteResponse,
925
+ GatewayRealtimeConnectRequest,
926
+ GatewayRealtimeConnectResponse,
927
+ GatewayRealtimeInitialItem,
871
928
  GetWorkspaceCaptureFileResponse,
872
929
  GetWorkspaceCaptureResponse,
873
930
  GitChangedPayload,
@@ -990,13 +1047,17 @@ export {
990
1047
  OPENGENI_API_CONTRACT_REVISION,
991
1048
  OPENGENI_CORRELATION_HEADER,
992
1049
  OPENGENI_HOST_EXPORT_SCHEMA_REVISION,
1050
+ OPENGENI_MANAGED_PUBLIC_BASE_URL,
993
1051
  OPENGENI_PERSONAL_SLACK_MCP_URL,
994
1052
  OPENGENI_SLACK_BOT_CREDENTIAL_LABEL,
995
1053
  OPENGENI_SLACK_BOT_CREDENTIAL_ROLE,
1054
+ OPENGENI_SLACK_BOT_EVENTS,
996
1055
  OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
1056
+ OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
997
1057
  OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
998
1058
  OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
999
1059
  OPENGENI_SLACK_BOT_SESSION_METADATA_KEY,
1060
+ OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
1000
1061
  OpenGeniSlackBotConnectionMetadata,
1001
1062
  OpenGeniSlackBotInstallRequest,
1002
1063
  OpenGeniSlackBotInstallStart,
@@ -1056,8 +1117,11 @@ export {
1056
1117
  RegisterCapabilityPackRequest,
1057
1118
  RejectPreferenceRegistryProposalRequest,
1058
1119
  RelayTokenPayload,
1120
+ RenewSessionRealtimeRequest,
1059
1121
  RepositoryResourceRef,
1060
1122
  RequestHumanInputToolInput,
1123
+ ResolvedWorkspaceInstructionPolicySnapshot,
1124
+ ResolvedWorkspaceInstructionPolicySnapshotEntry,
1061
1125
  ResourceMountPathError,
1062
1126
  ResourceRef,
1063
1127
  ResourceRefConflictError,
@@ -1156,6 +1220,15 @@ export {
1156
1220
  SessionPendingInputPreview,
1157
1221
  SessionQueueMutationResponse,
1158
1222
  SessionQueueSnapshot,
1223
+ SessionRealtimeEndReason,
1224
+ SessionRealtimeInboundEntry,
1225
+ SessionRealtimeLedgerDirection,
1226
+ SessionRealtimeLedgerEntry,
1227
+ SessionRealtimeLedgerKind,
1228
+ SessionRealtimeMode,
1229
+ SessionRealtimeModel,
1230
+ SessionRealtimeMutationResponse,
1231
+ SessionRealtimeState,
1159
1232
  SessionSkill,
1160
1233
  SessionSkills,
1161
1234
  SessionSpawnDenial,
@@ -1172,6 +1245,9 @@ export {
1172
1245
  SetVariableSetVariableRequest,
1173
1246
  SetWorkspaceDefaultRigRequest,
1174
1247
  SetWorkspaceEnvironmentVariableRequest,
1248
+ SlackReactionChannel,
1249
+ SlackReactionChannelListResponse,
1250
+ SlackReactionEmojiName,
1175
1251
  SocialConnection,
1176
1252
  SocialConnectionStatus,
1177
1253
  SocialOAuthProviderId,
@@ -1191,6 +1267,8 @@ export {
1191
1267
  SupersedePreferenceRegistryRequest,
1192
1268
  SwapActiveSandboxRequest,
1193
1269
  SwapActiveSandboxResponse,
1270
+ SyncSessionRealtimeLedgerRequest,
1271
+ SyncSessionRealtimeLedgerResponse,
1194
1272
  SystemUpdateClassification,
1195
1273
  TERMINAL_STREAM_PORT,
1196
1274
  TURN_EXECUTION_POLICY_METADATA_KEY,
@@ -1256,6 +1334,7 @@ export {
1256
1334
  WORKSPACE_CONTROL_EVENT_MAX_BYTES,
1257
1335
  WORKSPACE_CONTROL_REASON_MAX_BYTES,
1258
1336
  WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS,
1337
+ WORKSPACE_INSTRUCTION_POLICY_PROMPT_MAX_UTF8_BYTES,
1259
1338
  WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS,
1260
1339
  WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS,
1261
1340
  WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS,
@@ -1310,7 +1389,12 @@ export {
1310
1389
  WorkspaceInstructionPolicyRevision,
1311
1390
  WorkspaceInstructionPolicyRevisionIdentity,
1312
1391
  WorkspaceInstructionPolicyRoleKey,
1392
+ WorkspaceInstructionPolicyRoleKeyInput,
1393
+ WorkspaceInstructionPolicyRoleSource,
1313
1394
  WorkspaceInstructionPolicyScope,
1395
+ WorkspaceInstructionPolicySnapshot,
1396
+ WorkspaceInstructionPolicySnapshotEntry,
1397
+ WorkspaceInstructionPolicySnapshotProvenance,
1314
1398
  WorkspaceInstructionPolicyTarget,
1315
1399
  WorkspaceMember,
1316
1400
  WorkspaceMemorySearchMode,
@@ -1319,10 +1403,14 @@ export {
1319
1403
  WorkspaceMemorySearchResult,
1320
1404
  WorkspaceModelCatalogModel,
1321
1405
  WorkspaceModelCatalogResponse,
1406
+ WorkspaceRealtimeModelCatalogItem,
1407
+ WorkspaceRealtimeModelCatalogResponse,
1322
1408
  WorkspaceRegisteredPack,
1323
1409
  WorkspaceRevisionCapturedPayload,
1324
1410
  WorkspaceRevisionDegradedPayload,
1325
1411
  WorkspaceSettingsSchema,
1412
+ WorkspaceSlackReactionChannelPolicy,
1413
+ WorkspaceSlackReactionSummonSettings,
1326
1414
  WorkspaceStateDocumentStatusCounts,
1327
1415
  WorkspaceStateGap,
1328
1416
  WorkspaceStateGapCode,
@@ -1349,6 +1437,7 @@ export {
1349
1437
  boundSessionEvent,
1350
1438
  boundSessionEventPayload,
1351
1439
  boundWorkspaceControlEvent,
1440
+ buildOpenGeniSlackBotManifest,
1352
1441
  canonicalCodexFleetReplayJsonV1,
1353
1442
  canonicalModalCheckpointProviderBinding,
1354
1443
  capabilityCatalogItemIsTrustedForExposure,
@@ -1365,6 +1454,7 @@ export {
1365
1454
  evaluateWorkspaceModelPolicy,
1366
1455
  gitCredentialBindingIdForRepository,
1367
1456
  gitCredentialProviderForRepository,
1457
+ hasOpenGeniSlackReactionScope,
1368
1458
  identityRedactor,
1369
1459
  isClearedRunStateBlob,
1370
1460
  isCredentialHeaderName,
@@ -1394,6 +1484,7 @@ export {
1394
1484
  resolveSessionEventTypeFilters,
1395
1485
  resolveWorkspaceCodexCompactionDefault,
1396
1486
  resolveWorkspaceMemoryEnabled,
1487
+ resolveWorkspaceSlackReactionSummonSettings,
1397
1488
  resolveWorkspaceVoiceInputEnabled,
1398
1489
  resourceIdentityKey,
1399
1490
  resourceMountPath,
@@ -1420,6 +1511,7 @@ export {
1420
1511
  verifyEnrollmentBearer,
1421
1512
  verifyRelayToken,
1422
1513
  verifyStreamToken,
1423
- workspaceControlUtf8Bytes
1514
+ workspaceControlUtf8Bytes,
1515
+ workspaceSlackReactionChannelAllowed
1424
1516
  };
1425
1517
  //# sourceMappingURL=index.js.map
@@ -1,10 +1,66 @@
1
1
  export declare const OPENGENI_SLACK_BOT_REQUIRED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read"];
2
+ /** Read-only scope needed only for the optional emoji-reaction summon surface. */
3
+ export declare const OPENGENI_SLACK_REACTION_REQUIRED_SCOPE: "reactions:read";
4
+ /**
5
+ * Scopes requested by the managed and generated self-hosted manifests.
6
+ *
7
+ * `reactions:read` is deliberately not part of the base eligibility contract:
8
+ * legacy installations may continue using existing Slack interactions and
9
+ * tools while the reaction setting stays disabled and the UI asks an admin to
10
+ * reinstall.
11
+ */
12
+ export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
13
+ export declare const OPENGENI_SLACK_BOT_EVENTS: readonly ["app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
14
+ export declare const OPENGENI_MANAGED_PUBLIC_BASE_URL: "https://app.opengeni.ai";
15
+ /** Canonical managed/self-hosted Slack app manifest. Slack accepts JSON manifests. */
16
+ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
17
+ readonly display_information: {
18
+ readonly name: "OpenGeni";
19
+ };
20
+ readonly features: {
21
+ readonly bot_user: {
22
+ readonly display_name: "OpenGeni";
23
+ readonly always_online: false;
24
+ };
25
+ readonly slash_commands: readonly [{
26
+ readonly command: "/opengeni";
27
+ readonly description: "Start an OpenGeni task in this channel";
28
+ readonly should_escape: false;
29
+ readonly url: `${string}/v1/integrations/slack/commands`;
30
+ }];
31
+ readonly shortcuts: readonly [{
32
+ readonly callback_id: "opengeni_message";
33
+ readonly description: "Start an OpenGeni task from this Slack message";
34
+ readonly name: "Open in OpenGeni";
35
+ readonly type: "message";
36
+ }];
37
+ };
38
+ readonly oauth_config: {
39
+ readonly redirect_urls: readonly [`${string}/v1/integrations/oauth/callback`, `${string}/v1/integrations/slack/callback`];
40
+ readonly scopes: {
41
+ readonly bot: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
42
+ };
43
+ };
44
+ readonly settings: {
45
+ readonly event_subscriptions: {
46
+ readonly bot_events: readonly ["app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
47
+ readonly request_url: `${string}/v1/integrations/slack/events`;
48
+ };
49
+ readonly interactivity: {
50
+ readonly is_enabled: true;
51
+ readonly request_url: `${string}/v1/integrations/slack/interactions`;
52
+ };
53
+ readonly org_deploy_enabled: false;
54
+ readonly socket_mode_enabled: false;
55
+ readonly token_rotation_enabled: false;
56
+ };
57
+ };
2
58
  /**
3
59
  * Optional bot grants that remain inside the shipped bot's read/identity
4
60
  * boundary. Every other unrequired scope fails closed, including unknown future
5
61
  * Slack scopes, so verification, core routing, and UI eligibility cannot drift.
6
62
  */
7
- export declare const OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES: readonly ["team:read"];
63
+ export declare const OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES: readonly ["team:read", "reactions:read"];
8
64
  /** @deprecated Use evaluateOpenGeniSlackBotScopes; an allowlist is the policy. */
9
65
  export declare const OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES: readonly ["channels:join", "chat:write.public"];
10
66
  export type OpenGeniSlackBotScopePolicy = {
@@ -13,4 +69,5 @@ export type OpenGeniSlackBotScopePolicy = {
13
69
  unsupported: string[];
14
70
  };
15
71
  export declare function areOpenGeniSlackBotScopesAccepted(grantedScopes: readonly string[]): boolean;
72
+ export declare function hasOpenGeniSlackReactionScope(grantedScopes: readonly string[]): boolean;
16
73
  export declare function evaluateOpenGeniSlackBotScopes(grantedScopes: readonly string[]): OpenGeniSlackBotScopePolicy;
@@ -1,15 +1,27 @@
1
1
  import {
2
+ OPENGENI_MANAGED_PUBLIC_BASE_URL,
3
+ OPENGENI_SLACK_BOT_EVENTS,
2
4
  OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
5
+ OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
3
6
  OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
4
7
  OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
8
+ OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
5
9
  areOpenGeniSlackBotScopesAccepted,
6
- evaluateOpenGeniSlackBotScopes
7
- } from "./chunk-KGL5BVGF.js";
10
+ buildOpenGeniSlackBotManifest,
11
+ evaluateOpenGeniSlackBotScopes,
12
+ hasOpenGeniSlackReactionScope
13
+ } from "./chunk-7JZMI22I.js";
8
14
  export {
15
+ OPENGENI_MANAGED_PUBLIC_BASE_URL,
16
+ OPENGENI_SLACK_BOT_EVENTS,
9
17
  OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
18
+ OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
10
19
  OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
11
20
  OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
21
+ OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
12
22
  areOpenGeniSlackBotScopesAccepted,
13
- evaluateOpenGeniSlackBotScopes
23
+ buildOpenGeniSlackBotManifest,
24
+ evaluateOpenGeniSlackBotScopes,
25
+ hasOpenGeniSlackReactionScope
14
26
  };
15
27
  //# sourceMappingURL=slack-bot-scopes.js.map
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS = 262144;
3
+ export declare const WORKSPACE_INSTRUCTION_POLICY_PROMPT_MAX_UTF8_BYTES = 131072;
3
4
  export declare const WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS = 4096;
4
5
  export declare const WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS = 64;
5
6
  export declare const WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS = 512;
@@ -38,6 +39,15 @@ export type WorkspaceInstructionPolicyRoleKey = z.infer<typeof WorkspaceInstruct
38
39
  * at ingress so activation uniqueness and every client use the same key.
39
40
  */
40
41
  export declare function normalizeWorkspaceInstructionPolicyRoleKey(value: string): string;
42
+ export declare const WorkspaceInstructionPolicyRoleKeyInput: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
43
+ export type WorkspaceInstructionPolicyRoleKeyInput = z.infer<typeof WorkspaceInstructionPolicyRoleKeyInput>;
44
+ export declare const WorkspaceInstructionPolicyRoleSource: z.ZodEnum<{
45
+ invalid_metadata_fallback: "invalid_metadata_fallback";
46
+ metadata_fallback: "metadata_fallback";
47
+ none: "none";
48
+ session_binding: "session_binding";
49
+ }>;
50
+ export type WorkspaceInstructionPolicyRoleSource = z.infer<typeof WorkspaceInstructionPolicyRoleSource>;
41
51
  export declare const WorkspaceInstructionPolicyTarget: z.ZodObject<{
42
52
  kind: z.ZodEnum<{
43
53
  charter: "charter";
@@ -114,6 +124,156 @@ export declare const WorkspaceInstructionPolicyHead: z.ZodObject<{
114
124
  activatedAt: z.ZodString;
115
125
  }, z.core.$strip>;
116
126
  export type WorkspaceInstructionPolicyHead = z.infer<typeof WorkspaceInstructionPolicyHead>;
127
+ export declare const WorkspaceInstructionPolicySnapshotProvenance: z.ZodObject<{
128
+ source: z.ZodEnum<{
129
+ human: "human";
130
+ knowledge_proposal: "knowledge_proposal";
131
+ legacy_import: "legacy_import";
132
+ onboarding: "onboarding";
133
+ }>;
134
+ sourceIdHash: z.ZodNullable<z.ZodString>;
135
+ }, z.core.$strip>;
136
+ export type WorkspaceInstructionPolicySnapshotProvenance = z.infer<typeof WorkspaceInstructionPolicySnapshotProvenance>;
137
+ export declare const WorkspaceInstructionPolicySnapshotEntry: z.ZodObject<{
138
+ kind: z.ZodEnum<{
139
+ charter: "charter";
140
+ policy: "policy";
141
+ }>;
142
+ scope: z.ZodEnum<{
143
+ global: "global";
144
+ role: "role";
145
+ }>;
146
+ roleKey: z.ZodNullable<z.ZodString>;
147
+ revisionId: z.ZodString;
148
+ revision: z.ZodNumber;
149
+ contentHash: z.ZodString;
150
+ activationVersion: z.ZodNumber;
151
+ activatedAt: z.ZodString;
152
+ provenance: z.ZodObject<{
153
+ source: z.ZodEnum<{
154
+ human: "human";
155
+ knowledge_proposal: "knowledge_proposal";
156
+ legacy_import: "legacy_import";
157
+ onboarding: "onboarding";
158
+ }>;
159
+ sourceIdHash: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>;
162
+ export type WorkspaceInstructionPolicySnapshotEntry = z.infer<typeof WorkspaceInstructionPolicySnapshotEntry>;
163
+ export declare const WorkspaceInstructionPolicySnapshot: z.ZodObject<{
164
+ id: z.ZodString;
165
+ workspaceId: z.ZodString;
166
+ sessionId: z.ZodString;
167
+ turnId: z.ZodString;
168
+ attemptId: z.ZodString;
169
+ executionGeneration: z.ZodNumber;
170
+ policyRole: z.ZodNullable<z.ZodString>;
171
+ roleSource: z.ZodEnum<{
172
+ invalid_metadata_fallback: "invalid_metadata_fallback";
173
+ metadata_fallback: "metadata_fallback";
174
+ none: "none";
175
+ session_binding: "session_binding";
176
+ }>;
177
+ entryHash: z.ZodString;
178
+ entries: z.ZodArray<z.ZodObject<{
179
+ kind: z.ZodEnum<{
180
+ charter: "charter";
181
+ policy: "policy";
182
+ }>;
183
+ scope: z.ZodEnum<{
184
+ global: "global";
185
+ role: "role";
186
+ }>;
187
+ roleKey: z.ZodNullable<z.ZodString>;
188
+ revisionId: z.ZodString;
189
+ revision: z.ZodNumber;
190
+ contentHash: z.ZodString;
191
+ activationVersion: z.ZodNumber;
192
+ activatedAt: z.ZodString;
193
+ provenance: z.ZodObject<{
194
+ source: z.ZodEnum<{
195
+ human: "human";
196
+ knowledge_proposal: "knowledge_proposal";
197
+ legacy_import: "legacy_import";
198
+ onboarding: "onboarding";
199
+ }>;
200
+ sourceIdHash: z.ZodNullable<z.ZodString>;
201
+ }, z.core.$strip>;
202
+ }, z.core.$strip>>;
203
+ createdAt: z.ZodString;
204
+ }, z.core.$strip>;
205
+ export type WorkspaceInstructionPolicySnapshot = z.infer<typeof WorkspaceInstructionPolicySnapshot>;
206
+ export declare const ResolvedWorkspaceInstructionPolicySnapshotEntry: z.ZodObject<{
207
+ kind: z.ZodEnum<{
208
+ charter: "charter";
209
+ policy: "policy";
210
+ }>;
211
+ scope: z.ZodEnum<{
212
+ global: "global";
213
+ role: "role";
214
+ }>;
215
+ roleKey: z.ZodNullable<z.ZodString>;
216
+ revisionId: z.ZodString;
217
+ revision: z.ZodNumber;
218
+ contentHash: z.ZodString;
219
+ activationVersion: z.ZodNumber;
220
+ activatedAt: z.ZodString;
221
+ provenance: z.ZodObject<{
222
+ source: z.ZodEnum<{
223
+ human: "human";
224
+ knowledge_proposal: "knowledge_proposal";
225
+ legacy_import: "legacy_import";
226
+ onboarding: "onboarding";
227
+ }>;
228
+ sourceIdHash: z.ZodNullable<z.ZodString>;
229
+ }, z.core.$strip>;
230
+ content: z.ZodString;
231
+ }, z.core.$strip>;
232
+ export type ResolvedWorkspaceInstructionPolicySnapshotEntry = z.infer<typeof ResolvedWorkspaceInstructionPolicySnapshotEntry>;
233
+ export declare const ResolvedWorkspaceInstructionPolicySnapshot: z.ZodObject<{
234
+ id: z.ZodString;
235
+ workspaceId: z.ZodString;
236
+ sessionId: z.ZodString;
237
+ turnId: z.ZodString;
238
+ attemptId: z.ZodString;
239
+ executionGeneration: z.ZodNumber;
240
+ policyRole: z.ZodNullable<z.ZodString>;
241
+ roleSource: z.ZodEnum<{
242
+ invalid_metadata_fallback: "invalid_metadata_fallback";
243
+ metadata_fallback: "metadata_fallback";
244
+ none: "none";
245
+ session_binding: "session_binding";
246
+ }>;
247
+ entryHash: z.ZodString;
248
+ createdAt: z.ZodString;
249
+ entries: z.ZodArray<z.ZodObject<{
250
+ kind: z.ZodEnum<{
251
+ charter: "charter";
252
+ policy: "policy";
253
+ }>;
254
+ scope: z.ZodEnum<{
255
+ global: "global";
256
+ role: "role";
257
+ }>;
258
+ roleKey: z.ZodNullable<z.ZodString>;
259
+ revisionId: z.ZodString;
260
+ revision: z.ZodNumber;
261
+ contentHash: z.ZodString;
262
+ activationVersion: z.ZodNumber;
263
+ activatedAt: z.ZodString;
264
+ provenance: z.ZodObject<{
265
+ source: z.ZodEnum<{
266
+ human: "human";
267
+ knowledge_proposal: "knowledge_proposal";
268
+ legacy_import: "legacy_import";
269
+ onboarding: "onboarding";
270
+ }>;
271
+ sourceIdHash: z.ZodNullable<z.ZodString>;
272
+ }, z.core.$strip>;
273
+ content: z.ZodString;
274
+ }, z.core.$strip>>;
275
+ }, z.core.$strip>;
276
+ export type ResolvedWorkspaceInstructionPolicySnapshot = z.infer<typeof ResolvedWorkspaceInstructionPolicySnapshot>;
117
277
  export declare const WorkspaceInstructionPolicyActivationEvent: z.ZodObject<{
118
278
  kind: z.ZodEnum<{
119
279
  charter: "charter";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "0.31.1",
3
+ "version": "0.32.0",
4
4
  "description": "Shared zod schemas and wire-contract types for the OpenGeni API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {