@myagentroam/protocol 0.13.20 → 0.13.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
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export * from './tool-result-resource.js';
3
3
  import { type ResourceOwnership } from './enterprise.js';
4
+ export * from './model-connection.js';
4
5
  export * from './chatgpt-oauth.js';
5
6
  export declare const XAI_SUBSCRIPTION_PROXY_BASE_URL = "https://cli-chat-proxy.grok.com/v1";
6
7
  export declare const XAI_SUBSCRIPTION_BASE_URL = "https://cli-chat-proxy.grok.com/v1";
@@ -53,6 +54,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
53
54
  responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
54
55
  responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
55
56
  contextGcControl: z.ZodOptional<z.ZodBoolean>;
57
+ modelSocks5Proxy: z.ZodOptional<z.ZodBoolean>;
56
58
  unifiedCompactControl: z.ZodOptional<z.ZodBoolean>;
57
59
  conversationModels: z.ZodOptional<z.ZodBoolean>;
58
60
  resourceInput: z.ZodOptional<z.ZodBoolean>;
@@ -66,6 +68,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
66
68
  responsesOptionalParameters?: boolean | undefined;
67
69
  responsesHttpContinuation?: boolean | undefined;
68
70
  contextGcControl?: boolean | undefined;
71
+ modelSocks5Proxy?: boolean | undefined;
69
72
  unifiedCompactControl?: boolean | undefined;
70
73
  conversationModels?: boolean | undefined;
71
74
  resourceInput?: boolean | undefined;
@@ -78,6 +81,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
78
81
  responsesOptionalParameters?: boolean | undefined;
79
82
  responsesHttpContinuation?: boolean | undefined;
80
83
  contextGcControl?: boolean | undefined;
84
+ modelSocks5Proxy?: boolean | undefined;
81
85
  unifiedCompactControl?: boolean | undefined;
82
86
  conversationModels?: boolean | undefined;
83
87
  resourceInput?: boolean | undefined;
@@ -1072,6 +1076,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1072
1076
  responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
1073
1077
  responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
1074
1078
  contextGcControl: z.ZodOptional<z.ZodBoolean>;
1079
+ modelSocks5Proxy: z.ZodOptional<z.ZodBoolean>;
1075
1080
  unifiedCompactControl: z.ZodOptional<z.ZodBoolean>;
1076
1081
  conversationModels: z.ZodOptional<z.ZodBoolean>;
1077
1082
  resourceInput: z.ZodOptional<z.ZodBoolean>;
@@ -1085,6 +1090,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1085
1090
  responsesOptionalParameters?: boolean | undefined;
1086
1091
  responsesHttpContinuation?: boolean | undefined;
1087
1092
  contextGcControl?: boolean | undefined;
1093
+ modelSocks5Proxy?: boolean | undefined;
1088
1094
  unifiedCompactControl?: boolean | undefined;
1089
1095
  conversationModels?: boolean | undefined;
1090
1096
  resourceInput?: boolean | undefined;
@@ -1097,6 +1103,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1097
1103
  responsesOptionalParameters?: boolean | undefined;
1098
1104
  responsesHttpContinuation?: boolean | undefined;
1099
1105
  contextGcControl?: boolean | undefined;
1106
+ modelSocks5Proxy?: boolean | undefined;
1100
1107
  unifiedCompactControl?: boolean | undefined;
1101
1108
  conversationModels?: boolean | undefined;
1102
1109
  resourceInput?: boolean | undefined;
@@ -1316,6 +1323,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1316
1323
  responsesOptionalParameters?: boolean | undefined;
1317
1324
  responsesHttpContinuation?: boolean | undefined;
1318
1325
  contextGcControl?: boolean | undefined;
1326
+ modelSocks5Proxy?: boolean | undefined;
1319
1327
  unifiedCompactControl?: boolean | undefined;
1320
1328
  conversationModels?: boolean | undefined;
1321
1329
  resourceInput?: boolean | undefined;
@@ -1461,6 +1469,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1461
1469
  responsesOptionalParameters?: boolean | undefined;
1462
1470
  responsesHttpContinuation?: boolean | undefined;
1463
1471
  contextGcControl?: boolean | undefined;
1472
+ modelSocks5Proxy?: boolean | undefined;
1464
1473
  unifiedCompactControl?: boolean | undefined;
1465
1474
  conversationModels?: boolean | undefined;
1466
1475
  resourceInput?: boolean | undefined;
