@myagentroam/protocol 0.10.20 → 0.10.22

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.d.ts CHANGED
@@ -46,6 +46,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
46
46
  namespacedTools: z.ZodOptional<z.ZodBoolean>;
47
47
  responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
48
48
  responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
49
+ conversationModels: z.ZodOptional<z.ZodBoolean>;
49
50
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
50
51
  }, "strict", z.ZodTypeAny, {
51
52
  apiVersion: 1;
@@ -56,6 +57,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
56
57
  namespacedTools?: boolean | undefined;
57
58
  responsesOptionalParameters?: boolean | undefined;
58
59
  responsesHttpContinuation?: boolean | undefined;
60
+ conversationModels?: boolean | undefined;
59
61
  }, {
60
62
  apiVersion: 1;
61
63
  websocket: boolean;
@@ -65,6 +67,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
65
67
  namespacedTools?: boolean | undefined;
66
68
  responsesOptionalParameters?: boolean | undefined;
67
69
  responsesHttpContinuation?: boolean | undefined;
70
+ conversationModels?: boolean | undefined;
68
71
  }>;
69
72
  export type MarAgentRuntimeCredentialCapability = z.infer<typeof marAgentRuntimeCredentialCapabilitySchema>;
70
73
  export declare const conversationHostingCapabilitySchema: z.ZodEffects<z.ZodObject<{
@@ -505,6 +508,19 @@ export declare const nodeUpgradeStatusSchema: z.ZodObject<{
505
508
  activeRunCount?: number | undefined;
506
509
  }>;
507
510
  export type NodeUpgradeStatus = z.infer<typeof nodeUpgradeStatusSchema>;
511
+ export declare const promptCompletionCapabilitySchema: z.ZodObject<{
512
+ apiVersion: z.ZodLiteral<1>;
513
+ contextVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
514
+ automaticTriggers: z.ZodOptional<z.ZodLiteral<true>>;
515
+ }, "strict", z.ZodTypeAny, {
516
+ apiVersion: 1;
517
+ contextVersion?: 2 | 3 | undefined;
518
+ automaticTriggers?: true | undefined;
519
+ }, {
520
+ apiVersion: 1;
521
+ contextVersion?: 2 | 3 | undefined;
522
+ automaticTriggers?: true | undefined;
523
+ }>;
508
524
  export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
509
525
  platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux", "macos"]>>>;
510
526
  architecture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -991,6 +1007,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
991
1007
  namespacedTools: z.ZodOptional<z.ZodBoolean>;
992
1008
  responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
993
1009
  responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
1010
+ conversationModels: z.ZodOptional<z.ZodBoolean>;
994
1011
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
995
1012
  }, "strict", z.ZodTypeAny, {
996
1013
  apiVersion: 1;
@@ -1001,6 +1018,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1001
1018
  namespacedTools?: boolean | undefined;
1002
1019
  responsesOptionalParameters?: boolean | undefined;
1003
1020
  responsesHttpContinuation?: boolean | undefined;
1021
+ conversationModels?: boolean | undefined;
1004
1022
  }, {
1005
1023
  apiVersion: 1;
1006
1024
  websocket: boolean;
@@ -1010,6 +1028,20 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1010
1028
  namespacedTools?: boolean | undefined;
1011
1029
  responsesOptionalParameters?: boolean | undefined;
1012
1030
  responsesHttpContinuation?: boolean | undefined;
1031
+ conversationModels?: boolean | undefined;
1032
+ }>>;
1033
+ promptCompletion: z.ZodOptional<z.ZodObject<{
1034
+ apiVersion: z.ZodLiteral<1>;
1035
+ contextVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1036
+ automaticTriggers: z.ZodOptional<z.ZodLiteral<true>>;
1037
+ }, "strict", z.ZodTypeAny, {
1038
+ apiVersion: 1;
1039
+ contextVersion?: 2 | 3 | undefined;
1040
+ automaticTriggers?: true | undefined;
1041
+ }, {
1042
+ apiVersion: 1;
1043
+ contextVersion?: 2 | 3 | undefined;
1044
+ automaticTriggers?: true | undefined;
1013
1045
  }>>;
1014
1046
  chatgptLogin: z.ZodOptional<z.ZodObject<{
1015
1047
  apiVersion: z.ZodLiteral<1>;
@@ -1148,6 +1180,12 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1148
1180
  namespacedTools?: boolean | undefined;
1149
1181
  responsesOptionalParameters?: boolean | undefined;
1150
1182
  responsesHttpContinuation?: boolean | undefined;
1183
+ conversationModels?: boolean | undefined;
1184
+ } | undefined;
1185
+ promptCompletion?: {
1186
+ apiVersion: 1;
1187
+ contextVersion?: 2 | 3 | undefined;
1188
+ automaticTriggers?: true | undefined;
1151
1189
  } | undefined;
1152
1190
  chatgptLogin?: {
1153
1191
  apiVersion: 1;
@@ -1258,6 +1296,12 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1258
1296
  namespacedTools?: boolean | undefined;
1259
1297
  responsesOptionalParameters?: boolean | undefined;
1260
1298
  responsesHttpContinuation?: boolean | undefined;
1299
+ conversationModels?: boolean | undefined;
1300
+ } | undefined;
1301
+ promptCompletion?: {
1302
+ apiVersion: 1;
1303
+ contextVersion?: 2 | 3 | undefined;
1304
+ automaticTriggers?: true | undefined;
1261
1305
  } | undefined;
1262
1306
  chatgptLogin?: {
1263
1307
  apiVersion: 1;
@@ -1368,6 +1412,12 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1368
1412
  namespacedTools?: boolean | undefined;
1369
1413
  responsesOptionalParameters?: boolean | undefined;
1370
1414
  responsesHttpContinuation?: boolean | undefined;
1415
+ conversationModels?: boolean | undefined;
1416
+ } | undefined;
1417
+ promptCompletion?: {
1418
+ apiVersion: 1;
1419
+ contextVersion?: 2 | 3 | undefined;
1420
+ automaticTriggers?: true | undefined;
1371
1421
  } | undefined;
1372
1422
  chatgptLogin?: {
1373
1423
  apiVersion: 1;
@@ -1478,6 +1528,12 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1478
1528
  namespacedTools?: boolean | undefined;
1479
1529
  responsesOptionalParameters?: boolean | undefined;
1480
1530
  responsesHttpContinuation?: boolean | undefined;
1531
+ conversationModels?: boolean | undefined;
1532
+ } | undefined;
1533
+ promptCompletion?: {
1534
+ apiVersion: 1;
1535
+ contextVersion?: 2 | 3 | undefined;
1536
+ automaticTriggers?: true | undefined;
1481
1537
  } | undefined;
1482
1538
  chatgptLogin?: {
1483
1539
  apiVersion: 1;
@@ -2745,6 +2801,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2745
2801
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
2746
2802
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
2747
2803
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
2804
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
2748
2805
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
2749
2806
  codeMode: z.ZodDefault<z.ZodBoolean>;
2750
2807
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -2781,6 +2838,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2781
2838
  inputCapabilities: ("TEXT" | "IMAGE")[];
2782
2839
  outputCapabilities: ["TEXT"];
2783
2840
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
2841
+ conversationModel: boolean;
2784
2842
  titleGeneration: boolean;
2785
2843
  codeMode: boolean;
2786
2844
  hostedWebSearch: boolean;
@@ -2830,6 +2888,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2830
2888
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
2831
2889
  lastTestCode?: string | null | undefined;
2832
2890
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
2891
+ conversationModel?: boolean | undefined;
2833
2892
  titleGeneration?: boolean | undefined;
2834
2893
  codeMode?: boolean | undefined;
2835
2894
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -2884,6 +2943,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2884
2943
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
2885
2944
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
2886
2945
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
2946
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
2887
2947
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
2888
2948
  codeMode: z.ZodDefault<z.ZodBoolean>;
2889
2949
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -2921,6 +2981,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2921
2981
  inputCapabilities: ("TEXT" | "IMAGE")[];
2922
2982
  outputCapabilities: ["TEXT"];
2923
2983
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
2984
+ conversationModel: boolean;
2924
2985
  titleGeneration: boolean;
2925
2986
  codeMode: boolean;
2926
2987
  hostedWebSearch: boolean;
@@ -2977,6 +3038,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2977
3038
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
2978
3039
  lastTestCode?: string | null | undefined;
2979
3040
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3041
+ conversationModel?: boolean | undefined;
2980
3042
  titleGeneration?: boolean | undefined;
2981
3043
  codeMode?: boolean | undefined;
2982
3044
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -3004,6 +3066,7 @@ export interface MarAgentModelSummary {
3004
3066
  outputCapabilities: ['TEXT'];
3005
3067
  reasoningEfforts: MarAgentReasoningEffort[];
3006
3068
  defaultReasoningEffort?: MarAgentReasoningEffort;
3069
+ conversationModel?: boolean;
3007
3070
  titleGeneration: boolean;
3008
3071
  codeMode: boolean;
3009
3072
  fastMode?: boolean;
@@ -3415,6 +3478,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3415
3478
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
3416
3479
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
3417
3480
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3481
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
3418
3482
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
3419
3483
  codeMode: z.ZodDefault<z.ZodBoolean>;
3420
3484
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -3450,6 +3514,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3450
3514
  inputCapabilities: ("TEXT" | "IMAGE")[];
3451
3515
  outputCapabilities: ["TEXT"];
3452
3516
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3517
+ conversationModel: boolean;
3453
3518
  titleGeneration: boolean;
3454
3519
  codeMode: boolean;
3455
3520
  hostedWebSearch: boolean;
@@ -3511,67 +3576,1323 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3511
3576
  sessionId?: string | undefined;
3512
3577
  };
3513
3578
  } | undefined;
