-
Notifications
You must be signed in to change notification settings - Fork 0
Data Models
All models use frozen, slotted dataclasses. Attribute assignment is blocked, but contained dictionaries and arbitrary values are not deeply immutable.
Contains friendly_name, link, func, apicore_version, parameters, response, intro, and icon.
Adds configs, handlers, and v2.1 metadata fields. Python field schema_url represents the source $schema key. Unknown root fields are preserved in extra.
Document is the union of V1Document and V2Document.
Represents standard or custom parameters. Common fields include:
| Field | Meaning |
|---|---|
enable |
Whether the UI exposes the parameter |
name |
Request parameter name |
type |
Standard or custom type name |
required |
Whether an empty value is submitted |
value |
Default or selected value |
friendly_name |
String or v2.1 language map |
options |
v2.1 enum options |
friendly_options |
Labels corresponding to options
|
show_if |
v2.1 conditional UI rule |
extra |
Unknown custom parameter fields |
Python field in_values represents the source in key. Exactly one of equals or in_values is present in validated documents.
-
ResponseImage: legacy image mapping. -
ResponseMedia: v2.1 image, audio, video, text, Markdown, or file mapping. -
ResponseDataField: one additional extracted value. -
ResponseGroup: a labeled collection of additional values. -
ResponseConfig: response mappings andpreferred_mediacompatibility property.
ResponseConfig.preferred_media returns media directly when present. For image-only documents it creates an equivalent ResponseMedia(type="image", ...) adapter.
-
RequestConfig: headers, timeout, body type, and body template. -
RetryPolicy: network retry count and delay. -
RateLimit: frequency and time unit. -
PollingConfig: asynchronous task polling settings. -
Configs: optional aggregate of these settings.
The library validates these settings but does not execute requests, retries, rate limits, or polling.
HandlerRule represents one HTTP status action. Supported actions are response, success, warning, error, message, browser, run, retry, and return.
The library never opens browser links or executes scripts. Applications must treat run as untrusted high-risk input and require explicit authorization before execution.
-
APICoreFamily:v1orv2 -
APICoreVersion: compatibility alias for the public family valuesv1orv2 -
APICoreSpecVersion: exact document specification version1.0,2.0, or2.1 -
VersionSelector: accepted API override values -
FormatName:json,yaml, ortoml -
I18nString: plain string or locale-to-string mapping
© 2026 Little Tree Studio & SRInternet Studio.
Licensed under CC BY-SA 4.0.