recoder-a2a-sdk 1.0.0 → 1.0.1

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.
Files changed (73) hide show
  1. package/dist/audit-event-Bhf9-AJV.d.mts +123 -0
  2. package/dist/audit-event-D8PTRp8M.d.ts +123 -0
  3. package/dist/audit-helpers.d.mts +2 -2
  4. package/dist/audit-helpers.d.ts +2 -2
  5. package/dist/audit-helpers.js +3 -82
  6. package/dist/audit-helpers.js.map +1 -1
  7. package/dist/audit-helpers.mjs +2 -2
  8. package/dist/{chunk-MAA7JZ2Q.mjs → chunk-6EHW6C4A.mjs} +2 -2
  9. package/dist/chunk-6EHW6C4A.mjs.map +1 -0
  10. package/dist/{chunk-7GY5FFBI.mjs → chunk-AWHOY6CI.mjs} +2 -2
  11. package/dist/chunk-AWHOY6CI.mjs.map +1 -0
  12. package/dist/{chunk-AGD6G5N6.mjs → chunk-FSPAU2U3.mjs} +2 -2
  13. package/dist/chunk-FSPAU2U3.mjs.map +1 -0
  14. package/dist/{chunk-WLNW7Y2H.mjs → chunk-KTGZQV57.mjs} +4 -88
  15. package/dist/chunk-KTGZQV57.mjs.map +1 -0
  16. package/dist/{chunk-JOZQDX7A.mjs → chunk-MJ45255C.mjs} +2 -2
  17. package/dist/chunk-MJ45255C.mjs.map +1 -0
  18. package/dist/{chunk-BWCRJDUB.mjs → chunk-V4EHWWUR.mjs} +2 -2
  19. package/dist/chunk-V4EHWWUR.mjs.map +1 -0
  20. package/dist/envelope-builders.d.mts +2 -2
  21. package/dist/envelope-builders.d.ts +2 -2
  22. package/dist/envelope-builders.js +3 -74
  23. package/dist/envelope-builders.js.map +1 -1
  24. package/dist/envelope-builders.mjs +2 -2
  25. package/dist/error-mapping.d.mts +3 -1
  26. package/dist/error-mapping.d.ts +3 -1
  27. package/dist/error-mapping.js +3 -74
  28. package/dist/error-mapping.js.map +1 -1
  29. package/dist/error-mapping.mjs +2 -2
  30. package/dist/error-taxonomy-CQgrKp9z.d.mts +102 -0
  31. package/dist/error-taxonomy-CQgrKp9z.d.ts +102 -0
  32. package/dist/index.d.mts +4 -2
  33. package/dist/index.d.ts +4 -2
  34. package/dist/index.js +3 -87
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +6 -6
  37. package/dist/schemas/index.d.mts +4 -0
  38. package/dist/schemas/index.d.ts +4 -0
  39. package/dist/schemas/index.js +601 -0
  40. package/dist/schemas/index.js.map +1 -0
  41. package/dist/schemas/index.mjs +53 -0
  42. package/dist/schemas/index.mjs.map +1 -0
  43. package/dist/state-mapping.d.mts +2 -1
  44. package/dist/state-mapping.d.ts +2 -1
  45. package/dist/state-mapping.js +3 -74
  46. package/dist/state-mapping.js.map +1 -1
  47. package/dist/state-mapping.mjs +2 -2
  48. package/dist/task-envelope-B3X3seKp.d.ts +130 -0
  49. package/dist/task-envelope-QkecqlWq.d.mts +130 -0
  50. package/dist/types-Bt96SgOS.d.mts +34 -0
  51. package/dist/types-Bt96SgOS.d.ts +34 -0
  52. package/dist/validation.d.mts +4 -1
  53. package/dist/validation.d.ts +4 -1
  54. package/dist/validation.js +3 -74
  55. package/dist/validation.js.map +1 -1
  56. package/dist/validation.mjs +2 -2
  57. package/package.json +74 -16
  58. package/dist/chunk-7GY5FFBI.mjs.map +0 -1
  59. package/dist/chunk-AGD6G5N6.mjs.map +0 -1
  60. package/dist/chunk-BWCRJDUB.mjs.map +0 -1
  61. package/dist/chunk-DPFH2JIC.mjs +0 -141
  62. package/dist/chunk-DPFH2JIC.mjs.map +0 -1
  63. package/dist/chunk-EP2GHC3R.mjs +0 -116
  64. package/dist/chunk-EP2GHC3R.mjs.map +0 -1
  65. package/dist/chunk-JOZQDX7A.mjs.map +0 -1
  66. package/dist/chunk-MAA7JZ2Q.mjs.map +0 -1
  67. package/dist/chunk-QVOOBAUA.mjs +0 -140
  68. package/dist/chunk-QVOOBAUA.mjs.map +0 -1
  69. package/dist/chunk-T5GUBIFZ.mjs +0 -358
  70. package/dist/chunk-T5GUBIFZ.mjs.map +0 -1
  71. package/dist/chunk-WLNW7Y2H.mjs.map +0 -1
  72. package/dist/chunk-XSELW6DU.mjs +0 -356
  73. package/dist/chunk-XSELW6DU.mjs.map +0 -1