3514
- config?: Record<string, string> | undefined;
3515
- } | undefined;
3516
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3517
- serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3518
- responsesTransport?: {
3519
- transport: "WEBSOCKET";
3520
- } | {
3521
- transport: "HTTP";
3522
- httpVersion: "2" | "1.1";
3523
- } | undefined;
3524
- responsesToolNamespace?: string | undefined;
3525
- responsesConfigurationUpdates?: boolean | undefined;
3526
- }, {
3527
- name: string;
3528
- id: string;
3529
- modelId: string;
3530
- protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
3531
- enabled: boolean;
3532
- baseUrl: string;
3533
- contextWindowTokens: number;
3534
- maxOutputTokens: number;
3535
- inputCapabilities: ("TEXT" | "IMAGE")[];
3536
- outputCapabilities: ["TEXT"];
3537
- reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3538
- hostedWebSearch: boolean;
3539
- fastMode?: boolean | undefined;
3540
- responsesOptionalParameters?: {
3541
- reasoningEffort: boolean;
3542
- reasoningSummary: boolean;
3543
- textVerbosity: boolean;
3544
- promptCacheKey: boolean;
3545
- nativeTools?: boolean | undefined;
3546
- } | undefined;
3547
- credential?: {
3548
- value: string;
3549
- type: "INLINE_API_KEY";
3550
- } | {
3551
- type: "RUNTIME_TICKET";
3552
- credentialId: string;
3553
- ticket: {
3554
- nonce: string;
3555
- expiresAt: number;
3556
- workspaceId: string;
3557
- nodeId: string;
3558
- userId: number;
3559
- issuedAt: number;
3560
- credentialId: string;
3561
- runtimeScopeId: string;
3562
- allowedModelIds: string[];
3563
- signature: string;
3564
- purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3565
- sessionId?: string | undefined;
3566
- };
3567
- } | undefined;
3568
- apiKey?: string | undefined;
3569
- imageGeneration?: {
3570
- imageModelId: string;
3571
- httpVersion: "2" | "1.1";
3572
- generateEndpoint: string;
3573
- editEndpoint: string;
3574
- provider?: string | undefined;
3579
+ config?: Record<string, string> | undefined;
3580
+ } | undefined;
3581
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3582
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3583
+ responsesTransport?: {
3584
+ transport: "WEBSOCKET";
3585
+ } | {
3586
+ transport: "HTTP";
3587
+ httpVersion: "2" | "1.1";
3588
+ } | undefined;
3589
+ responsesToolNamespace?: string | undefined;
3590
+ responsesConfigurationUpdates?: boolean | undefined;
3591
+ }, {
3592
+ name: string;
3593
+ id: string;
3594
+ modelId: string;
3595
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
3596
+ enabled: boolean;
3597
+ baseUrl: string;
3598
+ contextWindowTokens: number;
3599
+ maxOutputTokens: number;
3600
+ inputCapabilities: ("TEXT" | "IMAGE")[];
3601
+ outputCapabilities: ["TEXT"];
3602
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3603
+ hostedWebSearch: boolean;
3604
+ fastMode?: boolean | undefined;
3605
+ responsesOptionalParameters?: {
3606
+ reasoningEffort: boolean;
3607
+ reasoningSummary: boolean;
3608
+ textVerbosity: boolean;
3609
+ promptCacheKey: boolean;
3610
+ nativeTools?: boolean | undefined;
3611
+ } | undefined;
3612
+ credential?: {
3613
+ value: string;
3614
+ type: "INLINE_API_KEY";
3615
+ } | {
3616
+ type: "RUNTIME_TICKET";
3617
+ credentialId: string;
3618
+ ticket: {
3619
+ nonce: string;
3620
+ expiresAt: number;
3621
+ workspaceId: string;
3622
+ nodeId: string;
3623
+ userId: number;
3624
+ issuedAt: number;
3625
+ credentialId: string;
3626
+ runtimeScopeId: string;
3627
+ allowedModelIds: string[];
3628
+ signature: string;
3629
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3630
+ sessionId?: string | undefined;
3631
+ };
3632
+ } | undefined;
3633
+ apiKey?: string | undefined;
3634
+ imageGeneration?: {
3635
+ imageModelId: string;
3636
+ httpVersion: "2" | "1.1";
3637
+ generateEndpoint: string;
3638
+ editEndpoint: string;
3639
+ provider?: string | undefined;
3640
+ credential?: {
3641
+ value: string;
3642
+ type: "INLINE_API_KEY";
3643
+ } | {
3644
+ type: "RUNTIME_TICKET";
3645
+ credentialId: string;
3646
+ ticket: {
3647
+ nonce: string;
3648
+ expiresAt: number;
3649
+ workspaceId: string;
3650
+ nodeId: string;
3651
+ userId: number;
3652
+ issuedAt: number;
3653
+ credentialId: string;
3654
+ runtimeScopeId: string;
3655
+ allowedModelIds: string[];
3656
+ signature: string;
3657
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3658
+ sessionId?: string | undefined;
3659
+ };
3660
+ } | undefined;
3661
+ config?: Record<string, string> | undefined;
3662
+ } | undefined;
3663
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3664
+ conversationModel?: boolean | undefined;
3665
+ titleGeneration?: boolean | undefined;
3666
+ codeMode?: boolean | undefined;
3667
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3668
+ responsesTransport?: {
3669
+ transport: "WEBSOCKET";
3670
+ } | {
3671
+ transport: "HTTP";
3672
+ httpVersion: "2" | "1.1";
3673
+ } | undefined;
3674
+ responsesPreviousResponseId?: boolean | undefined;
3675
+ responsesToolNamespace?: string | undefined;
3676
+ responsesConfigurationUpdates?: boolean | undefined;
3677
+ }>, {
3678
+ [x: string]: any;
3679
+ }, {
3680
+ [x: string]: any;
3681
+ }>, {
3682
+ [x: string]: any;
3683
+ }, {
3684
+ [x: string]: any;
3685
+ }>;
3686
+ export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
3687
+ export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
3688
+ enabled: z.ZodBoolean;
3689
+ modelId: z.ZodNullable<z.ZodString>;
3690
+ reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3691
+ }, "strict", z.ZodTypeAny, {
3692
+ modelId: string | null;
3693
+ enabled: boolean;
3694
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3695
+ }, {
3696
+ modelId: string | null;
3697
+ enabled: boolean;
3698
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3699
+ }>, {
3700
+ modelId: string | null;
3701
+ enabled: boolean;
3702
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3703
+ }, {
3704
+ modelId: string | null;
3705
+ enabled: boolean;
3706
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3707
+ }>;
3708
+ export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
3709
+ export declare const promptCompletionConfigurationSchema: z.ZodEffects<z.ZodObject<{
3710
+ enabled: z.ZodBoolean;
3711
+ modelId: z.ZodNullable<z.ZodString>;
3712
+ reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3713
+ }, "strict", z.ZodTypeAny, {
3714
+ modelId: string | null;
3715
+ enabled: boolean;
3716
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3717
+ }, {
3718
+ modelId: string | null;
3719
+ enabled: boolean;
3720
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3721
+ }>, {
3722
+ modelId: string | null;
3723
+ enabled: boolean;
3724
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3725
+ }, {
3726
+ modelId: string | null;
3727
+ enabled: boolean;
3728
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3729
+ }>;
3730
+ export type PromptCompletionConfiguration = z.infer<typeof promptCompletionConfigurationSchema>;
3731
+ export declare const promptCompletionPreferencesSchema: z.ZodObject<{
3732
+ work: z.ZodBoolean;
3733
+ }, "strict", z.ZodTypeAny, {
3734
+ work: boolean;
3735
+ }, {
3736
+ work: boolean;
3737
+ }>;
3738
+ export type PromptCompletionPreferences = z.infer<typeof promptCompletionPreferencesSchema>;
3739
+ export declare const promptCompletionAttentionSchema: z.ZodEffects<z.ZodObject<{
3740
+ fileId: z.ZodOptional<z.ZodString>;
3741
+ worktreePath: z.ZodOptional<z.ZodString>;
3742
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
3743
+ path: z.ZodString;
3744
+ observedAt: z.ZodNumber;
3745
+ revision: z.ZodOptional<z.ZodString>;
3746
+ startLine: z.ZodOptional<z.ZodNumber>;
3747
+ endLine: z.ZodOptional<z.ZodNumber>;
3748
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
3749
+ }, "strict", z.ZodTypeAny, {
3750
+ path: string;
3751
+ kind: "FILE" | "DIFF";
3752
+ observedAt: number;
3753
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3754
+ worktreePath?: string | undefined;
3755
+ revision?: string | undefined;
3756
+ fileId?: string | undefined;
3757
+ startLine?: number | undefined;
3758
+ endLine?: number | undefined;
3759
+ }, {
3760
+ path: string;
3761
+ kind: "FILE" | "DIFF";
3762
+ observedAt: number;
3763
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3764
+ worktreePath?: string | undefined;
3765
+ revision?: string | undefined;
3766
+ fileId?: string | undefined;
3767
+ startLine?: number | undefined;
3768
+ endLine?: number | undefined;
3769
+ }>, {
3770
+ path: string;
3771
+ kind: "FILE" | "DIFF";
3772
+ observedAt: number;
3773
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3774
+ worktreePath?: string | undefined;
3775
+ revision?: string | undefined;
3776
+ fileId?: string | undefined;
3777
+ startLine?: number | undefined;
3778
+ endLine?: number | undefined;
3779
+ }, {
3780
+ path: string;
3781
+ kind: "FILE" | "DIFF";
3782
+ observedAt: number;
3783
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3784
+ worktreePath?: string | undefined;
3785
+ revision?: string | undefined;
3786
+ fileId?: string | undefined;
3787
+ startLine?: number | undefined;
3788
+ endLine?: number | undefined;
3789
+ }>;
3790
+ export type PromptCompletionAttention = z.infer<typeof promptCompletionAttentionSchema>;
3791
+ export declare const promptCompletionRequestSchema: z.ZodEffects<z.ZodObject<{
3792
+ trigger: z.ZodEnum<["MANUAL", "AUTO"]>;
3793
+ completionMode: z.ZodEnum<["NEXT", "COMPLETE", "REWRITE"]>;
3794
+ attention: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
3795
+ fileId: z.ZodOptional<z.ZodString>;
3796
+ worktreePath: z.ZodOptional<z.ZodString>;
3797
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
3798
+ path: z.ZodString;
3799
+ observedAt: z.ZodNumber;
3800
+ revision: z.ZodOptional<z.ZodString>;
3801
+ startLine: z.ZodOptional<z.ZodNumber>;
3802
+ endLine: z.ZodOptional<z.ZodNumber>;
3803
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
3804
+ }, "strict", z.ZodTypeAny, {
3805
+ path: string;
3806
+ kind: "FILE" | "DIFF";
3807
+ observedAt: number;
3808
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3809
+ worktreePath?: string | undefined;
3810
+ revision?: string | undefined;
3811
+ fileId?: string | undefined;
3812
+ startLine?: number | undefined;
3813
+ endLine?: number | undefined;
3814
+ }, {
3815
+ path: string;
3816
+ kind: "FILE" | "DIFF";
3817
+ observedAt: number;
3818
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3819
+ worktreePath?: string | undefined;
3820
+ revision?: string | undefined;
3821
+ fileId?: string | undefined;
3822
+ startLine?: number | undefined;
3823
+ endLine?: number | undefined;
3824
+ }>, {
3825
+ path: string;
3826
+ kind: "FILE" | "DIFF";
3827
+ observedAt: number;
3828
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3829
+ worktreePath?: string | undefined;
3830
+ revision?: string | undefined;
3831
+ fileId?: string | undefined;
3832
+ startLine?: number | undefined;
3833
+ endLine?: number | undefined;
3834
+ }, {
3835
+ path: string;
3836
+ kind: "FILE" | "DIFF";
3837
+ observedAt: number;
3838
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3839
+ worktreePath?: string | undefined;
3840
+ revision?: string | undefined;
3841
+ fileId?: string | undefined;
3842
+ startLine?: number | undefined;
3843
+ endLine?: number | undefined;
3844
+ }>, "many">>;
3845
+ draft: z.ZodEffects<z.ZodString, string, string>;
3846
+ cursorPosition: z.ZodNumber;
3847
+ draftRevision: z.ZodNumber;
3848
+ contextVersion: z.ZodString;
3849
+ historyGeneration: z.ZodString;
3850
+ requestId: z.ZodString;
3851
+ pageEpoch: z.ZodString;
3852
+ intentSequence: z.ZodNumber;
3853
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
3854
+ sessionId: z.ZodNullable<z.ZodString>;
3855
+ }, "strict", z.ZodTypeAny, {
3856
+ requestId: string;
3857
+ sessionId: string | null;
3858
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3859
+ contextVersion: string;
3860
+ trigger: "MANUAL" | "AUTO";
3861
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3862
+ draft: string;
3863
+ cursorPosition: number;
3864
+ draftRevision: number;
3865
+ historyGeneration: string;
3866
+ pageEpoch: string;
3867
+ intentSequence: number;
3868
+ attention?: {
3869
+ path: string;
3870
+ kind: "FILE" | "DIFF";
3871
+ observedAt: number;
3872
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3873
+ worktreePath?: string | undefined;
3874
+ revision?: string | undefined;
3875
+ fileId?: string | undefined;
3876
+ startLine?: number | undefined;
3877
+ endLine?: number | undefined;
3878
+ }[] | undefined;
3879
+ }, {
3880
+ requestId: string;
3881
+ sessionId: string | null;
3882
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3883
+ contextVersion: string;
3884
+ trigger: "MANUAL" | "AUTO";
3885
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3886
+ draft: string;
3887
+ cursorPosition: number;
3888
+ draftRevision: number;
3889
+ historyGeneration: string;
3890
+ pageEpoch: string;
3891
+ intentSequence: number;
3892
+ attention?: {
3893
+ path: string;
3894
+ kind: "FILE" | "DIFF";
3895
+ observedAt: number;
3896
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3897
+ worktreePath?: string | undefined;
3898
+ revision?: string | undefined;
3899
+ fileId?: string | undefined;
3900
+ startLine?: number | undefined;
3901
+ endLine?: number | undefined;
3902
+ }[] | undefined;
3903
+ }>, {
3904
+ requestId: string;
3905
+ sessionId: string | null;
3906
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3907
+ contextVersion: string;
3908
+ trigger: "MANUAL" | "AUTO";
3909
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3910
+ draft: string;
3911
+ cursorPosition: number;
3912
+ draftRevision: number;
3913
+ historyGeneration: string;
3914
+ pageEpoch: string;
3915
+ intentSequence: number;
3916
+ attention?: {
3917
+ path: string;
3918
+ kind: "FILE" | "DIFF";
3919
+ observedAt: number;
3920
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3921
+ worktreePath?: string | undefined;
3922
+ revision?: string | undefined;
3923
+ fileId?: string | undefined;
3924
+ startLine?: number | undefined;
3925
+ endLine?: number | undefined;
3926
+ }[] | undefined;
3927
+ }, {
3928
+ requestId: string;
3929
+ sessionId: string | null;
3930
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3931
+ contextVersion: string;
3932
+ trigger: "MANUAL" | "AUTO";
3933
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3934
+ draft: string;
3935
+ cursorPosition: number;
3936
+ draftRevision: number;
3937
+ historyGeneration: string;
3938
+ pageEpoch: string;
3939
+ intentSequence: number;
3940
+ attention?: {
3941
+ path: string;
3942
+ kind: "FILE" | "DIFF";
3943
+ observedAt: number;
3944
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3945
+ worktreePath?: string | undefined;
3946
+ revision?: string | undefined;
3947
+ fileId?: string | undefined;
3948
+ startLine?: number | undefined;
3949
+ endLine?: number | undefined;
3950
+ }[] | undefined;
3951
+ }>;
3952
+ export type PromptCompletionRequest = z.infer<typeof promptCompletionRequestSchema>;
3953
+ export declare const promptCompletionCancelSchema: z.ZodObject<{
3954
+ requestId: z.ZodString;
3955
+ pageEpoch: z.ZodString;
3956
+ intentSequence: z.ZodNumber;
3957
+ }, "strict", z.ZodTypeAny, {
3958
+ requestId: string;
3959
+ pageEpoch: string;
3960
+ intentSequence: number;
3961
+ }, {
3962
+ requestId: string;
3963
+ pageEpoch: string;
3964
+ intentSequence: number;
3965
+ }>;
3966
+ export type PromptCompletionCancel = z.infer<typeof promptCompletionCancelSchema>;
3967
+ export declare const promptCompletionContextSchema: z.ZodObject<{
3968
+ contextVersion: z.ZodString;
3969
+ historyGeneration: z.ZodString;
3970
+ progressRevision: z.ZodNumber;
3971
+ }, "strict", z.ZodTypeAny, {
3972
+ contextVersion: string;
3973
+ historyGeneration: string;
3974
+ progressRevision: number;
3975
+ }, {
3976
+ contextVersion: string;
3977
+ historyGeneration: string;
3978
+ progressRevision: number;
3979
+ }>;
3980
+ export type PromptCompletionContext = z.infer<typeof promptCompletionContextSchema>;
3981
+ export declare const promptCompletionResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3982
+ status: z.ZodLiteral<"ready">;
3983
+ suggestion: z.ZodString;
3984
+ source: z.ZodEnum<["generated", "cache"]>;
3985
+ expiresAt: z.ZodNumber;
3986
+ requestId: z.ZodString;
3987
+ contextVersion: z.ZodString;
3988
+ historyGeneration: z.ZodString;
3989
+ draftRevision: z.ZodNumber;
3990
+ cursorPosition: z.ZodNumber;
3991
+ }, "strict", z.ZodTypeAny, {
3992
+ status: "ready";
3993
+ expiresAt: number;
3994
+ source: "generated" | "cache";
3995
+ requestId: string;
3996
+ contextVersion: string;
3997
+ cursorPosition: number;
3998
+ draftRevision: number;
3999
+ historyGeneration: string;
4000
+ suggestion: string;
4001
+ }, {
4002
+ status: "ready";
4003
+ expiresAt: number;
4004
+ source: "generated" | "cache";
4005
+ requestId: string;
4006
+ contextVersion: string;
4007
+ cursorPosition: number;
4008
+ draftRevision: number;
4009
+ historyGeneration: string;
4010
+ suggestion: string;
4011
+ }>, z.ZodObject<{
4012
+ status: z.ZodLiteral<"empty">;
4013
+ requestId: z.ZodString;
4014
+ contextVersion: z.ZodString;
4015
+ historyGeneration: z.ZodString;
4016
+ draftRevision: z.ZodNumber;
4017
+ cursorPosition: z.ZodNumber;
4018
+ }, "strict", z.ZodTypeAny, {
4019
+ status: "empty";
4020
+ requestId: string;
4021
+ contextVersion: string;
4022
+ cursorPosition: number;
4023
+ draftRevision: number;
4024
+ historyGeneration: string;
4025
+ }, {
4026
+ status: "empty";
4027
+ requestId: string;
4028
+ contextVersion: string;
4029
+ cursorPosition: number;
4030
+ draftRevision: number;
4031
+ historyGeneration: string;
4032
+ }>, z.ZodObject<{
4033
+ status: z.ZodLiteral<"cancelled">;
4034
+ requestId: z.ZodString;
4035
+ contextVersion: z.ZodString;
4036
+ historyGeneration: z.ZodString;
4037
+ draftRevision: z.ZodNumber;
4038
+ cursorPosition: z.ZodNumber;
4039
+ }, "strict", z.ZodTypeAny, {
4040
+ status: "cancelled";
4041
+ requestId: string;
4042
+ contextVersion: string;
4043
+ cursorPosition: number;
4044
+ draftRevision: number;
4045
+ historyGeneration: string;
4046
+ }, {
4047
+ status: "cancelled";
4048
+ requestId: string;
4049
+ contextVersion: string;
4050
+ cursorPosition: number;
4051
+ draftRevision: number;
4052
+ historyGeneration: string;
4053
+ }>, z.ZodObject<{
4054
+ status: z.ZodLiteral<"skipped">;
4055
+ reason: z.ZodEnum<["IN_FLIGHT", "RATE_LIMITED", "STALE_CONTEXT", "UNAVAILABLE", "CAPACITY"]>;
4056
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
4057
+ requestId: z.ZodString;
4058
+ contextVersion: z.ZodString;
4059
+ historyGeneration: z.ZodString;
4060
+ draftRevision: z.ZodNumber;
4061
+ cursorPosition: z.ZodNumber;
4062
+ }, "strict", z.ZodTypeAny, {
4063
+ status: "skipped";
4064
+ requestId: string;
4065
+ reason: "UNAVAILABLE" | "IN_FLIGHT" | "RATE_LIMITED" | "STALE_CONTEXT" | "CAPACITY";
4066
+ contextVersion: string;
4067
+ cursorPosition: number;
4068
+ draftRevision: number;
4069
+ historyGeneration: string;
4070
+ retryAfterMs?: number | undefined;
4071
+ }, {
4072
+ status: "skipped";
4073
+ requestId: string;
4074
+ reason: "UNAVAILABLE" | "IN_FLIGHT" | "RATE_LIMITED" | "STALE_CONTEXT" | "CAPACITY";
4075
+ contextVersion: string;
4076
+ cursorPosition: number;
4077
+ draftRevision: number;
4078
+ historyGeneration: string;
4079
+ retryAfterMs?: number | undefined;
4080
+ }>]>;
4081
+ export type PromptCompletionResponse = z.infer<typeof promptCompletionResponseSchema>;
4082
+ export declare const promptCompletionTargetSchema: z.ZodObject<{
4083
+ kind: z.ZodLiteral<"WORKSPACE">;
4084
+ workspaceId: z.ZodString;
4085
+ }, "strict", z.ZodTypeAny, {
4086
+ kind: "WORKSPACE";
4087
+ workspaceId: string;
4088
+ }, {
4089
+ kind: "WORKSPACE";
4090
+ workspaceId: string;
4091
+ }>;
4092
+ export type PromptCompletionTarget = z.infer<typeof promptCompletionTargetSchema>;
4093
+ export declare const promptCompletionContextInputSchema: z.ZodObject<{
4094
+ target: z.ZodObject<{
4095
+ kind: z.ZodLiteral<"WORKSPACE">;
4096
+ workspaceId: z.ZodString;
4097
+ }, "strict", z.ZodTypeAny, {
4098
+ kind: "WORKSPACE";
4099
+ workspaceId: string;
4100
+ }, {
4101
+ kind: "WORKSPACE";
4102
+ workspaceId: string;
4103
+ }>;
4104
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
4105
+ sessionId: z.ZodNullable<z.ZodString>;
4106
+ workbenchConnectionId: z.ZodString;
4107
+ pageEpoch: z.ZodString;
4108
+ }, "strict", z.ZodTypeAny, {
4109
+ workbenchConnectionId: string;
4110
+ sessionId: string | null;
4111
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4112
+ pageEpoch: string;
4113
+ target: {
4114
+ kind: "WORKSPACE";
4115
+ workspaceId: string;
4116
+ };
4117
+ }, {
4118
+ workbenchConnectionId: string;
4119
+ sessionId: string | null;
4120
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4121
+ pageEpoch: string;
4122
+ target: {
4123
+ kind: "WORKSPACE";
4124
+ workspaceId: string;
4125
+ };
4126
+ }>;
4127
+ export type PromptCompletionContextInput = z.infer<typeof promptCompletionContextInputSchema>;
4128
+ export declare const promptCompletionGenerateInputSchema: z.ZodObject<{
4129
+ target: z.ZodObject<{
4130
+ kind: z.ZodLiteral<"WORKSPACE">;
4131
+ workspaceId: z.ZodString;
4132
+ }, "strict", z.ZodTypeAny, {
4133
+ kind: "WORKSPACE";
4134
+ workspaceId: string;
4135
+ }, {
4136
+ kind: "WORKSPACE";
4137
+ workspaceId: string;
4138
+ }>;
4139
+ workbenchConnectionId: z.ZodString;
4140
+ request: z.ZodEffects<z.ZodObject<{
4141
+ trigger: z.ZodEnum<["MANUAL", "AUTO"]>;
4142
+ completionMode: z.ZodEnum<["NEXT", "COMPLETE", "REWRITE"]>;
4143
+ attention: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
4144
+ fileId: z.ZodOptional<z.ZodString>;
4145
+ worktreePath: z.ZodOptional<z.ZodString>;
4146
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
4147
+ path: z.ZodString;
4148
+ observedAt: z.ZodNumber;
4149
+ revision: z.ZodOptional<z.ZodString>;
4150
+ startLine: z.ZodOptional<z.ZodNumber>;
4151
+ endLine: z.ZodOptional<z.ZodNumber>;
4152
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
4153
+ }, "strict", z.ZodTypeAny, {
4154
+ path: string;
4155
+ kind: "FILE" | "DIFF";
4156
+ observedAt: number;
4157
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4158
+ worktreePath?: string | undefined;
4159
+ revision?: string | undefined;
4160
+ fileId?: string | undefined;
4161
+ startLine?: number | undefined;
4162
+ endLine?: number | undefined;
4163
+ }, {
4164
+ path: string;
4165
+ kind: "FILE" | "DIFF";
4166
+ observedAt: number;
4167
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4168
+ worktreePath?: string | undefined;
4169
+ revision?: string | undefined;
4170
+ fileId?: string | undefined;
4171
+ startLine?: number | undefined;
4172
+ endLine?: number | undefined;
4173
+ }>, {
4174
+ path: string;
4175
+ kind: "FILE" | "DIFF";
4176
+ observedAt: number;
4177
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4178
+ worktreePath?: string | undefined;
4179
+ revision?: string | undefined;
4180
+ fileId?: string | undefined;
4181
+ startLine?: number | undefined;
4182
+ endLine?: number | undefined;
4183
+ }, {
4184
+ path: string;
4185
+ kind: "FILE" | "DIFF";
4186
+ observedAt: number;
4187
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4188
+ worktreePath?: string | undefined;
4189
+ revision?: string | undefined;
4190
+ fileId?: string | undefined;
4191
+ startLine?: number | undefined;
4192
+ endLine?: number | undefined;
4193
+ }>, "many">>;
4194
+ draft: z.ZodEffects<z.ZodString, string, string>;
4195
+ cursorPosition: z.ZodNumber;
4196
+ draftRevision: z.ZodNumber;
4197
+ contextVersion: z.ZodString;
4198
+ historyGeneration: z.ZodString;
4199
+ requestId: z.ZodString;
4200
+ pageEpoch: z.ZodString;
4201
+ intentSequence: z.ZodNumber;
4202
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
4203
+ sessionId: z.ZodNullable<z.ZodString>;
4204
+ }, "strict", z.ZodTypeAny, {
4205
+ requestId: string;
4206
+ sessionId: string | null;
4207
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4208
+ contextVersion: string;
4209
+ trigger: "MANUAL" | "AUTO";
4210
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4211
+ draft: string;
4212
+ cursorPosition: number;
4213
+ draftRevision: number;
4214
+ historyGeneration: string;
4215
+ pageEpoch: string;
4216
+ intentSequence: number;
4217
+ attention?: {
4218
+ path: string;
4219
+ kind: "FILE" | "DIFF";
4220
+ observedAt: number;
4221
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4222
+ worktreePath?: string | undefined;
4223
+ revision?: string | undefined;
4224
+ fileId?: string | undefined;
4225
+ startLine?: number | undefined;
4226
+ endLine?: number | undefined;
4227
+ }[] | undefined;
4228
+ }, {
4229
+ requestId: string;
4230
+ sessionId: string | null;
4231
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4232
+ contextVersion: string;
4233
+ trigger: "MANUAL" | "AUTO";
4234
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4235
+ draft: string;
4236
+ cursorPosition: number;
4237
+ draftRevision: number;
4238
+ historyGeneration: string;
4239
+ pageEpoch: string;
4240
+ intentSequence: number;
4241
+ attention?: {
4242
+ path: string;
4243
+ kind: "FILE" | "DIFF";
4244
+ observedAt: number;
4245
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4246
+ worktreePath?: string | undefined;
4247
+ revision?: string | undefined;
4248
+ fileId?: string | undefined;
4249
+ startLine?: number | undefined;
4250
+ endLine?: number | undefined;
4251
+ }[] | undefined;
4252
+ }>, {
4253
+ requestId: string;
4254
+ sessionId: string | null;
4255
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4256
+ contextVersion: string;
4257
+ trigger: "MANUAL" | "AUTO";
4258
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4259
+ draft: string;
4260
+ cursorPosition: number;
4261
+ draftRevision: number;
4262
+ historyGeneration: string;
4263
+ pageEpoch: string;
4264
+ intentSequence: number;
4265
+ attention?: {
4266
+ path: string;
4267
+ kind: "FILE" | "DIFF";
4268
+ observedAt: number;
4269
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4270
+ worktreePath?: string | undefined;
4271
+ revision?: string | undefined;
4272
+ fileId?: string | undefined;
4273
+ startLine?: number | undefined;
4274
+ endLine?: number | undefined;
4275
+ }[] | undefined;
4276
+ }, {
4277
+ requestId: string;
4278
+ sessionId: string | null;
4279
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4280
+ contextVersion: string;
4281
+ trigger: "MANUAL" | "AUTO";
4282
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4283
+ draft: string;
4284
+ cursorPosition: number;
4285
+ draftRevision: number;
4286
+ historyGeneration: string;
4287
+ pageEpoch: string;
4288
+ intentSequence: number;
4289
+ attention?: {
4290
+ path: string;
4291
+ kind: "FILE" | "DIFF";
4292
+ observedAt: number;
4293
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4294
+ worktreePath?: string | undefined;
4295
+ revision?: string | undefined;
4296
+ fileId?: string | undefined;
4297
+ startLine?: number | undefined;
4298
+ endLine?: number | undefined;
4299
+ }[] | undefined;
4300
+ }>;
4301
+ }, "strict", z.ZodTypeAny, {
4302
+ workbenchConnectionId: string;
4303
+ request: {
4304
+ requestId: string;
4305
+ sessionId: string | null;
4306
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4307
+ contextVersion: string;
4308
+ trigger: "MANUAL" | "AUTO";
4309
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4310
+ draft: string;
4311
+ cursorPosition: number;
4312
+ draftRevision: number;
4313
+ historyGeneration: string;
4314
+ pageEpoch: string;
4315
+ intentSequence: number;
4316
+ attention?: {
4317
+ path: string;
4318
+ kind: "FILE" | "DIFF";
4319
+ observedAt: number;
4320
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4321
+ worktreePath?: string | undefined;
4322
+ revision?: string | undefined;
4323
+ fileId?: string | undefined;
4324
+ startLine?: number | undefined;
4325
+ endLine?: number | undefined;
4326
+ }[] | undefined;
4327
+ };
4328
+ target: {
4329
+ kind: "WORKSPACE";
4330
+ workspaceId: string;
4331
+ };
4332
+ }, {
4333
+ workbenchConnectionId: string;
4334
+ request: {
4335
+ requestId: string;
4336
+ sessionId: string | null;
4337
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4338
+ contextVersion: string;
4339
+ trigger: "MANUAL" | "AUTO";
4340
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4341
+ draft: string;
4342
+ cursorPosition: number;
4343
+ draftRevision: number;
4344
+ historyGeneration: string;
4345
+ pageEpoch: string;
4346
+ intentSequence: number;
4347
+ attention?: {
4348
+ path: string;
4349
+ kind: "FILE" | "DIFF";
4350
+ observedAt: number;
4351
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4352
+ worktreePath?: string | undefined;
4353
+ revision?: string | undefined;
4354
+ fileId?: string | undefined;
4355
+ startLine?: number | undefined;
4356
+ endLine?: number | undefined;
4357
+ }[] | undefined;
4358
+ };
4359
+ target: {
4360
+ kind: "WORKSPACE";
4361
+ workspaceId: string;
4362
+ };
4363
+ }>;
4364
+ export type PromptCompletionGenerateInput = z.infer<typeof promptCompletionGenerateInputSchema>;
4365
+ /** Server-only execution authority; never part of a browser response or Session DTO. */
4366
+ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
4367
+ workspaceId: z.ZodString;
4368
+ authorizationView: z.ZodString;
4369
+ expiresAt: z.ZodNumber;
4370
+ runtimeScopeId: z.ZodString;
4371
+ modelRevision: z.ZodString;
4372
+ credentialScope: z.ZodString;
4373
+ model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
4374
+ baseUrl: z.ZodString;
4375
+ apiKey: z.ZodOptional<z.ZodString>;
4376
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4377
+ type: z.ZodLiteral<"INLINE_API_KEY">;
4378
+ value: z.ZodString;
4379
+ }, "strict", z.ZodTypeAny, {
4380
+ value: string;
4381
+ type: "INLINE_API_KEY";
4382
+ }, {
4383
+ value: string;
4384
+ type: "INLINE_API_KEY";
4385
+ }>, z.ZodEffects<z.ZodObject<{
4386
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
4387
+ credentialId: z.ZodString;
4388
+ ticket: z.ZodEffects<z.ZodObject<{
4389
+ userId: z.ZodNumber;
4390
+ credentialId: z.ZodString;
4391
+ nodeId: z.ZodString;
4392
+ workspaceId: z.ZodString;
4393
+ sessionId: z.ZodOptional<z.ZodString>;
4394
+ runtimeScopeId: z.ZodString;
4395
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
4396
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
4397
+ issuedAt: z.ZodNumber;
4398
+ expiresAt: z.ZodNumber;
4399
+ nonce: z.ZodString;
4400
+ signature: z.ZodString;
4401
+ }, "strict", z.ZodTypeAny, {
4402
+ nonce: string;
4403
+ expiresAt: number;
4404
+ workspaceId: string;
4405
+ nodeId: string;
4406
+ userId: number;
4407
+ issuedAt: number;
4408
+ credentialId: string;
4409
+ runtimeScopeId: string;
4410
+ allowedModelIds: string[];
4411
+ signature: string;
4412
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4413
+ sessionId?: string | undefined;
4414
+ }, {
4415
+ nonce: string;
4416
+ expiresAt: number;
4417
+ workspaceId: string;
4418
+ nodeId: string;
4419
+ userId: number;
4420
+ issuedAt: number;
4421
+ credentialId: string;
4422
+ runtimeScopeId: string;
4423
+ allowedModelIds: string[];
4424
+ signature: string;
4425
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4426
+ sessionId?: string | undefined;
4427
+ }>, {
4428
+ nonce: string;
4429
+ expiresAt: number;
4430
+ workspaceId: string;
4431
+ nodeId: string;
4432
+ userId: number;
4433
+ issuedAt: number;
4434
+ credentialId: string;
4435
+ runtimeScopeId: string;
4436
+ allowedModelIds: string[];
4437
+ signature: string;
4438
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4439
+ sessionId?: string | undefined;
4440
+ }, {
4441
+ nonce: string;
4442
+ expiresAt: number;
4443
+ workspaceId: string;
4444
+ nodeId: string;
4445
+ userId: number;
4446
+ issuedAt: number;
4447
+ credentialId: string;
4448
+ runtimeScopeId: string;
4449
+ allowedModelIds: string[];
4450
+ signature: string;
4451
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4452
+ sessionId?: string | undefined;
4453
+ }>;
4454
+ }, "strict", z.ZodTypeAny, {
4455
+ type: "RUNTIME_TICKET";
4456
+ credentialId: string;
4457
+ ticket: {
4458
+ nonce: string;
4459
+ expiresAt: number;
4460
+ workspaceId: string;
4461
+ nodeId: string;
4462
+ userId: number;
4463
+ issuedAt: number;
4464
+ credentialId: string;
4465
+ runtimeScopeId: string;
4466
+ allowedModelIds: string[];
4467
+ signature: string;
4468
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4469
+ sessionId?: string | undefined;
4470
+ };
4471
+ }, {
4472
+ type: "RUNTIME_TICKET";
4473
+ credentialId: string;
4474
+ ticket: {
4475
+ nonce: string;
4476
+ expiresAt: number;
4477
+ workspaceId: string;
4478
+ nodeId: string;
4479
+ userId: number;
4480
+ issuedAt: number;
4481
+ credentialId: string;
4482
+ runtimeScopeId: string;
4483
+ allowedModelIds: string[];
4484
+ signature: string;
4485
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4486
+ sessionId?: string | undefined;
4487
+ };
4488
+ }>, {
4489
+ type: "RUNTIME_TICKET";
4490
+ credentialId: string;
4491
+ ticket: {
4492
+ nonce: string;
4493
+ expiresAt: number;
4494
+ workspaceId: string;
4495
+ nodeId: string;
4496
+ userId: number;
4497
+ issuedAt: number;
4498
+ credentialId: string;
4499
+ runtimeScopeId: string;
4500
+ allowedModelIds: string[];
4501
+ signature: string;
4502
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4503
+ sessionId?: string | undefined;
4504
+ };
4505
+ }, {
4506
+ type: "RUNTIME_TICKET";
4507
+ credentialId: string;
4508
+ ticket: {
4509
+ nonce: string;
4510
+ expiresAt: number;
4511
+ workspaceId: string;
4512
+ nodeId: string;
4513
+ userId: number;
4514
+ issuedAt: number;
4515
+ credentialId: string;
4516
+ runtimeScopeId: string;
4517
+ allowedModelIds: string[];
4518
+ signature: string;
4519
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4520
+ sessionId?: string | undefined;
4521
+ };
4522
+ }>]>>;
4523
+ responsesToolNamespace: z.ZodOptional<z.ZodString>;
4524
+ responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
4525
+ responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
4526
+ reasoningEffort: z.ZodBoolean;
4527
+ reasoningSummary: z.ZodBoolean;
4528
+ textVerbosity: z.ZodBoolean;
4529
+ promptCacheKey: z.ZodBoolean;
4530
+ nativeTools: z.ZodOptional<z.ZodBoolean>;
4531
+ }, "strict", z.ZodTypeAny, {
4532
+ reasoningEffort: boolean;
4533
+ reasoningSummary: boolean;
4534
+ textVerbosity: boolean;
4535
+ promptCacheKey: boolean;
4536
+ nativeTools?: boolean | undefined;
4537
+ }, {
4538
+ reasoningEffort: boolean;
4539
+ reasoningSummary: boolean;
4540
+ textVerbosity: boolean;
4541
+ promptCacheKey: boolean;
4542
+ nativeTools?: boolean | undefined;
4543
+ }>>;
4544
+ imageGeneration: z.ZodOptional<z.ZodObject<{
4545
+ provider: z.ZodOptional<z.ZodString>;
4546
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4547
+ generateEndpoint: z.ZodString;
4548
+ editEndpoint: z.ZodString;
4549
+ imageModelId: z.ZodString;
4550
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
4551
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4552
+ type: z.ZodLiteral<"INLINE_API_KEY">;
4553
+ value: z.ZodString;
4554
+ }, "strict", z.ZodTypeAny, {
4555
+ value: string;
4556
+ type: "INLINE_API_KEY";
4557
+ }, {
4558
+ value: string;
4559
+ type: "INLINE_API_KEY";
4560
+ }>, z.ZodEffects<z.ZodObject<{
4561
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
4562
+ credentialId: z.ZodString;
4563
+ ticket: z.ZodEffects<z.ZodObject<{
4564
+ userId: z.ZodNumber;
4565
+ credentialId: z.ZodString;
4566
+ nodeId: z.ZodString;
4567
+ workspaceId: z.ZodString;
4568
+ sessionId: z.ZodOptional<z.ZodString>;
4569
+ runtimeScopeId: z.ZodString;
4570
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
4571
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
4572
+ issuedAt: z.ZodNumber;
4573
+ expiresAt: z.ZodNumber;
4574
+ nonce: z.ZodString;
4575
+ signature: z.ZodString;
4576
+ }, "strict", z.ZodTypeAny, {
4577
+ nonce: string;
4578
+ expiresAt: number;
4579
+ workspaceId: string;
4580
+ nodeId: string;
4581
+ userId: number;
4582
+ issuedAt: number;
4583
+ credentialId: string;
4584
+ runtimeScopeId: string;
4585
+ allowedModelIds: string[];
4586
+ signature: string;
4587
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4588
+ sessionId?: string | undefined;
4589
+ }, {
4590
+ nonce: string;
4591
+ expiresAt: number;
4592
+ workspaceId: string;
4593
+ nodeId: string;
4594
+ userId: number;
4595
+ issuedAt: number;
4596
+ credentialId: string;
4597
+ runtimeScopeId: string;
4598
+ allowedModelIds: string[];
4599
+ signature: string;
4600
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4601
+ sessionId?: string | undefined;
4602
+ }>, {
4603
+ nonce: string;
4604
+ expiresAt: number;
4605
+ workspaceId: string;
4606
+ nodeId: string;
4607
+ userId: number;
4608
+ issuedAt: number;
4609
+ credentialId: string;
4610
+ runtimeScopeId: string;
4611
+ allowedModelIds: string[];
4612
+ signature: string;
4613
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4614
+ sessionId?: string | undefined;
4615
+ }, {
4616
+ nonce: string;
4617
+ expiresAt: number;
4618
+ workspaceId: string;
4619
+ nodeId: string;
4620
+ userId: number;
4621
+ issuedAt: number;
4622
+ credentialId: string;
4623
+ runtimeScopeId: string;
4624
+ allowedModelIds: string[];
4625
+ signature: string;
4626
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4627
+ sessionId?: string | undefined;
4628
+ }>;
4629
+ }, "strict", z.ZodTypeAny, {
4630
+ type: "RUNTIME_TICKET";
4631
+ credentialId: string;
4632
+ ticket: {
4633
+ nonce: string;
4634
+ expiresAt: number;
4635
+ workspaceId: string;
4636
+ nodeId: string;
4637
+ userId: number;
4638
+ issuedAt: number;
4639
+ credentialId: string;
4640
+ runtimeScopeId: string;
4641
+ allowedModelIds: string[];
4642
+ signature: string;
4643
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4644
+ sessionId?: string | undefined;
4645
+ };
4646
+ }, {
4647
+ type: "RUNTIME_TICKET";
4648
+ credentialId: string;
4649
+ ticket: {
4650
+ nonce: string;
4651
+ expiresAt: number;
4652
+ workspaceId: string;
4653
+ nodeId: string;
4654
+ userId: number;
4655
+ issuedAt: number;
4656
+ credentialId: string;
4657
+ runtimeScopeId: string;
4658
+ allowedModelIds: string[];
4659
+ signature: string;
4660
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4661
+ sessionId?: string | undefined;
4662
+ };
4663
+ }>, {
4664
+ type: "RUNTIME_TICKET";
4665
+ credentialId: string;
4666
+ ticket: {
4667
+ nonce: string;
4668
+ expiresAt: number;
4669
+ workspaceId: string;
4670
+ nodeId: string;
4671
+ userId: number;
4672
+ issuedAt: number;
4673
+ credentialId: string;
4674
+ runtimeScopeId: string;
4675
+ allowedModelIds: string[];
4676
+ signature: string;
4677
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4678
+ sessionId?: string | undefined;
4679
+ };
4680
+ }, {
4681
+ type: "RUNTIME_TICKET";
4682
+ credentialId: string;
4683
+ ticket: {
4684
+ nonce: string;
4685
+ expiresAt: number;
4686
+ workspaceId: string;
4687
+ nodeId: string;
4688
+ userId: number;
4689
+ issuedAt: number;
4690
+ credentialId: string;
4691
+ runtimeScopeId: string;
4692
+ allowedModelIds: string[];
4693
+ signature: string;
4694
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4695
+ sessionId?: string | undefined;
4696
+ };
4697
+ }>]>>;
4698
+ }, "strict", z.ZodTypeAny, {
4699
+ imageModelId: string;
4700
+ httpVersion: "2" | "1.1";
4701
+ generateEndpoint: string;
4702
+ editEndpoint: string;
4703
+ provider?: string | undefined;
4704
+ credential?: {
4705
+ value: string;
4706
+ type: "INLINE_API_KEY";
4707
+ } | {
4708
+ type: "RUNTIME_TICKET";
4709
+ credentialId: string;
4710
+ ticket: {
4711
+ nonce: string;
4712
+ expiresAt: number;
4713
+ workspaceId: string;
4714
+ nodeId: string;
4715
+ userId: number;
4716
+ issuedAt: number;
4717
+ credentialId: string;
4718
+ runtimeScopeId: string;
4719
+ allowedModelIds: string[];
4720
+ signature: string;
4721
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4722
+ sessionId?: string | undefined;
4723
+ };
4724
+ } | undefined;
4725
+ config?: Record<string, string> | undefined;
4726
+ }, {
4727
+ imageModelId: string;
4728
+ httpVersion: "2" | "1.1";
4729
+ generateEndpoint: string;
4730
+ editEndpoint: string;
4731
+ provider?: string | undefined;
4732
+ credential?: {
4733
+ value: string;
4734
+ type: "INLINE_API_KEY";
4735
+ } | {
4736
+ type: "RUNTIME_TICKET";
4737
+ credentialId: string;
4738
+ ticket: {
4739
+ nonce: string;
4740
+ expiresAt: number;
4741
+ workspaceId: string;
4742
+ nodeId: string;
4743
+ userId: number;
4744
+ issuedAt: number;
4745
+ credentialId: string;
4746
+ runtimeScopeId: string;
4747
+ allowedModelIds: string[];
4748
+ signature: string;
4749
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4750
+ sessionId?: string | undefined;
4751
+ };
4752
+ } | undefined;
4753
+ config?: Record<string, string> | undefined;
4754
+ }>>;
4755
+ id: z.ZodString;
4756
+ name: z.ZodString;
4757
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
4758
+ modelId: z.ZodString;
4759
+ contextWindowTokens: z.ZodNumber;
4760
+ maxOutputTokens: z.ZodNumber;
4761
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
4762
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
4763
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
4764
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
4765
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
4766
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
4767
+ codeMode: z.ZodDefault<z.ZodBoolean>;
4768
+ fastMode: z.ZodOptional<z.ZodBoolean>;
4769
+ serviceTier: z.ZodOptional<z.ZodEnum<["auto", "default", "flex", "priority", "fast", "ultrafast"]>>;
4770
+ hostedWebSearch: z.ZodBoolean;
4771
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
4772
+ transport: z.ZodLiteral<"WEBSOCKET">;
4773
+ }, "strict", z.ZodTypeAny, {
4774
+ transport: "WEBSOCKET";
4775
+ }, {
4776
+ transport: "WEBSOCKET";
4777
+ }>, z.ZodObject<{
4778
+ transport: z.ZodLiteral<"HTTP">;
4779
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
4780
+ }, "strict", z.ZodTypeAny, {
4781
+ transport: "HTTP";
4782
+ httpVersion: "2" | "1.1";
4783
+ }, {
4784
+ transport: "HTTP";
4785
+ httpVersion: "2" | "1.1";
4786
+ }>]>>;
4787
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
4788
+ enabled: z.ZodBoolean;
4789
+ }, "strip", z.ZodTypeAny, {
4790
+ name: string;
4791
+ id: string;
4792
+ modelId: string;
4793
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
4794
+ enabled: boolean;
4795
+ baseUrl: string;
4796
+ contextWindowTokens: number;
4797
+ maxOutputTokens: number;
4798
+ inputCapabilities: ("TEXT" | "IMAGE")[];
4799
+ outputCapabilities: ["TEXT"];
4800
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4801
+ conversationModel: boolean;
4802
+ titleGeneration: boolean;
4803
+ codeMode: boolean;
4804
+ hostedWebSearch: boolean;
4805
+ responsesPreviousResponseId: boolean;
4806
+ fastMode?: boolean | undefined;
4807
+ responsesOptionalParameters?: {
4808
+ reasoningEffort: boolean;
4809
+ reasoningSummary: boolean;
4810
+ textVerbosity: boolean;
4811
+ promptCacheKey: boolean;
4812
+ nativeTools?: boolean | undefined;
4813
+ } | undefined;
4814
+ credential?: {
4815
+ value: string;
4816
+ type: "INLINE_API_KEY";
4817
+ } | {
4818
+ type: "RUNTIME_TICKET";
4819
+ credentialId: string;
4820
+ ticket: {
4821
+ nonce: string;
4822
+ expiresAt: number;
4823
+ workspaceId: string;
4824
+ nodeId: string;
4825
+ userId: number;
4826
+ issuedAt: number;
4827
+ credentialId: string;
4828
+ runtimeScopeId: string;
4829
+ allowedModelIds: string[];
4830
+ signature: string;
4831
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4832
+ sessionId?: string | undefined;
4833
+ };
4834
+ } | undefined;
4835
+ apiKey?: string | undefined;
4836
+ imageGeneration?: {
4837
+ imageModelId: string;
4838
+ httpVersion: "2" | "1.1";
4839
+ generateEndpoint: string;
4840
+ editEndpoint: string;
4841
+ provider?: string | undefined;
4842
+ credential?: {
4843
+ value: string;
4844
+ type: "INLINE_API_KEY";
4845
+ } | {
4846
+ type: "RUNTIME_TICKET";
4847
+ credentialId: string;
4848
+ ticket: {
4849
+ nonce: string;
4850
+ expiresAt: number;
4851
+ workspaceId: string;
4852
+ nodeId: string;
4853
+ userId: number;
4854
+ issuedAt: number;
4855
+ credentialId: string;
4856
+ runtimeScopeId: string;
4857
+ allowedModelIds: string[];
4858
+ signature: string;
4859
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4860
+ sessionId?: string | undefined;
4861
+ };
4862
+ } | undefined;
4863
+ config?: Record<string, string> | undefined;
4864
+ } | undefined;
4865
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4866
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4867
+ responsesTransport?: {
4868
+ transport: "WEBSOCKET";
4869
+ } | {
4870
+ transport: "HTTP";
4871
+ httpVersion: "2" | "1.1";
4872
+ } | undefined;
4873
+ responsesToolNamespace?: string | undefined;
4874
+ responsesConfigurationUpdates?: boolean | undefined;
4875
+ }, {
4876
+ name: string;
4877
+ id: string;
4878
+ modelId: string;
4879
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
4880
+ enabled: boolean;
4881
+ baseUrl: string;
4882
+ contextWindowTokens: number;
4883
+ maxOutputTokens: number;
4884
+ inputCapabilities: ("TEXT" | "IMAGE")[];
4885
+ outputCapabilities: ["TEXT"];
4886
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4887
+ hostedWebSearch: boolean;
4888
+ fastMode?: boolean | undefined;
4889
+ responsesOptionalParameters?: {
4890
+ reasoningEffort: boolean;
4891
+ reasoningSummary: boolean;
4892
+ textVerbosity: boolean;
4893
+ promptCacheKey: boolean;
4894
+ nativeTools?: boolean | undefined;
4895
+ } | undefined;
3575
4896
  credential?: {
3576
4897
  value: string;
3577
4898
  type: "INLINE_API_KEY";
@@ -3593,53 +4914,84 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3593
4914
  sessionId?: string | undefined;
3594
4915
  };
3595
4916
  } | undefined;