@@ -1606,6 +1615,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1606
1615
  responsesOptionalParameters?: boolean | undefined;
1607
1616
  responsesHttpContinuation?: boolean | undefined;
1608
1617
  contextGcControl?: boolean | undefined;
1618
+ modelSocks5Proxy?: boolean | undefined;
1609
1619
  unifiedCompactControl?: boolean | undefined;
1610
1620
  conversationModels?: boolean | undefined;
1611
1621
  resourceInput?: boolean | undefined;
@@ -1751,6 +1761,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1751
1761
  responsesOptionalParameters?: boolean | undefined;
1752
1762
  responsesHttpContinuation?: boolean | undefined;
1753
1763
  contextGcControl?: boolean | undefined;
1764
+ modelSocks5Proxy?: boolean | undefined;
1754
1765
  unifiedCompactControl?: boolean | undefined;
1755
1766
  conversationModels?: boolean | undefined;
1756
1767
  resourceInput?: boolean | undefined;
@@ -3522,12 +3533,14 @@ export declare const imageGenerationCatalogSchema: z.ZodEffects<z.ZodArray<z.Zod
3522
3533
  export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
3523
3534
  access: z.ZodOptional<z.ZodNever>;
3524
3535
  apiKey: z.ZodOptional<z.ZodNever>;
3536
+ socks5Url: z.ZodOptional<z.ZodNever>;
3525
3537
  credential: z.ZodOptional<z.ZodNever>;
3526
3538
  imageGeneration: z.ZodOptional<z.ZodNever>;
3527
3539
  baseUrl: z.ZodString;
3528
3540
  sortOrder: z.ZodNumber;
3529
3541
  credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
3530
3542
  credentialConfigured: z.ZodOptional<z.ZodBoolean>;
3543
+ proxyConfigured: z.ZodOptional<z.ZodBoolean>;
3531
3544
  lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3532
3545
  lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
3533
3546
  lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3595,6 +3608,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
3595
3608
  gcEnabled: boolean;
3596
3609
  hostedWebSearch: boolean;
3597
3610
  responsesPreviousResponseId: boolean;
3611
+ socks5Url?: undefined;
3598
3612
  metadata?: {
3599
3613
  useResourceUrl: boolean;
3600
3614
  } | undefined;
@@ -3604,6 +3618,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
3604
3618
  imageGeneration?: undefined;
3605
3619
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
3606
3620
  credentialConfigured?: boolean | undefined;
3621
+ proxyConfigured?: boolean | undefined;
3607
3622
  lastTestedAt?: number | null | undefined;
3608
3623
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
3609
3624
  lastTestCode?: string | null | undefined;
@@ -3629,6 +3644,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
3629
3644
  outputCapabilities: ["TEXT"];
3630
3645
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3631
3646
  hostedWebSearch: boolean;
3647
+ socks5Url?: undefined;
3632
3648
  metadata?: {
3633
3649
  useResourceUrl?: boolean | undefined;
3634
3650
  } | undefined;
@@ -3638,6 +3654,7 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
3638
3654
  imageGeneration?: undefined;
3639
3655
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
3640
3656
  credentialConfigured?: boolean | undefined;
3657
+ proxyConfigured?: boolean | undefined;
3641
3658
  lastTestedAt?: number | null | undefined;
3642
3659
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
3643
3660
  lastTestCode?: string | null | undefined;
@@ -3686,6 +3703,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
3686
3703
  sortOrder: z.ZodNumber;
3687
3704
  credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
3688
3705
  credentialConfigured: z.ZodOptional<z.ZodBoolean>;
3706
+ proxyConfigured: z.ZodOptional<z.ZodBoolean>;
3689
3707
  lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3690
3708
  lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
3691
3709
  lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3766,6 +3784,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
3766
3784
  } | undefined;
3767
3785
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
3768
3786
  credentialConfigured?: boolean | undefined;
3787
+ proxyConfigured?: boolean | undefined;
3769
3788
  lastTestedAt?: number | null | undefined;
3770
3789
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
3771
3790
  lastTestCode?: string | null | undefined;
@@ -3804,6 +3823,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
3804
3823
  } | undefined;
3805
3824
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
3806
3825
  credentialConfigured?: boolean | undefined;
3826
+ proxyConfigured?: boolean | undefined;
3807
3827
  lastTestedAt?: number | null | undefined;
