@myagentroam/protocol 0.11.20 → 0.11.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/composer-tags.d.ts +3 -0
- package/dist/composer-tags.js +7 -2
- package/dist/index.d.ts +183 -1
- package/dist/index.js +17 -0
- package/package.json +1 -1
package/dist/composer-tags.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export declare const composerTagSchemas: {
|
|
|
123
123
|
mime: string;
|
|
124
124
|
workspacePath?: string | undefined;
|
|
125
125
|
}>, "many">;
|
|
126
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
126
127
|
}, "strict", z.ZodTypeAny, {
|
|
127
128
|
files: {
|
|
128
129
|
path: string;
|
|
@@ -130,6 +131,7 @@ export declare const composerTagSchemas: {
|
|
|
130
131
|
mime: string;
|
|
131
132
|
workspacePath?: string | undefined;
|
|
132
133
|
}[];
|
|
134
|
+
instruction?: string | undefined;
|
|
133
135
|
}, {
|
|
134
136
|
files: {
|
|
135
137
|
path: string;
|
|
@@ -137,6 +139,7 @@ export declare const composerTagSchemas: {
|
|
|
137
139
|
mime: string;
|
|
138
140
|
workspacePath?: string | undefined;
|
|
139
141
|
}[];
|
|
142
|
+
instruction?: string | undefined;
|
|
140
143
|
}>;
|
|
141
144
|
readonly mar_schedule: z.ZodObject<{
|
|
142
145
|
objective: z.ZodString;
|
package/dist/composer-tags.js
CHANGED
|
@@ -55,7 +55,12 @@ export const composerTagSchemas = {
|
|
|
55
55
|
})
|
|
56
56
|
.strict(),
|
|
57
57
|
mar_restart: z.object({}).strict(),
|
|
58
|
-
mar_attachments: z
|
|
58
|
+
mar_attachments: z
|
|
59
|
+
.object({
|
|
60
|
+
files: z.array(attachment).min(1).max(5),
|
|
61
|
+
instruction: z.string().min(1).max(512).optional()
|
|
62
|
+
})
|
|
63
|
+
.strict(),
|
|
59
64
|
mar_schedule: z.object({ objective: z.string().min(1).max(100_000) }).strict(),
|
|
60
65
|
mar_skills: z
|
|
61
66
|
.object({
|
|
@@ -152,7 +157,7 @@ function parseComposerPayload(raw) {
|
|
|
152
157
|
? ['objective', 'instruction']
|
|
153
158
|
: kind === 'mar_schedule'
|
|
154
159
|
? ['objective']
|
|
155
|
-
: kind === 'mar_skills' || kind === 'mar_session_origin'
|
|
160
|
+
: kind === 'mar_skills' || kind === 'mar_session_origin' || kind === 'mar_attachments'
|
|
156
161
|
? ['instruction']
|
|
157
162
|
: [];
|
|
158
163
|
for (const field of root.fields) {
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
|
|
|
52
52
|
responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
|
|
53
53
|
responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
conversationModels: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
resourceInput: z.ZodOptional<z.ZodBoolean>;
|
|
55
56
|
httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
|
|
56
57
|
}, "strict", z.ZodTypeAny, {
|
|
57
58
|
apiVersion: 1;
|
|
@@ -63,6 +64,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
|
|
|
63
64
|
responsesOptionalParameters?: boolean | undefined;
|
|
64
65
|
responsesHttpContinuation?: boolean | undefined;
|
|
65
66
|
conversationModels?: boolean | undefined;
|
|
67
|
+
resourceInput?: boolean | undefined;
|
|
66
68
|
}, {
|
|
67
69
|
apiVersion: 1;
|
|
68
70
|
websocket: boolean;
|
|
@@ -73,6 +75,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
|
|
|
73
75
|
responsesOptionalParameters?: boolean | undefined;
|
|
74
76
|
responsesHttpContinuation?: boolean | undefined;
|
|
75
77
|
conversationModels?: boolean | undefined;
|
|
78
|
+
resourceInput?: boolean | undefined;
|
|
76
79
|
}>;
|
|
77
80
|
export type MarAgentRuntimeCredentialCapability = z.infer<typeof marAgentRuntimeCredentialCapabilitySchema>;
|
|
78
81
|
export declare const conversationHostingCapabilitySchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -1013,6 +1016,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1013
1016
|
responsesOptionalParameters: z.ZodOptional<z.ZodBoolean>;
|
|
1014
1017
|
responsesHttpContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
1015
1018
|
conversationModels: z.ZodOptional<z.ZodBoolean>;
|
|
1019
|
+
resourceInput: z.ZodOptional<z.ZodBoolean>;
|
|
1016
1020
|
httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
|
|
1017
1021
|
}, "strict", z.ZodTypeAny, {
|
|
1018
1022
|
apiVersion: 1;
|
|
@@ -1024,6 +1028,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1024
1028
|
responsesOptionalParameters?: boolean | undefined;
|
|
1025
1029
|
responsesHttpContinuation?: boolean | undefined;
|
|
1026
1030
|
conversationModels?: boolean | undefined;
|
|
1031
|
+
resourceInput?: boolean | undefined;
|
|
1027
1032
|
}, {
|
|
1028
1033
|
apiVersion: 1;
|
|
1029
1034
|
websocket: boolean;
|
|
@@ -1034,6 +1039,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1034
1039
|
responsesOptionalParameters?: boolean | undefined;
|
|
1035
1040
|
responsesHttpContinuation?: boolean | undefined;
|
|
1036
1041
|
conversationModels?: boolean | undefined;
|
|
1042
|
+
resourceInput?: boolean | undefined;
|
|
1037
1043
|
}>>;
|
|
1038
1044
|
promptCompletion: z.ZodOptional<z.ZodObject<{
|
|
1039
1045
|
apiVersion: z.ZodLiteral<1>;
|
|
@@ -1193,6 +1199,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1193
1199
|
responsesOptionalParameters?: boolean | undefined;
|
|
1194
1200
|
responsesHttpContinuation?: boolean | undefined;
|
|
1195
1201
|
conversationModels?: boolean | undefined;
|
|
1202
|
+
resourceInput?: boolean | undefined;
|
|
1196
1203
|
} | undefined;
|
|
1197
1204
|
promptCompletion?: {
|
|
1198
1205
|
apiVersion: 1;
|
|
@@ -1312,6 +1319,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1312
1319
|
responsesOptionalParameters?: boolean | undefined;
|
|
1313
1320
|
responsesHttpContinuation?: boolean | undefined;
|
|
1314
1321
|
conversationModels?: boolean | undefined;
|
|
1322
|
+
resourceInput?: boolean | undefined;
|
|
1315
1323
|
} | undefined;
|
|
1316
1324
|
promptCompletion?: {
|
|
1317
1325
|
apiVersion: 1;
|
|
@@ -1431,6 +1439,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1431
1439
|
responsesOptionalParameters?: boolean | undefined;
|
|
1432
1440
|
responsesHttpContinuation?: boolean | undefined;
|
|
1433
1441
|
conversationModels?: boolean | undefined;
|
|
1442
|
+
resourceInput?: boolean | undefined;
|
|
1434
1443
|
} | undefined;
|
|
1435
1444
|
promptCompletion?: {
|
|
1436
1445
|
apiVersion: 1;
|
|
@@ -1550,6 +1559,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1550
1559
|
responsesOptionalParameters?: boolean | undefined;
|
|
1551
1560
|
responsesHttpContinuation?: boolean | undefined;
|
|
1552
1561
|
conversationModels?: boolean | undefined;
|
|
1562
|
+
resourceInput?: boolean | undefined;
|
|
1553
1563
|
} | undefined;
|
|
1554
1564
|
promptCompletion?: {
|
|
1555
1565
|
apiVersion: 1;
|
|
@@ -2932,6 +2942,13 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2932
2942
|
lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2933
2943
|
lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
|
|
2934
2944
|
lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2945
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2946
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
2947
|
+
}, "strict", z.ZodTypeAny, {
|
|
2948
|
+
useResourceUrl: boolean;
|
|
2949
|
+
}, {
|
|
2950
|
+
useResourceUrl?: boolean | undefined;
|
|
2951
|
+
}>>;
|
|
2935
2952
|
id: z.ZodString;
|
|
2936
2953
|
name: z.ZodString;
|
|
2937
2954
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -2984,6 +3001,9 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2984
3001
|
codeMode: boolean;
|
|
2985
3002
|
hostedWebSearch: boolean;
|
|
2986
3003
|
responsesPreviousResponseId: boolean;
|
|
3004
|
+
metadata?: {
|
|
3005
|
+
useResourceUrl: boolean;
|
|
3006
|
+
} | undefined;
|
|
2987
3007
|
credential?: undefined;
|
|
2988
3008
|
fastMode?: boolean | undefined;
|
|
2989
3009
|
apiKey?: undefined;
|
|
@@ -3017,6 +3037,9 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3017
3037
|
outputCapabilities: ["TEXT"];
|
|
3018
3038
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
3019
3039
|
hostedWebSearch: boolean;
|
|
3040
|
+
metadata?: {
|
|
3041
|
+
useResourceUrl?: boolean | undefined;
|
|
3042
|
+
} | undefined;
|
|
3020
3043
|
credential?: undefined;
|
|
3021
3044
|
fastMode?: boolean | undefined;
|
|
3022
3045
|
apiKey?: undefined;
|
|
@@ -3074,6 +3097,13 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3074
3097
|
lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3075
3098
|
lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
|
|
3076
3099
|
lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3100
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3101
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
3102
|
+
}, "strict", z.ZodTypeAny, {
|
|
3103
|
+
useResourceUrl: boolean;
|
|
3104
|
+
}, {
|
|
3105
|
+
useResourceUrl?: boolean | undefined;
|
|
3106
|
+
}>>;
|
|
3077
3107
|
id: z.ZodString;
|
|
3078
3108
|
name: z.ZodString;
|
|
3079
3109
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -3127,6 +3157,9 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3127
3157
|
codeMode: boolean;
|
|
3128
3158
|
hostedWebSearch: boolean;
|
|
3129
3159
|
responsesPreviousResponseId: boolean;
|
|
3160
|
+
metadata?: {
|
|
3161
|
+
useResourceUrl: boolean;
|
|
3162
|
+
} | undefined;
|
|
3130
3163
|
fastMode?: boolean | undefined;
|
|
3131
3164
|
ownership?: {
|
|
3132
3165
|
ownerType: "PERSONAL";
|
|
@@ -3164,6 +3197,9 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3164
3197
|
outputCapabilities: ["TEXT"];
|
|
3165
3198
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
3166
3199
|
hostedWebSearch: boolean;
|
|
3200
|
+
metadata?: {
|
|
3201
|
+
useResourceUrl?: boolean | undefined;
|
|
3202
|
+
} | undefined;
|
|
3167
3203
|
fastMode?: boolean | undefined;
|
|
3168
3204
|
ownership?: {
|
|
3169
3205
|
ownerType: "PERSONAL";
|
|
@@ -3196,6 +3232,9 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3196
3232
|
[x: string]: any;
|
|
3197
3233
|
}>;
|
|
3198
3234
|
export interface MarAgentModelSummary {
|
|
3235
|
+
metadata?: {
|
|
3236
|
+
useResourceUrl: boolean;
|
|
3237
|
+
};
|
|
3199
3238
|
id: string;
|
|
3200
3239
|
name: string;
|
|
3201
3240
|
protocol: 'OPENAI_RESPONSES' | 'ANTHROPIC_MESSAGES';
|
|
@@ -3230,6 +3269,7 @@ export type MarAgentNodeModelSummary = Omit<MarAgentModelSummary, 'access'>;
|
|
|
3230
3269
|
export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3231
3270
|
baseUrl: z.ZodString;
|
|
3232
3271
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
3272
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
3233
3273
|
credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3234
3274
|
type: z.ZodLiteral<"INLINE_API_KEY">;
|
|
3235
3275
|
value: z.ZodString;
|
|
@@ -3609,6 +3649,13 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
|
|
|
3609
3649
|
} | undefined;
|
|
3610
3650
|
config?: Record<string, string> | undefined;
|
|
3611
3651
|
}>>;
|
|
3652
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3653
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
3654
|
+
}, "strict", z.ZodTypeAny, {
|
|
3655
|
+
useResourceUrl: boolean;
|
|
3656
|
+
}, {
|
|
3657
|
+
useResourceUrl?: boolean | undefined;
|
|
3658
|
+
}>>;
|
|
3612
3659
|
id: z.ZodString;
|
|
3613
3660
|
name: z.ZodString;
|
|
3614
3661
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -3649,6 +3696,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
|
|
|
3649
3696
|
modelId: string;
|
|
3650
3697
|
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
3651
3698
|
enabled: boolean;
|
|
3699
|
+
useResourceUrl: boolean;
|
|
3652
3700
|
baseUrl: string;
|
|
3653
3701
|
contextWindowTokens: number;
|
|
3654
3702
|
maxOutputTokens: number;
|
|
@@ -3660,6 +3708,9 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
|
|
|
3660
3708
|
codeMode: boolean;
|
|
3661
3709
|
hostedWebSearch: boolean;
|
|
3662
3710
|
responsesPreviousResponseId: boolean;
|
|
3711
|
+
metadata?: {
|
|
3712
|
+
useResourceUrl: boolean;
|
|
3713
|
+
} | undefined;
|
|
3663
3714
|
credential?: {
|
|
3664
3715
|
value: string;
|
|
3665
3716
|
type: "INLINE_API_KEY";
|
|
@@ -3742,6 +3793,9 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
|
|
|
3742
3793
|
outputCapabilities: ["TEXT"];
|
|
3743
3794
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
3744
3795
|
hostedWebSearch: boolean;
|
|
3796
|
+
metadata?: {
|
|
3797
|
+
useResourceUrl?: boolean | undefined;
|
|
3798
|
+
} | undefined;
|
|
3745
3799
|
credential?: {
|
|
3746
3800
|
value: string;
|
|
3747
3801
|
type: "INLINE_API_KEY";
|
|
@@ -3772,6 +3826,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
|
|
|
3772
3826
|
nativeTools?: boolean | undefined;
|
|
3773
3827
|
} | undefined;
|
|
3774
3828
|
apiKey?: string | undefined;
|
|
3829
|
+
useResourceUrl?: boolean | undefined;
|
|
3775
3830
|
imageGeneration?: {
|
|
3776
3831
|
imageModelId: string;
|
|
3777
3832
|
httpVersion: "2" | "1.1";
|
|
@@ -4514,6 +4569,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
4514
4569
|
model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
4515
4570
|
baseUrl: z.ZodString;
|
|
4516
4571
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
4572
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
4517
4573
|
credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
4518
4574
|
type: z.ZodLiteral<"INLINE_API_KEY">;
|
|
4519
4575
|
value: z.ZodString;
|
|
@@ -4893,6 +4949,13 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
4893
4949
|
} | undefined;
|
|
4894
4950
|
config?: Record<string, string> | undefined;
|
|
4895
4951
|
}>>;
|
|
4952
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
4953
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
4954
|
+
}, "strict", z.ZodTypeAny, {
|
|
4955
|
+
useResourceUrl: boolean;
|
|
4956
|
+
}, {
|
|
4957
|
+
useResourceUrl?: boolean | undefined;
|
|
4958
|
+
}>>;
|
|
4896
4959
|
id: z.ZodString;
|
|
4897
4960
|
name: z.ZodString;
|
|
4898
4961
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -4933,6 +4996,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
4933
4996
|
modelId: string;
|
|
4934
4997
|
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
4935
4998
|
enabled: boolean;
|
|
4999
|
+
useResourceUrl: boolean;
|
|
4936
5000
|
baseUrl: string;
|
|
4937
5001
|
contextWindowTokens: number;
|
|
4938
5002
|
maxOutputTokens: number;
|
|
@@ -4944,6 +5008,9 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
4944
5008
|
codeMode: boolean;
|
|
4945
5009
|
hostedWebSearch: boolean;
|
|
4946
5010
|
responsesPreviousResponseId: boolean;
|
|
5011
|
+
metadata?: {
|
|
5012
|
+
useResourceUrl: boolean;
|
|
5013
|
+
} | undefined;
|
|
4947
5014
|
credential?: {
|
|
4948
5015
|
value: string;
|
|
4949
5016
|
type: "INLINE_API_KEY";
|
|
@@ -5026,6 +5093,9 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
5026
5093
|
outputCapabilities: ["TEXT"];
|
|
5027
5094
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
5028
5095
|
hostedWebSearch: boolean;
|
|
5096
|
+
metadata?: {
|
|
5097
|
+
useResourceUrl?: boolean | undefined;
|
|
5098
|
+
} | undefined;
|
|
5029
5099
|
credential?: {
|
|
5030
5100
|
value: string;
|
|
5031
5101
|
type: "INLINE_API_KEY";
|
|
@@ -5056,6 +5126,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
|
|
|
5056
5126
|
nativeTools?: boolean | undefined;
|
|
5057
5127
|
} | undefined;
|
|
5058
5128
|
apiKey?: string | undefined;
|
|
5129
|
+
useResourceUrl?: boolean | undefined;
|
|
5059
5130
|
imageGeneration?: {
|
|
5060
5131
|
imageModelId: string;
|
|
5061
5132
|
httpVersion: "2" | "1.1";
|
|
@@ -5137,6 +5208,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5137
5208
|
model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5138
5209
|
baseUrl: z.ZodString;
|
|
5139
5210
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
5211
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
5140
5212
|
credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5141
5213
|
type: z.ZodLiteral<"INLINE_API_KEY">;
|
|
5142
5214
|
value: z.ZodString;
|
|
@@ -5516,6 +5588,13 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5516
5588
|
} | undefined;
|
|
5517
5589
|
config?: Record<string, string> | undefined;
|
|
5518
5590
|
}>>;
|
|
5591
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
5592
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
5593
|
+
}, "strict", z.ZodTypeAny, {
|
|
5594
|
+
useResourceUrl: boolean;
|
|
5595
|
+
}, {
|
|
5596
|
+
useResourceUrl?: boolean | undefined;
|
|
5597
|
+
}>>;
|
|
5519
5598
|
id: z.ZodString;
|
|
5520
5599
|
name: z.ZodString;
|
|
5521
5600
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -5556,6 +5635,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5556
5635
|
modelId: string;
|
|
5557
5636
|
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
5558
5637
|
enabled: boolean;
|
|
5638
|
+
useResourceUrl: boolean;
|
|
5559
5639
|
baseUrl: string;
|
|
5560
5640
|
contextWindowTokens: number;
|
|
5561
5641
|
maxOutputTokens: number;
|
|
@@ -5567,6 +5647,9 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5567
5647
|
codeMode: boolean;
|
|
5568
5648
|
hostedWebSearch: boolean;
|
|
5569
5649
|
responsesPreviousResponseId: boolean;
|
|
5650
|
+
metadata?: {
|
|
5651
|
+
useResourceUrl: boolean;
|
|
5652
|
+
} | undefined;
|
|
5570
5653
|
credential?: {
|
|
5571
5654
|
value: string;
|
|
5572
5655
|
type: "INLINE_API_KEY";
|
|
@@ -5649,6 +5732,9 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5649
5732
|
outputCapabilities: ["TEXT"];
|
|
5650
5733
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
5651
5734
|
hostedWebSearch: boolean;
|
|
5735
|
+
metadata?: {
|
|
5736
|
+
useResourceUrl?: boolean | undefined;
|
|
5737
|
+
} | undefined;
|
|
5652
5738
|
credential?: {
|
|
5653
5739
|
value: string;
|
|
5654
5740
|
type: "INLINE_API_KEY";
|
|
@@ -5679,6 +5765,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
|
|
|
5679
5765
|
nativeTools?: boolean | undefined;
|
|
5680
5766
|
} | undefined;
|
|
5681
5767
|
apiKey?: string | undefined;
|
|
5768
|
+
useResourceUrl?: boolean | undefined;
|
|
5682
5769
|
imageGeneration?: {
|
|
5683
5770
|
imageModelId: string;
|
|
5684
5771
|
httpVersion: "2" | "1.1";
|
|
@@ -5750,6 +5837,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
5750
5837
|
model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5751
5838
|
baseUrl: z.ZodString;
|
|
5752
5839
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
5840
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
5753
5841
|
credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5754
5842
|
type: z.ZodLiteral<"INLINE_API_KEY">;
|
|
5755
5843
|
value: z.ZodString;
|
|
@@ -6129,6 +6217,13 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
6129
6217
|
} | undefined;
|
|
6130
6218
|
config?: Record<string, string> | undefined;
|
|
6131
6219
|
}>>;
|
|
6220
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
6221
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
6222
|
+
}, "strict", z.ZodTypeAny, {
|
|
6223
|
+
useResourceUrl: boolean;
|
|
6224
|
+
}, {
|
|
6225
|
+
useResourceUrl?: boolean | undefined;
|
|
6226
|
+
}>>;
|
|
6132
6227
|
id: z.ZodString;
|
|
6133
6228
|
name: z.ZodString;
|
|
6134
6229
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -6169,6 +6264,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
6169
6264
|
modelId: string;
|
|
6170
6265
|
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
6171
6266
|
enabled: boolean;
|
|
6267
|
+
useResourceUrl: boolean;
|
|
6172
6268
|
baseUrl: string;
|
|
6173
6269
|
contextWindowTokens: number;
|
|
6174
6270
|
maxOutputTokens: number;
|
|
@@ -6180,6 +6276,9 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
6180
6276
|
codeMode: boolean;
|
|
6181
6277
|
hostedWebSearch: boolean;
|
|
6182
6278
|
responsesPreviousResponseId: boolean;
|
|
6279
|
+
metadata?: {
|
|
6280
|
+
useResourceUrl: boolean;
|
|
6281
|
+
} | undefined;
|
|
6183
6282
|
credential?: {
|
|
6184
6283
|
value: string;
|
|
6185
6284
|
type: "INLINE_API_KEY";
|
|
@@ -6262,6 +6361,9 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
6262
6361
|
outputCapabilities: ["TEXT"];
|
|
6263
6362
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
6264
6363
|
hostedWebSearch: boolean;
|
|
6364
|
+
metadata?: {
|
|
6365
|
+
useResourceUrl?: boolean | undefined;
|
|
6366
|
+
} | undefined;
|
|
6265
6367
|
credential?: {
|
|
6266
6368
|
value: string;
|
|
6267
6369
|
type: "INLINE_API_KEY";
|
|
@@ -6292,6 +6394,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
|
|
|
6292
6394
|
nativeTools?: boolean | undefined;
|
|
6293
6395
|
} | undefined;
|
|
6294
6396
|
apiKey?: string | undefined;
|
|
6397
|
+
useResourceUrl?: boolean | undefined;
|
|
6295
6398
|
imageGeneration?: {
|
|
6296
6399
|
imageModelId: string;
|
|
6297
6400
|
httpVersion: "2" | "1.1";
|
|
@@ -6450,6 +6553,13 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
|
|
|
6450
6553
|
type: "CREDENTIAL_REF";
|
|
6451
6554
|
credentialId: string;
|
|
6452
6555
|
}>]>;
|
|
6556
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
6557
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
6558
|
+
}, "strict", z.ZodTypeAny, {
|
|
6559
|
+
useResourceUrl: boolean;
|
|
6560
|
+
}, {
|
|
6561
|
+
useResourceUrl?: boolean | undefined;
|
|
6562
|
+
}>>;
|
|
6453
6563
|
id: z.ZodString;
|
|
6454
6564
|
name: z.ZodString;
|
|
6455
6565
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -6508,6 +6618,9 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
|
|
|
6508
6618
|
codeMode: boolean;
|
|
6509
6619
|
hostedWebSearch: boolean;
|
|
6510
6620
|
responsesPreviousResponseId: boolean;
|
|
6621
|
+
metadata?: {
|
|
6622
|
+
useResourceUrl: boolean;
|
|
6623
|
+
} | undefined;
|
|
6511
6624
|
fastMode?: boolean | undefined;
|
|
6512
6625
|
defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
6513
6626
|
serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
@@ -6537,6 +6650,9 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
|
|
|
6537
6650
|
outputCapabilities: ["TEXT"];
|
|
6538
6651
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
6539
6652
|
hostedWebSearch: boolean;
|
|
6653
|
+
metadata?: {
|
|
6654
|
+
useResourceUrl?: boolean | undefined;
|
|
6655
|
+
} | undefined;
|
|
6540
6656
|
fastMode?: boolean | undefined;
|
|
6541
6657
|
defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
6542
6658
|
conversationModel?: boolean | undefined;
|
|
@@ -22893,6 +23009,13 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
22893
23009
|
lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22894
23010
|
lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
|
|
22895
23011
|
lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23012
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
23013
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
23014
|
+
}, "strict", z.ZodTypeAny, {
|
|
23015
|
+
useResourceUrl: boolean;
|
|
23016
|
+
}, {
|
|
23017
|
+
useResourceUrl?: boolean | undefined;
|
|
23018
|
+
}>>;
|
|
22896
23019
|
id: z.ZodString;
|
|
22897
23020
|
name: z.ZodString;
|
|
22898
23021
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -22945,6 +23068,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
22945
23068
|
codeMode: boolean;
|
|
22946
23069
|
hostedWebSearch: boolean;
|
|
22947
23070
|
responsesPreviousResponseId: boolean;
|
|
23071
|
+
metadata?: {
|
|
23072
|
+
useResourceUrl: boolean;
|
|
23073
|
+
} | undefined;
|
|
22948
23074
|
credential?: undefined;
|
|
22949
23075
|
fastMode?: boolean | undefined;
|
|
22950
23076
|
apiKey?: undefined;
|
|
@@ -22978,6 +23104,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
22978
23104
|
outputCapabilities: ["TEXT"];
|
|
22979
23105
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
22980
23106
|
hostedWebSearch: boolean;
|
|
23107
|
+
metadata?: {
|
|
23108
|
+
useResourceUrl?: boolean | undefined;
|
|
23109
|
+
} | undefined;
|
|
22981
23110
|
credential?: undefined;
|
|
22982
23111
|
fastMode?: boolean | undefined;
|
|
22983
23112
|
apiKey?: undefined;
|
|
@@ -25902,6 +26031,13 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
|
|
|
25902
26031
|
lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25903
26032
|
lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
|
|
25904
26033
|
lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26034
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
26035
|
+
useResourceUrl: z.ZodDefault<z.ZodBoolean>;
|
|
26036
|
+
}, "strict", z.ZodTypeAny, {
|
|
26037
|
+
useResourceUrl: boolean;
|
|
26038
|
+
}, {
|
|
26039
|
+
useResourceUrl?: boolean | undefined;
|
|
26040
|
+
}>>;
|
|
25905
26041
|
id: z.ZodString;
|
|
25906
26042
|
name: z.ZodString;
|
|
25907
26043
|
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
@@ -25954,6 +26090,9 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
|
|
|
25954
26090
|
codeMode: boolean;
|
|
25955
26091
|
hostedWebSearch: boolean;
|
|
25956
26092
|
responsesPreviousResponseId: boolean;
|
|
26093
|
+
metadata?: {
|
|
26094
|
+
useResourceUrl: boolean;
|
|
26095
|
+
} | undefined;
|
|
25957
26096
|
credential?: undefined;
|
|
25958
26097
|
fastMode?: boolean | undefined;
|
|
25959
26098
|
apiKey?: undefined;
|
|
@@ -25987,6 +26126,9 @@ export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObj
|
|
|
25987
26126
|
outputCapabilities: ["TEXT"];
|
|
25988
26127
|
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
25989
26128
|
hostedWebSearch: boolean;
|
|
26129
|
+
metadata?: {
|
|
26130
|
+
useResourceUrl?: boolean | undefined;
|
|
26131
|
+
} | undefined;
|
|
25990
26132
|
credential?: undefined;
|
|
25991
26133
|
fastMode?: boolean | undefined;
|
|
25992
26134
|
apiKey?: undefined;
|
|
@@ -32070,6 +32212,46 @@ export declare const runImageReadInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
32070
32212
|
imageRef: string;
|
|
32071
32213
|
}>]>;
|
|
32072
32214
|
export type RunImageReadInput = z.infer<typeof runImageReadInputSchema>;
|
|
32215
|
+
export declare const modelResourceReadInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
32216
|
+
sessionId: z.ZodString;
|
|
32217
|
+
resourceId: z.ZodString;
|
|
32218
|
+
expiresAt: z.ZodNumber;
|
|
32219
|
+
signature: z.ZodString;
|
|
32220
|
+
} & {
|
|
32221
|
+
workspaceId: z.ZodString;
|
|
32222
|
+
}, "strict", z.ZodTypeAny, {
|
|
32223
|
+
expiresAt: number;
|
|
32224
|
+
sessionId: string;
|
|
32225
|
+
workspaceId: string;
|
|
32226
|
+
signature: string;
|
|
32227
|
+
resourceId: string;
|
|
32228
|
+
}, {
|
|
32229
|
+
expiresAt: number;
|
|
32230
|
+
sessionId: string;
|
|
32231
|
+
workspaceId: string;
|
|
32232
|
+
signature: string;
|
|
32233
|
+
resourceId: string;
|
|
32234
|
+
}>, z.ZodObject<{
|
|
32235
|
+
sessionId: z.ZodString;
|
|
32236
|
+
resourceId: z.ZodString;
|
|
32237
|
+
expiresAt: z.ZodNumber;
|
|
32238
|
+
signature: z.ZodString;
|
|
32239
|
+
} & {
|
|
32240
|
+
conversationId: z.ZodString;
|
|
32241
|
+
}, "strict", z.ZodTypeAny, {
|
|
32242
|
+
expiresAt: number;
|
|
32243
|
+
sessionId: string;
|
|
32244
|
+
conversationId: string;
|
|
32245
|
+
signature: string;
|
|
32246
|
+
resourceId: string;
|
|
32247
|
+
}, {
|
|
32248
|
+
expiresAt: number;
|
|
32249
|
+
sessionId: string;
|
|
32250
|
+
conversationId: string;
|
|
32251
|
+
signature: string;
|
|
32252
|
+
resourceId: string;
|
|
32253
|
+
}>]>;
|
|
32254
|
+
export type ModelResourceReadInput = z.infer<typeof modelResourceReadInputSchema>;
|
|
32073
32255
|
export declare const hostedConversationImageReadInputSchema: z.ZodObject<{
|
|
32074
32256
|
conversationId: z.ZodString;
|
|
32075
32257
|
} & {
|
|
@@ -44251,7 +44433,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
|
|
|
44251
44433
|
previousPath?: string | undefined;
|
|
44252
44434
|
}>;
|
|
44253
44435
|
export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
|
|
44254
|
-
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.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.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.model-options", "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"]>;
|
|
44436
|
+
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.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.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", "model.resource.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.model-options", "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"]>;
|
|
44255
44437
|
export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
|
|
44256
44438
|
/**
|
|
44257
44439
|
* A small, explicit envelope keeps WebSocket messages independently parseable
|
package/dist/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export const marAgentRuntimeCredentialCapabilitySchema = z
|
|
|
58
58
|
responsesOptionalParameters: z.boolean().optional(),
|
|
59
59
|
responsesHttpContinuation: z.boolean().optional(),
|
|
60
60
|
conversationModels: z.boolean().optional(),
|
|
61
|
+
resourceInput: z.boolean().optional(),
|
|
61
62
|
httpVersions: z
|
|
62
63
|
.array(runtimeCredentialHttpVersionSchema)
|
|
63
64
|
.min(1)
|
|
@@ -745,6 +746,10 @@ export const imageGenerationCatalogSchema = z
|
|
|
745
746
|
context.addIssue({ code: 'custom', message: 'Image model IDs must be unique.' });
|
|
746
747
|
});
|
|
747
748
|
const marAgentModelShape = {
|
|
749
|
+
metadata: z
|
|
750
|
+
.object({ useResourceUrl: z.boolean().default(false) })
|
|
751
|
+
.strict()
|
|
752
|
+
.optional(),
|
|
748
753
|
id: z.string().min(1).max(128),
|
|
749
754
|
name: z.string().trim().min(1).max(128),
|
|
750
755
|
protocol: marAgentModelProtocolSchema,
|
|
@@ -831,6 +836,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
|
|
|
831
836
|
...marAgentModelShape,
|
|
832
837
|
baseUrl: z.string().url().max(2048),
|
|
833
838
|
apiKey: z.string().min(1).max(16_384).optional(),
|
|
839
|
+
useResourceUrl: z.boolean().default(false),
|
|
834
840
|
credential: marAgentRuntimeCredentialSchema.optional(),
|
|
835
841
|
responsesToolNamespace: z
|
|
836
842
|
.string()
|
|
@@ -2516,6 +2522,16 @@ export const runImageReadInputSchema = z.union([
|
|
|
2516
2522
|
z.object({ runId: protocolIdSchema, imageIndex: z.number().int().nonnegative() }).strict(),
|
|
2517
2523
|
z.object({ runId: protocolIdSchema, imageRef: imageRefSchema }).strict()
|
|
2518
2524
|
]);
|
|
2525
|
+
const modelResourceInputSchema = z.object({
|
|
2526
|
+
sessionId: protocolIdSchema,
|
|
2527
|
+
resourceId: z.string().regex(/^[a-f0-9]{64}$/u),
|
|
2528
|
+
expiresAt: z.number().int().positive().safe(),
|
|
2529
|
+
signature: z.string().regex(/^[A-Za-z0-9_-]{43}$/u)
|
|
2530
|
+
});
|
|
2531
|
+
export const modelResourceReadInputSchema = z.union([
|
|
2532
|
+
modelResourceInputSchema.extend({ workspaceId: protocolIdSchema }).strict(),
|
|
2533
|
+
modelResourceInputSchema.extend({ conversationId: protocolIdSchema }).strict()
|
|
2534
|
+
]);
|
|
2519
2535
|
export const hostedConversationImageReadInputSchema = hostedConversationIdInputSchema
|
|
2520
2536
|
.extend({
|
|
2521
2537
|
runId: protocolIdSchema,
|
|
@@ -3080,6 +3096,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
3080
3096
|
'workspace.git.commit.file.content.read',
|
|
3081
3097
|
'workspace.git.commit.file.direct.metadata',
|
|
3082
3098
|
'run.image.read',
|
|
3099
|
+
'model.resource.read',
|
|
3083
3100
|
'terminal.open',
|
|
3084
3101
|
'terminal.command.open',
|
|
3085
3102
|
'terminal.list',
|