Scan your whole stack
Are you using unitysvc-core?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.20
unitysvc-core was last scanned on 24 Nov 2026 at version 0.3.20. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.20 LATEST | 24 Nov 2026 | No rules fired |
| 0.3.19 | 20 Nov 2026 | No rules fired |
| 0.3.18 | 20 Nov 2026 | No rules fired |
| 0.3.17 | 20 Nov 2026 | Not shown |
| 0.3.16 | 18 Nov 2026 | Not shown |
Findings for v0.3.20. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.20; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Shared data models, JSON schemas, and validation helpers for the UnitySVC ecosystem. This package is audience-neutral: it contains only the foundational types and helpers that are consumed by the UnitySVC backend, the customer SDK, the admin CLI, and the seller SDK.
It intentionally does not include any CLI, HTTP client, or audience-specific helpers. Those live in the corresponding packages:
unitysvc-sellers — seller SDK + usvc_seller CLI, catalog builders
(populate_from_iterator, render_template_file,
convert_convenience_fields_to_documents, etc.)unitysvc — customer SDK + usvc CLIunitysvc-admin — admin CLIsrc/unitysvc_core/
├── models/
│ ├── base.py # All enums (status, type, currency, rate-limit, etc.)
│ ├── pricing.py # PriceStr, UsageData, all *PriceData classes,
│ │ # Pricing union, validate_pricing, cost calculation
│ ├── channel.py # UpstreamAccessConfig, ChannelConfig, per-protocol
│ │ # servers, ChannelParams, RETIRED_CHANNEL_KEYS
│ ├── container.py # Container channel parts: resources, quantities, entries
│ ├── manifest.py # NormalizedManifest: what the compute agent receives
│ ├── probes.py # Declarative connectivity probes (proposal)
│ ├── documents.py # DocumentData
│ ├── service.py # RateLimit, ServiceConstraints, AccessInterfaceData,
│ │ # UpstreamAccessConfigData
│ ├── validators.py # validate_name, validate_service_options,
│ │ # suggest_valid_name, SUPPORTED_SERVICE_OPTIONS
│ ├── provider_v1.py # Provider file schema + ProviderData
│ ├── offering_v1.py # Offering file schema + ServiceOfferingData
│ ├── listing_v1.py # Listing file schema + ServiceListingData
│ ├── promotion_v1.py # Promotion file schema + PromotionData
│ └── service_group_v1.py
├── schema/ # Generated JSON schemas (run scripts/generate_schemas.py; CI enforces sync)
├── instance_spec.py # validate_instance_spec / compile_instance_spec (Compose)
├── validator.py # DataValidator — per-file schema validation,
│ # union-field reference checks, API-key secret
│ # scanning, Jinja2 syntax validation, etc.
└── utils.py # Content hashing, mime/extension helpers,
# data file loaders (JSON/TOML + overrides),
# schema-based file discovery
typer, rich, no entry pointshttpx, no API wrapperspopulate_from_iterator,
render_template_file, convert_convenience_fields_to_documents,
execute_script_content live in unitysvc-sellersvalidate_provider_status,
validate_all_service_directories, resolve_provider_name,
resolve_service_name_for_listing live in unitysvc-sellerspip install unitysvc-core
Dependencies: pydantic, email-validator, jsonschema, jinja2,
tomli-w. No typer, no rich, no httpx.
from pathlib import Path
import unitysvc_core
from unitysvc_core.models import ProviderV1, OfferingV1, ListingV1
from unitysvc_core.models.pricing import UsageData, validate_pricing
from unitysvc_core.validator import DataValidator
# Validate a single catalog directory
validator = DataValidator(
data_dir=Path("./catalog"),
schema_dir=Path(unitysvc_core.__file__).parent / "schema",
)
results = validator.validate_all()
# Typed pricing + cost calculation
pricing = validate_pricing({
"type": "one_million_tokens",
"input": "0.50",
"output": "1.50",
})
cost = pricing.calculate_cost(UsageData(input_tokens=1_000, output_tokens=500))
This package was split out of unitysvc-services (see
unitysvc/unitysvc-services#99).
The seller CLI, catalog builders, and seller-catalog-layout validators
moved to unitysvc-sellers.
MIT
Each channel's required parameters must be read by that channel or by document
content (a .j2 document's template source, which the seller validator reads
from disk as the SDK uploads it); another channel's use does not count. Metadata
such as display_name or description is never rendered with params, and a
user access interface never reads them. File validation checks a listing against
its paired offering when present; backend ingest calls the same
validate_required_parameter_usage helper with the complete listing and
offering. Schema declarations alone are not consumers. Jinja attribute access,
string-key lookups, and params.get("name") are inspected; dynamic access and
whole-map iteration conservatively consume all parameters. Deprecated content can
still be retired.
A user access interface is the service's canonical address, the same for every caller. validate_listing_interfaces_are_canonical renders {{ service_name }} (the one value the platform fills in when it stores an interface) and then requires:
base_url that is one of the four gateways, ${API_GATEWAY_BASE_URL}, ${S3_GATEWAY_BASE_URL}, ${SMTP_GATEWAY_BASE_URL} or ${MCP_GATEWAY_BASE_URL}, optionally followed by / and a path (/a/<alias> included); never an external URL, another variable or a secret reference;{{ routing_vars.X }} would stay literal in the stored interface and never route, and a per-enrollment value (enrollment.*, params.*) is never canonical: an enrollment is reached through /e/<CODE> on the API gateway, which a listing never declares.The one exception is {{ enrollment.code }} as the whole SMTP routing_key.username or the whole S3 bucket segment, a reminder of the per-enrollment address on protocols without a path for it. The shared validator runs it on every listing_v1; backend ingest calls the same function (unitysvc/unitysvc#2726).
A listing may say who the service is for and what a buyer must know before enrolling, as audience: a short list of plain-text phrases (unitysvc/unitysvc#2717):
"audience": [
"Rice University students (enrollment at Rice required)",
"US customers only / export restrictions may apply"
]
At most 8 phrases, each 1-120 characters after trimming, no URLs or markup (details belong in the description or documents), and no phrase twice. The phrases are shown before enrollment and read by assistants matching services to customers; the platform never enforces them. capabilities says what a service does; audience says who it is for.
Three stages (unitysvc/unitysvc#2720): a target service's exports (what it exposes), a seller's customer_access_requests (what the seller asks the enrolling customer to approve: using other services through that customer's account and authority), and the issued key's policy (what the customer actually approved). There is no central list of services. unitysvc_core.grants holds the formats and the checks; it does no I/O.
Invariant. Calls made under an approved request run under the enrolling customer's delegated identity, within the approved permissions, options and limits. Looking up a target's exports validates a request's capabilities; customer consent and key issuance establish its authority. A request grants nothing by itself.
1. The exports format (the offering, top level). How other services may use this one:
"exports": {
"permissions": {"read": ["GET /records/*"], "write": ["POST /records", "PUT /records/*"]},
"options": {
"type": "object",
"properties": {
"log_level": {"type": "string", "enum": ["debug", "info", "warn", "error"], "default": "info",
"title": "Lowest level recorded"},
"max_size": {"type": "integer", "minimum": 1, "maximum": 10000}
}
},
"options_ui_schema": {"log_level": {"ui:widget": "radio"}}
}
permissions (most services, including one that declares only options), the service exports one permission, invoke, on every route ("* /*"); service:<name> and the service:* wildcard grant it.permissions, the service exports exactly those, and invoke only if it declares it too. A data service (me, log, needs) declares read / write and no invoke: it holds the customer's own data, so only a grant that names its permissions reaches it, never invoke or a wildcard.permissions: a name (lowercase letters, digits and _) → the routes it covers, each "<METHOD> /<path>" (* for any method, * globs in the path). Permissions are never inferred from HTTP methods.options: a JSON Schema (draft 7) object of the customizations a grant may set on the service, like a channel's params.schema, with an optional react-jsonschema-form options_ui_schema; the frontend renders it with the same form component. It covers limits only the service can apply (a message size). Restrictions so a grant can write every value in query-string syntax: property names are lowercase letters, digits and _; each property is a string, integer, number, boolean or an array of strings, serialized as an OpenAPI form-style query parameter with arrays comma-joined (style: form, explode: false); options are optional (no required) and only declared properties are accepted; the schema is self-contained (no $ref), so validating against it never fetches anything. A property's default is what the service does when the policy does not set the option.2. A customer access request (upstream_access_config.<channel>.customer_access_requests), and the policy entry it becomes. Any channel may declare its own list: a fixed list of items the customer works on, and nothing else (unitysvc/unitysvc#2831). Each approved request becomes an entry (a grant) in the issued key's policy, in the same shape:
"customer_access_requests": [{"object": "service:log", "permissions": ["invoke"], "required": true,
"justification": "Records each check you run",
"options": "log_level=warn",
"limits": {"count_per_day": 1000}}]
object names one service (service:<name>, no wildcards), a resource the platform provisions for the enrollment (resource:room, below), or apikey for the leased key's lifespan (below). permissions are plain names (lowercase letters, digits and _; no wildcards), checked against the target's exports with a catalog.required (true or false, on every entry, apikey included) says whether the customer may decline the request. A stored declaration from before this rule reads as optional when a policy is built.options is written in query-string syntax (parse_options; a notation, not how options are delivered): each name once, each value non-empty; with a catalog, each value is converted to its declared type and validated against the target's options schema.options are fixed. Every option it declares is in the policy of an approved request, with the declared value; the customer may repeat it but not change or drop it. An option the request does not declare is the customer's to set at enrollment (a form rendered from the target's options schema). So {"object": "service:ai", ...} lets the customer pick the AI service, and "options": "service=labs/llm-balanced" pins it.kind=chat, kind=feed), so an approval says which one it is.limits (validate_limits): count_per_hour / count_per_day / count_per_month / count_total (positive integer) and the same for amount_ (finite positive decimal, as a number or a string). Limits are universal: the platform meters every call, so any service can be limited without exporting anything. The seller's limits only pre-fill the form; the customer sets them at enrollment, and an enrollment's own limits (unitysvc/unitysvc#2687) use the same shape. They are counted per policy entry (the enrollment's calls to that service) from the usage stream (counters keyed by scope, metric and window bucket), and the gateway refuses calls once one is exceeded.resource:room: {"object": "resource:room", "permissions": ["create"], "required": true, "justification": "Creates your chat room", "options": "kind=chat&max_members=100"}. Core knows the resource, so no catalog is consulted. The request must fix kind, the room's identity; each kind bounds the permissions (chat: create, a room the customer owns; support: join, read, post, the seller's private room with the customer; announcement: join, read; discussion: join, read, post). max_members (a positive integer) caps only a room the customer creates; max_retention (seconds, 0 or more) caps how long any provisioned room keeps messages, within the platform's own ceiling for the kind, and the room's owner may keep less. A channel requests each kind at most once, and a resource takes no limits.apikey entry: {"object": "apikey", "required": false, "limits": {"api_key_lifespan": 14400}, "justification": "Batch runs take up to four hours"}. It names the key itself, so it takes only limits (exactly api_key_lifespan, whole seconds from 1 to 86400), required and a justification, needs no catalog lookup, and grants nothing. Without it, a key the seller leases for the enrollment lives DEFAULT_API_KEY_LIFESPAN (3600 s). api_key_lifespan is valid only on this entry.3. How options reach the service. Not through the upstream URL: the gateway never changes a target's base_url or query to carry policy. How an option is applied is up to the service's implementation:
me, log, ai, notify, email, bill) reads the calling key's policy from the routing context and applies the option itself (me gives values only for the grant's profile paths; log would drop entries below a grant's log_level).default. A plain service:* key sets none.{{ params.X }} still renders into the channel config.4. Where exports are published. In the public catalog bundle: every service row carries its exports exactly as declared (null when none). GET /v1/catalog/bundle returns the bundle's URL; a service:<name> is the row whose name is <name>.
5. Validating customer_access_requests. validate_channel_access_requests(upstream_access_config, resolve) checks every channel's requests. Limits need no lookup. Every claim's permissions and options, invoke included (a service that declares permissions may not export it), are looked up: resolve(name) returns the target's exports from the catalog ({} when it declares none) or None when no such service is published; core parses it with parse_exports and checks the claimed permissions and the options (names, then values against its options schema) against it, refusing an unpublished target. Without a resolver only the shape is checked.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.