3808
3828
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
3809
3829
  lastTestCode?: string | null | undefined;
@@ -3857,6 +3877,7 @@ export interface MarAgentModelSummary {
3857
3877
  access: 'PUBLIC' | 'RESTRICTED';
3858
3878
  credentialType?: 'INLINE_API_KEY' | 'CREDENTIAL_REF';
3859
3879
  credentialConfigured?: boolean;
3880
+ proxyConfigured?: boolean;
3860
3881
  lastTestedAt?: number | null;
3861
3882
  lastTestStatus?: 'UNVERIFIED' | 'SUCCEEDED' | 'FAILED' | null;
3862
3883
  lastTestCode?: string | null;
@@ -4013,6 +4034,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4013
4034
  };
4014
4035
  credentialId: string;
4015
4036
  }>]>;
4037
+ socks5Url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4016
4038
  responsesToolNamespace: z.ZodOptional<z.ZodString>;
4017
4039
  responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
4018
4040
  responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
@@ -4330,6 +4352,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4330
4352
  gcEnabled: boolean;
4331
4353
  hostedWebSearch: boolean;
4332
4354
  responsesPreviousResponseId: boolean;
4355
+ socks5Url?: string | undefined;
4333
4356
  metadata?: {
4334
4357
  useResourceUrl: boolean;
4335
4358
  } | undefined;
@@ -4413,6 +4436,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4413
4436
  outputCapabilities: ["TEXT"];
4414
4437
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4415
4438
  hostedWebSearch: boolean;
4439
+ socks5Url?: string | undefined;
4416
4440
  metadata?: {
4417
4441
  useResourceUrl?: boolean | undefined;
4418
4442
  } | undefined;
@@ -5316,6 +5340,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5316
5340
  };
5317
5341
  credentialId: string;
5318
5342
  }>]>;
5343
+ socks5Url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5319
5344
  responsesToolNamespace: z.ZodOptional<z.ZodString>;
5320
5345
  responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
5321
5346
  responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
@@ -5633,6 +5658,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5633
5658
  gcEnabled: boolean;
5634
5659
  hostedWebSearch: boolean;
5635
5660
  responsesPreviousResponseId: boolean;
5661
+ socks5Url?: string | undefined;
5636
5662
  metadata?: {
5637
5663
  useResourceUrl: boolean;
5638
5664
  } | undefined;
@@ -5716,6 +5742,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5716
5742
  outputCapabilities: ["TEXT"];
5717
5743
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
5718
5744
  hostedWebSearch: boolean;
5745
+ socks5Url?: string | undefined;
5719
5746
  metadata?: {
5720
5747
  useResourceUrl?: boolean | undefined;
5721
5748
  } | undefined;
@@ -5958,6 +5985,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
5958
5985
  };
5959
5986
  credentialId: string;
5960
5987
  }>]>;
5988
+ socks5Url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5961
5989
  responsesToolNamespace: z.ZodOptional<z.ZodString>;
5962
5990
  responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
5963
5991
  responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
@@ -6275,6 +6303,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
6275
6303
  gcEnabled: boolean;
6276
6304
  hostedWebSearch: boolean;
6277
6305
  responsesPreviousResponseId: boolean;
6306
+ socks5Url?: string | undefined;
6278
6307
  metadata?: {
6279
6308
  useResourceUrl: boolean;
6280
6309
  } | undefined;
@@ -6358,6 +6387,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
6358
6387
  outputCapabilities: ["TEXT"];
6359
6388
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
6360
6389
  hostedWebSearch: boolean;
6390
+ socks5Url?: string | undefined;
6361
6391
  metadata?: {
6362
6392
  useResourceUrl?: boolean | undefined;
6363
6393
  } | undefined;
@@ -6590,6 +6620,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
6590
6620
  };
6591
6621
  credentialId: string;
6592
6622
  }>]>;
6623
+ socks5Url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6593
6624
  responsesToolNamespace: z.ZodOptional<z.ZodString>;
6594
6625
  responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
6595
6626
  responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
@@ -6907,6 +6938,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
6907
6938
  gcEnabled: boolean;
6908
6939
  hostedWebSearch: boolean;
6909
6940
  responsesPreviousResponseId: boolean;
6941
+ socks5Url?: string | undefined;
6910
6942
  metadata?: {
6911
6943
  useResourceUrl: boolean;
6912
6944
  } | undefined;
@@ -6990,6 +7022,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
6990
7022
  outputCapabilities: ["TEXT"];