@@ -0,0 +1,123 @@
1
+ import { R as RecoderAgentPlatform } from './types-Bt96SgOS.mjs';
2
+
3
+ /**
4
+ * @module audit-event
5
+ *
6
+ * Canonical AuditEvent schema for the Recoder A2A control plane.
7
+ */
8
+
9
+ /** Current version of the AuditEvent schema. */
10
+ declare const AUDIT_EVENT_VERSION: "1.0.0";
11
+ declare const AuditEventTypeEnum: {
12
+ readonly TaskSubmitted: "task.submitted";
13
+ readonly TaskStarted: "task.started";
14
+ readonly TaskProgress: "task.progress";
15
+ readonly TaskInputRequired: "task.input_required";
16
+ readonly TaskCompleted: "task.completed";
17
+ readonly TaskFailed: "task.failed";
18
+ readonly TaskCancelled: "task.cancelled";
19
+ readonly PolicyChecked: "policy.checked";
20
+ readonly PolicyApproved: "policy.approved";
21
+ readonly PolicyDenied: "policy.denied";
22
+ readonly ConnectorAttached: "connector.attached";
23
+ readonly ConnectorDetached: "connector.detached";
24
+ readonly ConnectorHealth: "connector.health";
25
+ readonly ConnectorError: "connector.error";
26
+ readonly AgentRegistered: "agent.registered";
27
+ readonly AgentUnregistered: "agent.unregistered";
28
+ readonly AgentUpdated: "agent.updated";
29
+ readonly ChannelCreated: "collaboration.channel_created";
30
+ readonly ThreadCreated: "collaboration.thread_created";
31
+ readonly MessageSent: "collaboration.message_sent";
32
+ readonly SystemConfig: "system.config";
33
+ readonly SystemError: "system.error";
34
+ };
35
+ /** Union of all valid audit event type string values. */
36
+ type AuditEventType = (typeof AuditEventTypeEnum)[keyof typeof AuditEventTypeEnum];
37
+ /** Ordered list of all event types (useful for validation / UI dropdowns). */
38
+ declare const AUDIT_EVENT_TYPES: readonly AuditEventType[];
39
+ declare const AuditActorKindEnum: {
40
+ readonly Agent: "agent";
41
+ readonly User: "user";
42
+ readonly System: "system";
43
+ readonly Connector: "connector";
44
+ };
45
+ type AuditActorKind = (typeof AuditActorKindEnum)[keyof typeof AuditActorKindEnum];
46
+ interface AuditActor {
47
+ kind: AuditActorKind;
48
+ id: string;
49
+ name?: string;
50
+ platform?: RecoderAgentPlatform;
51
+ metadata?: Record<string, unknown>;
52
+ }
53
+ declare const AuditTargetKindEnum: {
54
+ readonly Task: "task";
55
+ readonly Agent: "agent";
56
+ readonly Connector: "connector";
57
+ readonly Channel: "channel";
58
+ readonly Thread: "thread";
59
+ readonly Message: "message";
60
+ readonly Policy: "policy";
61
+ readonly Workspace: "workspace";
62
+ readonly System: "system";
63
+ };
64
+ type AuditTargetKind = (typeof AuditTargetKindEnum)[keyof typeof AuditTargetKindEnum];
65
+ interface AuditTarget {
66
+ kind: AuditTargetKind;
67
+ id: string;
68
+ name?: string;
69
+ metadata?: Record<string, unknown>;
70
+ }
71
+ interface AuditPolicyContext {
72
+ action: string;
73
+ rule: string;
74
+ approved: boolean;
75
+ reason: string;
76
+ agent_id: string;
77
+ details?: Record<string, unknown>;
78
+ }
79
+ declare const AuditSeverityEnum: {
80
+ readonly Info: "info";
81
+ readonly Warning: "warning";
82
+ readonly Error: "error";
83
+ readonly Critical: "critical";
84
+ };
85
+ type AuditSeverity = (typeof AuditSeverityEnum)[keyof typeof AuditSeverityEnum];
86
+ interface AuditEvent {
87
+ schema_version: string;
88
+ id: string;
89
+ event_type: AuditEventType;
90
+ severity?: AuditSeverity;
91
+ actor: AuditActor;
92
+ target: AuditTarget;
93
+ trace_id: string;
94
+ parent_event_id?: string;
95
+ workspace_id: string;
96
+ thread_id?: string;
97
+ task_id?: string;
98
+ timestamp: string;
99
+ duration_ms?: number;
100
+ policy?: AuditPolicyContext;
101
+ metadata?: Record<string, unknown>;
102
+ tags?: string[];
103
+ }
104
+ interface CreateAuditEventInput {
105
+ id: string;
106
+ event_type: AuditEventType;
107
+ actor: AuditActor;
108
+ target: AuditTarget;
109
+ trace_id: string;
110
+ workspace_id: string;
111
+ thread_id?: string;
112
+ task_id?: string;
113
+ parent_event_id?: string;
114
+ severity?: AuditSeverity;
115
+ policy?: AuditPolicyContext;
116
+ metadata?: Record<string, unknown>;
117
+ tags?: string[];
118
+ duration_ms?: number;
119
+ now?: string;
120
+ }
121
+ declare function createAuditEvent(input: CreateAuditEventInput): AuditEvent;
122
+
123
+ export { AUDIT_EVENT_TYPES as A, type CreateAuditEventInput as C, AUDIT_EVENT_VERSION as a, type AuditActor as b, type AuditActorKind as c, AuditActorKindEnum as d, type AuditEvent as e, type AuditEventType as f, AuditEventTypeEnum as g, type AuditPolicyContext as h, type AuditSeverity as i, AuditSeverityEnum as j, type AuditTarget as k, type AuditTargetKind as l, AuditTargetKindEnum as m, createAuditEvent as n };
@@ -0,0 +1,123 @@
1
+ import { R as RecoderAgentPlatform } from './types-Bt96SgOS.js';
2
+
3
+ /**
4
+ * @module audit-event
5
+ *
6
+ * Canonical AuditEvent schema for the Recoder A2A control plane.
7
+ */
8
+
9
+ /** Current version of the AuditEvent schema. */
10
+ declare const AUDIT_EVENT_VERSION: "1.0.0";
11
+ declare const AuditEventTypeEnum: {
12
+ readonly TaskSubmitted: "task.submitted";
13
+ readonly TaskStarted: "task.started";
14
+ readonly TaskProgress: "task.progress";
15
+ readonly TaskInputRequired: "task.input_required";
16
+ readonly TaskCompleted: "task.completed";
17
+ readonly TaskFailed: "task.failed";
18
+ readonly TaskCancelled: "task.cancelled";
19
+ readonly PolicyChecked: "policy.checked";
20
+ readonly PolicyApproved: "policy.approved";
21
+ readonly PolicyDenied: "policy.denied";
22
+ readonly ConnectorAttached: "connector.attached";
23
+ readonly ConnectorDetached: "connector.detached";
24
+ readonly ConnectorHealth: "connector.health";
25
+ readonly ConnectorError: "connector.error";
26
+ readonly AgentRegistered: "agent.registered";
27
+ readonly AgentUnregistered: "agent.unregistered";
28
+ readonly AgentUpdated: "agent.updated";
29
+ readonly ChannelCreated: "collaboration.channel_created";
30
+ readonly ThreadCreated: "collaboration.thread_created";
31
+ readonly MessageSent: "collaboration.message_sent";
32
+ readonly SystemConfig: "system.config";
33
+ readonly SystemError: "system.error";
34
+ };
35
+ /** Union of all valid audit event type string values. */
36
+ type AuditEventType = (typeof AuditEventTypeEnum)[keyof typeof AuditEventTypeEnum];
37
+ /** Ordered list of all event types (useful for validation / UI dropdowns). */
38
+ declare const AUDIT_EVENT_TYPES: readonly AuditEventType[];
39
+ declare const AuditActorKindEnum: {
40
+ readonly Agent: "agent";
41
+ readonly User: "user";
42
+ readonly System: "system";
43
+ readonly Connector: "connector";
44
+ };
45
+ type AuditActorKind = (typeof AuditActorKindEnum)[keyof typeof AuditActorKindEnum];
46
+ interface AuditActor {
47
+ kind: AuditActorKind;
48
+ id: string;
49
+ name?: string;
50
+ platform?: RecoderAgentPlatform;
51
+ metadata?: Record<string, unknown>;
52
+ }
53
+ declare const AuditTargetKindEnum: {
54
+ readonly Task: "task";
55
+ readonly Agent: "agent";
56
+ readonly Connector: "connector";
57
+ readonly Channel: "channel";
58
+ readonly Thread: "thread";
59
+ readonly Message: "message";
60
+ readonly Policy: "policy";
61
+ readonly Workspace: "workspace";
62
+ readonly System: "system";
63
+ };
64
+ type AuditTargetKind = (typeof AuditTargetKindEnum)[keyof typeof AuditTargetKindEnum];
65
+ interface AuditTarget {
66
+ kind: AuditTargetKind;
67
+ id: string;
68
+ name?: string;
69
+ metadata?: Record<string, unknown>;
70
+ }
71
+ interface AuditPolicyContext {
72
+ action: string;
73
+ rule: string;
74
+ approved: boolean;
75
+ reason: string;
76
+ agent_id: string;
77
+ details?: Record<string, unknown>;
78
+ }
79
+ declare const AuditSeverityEnum: {
80
+ readonly Info: "info";
81
+ readonly Warning: "warning";
82
+ readonly Error: "error";
83
+ readonly Critical: "critical";
84
+ };
85
+ type AuditSeverity = (typeof AuditSeverityEnum)[keyof typeof AuditSeverityEnum];
86
+ interface AuditEvent {
87
+ schema_version: string;
88
+ id: string;
89
+ event_type: AuditEventType;
90
+ severity?: AuditSeverity;
91
+ actor: AuditActor;
92
+ target: AuditTarget;
93
+ trace_id: string;
94
+ parent_event_id?: string;
95
+ workspace_id: string;
96
+ thread_id?: string;
97
+ task_id?: string;
98
+ timestamp: string;
99
+ duration_ms?: number;
100
+ policy?: AuditPolicyContext;
101
+ metadata?: Record<string, unknown>;
102
+ tags?: string[];
103
+ }
104
+ interface CreateAuditEventInput {
105
+ id: string;
106
+ event_type: AuditEventType;
107
+ actor: AuditActor;
108
+ target: AuditTarget;
109
+ trace_id: string;
110
+ workspace_id: string;
111
+ thread_id?: string;
112
+ task_id?: string;
113
+ parent_event_id?: string;
114
+ severity?: AuditSeverity;
115
+ policy?: AuditPolicyContext;
116
+ metadata?: Record<string, unknown>;
117
+ tags?: string[];
118
+ duration_ms?: number;
119
+ now?: string;
120
+ }
121
+ declare function createAuditEvent(input: CreateAuditEventInput): AuditEvent;
122
+
123
+ export { AUDIT_EVENT_TYPES as A, type CreateAuditEventInput as C, AUDIT_EVENT_VERSION as a, type AuditActor as b, type AuditActorKind as c, AuditActorKindEnum as d, type AuditEvent as e, type AuditEventType as f, AuditEventTypeEnum as g, type AuditPolicyContext as h, type AuditSeverity as i, AuditSeverityEnum as j, type AuditTarget as k, type AuditTargetKind as l, AuditTargetKindEnum as m, createAuditEvent as n };
@@ -1,5 +1,5 @@
1
- import { AuditEvent } from '@recoder/shared/a2a/schemas';
2
- import { RecoderAgentPlatform } from '@recoder/shared/a2a';
1
+ import { R as RecoderAgentPlatform } from './types-Bt96SgOS.mjs';
2
+ import { e as AuditEvent } from './audit-event-Bhf9-AJV.mjs';
3
3
 