3596
- config?: Record<string, string> | undefined;
3597
- } | undefined;
3598
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3599
- titleGeneration?: boolean | undefined;
3600
- codeMode?: boolean | undefined;
3601
- serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3602
- responsesTransport?: {
3603
- transport: "WEBSOCKET";
3604
- } | {
3605
- transport: "HTTP";
3606
- httpVersion: "2" | "1.1";
3607
- } | undefined;
3608
- responsesPreviousResponseId?: boolean | undefined;
3609
- responsesToolNamespace?: string | undefined;
3610
- responsesConfigurationUpdates?: boolean | undefined;
3611
- }>, {
3612
- [x: string]: any;
3613
- }, {
3614
- [x: string]: any;
3615
- }>, {
3616
- [x: string]: any;
3617
- }, {
3618
- [x: string]: any;
3619
- }>;
3620
- export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
3621
- export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
3622
- enabled: z.ZodBoolean;
3623
- modelId: z.ZodNullable<z.ZodString>;
3624
- reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
4917
+ apiKey?: string | undefined;
4918
+ imageGeneration?: {
4919
+ imageModelId: string;
4920
+ httpVersion: "2" | "1.1";
4921
+ generateEndpoint: string;
4922
+ editEndpoint: string;
4923
+ provider?: string | undefined;
4924
+ credential?: {
4925
+ value: string;
4926
+ type: "INLINE_API_KEY";
4927
+ } | {
4928
+ type: "RUNTIME_TICKET";
4929
+ credentialId: string;
4930
+ ticket: {
4931
+ nonce: string;
4932
+ expiresAt: number;
4933
+ workspaceId: string;
4934
+ nodeId: string;
4935
+ userId: number;
4936
+ issuedAt: number;
4937
+ credentialId: string;
4938
+ runtimeScopeId: string;
4939
+ allowedModelIds: string[];
4940
+ signature: string;
4941
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4942
+ sessionId?: string | undefined;
4943
+ };
4944
+ } | undefined;
4945
+ config?: Record<string, string> | undefined;
4946
+ } | undefined;
4947
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4948
+ conversationModel?: boolean | undefined;
4949
+ titleGeneration?: boolean | undefined;
4950
+ codeMode?: boolean | undefined;
4951
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4952
+ responsesTransport?: {
4953
+ transport: "WEBSOCKET";
4954
+ } | {
4955
+ transport: "HTTP";
4956
+ httpVersion: "2" | "1.1";
4957
+ } | undefined;
4958
+ responsesPreviousResponseId?: boolean | undefined;
4959
+ responsesToolNamespace?: string | undefined;
4960
+ responsesConfigurationUpdates?: boolean | undefined;
4961
+ }>, {
4962
+ [x: string]: any;
4963
+ }, {
4964
+ [x: string]: any;
4965
+ }>, {
4966
+ [x: string]: any;
4967
+ }, {
4968
+ [x: string]: any;
4969
+ }>;
4970
+ reasoningEffort: z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>;
3625
4971
  }, "strict", z.ZodTypeAny, {
3626
- modelId: string | null;
3627
- enabled: boolean;
3628
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3629
- }, {
3630
- modelId: string | null;
3631
- enabled: boolean;
3632
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3633
- }>, {
3634
- modelId: string | null;
3635
- enabled: boolean;
3636
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4972
+ expiresAt: number;
4973
+ workspaceId: string;
4974
+ model: {
4975
+ [x: string]: any;
4976
+ };
4977
+ runtimeScopeId: string;
4978
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4979
+ authorizationView: string;
4980
+ modelRevision: string;
4981
+ credentialScope: string;
3637
4982
  }, {
3638
- modelId: string | null;
3639
- enabled: boolean;
3640
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4983
+ expiresAt: number;
4984
+ workspaceId: string;
4985
+ model: {
4986
+ [x: string]: any;
4987
+ };
4988
+ runtimeScopeId: string;
4989
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4990
+ authorizationView: string;
4991
+ modelRevision: string;
4992
+ credentialScope: string;
3641
4993
  }>;
