@myagentroam/protocol 0.9.169 → 0.9.170

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
@@ -2156,18 +2156,21 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
2156
2156
  personalInstructions: z.ZodOptional<z.ZodUnknown>;
2157
2157
  marAgentModel: z.ZodOptional<z.ZodUnknown>;
2158
2158
  marAgentModels: z.ZodOptional<z.ZodUnknown>;
2159
+ marAgentCompact: z.ZodOptional<z.ZodUnknown>;
2159
2160
  marAgentRuntimeScopeId: z.ZodOptional<z.ZodUnknown>;
2160
2161
  }, "strict", z.ZodTypeAny, {
2161
2162
  secretEnvironment: Record<string, string>;
2162
2163
  personalInstructions?: unknown;
2163
2164
  marAgentModel?: unknown;
2164
2165
  marAgentModels?: unknown;
2166
+ marAgentCompact?: unknown;
2165
2167
  marAgentRuntimeScopeId?: unknown;
2166
2168
  }, {
2167
2169
  secretEnvironment: Record<string, string>;
2168
2170
  personalInstructions?: unknown;
2169
2171
  marAgentModel?: unknown;
2170
2172
  marAgentModels?: unknown;
2173
+ marAgentCompact?: unknown;
2171
2174
  marAgentRuntimeScopeId?: unknown;
2172
2175
  }>;
2173
2176
  }, "strict", z.ZodTypeAny, {
@@ -2176,6 +2179,7 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
2176
2179
  personalInstructions?: unknown;
2177
2180
  marAgentModel?: unknown;
2178
2181
  marAgentModels?: unknown;
2182
+ marAgentCompact?: unknown;
2179
2183
  marAgentRuntimeScopeId?: unknown;
2180
2184
  };
2181
2185
  }, {
@@ -2184,6 +2188,7 @@ export declare const scheduledRunAuthorizeResponseSchema: z.ZodUnion<[z.ZodObjec
2184
2188
  personalInstructions?: unknown;
2185
2189
  marAgentModel?: unknown;
2186
2190
  marAgentModels?: unknown;
2191
+ marAgentCompact?: unknown;
2187
2192
  marAgentRuntimeScopeId?: unknown;
2188
2193
  };
2189
2194
  }>, z.ZodObject<{
@@ -3538,6 +3543,606 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3538
3543
  [x: string]: any;
3539
3544
  }>;
3540
3545
  export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
