API capability declarations
<pf:api src="https://api.example.com/openapi.json" />
This optional declaration refers to an OpenAPI
description, which MAY expose many operations. PFS MUST NOT duplicate
all endpoint schemas in the Personafile. The Personafile browser MAY
retrieve and parse supported OpenAPI versions, discover operations, and
expose only explicitly authorized operations to the conversational
runtime. pf:api does not execute API calls and does not
grant network permission or credentials.
Optional id provides a local handle. Optional
tags provides a comma-separated presentation
filter matching OpenAPI operation tags; this is not an
authorization filter. For example:
<pf:api id="shop" src="https://shop.example.com/openapi.json" tags="catalog,orders" />
An implementation MUST reject unsupported OpenAPI syntax or operations cleanly. Authentication is browser-managed and MUST NOT be stored as secrets in Personafile. An API descriptor MUST be considered untrusted input. The browser MUST enforce user or administrator authorization, least privilege, request validation, rate limits as appropriate, and confirmation for consequential actions (such as orders, payments, deletions or sending messages).