3642
- export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
4994
+ export type PromptCompletionRuntime = z.infer<typeof promptCompletionRuntimeSchema>;
3643
4995
  export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
3644
4996
  model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3645
4997
  baseUrl: z.ZodString;
@@ -4033,6 +5385,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
4033
5385
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
4034
5386
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
4035
5387
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
5388
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
4036
5389
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
4037
5390
  codeMode: z.ZodDefault<z.ZodBoolean>;
4038
5391
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -4068,6 +5421,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
4068
5421
  inputCapabilities: ("TEXT" | "IMAGE")[];
4069
5422
  outputCapabilities: ["TEXT"];
4070
5423
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
5424
+ conversationModel: boolean;
4071
5425
  titleGeneration: boolean;
4072
5426
  codeMode: boolean;
4073
5427
  hostedWebSearch: boolean;
@@ -4214,6 +5568,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
4214
5568
  config?: Record<string, string> | undefined;
4215
5569
  } | undefined;
4216
5570
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
5571
+ conversationModel?: boolean | undefined;
4217
5572
  titleGeneration?: boolean | undefined;
4218
5573
  codeMode?: boolean | undefined;
4219
5574
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -4643,6 +5998,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
4643
5998
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
4644
5999
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
4645
6000
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
6001
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
4646
6002
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
4647
6003
  codeMode: z.ZodDefault<z.ZodBoolean>;
