Metadata-Version: 2.4
Name: oqllm-api
Version: 0.2.0
Summary: API specifications, schemas, and gateway adapters for oqllm and POA
Project-URL: Homepage, https://api.oqllm.com
Project-URL: Source, https://github.com/oqllm/api
Project-URL: Documentation, https://api.oqllm.com/docs
License: CLONERD / WELLMANIFEST PROPRIETARY SOURCE CODE LICENSE & STRICT ANTI-AI / ANTI-MINING RESERVATION OF RIGHTS
        
        Copyright (c) 2026 Tomasz Sapletta Prototypowanie.pl NIP: 5881918662, REGON: 220665410. All rights reserved.
        Właścicielem oprogramowania jest Tomasz Sapletta Prototypowanie.pl NIP: 5881918662, REGON: 220665410.
        
        ================================================================================
        IMPORTANT NOTICE - PROPRIETARY AND CONFIDENTIAL
        ================================================================================
        
        This software, source code, documentation, specifications, schemas, models,
        algorithms, and associated digital assets ("the Software") are the confidential
        and proprietary intellectual property of Tomasz Sapletta Prototypowanie.pl
        (NIP: 5881918662, REGON: 220665410) and its licensors.
        
        The Software is NOT licensed under any open source, free software, or
        source-available license (such as MIT, Apache 2.0, BSD, GPL, AGPL, BSL, or SSPL).
        All rights not expressly granted under a separate, signed written commercial
        agreement executed by Tomasz Sapletta Prototypowanie.pl are strictly reserved.
        
        ================================================================================
        SECTION 1. STRICT PROHIBITION ON ARTIFICIAL INTELLIGENCE & MACHINE LEARNING INGESTION
        ================================================================================
        
        Under no circumstances may any portion of the Software, whether in human-readable
        source code, compiled binary, abstract syntax tree (AST), intermediate representation,
        documentation, ticket history, or commit metadata, be:
        
        1.1. Ingested, scraped, crawled, harvested, indexed, tokenized, cached, or stored
             for the purpose of training, pre-training, fine-tuning, evaluating, or weighting
             any artificial intelligence system, machine learning model, large language
             model (LLM), code-generation model, neural network, diffusion model, or
             multimodal model.
        
        1.2. Used by, or fed into the training datasets, prompt contexts, retrieval-augmented
             generation (RAG) stores, vector databases, or telemetry caches of any commercial
             or non-commercial AI system, including but not limited to:
             - GitHub Copilot / Microsoft Copilot (Microsoft Corporation)
             - OpenAI ChatGPT, Codex, GPT-4, GPT-5, o-series, and related APIs (OpenAI Inc.)
             - Google Gemini, PaLM, Codey, Vertex AI, and DeepMind systems (Google LLC / Alphabet)
             - Anthropic Claude, Constitutional AI, and related models (Anthropic PBC)
             - Meta LLaMA, Code Llama, and related foundation models (Meta Platforms, Inc.)
             - Amazon CodeWhisperer, Bedrock, and Titan models (Amazon.com, Inc.)
             - Mistral AI, Cohere, Cursor AI, Tabnine, Replit Ghostwriter, or any automated
               code-synthesis engine or AI coding assistant.
        
        1.3. Processed or analyzed by any automated tool, bot, crawler, or scraper to generate
             synthetic code, code suggestions, autocomplete suggestions, embeddings, or
             derivative software models.
        
        ================================================================================
        SECTION 2. STATUTORY RESERVATION OF RIGHTS (EU DIRECTIVE 2019/790)
        ================================================================================
        
        2.1. In accordance with Article 4(3) of Directive (EU) 2019/790 of the European
             Parliament and of the Council on copyright and related rights in the Digital
             Single Market, the rights holder hereby EXPRESSLY RESERVES ALL RIGHTS
             regarding Text and Data Mining (TDM) for this Software, its source repositories,
             documentation, schemas, and all associated materials.
        
        2.2. Any extraction, automated reading, indexing, or reproduction of the Software
             for text and data mining purposes within the meaning of Directive (EU) 2019/790
             is strictly prohibited without prior written authorization from the rights holder.
        
        2.3. This reservation applies worldwide and is declared in machine-readable form
             within the repository metadata, headers, and this License specification.
        
        ================================================================================
        SECTION 3. HOSTING & PLATFORM PREEMPTION CLAUSE
        ================================================================================
        
        3.1. The presence of this source code or repository on any third-party hosting service,
             code forge, version control platform, or cloud provider (including but not
             limited to GitHub, GitLab, Bitbucket, or AWS) does NOT constitute a waiver,
             license grant, or implied consent to the hosting provider, its parent,
             subsidiaries, or third parties to:
             (a) use the Software for machine learning training, telemetry harvesting, or
                 model improvement;
             (b) distribute or reproduce the Software to other users or automated agents;
             (c) index the Software in any public search or retrieval system.
        
        3.2. Any terms of service, platform agreements, or automated licenses purporting
             to grant the platform operator an implied, royalty-free, or transferable
             license to utilize hosted code for artificial intelligence development, model
             training, or feature synthesis are hereby explicitly rejected, preempted,
             and declared null and void with respect to this Software.
        
        ================================================================================
        SECTION 4. PROHIBITED USES & RESTRICTIONS
        ================================================================================
        
        Except as expressly authorized under a valid, executed commercial enterprise license
        with Tomasz Sapletta Prototypowanie.pl, you may NOT:
        - Copy, modify, adapt, translate, reverse engineer, decompile, or disassemble the Software.
        - Distribute, sublicense, rent, lease, lend, sell, or publicly display the Software.
        - Use the Software to provide competitive time-sharing, SaaS, cloud twin, or virtualization services.
        - Remove, alter, or obscure any proprietary notices, copyright labels, or license files.
        
        ================================================================================
        SECTION 5. ENFORCEMENT & REMEDIES
        ================================================================================
        
        Any breach of this License, including unauthorized scraping, tokenization, or ingestion
        into an artificial intelligence system, constitutes willful copyright infringement,
        unauthorized access, and breach of contract. Tomasz Sapletta Prototypowanie.pl reserves
        the right to seek immediate injunctive relief, statutory damages, compensation for commercial
        harm, and mandatory destruction of all derivative model weights, embeddings, and training
        caches containing representations of the Software.
        
        For licensing inquiries and commercial authorization, contact: legal@clonerd.com / tom@prototypowanie.pl
