@a2aletheia/sdk 0.2.0 → 0.2.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 (80) hide show
  1. package/dist/agent/agent-executor.d.ts +1 -1
  2. package/dist/agent/aletheia-agent.d.ts +1 -1
  3. package/dist/agent/types.d.ts +1 -1
  4. package/dist/client.d.ts +1 -1
  5. package/dist/client.d.ts.map +1 -1
  6. package/dist/identity/agent-signer.d.ts +1 -1
  7. package/dist/identity/did-resolver.d.ts +1 -1
  8. package/dist/identity/did-resolver.js +1 -1
  9. package/dist/identity/manifest-fetcher.d.ts +1 -1
  10. package/dist/identity/manifest-fetcher.js +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +2 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/logger/console-logger.d.ts +1 -1
  16. package/dist/logger/event-emitter.d.ts +1 -1
  17. package/dist/logger/noop-logger.d.ts +1 -1
  18. package/dist/reputation/rating-client.d.ts +1 -1
  19. package/dist/security/audit-client.d.ts +1 -1
  20. package/dist/types/common/events.d.ts +14 -0
  21. package/dist/types/common/events.d.ts.map +1 -0
  22. package/dist/types/common/events.js +8 -0
  23. package/dist/types/common/events.js.map +1 -0
  24. package/dist/types/common/index.d.ts +4 -0
  25. package/dist/types/common/index.d.ts.map +1 -0
  26. package/dist/types/common/index.js +4 -0
  27. package/dist/types/common/index.js.map +1 -0
  28. package/dist/types/common/logger.d.ts +14 -0
  29. package/dist/types/common/logger.d.ts.map +1 -0
  30. package/dist/types/common/logger.js +2 -0
  31. package/dist/types/common/logger.js.map +1 -0
  32. package/dist/types/common/pagination.d.ts +45 -0
  33. package/dist/types/common/pagination.d.ts.map +1 -0
  34. package/dist/types/common/pagination.js +17 -0
  35. package/dist/types/common/pagination.js.map +1 -0
  36. package/dist/types/identity/agent-manifest.d.ts +258 -0
  37. package/dist/types/identity/agent-manifest.d.ts.map +1 -0
  38. package/dist/types/identity/agent-manifest.js +78 -0
  39. package/dist/types/identity/agent-manifest.js.map +1 -0
  40. package/dist/types/identity/agent.d.ts +86 -0
  41. package/dist/types/identity/agent.d.ts.map +1 -0
  42. package/dist/types/identity/agent.js +37 -0
  43. package/dist/types/identity/agent.js.map +1 -0
  44. package/dist/types/identity/did.d.ts +116 -0
  45. package/dist/types/identity/did.d.ts.map +1 -0
  46. package/dist/types/identity/did.js +27 -0
  47. package/dist/types/identity/did.js.map +1 -0
  48. package/dist/types/identity/index.d.ts +4 -0
  49. package/dist/types/identity/index.d.ts.map +1 -0
  50. package/dist/types/identity/index.js +4 -0
  51. package/dist/types/identity/index.js.map +1 -0
  52. package/dist/types/index.d.ts +5 -0
  53. package/dist/types/index.d.ts.map +1 -0
  54. package/dist/types/index.js +5 -0
  55. package/dist/types/index.js.map +1 -0
  56. package/dist/types/reputation/index.d.ts +4 -0
  57. package/dist/types/reputation/index.d.ts.map +1 -0
  58. package/dist/types/reputation/index.js +4 -0
  59. package/dist/types/reputation/index.js.map +1 -0
  60. package/dist/types/reputation/pow-challenge.d.ts +25 -0
  61. package/dist/types/reputation/pow-challenge.d.ts.map +1 -0
  62. package/dist/types/reputation/pow-challenge.js +11 -0
  63. package/dist/types/reputation/pow-challenge.js.map +1 -0
  64. package/dist/types/reputation/rating.d.ts +102 -0
  65. package/dist/types/reputation/rating.d.ts.map +1 -0
  66. package/dist/types/reputation/rating.js +42 -0
  67. package/dist/types/reputation/rating.js.map +1 -0
  68. package/dist/types/reputation/trust-score.d.ts +58 -0
  69. package/dist/types/reputation/trust-score.d.ts.map +1 -0
  70. package/dist/types/reputation/trust-score.js +18 -0
  71. package/dist/types/reputation/trust-score.js.map +1 -0
  72. package/dist/types/security/audit-report.d.ts +104 -0
  73. package/dist/types/security/audit-report.d.ts.map +1 -0
  74. package/dist/types/security/audit-report.js +31 -0
  75. package/dist/types/security/audit-report.js.map +1 -0
  76. package/dist/types/security/index.d.ts +2 -0
  77. package/dist/types/security/index.d.ts.map +1 -0
  78. package/dist/types/security/index.js +2 -0
  79. package/dist/types/security/index.js.map +1 -0
  80. package/package.json +3 -4
@@ -1,5 +1,5 @@
1
1
  import type { AgentExecutor, ExecutionEventBus, RequestContext } from "@a2a-js/sdk/server";
2
- import type { AletheiaLogger } from "@a2aletheia/types";
2
+ import type { AletheiaLogger } from "../types/index.js";
3
3
  import type { AgentHandler, CancelHandler } from "./types.js";
4
4
  import type { EventEmitter } from "../logger/event-emitter.js";
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import type { AgentCard } from "@a2a-js/sdk";
2
2
  import { type TaskStore, type A2ARequestHandler } from "@a2a-js/sdk/server";
3
3
  import type { A2AResponse } from "@a2a-js/sdk";
4
- import type { AletheiaLogger, AletheiaEventType, AletheiaEventHandler } from "@a2aletheia/types";
4
+ import type { AletheiaLogger, AletheiaEventType, AletheiaEventHandler } from "../types/index.js";
5
5
  import type { AletheiaAgentConfig, AgentHandler, CancelHandler } from "./types.js";
6
6
  import { EventEmitter } from "../logger/event-emitter.js";
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import type { AgentCapabilities, AgentSkill, Part } from "@a2a-js/sdk";
2
2
  import type { RequestContext, TaskStore } from "@a2a-js/sdk/server";
3
- import type { AletheiaLogger, AletheiaLogLevel } from "@a2aletheia/types";
3
+ import type { AletheiaLogger, AletheiaLogLevel } from "../types/index.js";
4
4
  import type { AgentResponse } from "./agent-response.js";
