flayer.integrations.wire¶
flayer.integrations.wire ¶
Bounded strict JSON codecs validate representations without dispatch or authorization.
ENVELOPE_FIELDS
module-attribute
¶
ENVELOPE_FIELDS = frozenset({'schema_version', 'envelope', 'identity', 'request_id', 'operation'})
ParseRequest ¶
ParseRequest(payload: str, expected_identity: StackIdentity) -> IntegrationRequest
Validate untrusted read-only intent without invoking any operation or permission check.
Source code in installed/flayer/integrations/wire.py
117 118 119 120 121 122 123 124 | |
ParseResult ¶
ParseResult(payload: str, expected_request: IntegrationRequest) -> IntegrationResult
Bind an untrusted representation to its request without asserting authenticity.
Source code in installed/flayer/integrations/wire.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | |
SerializeRequest ¶
SerializeRequest(request: IntegrationRequest) -> str
Serialize validated observation intent without resolving targets or credentials.
Source code in installed/flayer/integrations/wire.py
236 237 238 239 240 241 242 | |
SerializeResult ¶
SerializeResult(result: IntegrationResult) -> str
Serialize only explicitly allowed evidence, never source objects or raw adapter data.
Source code in installed/flayer/integrations/wire.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |