@opengeni/contracts 0.38.3 → 0.40.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
@@ -23,6 +23,11 @@ import {
23
23
  CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE,
24
24
  CODEX_FLEET_POLICY_SCHEMA_VERSION,
25
25
  CODEX_FLEET_POLICY_VERSION,
26
+ COMPUTER_SCREENSHOT_MAX_BYTES,
27
+ COMPUTER_SCREENSHOT_MAX_DIMENSION,
28
+ COMPUTER_SCREENSHOT_MAX_PIXELS,
29
+ COMPUTER_SCREENSHOT_RETENTION_MS,
30
+ COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES,
26
31
  CapabilityCatalogAuthKind,
27
32
  CapabilityCatalogItem,
28
33
  CapabilityCatalogResponse,
@@ -45,6 +50,7 @@ import {
45
50
  ClientAuthConfig,
46
51
  ClientConfig,
47
52
  ClientModel,
53
+ ClientResumableVoiceInputConfig,
48
54
  ClientSessionEvent,
49
55
  ClientVoiceInputConfig,
50
56
  CodexCompactionMode,
@@ -81,6 +87,7 @@ import {
81
87
  CreateSessionResponse,
82
88
  CreateSocialConnectionRequest,
83
89
  CreateSocialPostRequest,
90
+ CreateTranscriptionRecordingRequest,
84
91
  CreateVariableSetRequest,
85
92
  CreateWorkspaceArtifactRequest,
86
93
  CreateWorkspaceEnvironmentRequest,
@@ -149,12 +156,15 @@ import {
149
156
  FileResourceRef,
150
157
  FileStatus,
151
158
  FileUploadStatus,
159
+ FinalizeTranscriptionRecordingRequest,
152
160
  FirstPartyMcpToolName,
153
161
  FsChangeKind,
154
162
  FsChangedPayload,
155
163
  FsDeleteRequest,
156
164
  FsDeleteResponse,
157
165
  FsEncoding,
166
+ FsListBatchRequest,
167
+ FsListBatchResponse,
158
168
  FsListRequest,
159
169
  FsListResponse,
160
170
  FsMkdirRequest,
@@ -196,6 +206,10 @@ import {
196
206
  GitHubRepositoryScope,
197
207
  GitLogRequest,
198
208
  GitLogResponse,
209
+ GitReadBatchItemRequest,
210
+ GitReadBatchItemResponse,
211
+ GitReadBatchRequest,
212
+ GitReadBatchResponse,
199
213
  GitRepositoryAccess,
200
214
  GitShowRequest,
201
215
  GitShowResponse,
@@ -254,6 +268,8 @@ import {
254
268
  ListEnrollmentsResponse,
255
269
  ListWorkspaceMembersResponse,
256
270
  MAX_NESTED_AGENT_DEPTH,
271
+ MCP_MUTATION_RECEIPT_MAX_BYTES,
272
+ MCP_MUTATION_RECEIPT_VERSION,
257
273
  MODEL_ATTACHMENT_REFS_FIELD,
258
274
  MachineKind,
259
275
  MachineMetricsSeriesResponse,
@@ -263,6 +279,10 @@ import {
263
279
  ManagedAccount,
264
280
  MarketingDailyAnalysisTaskRequest,
265
281
  McpConnectionResourceScope,
282
+ McpMutationReceipt,
283
+ McpMutationReceiptIdempotencyStatus,
284
+ McpMutationReceiptOutcome,
285
+ McpMutationResource,
266
286
  McpPersonalConnectionDelegation,
267
287
  McpPersonalConnectionDelegations,
268
288
  McpPersonalConnectionSummary,
@@ -356,8 +376,10 @@ import {
356
376
  RegisterCapabilityPackRequest,
357
377
  RejectPreferenceRegistryProposalRequest,
358
378
  RelayTokenPayload,
379
+ RemoveEnrollmentRequest,
359
380
  RenewSessionRealtimeRequest,
360
381
  RepositoryResourceRef,
382
+ RepositoryUriError,
361
383
  RequestHumanInputToolInput,
362
384
  ResolvedWorkspaceInstructionPolicySnapshot,
363
385
  ResolvedWorkspaceInstructionPolicySnapshotEntry,
@@ -510,6 +532,12 @@ import {
510
532
  SyncSessionRealtimeLedgerResponse,
511
533
  SystemUpdateClassification,
512
534
  TERMINAL_STREAM_PORT,
535
+ TRANSCRIPTION_RECORDING_MAX_CHUNK_SIZE_BYTES,
536
+ TRANSCRIPTION_RECORDING_MAX_DURATION_SECONDS,
537
+ TRANSCRIPTION_RECORDING_MAX_SIZE_BYTES,
538
+ TRANSCRIPTION_RECORDING_PROVIDER_SEGMENT_SECONDS,
539
+ TRANSCRIPTION_RECORDING_RECOVERY_RETRY_AFTER_MILLISECONDS,
540
+ TRANSCRIPTION_RECORDING_RETENTION_SECONDS,
513
541
  TURN_EXECUTION_POLICY_METADATA_KEY,
514
542
  TerminalExecRequest,
515
543
  TerminalExecResponse,
@@ -521,6 +549,14 @@ import {
521
549
  TranscribeAudioResponse,
522
550
  TranscriptionErrorCode,
523
551
  TranscriptionEvent,
552
+ TranscriptionRecording,
553
+ TranscriptionRecordingChunk,
554
+ TranscriptionRecordingErrorCode,
555
+ TranscriptionRecordingListResponse,
556
+ TranscriptionRecordingResponse,
557
+ TranscriptionRecordingSegment,
558
+ TranscriptionRecordingSegmentState,
559
+ TranscriptionRecordingState,
524
560
  TranscriptionResultMetadata,
525
561
  TranscriptionSpeaker,
526
562
  TranscriptionTimeSpan,
@@ -549,6 +585,7 @@ import {
549
585
  UpdateWorkspaceModelPolicyRequest,
550
586
  UpdateWorkspaceRequest,
551
587
  UpdateWorkspaceSettingsRequest,
588
+ UploadTranscriptionRecordingChunkResponse,
552
589
  UsageEvent,
553
590
  UsageEventType,
554
591
  UsageLimitsMode,
@@ -556,6 +593,7 @@ import {
556
593
  VOICE_INPUT_MAX_DURATION_SECONDS,
557
594
  VOICE_INPUT_MAX_SIZE_BYTES,
558
595
  VariableSet,
596
+ VariableSetSecret,
559
597
  VariableSetVariableMetadata,
560
598
  VariableSetVariableName,
561
599
  ViewerHeartbeatRequest,
@@ -699,7 +737,6 @@ import {
699
737
  compareCodexFleetCanonicalStringsV1,
700
738
  comparePersonalSlackCanonicalConnections,
701
739
  createCodexFleetReplayRecordV1,
702
- createSecretRedactor,
703
740
  decodeNativeSnapshotRef,
704
741
  defaultRepositoryMountPath,
705
742
  effectiveCodexFleetCacheStateV1,
@@ -707,10 +744,10 @@ import {
707
744
  evaluateWorkspaceModelPolicy,
708
745
  gitCredentialBindingIdForRepository,
709
746
  gitCredentialProviderForRepository,
710
- identityRedactor,
747
+ gitRemoteIdentity,
748
+ gitRemotePathAliases,
749
+ gitRemoteUriAliases,
711
750
  isClearedRunStateBlob,
712
- isCredentialHeaderName,
713
- isSensitiveFieldName,
714
751
  latencyModeForMetadata,
715
752
  measureSessionEventJson,
716
753
  mergeResourceRefs,
@@ -718,6 +755,7 @@ import {
718
755
  metadataWithTurnExecutionPolicyV1,
719
756
  normalizePreferenceRegistryStableKey,
720
757
  normalizeRepositorySubpath,
758
+ normalizeRepositoryTransportUri,
721
759
  normalizeResourceMountPath,
722
760
  normalizeWorkspaceArtifactSlug,
723
761
  normalizeWorkspaceInstructionPolicyRoleKey,
@@ -726,14 +764,11 @@ import {
726
764
  readCodexFleetReplayRecordV1,
727
765
  readTurnExecutionPolicyV1,
728
766
  reasoningEffortForMetadata,
729
- redactSensitiveData,
730
- redactSensitiveKey,
731
- redactSensitiveText,
732
- redactSerializedJson,
733
767
  renderSessionSystemUpdateBatch,
734
768
  replayCodexFleetDecisionV1,
735
769
  resolveRetainedOutputRange,
736
770
  resolveSessionEventTypeFilters,
771
+ resolveWorkspaceAgentHumanInputEnabled,
737
772
  resolveWorkspaceCodexCompactionDefault,
738
773
  resolveWorkspaceMemoryEnabled,
739
774
  resolveWorkspaceSlackReactionSummonSettings,
@@ -743,6 +778,7 @@ import {
743
778
  resourceMountPathCollisionKey,
744
779
  retainedArtifactReferenceFromFile,
745
780
  retainedOutputUnavailable,
781
+ retainedScreenshotReferenceFromFile,
746
782
  selectCanonicalPersonalSlackConnection,
747
783
  sessionEventJsonBytes,
748
784
  sessionEventLatestClassToSemanticClass,
@@ -765,7 +801,7 @@ import {
765
801
  verifyStreamToken,
766
802
  workspaceControlUtf8Bytes,
767
803
  workspaceSlackReactionChannelAllowed
768
- } from "./chunk-ZNH72ZGW.js";
804
+ } from "./chunk-5HR2GPSC.js";
769
805
  import {
770
806
  ConnectorDocumentDestination,
771
807
  ConnectorDocumentDestinationAuthority,
@@ -814,6 +850,11 @@ export {
814
850
  CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE,
815
851
  CODEX_FLEET_POLICY_SCHEMA_VERSION,
816
852
  CODEX_FLEET_POLICY_VERSION,
853
+ COMPUTER_SCREENSHOT_MAX_BYTES,
854
+ COMPUTER_SCREENSHOT_MAX_DIMENSION,
855
+ COMPUTER_SCREENSHOT_MAX_PIXELS,
856
+ COMPUTER_SCREENSHOT_RETENTION_MS,
857
+ COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES,
817
858
  CapabilityCatalogAuthKind,
818
859
  CapabilityCatalogItem,
819
860
  CapabilityCatalogResponse,
@@ -836,6 +877,7 @@ export {
836
877
  ClientAuthConfig,
837
878
  ClientConfig,
838
879
  ClientModel,
880
+ ClientResumableVoiceInputConfig,
839
881
  ClientSessionEvent,
840
882
  ClientVoiceInputConfig,
841
883
  CodexCompactionMode,
@@ -875,6 +917,7 @@ export {
875
917
  CreateSessionResponse,
876
918
  CreateSocialConnectionRequest,
877
919
  CreateSocialPostRequest,
920
+ CreateTranscriptionRecordingRequest,
878
921
  CreateVariableSetRequest,
879
922
  CreateWorkspaceArtifactRequest,
880
923
  CreateWorkspaceEnvironmentRequest,
@@ -943,12 +986,15 @@ export {
943
986
  FileResourceRef,
944
987
  FileStatus,
945
988
  FileUploadStatus,
989
+ FinalizeTranscriptionRecordingRequest,
946
990
  FirstPartyMcpToolName,
947
991
  FsChangeKind,
948
992
  FsChangedPayload,
949
993
  FsDeleteRequest,
950
994
  FsDeleteResponse,
951
995
  FsEncoding,
996
+ FsListBatchRequest,
997
+ FsListBatchResponse,
952
998
  FsListRequest,
953
999
  FsListResponse,
954
1000
  FsMkdirRequest,
@@ -990,6 +1036,10 @@ export {
990
1036
  GitHubRepositoryScope,
991
1037
  GitLogRequest,
992
1038
  GitLogResponse,
1039
+ GitReadBatchItemRequest,
1040
+ GitReadBatchItemResponse,
1041
+ GitReadBatchRequest,
1042
+ GitReadBatchResponse,
993
1043
  GitRepositoryAccess,
994
1044
  GitShowRequest,
995
1045
  GitShowResponse,
@@ -1048,6 +1098,8 @@ export {
1048
1098
  ListEnrollmentsResponse,
1049
1099
  ListWorkspaceMembersResponse,
1050
1100
  MAX_NESTED_AGENT_DEPTH,
1101
+ MCP_MUTATION_RECEIPT_MAX_BYTES,
1102
+ MCP_MUTATION_RECEIPT_VERSION,
1051
1103
  MODEL_ATTACHMENT_REFS_FIELD,
1052
1104
  MachineKind,
1053
1105
  MachineMetricsSeriesResponse,
@@ -1057,6 +1109,10 @@ export {
1057
1109
  ManagedAccount,
1058
1110
  MarketingDailyAnalysisTaskRequest,
1059
1111
  McpConnectionResourceScope,
1112
+ McpMutationReceipt,
1113
+ McpMutationReceiptIdempotencyStatus,
1114
+ McpMutationReceiptOutcome,
1115
+ McpMutationResource,
1060
1116
  McpPersonalConnectionDelegation,
1061
1117
  McpPersonalConnectionDelegations,
1062
1118
  McpPersonalConnectionSummary,
@@ -1157,8 +1213,10 @@ export {
1157
1213
  RegisterCapabilityPackRequest,
1158
1214
  RejectPreferenceRegistryProposalRequest,
1159
1215
  RelayTokenPayload,
1216
+ RemoveEnrollmentRequest,
1160
1217
  RenewSessionRealtimeRequest,
1161
1218
  RepositoryResourceRef,
1219
+ RepositoryUriError,
1162
1220
  RequestHumanInputToolInput,
1163
1221
  ResolvedWorkspaceInstructionPolicySnapshot,
1164
1222
  ResolvedWorkspaceInstructionPolicySnapshotEntry,
@@ -1311,6 +1369,12 @@ export {
1311
1369
  SyncSessionRealtimeLedgerResponse,
1312
1370
  SystemUpdateClassification,
1313
1371
  TERMINAL_STREAM_PORT,
1372
+ TRANSCRIPTION_RECORDING_MAX_CHUNK_SIZE_BYTES,
1373
+ TRANSCRIPTION_RECORDING_MAX_DURATION_SECONDS,
1374
+ TRANSCRIPTION_RECORDING_MAX_SIZE_BYTES,
1375
+ TRANSCRIPTION_RECORDING_PROVIDER_SEGMENT_SECONDS,
1376
+ TRANSCRIPTION_RECORDING_RECOVERY_RETRY_AFTER_MILLISECONDS,
1377
+ TRANSCRIPTION_RECORDING_RETENTION_SECONDS,
1314
1378
  TURN_EXECUTION_POLICY_METADATA_KEY,
1315
1379
  TerminalExecRequest,
1316
1380
  TerminalExecResponse,
@@ -1322,6 +1386,14 @@ export {
1322
1386
  TranscribeAudioResponse,
1323
1387
  TranscriptionErrorCode,
1324
1388
  TranscriptionEvent,
1389
+ TranscriptionRecording,
1390
+ TranscriptionRecordingChunk,
1391
+ TranscriptionRecordingErrorCode,
1392
+ TranscriptionRecordingListResponse,
1393
+ TranscriptionRecordingResponse,
1394
+ TranscriptionRecordingSegment,
1395
+ TranscriptionRecordingSegmentState,
1396
+ TranscriptionRecordingState,
1325
1397
  TranscriptionResultMetadata,
1326
1398
  TranscriptionSpeaker,
1327
1399
  TranscriptionTimeSpan,
@@ -1350,6 +1422,7 @@ export {
1350
1422
  UpdateWorkspaceModelPolicyRequest,
1351
1423
  UpdateWorkspaceRequest,
1352
1424
  UpdateWorkspaceSettingsRequest,
1425
+ UploadTranscriptionRecordingChunkResponse,
1353
1426
  UsageEvent,
1354
1427
  UsageEventType,
1355
1428
  UsageLimitsMode,
@@ -1357,6 +1430,7 @@ export {
1357
1430
  VOICE_INPUT_MAX_DURATION_SECONDS,
1358
1431
  VOICE_INPUT_MAX_SIZE_BYTES,
1359
1432
  VariableSet,
1433
+ VariableSetSecret,
1360
1434
  VariableSetVariableMetadata,
1361
1435
  VariableSetVariableName,
1362
1436
  ViewerHeartbeatRequest,
@@ -1505,7 +1579,6 @@ export {
1505
1579
  connectorDestinationDocumentAuthority,
1506
1580
  connectorDocumentDestinationCollectionId,
1507
1581
  createCodexFleetReplayRecordV1,
1508
- createSecretRedactor,
1509
1582
  decodeNativeSnapshotRef,
1510
1583
  defaultRepositoryMountPath,
1511
1584
  effectiveCodexFleetCacheStateV1,
@@ -1514,11 +1587,11 @@ export {
1514
1587
  evaluateWorkspaceModelPolicy,
1515
1588
  gitCredentialBindingIdForRepository,
1516
1589
  gitCredentialProviderForRepository,
1590
+ gitRemoteIdentity,
1591
+ gitRemotePathAliases,
1592
+ gitRemoteUriAliases,
1517
1593
  hasOpenGeniSlackReactionScope,
1518
- identityRedactor,
1519
1594
  isClearedRunStateBlob,
1520
- isCredentialHeaderName,
1521
- isSensitiveFieldName,
1522
1595
  latencyModeForMetadata,
1523
1596
  legacyWorkspaceConnectorDocumentDestination,
1524
1597
  measureSessionEventJson,
@@ -1527,6 +1600,7 @@ export {
1527
1600
  metadataWithTurnExecutionPolicyV1,
1528
1601
  normalizePreferenceRegistryStableKey,
1529
1602
  normalizeRepositorySubpath,
1603
+ normalizeRepositoryTransportUri,
1530
1604
  normalizeResourceMountPath,
1531
1605
  normalizeWorkspaceArtifactSlug,
1532
1606
  normalizeWorkspaceInstructionPolicyRoleKey,
@@ -1535,15 +1609,12 @@ export {
1535
1609
  readCodexFleetReplayRecordV1,
1536
1610
  readTurnExecutionPolicyV1,
1537
1611
  reasoningEffortForMetadata,
1538
- redactSensitiveData,
1539
- redactSensitiveKey,
1540
- redactSensitiveText,
1541
- redactSerializedJson,
1542
1612
  renderSessionSystemUpdateBatch,
1543
1613
  replayCodexFleetDecisionV1,
1544
1614
  resolveConnectorDocumentDestination,
1545
1615
  resolveRetainedOutputRange,
1546
1616
  resolveSessionEventTypeFilters,
1617
+ resolveWorkspaceAgentHumanInputEnabled,
1547
1618
  resolveWorkspaceCodexCompactionDefault,
1548
1619
  resolveWorkspaceMemoryEnabled,
1549
1620
  resolveWorkspaceSlackReactionSummonSettings,
@@ -1553,6 +1624,7 @@ export {
1553
1624
  resourceMountPathCollisionKey,
1554
1625
  retainedArtifactReferenceFromFile,
1555
1626
  retainedOutputUnavailable,
1627
+ retainedScreenshotReferenceFromFile,
1556
1628
  selectCanonicalPersonalSlackConnection,
1557
1629
  sessionEventJsonBytes,
1558
1630
  sessionEventLatestClassToSemanticClass,
@@ -0,0 +1,96 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Versioned, provider-neutral receipt returned by first-party MCP mutation tools.
4
+ *
5
+ * A receipt intentionally contains only server-generated identity and outcome
6
+ * facts. Callers already have mutation inputs in their tool-call history, so
7
+ * copying names, prompts, instructions, commands, evidence, or other request
8
+ * fields into the result wastes context and can expose data twice.
9
+ */
10
+ export declare const MCP_MUTATION_RECEIPT_VERSION: "mcp-mutation-receipt.v1";
11
+ export declare const MCP_MUTATION_RECEIPT_MAX_BYTES: number;
12
+ export declare const McpMutationReceiptOutcome: z.ZodEnum<{
13
+ accepted: "accepted";
14
+ created: "created";
15
+ deleted: "deleted";
16
+ partial_failure: "partial_failure";
17
+ repaired: "repaired";
18
+ replayed: "replayed";
19
+ triggered: "triggered";
20
+ unchanged: "unchanged";
21
+ updated: "updated";
22
+ }>;
23
+ export type McpMutationReceiptOutcome = z.infer<typeof McpMutationReceiptOutcome>;
24
+ export declare const McpMutationReceiptIdempotencyStatus: z.ZodEnum<{
25
+ applied: "applied";
26
+ not_requested: "not_requested";
27
+ not_supported: "not_supported";
28
+ replayed: "replayed";
29
+ unknown: "unknown";
30
+ }>;
31
+ export type McpMutationReceiptIdempotencyStatus = z.infer<typeof McpMutationReceiptIdempotencyStatus>;
32
+ export declare const McpMutationResource: z.ZodObject<{
33
+ type: z.ZodString;
34
+ id: z.ZodString;
35
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
36
+ etag: z.ZodOptional<z.ZodString>;
37
+ state: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strict>;
39
+ export type McpMutationResource = z.infer<typeof McpMutationResource>;
40
+ export declare const McpMutationReceipt: z.ZodObject<{
41
+ receiptVersion: z.ZodLiteral<"mcp-mutation-receipt.v1">;
42
+ operation: z.ZodString;
43
+ committed: z.ZodLiteral<true>;
44
+ outcome: z.ZodEnum<{
45
+ accepted: "accepted";
46
+ created: "created";
47
+ deleted: "deleted";
48
+ partial_failure: "partial_failure";
49
+ repaired: "repaired";
50
+ replayed: "replayed";
51
+ triggered: "triggered";
52
+ unchanged: "unchanged";
53
+ updated: "updated";
54
+ }>;
55
+ changed: z.ZodBoolean;
56
+ resource: z.ZodObject<{
57
+ type: z.ZodString;
58
+ id: z.ZodString;
59
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
60
+ etag: z.ZodOptional<z.ZodString>;
61
+ state: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strict>;
63
+ relatedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
+ type: z.ZodString;
65
+ id: z.ZodString;
66
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
67
+ etag: z.ZodOptional<z.ZodString>;
68
+ state: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strict>>>;
70
+ timestamp: z.ZodString;
71
+ idempotency: z.ZodObject<{
72
+ status: z.ZodEnum<{
73
+ applied: "applied";
74
+ not_requested: "not_requested";
75
+ not_supported: "not_supported";
76
+ replayed: "replayed";
77
+ unknown: "unknown";
78
+ }>;
79
+ }, z.core.$strict>;
80
+ partialFailure: z.ZodOptional<z.ZodObject<{
81
+ stage: z.ZodString;
82
+ retryable: z.ZodBoolean;
83
+ }, z.core.$strict>>;
84
+ warnings: z.ZodArray<z.ZodString>;
85
+ nextAction: z.ZodOptional<z.ZodObject<{
86
+ tool: z.ZodString;
87
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
88
+ }, z.core.$strict>>;
89
+ facts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
90
+ id: z.ZodOptional<z.ZodString>;
91
+ rootSessionId: z.ZodOptional<z.ZodString>;
92
+ nestedAgentDepth: z.ZodOptional<z.ZodNumber>;
93
+ effectiveMaxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
94
+ updateId: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strict>;
96
+ export type McpMutationReceipt = z.infer<typeof McpMutationReceipt>;
@@ -5,8 +5,17 @@ export declare const RETAINED_OUTPUT_MAX_PAGE_BYTES: number;
5
5
  export declare const RETAINED_OUTPUT_DEFAULT_PAGE_BYTES: number;
6
6
  /** Receipts are timeline references, never an extensible metadata bag. */
7
7
  export declare const RETAINED_OUTPUT_RECEIPT_MAX_BYTES: number;
8
+ /** Screenshot bytes are accounted separately from the 10k-token text policy. */
9
+ export declare const COMPUTER_SCREENSHOT_MAX_BYTES: number;
10
+ export declare const COMPUTER_SCREENSHOT_MAX_DIMENSION = 16384;
11
+ export declare const COMPUTER_SCREENSHOT_MAX_PIXELS = 67108864;
12
+ /** Canonical ready-object retention window: 30 days from successful settlement. */
13
+ export declare const COMPUTER_SCREENSHOT_RETENTION_MS: number;
14
+ /** Hard workspace reservation across pending + ready screenshot artifacts. */
15
+ export declare const COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES: number;
8
16
  export declare const RetainedOutputKind: z.ZodEnum<{
9
17
  assistant_completion: "assistant_completion";
18
+ computer_screenshot: "computer_screenshot";
10
19
  event_media: "event_media";
11
20
  file: "file";
12
21
  internal_update: "internal_update";
@@ -17,9 +26,12 @@ export declare const RetainedOutputUnavailableReason: z.ZodEnum<{
17
26
  deleted: "deleted";
18
27
  expired: "expired";
19
28
  failed: "failed";
29
+ invalid_content: "invalid_content";
20
30
  missing_storage: "missing_storage";
21
31
  not_retained: "not_retained";
32
+ oversized: "oversized";
22
33
  pending: "pending";
34
+ quota_exceeded: "quota_exceeded";
23
35
  storage_write_failed: "storage_write_failed";
24
36
  unsupported: "unsupported";
25
37
  }>;
@@ -29,6 +41,7 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
29
41
  artifactId: z.ZodString;
30
42
  kind: z.ZodEnum<{
31
43
  assistant_completion: "assistant_completion";
44
+ computer_screenshot: "computer_screenshot";
32
45
  event_media: "event_media";
33
46
  file: "file";
34
47
  internal_update: "internal_update";
@@ -38,10 +51,17 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
38
51
  originalBytes: z.ZodNumber;
39
52
  sha256: z.ZodString;
40
53
  retainedAt: z.ZodString;
41
- retention: z.ZodObject<{
54
+ dimensions: z.ZodOptional<z.ZodObject<{
55
+ width: z.ZodNumber;
56
+ height: z.ZodNumber;
57
+ }, z.core.$strict>>;
58
+ retention: z.ZodUnion<readonly [z.ZodObject<{
42
59
  policy: z.ZodLiteral<"workspace_file">;
43
60
  expiresAt: z.ZodNull;
44
- }, z.core.$strict>;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ policy: z.ZodLiteral<"session_screenshot">;
63
+ expiresAt: z.ZodString;
64
+ }, z.core.$strict>]>;
45
65
  retrieval: z.ZodObject<{
46
66
  method: z.ZodLiteral<"GET">;
47
67
  path: z.ZodString;
@@ -62,9 +82,12 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
62
82
  deleted: "deleted";
63
83
  expired: "expired";
64
84
  failed: "failed";
85
+ invalid_content: "invalid_content";
65
86
  missing_storage: "missing_storage";
66
87
  not_retained: "not_retained";
88
+ oversized: "oversized";
67
89
  pending: "pending";
90
+ quota_exceeded: "quota_exceeded";
68
91
  storage_write_failed: "storage_write_failed";
69
92
  unsupported: "unsupported";
70
93
  }>;
@@ -73,6 +96,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
73
96
  artifactId: z.ZodString;
74
97
  kind: z.ZodEnum<{
75
98
  assistant_completion: "assistant_completion";
99
+ computer_screenshot: "computer_screenshot";
76
100
  event_media: "event_media";
77
101
  file: "file";
78
102
  internal_update: "internal_update";
@@ -82,10 +106,17 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
82
106
  originalBytes: z.ZodNumber;
83
107
  sha256: z.ZodString;
84
108
  retainedAt: z.ZodString;
85
- retention: z.ZodObject<{
109
+ dimensions: z.ZodOptional<z.ZodObject<{
110
+ width: z.ZodNumber;
111
+ height: z.ZodNumber;
112
+ }, z.core.$strict>>;
113
+ retention: z.ZodUnion<readonly [z.ZodObject<{
86
114
  policy: z.ZodLiteral<"workspace_file">;
87
115
  expiresAt: z.ZodNull;
88
- }, z.core.$strict>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ policy: z.ZodLiteral<"session_screenshot">;
118
+ expiresAt: z.ZodString;
119
+ }, z.core.$strict>]>;
89
120
  retrieval: z.ZodObject<{
90
121
  method: z.ZodLiteral<"GET">;
91
122
  path: z.ZodString;
@@ -104,9 +135,12 @@ export declare const RetainedArtifactUnavailableSchema: z.ZodObject<{
104
135
  deleted: "deleted";
105
136
  expired: "expired";
106
137
  failed: "failed";
138
+ invalid_content: "invalid_content";
107
139
  missing_storage: "missing_storage";
108
140
  not_retained: "not_retained";
141
+ oversized: "oversized";
109
142
  pending: "pending";
143
+ quota_exceeded: "quota_exceeded";
110
144
  storage_write_failed: "storage_write_failed";
111
145
  unsupported: "unsupported";
112
146
  }>;
@@ -118,6 +152,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
118
152
  artifactId: z.ZodString;
119
153
  kind: z.ZodEnum<{
120
154
  assistant_completion: "assistant_completion";
155
+ computer_screenshot: "computer_screenshot";
121
156
  event_media: "event_media";
122
157
  file: "file";
123
158
  internal_update: "internal_update";
@@ -127,10 +162,17 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
127
162
  originalBytes: z.ZodNumber;
128
163
  sha256: z.ZodString;
129
164
  retainedAt: z.ZodString;
130
- retention: z.ZodObject<{
165
+ dimensions: z.ZodOptional<z.ZodObject<{
166
+ width: z.ZodNumber;
167
+ height: z.ZodNumber;
168
+ }, z.core.$strict>>;
169
+ retention: z.ZodUnion<readonly [z.ZodObject<{
131
170
  policy: z.ZodLiteral<"workspace_file">;
132
171
  expiresAt: z.ZodNull;
133
- }, z.core.$strict>;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ policy: z.ZodLiteral<"session_screenshot">;
174
+ expiresAt: z.ZodString;
175
+ }, z.core.$strict>]>;
134
176
  retrieval: z.ZodObject<{
135
177
  method: z.ZodLiteral<"GET">;
136
178
  path: z.ZodString;
@@ -144,9 +186,12 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
144
186
  deleted: "deleted";
145
187
  expired: "expired";
146
188
  failed: "failed";
189
+ invalid_content: "invalid_content";
147
190
  missing_storage: "missing_storage";
148
191
  not_retained: "not_retained";
192
+ oversized: "oversized";
149
193
  pending: "pending";
194
+ quota_exceeded: "quota_exceeded";
150
195
  storage_write_failed: "storage_write_failed";
151
196
  unsupported: "unsupported";
152
197
  }>;
@@ -161,12 +206,20 @@ export type RetainedArtifactFileInput = {
161
206
  sha256: string | null;
162
207
  updatedAt: string;
163
208
  };
209
+ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
210
+ sessionId: string;
211
+ width: number;
212
+ height: number;
213
+ expiresAt: string;
214
+ };
164
215
  /**
165
216
  * Convert a ready, integrity-addressed workspace file into the only available
166
217
  * retained-output receipt shape. Invalid, pending, or checksum-less files fail
167
218
  * closed instead of implying that full evidence is retrievable.
168
219
  */
169
220
  export declare function retainedArtifactReferenceFromFile(file: RetainedArtifactFileInput, kind?: RetainedOutputKind): RetainedArtifactReference | null;
221
+ /** Build the closed, session-scoped receipt for one ready screenshot file. */
222
+ export declare function retainedScreenshotReferenceFromFile(file: RetainedScreenshotArtifactInput): RetainedArtifactReference | null;
170
223
  /** Parse and clone a trusted server receipt; invalid/untrusted data fails closed. */
171
224
  export declare function validateRetainedOutputEvidence(value: unknown): RetainedOutputEvidence | null;
172
225
  export declare function retainedOutputUnavailable(reason?: RetainedOutputUnavailableReason): RetainedOutputEvidence;