6991
7023
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
6992
7024
  hostedWebSearch: boolean;
7025
+ socks5Url?: string | undefined;
6993
7026
  metadata?: {
6994
7027
  useResourceUrl?: boolean | undefined;
6995
7028
  } | undefined;
@@ -7141,7 +7174,7 @@ export declare const marAgentModelTransportTestResultSchema: z.ZodDiscriminatedU
7141
7174
  } | undefined;
7142
7175
  }>]>;
7143
7176
  export type MarAgentModelTransportTestResult = z.infer<typeof marAgentModelTransportTestResultSchema>;
7144
- export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodObject<{
7177
+ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
7145
7178
  baseUrl: z.ZodString;
7146
7179
  credential: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7147
7180
  type: z.ZodLiteral<"INLINE_API_KEY">;
@@ -7162,6 +7195,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
7162
7195
  type: "CREDENTIAL_REF";
7163
7196
  credentialId: string;
7164
7197
  }>]>;
7198
+ socks5Url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
7165
7199
  metadata: z.ZodOptional<z.ZodObject<{
7166
7200
  useResourceUrl: z.ZodDefault<z.ZodBoolean>;
7167
7201
  }, "strict", z.ZodTypeAny, {
@@ -7232,6 +7266,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
7232
7266
  gcEnabled: boolean;
7233
7267
  hostedWebSearch: boolean;
7234
7268
  responsesPreviousResponseId: boolean;
7269
+ socks5Url?: string | undefined;
7235
7270
  metadata?: {
7236
7271
  useResourceUrl: boolean;
7237
7272
  } | undefined;
@@ -7263,6 +7298,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
7263
7298
  outputCapabilities: ["TEXT"];
7264
7299
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
7265
7300
  hostedWebSearch: boolean;
7301
+ socks5Url?: string | undefined;
7266
7302
  metadata?: {
7267
7303
  useResourceUrl?: boolean | undefined;
7268
7304
  } | undefined;
@@ -7285,6 +7321,10 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
7285
7321
  [x: string]: any;
7286
7322
  }, {
7287
7323
  [x: string]: any;
7324
+ }>, {
7325
+ [x: string]: any;
7326
+ }, {
7327
+ [x: string]: any;
7288
7328
  }>;
7289
7329
  export type MarAgentStoredModelConfiguration = z.infer<typeof marAgentStoredModelConfigurationSchema>;