5
5
  /**
6
6
  * Aletheia-specific extensions for AgentCard metadata.
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Agent, AgentManifest, AgentSearchParams, AuditReport, CreateRatingInput, DID, DIDDocument, PaginatedResponse, PoWChallenge, Rating, TrustScore } from "@a2aletheia/types";
1
+ import type { Agent, AgentManifest, AgentSearchParams, AuditReport, CreateRatingInput, DID, DIDDocument, PaginatedResponse, PoWChallenge, Rating, TrustScore } from "./types/index.js";
2
2
  import { type SignedMessage } from "./identity/agent-signer.js";
3
3
  export interface AletheiaClientConfig {
4
4
  apiUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,GAAG,EACH,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,UAAU,EACX,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,cAAc;IAMb,OAAO,CAAC,MAAM;IAL1B,OAAO,CAAC,IAAI,CAAa;IACzB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,YAAY,CAAe;gBAEf,MAAM,EAAE,oBAAoB;IAShD,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIlC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAK3B,UAAU,CACd,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAS/C,UAAU,CAAC,GAAG,EAAE,GAAG;;;;;;;;8BAgDzB,CAAF;wBACI,CAAH;;;;;;;;;;IA7CO,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAItD,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAIjE,aAAa,CACjB,WAAW,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC;QACT,KAAK,EAAE,KAAK,CAAC;QACb,QA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c,CAAC,MAAM,EAAE;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAerC;;;OAGG;IACG,sBAAsB,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC;IAInE;;;OAGG;IACG,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7D;;OAEG;IACG,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;IAIlD;;OAEG;IACG,kBAAkB,CACtB,GAAG,EAAE,GAAG,EACR,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAIrC;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,GAAG,EACZ,KAAK,EAAE,GAAG,GACT,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAM9C,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC;IAI7C,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAG9D"}
@@ -1,4 +1,4 @@
1
- import type { DIDDocument } from "@a2aletheia/types";
1
+ import type { DIDDocument } from "../types/index.js";
2
2
  /**
3
3
  * Agent key pair for signing messages.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type DID, type DIDDocument } from "@a2aletheia/types";
1
+ import { type DID, type DIDDocument } from "../types/index.js";
2
2
  export declare class DIDResolver {
3
3
  /**
4
4
  * Resolve a did:web DID by fetching https://<domain>/.well-known/did.json
@@ -1,4 +1,4 @@
1
- import { DIDDocumentSchema, } from "@a2aletheia/types";
1
+ import { DIDDocumentSchema, } from "../types/index.js";
2
2
  export class DIDResolver {
3
3
  /**
4
4
  * Resolve a did:web DID by fetching https://<domain>/.well-known/did.json
@@ -1,4 +1,4 @@
1
- import { type AgentManifest } from "@a2aletheia/types";
1
+ import { type AgentManifest } from "../types/index.js";
2
2
  export declare class ManifestFetcher {
3
3
  /**
4
4
  * Fetch and validate an agent manifest from a .well-known/agent.json URL.
@@ -1,4 +1,4 @@
1
- import { AgentManifestSchema } from "@a2aletheia/types";
1
+ import { AgentManifestSchema } from "../types/index.js";
2
2
  export class ManifestFetcher {
3
3
  /**
4
4
  * Fetch and validate an agent manifest from a .well-known/agent.json URL.
package/dist/index.d.ts CHANGED
@@ -9,4 +9,5 @@ export { signRatingPayload, verifyRatingSignature, hashRatingPayload, type Signe
9
9
  export { HttpClient } from "./utils/http.js";
10
10
  export { ConsoleLogger, NoopLogger, EventEmitter } from "./logger/index.js";
11
11
  export { calculate, calculatorToolDefinition, getCurrentTime, getCurrentTimeToolDefinition, convertUnits, convertUnitsToolDefinition, generateUUID, uuidGeneratorToolDefinition, aletheiaToolDefinitions, aletheiaToolExecutors, type CalculatorInput, type CalculatorResult, type CurrentTimeResult, type CryptoUnit, type TimeUnit, type DataUnit, type SupportedUnit, type UnitCategory, type UnitConversionInput, type UnitConversionResult, type UUIDResult, } from "./tools/index.js";
12
+ export * from "./types/index.js";
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,oBA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,aAAa,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG5E,OAAO,EAEL,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,4BAA4B,EAC5B,YAAY,EACZ,0BAA0B,EAC1B,YAAY,EACZ,2BAA2B,EAE3B,uBAAuB,EACvB,qBAAqB,EAErB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAG1B,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -15,6 +15,8 @@ export {
15
15
  calculate, calculatorToolDefinition, getCurrentTime, getCurrentTimeToolDefinition, convertUnits, convertUnitsToolDefinition, generateUUID, uuidGeneratorToolDefinition,
16
16
  // Convenience collections
17
17
  aletheiaToolDefinitions, aletheiaToolExecutors, } from "./tools/index.js";
18
+ // Types — re-exported from inlined @a2aletheia/types
19
+ export * from "./types/index.js";
18
20
  // NOTE: Agent hosting exports are available via "@a2aletheia/sdk/agent"
19
21
  // This keeps the main export browser-safe (no Node.js dependencies)
20
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA6B,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,GAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wCAAwC;AACxC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE5E,yEAAyE;AACzE,OAAO;AACL,mBAAmB;AACnB,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,4BAA4B,EAC5B,YAAY,EACZ,0BAA0B,EAC1B,YAAY,EACZ,2BAA2B;AAC3B,0BAA0B;AAC1B,uBAAuB,EACvB,qBAAqB,GAatB,MAAM,kBAAkB,CAAC;AAE1B,wEAAwE;AACxE,oEAAoE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA6B,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,GAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wCAAwC;AACxC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE5E,yEAAyE;AACzE,OAAO;AACL,mBAAmB;AACnB,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,4BAA4B,EAC5B,YAAY,EACZ,0BAA0B,EAC1B,YAAY,EACZ,2BAA2B;AAC3B,0BAA0B;AAC1B,uBAAuB,EACvB,qBAAqB,GAatB,MAAM,kBAAkB,CAAC;AAE1B,qDAAqD;AACrD,cAAc,kBAAkB,CAAC;AAEjC,wEAAwE;AACxE,oEAAoE"}
@@ -1,4 +1,4 @@
1
- import type { AletheiaLogger, AletheiaLogLevel } from "@a2aletheia/types";
1
+ import type { AletheiaLogger, AletheiaLogLevel } from "../types/index.js";
2
2
  /**
3
3
  * Default logger that writes to the console with level filtering.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { AletheiaEventType, AletheiaEventHandler } from "@a2aletheia/types";
1
+ import type { AletheiaEventType, AletheiaEventHandler } from "../types/index.js";
2
2
  /**
3
3
  * Lightweight event emitter for Aletheia lifecycle events.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { AletheiaLogger } from "@a2aletheia/types";
1
+ import type { AletheiaLogger } from "../types/index.js";
2
2
  /**
3
3
  * Silent logger that discards all output.
4
4
  * Use when you want to suppress SDK logging entirely.
@@ -1,4 +1,4 @@
1
- import type { Rating, CreateRatingInput, TrustScore, PoWChallenge, DID, PaginatedResponse } from "@a2aletheia/types";
1
+ import type { Rating, CreateRatingInput, TrustScore, PoWChallenge, DID, PaginatedResponse } from "../types/index.js";
2
2
  import type { HttpClient } from "../utils/http.js";
3
3
  /**
4
4
  * Client for the Aletheia reputation API.
@@ -1,4 +1,4 @@
1
- import type { AuditReport, DID } from "@a2aletheia/types";
1
+ import type { AuditReport, DID } from "../types/index.js";
2
2
  import type { HttpClient } from "../utils/http.js";
3
3
  /**
4
4
  * Client for security/audit endpoints.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Lifecycle event system for Aletheia SDK observability.
3
+ *
4
+ * Subscribe to events via `agent.on(type, handler)` to integrate
5
+ * with any monitoring, logging, or analytics system.
6
+ */
7
+ export type AletheiaEventType = "agent.start" | "agent.stop" | "message.received" | "message.sent" | "message.failed" | "trust.verified" | "trust.failed" | "rating.submitted" | "rating.received" | "discovery.search" | "discovery.connect" | "liveness.check" | "liveness.result";
8
+ export interface AletheiaEvent {
9
+ type: AletheiaEventType;
10
+ timestamp: Date;
11
+ data?: Record<string, unknown>;
12
+ }
13
+ export type AletheiaEventHandler = (event: AletheiaEvent) => void;
14
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/common/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Lifecycle event system for Aletheia SDK observability.
3
+ *
4
+ * Subscribe to events via `agent.on(type, handler)` to integrate
5
+ * with any monitoring, logging, or analytics system.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/types/common/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,4 @@
1
+ export * from "./pagination.js";
2
+ export * from "./logger.js";
3
+ export * from "./events.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./pagination.js";
2
+ export * from "./logger.js";
3
+ export * from "./events.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Pluggable logger interface for the Aletheia SDK.
3
+ *
4
+ * Consumers can implement this interface with pino, winston, bunyan,
5
+ * OpenTelemetry, or any custom logger.
6
+ */
7
+ export interface AletheiaLogger {
8
+ debug(message: string, context?: Record<string, unknown>): void;
9
+ info(message: string, context?: Record<string, unknown>): void;
10
+ warn(message: string, context?: Record<string, unknown>): void;
11
+ error(message: string, context?: Record<string, unknown>): void;
12
+ }
13
+ export type AletheiaLogLevel = "debug" | "info" | "warn" | "error";
14
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/types/common/logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC/D,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC/D,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACjE;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/types/common/logger.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const PaginationInputSchema: z.ZodObject<{
3
+ page: z.ZodDefault<z.ZodNumber>;
4
+ limit: z.ZodDefault<z.ZodNumber>;
5
+ sortBy: z.ZodOptional<z.ZodString>;
6
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ page: number;
9
+ limit: number;
10
+ sortOrder: "asc" | "desc";
11
+ sortBy?: string | undefined;
12
+ }, {
13
+ page?: number | undefined;
14
+ limit?: number | undefined;
15
+ sortBy?: string | undefined;
16
+ sortOrder?: "asc" | "desc" | undefined;
17
+ }>;
18
+ export type PaginationInput = z.infer<typeof PaginationInputSchema>;
19
+ export declare function paginatedResponseSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
20
+ items: z.ZodArray<T, "many">;
21
+ total: z.ZodNumber;
22
+ page: z.ZodNumber;
23
+ limit: z.ZodNumber;
24
+ totalPages: z.ZodNumber;
25
+ }, "strip", z.ZodTypeAny, {
26
+ page: number;
27
+ limit: number;
28
+ items: T["_output"][];
29
+ total: number;
30
+ totalPages: number;
31
+ }, {
32
+ page: number;
33
+ limit: number;
34
+ items: T["_input"][];
35
+ total: number;
36
+ totalPages: number;
37
+ }>;
38
+ export type PaginatedResponse<T> = {
39
+ items: T[];
40
+ total: number;
41
+ page: number;
42
+ limit: number;
43
+ totalPages: number;
44
+ };
45
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/types/common/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;GAQ5E;AAED,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ export const PaginationInputSchema = z.object({
3
+ page: z.coerce.number().int().positive().default(1),
4
+ limit: z.coerce.number().int().min(1).max(100).default(20),
5
+ sortBy: z.string().optional(),
6
+ sortOrder: z.enum(["asc", "desc"]).default("desc"),
7
+ });
8
+ export function paginatedResponseSchema(itemSchema) {
9
+ return z.object({
10
+ items: z.array(itemSchema),
11
+ total: z.number().int().nonnegative(),
12
+ page: z.number().int().positive(),
13
+ limit: z.number().int().positive(),
14
+ totalPages: z.number().int().nonnegative(),
15
+ });
16
+ }
17
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/types/common/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACnD,CAAC,CAAC;AAGH,MAAM,UAAU,uBAAuB,CAAyB,UAAa;IAC3E,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;QAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KAC3C,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,258 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * A2A-compliant Skill schema (replaces old Capability for task definitions).
4
+ * Describes a specific skill/capability the agent can perform.
5
+ */
6
+ export declare const SkillSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ name: string;
19
+ description?: string | undefined;
20
+ tags?: string[] | undefined;
21
+ examples?: string[] | undefined;
22
+ inputModes?: string[] | undefined;
23
+ outputModes?: string[] | undefined;
24
+ inputSchema?: Record<string, unknown> | undefined;
25
+ outputSchema?: Record<string, unknown> | undefined;
26
+ }, {
27
+ id: string;
28
+ name: string;
29
+ description?: string | undefined;
30
+ tags?: string[] | undefined;
31
+ examples?: string[] | undefined;
32
+ inputModes?: string[] | undefined;
33
+ outputModes?: string[] | undefined;
34
+ inputSchema?: Record<string, unknown> | undefined;
35
+ outputSchema?: Record<string, unknown> | undefined;
36
+ }>;
37
+ export type Skill = z.infer<typeof SkillSchema>;
38
+ /**
39
+ * A2A-compliant Capabilities schema (protocol features).
40
+ * Describes what protocol features the agent supports.
41
+ */
42
+ export declare const CapabilitiesSchema: z.ZodObject<{
43
+ streaming: z.ZodOptional<z.ZodBoolean>;
44
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
45
+ stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ streaming?: boolean | undefined;
48
+ pushNotifications?: boolean | undefined;
49
+ stateTransitionHistory?: boolean | undefined;
50
+ }, {
51
+ streaming?: boolean | undefined;
52
+ pushNotifications?: boolean | undefined;
53
+ stateTransitionHistory?: boolean | undefined;
54
+ }>;
55
+ export type Capabilities = z.infer<typeof CapabilitiesSchema>;
56
+ export declare const CapabilitySchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ name: z.ZodString;
59
+ description: z.ZodOptional<z.ZodString>;
60
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
64
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ id: string;
68
+ name: string;
69
+ description?: string | undefined;
70
+ tags?: string[] | undefined;
71
+ examples?: string[] | undefined;
72
+ inputModes?: string[] | undefined;
73
+ outputModes?: string[] | undefined;
74
+ inputSchema?: Record<string, unknown> | undefined;
75
+ outputSchema?: Record<string, unknown> | undefined;
76
+ }, {
77
+ id: string;
78
+ name: string;
79
+ description?: string | undefined;
80
+ tags?: string[] | undefined;
81
+ examples?: string[] | undefined;
82
+ inputModes?: string[] | undefined;
83
+ outputModes?: string[] | undefined;
84
+ inputSchema?: Record<string, unknown> | undefined;
85
+ outputSchema?: Record<string, unknown> | undefined;
86
+ }>;
87
+ export type Capability = Skill;
88
+ /**
89
+ * A2A-compliant AgentManifest schema.
90
+ *
91
+ * Core A2A fields: name, description, version, url, skills, capabilities, provider
92
+ * Aletheia-specific fields are in aletheiaExtensions: did, owner, registry info
93
+ */
94
+ export declare const AgentManifestSchema: z.ZodObject<{
95
+ name: z.ZodString;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ version: z.ZodString;
98
+ url: z.ZodString;
99
+ skills: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ name: z.ZodString;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
+ inputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
+ outputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ id: string;
111
+ name: string;
112
+ description?: string | undefined;
113
+ tags?: string[] | undefined;
114
+ examples?: string[] | undefined;
115
+ inputModes?: string[] | undefined;
116
+ outputModes?: string[] | undefined;
117
+ inputSchema?: Record<string, unknown> | undefined;
118
+ outputSchema?: Record<string, unknown> | undefined;
119
+ }, {
120
+ id: string;
121
+ name: string;
122
+ description?: string | undefined;
123
+ tags?: string[] | undefined;
124
+ examples?: string[] | undefined;
125
+ inputModes?: string[] | undefined;
126
+ outputModes?: string[] | undefined;
127
+ inputSchema?: Record<string, unknown> | undefined;
128
+ outputSchema?: Record<string, unknown> | undefined;
129
+ }>, "many">;
130
+ capabilities: z.ZodOptional<z.ZodObject<{
131
+ streaming: z.ZodOptional<z.ZodBoolean>;
132
+ pushNotifications: z.ZodOptional<z.ZodBoolean>;
133
+ stateTransitionHistory: z.ZodOptional<z.ZodBoolean>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ streaming?: boolean | undefined;
136
+ pushNotifications?: boolean | undefined;
137
+ stateTransitionHistory?: boolean | undefined;
138
+ }, {
139
+ streaming?: boolean | undefined;
140
+ pushNotifications?: boolean | undefined;
141
+ stateTransitionHistory?: boolean | undefined;
142
+ }>>;
143
+ defaultInputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
+ defaultOutputModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
+ provider: z.ZodOptional<z.ZodObject<{
146
+ organization: z.ZodString;
147
+ url: z.ZodOptional<z.ZodString>;
148
+ contact: z.ZodOptional<z.ZodString>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ organization: string;
151
+ url?: string | undefined;
152
+ contact?: string | undefined;
153
+ }, {
154
+ organization: string;
155
+ url?: string | undefined;
156
+ contact?: string | undefined;
157
+ }>>;
158
+ securitySchemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
159
+ security: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, "many">>;
160
+ supportsAuthenticatedExtendedCard: z.ZodOptional<z.ZodBoolean>;
161
+ aletheiaExtensions: z.ZodOptional<z.ZodObject<{
162
+ did: z.ZodOptional<z.ZodString>;
163
+ owner: z.ZodOptional<z.ZodString>;
164
+ registryChain: z.ZodOptional<z.ZodString>;
165
+ registryAddress: z.ZodOptional<z.ZodString>;
166
+ livenessPingUrl: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ did?: string | undefined;
169
+ owner?: string | undefined;
170
+ registryChain?: string | undefined;
171
+ registryAddress?: string | undefined;
172
+ livenessPingUrl?: string | undefined;
173
+ }, {
174
+ did?: string | undefined;
175
+ owner?: string | undefined;
176
+ registryChain?: string | undefined;
177
+ registryAddress?: string | undefined;
178
+ livenessPingUrl?: string | undefined;
179
+ }>>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ name: string;
182
+ version: string;
183
+ url: string;
184
+ skills: {
185
+ id: string;
186
+ name: string;
187
+ description?: string | undefined;
188
+ tags?: string[] | undefined;
189
+ examples?: string[] | undefined;
190
+ inputModes?: string[] | undefined;
191
+ outputModes?: string[] | undefined;
192
+ inputSchema?: Record<string, unknown> | undefined;
193
+ outputSchema?: Record<string, unknown> | undefined;
194
+ }[];
195
+ description?: string | undefined;
196
+ capabilities?: {
197
+ streaming?: boolean | undefined;
198
+ pushNotifications?: boolean | undefined;
199
+ stateTransitionHistory?: boolean | undefined;
200
+ } | undefined;
201
+ defaultInputModes?: string[] | undefined;
202
+ defaultOutputModes?: string[] | undefined;
203
+ provider?: {
204
+ organization: string;
205
+ url?: string | undefined;
206
+ contact?: string | undefined;
207
+ } | undefined;
208
+ securitySchemes?: Record<string, unknown> | undefined;
209
+ security?: Record<string, string[]>[] | undefined;
210
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
211
+ aletheiaExtensions?: {
212
+ did?: string | undefined;
213
+ owner?: string | undefined;
214
+ registryChain?: string | undefined;
215
+ registryAddress?: string | undefined;
216
+ livenessPingUrl?: string | undefined;
217
+ } | undefined;
218
+ }, {
219
+ name: string;
220
+ version: string;
221
+ url: string;
222
+ skills: {
223
+ id: string;
224
+ name: string;
225
+ description?: string | undefined;
226
+ tags?: string[] | undefined;
227
+ examples?: string[] | undefined;
228
+ inputModes?: string[] | undefined;
229
+ outputModes?: string[] | undefined;
230
+ inputSchema?: Record<string, unknown> | undefined;
231
+ outputSchema?: Record<string, unknown> | undefined;
232
+ }[];
233
+ description?: string | undefined;
234
+ capabilities?: {
235
+ streaming?: boolean | undefined;
236
+ pushNotifications?: boolean | undefined;
237
+ stateTransitionHistory?: boolean | undefined;
238
+ } | undefined;
239
+ defaultInputModes?: string[] | undefined;
240
+ defaultOutputModes?: string[] | undefined;
241
+ provider?: {
242
+ organization: string;
243
+ url?: string | undefined;
244
+ contact?: string | undefined;
245
+ } | undefined;
246
+ securitySchemes?: Record<string, unknown> | undefined;
247
+ security?: Record<string, string[]>[] | undefined;
248
+ supportsAuthenticatedExtendedCard?: boolean | undefined;
249
+ aletheiaExtensions?: {
250
+ did?: string | undefined;
251
+ owner?: string | undefined;
252
+ registryChain?: string | undefined;
253
+ registryAddress?: string | undefined;
254
+ livenessPingUrl?: string | undefined;
255
+ } | undefined;
256
+ }>;
257
+ export type AgentManifest = z.infer<typeof AgentManifestSchema>;
258
+ //# sourceMappingURL=agent-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-manifest.d.ts","sourceRoot":"","sources":["../../../src/types/identity/agent-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiD9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}