@myagentroam/protocol 0.9.135 → 0.9.137
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/enterprise.d.ts +15 -20
- package/dist/enterprise.js +3 -8
- package/dist/index.d.ts +862 -387
- package/dist/index.js +11 -2
- package/dist/mcp.d.ts +5 -5
- package/dist/mcp.js +2 -2
- package/dist/skill.d.ts +27 -43
- package/dist/skill.js +11 -4
- package/package.json +1 -1
package/dist/enterprise.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const editionSchema: z.ZodEnum<["PERSONAL", "ENTERPRISE"]>;
|
|
3
3
|
export declare const licenseStateSchema: z.ZodEnum<["PERSONAL", "ENTERPRISE_VALID", "ENTERPRISE_FROZEN"]>;
|
|
4
4
|
export declare const userRoleSchema: z.ZodEnum<["ADMIN", "ORG_ADMIN", "MEMBER"]>;
|
|
5
|
-
export declare const permissionScopeSchema: z.ZodEnum<["
|
|
5
|
+
export declare const permissionScopeSchema: z.ZodEnum<["SYSTEM", "ORG_SUBTREE", "PERSONAL", "GRANTED_RESOURCE"]>;
|
|
6
6
|
export type UserRole = z.infer<typeof userRoleSchema>;
|
|
7
7
|
export declare const enterpriseCapabilitySchema: z.ZodObject<{
|
|
8
8
|
edition: z.ZodEnum<["PERSONAL", "ENTERPRISE"]>;
|
|
@@ -71,19 +71,18 @@ export declare const resourceGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
71
71
|
modelId: z.ZodOptional<z.ZodString>;
|
|
72
72
|
imageModelId: z.ZodOptional<z.ZodString>;
|
|
73
73
|
templateId: z.ZodOptional<z.ZodString>;
|
|
74
|
-
targetType: z.ZodEnum<["USER", "ORGANIZATION"
|
|
74
|
+
targetType: z.ZodEnum<["USER", "ORGANIZATION"]>;
|
|
75
75
|
targetUserId: z.ZodOptional<z.ZodNumber>;
|
|
76
76
|
targetOrganizationId: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
|
|
78
|
-
grantScopeOrganizationId: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
grantScopeOrganizationId: z.ZodNumber;
|
|
79
78
|
createdByUserId: z.ZodNumber;
|
|
80
79
|
createdAt: z.ZodNumber;
|
|
81
80
|
}, "strict", z.ZodTypeAny, {
|
|
82
81
|
id: string;
|
|
83
82
|
createdAt: number;
|
|
84
83
|
resourceType: "NODE" | "WORKSPACE" | "MODEL" | "IMAGE_MODEL" | "TEMPLATE";
|
|
85
|
-
targetType: "
|
|
86
|
-
|
|
84
|
+
targetType: "ORGANIZATION" | "USER";
|
|
85
|
+
grantScopeOrganizationId: number;
|
|
87
86
|
createdByUserId: number;
|
|
88
87
|
workspaceId?: string | undefined;
|
|
89
88
|
nodeId?: string | undefined;
|
|
@@ -92,13 +91,12 @@ export declare const resourceGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
92
91
|
templateId?: string | undefined;
|
|
93
92
|
targetUserId?: number | undefined;
|
|
94
93
|
targetOrganizationId?: number | undefined;
|
|
95
|
-
grantScopeOrganizationId?: number | undefined;
|
|
96
94
|
}, {
|
|
97
95
|
id: string;
|
|
98
96
|
createdAt: number;
|
|
99
97
|
resourceType: "NODE" | "WORKSPACE" | "MODEL" | "IMAGE_MODEL" | "TEMPLATE";
|
|
100
|
-
targetType: "
|
|
101
|
-
|
|
98
|
+
targetType: "ORGANIZATION" | "USER";
|
|
99
|
+
grantScopeOrganizationId: number;
|
|
102
100
|
createdByUserId: number;
|
|
103
101
|
workspaceId?: string | undefined;
|
|
104
102
|
nodeId?: string | undefined;
|
|
@@ -107,13 +105,12 @@ export declare const resourceGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
107
105
|
templateId?: string | undefined;
|
|
108
106
|
targetUserId?: number | undefined;
|
|
109
107
|
targetOrganizationId?: number | undefined;
|
|
110
|
-
grantScopeOrganizationId?: number | undefined;
|
|
111
108
|
}>, {
|
|
112
109
|
id: string;
|
|
113
110
|
createdAt: number;
|
|
114
111
|
resourceType: "NODE" | "WORKSPACE" | "MODEL" | "IMAGE_MODEL" | "TEMPLATE";
|
|
115
|
-
targetType: "
|
|
116
|
-
|
|
112
|
+
targetType: "ORGANIZATION" | "USER";
|
|
113
|
+
grantScopeOrganizationId: number;
|
|
117
114
|
createdByUserId: number;
|
|
118
115
|
workspaceId?: string | undefined;
|
|
119
116
|
nodeId?: string | undefined;
|
|
@@ -122,13 +119,12 @@ export declare const resourceGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
122
119
|
templateId?: string | undefined;
|
|
123
120
|
targetUserId?: number | undefined;
|
|
124
121
|
targetOrganizationId?: number | undefined;
|
|
125
|
-
grantScopeOrganizationId?: number | undefined;
|
|
126
122
|
}, {
|
|
127
123
|
id: string;
|
|
128
124
|
createdAt: number;
|
|
129
125
|
resourceType: "NODE" | "WORKSPACE" | "MODEL" | "IMAGE_MODEL" | "TEMPLATE";
|
|
130
|
-
targetType: "
|
|
131
|
-
|
|
126
|
+
targetType: "ORGANIZATION" | "USER";
|
|
127
|
+
grantScopeOrganizationId: number;
|
|
132
128
|
createdByUserId: number;
|
|
133
129
|
workspaceId?: string | undefined;
|
|
134
130
|
nodeId?: string | undefined;
|
|
@@ -137,7 +133,6 @@ export declare const resourceGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
137
133
|
templateId?: string | undefined;
|
|
138
134
|
targetUserId?: number | undefined;
|
|
139
135
|
targetOrganizationId?: number | undefined;
|
|
140
|
-
grantScopeOrganizationId?: number | undefined;
|
|
141
136
|
}>;
|
|
142
137
|
export declare const oauthProviderInputSchema: z.ZodObject<{
|
|
143
138
|
providerKey: z.ZodString;
|
|
@@ -232,7 +227,7 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
232
227
|
id: string;
|
|
233
228
|
eventType: string;
|
|
234
229
|
occurredAt: number;
|
|
235
|
-
authenticationMethod: "
|
|
230
|
+
authenticationMethod: "SYSTEM" | "PASSWORD" | "OAUTH2";
|
|
236
231
|
workspaceId?: string | null | undefined;
|
|
237
232
|
requestId?: string | null | undefined;
|
|
238
233
|
nodeId?: string | null | undefined;
|
|
@@ -258,7 +253,7 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
258
253
|
id: string;
|
|
259
254
|
eventType: string;
|
|
260
255
|
occurredAt: number;
|
|
261
|
-
authenticationMethod: "
|
|
256
|
+
authenticationMethod: "SYSTEM" | "PASSWORD" | "OAUTH2";
|
|
262
257
|
workspaceId?: string | null | undefined;
|
|
263
258
|
requestId?: string | null | undefined;
|
|
264
259
|
nodeId?: string | null | undefined;
|
|
@@ -365,7 +360,7 @@ export declare const auditEventDetailSchema: z.ZodObject<{
|
|
|
365
360
|
id: string;
|
|
366
361
|
eventType: string;
|
|
367
362
|
occurredAt: number;
|
|
368
|
-
authenticationMethod: "
|
|
363
|
+
authenticationMethod: "SYSTEM" | "PASSWORD" | "OAUTH2";
|
|
369
364
|
workspaceId?: string | null | undefined;
|
|
370
365
|
requestId?: string | null | undefined;
|
|
371
366
|
nodeId?: string | null | undefined;
|
|
@@ -397,7 +392,7 @@ export declare const auditEventDetailSchema: z.ZodObject<{
|
|
|
397
392
|
id: string;
|
|
398
393
|
eventType: string;
|
|
399
394
|
occurredAt: number;
|
|
400
|
-
authenticationMethod: "
|
|
395
|
+
authenticationMethod: "SYSTEM" | "PASSWORD" | "OAUTH2";
|
|
401
396
|
workspaceId?: string | null | undefined;
|
|
402
397
|
requestId?: string | null | undefined;
|
|
403
398
|
nodeId?: string | null | undefined;
|
package/dist/enterprise.js
CHANGED
|
@@ -3,7 +3,7 @@ export const editionSchema = z.enum(['PERSONAL', 'ENTERPRISE']);
|
|
|
3
3
|
export const licenseStateSchema = z.enum(['PERSONAL', 'ENTERPRISE_VALID', 'ENTERPRISE_FROZEN']);
|
|
4
4
|
export const userRoleSchema = z.enum(['ADMIN', 'ORG_ADMIN', 'MEMBER']);
|
|
5
5
|
export const permissionScopeSchema = z.enum([
|
|
6
|
-
'
|
|
6
|
+
'SYSTEM',
|
|
7
7
|
'ORG_SUBTREE',
|
|
8
8
|
'PERSONAL',
|
|
9
9
|
'GRANTED_RESOURCE'
|
|
@@ -44,11 +44,10 @@ export const resourceGrantSchema = z
|
|
|
44
44
|
modelId: z.string().min(1).max(128).optional(),
|
|
45
45
|
imageModelId: z.string().min(1).max(128).optional(),
|
|
46
46
|
templateId: z.string().min(1).max(128).optional(),
|
|
47
|
-
targetType: z.enum(['USER', 'ORGANIZATION'
|
|
47
|
+
targetType: z.enum(['USER', 'ORGANIZATION']),
|
|
48
48
|
targetUserId: z.number().int().positive().optional(),
|
|
49
49
|
targetOrganizationId: z.number().int().positive().optional(),
|
|
50
|
-
|
|
51
|
-
grantScopeOrganizationId: z.number().int().positive().optional(),
|
|
50
|
+
grantScopeOrganizationId: z.number().int().positive(),
|
|
52
51
|
createdByUserId: z.number().int().positive(),
|
|
53
52
|
createdAt: z.number().int().nonnegative()
|
|
54
53
|
})
|
|
@@ -93,10 +92,6 @@ export const resourceGrantSchema = z
|
|
|
93
92
|
if ((grant.targetType === 'ORGANIZATION') !== (grant.targetOrganizationId !== undefined)) {
|
|
94
93
|
context.addIssue({ code: 'custom', message: 'targetOrganizationId must match targetType' });
|
|
95
94
|
}
|
|
96
|
-
if ((grant.grantAuthority === 'ORG_SUBTREE') !==
|
|
97
|
-
(grant.grantScopeOrganizationId !== undefined)) {
|
|
98
|
-
context.addIssue({ code: 'custom', message: 'grant scope must match authority' });
|
|
99
|
-
}
|
|
100
95
|
});
|
|
101
96
|
const jsonPointerSchema = z.string().regex(/^(?:|(?:\/(?:[^~/]|~[01])*)+)$/);
|
|
102
97
|
const requiredJsonPointerSchema = jsonPointerSchema.min(1);
|