@xtrape/capsule-contracts-node 0.4.0 → 0.5.0
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/NOTICE +3 -3
- package/README.md +46 -27
- package/dist/index.cjs +289 -106
- package/dist/index.d.cts +4724 -1510
- package/dist/index.d.ts +4724 -1510
- package/dist/index.js +256 -106
- package/package.json +4 -3
- package/spec/.source +1 -1
- package/spec/enums/audit-actions.json +2 -2
- package/spec/enums/id-prefixes.json +1 -1
- package/spec/enums/status-enums.json +2 -2
- package/spec/errors.json +2 -2
- package/spec/errors.md +1 -1
- package/spec/openapi/opstage-ce-v0.1.yaml +14 -14
- package/spec/worker-compatibility-v0.4.json +53 -0
- package/dist/src/index.d.ts +0 -4245
- package/dist/src/index.js +0 -210
- package/dist/tests/bus.spec.d.ts +0 -1
- package/dist/tests/bus.spec.js +0 -52
- package/dist/tests/schema-validation.spec.d.ts +0 -1
- package/dist/tests/schema-validation.spec.js +0 -155
- package/dist/tests/schema.spec.d.ts +0 -1
- package/dist/tests/schema.spec.js +0 -223
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
AdminSessionSchema: () => AdminSessionSchema,
|
|
28
28
|
AgentHeartbeatRequestSchema: () => AgentHeartbeatRequestSchema,
|
|
29
29
|
AgentHeartbeatResponseSchema: () => AgentHeartbeatResponseSchema,
|
|
30
|
+
AgentHeartbeatSchema: () => AgentHeartbeatSchema,
|
|
30
31
|
AgentMode: () => AgentMode,
|
|
31
32
|
AgentModeSchema: () => AgentModeSchema,
|
|
32
33
|
AgentSchema: () => AgentSchema,
|
|
@@ -45,12 +46,14 @@ __export(index_exports, {
|
|
|
45
46
|
BusRouteStatusSchema: () => BusRouteStatusSchema,
|
|
46
47
|
BusRoutedCommandSchema: () => BusRoutedCommandSchema,
|
|
47
48
|
BusRoutingRuleSchema: () => BusRoutingRuleSchema,
|
|
49
|
+
CE_CONTRACT_VERSION: () => CE_CONTRACT_VERSION,
|
|
48
50
|
CapsuleBusExperimentalSchema: () => CapsuleBusExperimentalSchema,
|
|
49
51
|
CapsuleManifestSchema: () => CapsuleManifestSchema,
|
|
50
52
|
CapsuleServiceDetailSchema: () => CapsuleServiceDetailSchema,
|
|
51
53
|
CapsuleServiceSchema: () => CapsuleServiceSchema,
|
|
52
54
|
CapsuleServiceStatus: () => CapsuleServiceStatus,
|
|
53
55
|
CapsuleServiceStatusSchema: () => CapsuleServiceStatusSchema,
|
|
56
|
+
CeErrorCode: () => CeErrorCode,
|
|
54
57
|
CommandDetailSchema: () => CommandDetailSchema,
|
|
55
58
|
CommandResultSchema: () => CommandResultSchema,
|
|
56
59
|
CommandSchema: () => CommandSchema,
|
|
@@ -59,6 +62,9 @@ __export(index_exports, {
|
|
|
59
62
|
CommandTypeSchema: () => CommandTypeSchema,
|
|
60
63
|
ConfigItemInputSchema: () => ConfigItemInputSchema,
|
|
61
64
|
ConfigItemSchema: () => ConfigItemSchema,
|
|
65
|
+
ConversationMessageSchema: () => ConversationMessageSchema,
|
|
66
|
+
ConversationTargetType: () => ConversationTargetType,
|
|
67
|
+
ConversationTargetTypeSchema: () => ConversationTargetTypeSchema,
|
|
62
68
|
CreateActionCommandRequestSchema: () => CreateActionCommandRequestSchema,
|
|
63
69
|
CreateBusRouteRuleRequestSchema: () => CreateBusRouteRuleRequestSchema,
|
|
64
70
|
CreateRegistrationTokenRequestSchema: () => CreateRegistrationTokenRequestSchema,
|
|
@@ -67,6 +73,7 @@ __export(index_exports, {
|
|
|
67
73
|
DangerLevelSchema: () => DangerLevelSchema,
|
|
68
74
|
DashboardSummarySchema: () => DashboardSummarySchema,
|
|
69
75
|
ErrorCode: () => ErrorCode,
|
|
76
|
+
ErrorModelSchema: () => ErrorModelSchema,
|
|
70
77
|
EventMetadataSchema: () => EventMetadataSchema,
|
|
71
78
|
HealthReportInputSchema: () => HealthReportInputSchema,
|
|
72
79
|
HealthReportSchema: () => HealthReportSchema,
|
|
@@ -74,6 +81,10 @@ __export(index_exports, {
|
|
|
74
81
|
HealthStatusSchema: () => HealthStatusSchema,
|
|
75
82
|
HttpError: () => HttpError,
|
|
76
83
|
ListQueryBase: () => ListQueryBase,
|
|
84
|
+
MessageSenderType: () => MessageSenderType,
|
|
85
|
+
MessageSenderTypeSchema: () => MessageSenderTypeSchema,
|
|
86
|
+
MessageType: () => MessageType,
|
|
87
|
+
MessageTypeSchema: () => MessageTypeSchema,
|
|
77
88
|
PublishBusEventRequestSchema: () => PublishBusEventRequestSchema,
|
|
78
89
|
PublishBusEventResponseSchema: () => PublishBusEventResponseSchema,
|
|
79
90
|
RegisterAgentRequestSchema: () => RegisterAgentRequestSchema,
|
|
@@ -81,16 +92,30 @@ __export(index_exports, {
|
|
|
81
92
|
RegistrationTokenSchema: () => RegistrationTokenSchema,
|
|
82
93
|
ReportCommandResultRequestSchema: () => ReportCommandResultRequestSchema,
|
|
83
94
|
ReportedServiceSchema: () => ReportedServiceSchema,
|
|
95
|
+
ReportedWorkerSchema: () => ReportedWorkerSchema,
|
|
84
96
|
RuntimeKindSchema: () => RuntimeKindSchema,
|
|
85
97
|
ServiceCapabilitySchema: () => ServiceCapabilitySchema,
|
|
98
|
+
ServiceInstanceHealth: () => ServiceInstanceHealth,
|
|
99
|
+
ServiceInstanceHealthSchema: () => ServiceInstanceHealthSchema,
|
|
100
|
+
ServiceInstanceSchema: () => ServiceInstanceSchema,
|
|
86
101
|
ServiceKind: () => ServiceKind,
|
|
87
102
|
ServiceKindSchema: () => ServiceKindSchema,
|
|
103
|
+
ServiceManifestSchema: () => ServiceManifestSchema,
|
|
88
104
|
ServiceReportRequestSchema: () => ServiceReportRequestSchema,
|
|
89
105
|
SystemHealthSchema: () => SystemHealthSchema,
|
|
90
106
|
SystemVersionSchema: () => SystemVersionSchema,
|
|
91
107
|
TokenStatus: () => TokenStatus,
|
|
92
108
|
UserRole: () => UserRole,
|
|
93
109
|
UserSchema: () => UserSchema,
|
|
110
|
+
WorkerDetailSchema: () => WorkerDetailSchema,
|
|
111
|
+
WorkerInstanceDetailSchema: () => WorkerInstanceDetailSchema,
|
|
112
|
+
WorkerInstanceSchema: () => WorkerInstanceSchema,
|
|
113
|
+
WorkerManifestSchema: () => WorkerManifestSchema,
|
|
114
|
+
WorkerReportRequestSchema: () => WorkerReportRequestSchema,
|
|
115
|
+
WorkerRuntimeReportSchema: () => WorkerRuntimeReportSchema,
|
|
116
|
+
WorkerSchema: () => WorkerSchema,
|
|
117
|
+
WorkerStatus: () => WorkerStatus,
|
|
118
|
+
WorkerStatusSchema: () => WorkerStatusSchema,
|
|
94
119
|
actionDefinitionInputSchema: () => actionDefinitionInputSchema,
|
|
95
120
|
actionPrepareResultSchema: () => actionPrepareResultSchema,
|
|
96
121
|
adminLoginRequestSchema: () => adminLoginRequestSchema,
|
|
@@ -113,16 +138,121 @@ __export(index_exports, {
|
|
|
113
138
|
registerAgentRequestSchema: () => registerAgentRequestSchema,
|
|
114
139
|
reportCommandResultRequestSchema: () => reportCommandResultRequestSchema,
|
|
115
140
|
reportedServiceSchema: () => reportedServiceSchema,
|
|
141
|
+
reportedWorkerSchema: () => reportedWorkerSchema,
|
|
116
142
|
resetUserPasswordRequestSchema: () => resetUserPasswordRequestSchema,
|
|
117
143
|
serviceCapabilitySchema: () => serviceCapabilitySchema,
|
|
118
144
|
serviceReportRequestSchema: () => serviceReportRequestSchema,
|
|
119
145
|
updateUserRequestSchema: () => updateUserRequestSchema,
|
|
120
|
-
|
|
146
|
+
workerDetailSchema: () => workerDetailSchema,
|
|
147
|
+
workerInstanceDetailSchema: () => workerInstanceDetailSchema,
|
|
148
|
+
workerInstanceSchema: () => workerInstanceSchema,
|
|
149
|
+
workerManifestSchema: () => workerManifestSchema,
|
|
150
|
+
workerReportRequestSchema: () => workerReportRequestSchema,
|
|
151
|
+
workerRuntimeReportSchema: () => workerRuntimeReportSchema,
|
|
152
|
+
workerSchema: () => workerSchema,
|
|
153
|
+
z: () => import_zod2.z
|
|
121
154
|
});
|
|
122
155
|
module.exports = __toCommonJS(index_exports);
|
|
156
|
+
var import_zod2 = require("zod");
|
|
157
|
+
|
|
158
|
+
// src/ce.ts
|
|
123
159
|
var import_zod = require("zod");
|
|
160
|
+
var CE_CONTRACT_VERSION = 1;
|
|
161
|
+
var ServiceId = import_zod.z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "kebab-case service id");
|
|
162
|
+
var Json = import_zod.z.record(import_zod.z.any());
|
|
163
|
+
var ServiceInstanceHealth = ["HEALTHY", "DEGRADED", "UNREACHABLE"];
|
|
164
|
+
var ServiceInstanceHealthSchema = import_zod.z.enum(ServiceInstanceHealth);
|
|
165
|
+
var ConversationTargetType = ["SERVICE", "TASK", "USER", "SYSTEM"];
|
|
166
|
+
var ConversationTargetTypeSchema = import_zod.z.enum(ConversationTargetType);
|
|
167
|
+
var MessageSenderType = ["USER", "SERVICE", "SYSTEM"];
|
|
168
|
+
var MessageSenderTypeSchema = import_zod.z.enum(MessageSenderType);
|
|
169
|
+
var MessageType = [
|
|
170
|
+
"TEXT",
|
|
171
|
+
"QUERY",
|
|
172
|
+
"COMMAND",
|
|
173
|
+
"SUMMARY",
|
|
174
|
+
"APPROVAL_REQUEST",
|
|
175
|
+
"APPROVAL_RESPONSE"
|
|
176
|
+
];
|
|
177
|
+
var MessageTypeSchema = import_zod.z.enum(MessageType);
|
|
178
|
+
var ServiceManifestSchema = import_zod.z.object({
|
|
179
|
+
contractVersion: import_zod.z.literal(CE_CONTRACT_VERSION),
|
|
180
|
+
tenant: import_zod.z.string().default("default"),
|
|
181
|
+
service: import_zod.z.object({
|
|
182
|
+
id: ServiceId,
|
|
183
|
+
name: import_zod.z.string().min(1),
|
|
184
|
+
version: import_zod.z.string().min(1),
|
|
185
|
+
description: import_zod.z.string().optional()
|
|
186
|
+
}),
|
|
187
|
+
owner: import_zod.z.object({ organization: import_zod.z.string().optional(), maintainer: import_zod.z.string().optional() }).optional(),
|
|
188
|
+
runtime: import_zod.z.object({
|
|
189
|
+
language: import_zod.z.string().min(1),
|
|
190
|
+
agent: import_zod.z.string().min(1),
|
|
191
|
+
// declared template; the real address is reported by the instance on register
|
|
192
|
+
endpoint: import_zod.z.string().url().optional()
|
|
193
|
+
}),
|
|
194
|
+
// business-semantic capabilities (Capability), e.g. "status.query"
|
|
195
|
+
capabilities: import_zod.z.array(import_zod.z.string().min(1)).min(1),
|
|
196
|
+
// platform feature toggles (not business semantics)
|
|
197
|
+
features: import_zod.z.record(import_zod.z.boolean()).optional(),
|
|
198
|
+
message: import_zod.z.object({ supportedTypes: import_zod.z.array(MessageTypeSchema).min(1) }),
|
|
199
|
+
// structured triggers; kept loose for Phase 0
|
|
200
|
+
triggers: import_zod.z.array(import_zod.z.object({ type: import_zod.z.string() }).passthrough()).optional()
|
|
201
|
+
}).passthrough();
|
|
202
|
+
var ServiceInstanceSchema = import_zod.z.object({
|
|
203
|
+
contractVersion: import_zod.z.literal(CE_CONTRACT_VERSION),
|
|
204
|
+
serviceId: ServiceId,
|
|
205
|
+
instanceId: import_zod.z.string().min(1),
|
|
206
|
+
tenant: import_zod.z.string().default("default"),
|
|
207
|
+
address: import_zod.z.string().url(),
|
|
208
|
+
version: import_zod.z.string().min(1),
|
|
209
|
+
health: ServiceInstanceHealthSchema,
|
|
210
|
+
startedAt: import_zod.z.string().optional(),
|
|
211
|
+
lastHeartbeatAt: import_zod.z.string().optional()
|
|
212
|
+
});
|
|
213
|
+
var ConversationMessageSchema = import_zod.z.object({
|
|
214
|
+
contractVersion: import_zod.z.literal(CE_CONTRACT_VERSION),
|
|
215
|
+
messageId: import_zod.z.string().min(1),
|
|
216
|
+
conversationId: import_zod.z.string().min(1),
|
|
217
|
+
tenant: import_zod.z.string().default("default"),
|
|
218
|
+
targetType: ConversationTargetTypeSchema,
|
|
219
|
+
targetId: import_zod.z.string().min(1),
|
|
220
|
+
senderType: MessageSenderTypeSchema,
|
|
221
|
+
senderId: import_zod.z.string().min(1),
|
|
222
|
+
messageType: MessageTypeSchema,
|
|
223
|
+
content: import_zod.z.string(),
|
|
224
|
+
payload: Json.optional(),
|
|
225
|
+
replyToMessageId: import_zod.z.string().optional(),
|
|
226
|
+
idempotencyKey: import_zod.z.string().optional(),
|
|
227
|
+
metadata: Json.optional()
|
|
228
|
+
});
|
|
229
|
+
var AgentHeartbeatSchema = import_zod.z.object({
|
|
230
|
+
contractVersion: import_zod.z.literal(CE_CONTRACT_VERSION),
|
|
231
|
+
serviceId: ServiceId,
|
|
232
|
+
instanceId: import_zod.z.string().min(1),
|
|
233
|
+
tenant: import_zod.z.string().default("default"),
|
|
234
|
+
ts: import_zod.z.string(),
|
|
235
|
+
health: ServiceInstanceHealthSchema,
|
|
236
|
+
metricsSummary: Json.optional()
|
|
237
|
+
});
|
|
238
|
+
var CeErrorCode = {
|
|
239
|
+
CONTRACT_VERSION_MISMATCH: "CONTRACT_VERSION_MISMATCH",
|
|
240
|
+
UNKNOWN_INSTANCE: "UNKNOWN_INSTANCE",
|
|
241
|
+
NO_HEALTHY_INSTANCE: "NO_HEALTHY_INSTANCE",
|
|
242
|
+
TARGET_OFFLINE: "TARGET_OFFLINE",
|
|
243
|
+
VALIDATION_FAILED: "VALIDATION_FAILED",
|
|
244
|
+
INTERNAL_ERROR: "INTERNAL_ERROR"
|
|
245
|
+
};
|
|
246
|
+
var ErrorModelSchema = import_zod.z.object({
|
|
247
|
+
code: import_zod.z.string().min(1),
|
|
248
|
+
message: import_zod.z.string(),
|
|
249
|
+
retryable: import_zod.z.boolean()
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
// src/index.ts
|
|
124
253
|
var AgentStatus = ["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"];
|
|
125
254
|
var CapsuleServiceStatus = ["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"];
|
|
255
|
+
var WorkerStatus = CapsuleServiceStatus;
|
|
126
256
|
var HealthStatus = ["UP", "DEGRADED", "DOWN", "UNKNOWN"];
|
|
127
257
|
var CommandStatus = ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"];
|
|
128
258
|
var DangerLevel = ["LOW", "MEDIUM", "HIGH"];
|
|
@@ -131,144 +261,163 @@ var AuditResult = ["SUCCESS", "FAILURE"];
|
|
|
131
261
|
var TokenStatus = ["ACTIVE", "REVOKED", "EXPIRED", "USED"];
|
|
132
262
|
var AgentMode = ["embedded", "ophub"];
|
|
133
263
|
var ServiceKind = ["business", "infrastructure", "system"];
|
|
134
|
-
var ServiceKindSchema =
|
|
135
|
-
var AnyJson =
|
|
136
|
-
var AgentStatusSchema =
|
|
137
|
-
var CapsuleServiceStatusSchema =
|
|
138
|
-
var
|
|
139
|
-
var
|
|
140
|
-
var
|
|
141
|
-
var
|
|
142
|
-
var
|
|
143
|
-
var
|
|
144
|
-
var
|
|
145
|
-
var
|
|
146
|
-
var
|
|
147
|
-
var
|
|
264
|
+
var ServiceKindSchema = import_zod2.z.enum(ServiceKind);
|
|
265
|
+
var AnyJson = import_zod2.z.record(import_zod2.z.any());
|
|
266
|
+
var AgentStatusSchema = import_zod2.z.enum(AgentStatus);
|
|
267
|
+
var CapsuleServiceStatusSchema = import_zod2.z.enum(CapsuleServiceStatus);
|
|
268
|
+
var WorkerStatusSchema = CapsuleServiceStatusSchema;
|
|
269
|
+
var HealthStatusSchema = import_zod2.z.enum(HealthStatus);
|
|
270
|
+
var CommandStatusSchema = import_zod2.z.enum(CommandStatus);
|
|
271
|
+
var DangerLevelSchema = import_zod2.z.enum(DangerLevel).default("LOW");
|
|
272
|
+
var AgentModeSchema = import_zod2.z.enum(AgentMode);
|
|
273
|
+
var UserSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("usr_"), username: import_zod2.z.string(), displayName: import_zod2.z.string().nullable().optional(), createdAt: import_zod2.z.string(), updatedAt: import_zod2.z.string() });
|
|
274
|
+
var UserRole = import_zod2.z.enum(["owner", "operator", "viewer"]);
|
|
275
|
+
var createUserRequestSchema = import_zod2.z.object({ username: import_zod2.z.string().min(1), password: import_zod2.z.string().min(12), displayName: import_zod2.z.string().optional(), role: UserRole.default("viewer") });
|
|
276
|
+
var updateUserRequestSchema = import_zod2.z.object({ displayName: import_zod2.z.string().optional(), role: UserRole.optional(), status: import_zod2.z.enum(["ACTIVE", "DISABLED"]).optional() });
|
|
277
|
+
var resetUserPasswordRequestSchema = import_zod2.z.object({ password: import_zod2.z.string().min(12) });
|
|
278
|
+
var AdminLoginRequestSchema = import_zod2.z.object({ username: import_zod2.z.string().min(1), password: import_zod2.z.string().min(1) });
|
|
148
279
|
var adminLoginRequestSchema = AdminLoginRequestSchema;
|
|
149
|
-
var AdminSessionSchema =
|
|
150
|
-
var AgentSchema =
|
|
151
|
-
var RegistrationTokenSchema =
|
|
152
|
-
var CreateRegistrationTokenRequestSchema =
|
|
280
|
+
var AdminSessionSchema = import_zod2.z.object({ user: UserSchema, csrfToken: import_zod2.z.string(), expiresAt: import_zod2.z.string() });
|
|
281
|
+
var AgentSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("agt_"), code: import_zod2.z.string(), name: import_zod2.z.string().nullable().optional(), mode: AgentModeSchema, runtime: import_zod2.z.string().nullable().optional(), status: AgentStatusSchema, lastHeartbeatAt: import_zod2.z.string().nullable().optional(), createdAt: import_zod2.z.string(), updatedAt: import_zod2.z.string() });
|
|
282
|
+
var RegistrationTokenSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("tok_"), name: import_zod2.z.string(), status: import_zod2.z.enum(TokenStatus), expiresAt: import_zod2.z.string().nullable().optional(), usedAt: import_zod2.z.string().nullable().optional(), createdAt: import_zod2.z.string() });
|
|
283
|
+
var CreateRegistrationTokenRequestSchema = import_zod2.z.object({ name: import_zod2.z.string().default("Default registration token").optional(), expiresInSeconds: import_zod2.z.number().int().min(60).optional() });
|
|
153
284
|
var createRegistrationTokenRequestSchema = CreateRegistrationTokenRequestSchema;
|
|
154
|
-
var CreateRegistrationTokenResponseSchema = RegistrationTokenSchema.extend({ rawToken:
|
|
155
|
-
var ServiceCapabilitySchema =
|
|
285
|
+
var CreateRegistrationTokenResponseSchema = RegistrationTokenSchema.extend({ rawToken: import_zod2.z.string().startsWith("opstage_reg_") });
|
|
286
|
+
var ServiceCapabilitySchema = import_zod2.z.object({ name: import_zod2.z.string().min(1).max(120), label: import_zod2.z.string().max(200).optional(), description: import_zod2.z.string().max(2e3).optional(), metadata: AnyJson.optional() });
|
|
156
287
|
var serviceCapabilitySchema = ServiceCapabilitySchema;
|
|
157
|
-
var EventMetadataSchema =
|
|
288
|
+
var EventMetadataSchema = import_zod2.z.object({ name: import_zod2.z.string().min(1).max(160), direction: import_zod2.z.enum(["publish", "subscribe"]).optional(), schema: AnyJson.optional(), designOnly: import_zod2.z.boolean().default(true), metadata: AnyJson.optional() });
|
|
158
289
|
var eventMetadataSchema = EventMetadataSchema;
|
|
159
|
-
var CapsuleManifestSchema =
|
|
160
|
-
var
|
|
290
|
+
var CapsuleManifestSchema = import_zod2.z.object({ kind: import_zod2.z.literal("CapsuleService"), schemaVersion: import_zod2.z.string().default("1.0").optional(), code: import_zod2.z.string().min(1), name: import_zod2.z.string().min(1), description: import_zod2.z.string().optional(), version: import_zod2.z.string().min(1), runtime: import_zod2.z.enum(["nodejs", "java", "python", "go", "other"]), agentMode: AgentModeSchema, capabilities: import_zod2.z.array(import_zod2.z.union([import_zod2.z.string(), ServiceCapabilitySchema])).optional(), events: import_zod2.z.array(EventMetadataSchema).optional(), labels: import_zod2.z.record(import_zod2.z.string()).optional() }).passthrough();
|
|
291
|
+
var WorkerManifestSchema = CapsuleManifestSchema.extend({
|
|
292
|
+
kind: import_zod2.z.enum(["Worker", "CapsuleService"]).default("Worker")
|
|
293
|
+
});
|
|
294
|
+
var workerManifestSchema = WorkerManifestSchema;
|
|
295
|
+
var HealthReportInputSchema = import_zod2.z.object({ status: HealthStatusSchema, message: import_zod2.z.string().optional(), details: AnyJson.optional() });
|
|
161
296
|
var healthReportInputSchema = HealthReportInputSchema;
|
|
162
|
-
var ConfigItemInputSchema =
|
|
297
|
+
var ConfigItemInputSchema = import_zod2.z.object({ key: import_zod2.z.string(), label: import_zod2.z.string().optional(), type: import_zod2.z.string(), source: import_zod2.z.string().optional(), editable: import_zod2.z.boolean().optional(), sensitive: import_zod2.z.boolean().optional(), valuePreview: import_zod2.z.string().optional(), defaultValue: import_zod2.z.string().optional(), secretRef: import_zod2.z.string().optional() });
|
|
163
298
|
var configItemInputSchema = ConfigItemInputSchema;
|
|
164
|
-
var ActionDefinitionInputSchema =
|
|
299
|
+
var ActionDefinitionInputSchema = import_zod2.z.object({ name: import_zod2.z.string(), label: import_zod2.z.string(), description: import_zod2.z.string().optional(), dangerLevel: import_zod2.z.enum(DangerLevel).default("LOW").optional(), requiresConfirmation: import_zod2.z.boolean().optional(), category: import_zod2.z.string().optional(), order: import_zod2.z.number().int().optional(), inputSchema: AnyJson.optional(), outputSchema: AnyJson.optional(), timeoutSeconds: import_zod2.z.number().int().positive().optional() });
|
|
165
300
|
var actionDefinitionInputSchema = ActionDefinitionInputSchema;
|
|
166
|
-
var ReportedServiceSchema =
|
|
167
|
-
code:
|
|
168
|
-
name:
|
|
169
|
-
description:
|
|
170
|
-
version:
|
|
171
|
-
runtime:
|
|
301
|
+
var ReportedServiceSchema = import_zod2.z.object({
|
|
302
|
+
code: import_zod2.z.string().min(1).max(80),
|
|
303
|
+
name: import_zod2.z.string().min(1).max(200),
|
|
304
|
+
description: import_zod2.z.string().max(2e3).optional(),
|
|
305
|
+
version: import_zod2.z.string().max(80).optional(),
|
|
306
|
+
runtime: import_zod2.z.string().optional(),
|
|
172
307
|
manifest: AnyJson,
|
|
173
|
-
capabilities:
|
|
174
|
-
events:
|
|
308
|
+
capabilities: import_zod2.z.array(ServiceCapabilitySchema).optional(),
|
|
309
|
+
events: import_zod2.z.array(EventMetadataSchema).optional(),
|
|
175
310
|
health: HealthReportInputSchema.optional(),
|
|
176
|
-
configs:
|
|
177
|
-
actions:
|
|
311
|
+
configs: import_zod2.z.array(ConfigItemInputSchema).optional(),
|
|
312
|
+
actions: import_zod2.z.array(ActionDefinitionInputSchema).optional(),
|
|
178
313
|
serviceKind: ServiceKindSchema.optional()
|
|
179
314
|
});
|
|
180
315
|
var reportedServiceSchema = ReportedServiceSchema;
|
|
181
|
-
var
|
|
316
|
+
var ReportedWorkerSchema = ReportedServiceSchema;
|
|
317
|
+
var reportedWorkerSchema = ReportedWorkerSchema;
|
|
318
|
+
var WorkerRuntimeReportSchema = ReportedWorkerSchema;
|
|
319
|
+
var workerRuntimeReportSchema = WorkerRuntimeReportSchema;
|
|
320
|
+
var ServiceReportRequestSchema = import_zod2.z.object({ services: import_zod2.z.array(ReportedServiceSchema).min(1) });
|
|
182
321
|
var serviceReportRequestSchema = ServiceReportRequestSchema;
|
|
183
|
-
var
|
|
184
|
-
var
|
|
322
|
+
var WorkerReportRequestSchema = import_zod2.z.object({ workers: import_zod2.z.array(ReportedWorkerSchema).min(1) });
|
|
323
|
+
var workerReportRequestSchema = WorkerReportRequestSchema;
|
|
324
|
+
var RuntimeKindSchema = import_zod2.z.enum(["nodejs", "java", "python", "go", "other"]);
|
|
325
|
+
var RegisterAgentRequestSchema = import_zod2.z.object({ registrationToken: import_zod2.z.string().startsWith("opstage_reg_"), agent: import_zod2.z.object({ code: import_zod2.z.string(), name: import_zod2.z.string().optional(), mode: AgentModeSchema.default("embedded"), runtime: RuntimeKindSchema.or(import_zod2.z.string()).optional() }), service: ReportedServiceSchema.optional() });
|
|
185
326
|
var registerAgentRequestSchema = RegisterAgentRequestSchema;
|
|
186
|
-
var RegisterAgentResponseSchema =
|
|
187
|
-
var AgentHeartbeatResponseSchema =
|
|
188
|
-
var AgentHeartbeatRequestSchema =
|
|
327
|
+
var RegisterAgentResponseSchema = import_zod2.z.object({ agentId: import_zod2.z.string().startsWith("agt_"), agentToken: import_zod2.z.string().startsWith("opstage_agent_"), heartbeatIntervalSeconds: import_zod2.z.number().int(), commandPollIntervalSeconds: import_zod2.z.number().int() });
|
|
328
|
+
var AgentHeartbeatResponseSchema = import_zod2.z.object({ heartbeatIntervalSeconds: import_zod2.z.number().int(), commandPollIntervalSeconds: import_zod2.z.number().int() });
|
|
329
|
+
var AgentHeartbeatRequestSchema = import_zod2.z.object({ serviceId: import_zod2.z.string().startsWith("svc_").optional(), health: HealthReportInputSchema.optional() });
|
|
189
330
|
var agentHeartbeatRequestSchema = AgentHeartbeatRequestSchema;
|
|
190
|
-
var CapsuleServiceSchema =
|
|
191
|
-
var
|
|
192
|
-
var
|
|
193
|
-
var
|
|
194
|
-
var
|
|
195
|
-
var
|
|
331
|
+
var CapsuleServiceSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("svc_"), agentId: import_zod2.z.string().startsWith("agt_").optional(), code: import_zod2.z.string(), name: import_zod2.z.string(), description: import_zod2.z.string().nullable().optional(), version: import_zod2.z.string().nullable().optional(), runtime: import_zod2.z.string().nullable().optional(), status: CapsuleServiceStatusSchema, healthStatus: HealthStatusSchema.optional(), lastReportedAt: import_zod2.z.string().nullable().optional(), lastHealthAt: import_zod2.z.string().nullable().optional(), createdAt: import_zod2.z.string(), updatedAt: import_zod2.z.string() });
|
|
332
|
+
var WorkerSchema = CapsuleServiceSchema;
|
|
333
|
+
var workerSchema = WorkerSchema;
|
|
334
|
+
var WorkerInstanceSchema = CapsuleServiceSchema;
|
|
335
|
+
var workerInstanceSchema = WorkerInstanceSchema;
|
|
336
|
+
var HealthReportSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("hlr_"), serviceId: import_zod2.z.string().startsWith("svc_"), agentId: import_zod2.z.string().startsWith("agt_").optional(), status: HealthStatusSchema, message: import_zod2.z.string().nullable().optional(), details: AnyJson.optional(), reportedAt: import_zod2.z.string() });
|
|
337
|
+
var ConfigItemSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("cfg_"), serviceId: import_zod2.z.string().startsWith("svc_"), key: import_zod2.z.string(), label: import_zod2.z.string().nullable().optional(), type: import_zod2.z.string(), source: import_zod2.z.string().nullable().optional(), editable: import_zod2.z.boolean().default(false), sensitive: import_zod2.z.boolean(), valuePreview: import_zod2.z.string().nullable().optional(), defaultValue: import_zod2.z.string().nullable().optional(), secretRef: import_zod2.z.string().nullable().optional() });
|
|
338
|
+
var ActionDefinitionSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("act_"), serviceId: import_zod2.z.string().startsWith("svc_"), name: import_zod2.z.string(), label: import_zod2.z.string(), description: import_zod2.z.string().nullable().optional(), dangerLevel: import_zod2.z.enum(DangerLevel), requiresConfirmation: import_zod2.z.boolean(), category: import_zod2.z.string().optional(), order: import_zod2.z.number().int().optional(), inputSchema: AnyJson.optional(), outputSchema: AnyJson.optional(), timeoutSeconds: import_zod2.z.number().int().optional() });
|
|
339
|
+
var CapsuleServiceDetailSchema = CapsuleServiceSchema.extend({ manifest: AnyJson.optional(), health: HealthReportSchema.nullable().optional(), configs: import_zod2.z.array(ConfigItemSchema).optional(), actions: import_zod2.z.array(ActionDefinitionSchema).optional() });
|
|
340
|
+
var WorkerDetailSchema = CapsuleServiceDetailSchema;
|
|
341
|
+
var workerDetailSchema = WorkerDetailSchema;
|
|
342
|
+
var WorkerInstanceDetailSchema = CapsuleServiceDetailSchema;
|
|
343
|
+
var workerInstanceDetailSchema = WorkerInstanceDetailSchema;
|
|
344
|
+
var ActionPrepareResultSchema = import_zod2.z.object({
|
|
196
345
|
action: AnyJson.optional(),
|
|
197
346
|
inputSchema: AnyJson.optional(),
|
|
198
347
|
initialPayload: AnyJson.optional(),
|
|
199
348
|
currentState: AnyJson.optional()
|
|
200
349
|
});
|
|
201
350
|
var actionPrepareResultSchema = ActionPrepareResultSchema;
|
|
202
|
-
var CapsuleBusExperimentalSchema =
|
|
351
|
+
var CapsuleBusExperimentalSchema = import_zod2.z.literal("v0.4-experimental");
|
|
203
352
|
var BusRouteStatus = ["ENABLED", "DISABLED", "DRY_RUN"];
|
|
204
|
-
var BusRouteStatusSchema =
|
|
205
|
-
var BusEventEnvelopeSchema =
|
|
206
|
-
id:
|
|
353
|
+
var BusRouteStatusSchema = import_zod2.z.enum(BusRouteStatus);
|
|
354
|
+
var BusEventEnvelopeSchema = import_zod2.z.object({
|
|
355
|
+
id: import_zod2.z.string().startsWith("bev_").optional(),
|
|
207
356
|
experimental: CapsuleBusExperimentalSchema.default("v0.4-experimental"),
|
|
208
|
-
eventType:
|
|
209
|
-
sourceServiceCode:
|
|
210
|
-
sourceServiceId:
|
|
211
|
-
occurredAt:
|
|
212
|
-
correlationId:
|
|
213
|
-
causationId:
|
|
357
|
+
eventType: import_zod2.z.string().min(1).max(160),
|
|
358
|
+
sourceServiceCode: import_zod2.z.string().min(1).max(80),
|
|
359
|
+
sourceServiceId: import_zod2.z.string().startsWith("svc_").optional(),
|
|
360
|
+
occurredAt: import_zod2.z.string().datetime().optional(),
|
|
361
|
+
correlationId: import_zod2.z.string().min(1).max(160).optional(),
|
|
362
|
+
causationId: import_zod2.z.string().min(1).max(160).optional(),
|
|
214
363
|
payload: AnyJson.default({}).optional(),
|
|
215
364
|
metadata: AnyJson.default({}).optional()
|
|
216
365
|
});
|
|
217
366
|
var PublishBusEventRequestSchema = BusEventEnvelopeSchema.omit({ id: true }).extend({
|
|
218
|
-
routePolicy:
|
|
367
|
+
routePolicy: import_zod2.z.object({ dryRun: import_zod2.z.boolean().optional() }).optional()
|
|
219
368
|
});
|
|
220
|
-
var BusRouteRuleSchema =
|
|
221
|
-
id:
|
|
222
|
-
name:
|
|
223
|
-
description:
|
|
369
|
+
var BusRouteRuleSchema = import_zod2.z.object({
|
|
370
|
+
id: import_zod2.z.string().startsWith("brt_").optional(),
|
|
371
|
+
name: import_zod2.z.string().min(1).max(160),
|
|
372
|
+
description: import_zod2.z.string().max(1e3).optional(),
|
|
224
373
|
status: BusRouteStatusSchema.optional().default("DISABLED"),
|
|
225
|
-
match:
|
|
226
|
-
eventType:
|
|
227
|
-
sourceServiceCode:
|
|
374
|
+
match: import_zod2.z.object({
|
|
375
|
+
eventType: import_zod2.z.string().min(1).max(160),
|
|
376
|
+
sourceServiceCode: import_zod2.z.string().min(1).max(80).optional()
|
|
228
377
|
}),
|
|
229
|
-
target:
|
|
230
|
-
serviceCode:
|
|
231
|
-
actionName:
|
|
378
|
+
target: import_zod2.z.object({
|
|
379
|
+
serviceCode: import_zod2.z.string().min(1).max(80),
|
|
380
|
+
actionName: import_zod2.z.string().min(1).max(128)
|
|
232
381
|
}),
|
|
233
382
|
inputMapping: AnyJson.default({}).optional(),
|
|
234
383
|
metadata: AnyJson.default({}).optional()
|
|
235
384
|
});
|
|
236
385
|
var CreateBusRouteRuleRequestSchema = BusRouteRuleSchema.omit({ id: true });
|
|
237
|
-
var BusCommandRequestSchema =
|
|
238
|
-
commandId:
|
|
239
|
-
commandType:
|
|
240
|
-
targetService:
|
|
241
|
-
actionName:
|
|
242
|
-
sourceEventId:
|
|
386
|
+
var BusCommandRequestSchema = import_zod2.z.object({
|
|
387
|
+
commandId: import_zod2.z.string().startsWith("cmd_").optional(),
|
|
388
|
+
commandType: import_zod2.z.literal("ACTION_EXECUTE").default("ACTION_EXECUTE"),
|
|
389
|
+
targetService: import_zod2.z.string().min(1).max(80),
|
|
390
|
+
actionName: import_zod2.z.string().min(1).max(128),
|
|
391
|
+
sourceEventId: import_zod2.z.string().startsWith("bev_").optional(),
|
|
243
392
|
payload: AnyJson.default({}).optional(),
|
|
244
|
-
metadata:
|
|
245
|
-
routingRuleId:
|
|
246
|
-
correlationId:
|
|
247
|
-
}).catchall(
|
|
393
|
+
metadata: import_zod2.z.object({
|
|
394
|
+
routingRuleId: import_zod2.z.string().startsWith("brt_").optional(),
|
|
395
|
+
correlationId: import_zod2.z.string().min(1).max(160).optional()
|
|
396
|
+
}).catchall(import_zod2.z.any()).optional()
|
|
248
397
|
});
|
|
249
398
|
var busCommandRequestSchema = BusCommandRequestSchema;
|
|
250
399
|
var BusRoutingRuleSchema = BusRouteRuleSchema;
|
|
251
400
|
var busRoutingRuleSchema = BusRoutingRuleSchema;
|
|
252
|
-
var BusRoutedCommandSchema =
|
|
253
|
-
routeId:
|
|
254
|
-
commandId:
|
|
255
|
-
dryRun:
|
|
256
|
-
targetServiceCode:
|
|
257
|
-
actionName:
|
|
258
|
-
status:
|
|
259
|
-
errorCode:
|
|
260
|
-
errorMessage:
|
|
401
|
+
var BusRoutedCommandSchema = import_zod2.z.object({
|
|
402
|
+
routeId: import_zod2.z.string().startsWith("brt_"),
|
|
403
|
+
commandId: import_zod2.z.string().startsWith("cmd_").optional(),
|
|
404
|
+
dryRun: import_zod2.z.boolean(),
|
|
405
|
+
targetServiceCode: import_zod2.z.string(),
|
|
406
|
+
actionName: import_zod2.z.string(),
|
|
407
|
+
status: import_zod2.z.enum(["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]),
|
|
408
|
+
errorCode: import_zod2.z.string().optional(),
|
|
409
|
+
errorMessage: import_zod2.z.string().optional()
|
|
261
410
|
});
|
|
262
|
-
var PublishBusEventResponseSchema =
|
|
263
|
-
eventId:
|
|
411
|
+
var PublishBusEventResponseSchema = import_zod2.z.object({
|
|
412
|
+
eventId: import_zod2.z.string().startsWith("bev_"),
|
|
264
413
|
experimental: CapsuleBusExperimentalSchema,
|
|
265
|
-
routedCommands:
|
|
414
|
+
routedCommands: import_zod2.z.array(BusRoutedCommandSchema)
|
|
266
415
|
});
|
|
267
416
|
var BusEventRecordSchema = BusEventEnvelopeSchema.extend({
|
|
268
|
-
id:
|
|
269
|
-
agentId:
|
|
270
|
-
acceptedAt:
|
|
271
|
-
routeCount:
|
|
417
|
+
id: import_zod2.z.string().startsWith("bev_"),
|
|
418
|
+
agentId: import_zod2.z.string().startsWith("agt_"),
|
|
419
|
+
acceptedAt: import_zod2.z.string(),
|
|
420
|
+
routeCount: import_zod2.z.number().int()
|
|
272
421
|
});
|
|
273
422
|
var BusErrorCode = {
|
|
274
423
|
CAPSULE_BUS_DISABLED: "CAPSULE_BUS_DISABLED",
|
|
@@ -280,19 +429,19 @@ var publishBusEventResponseSchema = PublishBusEventResponseSchema;
|
|
|
280
429
|
var busEventEnvelopeSchema = BusEventEnvelopeSchema;
|
|
281
430
|
var busRouteRuleSchema = BusRouteRuleSchema;
|
|
282
431
|
var createBusRouteRuleRequestSchema = CreateBusRouteRuleRequestSchema;
|
|
283
|
-
var CreateActionCommandRequestSchema =
|
|
432
|
+
var CreateActionCommandRequestSchema = import_zod2.z.object({ payload: AnyJson.optional(), confirmation: import_zod2.z.boolean().optional() });
|
|
284
433
|
var createActionCommandRequestSchema = CreateActionCommandRequestSchema;
|
|
285
|
-
var CommandTypeSchema =
|
|
286
|
-
var CommandSchema =
|
|
287
|
-
var ReportCommandResultRequestSchema =
|
|
434
|
+
var CommandTypeSchema = import_zod2.z.enum(["ACTION_PREPARE", "ACTION_EXECUTE"]);
|
|
435
|
+
var CommandSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("cmd_"), agentId: import_zod2.z.string().startsWith("agt_"), serviceId: import_zod2.z.string().startsWith("svc_"), type: CommandTypeSchema, actionName: import_zod2.z.string(), status: CommandStatusSchema, payload: AnyJson.optional(), createdByUserId: import_zod2.z.string().startsWith("usr_").nullable().optional(), createdAt: import_zod2.z.string(), startedAt: import_zod2.z.string().nullable().optional(), completedAt: import_zod2.z.string().nullable().optional(), expiresAt: import_zod2.z.string().nullable().optional() });
|
|
436
|
+
var ReportCommandResultRequestSchema = import_zod2.z.object({ success: import_zod2.z.boolean(), message: import_zod2.z.string().optional(), data: AnyJson.optional(), error: AnyJson.optional(), startedAt: import_zod2.z.string().optional(), finishedAt: import_zod2.z.string().optional() });
|
|
288
437
|
var reportCommandResultRequestSchema = ReportCommandResultRequestSchema;
|
|
289
|
-
var CommandResultSchema =
|
|
438
|
+
var CommandResultSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("crs_"), commandId: import_zod2.z.string().startsWith("cmd_"), success: import_zod2.z.boolean(), message: import_zod2.z.string().nullable().optional(), data: AnyJson.optional(), error: AnyJson.optional(), reportedAt: import_zod2.z.string() });
|
|
290
439
|
var CommandDetailSchema = CommandSchema.extend({ result: CommandResultSchema.nullable().optional() });
|
|
291
|
-
var AuditEventSchema =
|
|
292
|
-
var DashboardSummarySchema =
|
|
293
|
-
var SystemHealthSchema =
|
|
294
|
-
var SystemVersionSchema =
|
|
295
|
-
var ListQueryBase =
|
|
440
|
+
var AuditEventSchema = import_zod2.z.object({ id: import_zod2.z.string().startsWith("aud_"), actorType: import_zod2.z.enum(AuditActorType), actorId: import_zod2.z.string().nullable().optional(), action: import_zod2.z.string(), targetType: import_zod2.z.string().nullable().optional(), targetId: import_zod2.z.string().nullable().optional(), result: import_zod2.z.enum(AuditResult), message: import_zod2.z.string().nullable().optional(), metadata: AnyJson.optional(), createdAt: import_zod2.z.string() });
|
|
441
|
+
var DashboardSummarySchema = import_zod2.z.object({ agentCounts: import_zod2.z.record(import_zod2.z.number().int()), serviceCounts: import_zod2.z.record(import_zod2.z.number().int()), commandCounts: import_zod2.z.record(import_zod2.z.number().int()), recentCommands: import_zod2.z.array(CommandSchema).optional(), recentAuditEvents: import_zod2.z.array(AuditEventSchema).optional() });
|
|
442
|
+
var SystemHealthSchema = import_zod2.z.object({ status: import_zod2.z.enum(["UP", "DEGRADED", "DOWN"]), timestamp: import_zod2.z.string(), version: import_zod2.z.string(), edition: import_zod2.z.literal("ce"), database: import_zod2.z.object({ status: import_zod2.z.enum(["UP", "DEGRADED", "DOWN"]), kind: import_zod2.z.enum(["sqlite", "postgres", "mysql"]).optional(), latencyMs: import_zod2.z.number().int().optional() }), uptimeSeconds: import_zod2.z.number().int().optional() });
|
|
443
|
+
var SystemVersionSchema = import_zod2.z.object({ version: import_zod2.z.string(), edition: import_zod2.z.literal("ce"), commit: import_zod2.z.string().optional(), buildTime: import_zod2.z.string().optional() });
|
|
444
|
+
var ListQueryBase = import_zod2.z.object({ page: import_zod2.z.coerce.number().int().min(1).default(1), pageSize: import_zod2.z.coerce.number().int().min(1).max(100).default(20), sort: import_zod2.z.string().optional() });
|
|
296
445
|
var HttpError = class extends Error {
|
|
297
446
|
constructor(httpStatus, code, publicMessage, details) {
|
|
298
447
|
super(publicMessage);
|
|
@@ -331,7 +480,8 @@ var ErrorCode = {
|
|
|
331
480
|
TOKEN_REVOKED: "TOKEN_REVOKED",
|
|
332
481
|
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
333
482
|
AGENT_REVOKED: "AGENT_REVOKED",
|
|
334
|
-
AGENT_DISABLED: "AGENT_DISABLED"
|
|
483
|
+
AGENT_DISABLED: "AGENT_DISABLED",
|
|
484
|
+
CAPSULE_SERVICE_CODE_TAKEN: "CAPSULE_SERVICE_CODE_TAKEN"
|
|
335
485
|
};
|
|
336
486
|
// Annotate the CommonJS export names for ESM import in node:
|
|
337
487
|
0 && (module.exports = {
|
|
@@ -342,6 +492,7 @@ var ErrorCode = {
|
|
|
342
492
|
AdminSessionSchema,
|
|
343
493
|
AgentHeartbeatRequestSchema,
|
|
344
494
|
AgentHeartbeatResponseSchema,
|
|
495
|
+
AgentHeartbeatSchema,
|
|
345
496
|
AgentMode,
|
|
346
497
|
AgentModeSchema,
|
|
347
498
|
AgentSchema,
|
|
@@ -360,12 +511,14 @@ var ErrorCode = {
|
|
|
360
511
|
BusRouteStatusSchema,
|
|
361
512
|
BusRoutedCommandSchema,
|
|
362
513
|
BusRoutingRuleSchema,
|
|
514
|
+
CE_CONTRACT_VERSION,
|
|
363
515
|
CapsuleBusExperimentalSchema,
|
|
364
516
|
CapsuleManifestSchema,
|
|
365
517
|
CapsuleServiceDetailSchema,
|
|
366
518
|
CapsuleServiceSchema,
|
|
367
519
|
CapsuleServiceStatus,
|
|
368
520
|
CapsuleServiceStatusSchema,
|
|
521
|
+
CeErrorCode,
|
|
369
522
|
CommandDetailSchema,
|
|
370
523
|
CommandResultSchema,
|
|
371
524
|
CommandSchema,
|
|
@@ -374,6 +527,9 @@ var ErrorCode = {
|
|
|
374
527
|
CommandTypeSchema,
|
|
375
528
|
ConfigItemInputSchema,
|
|
376
529
|
ConfigItemSchema,
|
|
530
|
+
ConversationMessageSchema,
|
|
531
|
+
ConversationTargetType,
|
|
532
|
+
ConversationTargetTypeSchema,
|
|
377
533
|
CreateActionCommandRequestSchema,
|
|
378
534
|
CreateBusRouteRuleRequestSchema,
|
|
379
535
|
CreateRegistrationTokenRequestSchema,
|
|
@@ -382,6 +538,7 @@ var ErrorCode = {
|
|
|
382
538
|
DangerLevelSchema,
|
|
383
539
|
DashboardSummarySchema,
|
|
384
540
|
ErrorCode,
|
|
541
|
+
ErrorModelSchema,
|
|
385
542
|
EventMetadataSchema,
|
|
386
543
|
HealthReportInputSchema,
|
|
387
544
|
HealthReportSchema,
|
|
@@ -389,6 +546,10 @@ var ErrorCode = {
|
|
|
389
546
|
HealthStatusSchema,
|
|
390
547
|
HttpError,
|
|
391
548
|
ListQueryBase,
|
|
549
|
+
MessageSenderType,
|
|
550
|
+
MessageSenderTypeSchema,
|
|
551
|
+
MessageType,
|
|
552
|
+
MessageTypeSchema,
|
|
392
553
|
PublishBusEventRequestSchema,
|
|
393
554
|
PublishBusEventResponseSchema,
|
|
394
555
|
RegisterAgentRequestSchema,
|
|
@@ -396,16 +557,30 @@ var ErrorCode = {
|
|
|
396
557
|
RegistrationTokenSchema,
|
|
397
558
|
ReportCommandResultRequestSchema,
|
|
398
559
|
ReportedServiceSchema,
|
|
560
|
+
ReportedWorkerSchema,
|
|
399
561
|
RuntimeKindSchema,
|
|
400
562
|
ServiceCapabilitySchema,
|
|
563
|
+
ServiceInstanceHealth,
|
|
564
|
+
ServiceInstanceHealthSchema,
|
|
565
|
+
ServiceInstanceSchema,
|
|
401
566
|
ServiceKind,
|
|
402
567
|
ServiceKindSchema,
|
|
568
|
+
ServiceManifestSchema,
|
|
403
569
|
ServiceReportRequestSchema,
|
|
404
570
|
SystemHealthSchema,
|
|
405
571
|
SystemVersionSchema,
|
|
406
572
|
TokenStatus,
|
|
407
573
|
UserRole,
|
|
408
574
|
UserSchema,
|
|
575
|
+
WorkerDetailSchema,
|
|
576
|
+
WorkerInstanceDetailSchema,
|
|
577
|
+
WorkerInstanceSchema,
|
|
578
|
+
WorkerManifestSchema,
|
|
579
|
+
WorkerReportRequestSchema,
|
|
580
|
+
WorkerRuntimeReportSchema,
|
|
581
|
+
WorkerSchema,
|
|
582
|
+
WorkerStatus,
|
|
583
|
+
WorkerStatusSchema,
|
|
409
584
|
actionDefinitionInputSchema,
|
|
410
585
|
actionPrepareResultSchema,
|
|
411
586
|
adminLoginRequestSchema,
|
|
@@ -428,9 +603,17 @@ var ErrorCode = {
|
|
|
428
603
|
registerAgentRequestSchema,
|
|
429
604
|
reportCommandResultRequestSchema,
|
|
430
605
|
reportedServiceSchema,
|
|
606
|
+
reportedWorkerSchema,
|
|
431
607
|
resetUserPasswordRequestSchema,
|
|
432
608
|
serviceCapabilitySchema,
|
|
433
609
|
serviceReportRequestSchema,
|
|
434
610
|
updateUserRequestSchema,
|
|
611
|
+
workerDetailSchema,
|
|
612
|
+
workerInstanceDetailSchema,
|
|
613
|
+
workerInstanceSchema,
|
|
614
|
+
workerManifestSchema,
|
|
615
|
+
workerReportRequestSchema,
|
|
616
|
+
workerRuntimeReportSchema,
|
|
617
|
+
workerSchema,
|
|
435
618
|
z
|
|
436
619
|
});
|