@myagentroam/protocol 0.10.7 → 0.10.9
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 +2100 -941
- package/dist/index.js +58 -7
- package/dist/mail-notification.d.ts +2 -2
- package/dist/mcp.d.ts +10 -10
- package/dist/model-usage.d.ts +582 -0
- package/dist/model-usage.js +123 -0
- package/dist/skill.d.ts +2 -2
- package/dist/tool-result-resource.d.ts +76 -0
- package/dist/tool-result-resource.js +51 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { modelUsageGrantSchema } from './model-usage.js';
|
|
1
2
|
import { z } from 'zod';
|
|
3
|
+
import { fileChangeDiffSchema } from './tool-result-resource.js';
|
|
4
|
+
export * from './tool-result-resource.js';
|
|
2
5
|
import { resourceOwnershipSchema } from './enterprise.js';
|
|
3
6
|
import { workspaceDirectTransferCapabilitySchema } from './direct-transfer.js';
|
|
4
7
|
import { terminalDirectCapabilitySchema } from './terminal-direct.js';
|
|
5
8
|
import { chatgptLoginCapabilitySchema } from './chatgpt-oauth.js';
|
|
6
9
|
export * from './chatgpt-oauth.js';
|
|
10
|
+
export const GROK_SUBSCRIPTION_BASE_URL = 'https://cli-chat-proxy.grok.com/v1';
|
|
7
11
|
export * from './composer-tags.js';
|
|
8
12
|
export * from './enterprise.js';
|
|
9
13
|
export * from './skill.js';
|
|
@@ -12,6 +16,7 @@ export * from './git-identity.js';
|
|
|
12
16
|
export * from './direct-transfer.js';
|
|
13
17
|
export * from './terminal-direct.js';
|
|
14
18
|
export * from './mail-notification.js';
|
|
19
|
+
export * from './model-usage.js';
|
|
15
20
|
export const healthStatusSchema = z.object({
|
|
16
21
|
status: z.literal('ok')
|
|
17
22
|
});
|
|
@@ -43,6 +48,7 @@ export const marAgentRuntimeCredentialCapabilitySchema = z
|
|
|
43
48
|
fastMode: z.boolean().optional(),
|
|
44
49
|
serviceTiers: z.array(marAgentResponsesServiceTierSchema).min(1).max(6).optional(),
|
|
45
50
|
namespacedTools: z.boolean().optional(),
|
|
51
|
+
responsesOptionalParameters: z.boolean().optional(),
|
|
46
52
|
httpVersions: z
|
|
47
53
|
.array(runtimeCredentialHttpVersionSchema)
|
|
48
54
|
.min(1)
|
|
@@ -582,6 +588,7 @@ export const scheduledRunAuthorizeResponseSchema = z.union([
|
|
|
582
588
|
.object({
|
|
583
589
|
context: z
|
|
584
590
|
.object({
|
|
591
|
+
usageGrant: modelUsageGrantSchema.optional(),
|
|
585
592
|
secretEnvironment: z.record(z.string().min(1).max(256), z.string().max(65_536)),
|
|
586
593
|
personalInstructions: z.unknown().optional(),
|
|
587
594
|
marAgentModel: z.unknown().optional(),
|
|
@@ -803,6 +810,16 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
|
|
|
803
810
|
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u)
|
|
804
811
|
.optional(),
|
|
805
812
|
responsesConfigurationUpdates: z.boolean().optional(),
|
|
813
|
+
responsesOptionalParameters: z
|
|
814
|
+
.object({
|
|
815
|
+
reasoningEffort: z.boolean(),
|
|
816
|
+
reasoningSummary: z.boolean(),
|
|
817
|
+
textVerbosity: z.boolean(),
|
|
818
|
+
promptCacheKey: z.boolean(),
|
|
819
|
+
nativeTools: z.boolean().optional()
|
|
820
|
+
})
|
|
821
|
+
.strict()
|
|
822
|
+
.optional(),
|
|
806
823
|
imageGeneration: marAgentImageGenerationSchema.optional()
|
|
807
824
|
})
|
|
808
825
|
.strip()).superRefine((configuration, context) => {
|
|
@@ -863,7 +880,8 @@ export const marAgentModelTransportTestResultSchema = z.discriminatedUnion('succ
|
|
|
863
880
|
success: z.literal(true),
|
|
864
881
|
code: z.null(),
|
|
865
882
|
message: z.null(),
|
|
866
|
-
httpStatus: z.null()
|
|
883
|
+
httpStatus: z.null(),
|
|
884
|
+
requestId: z.string().min(1).max(128).optional()
|
|
867
885
|
})
|
|
868
886
|
.strict(),
|
|
869
887
|
z
|
|
@@ -871,7 +889,18 @@ export const marAgentModelTransportTestResultSchema = z.discriminatedUnion('succ
|
|
|
871
889
|
success: z.literal(false),
|
|
872
890
|
code: z.string().trim().min(1).max(80),
|
|
873
891
|
message: z.string().trim().min(1).max(1_000),
|
|
874
|
-
httpStatus: z.number().int().min(100).max(599).nullable()
|
|
892
|
+
httpStatus: z.number().int().min(100).max(599).nullable(),
|
|
893
|
+
requestId: z.string().min(1).max(128).optional(),
|
|
894
|
+
response: z
|
|
895
|
+
.object({
|
|
896
|
+
body: z.string().max(4096),
|
|
897
|
+
bodyTruncated: z.boolean(),
|
|
898
|
+
contentType: z.string().max(256).nullable(),
|
|
899
|
+
requestId: z.string().max(256).nullable(),
|
|
900
|
+
retryAfter: z.string().max(128).nullable()
|
|
901
|
+
})
|
|
902
|
+
.strict()
|
|
903
|
+
.optional()
|
|
875
904
|
})
|
|
876
905
|
.strict()
|
|
877
906
|
]);
|
|
@@ -906,7 +935,7 @@ export const codexCredentialSummarySchema = z
|
|
|
906
935
|
.object({
|
|
907
936
|
id: boundedIdentifierSchema,
|
|
908
937
|
name: z.string().trim().min(1).max(128),
|
|
909
|
-
type: z.enum(['CODEX_OAUTH', 'CHATGPT_OAUTH']),
|
|
938
|
+
type: z.enum(['CODEX_OAUTH', 'CHATGPT_OAUTH', 'XAI_OAUTH']),
|
|
910
939
|
authorization: z.enum(['AUTHORIZED', 'UNAUTHORIZED']).optional(),
|
|
911
940
|
ownership: codexCredentialOwnershipSchema,
|
|
912
941
|
status: z.enum(['ACTIVE', 'DEGRADED', 'REAUTH_REQUIRED']),
|
|
@@ -991,14 +1020,31 @@ export const codexUsageProfileSchema = z
|
|
|
991
1020
|
message: 'daily usage dates must be unique'
|
|
992
1021
|
});
|
|
993
1022
|
});
|
|
994
|
-
export const codexCredentialUsageSchema = runnerUsageSchema
|
|
995
|
-
|
|
1023
|
+
export const codexCredentialUsageSchema = runnerUsageSchema
|
|
1024
|
+
.extend({
|
|
1025
|
+
windows: z.array(runnerUsageWindowSchema).max(8),
|
|
1026
|
+
profile: codexUsageProfileSchema,
|
|
1027
|
+
subscription: z
|
|
1028
|
+
.object({
|
|
1029
|
+
provider: z.literal('XAI'),
|
|
1030
|
+
period: z.enum(['WEEKLY', 'MONTHLY', 'UNKNOWN']),
|
|
1031
|
+
startsAt: nonnegativeSafeIntegerSchema.nullable(),
|
|
1032
|
+
resetsAt: nonnegativeSafeIntegerSchema.nullable(),
|
|
1033
|
+
usedPercentage: z.number().finite().min(0).max(100).nullable(),
|
|
1034
|
+
prepaidBalanceCents: nonnegativeSafeIntegerSchema.nullable()
|
|
1035
|
+
})
|
|
1036
|
+
.strict()
|
|
1037
|
+
.optional()
|
|
1038
|
+
})
|
|
1039
|
+
.superRefine((usage, context) => {
|
|
1040
|
+
if (!usage.subscription && usage.windows.length === 0)
|
|
1041
|
+
context.addIssue({ code: 'custom', message: 'Usage requires a window or subscription data' });
|
|
996
1042
|
});
|
|
997
1043
|
export const codexLoginAttemptSchema = z
|
|
998
1044
|
.object({
|
|
999
1045
|
id: boundedIdentifierSchema,
|
|
1000
1046
|
status: z.enum(['PENDING', 'SUCCEEDED', 'FAILED', 'CANCELLED', 'EXPIRED']),
|
|
1001
|
-
type: z.enum(['CODEX_OAUTH', 'CHATGPT_OAUTH']).optional(),
|
|
1047
|
+
type: z.enum(['CODEX_OAUTH', 'CHATGPT_OAUTH', 'XAI_OAUTH']).optional(),
|
|
1002
1048
|
userCode: z.string().trim().min(1).max(128).optional(),
|
|
1003
1049
|
verificationUri: z.string().url().max(2048).optional(),
|
|
1004
1050
|
expiresAt: nonnegativeSafeIntegerSchema.optional(),
|
|
@@ -1644,6 +1690,7 @@ const toolCallItemSchema = conversationItemBaseSchema.extend({
|
|
|
1644
1690
|
truncated: z.boolean(),
|
|
1645
1691
|
toolCategory: z.enum(['IMAGE_GENERATION']).optional(),
|
|
1646
1692
|
subagentOperation: subagentOperationSchema.optional(),
|
|
1693
|
+
subagentWait: z.boolean().optional(),
|
|
1647
1694
|
subagentId: z.string().min(1).max(128).nullable().optional(),
|
|
1648
1695
|
subagentModelId: z.string().min(1).max(128).optional(),
|
|
1649
1696
|
subagentModelName: z.string().min(1).max(128).optional(),
|
|
@@ -1672,7 +1719,9 @@ const fileChangeItemSchema = conversationItemBaseSchema.extend({
|
|
|
1672
1719
|
change: z.enum(['ADDED', 'MODIFIED', 'DELETED', 'RENAMED', 'COPIED', 'TYPE_CHANGED']),
|
|
1673
1720
|
additions: z.number().int().nonnegative().nullable(),
|
|
1674
1721
|
deletions: z.number().int().nonnegative().nullable(),
|
|
1675
|
-
diffAvailable: z.boolean()
|
|
1722
|
+
diffAvailable: z.boolean(),
|
|
1723
|
+
changeId: z.string().uuid().optional(),
|
|
1724
|
+
diff: fileChangeDiffSchema.optional()
|
|
1676
1725
|
}))
|
|
1677
1726
|
})
|
|
1678
1727
|
});
|
|
@@ -2719,6 +2768,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
2719
2768
|
'session.turns.list',
|
|
2720
2769
|
'session.events.read',
|
|
2721
2770
|
'session.context.read',
|
|
2771
|
+
'session.tool-resource.read',
|
|
2722
2772
|
'session.command.execute',
|
|
2723
2773
|
'runner.command.execute',
|
|
2724
2774
|
'runner.profiles.list',
|
|
@@ -2795,6 +2845,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
2795
2845
|
'conversation.hosted.config.update',
|
|
2796
2846
|
'conversation.hosted.metadata.update',
|
|
2797
2847
|
'conversation.hosted.image.read',
|
|
2848
|
+
'conversation.hosted.tool-resource.read',
|
|
2798
2849
|
'conversation.hosted.files.list',
|
|
2799
2850
|
'conversation.hosted.file.read',
|
|
2800
2851
|
'conversation.hosted.file.delete',
|
|
@@ -16,8 +16,8 @@ export declare const mailNotificationRequestSchema: z.ZodObject<{
|
|
|
16
16
|
workspaceId: string;
|
|
17
17
|
templateId: string;
|
|
18
18
|
sessionId: string;
|
|
19
|
-
executionId: string;
|
|
20
19
|
userId: number;
|
|
20
|
+
executionId: string;
|
|
21
21
|
callId: string;
|
|
22
22
|
recipientEmail: string;
|
|
23
23
|
title?: string | undefined;
|
|
@@ -27,8 +27,8 @@ export declare const mailNotificationRequestSchema: z.ZodObject<{
|
|
|
27
27
|
workspaceId: string;
|
|
28
28
|
templateId: string;
|
|
29
29
|
sessionId: string;
|
|
30
|
-
executionId: string;
|
|
31
30
|
userId: number;
|
|
31
|
+
executionId: string;
|
|
32
32
|
callId: string;
|
|
33
33
|
recipientEmail: string;
|
|
34
34
|
title?: string | undefined;
|
package/dist/mcp.d.ts
CHANGED
|
@@ -148,12 +148,12 @@ export declare const mcpCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
148
148
|
createdAt: number;
|
|
149
149
|
updatedAt: number;
|
|
150
150
|
displayName: string;
|
|
151
|
+
version: string;
|
|
151
152
|
sourceId: string;
|
|
152
153
|
featured: boolean;
|
|
153
154
|
tags: string[];
|
|
154
155
|
description: string;
|
|
155
156
|
serverName: string;
|
|
156
|
-
version: string;
|
|
157
157
|
runtime: {
|
|
158
158
|
transport: "STDIO";
|
|
159
159
|
command: string;
|
|
@@ -176,12 +176,12 @@ export declare const mcpCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
176
176
|
createdAt: number;
|
|
177
177
|
updatedAt: number;
|
|
178
178
|
displayName: string;
|
|
179
|
+
version: string;
|
|
179
180
|
sourceId: string;
|
|
180
181
|
featured: boolean;
|
|
181
182
|
tags: string[];
|
|
182
183
|
description: string;
|
|
183
184
|
serverName: string;
|
|
184
|
-
version: string;
|
|
185
185
|
runtime: {
|
|
186
186
|
transport: "STDIO";
|
|
187
187
|
command: string;
|
|
@@ -204,12 +204,12 @@ export declare const mcpCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
204
204
|
createdAt: number;
|
|
205
205
|
updatedAt: number;
|
|
206
206
|
displayName: string;
|
|
207
|
+
version: string;
|
|
207
208
|
sourceId: string;
|
|
208
209
|
featured: boolean;
|
|
209
210
|
tags: string[];
|
|
210
211
|
description: string;
|
|
211
212
|
serverName: string;
|
|
212
|
-
version: string;
|
|
213
213
|
runtime: {
|
|
214
214
|
transport: "STDIO";
|
|
215
215
|
command: string;
|
|
@@ -232,12 +232,12 @@ export declare const mcpCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
232
232
|
createdAt: number;
|
|
233
233
|
updatedAt: number;
|
|
234
234
|
displayName: string;
|
|
235
|
+
version: string;
|
|
235
236
|
sourceId: string;
|
|
236
237
|
featured: boolean;
|
|
237
238
|
tags: string[];
|
|
238
239
|
description: string;
|
|
239
240
|
serverName: string;
|
|
240
|
-
version: string;
|
|
241
241
|
runtime: {
|
|
242
242
|
transport: "STDIO";
|
|
243
243
|
command: string;
|
|
@@ -364,19 +364,19 @@ export declare const installedMcpSchema: z.ZodObject<{
|
|
|
364
364
|
}, "strict", z.ZodTypeAny, {
|
|
365
365
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
366
366
|
displayName: string;
|
|
367
|
+
version: string;
|
|
367
368
|
enabled: boolean;
|
|
368
369
|
installedAt: number;
|
|
369
370
|
serverName: string;
|
|
370
|
-
version: string;
|
|
371
371
|
catalogEntryId: string;
|
|
372
372
|
origin: "WORKSPACE" | "NODE";
|
|
373
373
|
}, {
|
|
374
374
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
375
375
|
displayName: string;
|
|
376
|
+
version: string;
|
|
376
377
|
enabled: boolean;
|
|
377
378
|
installedAt: number;
|
|
378
379
|
serverName: string;
|
|
379
|
-
version: string;
|
|
380
380
|
catalogEntryId: string;
|
|
381
381
|
origin: "WORKSPACE" | "NODE";
|
|
382
382
|
}>;
|
|
@@ -394,19 +394,19 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
|
|
|
394
394
|
}, "strict", z.ZodTypeAny, {
|
|
395
395
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
396
396
|
displayName: string;
|
|
397
|
+
version: string;
|
|
397
398
|
enabled: boolean;
|
|
398
399
|
installedAt: number;
|
|
399
400
|
serverName: string;
|
|
400
|
-
version: string;
|
|
401
401
|
catalogEntryId: string;
|
|
402
402
|
origin: "WORKSPACE" | "NODE";
|
|
403
403
|
}, {
|
|
404
404
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
405
405
|
displayName: string;
|
|
406
|
+
version: string;
|
|
406
407
|
enabled: boolean;
|
|
407
408
|
installedAt: number;
|
|
408
409
|
serverName: string;
|
|
409
|
-
version: string;
|
|
410
410
|
catalogEntryId: string;
|
|
411
411
|
origin: "WORKSPACE" | "NODE";
|
|
412
412
|
}>, "many">;
|
|
@@ -416,10 +416,10 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
|
|
|
416
416
|
installations: {
|
|
417
417
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
418
418
|
displayName: string;
|
|
419
|
+
version: string;
|
|
419
420
|
enabled: boolean;
|
|
420
421
|
installedAt: number;
|
|
421
422
|
serverName: string;
|
|
422
|
-
version: string;
|
|
423
423
|
catalogEntryId: string;
|
|
424
424
|
origin: "WORKSPACE" | "NODE";
|
|
425
425
|
}[];
|
|
@@ -429,10 +429,10 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
|
|
|
429
429
|
installations: {
|
|
430
430
|
status: "CURRENT" | "UPDATE_AVAILABLE" | "INVALID" | "UNAVAILABLE";
|
|
431
431
|
displayName: string;
|
|
432
|
+
version: string;
|
|
432
433
|
enabled: boolean;
|
|
433
434
|
installedAt: number;
|
|
434
435
|
serverName: string;
|
|
435
|
-
version: string;
|
|
436
436
|
catalogEntryId: string;
|
|
437
437
|
origin: "WORKSPACE" | "NODE";
|
|
438
438
|
}[];
|