@opengeni/contracts 5.0.0 → 5.1.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
@@ -1473,6 +1473,7 @@ import {
1473
1473
  TimelineAnnotations,
1474
1474
  ToolAuthNeededPayload,
1475
1475
  ToolAuthNeededReason,
1476
+ ToolDisplayMetadata,
1476
1477
  ToolGatewayApprovalRequest,
1477
1478
  ToolGatewayApprovalResponse,
1478
1479
  ToolGatewayCallRequest,
@@ -1938,104 +1939,7 @@ import {
1938
1939
  workspaceLearningPolicyRouterContext,
1939
1940
  workspaceLearningSourceKey,
1940
1941
  workspaceSlackReactionChannelAllowed
1941
- } from "./chunk-CM7E7PFV.js";
1942
- import {
1943
- CONNECTOR_ATTACHMENT_FILENAME_MAX_UTF8_BYTES,
1944
- CONNECTOR_ATTACHMENT_MAX_BYTES,
1945
- CONNECTOR_ATTACHMENT_MAX_COUNT,
1946
- CONNECTOR_ATTACHMENT_MEDIA_TYPE_MAX_UTF8_BYTES,
1947
- CONNECTOR_ATTACHMENT_PROVIDER_ID_MAX_UTF8_BYTES,
1948
- CONNECTOR_ATTACHMENT_PROVIDER_MAX_UTF8_BYTES,
1949
- CONNECTOR_ATTACHMENT_RECEIPT_META_KEY,
1950
- CONNECTOR_ATTACHMENT_RECEIPT_VERSION,
1951
- CONNECTOR_ATTACHMENT_SANDBOX_PATH_MAX_UTF8_BYTES,
1952
- CONNECTOR_ATTACHMENT_SOURCE_URL_MAX_UTF8_BYTES,
1953
- CONNECTOR_ATTACHMENT_TRANSFER_META_KEY,
1954
- CONNECTOR_ATTACHMENT_TRANSFER_VERSION,
1955
- ConnectorAttachmentFileName,
1956
- ConnectorAttachmentMediaType,
1957
- ConnectorAttachmentPrivateSource,
1958
- ConnectorAttachmentProviderIdentity,
1959
- ConnectorAttachmentReceipt,
1960
- ConnectorAttachmentReceiptEnvelope,
1961
- ConnectorAttachmentSandboxPath,
1962
- ConnectorAttachmentSha256,
1963
- ConnectorAttachmentTransfer,
1964
- ConnectorAttachmentTransferEnvelope,
1965
- parseConnectorAttachmentTransferEnvelope
1966
- } from "./chunk-YBW5JSA3.js";
1967
- import {
1968
- EDITABLE_ARTIFACT_NATIVE_RECEIPT_MAX_BYTES,
1969
- EDITABLE_ARTIFACT_SERIALIZED_COMMIT_MAX_BYTES,
1970
- assertCanonicalEditableArtifactSerializedCommit,
1971
- decodeEditableArtifactSerializedCommit,
1972
- encodeEditableArtifactSerializedCommit
1973
- } from "./chunk-ENJTPHKP.js";
1974
- import {
1975
- WORKSPACE_XAI_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1,
1976
- XaiProviderAccountAuthoritySnapshotV1
1977
- } from "./chunk-GRG7PHWQ.js";
1978
- import {
1979
- mcpEndpointIdentity,
1980
- pluginMcpUnavailableReason
1981
- } from "./chunk-RKX3NQYS.js";
1982
- import {
1983
- OPENGENI_MANAGED_PUBLIC_BASE_URL,
1984
- OPENGENI_SLACK_BOT_EVENTS,
1985
- OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
1986
- OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
1987
- OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
1988
- OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
1989
- OPENGENI_SLACK_BOT_SEARCH_SCOPES,
1990
- OPENGENI_SLACK_MCP_USER_SCOPES,
1991
- OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
1992
- areOpenGeniSlackBotScopesAccepted,
1993
- buildOpenGeniSlackBotManifest,
1994
- evaluateOpenGeniSlackBotScopes,
1995
- hasOpenGeniSlackBotSearchScopes,
1996
- hasOpenGeniSlackReactionScope
1997
- } from "./chunk-MRWYRAS5.js";
1998
- import {
1999
- MAX_COMMITTED_TRANSACTION_BYTES,
2000
- MAX_COMMITTED_TRANSACTION_CAUSAL_REPLICAS,
2001
- MAX_COMMITTED_TRANSACTION_CELLS,
2002
- MAX_COMMITTED_TRANSACTION_OPERATIONS,
2003
- decodeCommittedTransactionSummary
2004
- } from "./chunk-3SIZGL3O.js";
2005
- import {
2006
- EDITABLE_ARTIFACT_COMMAND_MAX_BYTES,
2007
- EDITABLE_ARTIFACT_INTENT_MAX_BYTES,
2008
- EDITABLE_ARTIFACT_INTENT_MAX_CAUSAL_ACTORS,
2009
- EDITABLE_ARTIFACT_INTENT_MAX_UNDO_TARGETS,
2010
- EDITABLE_ARTIFACT_INTENT_PROTOCOL_VERSION,
2011
- EDITABLE_ARTIFACT_INTENT_VERSION,
2012
- EDITABLE_ARTIFACT_KERNEL_VERSION_MAX_BYTES,
2013
- EDITABLE_ARTIFACT_PRODUCT_MAX_SNAPSHOT_BYTES,
2014
- assertEditableArtifactRequestHash,
2015
- decodeEditableArtifactMutationIntent,
2016
- encodeEditableArtifactMutationIntent,
2017
- hashEditableArtifactMutationIntent,
2018
- hashEditableArtifactMutationIntentBytes
2019
- } from "./chunk-NVJMJWLL.js";
2020
- import {
2021
- EDITABLE_ARTIFACT_CAUSAL_FRONTIER_MAX_BYTES,
2022
- EDITABLE_ARTIFACT_CAUSAL_FRONTIER_MAX_REPLICAS,
2023
- EDITABLE_ARTIFACT_CAUSAL_FRONTIER_VERSION,
2024
- assertCanonicalEditableArtifactCausalFrontierBytes,
2025
- decodeEditableArtifactCausalFrontier,
2026
- encodeEditableArtifactCausalFrontier
2027
- } from "./chunk-YRKRZ6OF.js";
2028
- import {
2029
- CanonicalHumanBindingOperationRequest,
2030
- CanonicalHumanIdentityMutationOutcome,
2031
- CanonicalHumanIdentityMutationResponse,
2032
- CanonicalHumanIdentityProjection,
2033
- CanonicalHumanIdentityStatus,
2034
- CanonicalHumanLoginBinding,
2035
- CanonicalHumanLoginBindingStatus,
2036
- CanonicalHumanRecoveryState,
2037
- LinkCanonicalHumanLoginBindingRequest
2038
- } from "./chunk-JUFK3T4Q.js";
1942
+ } from "./chunk-O23LYZFL.js";
2039
1943
  import {
2040
1944
  COMPUTER_SCREENSHOT_MAX_BYTES,
2041
1945
  COMPUTER_SCREENSHOT_MAX_DIMENSION,
@@ -2088,6 +1992,133 @@ import {
2088
1992
  retainedScreenshotReferenceFromFile,
2089
1993
  validateRetainedOutputEvidence
2090
1994
  } from "./chunk-M5ZGRVIQ.js";
1995
+ import {
1996
+ AUTOMATIC_SESSION_TITLE_FALLBACK,
1997
+ AUTOMATIC_SESSION_TITLE_MAX_GRAPHEMES,
1998
+ SESSION_TITLE_MAX_CHARACTERS,
1999
+ boundAutomaticSessionTitle,
2000
+ containsSensitiveAutomaticSessionTitleValue,
2001
+ deriveAutomaticSessionTitlePreview,
2002
+ deriveSessionDisplayTitle,
2003
+ normalizeAutomaticSessionTitle,
2004
+ sessionTitleIsPending
2005
+ } from "./chunk-7ABONTXE.js";
2006
+ import {
2007
+ EDITABLE_ARTIFACT_NATIVE_RECEIPT_MAX_BYTES,
2008
+ EDITABLE_ARTIFACT_SERIALIZED_COMMIT_MAX_BYTES,
2009
+ assertCanonicalEditableArtifactSerializedCommit,
2010
+ decodeEditableArtifactSerializedCommit,
2011
+ encodeEditableArtifactSerializedCommit
2012
+ } from "./chunk-NRMCVHAU.js";
2013
+ import {
2014
+ ConnectorDocumentDestination,
2015
+ ConnectorDocumentDestinationAuthority,
2016
+ ConnectorDocumentDestinationSelection,
2017
+ bindConnectorDocumentDestination,
2018
+ connectorDestinationDocumentAuthority,
2019
+ connectorDocumentDestinationCollectionId,
2020
+ legacyWorkspaceConnectorDocumentDestination,
2021
+ resolveConnectorDocumentDestination
2022
+ } from "./chunk-WYBDERIY.js";
2023
+ import {
2024
+ Permission
2025
+ } from "./chunk-P3HLDT77.js";
2026
+ import {
2027
+ EDITABLE_ARTIFACT_COMMAND_MAX_BYTES,
2028
+ EDITABLE_ARTIFACT_INTENT_MAX_BYTES,
2029
+ EDITABLE_ARTIFACT_INTENT_MAX_CAUSAL_ACTORS,
2030
+ EDITABLE_ARTIFACT_INTENT_MAX_UNDO_TARGETS,
2031
+ EDITABLE_ARTIFACT_INTENT_PROTOCOL_VERSION,
2032
+ EDITABLE_ARTIFACT_INTENT_VERSION,
2033
+ EDITABLE_ARTIFACT_KERNEL_VERSION_MAX_BYTES,
2034
+ EDITABLE_ARTIFACT_PRODUCT_MAX_SNAPSHOT_BYTES,
2035
+ assertEditableArtifactRequestHash,
2036
+ decodeEditableArtifactMutationIntent,
2037
+ encodeEditableArtifactMutationIntent,
2038
+ hashEditableArtifactMutationIntent,
2039
+ hashEditableArtifactMutationIntentBytes
2040
+ } from "./chunk-NVJMJWLL.js";
2041
+ import {
2042
+ EDITABLE_ARTIFACT_CODEC_REGISTRY,
2043
+ currentEditableArtifactCompatibility,
2044
+ editableArtifactCodecFor
2045
+ } from "./chunk-SIOU2K4U.js";
2046
+ import {
2047
+ EDITABLE_ARTIFACT_CAUSAL_FRONTIER_MAX_BYTES,
2048
+ EDITABLE_ARTIFACT_CAUSAL_FRONTIER_MAX_REPLICAS,
2049
+ EDITABLE_ARTIFACT_CAUSAL_FRONTIER_VERSION,
2050
+ assertCanonicalEditableArtifactCausalFrontierBytes,
2051
+ decodeEditableArtifactCausalFrontier,
2052
+ encodeEditableArtifactCausalFrontier
2053
+ } from "./chunk-YRKRZ6OF.js";
2054
+ import {
2055
+ OPENGENI_MANAGED_PUBLIC_BASE_URL,
2056
+ OPENGENI_SLACK_BOT_EVENTS,
2057
+ OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES,
2058
+ OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
2059
+ OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
2060
+ OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
2061
+ OPENGENI_SLACK_BOT_SEARCH_SCOPES,
2062
+ OPENGENI_SLACK_MCP_USER_SCOPES,
2063
+ OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
2064
+ areOpenGeniSlackBotScopesAccepted,
2065
+ buildOpenGeniSlackBotManifest,
2066
+ evaluateOpenGeniSlackBotScopes,
2067
+ hasOpenGeniSlackBotSearchScopes,
2068
+ hasOpenGeniSlackReactionScope
2069
+ } from "./chunk-MRWYRAS5.js";
2070
+ import {
2071
+ MAX_COMMITTED_TRANSACTION_BYTES,
2072
+ MAX_COMMITTED_TRANSACTION_CAUSAL_REPLICAS,
2073
+ MAX_COMMITTED_TRANSACTION_CELLS,
2074
+ MAX_COMMITTED_TRANSACTION_OPERATIONS,
2075
+ decodeCommittedTransactionSummary
2076
+ } from "./chunk-3SIZGL3O.js";
2077
+ import {
2078
+ DOCUMENT_ARTIFACT_COMMAND_MAX_BYTES,
2079
+ DOCUMENT_ARTIFACT_COMMAND_MAX_COMMANDS,
2080
+ DOCUMENT_ARTIFACT_COMMAND_MAX_STRING_BYTES,
2081
+ DOCUMENT_ARTIFACT_COMMAND_VERSION,
2082
+ DOCUMENT_ARTIFACT_MAX_STRUCTURAL_COUNTER,
2083
+ DOCUMENT_ARTIFACT_MAX_TABLE_CELLS,
2084
+ DOCUMENT_ARTIFACT_MAX_TEXT_RUNS,
2085
+ DOCUMENT_ARTIFACT_MAX_TEXT_UTF16,
2086
+ DOCUMENT_ARTIFACT_QUERY_MAX_BYTES,
2087
+ DOCUMENT_ARTIFACT_QUERY_MAX_ITEMS,
2088
+ DOCUMENT_ARTIFACT_QUERY_MAX_TABLE_CELLS,
2089
+ DOCUMENT_ARTIFACT_QUERY_MAX_TEXT_UTF16,
2090
+ DOCUMENT_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
2091
+ DOCUMENT_ARTIFACT_QUERY_RESPONSE_VERSION,
2092
+ DOCUMENT_ARTIFACT_QUERY_VERSION,
2093
+ assertCanonicalDocumentArtifactCommandBytes,
2094
+ assertCanonicalDocumentArtifactQueryBytes,
2095
+ assertCanonicalDocumentArtifactQueryResponseBytes,
2096
+ decodeDocumentArtifactCommandBatch,
2097
+ decodeDocumentArtifactQuery,
2098
+ decodeDocumentArtifactQueryResponse,
2099
+ encodeDocumentArtifactCommandBatch,
2100
+ encodeDocumentArtifactQuery,
2101
+ encodeDocumentArtifactQueryResponse
2102
+ } from "./chunk-RIY7GYQS.js";
2103
+ import {
2104
+ CanonicalHumanBindingOperationRequest,
2105
+ CanonicalHumanIdentityMutationOutcome,
2106
+ CanonicalHumanIdentityMutationResponse,
2107
+ CanonicalHumanIdentityProjection,
2108
+ CanonicalHumanIdentityStatus,
2109
+ CanonicalHumanLoginBinding,
2110
+ CanonicalHumanLoginBindingStatus,
2111
+ CanonicalHumanRecoveryState,
2112
+ LinkCanonicalHumanLoginBindingRequest
2113
+ } from "./chunk-JUFK3T4Q.js";
2114
+ import {
2115
+ WORKSPACE_XAI_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1,
2116
+ XaiProviderAccountAuthoritySnapshotV1
2117
+ } from "./chunk-GRG7PHWQ.js";
2118
+ import {
2119
+ SiteSessionPathError,
2120
+ siteSessionPath
2121
+ } from "./chunk-YRXAWWCU.js";
2091
2122
  import {
2092
2123
  AcceptOrganizationRecoveryCustodyRequest,
2093
2124
  ConfigureOrganizationRecoveryPolicyRequest,
@@ -2107,10 +2138,42 @@ import {
2107
2138
  StartOrganizationRecoveryOperationRequest
2108
2139
  } from "./chunk-BCS7WHCK.js";
2109
2140
  import {
2110
- EDITABLE_ARTIFACT_CODEC_REGISTRY,
2111
- currentEditableArtifactCompatibility,
2112
- editableArtifactCodecFor
2113
- } from "./chunk-YJEOWXOE.js";
2141
+ PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
2142
+ PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
2143
+ PRESENTATION_ARTIFACT_COMMAND_VERSION,
2144
+ PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
2145
+ PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
2146
+ PRESENTATION_ARTIFACT_MAX_COORDINATE,
2147
+ PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
2148
+ PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
2149
+ PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
2150
+ PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
2151
+ PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
2152
+ PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
2153
+ PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
2154
+ PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
2155
+ PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
2156
+ PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
2157
+ PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
2158
+ PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
2159
+ PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
2160
+ PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
2161
+ PRESENTATION_ARTIFACT_QUERY_VERSION,
2162
+ assertCanonicalPresentationArtifactCommandBytes,
2163
+ assertCanonicalPresentationArtifactQueryBytes,
2164
+ assertCanonicalPresentationArtifactQueryResponseBytes,
2165
+ decodePresentationArtifactCommandBatch,
2166
+ decodePresentationArtifactQuery,
2167
+ decodePresentationArtifactQueryResponse,
2168
+ encodePresentationArtifactCommandBatch,
2169
+ encodePresentationArtifactQuery,
2170
+ encodePresentationArtifactQueryResponse
2171
+ } from "./chunk-D2HKF2EF.js";
2172
+ import "./chunk-MYBZRDTY.js";
2173
+ import {
2174
+ mcpEndpointIdentity,
2175
+ pluginMcpUnavailableReason
2176
+ } from "./chunk-RKX3NQYS.js";
2114
2177
  import {
2115
2178
  SPREADSHEET_ARTIFACT_METADATA_MAX_SHEETS,
2116
2179
  SPREADSHEET_ARTIFACT_METADATA_MIN_RESPONSE_BYTES,
@@ -2146,65 +2209,6 @@ import {
2146
2209
  encodeSpreadsheetArtifactCommandBatch,
2147
2210
  spreadsheetSheetId
2148
2211
  } from "./chunk-TXTQIYCV.js";
2149
- import {
2150
- PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
2151
- PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
2152
- PRESENTATION_ARTIFACT_COMMAND_VERSION,
2153
- PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
2154
- PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
2155
- PRESENTATION_ARTIFACT_MAX_COORDINATE,
2156
- PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
2157
- PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
2158
- PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
2159
- PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
2160
- PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
2161
- PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
2162
- PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
2163
- PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
2164
- PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
2165
- PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
2166
- PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
2167
- PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
2168
- PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
2169
- PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
2170
- PRESENTATION_ARTIFACT_QUERY_VERSION,
2171
- assertCanonicalPresentationArtifactCommandBytes,
2172
- assertCanonicalPresentationArtifactQueryBytes,
2173
- assertCanonicalPresentationArtifactQueryResponseBytes,
2174
- decodePresentationArtifactCommandBatch,
2175
- decodePresentationArtifactQuery,
2176
- decodePresentationArtifactQueryResponse,
2177
- encodePresentationArtifactCommandBatch,
2178
- encodePresentationArtifactQuery,
2179
- encodePresentationArtifactQueryResponse
2180
- } from "./chunk-D2HKF2EF.js";
2181
- import {
2182
- DOCUMENT_ARTIFACT_COMMAND_MAX_BYTES,
2183
- DOCUMENT_ARTIFACT_COMMAND_MAX_COMMANDS,
2184
- DOCUMENT_ARTIFACT_COMMAND_MAX_STRING_BYTES,
2185
- DOCUMENT_ARTIFACT_COMMAND_VERSION,
2186
- DOCUMENT_ARTIFACT_MAX_STRUCTURAL_COUNTER,
2187
- DOCUMENT_ARTIFACT_MAX_TABLE_CELLS,
2188
- DOCUMENT_ARTIFACT_MAX_TEXT_RUNS,
2189
- DOCUMENT_ARTIFACT_MAX_TEXT_UTF16,
2190
- DOCUMENT_ARTIFACT_QUERY_MAX_BYTES,
2191
- DOCUMENT_ARTIFACT_QUERY_MAX_ITEMS,
2192
- DOCUMENT_ARTIFACT_QUERY_MAX_TABLE_CELLS,
2193
- DOCUMENT_ARTIFACT_QUERY_MAX_TEXT_UTF16,
2194
- DOCUMENT_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
2195
- DOCUMENT_ARTIFACT_QUERY_RESPONSE_VERSION,
2196
- DOCUMENT_ARTIFACT_QUERY_VERSION,
2197
- assertCanonicalDocumentArtifactCommandBytes,
2198
- assertCanonicalDocumentArtifactQueryBytes,
2199
- assertCanonicalDocumentArtifactQueryResponseBytes,
2200
- decodeDocumentArtifactCommandBatch,
2201
- decodeDocumentArtifactQuery,
2202
- decodeDocumentArtifactQueryResponse,
2203
- encodeDocumentArtifactCommandBatch,
2204
- encodeDocumentArtifactQuery,
2205
- encodeDocumentArtifactQueryResponse
2206
- } from "./chunk-RIY7GYQS.js";
2207
- import "./chunk-MYBZRDTY.js";
2208
2212
  import {
2209
2213
  COMMITTED_TRANSACTION_PROTOCOL_VERSION,
2210
2214
  DOCUMENT_ARTIFACT_MODEL_SCHEMA_VERSION,
@@ -2217,33 +2221,30 @@ import {
2217
2221
  SPREADSHEET_COLLABORATION_SNAPSHOT_VERSION
2218
2222
  } from "./chunk-PX3VCKAU.js";
2219
2223
  import {
2220
- SiteSessionPathError,
2221
- siteSessionPath
2222
- } from "./chunk-YRXAWWCU.js";
2223
- import {
2224
- ConnectorDocumentDestination,
2225
- ConnectorDocumentDestinationAuthority,
2226
- ConnectorDocumentDestinationSelection,
2227
- bindConnectorDocumentDestination,
2228
- connectorDestinationDocumentAuthority,
2229
- connectorDocumentDestinationCollectionId,
2230
- legacyWorkspaceConnectorDocumentDestination,
2231
- resolveConnectorDocumentDestination
2232
- } from "./chunk-WYBDERIY.js";
2233
- import {
2234
- Permission
2235
- } from "./chunk-P3HLDT77.js";
2236
- import {
2237
- AUTOMATIC_SESSION_TITLE_FALLBACK,
2238
- AUTOMATIC_SESSION_TITLE_MAX_GRAPHEMES,
2239
- SESSION_TITLE_MAX_CHARACTERS,
2240
- boundAutomaticSessionTitle,
2241
- containsSensitiveAutomaticSessionTitleValue,
2242
- deriveAutomaticSessionTitlePreview,
2243
- deriveSessionDisplayTitle,
2244
- normalizeAutomaticSessionTitle,
2245
- sessionTitleIsPending
2246
- } from "./chunk-7ABONTXE.js";
2224
+ CONNECTOR_ATTACHMENT_FILENAME_MAX_UTF8_BYTES,
2225
+ CONNECTOR_ATTACHMENT_MAX_BYTES,
2226
+ CONNECTOR_ATTACHMENT_MAX_COUNT,
2227
+ CONNECTOR_ATTACHMENT_MEDIA_TYPE_MAX_UTF8_BYTES,
2228
+ CONNECTOR_ATTACHMENT_PROVIDER_ID_MAX_UTF8_BYTES,
2229
+ CONNECTOR_ATTACHMENT_PROVIDER_MAX_UTF8_BYTES,
2230
+ CONNECTOR_ATTACHMENT_RECEIPT_META_KEY,
2231
+ CONNECTOR_ATTACHMENT_RECEIPT_VERSION,
2232
+ CONNECTOR_ATTACHMENT_SANDBOX_PATH_MAX_UTF8_BYTES,
2233
+ CONNECTOR_ATTACHMENT_SOURCE_URL_MAX_UTF8_BYTES,
2234
+ CONNECTOR_ATTACHMENT_TRANSFER_META_KEY,
2235
+ CONNECTOR_ATTACHMENT_TRANSFER_VERSION,
2236
+ ConnectorAttachmentFileName,
2237
+ ConnectorAttachmentMediaType,
2238
+ ConnectorAttachmentPrivateSource,
2239
+ ConnectorAttachmentProviderIdentity,
2240
+ ConnectorAttachmentReceipt,
2241
+ ConnectorAttachmentReceiptEnvelope,
2242
+ ConnectorAttachmentSandboxPath,
2243
+ ConnectorAttachmentSha256,
2244
+ ConnectorAttachmentTransfer,
2245
+ ConnectorAttachmentTransferEnvelope,
2246
+ parseConnectorAttachmentTransferEnvelope
2247
+ } from "./chunk-YBW5JSA3.js";
2247
2248
  export {
2248
2249
  AGENT_AUTHORED_COMPANY_PROFILE_CONTENT_MAX_UTF8_BYTES,
2249
2250
  AGENT_AUTHORED_COMPANY_PROFILE_ENTRY_MAX_CHARS,
@@ -3883,6 +3884,7 @@ export {
3883
3884
  TimelineAnnotations,
3884
3885
  ToolAuthNeededPayload,
3885
3886
  ToolAuthNeededReason,
3887
+ ToolDisplayMetadata,
3886
3888
  ToolGatewayApprovalRequest,
3887
3889
  ToolGatewayApprovalResponse,
3888
3890
  ToolGatewayCallRequest,
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-CM7E7PFV.js";
4
- import "./chunk-YBW5JSA3.js";
5
- import "./chunk-ENJTPHKP.js";
6
- import "./chunk-GRG7PHWQ.js";
7
- import "./chunk-RKX3NQYS.js";
8
- import "./chunk-MRWYRAS5.js";
9
- import "./chunk-3SIZGL3O.js";
3
+ } from "./chunk-O23LYZFL.js";
4
+ import "./chunk-M5ZGRVIQ.js";
5
+ import "./chunk-7ABONTXE.js";
6
+ import "./chunk-NRMCVHAU.js";
7
+ import "./chunk-WYBDERIY.js";
8
+ import "./chunk-P3HLDT77.js";
10
9
  import "./chunk-NVJMJWLL.js";
10
+ import "./chunk-SIOU2K4U.js";
11
11
  import "./chunk-YRKRZ6OF.js";
12
+ import "./chunk-MRWYRAS5.js";
13
+ import "./chunk-3SIZGL3O.js";
14
+ import "./chunk-RIY7GYQS.js";
12
15
  import "./chunk-JUFK3T4Q.js";
13
- import "./chunk-M5ZGRVIQ.js";
16
+ import "./chunk-GRG7PHWQ.js";
17
+ import "./chunk-YRXAWWCU.js";
14
18
  import "./chunk-BCS7WHCK.js";
15
- import "./chunk-YJEOWXOE.js";
16
- import "./chunk-Y3KNXVTD.js";
17
- import "./chunk-TXTQIYCV.js";
18
19
  import "./chunk-D2HKF2EF.js";
19
- import "./chunk-RIY7GYQS.js";
20
20
  import "./chunk-MYBZRDTY.js";
21
+ import "./chunk-RKX3NQYS.js";
22
+ import "./chunk-Y3KNXVTD.js";
23
+ import "./chunk-TXTQIYCV.js";
21
24
  import "./chunk-PX3VCKAU.js";
22
- import "./chunk-YRXAWWCU.js";
23
- import "./chunk-WYBDERIY.js";
24
- import "./chunk-P3HLDT77.js";
25
- import "./chunk-7ABONTXE.js";
25
+ import "./chunk-YBW5JSA3.js";
26
26
 
27
27
  // src/personal-github.ts
28
28
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  /** Shared text-folder limits for API admission, runtime imports and checkout. */
2
- export declare const SKILL_MAX_FILES = 128;
2
+ export declare const SKILL_MAX_FILES = 1024;
3
3
  export declare const SKILL_MAX_FILE_BYTES: number;
4
4
  export declare const SKILL_MAX_TOTAL_BYTES: number;
5
5
  export declare function isSafeSkillRelativePath(path: string): boolean;
@@ -46,6 +46,13 @@ export type AttemptToolAnnotations = z.infer<typeof AttemptToolAnnotations>;
46
46
  /** JSON Schema is preserved as received. Runtime byte/node guards remain authoritative. */
47
47
  export declare const AttemptToolJsonSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
48
48
  export type AttemptToolJsonSchema = z.infer<typeof AttemptToolJsonSchema>;
49
+ /** Presentation only; never parsed as execution or account authority. */
50
+ export declare const ToolDisplayMetadata: z.ZodObject<{
51
+ toolName: z.ZodString;
52
+ title: z.ZodOptional<z.ZodString>;
53
+ accountLabel: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strict>;
55
+ export type ToolDisplayMetadata = z.infer<typeof ToolDisplayMetadata>;
49
56
  export declare const AttemptToolCatalogEntry: z.ZodObject<{
50
57
  identity: z.ZodObject<{
51
58
  serverId: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
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
@@ -11,7 +11,13 @@ export * from "./bundled-skills";
11
11
  import { BundledSkillSelection } from "./bundled-skills";
12
12
  import { SkillWriteReceipt, SkillSourceReleaseReceipt, SkillPublicationReceipt } from "./skills";
13
13
  import { readSkillMetadata } from "./skill-metadata";
14
- import { isSafeSkillRelativePath, validateSkillTextFiles } from "./skill-files";
14
+ import {
15
+ isSafeSkillRelativePath,
16
+ validateSkillTextFiles,
17
+ SKILL_MAX_FILES,
18
+ SKILL_MAX_FILE_BYTES,
19
+ SKILL_MAX_TOTAL_BYTES,
20
+ } from "./skill-files";
15
21
  export * from "./model-connection-access";
16
22
  export * from "./sandbox-provider-command";
17
23
  import { z } from "zod";
@@ -851,6 +857,7 @@ export const FIRST_PARTY_MCP_TOOL_NAMES = [
851
857
  "run_on",
852
858
  "sandbox_provision",
853
859
  "connected_machine_remove",
860
+ "connected_machine_enroll_token",
854
861
  "project_list",
855
862
  "project_get",
856
863
  "project_create",
@@ -10180,7 +10187,7 @@ export const SkillArtifactFile = z.object({
10180
10187
  path: z.string().min(1).max(512).refine(isSafeSkillRelativePath, {
10181
10188
  message: "skill file path must be a safe relative POSIX path without '..' segments",
10182
10189
  }),
10183
- content: z.string().max(256 * 1024),
10190
+ content: z.string().max(SKILL_MAX_FILE_BYTES),
10184
10191
  });
10185
10192
  export type SkillArtifactFile = z.infer<typeof SkillArtifactFile>;
10186
10193
 
@@ -10193,7 +10200,7 @@ export const SkillArtifactDefinition = /* @__PURE__ */ defineSkillContractSchema
10193
10200
  description: z.string().min(1).max(1024).optional(),
10194
10201
  // Installation policy stays separate from session-owned Skill content.
10195
10202
  activationMode: z.enum(["workspace_managed", "session_selected"]).optional(),
10196
- files: z.array(SkillArtifactFile).min(1).max(128),
10203
+ files: z.array(SkillArtifactFile).min(1).max(SKILL_MAX_FILES),
10197
10204
  })
10198
10205
  .transform((skill, ctx) => {
10199
10206
  const main = skill.files.find((file) => file.path === "SKILL.md");
@@ -11164,13 +11171,13 @@ export type PreviewSkillImportRequest = z.infer<typeof PreviewSkillImportRequest
11164
11171
 
11165
11172
  export const SkillImportFileSummary = z.object({
11166
11173
  path: z.string().min(1).max(1024),
11167
- byteSize: z.number().int().nonnegative().max(262144),
11174
+ byteSize: z.number().int().nonnegative().max(SKILL_MAX_FILE_BYTES),
11168
11175
  contentSha256: z.string().regex(/^[0-9a-f]{64}$/),
11169
11176
  });
11170
11177
  export type SkillImportFileSummary = z.infer<typeof SkillImportFileSummary>;
11171
11178
 
11172
11179
  export const SkillImportPreview = z.object({
11173
- markdown: z.string().max(262144).optional(),
11180
+ markdown: z.string().max(SKILL_MAX_FILE_BYTES).optional(),
11174
11181
  source: SkillImportSource,
11175
11182
  sourceUrl: z.string().url(),
11176
11183
  repositoryUrl: z.string().url(),
@@ -11181,8 +11188,8 @@ export const SkillImportPreview = z.object({
11181
11188
  name: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/),
11182
11189
  description: z.string().min(1).max(2048),
11183
11190
  contentSha256: z.string().regex(/^[0-9a-f]{64}$/),
11184
- totalBytes: z.number().int().positive().max(1048576),
11185
- files: z.array(SkillImportFileSummary).min(1).max(128),
11191
+ totalBytes: z.number().int().positive().max(SKILL_MAX_TOTAL_BYTES),
11192
+ files: z.array(SkillImportFileSummary).min(1).max(SKILL_MAX_FILES),
11186
11193
  warnings: z.array(z.string().min(1).max(500)).max(32).default([]),
11187
11194
  installed: z.boolean().default(false),
11188
11195
  installationVersion: z.number().int().positive().nullable().default(null),
@@ -12024,6 +12031,7 @@ export const SessionBackgroundCommand = z
12024
12031
  state: SessionBackgroundCommandState,
12025
12032
  observationStatus: z.literal("unavailable").optional(),
12026
12033
  commandPreview: z.string().max(512),
12034
+ commandText: z.string().optional(),
12027
12035
  cancelRequestedAt: z.string().nullable(),
12028
12036
  exitCode: z.number().int().nullable(),
12029
12037
  settlementReason: z.string().nullable(),
@@ -15985,7 +15993,19 @@ export const MachineState = z.enum([
15985
15993
  ]);
15986
15994
  export type MachineState = z.infer<typeof MachineState>;
15987
15995
 
15988
- export const MachineKind = z.enum(["modal", "selfhosted", "opensandbox"]);
15996
+ export const MachineKind = z.enum([
15997
+ "docker",
15998
+ "modal",
15999
+ "local",
16000
+ "daytona",
16001
+ "runloop",
16002
+ "e2b",
16003
+ "blaxel",
16004
+ "cloudflare",
16005
+ "vercel",
16006
+ "selfhosted",
16007
+ "opensandbox",
16008
+ ]);
15989
16009
  export type MachineKind = z.infer<typeof MachineKind>;
15990
16010
 
15991
16011
  /** Diagnostic projection of the single live Connected-Machine runner authority.
@@ -16119,7 +16139,7 @@ export type UpdateMachineOperationPolicyRequest = z.infer<
16119
16139
 
16120
16140
  /**
16121
16141
  * A machine as the Machines dashboard renders it. The workspace's enrolled
16122
- * selfhosted machines PLUS the session's synthetic Modal group box
16142
+ * selfhosted machines PLUS the session's own managed sandbox
16123
16143
  * (`isSessionGroup: true`). `active` marks the session's currently-active
16124
16144
  * routing target. `sharedSessionCount` is the lease refcount (how many sessions
16125
16145
  * share this whole machine). `metrics` is the latest sample, or null when none
@@ -1,7 +1,7 @@
1
1
  /** Shared text-folder limits for API admission, runtime imports and checkout. */
2
- export const SKILL_MAX_FILES = 128;
3
- export const SKILL_MAX_FILE_BYTES = 256 * 1024;
4
- export const SKILL_MAX_TOTAL_BYTES = 1024 * 1024;
2
+ export const SKILL_MAX_FILES = 1024;
3
+ export const SKILL_MAX_FILE_BYTES = 2 * 1024 * 1024;
4
+ export const SKILL_MAX_TOTAL_BYTES = 8 * 1024 * 1024;
5
5
 
6
6
  export function isSafeSkillRelativePath(path: string): boolean {
7
7
  return (
@@ -74,6 +74,16 @@ export type AttemptToolAnnotations = z.infer<typeof AttemptToolAnnotations>;
74
74
  export const AttemptToolJsonSchema = jsonObject;
75
75
  export type AttemptToolJsonSchema = z.infer<typeof AttemptToolJsonSchema>;
76
76
 
77
+ /** Presentation only; never parsed as execution or account authority. */
78
+ export const ToolDisplayMetadata = z
79
+ .object({
80
+ toolName: toolIdentifier,
81
+ title: z.string().min(1).max(512).optional(),
82
+ accountLabel: z.string().min(1).max(1024).optional(),
83
+ })
84
+ .strict();
85
+ export type ToolDisplayMetadata = z.infer<typeof ToolDisplayMetadata>;
86
+
77
87
  export const AttemptToolCatalogEntry = z
78
88
  .object({
79
89
  identity: AttemptToolIdentity,