License-File: LICENSE
License-File: LICENSE.md
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110.0
Requires-Dist: pydantic>=2.6.0
Requires-Dist: uvicorn>=0.28.0
Provides-Extra: test
Requires-Dist: httpx>=0.27.0; extra == 'test'
Requires-Dist: pytest>=8.0.0; extra == 'test'
Description-Content-Type: text/markdown

# oqllm-api

The API specifications, schemas, and gateway adapters for the **oqllm** ecosystem and the addressable **Procedure-Oriented Architecture (POA)**.

## Architecture

This repository hosts:
1. **OpenAPI 3.1 Specifications (`openapi/`):**
   - Canonical definitions for `/health/`, `/v1/models/`, `/v1/poa/` (route and dispatch), and `/v1/chat/completions`.
   - Both YAML (`openapi.yaml`) and JSON (`openapi.json`) formats.
2. **JSON Schemas (`schemas/`):**
   - Validated schemas for POA registries, requests, and dispatch receipts.
3. **Plesk PHP Gateway Adapter (`adapters/plesk_php/`):**
   - Zero-dependency PHP 8.1+ gateway scripts deployed to Plesk virtual hosts (`api.oqllm.com`, `proxy.oqllm.com`).
   - Handles microsecond decision routing and JSON discovery.
4. **Python ASGI / FastAPI Gateway (`adapters/asgi_python/`):**
   - High-throughput asynchronous gateway serving the OpenAPI specs and portal.
5. **Interactive API Portal (`portal/index.html`):**
   - Embedded web UI for interactive testing and live API endpoint status.

## Quickstart (Python ASGI)

```bash
uvicorn adapters.asgi_python.app:app --host 0.0.0.0 --port 8000
```

## Running Tests

```bash
pytest -q
```

## Documentation & Standards

- [Documentation Index](docs/README.md)
- [Error Catalog](errors/README.md)
- [Agent Standards](AGENTS.md)