4
4
  /**
5
5
  * @module audit-helpers
@@ -1,5 +1,5 @@
1
- import { AuditEvent } from '@recoder/shared/a2a/schemas';
2
- import { RecoderAgentPlatform } from '@recoder/shared/a2a';
1
+ import { R as RecoderAgentPlatform } from './types-Bt96SgOS.js';
2
+ import { e as AuditEvent } from './audit-event-D8PTRp8M.js';
3
3
 
4
4
  /**
5
5
  * @module audit-helpers
@@ -37,7 +37,7 @@ __export(audit_helpers_exports, {
37
37
  });
38
38
  module.exports = __toCommonJS(audit_helpers_exports);
39
39
 
40
- // ../../shared/src/a2a/schemas/task-envelope.ts
40
+ // src/schemas/task-envelope.ts
41
41
  var TaskStateEnum = {
42
42
  /** Task has been created and is awaiting execution. */
43
43
  Submitted: "submitted",
@@ -79,69 +79,43 @@ var ALLOWED_STATE_TRANSITIONS = {
79
79
  [TaskStateEnum.Cancelled]: []
80
80
  };
81
81
 
82
- // ../../shared/src/a2a/schemas/audit-event.ts
82
+ // src/schemas/audit-event.ts
83
83
  var AUDIT_EVENT_VERSION = "1.0.0";
84
84
  var AuditEventTypeEnum = {
85
85
  // -- task lifecycle ---------------------------------------------------------
86
- /** A new task was submitted. */
87
86
  TaskSubmitted: "task.submitted",
88
- /** Task execution started. */
89
87
  TaskStarted: "task.started",
90
- /** Task made progress (intermediate update). */
91
88
  TaskProgress: "task.progress",
92
- /** Assignee agent needs additional input. */
93
89
  TaskInputRequired: "task.input_required",
94
- /** Task completed successfully. */
95
90
  TaskCompleted: "task.completed",
96
- /** Task failed with an error. */
97
91
  TaskFailed: "task.failed",
98
- /** Task was cancelled. */
99
92
  TaskCancelled: "task.cancelled",
100
93
  // -- policy decisions -------------------------------------------------------
101
- /** A policy check was performed. */
102
94
  PolicyChecked: "policy.checked",
103
- /** A policy action was approved (auto or prompt). */
104
95
  PolicyApproved: "policy.approved",
105
- /** A policy action was denied. */
106
96
  PolicyDenied: "policy.denied",
107
97
  // -- connector events -------------------------------------------------------
108
- /** A connector was attached to an agent. */
109
98
  ConnectorAttached: "connector.attached",
110
- /** A connector was detached from an agent. */
111
99
  ConnectorDetached: "connector.detached",
112
- /** A connector emitted a diagnostic or health event. */
113
100
  ConnectorHealth: "connector.health",
114
- /** A connector encountered an error. */
115
101
  ConnectorError: "connector.error",
116
102
  // -- agent registry ---------------------------------------------------------
117
- /** An agent was registered. */
118
103
  AgentRegistered: "agent.registered",
119
- /** An agent was unregistered. */
120
104
  AgentUnregistered: "agent.unregistered",
121
- /** An agent's capabilities were updated. */
122
105
  AgentUpdated: "agent.updated",
123
106
  // -- collaboration ----------------------------------------------------------
124
- /** A collaboration channel was created. */
125
107
  ChannelCreated: "collaboration.channel_created",
126
- /** A collaboration thread was created. */
127
108
  ThreadCreated: "collaboration.thread_created",
128
- /** A message was sent in a collaboration thread. */
129
109
  MessageSent: "collaboration.message_sent",
130
110
  // -- system -----------------------------------------------------------------
131
- /** A system-level configuration change. */
132
111
  SystemConfig: "system.config",
133
- /** A system-level error or warning. */
134
112
  SystemError: "system.error"
135
113
  };