3546
+ export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
3547
+ enabled: z.ZodBoolean;
3548
+ modelId: z.ZodNullable<z.ZodString>;
3549
+ reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3550
+ }, "strict", z.ZodTypeAny, {
3551
+ modelId: string | null;
3552
+ enabled: boolean;
3553
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3554
+ }, {
3555
+ modelId: string | null;
3556
+ enabled: boolean;
3557
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3558
+ }>, {
3559
+ modelId: string | null;
3560
+ enabled: boolean;
3561
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3562
+ }, {
3563
+ modelId: string | null;
3564
+ enabled: boolean;
3565
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3566
+ }>;
3567
+ export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
3568
+ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
3569
+ model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3570
+ baseUrl: z.ZodString;
3571
+ apiKey: z.ZodOptional<z.ZodString>;
3572
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3573
+ type: z.ZodLiteral<"INLINE_API_KEY">;
3574
+ value: z.ZodString;
3575
+ }, "strict", z.ZodTypeAny, {
3576
+ value: string;
3577
+ type: "INLINE_API_KEY";
3578
+ }, {
3579
+ value: string;
3580
+ type: "INLINE_API_KEY";
3581
+ }>, z.ZodEffects<z.ZodObject<{
3582
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
3583
+ credentialId: z.ZodString;
3584
+ ticket: z.ZodEffects<z.ZodObject<{
3585
+ userId: z.ZodNumber;
3586
+ credentialId: z.ZodString;
3587
+ nodeId: z.ZodString;
3588
+ workspaceId: z.ZodString;
3589
+ sessionId: z.ZodOptional<z.ZodString>;
3590
+ runtimeScopeId: z.ZodString;
3591
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
3592
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
3593
+ issuedAt: z.ZodNumber;
3594
+ expiresAt: z.ZodNumber;
3595
+ nonce: z.ZodString;
3596
+ signature: z.ZodString;
3597
+ }, "strict", z.ZodTypeAny, {
3598
+ nonce: string;
3599
+ expiresAt: number;
3600
+ workspaceId: string;
3601
+ nodeId: string;
3602
+ userId: number;
3603
+ credentialId: string;
3604
+ runtimeScopeId: string;
3605
+ allowedModelIds: string[];
3606
+ issuedAt: number;
3607
+ signature: string;
3608
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3609
+ sessionId?: string | undefined;
3610
+ }, {
3611
+ nonce: string;
3612
+ expiresAt: number;
3613
+ workspaceId: string;
3614
+ nodeId: string;
3615
+ userId: number;
3616
+ credentialId: string;
3617
+ runtimeScopeId: string;
3618
+ allowedModelIds: string[];
3619
+ issuedAt: number;
3620
+ signature: string;
3621
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3622
+ sessionId?: string | undefined;
3623
+ }>, {
3624
+ nonce: string;
3625
+ expiresAt: number;
3626
+ workspaceId: string;
3627
+ nodeId: string;
3628
+ userId: number;
3629
+ credentialId: string;
3630
+ runtimeScopeId: string;
3631
+ allowedModelIds: string[];
3632
+ issuedAt: number;
3633
+ signature: string;
3634
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3635
+ sessionId?: string | undefined;
3636
+ }, {
3637
+ nonce: string;
3638
+ expiresAt: number;
3639
+ workspaceId: string;
3640
+ nodeId: string;
3641
+ userId: number;
3642
+ credentialId: string;
3643
+ runtimeScopeId: string;
3644
+ allowedModelIds: string[];
3645
+ issuedAt: number;
3646
+ signature: string;
3647
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3648
+ sessionId?: string | undefined;
3649
+ }>;
3650
+ }, "strict", z.ZodTypeAny, {
3651
+ type: "RUNTIME_TICKET";
3652
+ credentialId: string;
3653
+ ticket: {
3654
+ nonce: string;
3655
+ expiresAt: number;
3656
+ workspaceId: string;
3657
+ nodeId: string;
3658
+ userId: number;
3659
+ credentialId: string;
3660
+ runtimeScopeId: string;
3661
+ allowedModelIds: string[];
3662
+ issuedAt: number;
3663
+ signature: string;
3664
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3665
+ sessionId?: string | undefined;
3666
+ };
3667
+ }, {
3668
+ type: "RUNTIME_TICKET";
3669
+ credentialId: string;
3670
+ ticket: {
3671
+ nonce: string;
3672
+ expiresAt: number;
3673
+ workspaceId: string;
3674
+ nodeId: string;
3675
+ userId: number;
3676
+ credentialId: string;
3677
+ runtimeScopeId: string;
3678
+ allowedModelIds: string[];
3679
+ issuedAt: number;
3680
+ signature: string;
3681
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3682
+ sessionId?: string | undefined;
3683
+ };
3684
+ }>, {
3685
+ type: "RUNTIME_TICKET";
3686
+ credentialId: string;
3687
+ ticket: {
3688
+ nonce: string;
3689
+ expiresAt: number;
3690
+ workspaceId: string;
3691
+ nodeId: string;
3692
+ userId: number;
3693
+ credentialId: string;
3694
+ runtimeScopeId: string;
3695
+ allowedModelIds: string[];
3696
+ issuedAt: number;
3697
+ signature: string;
3698
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3699
+ sessionId?: string | undefined;
3700
+ };
3701
+ }, {
3702
+ type: "RUNTIME_TICKET";
3703
+ credentialId: string;
3704
+ ticket: {
3705
+ nonce: string;
3706
+ expiresAt: number;
3707
+ workspaceId: string;
3708
+ nodeId: string;
3709
+ userId: number;
3710
+ credentialId: string;
3711
+ runtimeScopeId: string;
3712
+ allowedModelIds: string[];
3713
+ issuedAt: number;
3714
+ signature: string;
3715
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3716
+ sessionId?: string | undefined;
3717
+ };
3718
+ }>]>>;
3719
+ responsesToolNamespace: z.ZodOptional<z.ZodString>;
3720
+ responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
3721
+ imageGeneration: z.ZodOptional<z.ZodObject<{
3722
+ provider: z.ZodOptional<z.ZodString>;
3723
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3724
+ generateEndpoint: z.ZodString;
3725
+ editEndpoint: z.ZodString;
3726
+ imageModelId: z.ZodString;
3727
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
3728
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3729
+ type: z.ZodLiteral<"INLINE_API_KEY">;
3730
+ value: z.ZodString;
3731
+ }, "strict", z.ZodTypeAny, {
3732
+ value: string;
3733
+ type: "INLINE_API_KEY";
3734
+ }, {
3735
+ value: string;
3736
+ type: "INLINE_API_KEY";
3737
+ }>, z.ZodEffects<z.ZodObject<{
3738
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
3739
+ credentialId: z.ZodString;
3740
+ ticket: z.ZodEffects<z.ZodObject<{
3741
+ userId: z.ZodNumber;
3742
+ credentialId: z.ZodString;
3743
+ nodeId: z.ZodString;
3744
+ workspaceId: z.ZodString;
3745
+ sessionId: z.ZodOptional<z.ZodString>;
3746
+ runtimeScopeId: z.ZodString;
3747
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
3748
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
3749
+ issuedAt: z.ZodNumber;
3750
+ expiresAt: z.ZodNumber;
3751
+ nonce: z.ZodString;
3752
+ signature: z.ZodString;
3753
+ }, "strict", z.ZodTypeAny, {
3754
+ nonce: string;
3755
+ expiresAt: number;
3756
+ workspaceId: string;
3757
+ nodeId: string;
3758
+ userId: number;
3759
+ credentialId: string;
3760
+ runtimeScopeId: string;
3761
+ allowedModelIds: string[];
3762
+ issuedAt: number;
3763
+ signature: string;
3764
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3765
+ sessionId?: string | undefined;
3766
+ }, {
3767
+ nonce: string;
3768
+ expiresAt: number;
3769
+ workspaceId: string;
3770
+ nodeId: string;
3771
+ userId: number;
3772
+ credentialId: string;
3773
+ runtimeScopeId: string;
3774
+ allowedModelIds: string[];
3775
+ issuedAt: number;
3776
+ signature: string;
3777
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3778
+ sessionId?: string | undefined;
3779
+ }>, {
3780
+ nonce: string;
3781
+ expiresAt: number;
3782
+ workspaceId: string;
3783
+ nodeId: string;
3784
+ userId: number;
3785
+ credentialId: string;
3786
+ runtimeScopeId: string;
3787
+ allowedModelIds: string[];
3788
+ issuedAt: number;
3789
+ signature: string;
3790
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3791
+ sessionId?: string | undefined;
3792
+ }, {
3793
+ nonce: string;
3794
+ expiresAt: number;
3795
+ workspaceId: string;
3796
+ nodeId: string;
3797
+ userId: number;
3798
+ credentialId: string;
3799
+ runtimeScopeId: string;
3800
+ allowedModelIds: string[];
3801
+ issuedAt: number;
3802
+ signature: string;
3803
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3804
+ sessionId?: string | undefined;
3805
+ }>;
3806
+ }, "strict", z.ZodTypeAny, {
3807
+ type: "RUNTIME_TICKET";
3808
+ credentialId: string;
3809
+ ticket: {
3810
+ nonce: string;
3811
+ expiresAt: number;
3812
+ workspaceId: string;
3813
+ nodeId: string;
3814
+ userId: number;
3815
+ credentialId: string;
3816
+ runtimeScopeId: string;
3817
+ allowedModelIds: string[];
3818
+ issuedAt: number;
3819
+ signature: string;
3820
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3821
+ sessionId?: string | undefined;
3822
+ };
3823
+ }, {
3824
+ type: "RUNTIME_TICKET";
3825
+ credentialId: string;
3826
+ ticket: {
3827
+ nonce: string;
3828
+ expiresAt: number;
3829
+ workspaceId: string;
3830
+ nodeId: string;
3831
+ userId: number;
3832
+ credentialId: string;
3833
+ runtimeScopeId: string;
3834
+ allowedModelIds: string[];
3835
+ issuedAt: number;
3836
+ signature: string;
3837
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3838
+ sessionId?: string | undefined;
3839
+ };
3840
+ }>, {
3841
+ type: "RUNTIME_TICKET";
3842
+ credentialId: string;
3843
+ ticket: {
3844
+ nonce: string;
3845
+ expiresAt: number;
3846
+ workspaceId: string;
3847
+ nodeId: string;
3848
+ userId: number;
3849
+ credentialId: string;
3850
+ runtimeScopeId: string;
3851
+ allowedModelIds: string[];
3852
+ issuedAt: number;
3853
+ signature: string;
3854
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3855
+ sessionId?: string | undefined;
3856
+ };
3857
+ }, {
3858
+ type: "RUNTIME_TICKET";
3859
+ credentialId: string;
3860
+ ticket: {
3861
+ nonce: string;
3862
+ expiresAt: number;
3863
+ workspaceId: string;
3864
+ nodeId: string;
3865
+ userId: number;
3866
+ credentialId: string;
3867
+ runtimeScopeId: string;
3868
+ allowedModelIds: string[];
3869
+ issuedAt: number;
3870
+ signature: string;
3871
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3872
+ sessionId?: string | undefined;
3873
+ };
3874
+ }>]>>;
3875
+ }, "strict", z.ZodTypeAny, {
3876
+ imageModelId: string;
3877
+ httpVersion: "2" | "1.1";
3878
+ generateEndpoint: string;
3879
+ editEndpoint: string;
3880
+ credential?: {
3881
+ value: string;
3882
+ type: "INLINE_API_KEY";
3883
+ } | {
3884
+ type: "RUNTIME_TICKET";
3885
+ credentialId: string;
3886
+ ticket: {
3887
+ nonce: string;
3888
+ expiresAt: number;
3889
+ workspaceId: string;
3890
+ nodeId: string;
3891
+ userId: number;
3892
+ credentialId: string;
3893
+ runtimeScopeId: string;
3894
+ allowedModelIds: string[];
3895
+ issuedAt: number;
3896
+ signature: string;
3897
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3898
+ sessionId?: string | undefined;
3899
+ };
3900
+ } | undefined;
3901
+ provider?: string | undefined;
3902
+ config?: Record<string, string> | undefined;
3903
+ }, {
3904
+ imageModelId: string;
3905
+ httpVersion: "2" | "1.1";
3906
+ generateEndpoint: string;
3907
+ editEndpoint: string;
3908
+ credential?: {
3909
+ value: string;
3910
+ type: "INLINE_API_KEY";
3911
+ } | {
3912
+ type: "RUNTIME_TICKET";
3913
+ credentialId: string;
3914
+ ticket: {
3915
+ nonce: string;
3916
+ expiresAt: number;
3917
+ workspaceId: string;
3918
+ nodeId: string;
3919
+ userId: number;
3920
+ credentialId: string;
3921
+ runtimeScopeId: string;
3922
+ allowedModelIds: string[];
3923
+ issuedAt: number;
3924
+ signature: string;
3925
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3926
+ sessionId?: string | undefined;
3927
+ };
3928
+ } | undefined;
3929
+ provider?: string | undefined;
3930
+ config?: Record<string, string> | undefined;
3931
+ }>>;
3932
+ id: z.ZodString;
3933
+ name: z.ZodString;
3934
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
3935
+ modelId: z.ZodString;
3936
+ contextWindowTokens: z.ZodNumber;
3937
+ maxOutputTokens: z.ZodNumber;
3938
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
3939
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
3940
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
3941
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3942
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
3943
+ codeMode: z.ZodDefault<z.ZodBoolean>;
3944
+ highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
3945
+ fastMode: z.ZodOptional<z.ZodBoolean>;
3946
+ serviceTier: z.ZodOptional<z.ZodEnum<["auto", "default", "flex", "priority", "fast", "ultrafast"]>>;
3947
+ hostedWebSearch: z.ZodBoolean;
3948
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
3949
+ transport: z.ZodLiteral<"WEBSOCKET">;
3950
+ }, "strict", z.ZodTypeAny, {
3951
+ transport: "WEBSOCKET";
3952
+ }, {
3953
+ transport: "WEBSOCKET";
3954
+ }>, z.ZodObject<{
3955
+ transport: z.ZodLiteral<"HTTP">;
3956
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
3957
+ }, "strict", z.ZodTypeAny, {
3958
+ transport: "HTTP";
3959
+ httpVersion: "2" | "1.1";
3960
+ }, {
3961
+ transport: "HTTP";
3962
+ httpVersion: "2" | "1.1";
3963
+ }>]>>;
3964
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
3965
+ enabled: z.ZodBoolean;
3966
+ }, "strip", z.ZodTypeAny, {
3967
+ name: string;
3968
+ id: string;
3969
+ modelId: string;
3970
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
3971
+ enabled: boolean;
3972
+ baseUrl: string;
3973
+ contextWindowTokens: number;
3974
+ maxOutputTokens: number;
3975
+ inputCapabilities: ("TEXT" | "IMAGE")[];
3976
+ outputCapabilities: ["TEXT"];
3977
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3978
+ titleGeneration: boolean;
3979
+ codeMode: boolean;
3980
+ highDensityCompaction: boolean;
3981
+ hostedWebSearch: boolean;
3982
+ responsesPreviousResponseId: boolean;
3983
+ fastMode?: boolean | undefined;
3984
+ credential?: {
3985
+ value: string;
3986
+ type: "INLINE_API_KEY";
3987
+ } | {
3988
+ type: "RUNTIME_TICKET";
3989
+ credentialId: string;
3990
+ ticket: {
3991
+ nonce: string;
3992
+ expiresAt: number;
3993
+ workspaceId: string;
3994
+ nodeId: string;
3995
+ userId: number;
3996
+ credentialId: string;
3997
+ runtimeScopeId: string;
3998
+ allowedModelIds: string[];
3999
+ issuedAt: number;
4000
+ signature: string;
4001
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4002
+ sessionId?: string | undefined;
4003
+ };
4004
+ } | undefined;
4005
+ apiKey?: string | undefined;
4006
+ imageGeneration?: {
4007
+ imageModelId: string;
4008
+ httpVersion: "2" | "1.1";
4009
+ generateEndpoint: string;
4010
+ editEndpoint: string;
4011
+ credential?: {
4012
+ value: string;
4013
+ type: "INLINE_API_KEY";
4014
+ } | {
4015
+ type: "RUNTIME_TICKET";
4016
+ credentialId: string;
4017
+ ticket: {
4018
+ nonce: string;
4019
+ expiresAt: number;
4020
+ workspaceId: string;
4021
+ nodeId: string;
4022
+ userId: number;
4023
+ credentialId: string;
4024
+ runtimeScopeId: string;
4025
+ allowedModelIds: string[];
4026
+ issuedAt: number;
4027
+ signature: string;
4028
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4029
+ sessionId?: string | undefined;
4030
+ };
4031
+ } | undefined;
4032
+ provider?: string | undefined;
4033
+ config?: Record<string, string> | undefined;
4034
+ } | undefined;
4035
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4036
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4037
+ responsesTransport?: {
4038
+ transport: "WEBSOCKET";
4039
+ } | {
4040
+ transport: "HTTP";
4041
+ httpVersion: "2" | "1.1";
4042
+ } | undefined;
4043
+ responsesToolNamespace?: string | undefined;
4044
+ responsesConfigurationUpdates?: boolean | undefined;
4045
+ }, {
4046
+ name: string;
4047
+ id: string;
4048
+ modelId: string;
4049
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
4050
+ enabled: boolean;
4051
+ baseUrl: string;
4052
+ contextWindowTokens: number;
4053
+ maxOutputTokens: number;
4054
+ inputCapabilities: ("TEXT" | "IMAGE")[];
4055
+ outputCapabilities: ["TEXT"];
4056
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4057
+ hostedWebSearch: boolean;
4058
+ fastMode?: boolean | undefined;
4059
+ credential?: {
4060
+ value: string;
4061
+ type: "INLINE_API_KEY";
4062
+ } | {
4063
+ type: "RUNTIME_TICKET";
4064
+ credentialId: string;
4065
+ ticket: {
4066
+ nonce: string;
4067
+ expiresAt: number;
4068
+ workspaceId: string;
4069
+ nodeId: string;
4070
+ userId: number;
4071
+ credentialId: string;
4072
+ runtimeScopeId: string;
4073
+ allowedModelIds: string[];
4074
+ issuedAt: number;
4075
+ signature: string;
4076
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4077
+ sessionId?: string | undefined;
4078
+ };
4079
+ } | undefined;
4080
+ apiKey?: string | undefined;
4081
+ imageGeneration?: {
4082
+ imageModelId: string;
4083
+ httpVersion: "2" | "1.1";
4084
+ generateEndpoint: string;
4085
+ editEndpoint: string;
4086
+ credential?: {
4087
+ value: string;
4088
+ type: "INLINE_API_KEY";
4089
+ } | {
4090
+ type: "RUNTIME_TICKET";
4091
+ credentialId: string;
4092
+ ticket: {
4093
+ nonce: string;
4094
+ expiresAt: number;
4095
+ workspaceId: string;
4096
+ nodeId: string;
4097
+ userId: number;
4098
+ credentialId: string;
4099
+ runtimeScopeId: string;
4100
+ allowedModelIds: string[];
4101
+ issuedAt: number;
4102
+ signature: string;
4103
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4104
+ sessionId?: string | undefined;
4105
+ };
4106
+ } | undefined;
4107
+ provider?: string | undefined;
4108
+ config?: Record<string, string> | undefined;
4109
+ } | undefined;
4110
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4111
+ titleGeneration?: boolean | undefined;
4112
+ codeMode?: boolean | undefined;
4113
+ highDensityCompaction?: boolean | undefined;
4114
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4115
+ responsesTransport?: {
4116
+ transport: "WEBSOCKET";
4117
+ } | {
4118
+ transport: "HTTP";
4119
+ httpVersion: "2" | "1.1";
4120
+ } | undefined;
4121
+ responsesPreviousResponseId?: boolean | undefined;
4122
+ responsesToolNamespace?: string | undefined;
4123
+ responsesConfigurationUpdates?: boolean | undefined;
4124
+ }>, {
4125
+ [x: string]: any;
4126
+ }, {
4127
+ [x: string]: any;
4128
+ }>, {
4129
+ [x: string]: any;
4130
+ }, {
4131
+ [x: string]: any;
4132
+ }>;
4133
+ reasoningEffort: z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>;
4134
+ }, "strict", z.ZodTypeAny, {
4135
+ model: {
4136
+ [x: string]: any;
4137
+ };
4138
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4139
+ }, {
4140
+ model: {
4141
+ [x: string]: any;
4142
+ };
4143
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4144
+ }>;
4145
+ export type MarAgentRuntimeCompactConfiguration = z.infer<typeof marAgentRuntimeCompactConfigurationSchema>;
3541
4146
  export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3542
