{"id":50454075,"url":"https://github.com/mizcausevic-dev/aeo-sdk-swift","last_synced_at":"2026-06-01T01:05:37.422Z","repository":{"id":357395322,"uuid":"1236306964","full_name":"mizcausevic-dev/aeo-sdk-swift","owner":"mizcausevic-dev","description":"Swift SDK for the AEO Protocol v0.1. Parse, build, validate, and fetch AEO declaration documents. Foundation-only, async/await fetchWellKnown via URLSession. Completes the AEO SDK family at five languages.","archived":false,"fork":false,"pushed_at":"2026-05-23T21:40:54.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T23:22:01.192Z","etag":null,"topics":["aeo","aeo-protocol","answer-engine-optimization","codable","foundation","kinetic-gain-protocol-suite","protocol-implementation","swift","swift-package-manager","well-known"],"latest_commit_sha":null,"homepage":"https://github.com/mizcausevic-dev/aeo-sdk-swift","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T06:11:38.000Z","updated_at":"2026-05-23T21:40:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/aeo-sdk-swift","commit_stats":null,"previous_names":["mizcausevic-dev/aeo-sdk-swift"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/aeo-sdk-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/aeo-sdk-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aeo","aeo-protocol","answer-engine-optimization","codable","foundation","kinetic-gain-protocol-suite","protocol-implementation","swift","swift-package-manager","well-known"],"created_at":"2026-06-01T01:05:37.330Z","updated_at":"2026-06-01T01:05:37.416Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aeo-sdk-swift\n\n[![Swift](https://img.shields.io/badge/Swift-5.9-orange.svg)](https://swift.org)\n[![Platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20Linux-blue.svg)](https://swift.org)\n[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-success.svg)](https://swift.org/package-manager/)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nSwift SDK for the [AEO Protocol v0.1](https://github.com/mizcausevic-dev/aeo-protocol-spec) — parse, build, validate, and fetch AEO declaration documents. Foundation-only, no third-party dependencies.\n\nCompletes the AEO SDK family at **five languages** alongside the Python, TypeScript, Rust, and Go SDKs.\n\n## Install\n\nIn your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/mizcausevic-dev/aeo-sdk-swift\", from: \"0.1.0\")\n```\n\nThen add `\"AEOProtocol\"` to your target dependencies.\n\n## Quickstart\n\n```swift\nimport AEOProtocol\n\n// Fetch and parse from a live well-known URL\nlet doc = try await fetchWellKnown(origin: \"https://mizcausevic-dev.github.io\")\nprint(doc.entity.name)               // \"Miz Causevic\"\nprint(doc.claimIDs())                // [\"current-role\", \"location\", ...]\n\nif let claim = doc.findClaim(id: \"years-experience\"),\n   case .number(let yrs) = claim.value {\n    print(\"years: \\(yrs)\")           // years: 30.0\n}\n\n// Parse from a JSON string\nlet parsed = try AEODocument.from(json: rawString)\n\n// Build programmatically\nlet built = AEODocument(\n    entity: Entity(\n        id: \"https://example.com/#org\",\n        type: .organization,\n        name: \"Example Org\",\n        canonicalURL: \"https://example.com/\"\n    ),\n    authority: Authority(primarySources: [\"https://example.com/\"]),\n    claims: [\n        Claim(id: \"tagline\", predicate: \"description\", value: .string(\"Example\"))\n    ]\n)\nlet json = try built.toJSON()\n```\n\n## What it does\n\n- **Parse** — `AEODocument.from(json:)` / `from(data:)` returns a strongly-typed document\n- **Build** — `Codable` model types for `Entity`, `Authority`, `Claim`, `Verification`, `CitationPreferences`, `AnswerConstraints`, `Audit`, plus a `JSONValue` enum for the polymorphic claim value\n- **Serialize** — `doc.toJSON(prettyPrinted:)` returns canonical JSON\n- **Fetch** — `fetchWellKnown(origin:session:)` performs HTTP discovery via `URLSession` with `Accept: application/aeo+json, application/json`\n- **Query** — `doc.claimIDs()` and `doc.findClaim(id:)` helpers\n\n## Conformance\n\nSupports the AEO Protocol at **conformance Level 1 (Declare)**. Signature verification (L2) and audit-endpoint posting (L3) deferred to v0.2.\n\n## Platforms\n\n- macOS 13+\n- iOS / iPadOS 16+\n- tvOS 16+\n- watchOS 9+\n- Linux (Swift 5.9+)\n- Windows (with appropriate Visual Studio Build Tools)\n\n## Dependencies\n\nFoundation. Nothing else.\n\n## Development\n\n```bash\nswift build\nswift test\n```\n\nCI builds and tests on both macOS and Linux.\n\n## Specification\n\nFull spec at [github.com/mizcausevic-dev/aeo-protocol-spec](https://github.com/mizcausevic-dev/aeo-protocol-spec).\n\n## License\n\nMIT-licensed. Free for commercial and non-commercial use with attribution. The AEO Protocol specification this SDK implements is also MIT (see [aeo-protocol-spec](https://github.com/mizcausevic-dev/aeo-protocol-spec)).\n\n## Kinetic Gain Protocol Suite\n\n| Spec | Implementation |\n|---|---|\n| [AEO Protocol](https://github.com/mizcausevic-dev/aeo-protocol-spec) | [aeo-sdk-python](https://github.com/mizcausevic-dev/aeo-sdk-python) · [aeo-sdk-typescript](https://github.com/mizcausevic-dev/aeo-sdk-typescript) · [aeo-sdk-rust](https://github.com/mizcausevic-dev/aeo-sdk-rust) · [aeo-sdk-go](https://github.com/mizcausevic-dev/aeo-sdk-go) · **aeo-sdk-swift** (this) · [aeo-cli](https://github.com/mizcausevic-dev/aeo-cli) · [aeo-crawler](https://github.com/mizcausevic-dev/aeo-crawler) |\n| [Prompt Provenance](https://github.com/mizcausevic-dev/prompt-provenance-spec) | — |\n| [Agent Cards](https://github.com/mizcausevic-dev/agent-cards-spec) | — |\n| [AI Evidence Format](https://github.com/mizcausevic-dev/ai-evidence-format-spec) | — |\n| [MCP Tool Cards](https://github.com/mizcausevic-dev/mcp-tool-card-spec) | — |\n\n---\n\n**Connect:** [LinkedIn](https://www.linkedin.com/in/mirzacausevic/) · [Kinetic Gain](https://kineticgain.com) · [Medium](https://medium.com/@mizcausevic/) · [Skills](https://mizcausevic.com/skills/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-swift/lists"}