7290
7330
  export declare const codexCredentialOwnershipSchema: z.ZodDiscriminatedUnion<"ownerType", [z.ZodObject<{
@@ -10012,7 +10052,7 @@ export declare const sessionRuntimeCapabilitiesSchema: z.ZodObject<{
10012
10052
  level: "MANAGED";
10013
10053
  }>;
10014
10054
  export type SessionRuntimeCapabilities = z.infer<typeof sessionRuntimeCapabilitiesSchema>;
10015
- export declare const sessionActivityStateSchema: z.ZodEnum<["MANAGED_ACTIVE", "IDLE"]>;
10055
+ export declare const sessionActivityStateSchema: z.ZodEnum<["RUNNING", "IDLE"]>;
10016
10056
  export type SessionActivityState = z.infer<typeof sessionActivityStateSchema>;
10017
10057
  export declare const eventCursorSchema: z.ZodObject<{
10018
10058
  scope: z.ZodEnum<["RUN", "SESSION", "WORKSPACE_ACTIVITY"]>;
@@ -28574,12 +28614,14 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
28574
28614
  models: z.ZodArray<z.ZodEffects<z.ZodObject<{
28575
28615
  access: z.ZodOptional<z.ZodNever>;
28576
28616
  apiKey: z.ZodOptional<z.ZodNever>;
28617
+ socks5Url: z.ZodOptional<z.ZodNever>;
28577
28618
  credential: z.ZodOptional<z.ZodNever>;
28578
28619
  imageGeneration: z.ZodOptional<z.ZodNever>;
28579
28620
  baseUrl: z.ZodString;
28580
28621
  sortOrder: z.ZodNumber;
28581
28622
  credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
28582
28623
  credentialConfigured: z.ZodOptional<z.ZodBoolean>;
28624
+ proxyConfigured: z.ZodOptional<z.ZodBoolean>;
28583
28625
  lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28584
28626
  lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
28585
28627
  lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -28647,6 +28689,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
28647
28689
  gcEnabled: boolean;
28648
28690
  hostedWebSearch: boolean;
28649
28691
  responsesPreviousResponseId: boolean;
28692
+ socks5Url?: undefined;
28650
28693
  metadata?: {
28651
28694
  useResourceUrl: boolean;
28652
28695
  } | undefined;
@@ -28656,6 +28699,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
28656
28699
  imageGeneration?: undefined;
28657
28700
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
28658
28701
  credentialConfigured?: boolean | undefined;
28702
+ proxyConfigured?: boolean | undefined;
28659
28703
  lastTestedAt?: number | null | undefined;
28660
28704
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
28661
28705
  lastTestCode?: string | null | undefined;
@@ -28681,6 +28725,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
28681
28725
  outputCapabilities: ["TEXT"];
28682
28726
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
28683
28727
  hostedWebSearch: boolean;
28728
+ socks5Url?: undefined;
28684
28729
  metadata?: {
28685
28730
  useResourceUrl?: boolean | undefined;
28686
28731
  } | undefined;
@@ -28690,6 +28735,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
28690
28735
  imageGeneration?: undefined;
28691
28736
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
28692
28737
  credentialConfigured?: boolean | undefined;
28738
+ proxyConfigured?: boolean | undefined;
28693
28739
  lastTestedAt?: number | null | undefined;
28694
28740
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
28695
28741
  lastTestCode?: string | null | undefined;
@@ -32115,12 +32161,14 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
32115
32161
  models: z.ZodArray<z.ZodEffects<z.ZodObject<{
32116
32162
  access: z.ZodOptional<z.ZodNever>;
32117
32163
  apiKey: z.ZodOptional<z.ZodNever>;
32164
+ socks5Url: z.ZodOptional<z.ZodNever>;
32118
32165
  credential: z.ZodOptional<z.ZodNever>;
32119
32166
  imageGeneration: z.ZodOptional<z.ZodNever>;
32120
32167
  baseUrl: z.ZodString;
32121
32168
  sortOrder: z.ZodNumber;
32122
32169
  credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
32123
32170
  credentialConfigured: z.ZodOptional<z.ZodBoolean>;
32171
+ proxyConfigured: z.ZodOptional<z.ZodBoolean>;
32124
32172
  lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32125
32173
  lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
32126
32174
  lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -32188,6 +32236,7 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
32188
32236
  gcEnabled: boolean;
32189
32237
  hostedWebSearch: boolean;
32190
32238
  responsesPreviousResponseId: boolean;
32239
+ socks5Url?: undefined;
32191
32240
  metadata?: {
32192
32241
  useResourceUrl: boolean;
32193
32242
  } | undefined;
@@ -32197,6 +32246,7 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
32197
32246
  imageGeneration?: undefined;
32198
32247
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
32199
32248
  credentialConfigured?: boolean | undefined;
32249
+ proxyConfigured?: boolean | undefined;
32200
32250
  lastTestedAt?: number | null | undefined;
32201
32251
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
32202
32252
  lastTestCode?: string | null | undefined;
@@ -32222,6 +32272,7 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
32222
32272
  outputCapabilities: ["TEXT"];
32223
32273
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
32224
32274
  hostedWebSearch: boolean;
32275
+ socks5Url?: undefined;
32225
32276
  metadata?: {
32226
32277
  useResourceUrl?: boolean | undefined;
32227
32278
  } | undefined;
@@ -32231,6 +32282,7 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
32231
32282
  imageGeneration?: undefined;
32232
32283
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
32233
32284
  credentialConfigured?: boolean | undefined;
32285
+ proxyConfigured?: boolean | undefined;
32234
32286
  lastTestedAt?: number | null | undefined;
32235
32287
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
32236
32288
  lastTestCode?: string | null | undefined;
@@ -40310,12 +40362,14 @@ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<
40310
40362
  models: z.ZodArray<z.ZodEffects<z.ZodObject<{
40311
40363
  access: z.ZodOptional<z.ZodNever>;
40312
40364
  apiKey: z.ZodOptional<z.ZodNever>;
40365
+ socks5Url: z.ZodOptional<z.ZodNever>;
40313
40366
  credential: z.ZodOptional<z.ZodNever>;
40314
40367
  imageGeneration: z.ZodOptional<z.ZodNever>;
40315
40368
  baseUrl: z.ZodString;
40316
40369
  sortOrder: z.ZodNumber;
40317
40370
  credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
40318
40371
  credentialConfigured: z.ZodOptional<z.ZodBoolean>;
40372
+ proxyConfigured: z.ZodOptional<z.ZodBoolean>;
40319
40373
  lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40320
40374
  lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
40321
40375
  lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40383,6 +40437,7 @@ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<
40383
40437
  gcEnabled: boolean;
40384
40438
  hostedWebSearch: boolean;
40385
40439
  responsesPreviousResponseId: boolean;
40440
+ socks5Url?: undefined;
40386
40441
  metadata?: {
40387
40442
  useResourceUrl: boolean;
40388
40443
  } | undefined;
@@ -40392,6 +40447,7 @@ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<
40392
40447
  imageGeneration?: undefined;
40393
40448
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
40394
40449
  credentialConfigured?: boolean | undefined;
40450
+ proxyConfigured?: boolean | undefined;
40395
40451
  lastTestedAt?: number | null | undefined;
40396
40452
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
40397
40453
  lastTestCode?: string | null | undefined;
@@ -40417,6 +40473,7 @@ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<
40417
40473
  outputCapabilities: ["TEXT"];
40418
40474
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
40419
40475
  hostedWebSearch: boolean;
40476
+ socks5Url?: undefined;
40420
40477
  metadata?: {
40421
40478
  useResourceUrl?: boolean | undefined;
40422
40479
  } | undefined;
@@ -40426,6 +40483,7 @@ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<
40426
40483
  imageGeneration?: undefined;
40427
40484
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
40428
40485
  credentialConfigured?: boolean | undefined;
40486
+ proxyConfigured?: boolean | undefined;
40429
40487
  lastTestedAt?: number | null | undefined;
40430
40488
  lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
40431
40489
  lastTestCode?: string | null | undefined;
package/dist/index.js CHANGED
@@ -8,6 +8,8 @@ import { workspaceDirectTransferCapabilitySchema } from './direct-transfer.js';
8
8
  import { terminalDirectCapabilitySchema } from './terminal-direct.js';
9
9
  import { remoteDesktopCapabilitySchema } from './remote-desktop.js';
10
10
  import { chatgptLoginCapabilitySchema } from './chatgpt-oauth.js';
11
+ import { modelSocks5UrlSchema } from './model-connection.js';
12
+ export * from './model-connection.js';
11
13
  export * from './chatgpt-oauth.js';
12
14
  export const XAI_SUBSCRIPTION_PROXY_BASE_URL = 'https://cli-chat-proxy.grok.com/v1';
13
15
  export const XAI_SUBSCRIPTION_BASE_URL = XAI_SUBSCRIPTION_PROXY_BASE_URL;
@@ -61,6 +63,7 @@ export const marAgentRuntimeCredentialCapabilitySchema = z
61
63
  responsesOptionalParameters: z.boolean().optional(),
62
64
  responsesHttpContinuation: z.boolean().optional(),
63
65
  contextGcControl: z.boolean().optional(),
66
+ modelSocks5Proxy: z.boolean().optional(),
64
67
  unifiedCompactControl: z.boolean().optional(),
65
68
  conversationModels: z.boolean().optional(),
66
69
  resourceInput: z.boolean().optional(),
@@ -841,6 +844,7 @@ const marAgentModelSummaryShape = {
841
844
  sortOrder: z.number().int(),
842
845
  credentialType: z.enum(['INLINE_API_KEY', 'CREDENTIAL_REF']).optional(),
843
846
  credentialConfigured: z.boolean().optional(),
847
+ proxyConfigured: z.boolean().optional(),
844
848
  lastTestedAt: z.number().int().nonnegative().nullable().optional(),
845
849
  lastTestStatus: z.enum(['UNVERIFIED', 'SUCCEEDED', 'FAILED']).nullable().optional(),
846
850
  lastTestCode: z.string().max(80).nullable().optional()
@@ -850,6 +854,7 @@ export const marAgentNodeModelSummarySchema = refineMarAgentModel(z
850
854
  ...marAgentModelSummaryShape,
851
855
  access: z.never().optional(),
852
856
  apiKey: z.never().optional(),
857
+ socks5Url: z.never().optional(),
853
858
  credential: z.never().optional(),
854
859
  imageGeneration: z.never().optional()
855
860
  })
@@ -867,6 +872,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
867
872
  baseUrl: z.string().url().max(2048),
868
873
  useResourceUrl: z.boolean().default(false),
869
874
  credential: marAgentRuntimeCredentialSchema,
875
+ socks5Url: modelSocks5UrlSchema.optional(),
870
876
  responsesToolNamespace: z
871
877
  .string()
872
878
  .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u)
@@ -885,6 +891,12 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
885
891
  imageGeneration: marAgentImageGenerationSchema.optional()
886
892
  })
887
893
  .strip()).superRefine((configuration, context) => {
894
+ if (configuration.socks5Url !== undefined && configuration.credential.type !== 'INLINE_API_KEY')
895
+ context.addIssue({
896
+ code: 'custom',
897
+ path: ['socks5Url'],
898
+ message: 'Model proxies require an inline API key'
899
+ });
888
900
  if (configuration.responsesToolNamespace !== undefined &&
889
901
  configuration.protocol !== 'OPENAI_RESPONSES')
890
902
  context.addIssue({
@@ -1115,9 +1127,17 @@ export const marAgentStoredModelConfigurationSchema = refineMarAgentModel(z
1115
1127
  .object({
1116
1128
  ...marAgentModelShape,
1117
1129
  baseUrl: z.string().url().max(2048),
1118
- credential: marAgentModelCredentialSchema
1130
+ credential: marAgentModelCredentialSchema,
1131
+ socks5Url: modelSocks5UrlSchema.optional()
1119
1132
  })
1120
- .strict());
1133
+ .strict()).superRefine((configuration, context) => {
1134
+ if (configuration.socks5Url !== undefined && configuration.credential.type !== 'INLINE_API_KEY')
1135
+ context.addIssue({
1136
+ code: 'custom',
1137
+ path: ['socks5Url'],
1138
+ message: 'Model proxies require an inline API key'
1139
+ });
1140
+ });
1121
1141
  const codexCredentialProxySummarySchema = z.discriminatedUnion('configured', [
1122
1142
  z.object({ configured: z.literal(false) }).strict(),
1123
1143
  z
@@ -1772,7 +1792,7 @@ export const sessionRuntimeCapabilitiesSchema = z.object({
1772
1792
  capabilities: z.array(sessionRuntimeCapabilitySchema),
1773
1793
  reasonCode: z.string().min(1).max(80).nullable()
1774
1794
  });
1775
- export const sessionActivityStateSchema = z.enum(['MANAGED_ACTIVE', 'IDLE']);
1795
+ export const sessionActivityStateSchema = z.enum(['RUNNING', 'IDLE']);
1776
1796
  export const eventCursorSchema = z.object({
1777
1797
  scope: z.enum(['RUN', 'SESSION', 'WORKSPACE_ACTIVITY']),
1778
1798
  streamId: z.string().min(1).max(128),
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ /** A model proxy is sensitive connection data, never part of a model summary. */
3
+ export declare const modelSocks5UrlSchema: z.ZodEffects<z.ZodString, string, string>;
4
+ export declare const marAgentModelConnectionDetailsSchema: z.ZodObject<{
5
+ socks5Url: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ socks5Url: string | null;
8
+ }, {
9
+ socks5Url: string | null;
10
+ }>;
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ /** A model proxy is sensitive connection data, never part of a model summary. */
3
+ export const modelSocks5UrlSchema = z
4
+ .string()
5
+ .trim()
6
+ .max(2048)
7
+ .refine((value) => {
8
+ try {
9
+ const url = new URL(value);
10
+ const port = Number(url.port || 1080);
11
+ const username = decodeURIComponent(url.username);
12
+ const password = decodeURIComponent(url.password);
13
+ return (url.protocol === 'socks5:' &&
14
+ url.hostname.length > 0 &&
15
+ Number.isInteger(port) &&
16
+ port > 0 &&
17
+ port <= 65_535 &&
18
+ (url.pathname === '' || url.pathname === '/') &&
19
+ !url.search &&
20
+ !url.hash &&
21
+ (!password || Boolean(username)) &&
22
+ new TextEncoder().encode(username).length <= 255 &&
23
+ new TextEncoder().encode(password).length <= 255);
24
+ }
25
+ catch {
26
+ return false;
27
+ }
28
+ }, 'A valid SOCKS5 proxy URL is required');
29
+ export const marAgentModelConnectionDetailsSchema = z
30
+ .object({ socks5Url: modelSocks5UrlSchema.nullable() })
31
+ .strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.13.20",
3
+ "version": "0.13.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/myagentroam/mar.git",