4147
  runtimeScopeId: z.ZodString;
3543
4148
  executionId: z.ZodString;
package/dist/index.js CHANGED
@@ -585,6 +585,7 @@ export const scheduledRunAuthorizeResponseSchema = z.union([
585
585
  personalInstructions: z.unknown().optional(),
586
586
  marAgentModel: z.unknown().optional(),
587
587
  marAgentModels: z.unknown().optional(),
588
+ marAgentCompact: z.unknown().optional(),
588
589
  marAgentRuntimeScopeId: z.unknown().optional()
589
590
  })
590
591
  .strict()
@@ -829,6 +830,26 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
829
830
  message: 'image generation requires an image-generation runtime ticket'
830
831
  });
831
832
  });
833
+ export const marAgentCompactConfigurationSchema = z
834
+ .object({
835
+ enabled: z.boolean(),
836
+ modelId: boundedIdentifierSchema.nullable(),
837
+ reasoningEffort: marAgentReasoningEffortSchema.nullable()
838
+ })
839
+ .strict()
840
+ .superRefine((value, context) => {
841
+ if (value.enabled && (value.modelId === null || value.reasoningEffort === null))
842
+ context.addIssue({
843
+ code: 'custom',
844
+ message: 'Enabled compaction requires a model and reasoning effort'
845
+ });
846
+ });
847
+ export const marAgentRuntimeCompactConfigurationSchema = z
848
+ .object({
849
+ model: marAgentRuntimeModelConfigurationSchema,
850
+ reasoningEffort: marAgentReasoningEffortSchema
851
+ })
852
+ .strict();
832
853
  export const marAgentModelTransportTestInputSchema = z
833
854
  .object({
834
855
  runtimeScopeId: boundedIdentifierSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.169",
3
+ "version": "0.9.170",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",