4648
6004
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -4678,6 +6034,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
4678
6034
  inputCapabilities: ("TEXT" | "IMAGE")[];
4679
6035
  outputCapabilities: ["TEXT"];
4680
6036
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
6037
+ conversationModel: boolean;
4681
6038
  titleGeneration: boolean;
4682
6039
  codeMode: boolean;
4683
6040
  hostedWebSearch: boolean;
@@ -4824,6 +6181,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
4824
6181
  config?: Record<string, string> | undefined;
4825
6182
  } | undefined;
4826
6183
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
6184
+ conversationModel?: boolean | undefined;
4827
6185
  titleGeneration?: boolean | undefined;
4828
6186
  codeMode?: boolean | undefined;
4829
6187
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -4961,6 +6319,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
4961
6319
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
4962
6320
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
4963
6321
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
6322
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
4964
6323
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
4965
6324
  codeMode: z.ZodDefault<z.ZodBoolean>;
4966
6325
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -5003,6 +6362,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
5003
6362
  inputCapabilities: ("TEXT" | "IMAGE")[];
5004
6363
  outputCapabilities: ["TEXT"];
5005
6364
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
6365
+ conversationModel: boolean;
5006
6366
  titleGeneration: boolean;
5007
6367
  codeMode: boolean;
5008
6368
  hostedWebSearch: boolean;
@@ -5038,6 +6398,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
5038
6398
  hostedWebSearch: boolean;
5039
6399
  fastMode?: boolean | undefined;
5040
6400
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
6401
+ conversationModel?: boolean | undefined;
5041
6402
  titleGeneration?: boolean | undefined;
5042
6403
  codeMode?: boolean | undefined;
5043
6404
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -7487,8 +8848,8 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
7487
8848
  };
7488
8849
  platform: "windows" | "linux" | "macos";
7489
8850
  architecture: string;
7490
- manifestVersion: 1;
7491
8851
  observedAt: number;
8852
+ manifestVersion: 1;
7492
8853
  runners: {
7493
8854
  runner: "mar-agent" | "codex" | "claude-code" | "opencode";
7494
8855
  capabilities: string[];
@@ -7547,8 +8908,8 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
7547
8908
  };
7548
8909
  platform: "windows" | "linux" | "macos";
7549
8910
  architecture: string;
7550
- manifestVersion: 1;
7551
8911
  observedAt: number;
8912
+ manifestVersion: 1;
7552
8913
  runners: {
7553
8914
  runner: "mar-agent" | "codex" | "claude-code" | "opencode";
7554
8915
  capabilities: string[];
@@ -12850,7 +14211,7 @@ export declare const hostedConversationSummarySchema: z.ZodObject<{
12850
14211
  };
12851
14212
  templateName: string;
12852
14213
  activeVersionId: string;
12853
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14214
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12854
14215
  pinnedAt: number | null;
12855
14216
  lastActivityAt: number;
12856
14217
  }, {
@@ -12872,7 +14233,7 @@ export declare const hostedConversationSummarySchema: z.ZodObject<{
12872
14233
  updatedAt: number;
12873
14234
  version: number;
12874
14235
  } | undefined;
12875
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14236
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12876
14237
  }>;
12877
14238
  export type HostedConversationSummary = z.infer<typeof hostedConversationSummarySchema>;
12878
14239
  export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<{
@@ -12917,7 +14278,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12917
14278
  title: string;
12918
14279
  templateName: string;
12919
14280
  activeVersionId: string;
12920
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14281
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12921
14282
  pinnedAt: number | null;
12922
14283
  lastActivityAt: number;
12923
14284
  userStorageKey: string;
@@ -12949,7 +14310,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12949
14310
  maxBytes: number;
12950
14311
  usedBytes: number;
12951
14312
  };
12952
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14313
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12953
14314
  clientRequestId?: string | undefined;
12954
14315
  }>, {
12955
14316
  status: "ACTIVE";
@@ -12963,7 +14324,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12963
14324
  title: string;
12964
14325
  templateName: string;
12965
14326
  activeVersionId: string;
12966
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14327
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12967
14328
  pinnedAt: number | null;
12968
14329
  lastActivityAt: number;
12969
14330
  userStorageKey: string;
@@ -12995,7 +14356,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12995
14356
  maxBytes: number;
12996
14357
  usedBytes: number;
12997
14358
  };
12998
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14359
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12999
14360
  clientRequestId?: string | undefined;
13000
14361
  }>;
13001
14362
  export type HostedConversationManifest = z.infer<typeof hostedConversationManifestSchema>;
@@ -13088,7 +14449,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13088
14449
  };
13089
14450
  templateName: string;
13090
14451
  activeVersionId: string;
13091
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14452
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
13092
14453
  pinnedAt: number | null;
13093
14454
  lastActivityAt: number;
13094
14455
  }, {
@@ -13110,7 +14471,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13110
14471
  updatedAt: number;
13111
14472
  version: number;
13112
14473
  } | undefined;
13113
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14474
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
13114
14475
  }>;
13115
14476
  template: z.ZodEffects<z.ZodObject<{
13116
14477
  id: z.ZodString;
@@ -15629,6 +16990,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15629
16990
  outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
15630
16991
  reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
15631
16992
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
16993
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
15632
16994
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
15633
16995
  codeMode: z.ZodDefault<z.ZodBoolean>;
15634
16996
  fastMode: z.ZodOptional<z.ZodBoolean>;
@@ -15665,6 +17027,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15665
17027
  inputCapabilities: ("TEXT" | "IMAGE")[];
15666
17028
  outputCapabilities: ["TEXT"];
15667
17029
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
17030
+ conversationModel: boolean;
15668
17031
  titleGeneration: boolean;
15669
17032
  codeMode: boolean;
15670
17033
  hostedWebSearch: boolean;
@@ -15714,6 +17077,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15714
17077
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
15715
17078
  lastTestCode?: string | null | undefined;
15716
17079
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
17080
+ conversationModel?: boolean | undefined;
15717
17081
  titleGeneration?: boolean | undefined;
15718
17082
  codeMode?: boolean | undefined;
15719
17083
  serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
@@ -15772,7 +17136,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15772
17136
  };
15773
17137
  templateName: string;
15774
17138
  activeVersionId: string;
15775
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
17139
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
15776
17140
  pinnedAt: number | null;
15777
17141
  lastActivityAt: number;
15778
17142
  };
@@ -16222,7 +17586,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16222
17586
  updatedAt: number;
16223
17587
  version: number;
16224
17588
  } | undefined;
16225
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
17589
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
16226
17590
  };
16227
17591
  error: {
16228
17592
  code: string;
@@ -16668,7 +18032,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16668
18032
  };
16669
18033
  templateName: string;
16670
18034
  activeVersionId: string;
16671
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
18035
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
16672
18036
  pinnedAt: number | null;
16673
18037
  lastActivityAt: number;
16674
18038
  };
@@ -17118,7 +18482,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
17118
18482
  updatedAt: number;
17119
18483
  version: number;
17120
18484
  } | undefined;
17121
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
18485
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17122
18486
  };
17123
18487
  error: {
17124
18488
  code: string;
@@ -17603,7 +18967,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17603
18967
  };
17604
18968
  templateName: string;
17605
18969
  activeVersionId: string;
17606
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
18970
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17607
18971
  pinnedAt: number | null;
17608
18972
  lastActivityAt: number;
17609
18973
  }, {
@@ -17625,7 +18989,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17625
18989
  updatedAt: number;
17626
18990
  version: number;
17627
18991
  } | undefined;
17628
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
18992
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17629
18993
  }>, "many">;
17630
18994
  nextCursor: z.ZodNullable<z.ZodString>;
17631
18995
  }, "strict", z.ZodTypeAny, {
@@ -17647,7 +19011,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17647
19011
  };
17648
19012
  templateName: string;
17649
19013
  activeVersionId: string;
17650
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
19014
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17651
19015
  pinnedAt: number | null;
17652
19016
  lastActivityAt: number;
17653
19017
  }[];
@@ -17672,7 +19036,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17672
19036
  updatedAt: number;
17673
19037
  version: number;
17674
19038
  } | undefined;
17675
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19039
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17676
19040
  }[];
17677
19041
  }>;
17678
19042
  export type HostedConversationListPage = z.infer<typeof hostedConversationListPageSchema>;
@@ -17723,7 +19087,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17723
19087
  };
17724
19088
  templateName: string;
17725
19089
  activeVersionId: string;
17726
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
19090
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17727
19091
  pinnedAt: number | null;
17728
19092
  lastActivityAt: number;
17729
19093
  }, {
@@ -17745,7 +19109,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17745
19109
  updatedAt: number;
17746
19110
  version: number;
17747
19111
  } | undefined;
17748
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19112
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17749
19113
  }>, "many">;
17750
19114
  nextCursor: z.ZodNullable<z.ZodString>;
17751
19115
  }, "strict", z.ZodTypeAny, {
@@ -17767,7 +19131,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17767
19131
  };
17768
19132
  templateName: string;
17769
19133
  activeVersionId: string;
17770
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
19134
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17771
19135
  pinnedAt: number | null;
17772
19136
  lastActivityAt: number;
17773
19137
  }[];
@@ -17792,7 +19156,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17792
19156
  updatedAt: number;
17793
19157
  version: number;
17794
19158
  } | undefined;
17795
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19159
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17796
19160
  }[];
17797
19161
  }>;
17798
19162
  export type HostedConversationDirectoryPage = z.infer<typeof hostedConversationDirectoryPageSchema>;
@@ -28588,7 +29952,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
28588
29952
  previousPath?: string | undefined;
28589
29953
  }>;
28590
29954
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
28591
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.schedule.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.command.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.tool-resource.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
29955
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.schedule.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.command.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.tool-resource.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
28592
29956
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
28593
29957
  /**
28594
29958
  * A small, explicit envelope keeps WebSocket messages independently parseable