136
114
  var AUDIT_EVENT_TYPES = Object.values(AuditEventTypeEnum);
137
115
  var AuditActorKindEnum = {
138
- /** An AI agent. */
139
116
  Agent: "agent",
140
- /** A human user. */
141
117
  User: "user",
142
- /** An internal system service (e.g. policy engine, scheduler). */
143
118
  System: "system",
144
- /** A connector/adapter. */
145
119
  Connector: "connector"
146
120
  };
147
121
  var AuditTargetKindEnum = {
@@ -156,13 +130,9 @@ var AuditTargetKindEnum = {
156
130
  System: "system"
157
131
  };
158
132
  var AuditSeverityEnum = {
159
- /** Informational -- normal operation. */
160
133
  Info: "info",
161
- /** Warning -- something unexpected but not an error. */
162
134
  Warning: "warning",
163
- /** Error -- an operation failed. */
164
135
  Error: "error",
165
- /** Critical -- a severe failure requiring immediate attention. */
166
136
  Critical: "critical"
167
137
  };
168
138
  function createAuditEvent(input) {
@@ -186,119 +156,70 @@ function createAuditEvent(input) {
186
156
  };
187
157
  }
188
158
 
189
- // ../../shared/src/a2a/schemas/error-taxonomy.ts
159
+ // src/schemas/error-taxonomy.ts
190
160
  var A2AErrorSeverityEnum = {
191
- /** Low impact -- informational or gracefully handled. */
192
161
  Low: "low",
193
- /** Medium impact -- degraded functionality but system continues. */
194
162
  Medium: "medium",
195
- /** High impact -- a key operation failed and needs attention. */
196
163
  High: "high",
197
- /** Critical -- system stability at risk, immediate action required. */
198
164
  Critical: "critical"
199
165
  };
200
166
  var A2AErrorCategoryEnum = {
201
- /** Errors in the envelope or message format (validation, parsing). */
202
167
  Envelope: "envelope",
203
- /** Errors in the connector/adapter layer. */
204
168
  Connector: "connector",
205
- /** Errors in the policy/approval plane. */
206
169
  Policy: "policy",
207
- /** Errors in the task orchestration layer. */
208
170
  Task: "task",
209
- /** Errors in the agent registry. */
210
171
  Registry: "registry",
211
- /** Errors in the collaboration service. */
212
172
  Collaboration: "collaboration",
213
- /** Transport/network-level errors. */
214
173
  Transport: "transport",
215
- /** Authentication and authorization errors. */
216
174
  Auth: "auth",
217
- /** Rate-limiting and quota errors. */
218
175
  RateLimit: "rate_limit",
219
- /** Internal / unexpected errors. */
220
176
  Internal: "internal"
221
177
  };
222
178
  var A2AErrorCodeEnum = {
223
179
  // -- envelope ---------------------------------------------------------------
224
- /** The envelope failed structural validation. */
225
180
  InvalidEnvelope: "INVALID_ENVELOPE",
226
- /** The envelope version is unsupported. */
227
181
  UnsupportedEnvelopeVersion: "UNSUPPORTED_ENVELOPE_VERSION",
228
- /** A required field is missing from the envelope. */
229
182
  MissingEnvelopeField: "MISSING_ENVELOPE_FIELD",
230
- /** The payload kind is unknown or malformed. */
231
183
  InvalidPayload: "INVALID_PAYLOAD",
232
- /** Compatibility alias used by older gateway/workspace routes. */
233
184
  InvalidParams: "INVALID_ENVELOPE",
234
185
  // -- connector --------------------------------------------------------------
235
- /** No connector is attached for the target agent. */
236
186
  ConnectorNotFound: "CONNECTOR_NOT_FOUND",
237
- /** The connector timed out during task execution. */
238
187
  ConnectorTimeout: "CONNECTOR_TIMEOUT",
239
- /** The connector returned an unexpected error. */
240
188
  ConnectorError: "CONNECTOR_ERROR",
241
- /** The connector is temporarily unavailable. */
242
189
  ConnectorUnavailable: "CONNECTOR_UNAVAILABLE",
243
- /** Protocol mismatch between connector and remote agent. */
244
190
  ProtocolMismatch: "PROTOCOL_MISMATCH",
245
191
  // -- policy -----------------------------------------------------------------
246
- /** The policy plane denied the requested action. */
247
192
  PolicyDenied: "POLICY_DENIED",
248
- /** No prompt handler is configured for the policy rule. */
249
193
  PolicyHandlerMissing: "POLICY_HANDLER_MISSING",
250
- /** The policy evaluation timed out. */
251
194
  PolicyTimeout: "POLICY_TIMEOUT",
252
195
  // -- task -------------------------------------------------------------------
253
- /** The task was not found. */
254
196
  TaskNotFound: "TASK_NOT_FOUND",
255
- /** An invalid state transition was attempted. */
256
197
  InvalidStateTransition: "INVALID_STATE_TRANSITION",
257
- /** The task has already reached a terminal state. */
258
198
  TaskAlreadyTerminal: "TASK_ALREADY_TERMINAL",
259
- /** The task failed during execution. */
260
199
  TaskExecutionFailed: "TASK_EXECUTION_FAILED",
261
- /** The task was cancelled. */
262
200
  TaskCancelled: "TASK_CANCELLED",
263
201
  // -- registry ---------------------------------------------------------------
264
- /** The agent was not found in the registry. */
265
202
  AgentNotFound: "AGENT_NOT_FOUND",
266
- /** The agent is already registered. */
267
203
  AgentAlreadyRegistered: "AGENT_ALREADY_REGISTERED",
268
- /** The agent does not have the requested capability. */
269
204
  CapabilityNotFound: "CAPABILITY_NOT_FOUND",
270
205
  // -- collaboration ----------------------------------------------------------
271
- /** The channel was not found. */
272
206
  ChannelNotFound: "CHANNEL_NOT_FOUND",
273
- /** The thread was not found. */
274
207
  ThreadNotFound: "THREAD_NOT_FOUND",
275
- /** The message was not found. */
276
208
  MessageNotFound: "MESSAGE_NOT_FOUND",
277
- /** The sender is not a member of the target channel. */
278
209
  NotChannelMember: "NOT_CHANNEL_MEMBER",
279
210
  // -- transport --------------------------------------------------------------
280
- /** A network request failed. */
281
211
  NetworkError: "NETWORK_ERROR",
282
- /** The remote endpoint returned an unexpected status. */
283
212
  UnexpectedStatus: "UNEXPECTED_STATUS",
284
- /** The request or response body could not be parsed. */
285
213
  SerializationError: "SERIALIZATION_ERROR",
286
214
  // -- auth -------------------------------------------------------------------
287
- /** Authentication failed (invalid or missing credentials). */
288
215
  AuthenticationFailed: "AUTHENTICATION_FAILED",
289
- /** The caller is not authorized for the requested operation. */
290
216
  AuthorizationDenied: "AUTHORIZATION_DENIED",
291
- /** The access token has expired. */
292
217
  TokenExpired: "TOKEN_EXPIRED",
293
218
  // -- rate limit -------------------------------------------------------------
294
- /** The caller has exceeded the rate limit. */
295
219
  RateLimitExceeded: "RATE_LIMIT_EXCEEDED",
296
- /** The caller has exceeded their usage quota. */
297
220
  QuotaExceeded: "QUOTA_EXCEEDED",
298
221
  // -- internal ---------------------------------------------------------------
299
- /** An unexpected internal error occurred. */
300
222
  InternalError: "INTERNAL_ERROR",
301
- /** A configuration error was detected. */
302
223
  ConfigurationError: "CONFIGURATION_ERROR"
303
224
  };
304
225
  var A2A_ERROR_CODE_REGISTRY = {