@opengeni/contracts 0.31.1 → 0.35.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-7JZMI22I.js +126 -0
- package/dist/chunk-7JZMI22I.js.map +1 -0
- package/dist/{chunk-TQC34EGL.js → chunk-JRHJTJVH.js} +759 -295
- package/dist/chunk-JRHJTJVH.js.map +1 -0
- package/dist/google-drive.d.ts +103 -0
- package/dist/google-drive.js +96 -3
- package/dist/google-drive.js.map +1 -1
- package/dist/index.d.ts +652 -8
- package/dist/index.js +113 -5
- package/dist/slack-bot-scopes.d.ts +58 -1
- package/dist/slack-bot-scopes.js +15 -3
- package/dist/workspace-instruction-policies.d.ts +178 -0
- package/dist/workspace-state.d.ts +218 -4
- package/package.json +1 -1
- package/src/google-drive.ts +119 -0
- package/src/index.ts +546 -114
- package/src/slack-bot-scopes.ts +93 -1
- package/src/workspace-instruction-policies.ts +91 -3
- package/src/workspace-state.ts +112 -6
- package/dist/chunk-KGL5BVGF.js +0 -45
- package/dist/chunk-KGL5BVGF.js.map +0 -1
- package/dist/chunk-TQC34EGL.js.map +0 -1
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,
|
|
@@ -82,8 +88,10 @@ import {
|
|
|
82
88
|
CreateWorkspaceRequest,
|
|
83
89
|
CredentialAuthNeededPayload,
|
|
84
90
|
DEFAULT_CODEX_FLEET_POLICY_V1,
|
|
91
|
+
DEFAULT_FILE_RESOURCE_MOUNT_ROOT,
|
|
85
92
|
DEFAULT_FIRST_PARTY_MCP_PERMISSIONS,
|
|
86
93
|
DEFAULT_FIRST_PARTY_MCP_TOOLS,
|
|
94
|
+
DEFAULT_WORKSPACE_SLACK_REACTION_SUMMON_SETTINGS,
|
|
87
95
|
DESKTOP_STREAM_PORT,
|
|
88
96
|
DeactivatePreferenceRegistryRequest,
|
|
89
97
|
DelegatedAccessPrincipalKind,
|
|
@@ -103,11 +111,13 @@ import {
|
|
|
103
111
|
DeviceEnrollmentState,
|
|
104
112
|
DiscoverMcpCapabilitiesResponse,
|
|
105
113
|
Document,
|
|
114
|
+
DocumentAuthorityKind,
|
|
106
115
|
DocumentBase,
|
|
107
116
|
DocumentCuration,
|
|
108
117
|
DocumentCurationStatus,
|
|
109
118
|
DocumentSearchMode,
|
|
110
119
|
DocumentSearchRequest,
|
|
120
|
+
DocumentSearchResponse,
|
|
111
121
|
DocumentSearchResult,
|
|
112
122
|
DocumentStatus,
|
|
113
123
|
DocumentVisibility,
|
|
@@ -117,6 +127,7 @@ import {
|
|
|
117
127
|
EffectiveSessionControl,
|
|
118
128
|
EnableCapabilityRequest,
|
|
119
129
|
EnablePackRequest,
|
|
130
|
+
EndSessionRealtimeRequest,
|
|
120
131
|
EnrollTokenExchangeRequest,
|
|
121
132
|
EnrollTokenExchangeResponse,
|
|
122
133
|
EnrollTokenPayload,
|
|
@@ -155,6 +166,9 @@ import {
|
|
|
155
166
|
FsTreeNode,
|
|
156
167
|
FsWriteRequest,
|
|
157
168
|
FsWriteResponse,
|
|
169
|
+
GatewayRealtimeConnectRequest,
|
|
170
|
+
GatewayRealtimeConnectResponse,
|
|
171
|
+
GatewayRealtimeInitialItem,
|
|
158
172
|
GetWorkspaceCaptureFileResponse,
|
|
159
173
|
GetWorkspaceCaptureResponse,
|
|
160
174
|
GitChangedPayload,
|
|
@@ -239,6 +253,7 @@ import {
|
|
|
239
253
|
ListEnrollmentsResponse,
|
|
240
254
|
ListWorkspaceMembersResponse,
|
|
241
255
|
MAX_NESTED_AGENT_DEPTH,
|
|
256
|
+
MODEL_ATTACHMENT_REFS_FIELD,
|
|
242
257
|
MachineKind,
|
|
243
258
|
MachineMetricsSeriesResponse,
|
|
244
259
|
MachineState,
|
|
@@ -340,8 +355,11 @@ import {
|
|
|
340
355
|
RegisterCapabilityPackRequest,
|
|
341
356
|
RejectPreferenceRegistryProposalRequest,
|
|
342
357
|
RelayTokenPayload,
|
|
358
|
+
RenewSessionRealtimeRequest,
|
|
343
359
|
RepositoryResourceRef,
|
|
344
360
|
RequestHumanInputToolInput,
|
|
361
|
+
ResolvedWorkspaceInstructionPolicySnapshot,
|
|
362
|
+
ResolvedWorkspaceInstructionPolicySnapshotEntry,
|
|
345
363
|
ResourceMountPathError,
|
|
346
364
|
ResourceRef,
|
|
347
365
|
ResourceRefConflictError,
|
|
@@ -440,6 +458,15 @@ import {
|
|
|
440
458
|
SessionPendingInputPreview,
|
|
441
459
|
SessionQueueMutationResponse,
|
|
442
460
|
SessionQueueSnapshot,
|
|
461
|
+
SessionRealtimeEndReason,
|
|
462
|
+
SessionRealtimeInboundEntry,
|
|
463
|
+
SessionRealtimeLedgerDirection,
|
|
464
|
+
SessionRealtimeLedgerEntry,
|
|
465
|
+
SessionRealtimeLedgerKind,
|
|
466
|
+
SessionRealtimeMode,
|
|
467
|
+
SessionRealtimeModel,
|
|
468
|
+
SessionRealtimeMutationResponse,
|
|
469
|
+
SessionRealtimeState,
|
|
443
470
|
SessionSkill,
|
|
444
471
|
SessionSkills,
|
|
445
472
|
SessionSpawnDenial,
|
|
@@ -456,6 +483,9 @@ import {
|
|
|
456
483
|
SetVariableSetVariableRequest,
|
|
457
484
|
SetWorkspaceDefaultRigRequest,
|
|
458
485
|
SetWorkspaceEnvironmentVariableRequest,
|
|
486
|
+
SlackReactionChannel,
|
|
487
|
+
SlackReactionChannelListResponse,
|
|
488
|
+
SlackReactionEmojiName,
|
|
459
489
|
SocialConnection,
|
|
460
490
|
SocialConnectionStatus,
|
|
461
491
|
SocialOAuthProviderId,
|
|
@@ -475,6 +505,8 @@ import {
|
|
|
475
505
|
SupersedePreferenceRegistryRequest,
|
|
476
506
|
SwapActiveSandboxRequest,
|
|
477
507
|
SwapActiveSandboxResponse,
|
|
508
|
+
SyncSessionRealtimeLedgerRequest,
|
|
509
|
+
SyncSessionRealtimeLedgerResponse,
|
|
478
510
|
SystemUpdateClassification,
|
|
479
511
|
TERMINAL_STREAM_PORT,
|
|
480
512
|
TURN_EXECUTION_POLICY_METADATA_KEY,
|
|
@@ -540,6 +572,7 @@ import {
|
|
|
540
572
|
WORKSPACE_CONTROL_EVENT_MAX_BYTES,
|
|
541
573
|
WORKSPACE_CONTROL_REASON_MAX_BYTES,
|
|
542
574
|
WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS,
|
|
575
|
+
WORKSPACE_INSTRUCTION_POLICY_PROMPT_MAX_UTF8_BYTES,
|
|
543
576
|
WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS,
|
|
544
577
|
WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS,
|
|
545
578
|
WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS,
|
|
@@ -589,12 +622,18 @@ import {
|
|
|
589
622
|
WorkspaceInstructionPolicyKind,
|
|
590
623
|
WorkspaceInstructionPolicyListQuery,
|
|
591
624
|
WorkspaceInstructionPolicyListResponse,
|
|
625
|
+
WorkspaceInstructionPolicyOperationReuseResponse,
|
|
592
626
|
WorkspaceInstructionPolicyProvenance,
|
|
593
627
|
WorkspaceInstructionPolicyProvenanceSource,
|
|
594
628
|
WorkspaceInstructionPolicyRevision,
|
|
595
629
|
WorkspaceInstructionPolicyRevisionIdentity,
|
|
596
630
|
WorkspaceInstructionPolicyRoleKey,
|
|
631
|
+
WorkspaceInstructionPolicyRoleKeyInput,
|
|
632
|
+
WorkspaceInstructionPolicyRoleSource,
|
|
597
633
|
WorkspaceInstructionPolicyScope,
|
|
634
|
+
WorkspaceInstructionPolicySnapshot,
|
|
635
|
+
WorkspaceInstructionPolicySnapshotEntry,
|
|
636
|
+
WorkspaceInstructionPolicySnapshotProvenance,
|
|
598
637
|
WorkspaceInstructionPolicyTarget,
|
|
599
638
|
WorkspaceMember,
|
|
600
639
|
WorkspaceMemorySearchMode,
|
|
@@ -603,13 +642,19 @@ import {
|
|
|
603
642
|
WorkspaceMemorySearchResult,
|
|
604
643
|
WorkspaceModelCatalogModel,
|
|
605
644
|
WorkspaceModelCatalogResponse,
|
|
645
|
+
WorkspaceRealtimeModelCatalogItem,
|
|
646
|
+
WorkspaceRealtimeModelCatalogResponse,
|
|
606
647
|
WorkspaceRegisteredPack,
|
|
607
648
|
WorkspaceRevisionCapturedPayload,
|
|
608
649
|
WorkspaceRevisionDegradedPayload,
|
|
609
650
|
WorkspaceSettingsSchema,
|
|
651
|
+
WorkspaceSlackReactionChannelPolicy,
|
|
652
|
+
WorkspaceSlackReactionSummonSettings,
|
|
653
|
+
WorkspaceStateAttemptGovernance,
|
|
610
654
|
WorkspaceStateDocumentStatusCounts,
|
|
611
655
|
WorkspaceStateGap,
|
|
612
656
|
WorkspaceStateGapCode,
|
|
657
|
+
WorkspaceStateGovernanceDriftStatus,
|
|
613
658
|
WorkspaceStateKnowledge,
|
|
614
659
|
WorkspaceStateKnowledgeAvailable,
|
|
615
660
|
WorkspaceStateKnowledgeBase,
|
|
@@ -619,6 +664,7 @@ import {
|
|
|
619
664
|
WorkspaceStatePolicy,
|
|
620
665
|
WorkspaceStatePolicyHead,
|
|
621
666
|
WorkspaceStatePolicyRevisionSummary,
|
|
667
|
+
WorkspaceStateQuery,
|
|
622
668
|
WorkspaceStateResponse,
|
|
623
669
|
WorkspaceStateSourceKindCounts,
|
|
624
670
|
WorkspaceStateTopic,
|
|
@@ -676,6 +722,7 @@ import {
|
|
|
676
722
|
resolveSessionEventTypeFilters,
|
|
677
723
|
resolveWorkspaceCodexCompactionDefault,
|
|
678
724
|
resolveWorkspaceMemoryEnabled,
|
|
725
|
+
resolveWorkspaceSlackReactionSummonSettings,
|
|
679
726
|
resolveWorkspaceVoiceInputEnabled,
|
|
680
727
|
resourceIdentityKey,
|
|
681
728
|
resourceMountPath,
|
|
@@ -702,15 +749,22 @@ import {
|
|
|
702
749
|
verifyEnrollmentBearer,
|
|
703
750
|
verifyRelayToken,
|
|
704
751
|
verifyStreamToken,
|
|
705
|
-
workspaceControlUtf8Bytes
|
|
706
|
-
|
|
752
|
+
workspaceControlUtf8Bytes,
|
|
753
|
+
workspaceSlackReactionChannelAllowed
|
|
754
|
+
} from "./chunk-JRHJTJVH.js";
|
|
707
755
|
import {
|
|
756
|
+
OPENGENI_MANAGED_PUBLIC_BASE_URL,
|
|
757
|
+
OPENGENI_SLACK_BOT_EVENTS,
|
|
708
758
|
OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
|
|
759
|
+
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
709
760
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
710
761
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
762
|
+
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
711
763
|
areOpenGeniSlackBotScopesAccepted,
|
|
712
|
-
|
|
713
|
-
|
|
764
|
+
buildOpenGeniSlackBotManifest,
|
|
765
|
+
evaluateOpenGeniSlackBotScopes,
|
|
766
|
+
hasOpenGeniSlackReactionScope
|
|
767
|
+
} from "./chunk-7JZMI22I.js";
|
|
714
768
|
export {
|
|
715
769
|
AccessContext,
|
|
716
770
|
AccessGrant,
|
|
@@ -719,12 +773,14 @@ export {
|
|
|
719
773
|
AccountRole,
|
|
720
774
|
AcknowledgeStreamRequest,
|
|
721
775
|
AcknowledgeStreamResponse,
|
|
776
|
+
ActivateCodexRealtimeConnectionRequest,
|
|
722
777
|
ActivatePreferenceRegistryRevisionRequest,
|
|
723
778
|
ActivateWorkspaceInstructionPolicyRequest,
|
|
724
779
|
AddDocumentRequest,
|
|
725
780
|
AddWorkspaceMemberRequest,
|
|
726
781
|
ApiKey,
|
|
727
782
|
AttachViewerRequest,
|
|
783
|
+
BeginSessionRealtimeRequest,
|
|
728
784
|
BillingBalance,
|
|
729
785
|
BillingMode,
|
|
730
786
|
CAPABILITY_DESCRIPTORS,
|
|
@@ -759,6 +815,10 @@ export {
|
|
|
759
815
|
ClientSessionEvent,
|
|
760
816
|
ClientVoiceInputConfig,
|
|
761
817
|
CodexCompactionMode,
|
|
818
|
+
CodexRealtimeVoice,
|
|
819
|
+
CodexRealtimeWebrtcRequest,
|
|
820
|
+
CodexRealtimeWebrtcResponse,
|
|
821
|
+
CodexRealtimeWebrtcVersion,
|
|
762
822
|
CompactSessionContextRequest,
|
|
763
823
|
CompactSessionContextResult,
|
|
764
824
|
CompleteFileUploadResponse,
|
|
@@ -795,8 +855,10 @@ export {
|
|
|
795
855
|
CreateWorkspaceRequest,
|
|
796
856
|
CredentialAuthNeededPayload,
|
|
797
857
|
DEFAULT_CODEX_FLEET_POLICY_V1,
|
|
858
|
+
DEFAULT_FILE_RESOURCE_MOUNT_ROOT,
|
|
798
859
|
DEFAULT_FIRST_PARTY_MCP_PERMISSIONS,
|
|
799
860
|
DEFAULT_FIRST_PARTY_MCP_TOOLS,
|
|
861
|
+
DEFAULT_WORKSPACE_SLACK_REACTION_SUMMON_SETTINGS,
|
|
800
862
|
DESKTOP_STREAM_PORT,
|
|
801
863
|
DeactivatePreferenceRegistryRequest,
|
|
802
864
|
DelegatedAccessPrincipalKind,
|
|
@@ -816,11 +878,13 @@ export {
|
|
|
816
878
|
DeviceEnrollmentState,
|
|
817
879
|
DiscoverMcpCapabilitiesResponse,
|
|
818
880
|
Document,
|
|
881
|
+
DocumentAuthorityKind,
|
|
819
882
|
DocumentBase,
|
|
820
883
|
DocumentCuration,
|
|
821
884
|
DocumentCurationStatus,
|
|
822
885
|
DocumentSearchMode,
|
|
823
886
|
DocumentSearchRequest,
|
|
887
|
+
DocumentSearchResponse,
|
|
824
888
|
DocumentSearchResult,
|
|
825
889
|
DocumentStatus,
|
|
826
890
|
DocumentVisibility,
|
|
@@ -830,6 +894,7 @@ export {
|
|
|
830
894
|
EffectiveSessionControl,
|
|
831
895
|
EnableCapabilityRequest,
|
|
832
896
|
EnablePackRequest,
|
|
897
|
+
EndSessionRealtimeRequest,
|
|
833
898
|
EnrollTokenExchangeRequest,
|
|
834
899
|
EnrollTokenExchangeResponse,
|
|
835
900
|
EnrollTokenPayload,
|
|
@@ -868,6 +933,9 @@ export {
|
|
|
868
933
|
FsTreeNode,
|
|
869
934
|
FsWriteRequest,
|
|
870
935
|
FsWriteResponse,
|
|
936
|
+
GatewayRealtimeConnectRequest,
|
|
937
|
+
GatewayRealtimeConnectResponse,
|
|
938
|
+
GatewayRealtimeInitialItem,
|
|
871
939
|
GetWorkspaceCaptureFileResponse,
|
|
872
940
|
GetWorkspaceCaptureResponse,
|
|
873
941
|
GitChangedPayload,
|
|
@@ -952,6 +1020,7 @@ export {
|
|
|
952
1020
|
ListEnrollmentsResponse,
|
|
953
1021
|
ListWorkspaceMembersResponse,
|
|
954
1022
|
MAX_NESTED_AGENT_DEPTH,
|
|
1023
|
+
MODEL_ATTACHMENT_REFS_FIELD,
|
|
955
1024
|
MachineKind,
|
|
956
1025
|
MachineMetricsSeriesResponse,
|
|
957
1026
|
MachineState,
|
|
@@ -990,13 +1059,17 @@ export {
|
|
|
990
1059
|
OPENGENI_API_CONTRACT_REVISION,
|
|
991
1060
|
OPENGENI_CORRELATION_HEADER,
|
|
992
1061
|
OPENGENI_HOST_EXPORT_SCHEMA_REVISION,
|
|
1062
|
+
OPENGENI_MANAGED_PUBLIC_BASE_URL,
|
|
993
1063
|
OPENGENI_PERSONAL_SLACK_MCP_URL,
|
|
994
1064
|
OPENGENI_SLACK_BOT_CREDENTIAL_LABEL,
|
|
995
1065
|
OPENGENI_SLACK_BOT_CREDENTIAL_ROLE,
|
|
1066
|
+
OPENGENI_SLACK_BOT_EVENTS,
|
|
996
1067
|
OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
|
|
1068
|
+
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
997
1069
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
998
1070
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
999
1071
|
OPENGENI_SLACK_BOT_SESSION_METADATA_KEY,
|
|
1072
|
+
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
1000
1073
|
OpenGeniSlackBotConnectionMetadata,
|
|
1001
1074
|
OpenGeniSlackBotInstallRequest,
|
|
1002
1075
|
OpenGeniSlackBotInstallStart,
|
|
@@ -1056,8 +1129,11 @@ export {
|
|
|
1056
1129
|
RegisterCapabilityPackRequest,
|
|
1057
1130
|
RejectPreferenceRegistryProposalRequest,
|
|
1058
1131
|
RelayTokenPayload,
|
|
1132
|
+
RenewSessionRealtimeRequest,
|
|
1059
1133
|
RepositoryResourceRef,
|
|
1060
1134
|
RequestHumanInputToolInput,
|
|
1135
|
+
ResolvedWorkspaceInstructionPolicySnapshot,
|
|
1136
|
+
ResolvedWorkspaceInstructionPolicySnapshotEntry,
|
|
1061
1137
|
ResourceMountPathError,
|
|
1062
1138
|
ResourceRef,
|
|
1063
1139
|
ResourceRefConflictError,
|
|
@@ -1156,6 +1232,15 @@ export {
|
|
|
1156
1232
|
SessionPendingInputPreview,
|
|
1157
1233
|
SessionQueueMutationResponse,
|
|
1158
1234
|
SessionQueueSnapshot,
|
|
1235
|
+
SessionRealtimeEndReason,
|
|
1236
|
+
SessionRealtimeInboundEntry,
|
|
1237
|
+
SessionRealtimeLedgerDirection,
|
|
1238
|
+
SessionRealtimeLedgerEntry,
|
|
1239
|
+
SessionRealtimeLedgerKind,
|
|
1240
|
+
SessionRealtimeMode,
|
|
1241
|
+
SessionRealtimeModel,
|
|
1242
|
+
SessionRealtimeMutationResponse,
|
|
1243
|
+
SessionRealtimeState,
|
|
1159
1244
|
SessionSkill,
|
|
1160
1245
|
SessionSkills,
|
|
1161
1246
|
SessionSpawnDenial,
|
|
@@ -1172,6 +1257,9 @@ export {
|
|
|
1172
1257
|
SetVariableSetVariableRequest,
|
|
1173
1258
|
SetWorkspaceDefaultRigRequest,
|
|
1174
1259
|
SetWorkspaceEnvironmentVariableRequest,
|
|
1260
|
+
SlackReactionChannel,
|
|
1261
|
+
SlackReactionChannelListResponse,
|
|
1262
|
+
SlackReactionEmojiName,
|
|
1175
1263
|
SocialConnection,
|
|
1176
1264
|
SocialConnectionStatus,
|
|
1177
1265
|
SocialOAuthProviderId,
|
|
@@ -1191,6 +1279,8 @@ export {
|
|
|
1191
1279
|
SupersedePreferenceRegistryRequest,
|
|
1192
1280
|
SwapActiveSandboxRequest,
|
|
1193
1281
|
SwapActiveSandboxResponse,
|
|
1282
|
+
SyncSessionRealtimeLedgerRequest,
|
|
1283
|
+
SyncSessionRealtimeLedgerResponse,
|
|
1194
1284
|
SystemUpdateClassification,
|
|
1195
1285
|
TERMINAL_STREAM_PORT,
|
|
1196
1286
|
TURN_EXECUTION_POLICY_METADATA_KEY,
|
|
@@ -1256,6 +1346,7 @@ export {
|
|
|
1256
1346
|
WORKSPACE_CONTROL_EVENT_MAX_BYTES,
|
|
1257
1347
|
WORKSPACE_CONTROL_REASON_MAX_BYTES,
|
|
1258
1348
|
WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS,
|
|
1349
|
+
WORKSPACE_INSTRUCTION_POLICY_PROMPT_MAX_UTF8_BYTES,
|
|
1259
1350
|
WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS,
|
|
1260
1351
|
WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS,
|
|
1261
1352
|
WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS,
|
|
@@ -1305,12 +1396,18 @@ export {
|
|
|
1305
1396
|
WorkspaceInstructionPolicyKind,
|
|
1306
1397
|
WorkspaceInstructionPolicyListQuery,
|
|
1307
1398
|
WorkspaceInstructionPolicyListResponse,
|
|
1399
|
+
WorkspaceInstructionPolicyOperationReuseResponse,
|
|
1308
1400
|
WorkspaceInstructionPolicyProvenance,
|
|
1309
1401
|
WorkspaceInstructionPolicyProvenanceSource,
|
|
1310
1402
|
WorkspaceInstructionPolicyRevision,
|
|
1311
1403
|
WorkspaceInstructionPolicyRevisionIdentity,
|
|
1312
1404
|
WorkspaceInstructionPolicyRoleKey,
|
|
1405
|
+
WorkspaceInstructionPolicyRoleKeyInput,
|
|
1406
|
+
WorkspaceInstructionPolicyRoleSource,
|
|
1313
1407
|
WorkspaceInstructionPolicyScope,
|
|
1408
|
+
WorkspaceInstructionPolicySnapshot,
|
|
1409
|
+
WorkspaceInstructionPolicySnapshotEntry,
|
|
1410
|
+
WorkspaceInstructionPolicySnapshotProvenance,
|
|
1314
1411
|
WorkspaceInstructionPolicyTarget,
|
|
1315
1412
|
WorkspaceMember,
|
|
1316
1413
|
WorkspaceMemorySearchMode,
|
|
@@ -1319,13 +1416,19 @@ export {
|
|
|
1319
1416
|
WorkspaceMemorySearchResult,
|
|
1320
1417
|
WorkspaceModelCatalogModel,
|
|
1321
1418
|
WorkspaceModelCatalogResponse,
|
|
1419
|
+
WorkspaceRealtimeModelCatalogItem,
|
|
1420
|
+
WorkspaceRealtimeModelCatalogResponse,
|
|
1322
1421
|
WorkspaceRegisteredPack,
|
|
1323
1422
|
WorkspaceRevisionCapturedPayload,
|
|
1324
1423
|
WorkspaceRevisionDegradedPayload,
|
|
1325
1424
|
WorkspaceSettingsSchema,
|
|
1425
|
+
WorkspaceSlackReactionChannelPolicy,
|
|
1426
|
+
WorkspaceSlackReactionSummonSettings,
|
|
1427
|
+
WorkspaceStateAttemptGovernance,
|
|
1326
1428
|
WorkspaceStateDocumentStatusCounts,
|
|
1327
1429
|
WorkspaceStateGap,
|
|
1328
1430
|
WorkspaceStateGapCode,
|
|
1431
|
+
WorkspaceStateGovernanceDriftStatus,
|
|
1329
1432
|
WorkspaceStateKnowledge,
|
|
1330
1433
|
WorkspaceStateKnowledgeAvailable,
|
|
1331
1434
|
WorkspaceStateKnowledgeBase,
|
|
@@ -1335,6 +1438,7 @@ export {
|
|
|
1335
1438
|
WorkspaceStatePolicy,
|
|
1336
1439
|
WorkspaceStatePolicyHead,
|
|
1337
1440
|
WorkspaceStatePolicyRevisionSummary,
|
|
1441
|
+
WorkspaceStateQuery,
|
|
1338
1442
|
WorkspaceStateResponse,
|
|
1339
1443
|
WorkspaceStateSourceKindCounts,
|
|
1340
1444
|
WorkspaceStateTopic,
|
|
@@ -1349,6 +1453,7 @@ export {
|
|
|
1349
1453
|
boundSessionEvent,
|
|
1350
1454
|
boundSessionEventPayload,
|
|
1351
1455
|
boundWorkspaceControlEvent,
|
|
1456
|
+
buildOpenGeniSlackBotManifest,
|
|
1352
1457
|
canonicalCodexFleetReplayJsonV1,
|
|
1353
1458
|
canonicalModalCheckpointProviderBinding,
|
|
1354
1459
|
capabilityCatalogItemIsTrustedForExposure,
|
|
@@ -1365,6 +1470,7 @@ export {
|
|
|
1365
1470
|
evaluateWorkspaceModelPolicy,
|
|
1366
1471
|
gitCredentialBindingIdForRepository,
|
|
1367
1472
|
gitCredentialProviderForRepository,
|
|
1473
|
+
hasOpenGeniSlackReactionScope,
|
|
1368
1474
|
identityRedactor,
|
|
1369
1475
|
isClearedRunStateBlob,
|
|
1370
1476
|
isCredentialHeaderName,
|
|
@@ -1394,6 +1500,7 @@ export {
|
|
|
1394
1500
|
resolveSessionEventTypeFilters,
|
|
1395
1501
|
resolveWorkspaceCodexCompactionDefault,
|
|
1396
1502
|
resolveWorkspaceMemoryEnabled,
|
|
1503
|
+
resolveWorkspaceSlackReactionSummonSettings,
|
|
1397
1504
|
resolveWorkspaceVoiceInputEnabled,
|
|
1398
1505
|
resourceIdentityKey,
|
|
1399
1506
|
resourceMountPath,
|
|
@@ -1420,6 +1527,7 @@ export {
|
|
|
1420
1527
|
verifyEnrollmentBearer,
|
|
1421
1528
|
verifyRelayToken,
|
|
1422
1529
|
verifyStreamToken,
|
|
1423
|
-
workspaceControlUtf8Bytes
|
|
1530
|
+
workspaceControlUtf8Bytes,
|
|
1531
|
+
workspaceSlackReactionChannelAllowed
|
|
1424
1532
|
};
|
|
1425
1533
|
//# 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;
|
package/dist/slack-bot-scopes.js
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
23
|
+
buildOpenGeniSlackBotManifest,
|
|
24
|
+
evaluateOpenGeniSlackBotScopes,
|
|
25
|
+
hasOpenGeniSlackReactionScope
|
|
14
26
|
};
|
|
15
27
|
//# sourceMappingURL=slack-bot-scopes.js.map
|