@opengeni/contracts 0.38.2 → 0.39.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-Y7UWTT3T.js";
3
+ } from "./chunk-PCTCJEAF.js";
4
4
  import {
5
5
  ConnectorDocumentDestination,
6
6
  ConnectorDocumentDestinationSelection
package/dist/index.d.ts CHANGED
@@ -260,7 +260,7 @@ export declare const DEFAULT_FIRST_PARTY_MCP_PERMISSIONS: readonly ["workspace:r
260
260
  * `files_get_download_url` intentionally is not in this catalog. It belongs to
261
261
  * the dedicated `files` MCP server.
262
262
  */
263
- export declare const FIRST_PARTY_MCP_TOOL_NAMES: readonly ["set_session_title", "goal_set", "goal_update", "goal_complete", "goal_pause", "memory_search", "memory_save", "memory_correct", "preference_registry_summary", "preference_registry_get", "sandboxes_list", "sandbox_attach", "sandbox_swap", "run_on", "sandbox_provision", "rig_list", "rig_get", "rig_propose_change", "rig_verify", "rig_promote", "sessions_list", "session_get", "session_events", "session_create", "session_send_message", "session_pause", "session_resume", "session_steer", "set_other_session_title", "variable_set_list", "environment_list", "variable_set_set_variable", "environment_set_variable", "github_connect_link", "github_token", "github_repositories_list", "social_connections_list", "social_posts_recent", "social_daily_analysis_context", "social_search_live", "social_mentions_live", "social_thread_fetch", "social_posts_sync", "social_post_reply", "scheduled_tasks_list", "scheduled_tasks_get", "scheduled_tasks_create", "scheduled_tasks_update", "scheduled_tasks_pause", "scheduled_tasks_resume", "scheduled_tasks_trigger", "scheduled_tasks_delete", "scheduled_task_runs_list", "slack_bot_list_channels", "slack_bot_channel_history", "slack_bot_thread_replies", "slack_bot_list_users", "slack_bot_list_files", "slack_bot_file_info", "slack_bot_file_content", "slack_bot_post_message", "slack_bot_delete_message", "artifacts_list", "artifacts_get_source", "artifacts_create", "artifacts_publish", "artifacts_rollback"];
263
+ export declare const FIRST_PARTY_MCP_TOOL_NAMES: readonly ["set_session_title", "goal_set", "goal_update", "goal_complete", "goal_pause", "memory_search", "memory_save", "memory_correct", "preference_registry_summary", "preference_registry_get", "sandboxes_list", "sandbox_attach", "sandbox_swap", "run_on", "sandbox_provision", "rig_list", "rig_get", "rig_propose_change", "rig_verify", "rig_promote", "sessions_list", "session_get", "session_events", "session_create", "session_send_message", "session_pause", "session_resume", "session_steer", "set_other_session_title", "variable_set_list", "environment_list", "variable_set_set_variable", "environment_set_variable", "github_connect_link", "github_repositories_list", "social_connections_list", "social_posts_recent", "social_daily_analysis_context", "social_search_live", "social_mentions_live", "social_thread_fetch", "social_posts_sync", "social_post_reply", "scheduled_tasks_list", "scheduled_tasks_get", "scheduled_tasks_create", "scheduled_tasks_update", "scheduled_tasks_pause", "scheduled_tasks_resume", "scheduled_tasks_trigger", "scheduled_tasks_delete", "scheduled_task_runs_list", "slack_bot_list_channels", "slack_bot_channel_history", "slack_bot_thread_replies", "slack_bot_list_users", "slack_bot_list_files", "slack_bot_file_info", "slack_bot_file_content", "slack_bot_post_message", "slack_bot_delete_message", "artifacts_list", "artifacts_get_source", "artifacts_create", "artifacts_publish", "artifacts_rollback"];
264
264
  export declare const FirstPartyMcpToolName: z.ZodEnum<{
265
265
  artifacts_create: "artifacts_create";
266
266
  artifacts_get_source: "artifacts_get_source";
@@ -271,7 +271,6 @@ export declare const FirstPartyMcpToolName: z.ZodEnum<{
271
271
  environment_set_variable: "environment_set_variable";
272
272
  github_connect_link: "github_connect_link";
273
273
  github_repositories_list: "github_repositories_list";
274
- github_token: "github_token";
275
274
  goal_complete: "goal_complete";
276
275
  goal_pause: "goal_pause";
277
276
  goal_set: "goal_set";
@@ -336,7 +335,7 @@ export type FirstPartyMcpToolName = z.infer<typeof FirstPartyMcpToolName>;
336
335
  * the non-connector catalog, while an explicit session policy may still select
337
336
  * any catalogued connector tool and remains independently permission-gated.
338
337
  */
339
- export declare const DEFAULT_FIRST_PARTY_MCP_TOOLS: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "github_token" | "goal_complete" | "goal_pause" | "goal_set" | "goal_update" | "memory_correct" | "memory_save" | "memory_search" | "preference_registry_get" | "preference_registry_summary" | "rig_get" | "rig_list" | "rig_promote" | "rig_propose_change" | "rig_verify" | "run_on" | "sandbox_attach" | "sandbox_provision" | "sandbox_swap" | "sandboxes_list" | "scheduled_task_runs_list" | "scheduled_tasks_create" | "scheduled_tasks_delete" | "scheduled_tasks_get" | "scheduled_tasks_list" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_update" | "session_create" | "session_events" | "session_get" | "session_pause" | "session_resume" | "session_send_message" | "session_steer" | "sessions_list" | "set_other_session_title" | "set_session_title" | "slack_bot_channel_history" | "slack_bot_delete_message" | "slack_bot_file_content" | "slack_bot_file_info" | "slack_bot_list_channels" | "slack_bot_list_files" | "slack_bot_list_users" | "slack_bot_post_message" | "slack_bot_thread_replies" | "social_connections_list" | "social_daily_analysis_context" | "social_mentions_live" | "social_post_reply" | "social_posts_recent" | "social_posts_sync" | "social_search_live" | "social_thread_fetch" | "variable_set_list" | "variable_set_set_variable")[];
338
+ export declare const DEFAULT_FIRST_PARTY_MCP_TOOLS: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "goal_complete" | "goal_pause" | "goal_set" | "goal_update" | "memory_correct" | "memory_save" | "memory_search" | "preference_registry_get" | "preference_registry_summary" | "rig_get" | "rig_list" | "rig_promote" | "rig_propose_change" | "rig_verify" | "run_on" | "sandbox_attach" | "sandbox_provision" | "sandbox_swap" | "sandboxes_list" | "scheduled_task_runs_list" | "scheduled_tasks_create" | "scheduled_tasks_delete" | "scheduled_tasks_get" | "scheduled_tasks_list" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_update" | "session_create" | "session_events" | "session_get" | "session_pause" | "session_resume" | "session_send_message" | "session_steer" | "sessions_list" | "set_other_session_title" | "set_session_title" | "slack_bot_channel_history" | "slack_bot_delete_message" | "slack_bot_file_content" | "slack_bot_file_info" | "slack_bot_list_channels" | "slack_bot_list_files" | "slack_bot_list_users" | "slack_bot_post_message" | "slack_bot_thread_replies" | "social_connections_list" | "social_daily_analysis_context" | "social_mentions_live" | "social_post_reply" | "social_posts_recent" | "social_posts_sync" | "social_search_live" | "social_thread_fetch" | "variable_set_list" | "variable_set_set_variable")[];
340
339
  export declare function prefixedMcpToolName(registryId: string, toolName: string): string;
341
340
  export declare const ProductAccessMode: z.ZodEnum<{
342
341
  configured: "configured";
@@ -686,6 +685,12 @@ export declare const ClientVoiceInputConfig: z.ZodObject<{
686
685
  maxDurationSeconds: z.ZodNumber;
687
686
  maxSizeBytes: z.ZodNumber;
688
687
  acceptedMimeTypes: z.ZodArray<z.ZodString>;
688
+ resumable: z.ZodOptional<z.ZodObject<{
689
+ maxDurationSeconds: z.ZodNumber;
690
+ maxSizeBytes: z.ZodNumber;
691
+ maxChunkSizeBytes: z.ZodNumber;
692
+ providerSegmentSeconds: z.ZodNumber;
693
+ }, z.core.$strict>>;
689
694
  }, z.core.$strict>;
690
695
  export type ClientVoiceInputConfig = z.infer<typeof ClientVoiceInputConfig>;
691
696
  /** Response from POST /v1/workspaces/:workspaceId/transcriptions. */
@@ -698,6 +703,7 @@ export type TranscribeAudioResponse = z.infer<typeof TranscribeAudioResponse>;
698
703
  export declare const VOICE_INPUT_MAX_DURATION_SECONDS: 60;
699
704
  export declare const VOICE_INPUT_MAX_SIZE_BYTES: number;
700
705
  export declare const VOICE_INPUT_ACCEPTED_MIME_TYPES: readonly ["audio/webm", "audio/webm;codecs=opus", "audio/mp4", "audio/ogg", "audio/ogg;codecs=opus", "audio/mpeg", "audio/wav", "audio/x-wav", "audio/mp3", "audio/m4a"];
706
+ export * from "./transcription-recordings";
701
707
  /** Per-session / workspace Codex compaction strategy. */
702
708
  export declare const CodexCompactionMode: z.ZodEnum<{
703
709
  portable: "portable";
@@ -1268,7 +1274,6 @@ export declare const DelegatedAccessTokenPayload: z.ZodObject<{
1268
1274
  environment_set_variable: "environment_set_variable";
1269
1275
  github_connect_link: "github_connect_link";
1270
1276
  github_repositories_list: "github_repositories_list";
1271
- github_token: "github_token";
1272
1277
  goal_complete: "goal_complete";
1273
1278
  goal_pause: "goal_pause";
1274
1279
  goal_set: "goal_set";
@@ -3846,7 +3851,6 @@ export declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodO
3846
3851
  environment_set_variable: "environment_set_variable";
3847
3852
  github_connect_link: "github_connect_link";
3848
3853
  github_repositories_list: "github_repositories_list";
3849
- github_token: "github_token";
3850
3854
  goal_complete: "goal_complete";
3851
3855
  goal_pause: "goal_pause";
3852
3856
  goal_set: "goal_set";
@@ -4999,7 +5003,6 @@ export declare const NewSessionDraftOptions: z.ZodObject<{
4999
5003
  environment_set_variable: "environment_set_variable";
5000
5004
  github_connect_link: "github_connect_link";
5001
5005
  github_repositories_list: "github_repositories_list";
5002
- github_token: "github_token";
5003
5006
  goal_complete: "goal_complete";
5004
5007
  goal_pause: "goal_pause";
5005
5008
  goal_set: "goal_set";
@@ -5187,7 +5190,6 @@ export declare const NewSessionDraft: z.ZodObject<{
5187
5190
  environment_set_variable: "environment_set_variable";
5188
5191
  github_connect_link: "github_connect_link";
5189
5192
  github_repositories_list: "github_repositories_list";
5190
- github_token: "github_token";
5191
5193
  goal_complete: "goal_complete";
5192
5194
  goal_pause: "goal_pause";
5193
5195
  goal_set: "goal_set";
@@ -5375,7 +5377,6 @@ export declare const SaveNewSessionDraftRequest: z.ZodObject<{
5375
5377
  environment_set_variable: "environment_set_variable";
5376
5378
  github_connect_link: "github_connect_link";
5377
5379
  github_repositories_list: "github_repositories_list";
5378
- github_token: "github_token";
5379
5380
  goal_complete: "goal_complete";
5380
5381
  goal_pause: "goal_pause";
5381
5382
  goal_set: "goal_set";
@@ -8252,7 +8253,6 @@ export declare const Session: z.ZodObject<{
8252
8253
  environment_set_variable: "environment_set_variable";
8253
8254
  github_connect_link: "github_connect_link";
8254
8255
  github_repositories_list: "github_repositories_list";
8255
- github_token: "github_token";
8256
8256
  goal_complete: "goal_complete";
8257
8257
  goal_pause: "goal_pause";
8258
8258
  goal_set: "goal_set";
@@ -8663,7 +8663,6 @@ export declare const CreateSessionResponse: z.ZodObject<{
8663
8663
  environment_set_variable: "environment_set_variable";
8664
8664
  github_connect_link: "github_connect_link";
8665
8665
  github_repositories_list: "github_repositories_list";
8666
- github_token: "github_token";
8667
8666
  goal_complete: "goal_complete";
8668
8667
  goal_pause: "goal_pause";
8669
8668
  goal_set: "goal_set";
@@ -9080,7 +9079,6 @@ export declare const SessionListResponse: z.ZodObject<{
9080
9079
  environment_set_variable: "environment_set_variable";
9081
9080
  github_connect_link: "github_connect_link";
9082
9081
  github_repositories_list: "github_repositories_list";
9083
- github_token: "github_token";
9084
9082
  goal_complete: "goal_complete";
9085
9083
  goal_pause: "goal_pause";
9086
9084
  goal_set: "goal_set";
@@ -9486,7 +9484,6 @@ export declare const SessionListResponse: z.ZodObject<{
9486
9484
  environment_set_variable: "environment_set_variable";
9487
9485
  github_connect_link: "github_connect_link";
9488
9486
  github_repositories_list: "github_repositories_list";
9489
- github_token: "github_token";
9490
9487
  goal_complete: "goal_complete";
9491
9488
  goal_pause: "goal_pause";
9492
9489
  goal_set: "goal_set";
@@ -9900,7 +9897,6 @@ export declare const SessionLineageResponse: z.ZodObject<{
9900
9897
  environment_set_variable: "environment_set_variable";
9901
9898
  github_connect_link: "github_connect_link";
9902
9899
  github_repositories_list: "github_repositories_list";
9903
- github_token: "github_token";
9904
9900
  goal_complete: "goal_complete";
9905
9901
  goal_pause: "goal_pause";
9906
9902
  goal_set: "goal_set";
@@ -12482,7 +12478,6 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
12482
12478
  environment_set_variable: "environment_set_variable";
12483
12479
  github_connect_link: "github_connect_link";
12484
12480
  github_repositories_list: "github_repositories_list";
12485
- github_token: "github_token";
12486
12481
  goal_complete: "goal_complete";
12487
12482
  goal_pause: "goal_pause";
12488
12483
  goal_set: "goal_set";
@@ -15386,6 +15381,12 @@ export declare const ClientConfig: z.ZodObject<{
15386
15381
  maxDurationSeconds: z.ZodNumber;
15387
15382
  maxSizeBytes: z.ZodNumber;
15388
15383
  acceptedMimeTypes: z.ZodArray<z.ZodString>;
15384
+ resumable: z.ZodOptional<z.ZodObject<{
15385
+ maxDurationSeconds: z.ZodNumber;
15386
+ maxSizeBytes: z.ZodNumber;
15387
+ maxChunkSizeBytes: z.ZodNumber;
15388
+ providerSegmentSeconds: z.ZodNumber;
15389
+ }, z.core.$strict>>;
15389
15390
  }, z.core.$strict>>;
15390
15391
  productAccessMode: z.ZodEnum<{
15391
15392
  configured: "configured";
package/dist/index.js CHANGED
@@ -45,6 +45,7 @@ import {
45
45
  ClientAuthConfig,
46
46
  ClientConfig,
47
47
  ClientModel,
48
+ ClientResumableVoiceInputConfig,
48
49
  ClientSessionEvent,
49
50
  ClientVoiceInputConfig,
50
51
  CodexCompactionMode,
@@ -81,6 +82,7 @@ import {
81
82
  CreateSessionResponse,
82
83
  CreateSocialConnectionRequest,
83
84
  CreateSocialPostRequest,
85
+ CreateTranscriptionRecordingRequest,
84
86
  CreateVariableSetRequest,
85
87
  CreateWorkspaceArtifactRequest,
86
88
  CreateWorkspaceEnvironmentRequest,
@@ -149,6 +151,7 @@ import {
149
151
  FileResourceRef,
150
152
  FileStatus,
151
153
  FileUploadStatus,
154
+ FinalizeTranscriptionRecordingRequest,
152
155
  FirstPartyMcpToolName,
153
156
  FsChangeKind,
154
157
  FsChangedPayload,
@@ -510,6 +513,12 @@ import {
510
513
  SyncSessionRealtimeLedgerResponse,
511
514
  SystemUpdateClassification,
512
515
  TERMINAL_STREAM_PORT,
516
+ TRANSCRIPTION_RECORDING_MAX_CHUNK_SIZE_BYTES,
517
+ TRANSCRIPTION_RECORDING_MAX_DURATION_SECONDS,
518
+ TRANSCRIPTION_RECORDING_MAX_SIZE_BYTES,
519
+ TRANSCRIPTION_RECORDING_PROVIDER_SEGMENT_SECONDS,
520
+ TRANSCRIPTION_RECORDING_RECOVERY_RETRY_AFTER_MILLISECONDS,
521
+ TRANSCRIPTION_RECORDING_RETENTION_SECONDS,
513
522
  TURN_EXECUTION_POLICY_METADATA_KEY,
514
523
  TerminalExecRequest,
515
524
  TerminalExecResponse,
@@ -521,6 +530,14 @@ import {
521
530
  TranscribeAudioResponse,
522
531
  TranscriptionErrorCode,
523
532
  TranscriptionEvent,
533
+ TranscriptionRecording,
534
+ TranscriptionRecordingChunk,
535
+ TranscriptionRecordingErrorCode,
536
+ TranscriptionRecordingListResponse,
537
+ TranscriptionRecordingResponse,
538
+ TranscriptionRecordingSegment,
539
+ TranscriptionRecordingSegmentState,
540
+ TranscriptionRecordingState,
524
541
  TranscriptionResultMetadata,
525
542
  TranscriptionSpeaker,
526
543
  TranscriptionTimeSpan,
@@ -549,6 +566,7 @@ import {
549
566
  UpdateWorkspaceModelPolicyRequest,
550
567
  UpdateWorkspaceRequest,
551
568
  UpdateWorkspaceSettingsRequest,
569
+ UploadTranscriptionRecordingChunkResponse,
552
570
  UsageEvent,
553
571
  UsageEventType,
554
572
  UsageLimitsMode,
@@ -765,7 +783,7 @@ import {
765
783
  verifyStreamToken,
766
784
  workspaceControlUtf8Bytes,
767
785
  workspaceSlackReactionChannelAllowed
768
- } from "./chunk-Y7UWTT3T.js";
786
+ } from "./chunk-PCTCJEAF.js";
769
787
  import {
770
788
  ConnectorDocumentDestination,
771
789
  ConnectorDocumentDestinationAuthority,
@@ -836,6 +854,7 @@ export {
836
854
  ClientAuthConfig,
837
855
  ClientConfig,
838
856
  ClientModel,
857
+ ClientResumableVoiceInputConfig,
839
858
  ClientSessionEvent,
840
859
  ClientVoiceInputConfig,
841
860
  CodexCompactionMode,
@@ -875,6 +894,7 @@ export {
875
894
  CreateSessionResponse,
876
895
  CreateSocialConnectionRequest,
877
896
  CreateSocialPostRequest,
897
+ CreateTranscriptionRecordingRequest,
878
898
  CreateVariableSetRequest,
879
899
  CreateWorkspaceArtifactRequest,
880
900
  CreateWorkspaceEnvironmentRequest,
@@ -943,6 +963,7 @@ export {
943
963
  FileResourceRef,
944
964
  FileStatus,
945
965
  FileUploadStatus,
966
+ FinalizeTranscriptionRecordingRequest,
946
967
  FirstPartyMcpToolName,
947
968
  FsChangeKind,
948
969
  FsChangedPayload,
@@ -1311,6 +1332,12 @@ export {
1311
1332
  SyncSessionRealtimeLedgerResponse,
1312
1333
  SystemUpdateClassification,
1313
1334
  TERMINAL_STREAM_PORT,
1335
+ TRANSCRIPTION_RECORDING_MAX_CHUNK_SIZE_BYTES,
1336
+ TRANSCRIPTION_RECORDING_MAX_DURATION_SECONDS,
1337
+ TRANSCRIPTION_RECORDING_MAX_SIZE_BYTES,
1338
+ TRANSCRIPTION_RECORDING_PROVIDER_SEGMENT_SECONDS,
1339
+ TRANSCRIPTION_RECORDING_RECOVERY_RETRY_AFTER_MILLISECONDS,
1340
+ TRANSCRIPTION_RECORDING_RETENTION_SECONDS,
1314
1341
  TURN_EXECUTION_POLICY_METADATA_KEY,
1315
1342
  TerminalExecRequest,
1316
1343
  TerminalExecResponse,
@@ -1322,6 +1349,14 @@ export {
1322
1349
  TranscribeAudioResponse,
1323
1350
  TranscriptionErrorCode,
1324
1351
  TranscriptionEvent,
1352
+ TranscriptionRecording,
1353
+ TranscriptionRecordingChunk,
1354
+ TranscriptionRecordingErrorCode,
1355
+ TranscriptionRecordingListResponse,
1356
+ TranscriptionRecordingResponse,
1357
+ TranscriptionRecordingSegment,
1358
+ TranscriptionRecordingSegmentState,
1359
+ TranscriptionRecordingState,
1325
1360
  TranscriptionResultMetadata,
1326
1361
  TranscriptionSpeaker,
1327
1362
  TranscriptionTimeSpan,
@@ -1350,6 +1385,7 @@ export {
1350
1385
  UpdateWorkspaceModelPolicyRequest,
1351
1386
  UpdateWorkspaceRequest,
1352
1387
  UpdateWorkspaceSettingsRequest,
1388
+ UploadTranscriptionRecordingChunkResponse,
1353
1389
  UsageEvent,
1354
1390
  UsageEventType,
1355
1391
  UsageLimitsMode,
@@ -0,0 +1,300 @@
1
+ import { z } from "zod";
2
+ export declare const TranscriptionRecordingErrorCode: z.ZodEnum<{
3
+ cancelled: "cancelled";
4
+ invalid_audio: "invalid_audio";
5
+ network: "network";
6
+ not_supported: "not_supported";
7
+ permission_denied: "permission_denied";
8
+ policy_blocked: "policy_blocked";
9
+ provider: "provider";
10
+ timeout: "timeout";
11
+ too_large: "too_large";
12
+ unavailable: "unavailable";
13
+ unknown: "unknown";
14
+ }>;
15
+ export type TranscriptionRecordingErrorCode = z.infer<typeof TranscriptionRecordingErrorCode>;
16
+ export declare const TranscriptionRecordingState: z.ZodEnum<{
17
+ complete: "complete";
18
+ discarded: "discarded";
19
+ failed: "failed";
20
+ ready: "ready";
21
+ segmenting: "segmenting";
22
+ transcribing: "transcribing";
23
+ uploading: "uploading";
24
+ }>;
25
+ export type TranscriptionRecordingState = z.infer<typeof TranscriptionRecordingState>;
26
+ export declare const TranscriptionRecordingSegmentState: z.ZodEnum<{
27
+ complete: "complete";
28
+ failed: "failed";
29
+ pending: "pending";
30
+ preparing: "preparing";
31
+ transcribing: "transcribing";
32
+ }>;
33
+ export type TranscriptionRecordingSegmentState = z.infer<typeof TranscriptionRecordingSegmentState>;
34
+ export declare const ClientResumableVoiceInputConfig: z.ZodObject<{
35
+ maxDurationSeconds: z.ZodNumber;
36
+ maxSizeBytes: z.ZodNumber;
37
+ maxChunkSizeBytes: z.ZodNumber;
38
+ providerSegmentSeconds: z.ZodNumber;
39
+ }, z.core.$strict>;
40
+ export type ClientResumableVoiceInputConfig = z.infer<typeof ClientResumableVoiceInputConfig>;
41
+ export declare const CreateTranscriptionRecordingRequest: z.ZodObject<{
42
+ recordingId: z.ZodString;
43
+ mimeType: z.ZodString;
44
+ }, z.core.$strict>;
45
+ export type CreateTranscriptionRecordingRequest = z.infer<typeof CreateTranscriptionRecordingRequest>;
46
+ export declare const FinalizeTranscriptionRecordingRequest: z.ZodObject<{
47
+ chunkCount: z.ZodNumber;
48
+ totalBytes: z.ZodNumber;
49
+ totalDurationMilliseconds: z.ZodNumber;
50
+ }, z.core.$strict>;
51
+ export type FinalizeTranscriptionRecordingRequest = z.infer<typeof FinalizeTranscriptionRecordingRequest>;
52
+ export declare const TranscriptionRecordingChunk: z.ZodObject<{
53
+ chunkNumber: z.ZodNumber;
54
+ byteLength: z.ZodNumber;
55
+ sha256: z.ZodString;
56
+ startMilliseconds: z.ZodNumber;
57
+ durationMilliseconds: z.ZodNumber;
58
+ deduplicated: z.ZodBoolean;
59
+ }, z.core.$strict>;
60
+ export type TranscriptionRecordingChunk = z.infer<typeof TranscriptionRecordingChunk>;
61
+ export declare const TranscriptionRecordingSegment: z.ZodObject<{
62
+ segmentNumber: z.ZodNumber;
63
+ state: z.ZodEnum<{
64
+ complete: "complete";
65
+ failed: "failed";
66
+ pending: "pending";
67
+ preparing: "preparing";
68
+ transcribing: "transcribing";
69
+ }>;
70
+ startMilliseconds: z.ZodNumber;
71
+ durationMilliseconds: z.ZodNumber;
72
+ byteLength: z.ZodNumber;
73
+ errorCode: z.ZodNullable<z.ZodEnum<{
74
+ cancelled: "cancelled";
75
+ invalid_audio: "invalid_audio";
76
+ network: "network";
77
+ not_supported: "not_supported";
78
+ permission_denied: "permission_denied";
79
+ policy_blocked: "policy_blocked";
80
+ provider: "provider";
81
+ timeout: "timeout";
82
+ too_large: "too_large";
83
+ unavailable: "unavailable";
84
+ unknown: "unknown";
85
+ }>>;
86
+ retryable: z.ZodBoolean;
87
+ }, z.core.$strict>;
88
+ export type TranscriptionRecordingSegment = z.infer<typeof TranscriptionRecordingSegment>;
89
+ export declare const TranscriptionRecording: z.ZodObject<{
90
+ id: z.ZodString;
91
+ workspaceId: z.ZodString;
92
+ mimeType: z.ZodString;
93
+ state: z.ZodEnum<{
94
+ complete: "complete";
95
+ discarded: "discarded";
96
+ failed: "failed";
97
+ ready: "ready";
98
+ segmenting: "segmenting";
99
+ transcribing: "transcribing";
100
+ uploading: "uploading";
101
+ }>;
102
+ nextChunkNumber: z.ZodNumber;
103
+ chunkCount: z.ZodNumber;
104
+ totalBytes: z.ZodNumber;
105
+ totalDurationMilliseconds: z.ZodNumber;
106
+ segmentCount: z.ZodNumber;
107
+ completedSegmentCount: z.ZodNumber;
108
+ transcriptText: z.ZodNullable<z.ZodString>;
109
+ languages: z.ZodArray<z.ZodString>;
110
+ errorCode: z.ZodNullable<z.ZodEnum<{
111
+ cancelled: "cancelled";
112
+ invalid_audio: "invalid_audio";
113
+ network: "network";
114
+ not_supported: "not_supported";
115
+ permission_denied: "permission_denied";
116
+ policy_blocked: "policy_blocked";
117
+ provider: "provider";
118
+ timeout: "timeout";
119
+ too_large: "too_large";
120
+ unavailable: "unavailable";
121
+ unknown: "unknown";
122
+ }>>;
123
+ retryable: z.ZodBoolean;
124
+ objectsCleaned: z.ZodBoolean;
125
+ createdAt: z.ZodString;
126
+ updatedAt: z.ZodString;
127
+ expiresAt: z.ZodString;
128
+ }, z.core.$strict>;
129
+ export type TranscriptionRecording = z.infer<typeof TranscriptionRecording>;
130
+ export declare const TranscriptionRecordingResponse: z.ZodObject<{
131
+ recording: z.ZodObject<{
132
+ id: z.ZodString;
133
+ workspaceId: z.ZodString;
134
+ mimeType: z.ZodString;
135
+ state: z.ZodEnum<{
136
+ complete: "complete";
137
+ discarded: "discarded";
138
+ failed: "failed";
139
+ ready: "ready";
140
+ segmenting: "segmenting";
141
+ transcribing: "transcribing";
142
+ uploading: "uploading";
143
+ }>;
144
+ nextChunkNumber: z.ZodNumber;
145
+ chunkCount: z.ZodNumber;
146
+ totalBytes: z.ZodNumber;
147
+ totalDurationMilliseconds: z.ZodNumber;
148
+ segmentCount: z.ZodNumber;
149
+ completedSegmentCount: z.ZodNumber;
150
+ transcriptText: z.ZodNullable<z.ZodString>;
151
+ languages: z.ZodArray<z.ZodString>;
152
+ errorCode: z.ZodNullable<z.ZodEnum<{
153
+ cancelled: "cancelled";
154
+ invalid_audio: "invalid_audio";
155
+ network: "network";
156
+ not_supported: "not_supported";
157
+ permission_denied: "permission_denied";
158
+ policy_blocked: "policy_blocked";
159
+ provider: "provider";
160
+ timeout: "timeout";
161
+ too_large: "too_large";
162
+ unavailable: "unavailable";
163
+ unknown: "unknown";
164
+ }>>;
165
+ retryable: z.ZodBoolean;
166
+ objectsCleaned: z.ZodBoolean;
167
+ createdAt: z.ZodString;
168
+ updatedAt: z.ZodString;
169
+ expiresAt: z.ZodString;
170
+ }, z.core.$strict>;
171
+ segments: z.ZodArray<z.ZodObject<{
172
+ segmentNumber: z.ZodNumber;
173
+ state: z.ZodEnum<{
174
+ complete: "complete";
175
+ failed: "failed";
176
+ pending: "pending";
177
+ preparing: "preparing";
178
+ transcribing: "transcribing";
179
+ }>;
180
+ startMilliseconds: z.ZodNumber;
181
+ durationMilliseconds: z.ZodNumber;
182
+ byteLength: z.ZodNumber;
183
+ errorCode: z.ZodNullable<z.ZodEnum<{
184
+ cancelled: "cancelled";
185
+ invalid_audio: "invalid_audio";
186
+ network: "network";
187
+ not_supported: "not_supported";
188
+ permission_denied: "permission_denied";
189
+ policy_blocked: "policy_blocked";
190
+ provider: "provider";
191
+ timeout: "timeout";
192
+ too_large: "too_large";
193
+ unavailable: "unavailable";
194
+ unknown: "unknown";
195
+ }>>;
196
+ retryable: z.ZodBoolean;
197
+ }, z.core.$strict>>;
198
+ retryAfterMilliseconds: z.ZodOptional<z.ZodNumber>;
199
+ }, z.core.$strict>;
200
+ export type TranscriptionRecordingResponse = z.infer<typeof TranscriptionRecordingResponse>;
201
+ export declare const TranscriptionRecordingListResponse: z.ZodObject<{
202
+ recordings: z.ZodArray<z.ZodObject<{
203
+ id: z.ZodString;
204
+ workspaceId: z.ZodString;
205
+ mimeType: z.ZodString;
206
+ state: z.ZodEnum<{
207
+ complete: "complete";
208
+ discarded: "discarded";
209
+ failed: "failed";
210
+ ready: "ready";
211
+ segmenting: "segmenting";
212
+ transcribing: "transcribing";
213
+ uploading: "uploading";
214
+ }>;
215
+ nextChunkNumber: z.ZodNumber;
216
+ chunkCount: z.ZodNumber;
217
+ totalBytes: z.ZodNumber;
218
+ totalDurationMilliseconds: z.ZodNumber;
219
+ segmentCount: z.ZodNumber;
220
+ completedSegmentCount: z.ZodNumber;
221
+ transcriptText: z.ZodNullable<z.ZodString>;
222
+ languages: z.ZodArray<z.ZodString>;
223
+ errorCode: z.ZodNullable<z.ZodEnum<{
224
+ cancelled: "cancelled";
225
+ invalid_audio: "invalid_audio";
226
+ network: "network";
227
+ not_supported: "not_supported";
228
+ permission_denied: "permission_denied";
229
+ policy_blocked: "policy_blocked";
230
+ provider: "provider";
231
+ timeout: "timeout";
232
+ too_large: "too_large";
233
+ unavailable: "unavailable";
234
+ unknown: "unknown";
235
+ }>>;
236
+ retryable: z.ZodBoolean;
237
+ objectsCleaned: z.ZodBoolean;
238
+ createdAt: z.ZodString;
239
+ updatedAt: z.ZodString;
240
+ expiresAt: z.ZodString;
241
+ }, z.core.$strict>>;
242
+ }, z.core.$strict>;
243
+ export type TranscriptionRecordingListResponse = z.infer<typeof TranscriptionRecordingListResponse>;
244
+ export declare const UploadTranscriptionRecordingChunkResponse: z.ZodObject<{
245
+ recording: z.ZodObject<{
246
+ id: z.ZodString;
247
+ workspaceId: z.ZodString;
248
+ mimeType: z.ZodString;
249
+ state: z.ZodEnum<{
250
+ complete: "complete";
251
+ discarded: "discarded";
252
+ failed: "failed";
253
+ ready: "ready";
254
+ segmenting: "segmenting";
255
+ transcribing: "transcribing";
256
+ uploading: "uploading";
257
+ }>;
258
+ nextChunkNumber: z.ZodNumber;
259
+ chunkCount: z.ZodNumber;
260
+ totalBytes: z.ZodNumber;
261
+ totalDurationMilliseconds: z.ZodNumber;
262
+ segmentCount: z.ZodNumber;
263
+ completedSegmentCount: z.ZodNumber;
264
+ transcriptText: z.ZodNullable<z.ZodString>;
265
+ languages: z.ZodArray<z.ZodString>;
266
+ errorCode: z.ZodNullable<z.ZodEnum<{
267
+ cancelled: "cancelled";
268
+ invalid_audio: "invalid_audio";
269
+ network: "network";
270
+ not_supported: "not_supported";
271
+ permission_denied: "permission_denied";
272
+ policy_blocked: "policy_blocked";
273
+ provider: "provider";
274
+ timeout: "timeout";
275
+ too_large: "too_large";
276
+ unavailable: "unavailable";
277
+ unknown: "unknown";
278
+ }>>;
279
+ retryable: z.ZodBoolean;
280
+ objectsCleaned: z.ZodBoolean;
281
+ createdAt: z.ZodString;
282
+ updatedAt: z.ZodString;
283
+ expiresAt: z.ZodString;
284
+ }, z.core.$strict>;
285
+ chunk: z.ZodObject<{
286
+ chunkNumber: z.ZodNumber;
287
+ byteLength: z.ZodNumber;
288
+ sha256: z.ZodString;
289
+ startMilliseconds: z.ZodNumber;
290
+ durationMilliseconds: z.ZodNumber;
291
+ deduplicated: z.ZodBoolean;
292
+ }, z.core.$strict>;
293
+ }, z.core.$strict>;
294
+ export type UploadTranscriptionRecordingChunkResponse = z.infer<typeof UploadTranscriptionRecordingChunkResponse>;
295
+ export declare const TRANSCRIPTION_RECORDING_MAX_DURATION_SECONDS: number;
296
+ export declare const TRANSCRIPTION_RECORDING_MAX_SIZE_BYTES: number;
297
+ export declare const TRANSCRIPTION_RECORDING_MAX_CHUNK_SIZE_BYTES: number;
298
+ export declare const TRANSCRIPTION_RECORDING_PROVIDER_SEGMENT_SECONDS = 50;
299
+ export declare const TRANSCRIPTION_RECORDING_RECOVERY_RETRY_AFTER_MILLISECONDS = 5000;
300
+ export declare const TRANSCRIPTION_RECORDING_RETENTION_SECONDS: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "0.38.2",
3
+ "version": "0.39.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
@@ -6,6 +6,7 @@ import {
6
6
  type SessionEventBoundarySurface,
7
7
  } from "./event-preview";
8
8
  import { WorkspaceInstructionPolicyRoleKeyInput } from "./workspace-instruction-policies";
9
+ import { ClientResumableVoiceInputConfig } from "./transcription-recordings";
9
10
 
10
11
  export * from "./slack-bot-scopes";
11
12
  export * from "./connector-destinations";
@@ -733,7 +734,6 @@ export const FIRST_PARTY_MCP_TOOL_NAMES = [
733
734
  "variable_set_set_variable",
734
735
  "environment_set_variable",
735
736
  "github_connect_link",
736
- "github_token",
737
737
  "github_repositories_list",
738
738
  "social_connections_list",
739
739
  "social_posts_recent",
@@ -1156,6 +1156,7 @@ export const ClientVoiceInputConfig = z
1156
1156
  .positive()
1157
1157
  .max(25 * 1024 * 1024),
1158
1158
  acceptedMimeTypes: z.array(z.string().trim().min(1).max(128)).min(1).max(32),
1159
+ resumable: ClientResumableVoiceInputConfig.optional(),
1159
1160
  })
1160
1161
  .strict();
1161
1162
  export type ClientVoiceInputConfig = z.infer<typeof ClientVoiceInputConfig>;
@@ -1185,6 +1186,8 @@ export const VOICE_INPUT_ACCEPTED_MIME_TYPES = [
1185
1186
  "audio/m4a",
1186
1187
  ] as const;
1187
1188
 
1189
+ export * from "./transcription-recordings";
1190
+
1188
1191
  /** Per-session / workspace Codex compaction strategy. */
1189
1192
  export const CodexCompactionMode = z.enum(["remote_v2", "portable"]);
1190
1193
  export type CodexCompactionMode = z.infer<typeof CodexCompactionMode>;
@@ -6254,9 +6257,9 @@ export const Session = z.object({
6254
6257
  createIdempotencyKey: z.string().nullable(),
6255
6258
  temporalWorkflowId: z.string().nullable(),
6256
6259
  activeTurnId: z.string().uuid().nullable(),
6257
- // Actual input tokens of the last model call of the most recent turn; the
6258
- // pre-turn portable context-compaction trigger reads it as its budget
6259
- // signal. Null until a turn with usage has completed.
6260
+ // Provider-reported input tokens of the latest authoritative terminal
6261
+ // response. Null after a context transition or whenever that latest response
6262
+ // supplied no usable count, so an older response can never drive compaction.
6260
6263
  lastInputTokens: z.number().int().nonnegative().nullable(),
6261
6264
  queueVersion: z.number().int().nonnegative(),
6262
6265
  queueHeadPosition: z.number().int(),