English fallback
This translation is missing; the canonical English reference follows.
Web request contracts¶
Experimental structural endpoints, request templates and injection locations. These contracts resolve neither credentials nor execution authority.
fuzzy1337.requests
¶
Experimental structural web requests without values, execution, or scope authority.
InjectionLocation
¶
Bases: StrEnum
Select one typed input coordinate without providing an injection payload.
Source code in fuzzy1337/requests.py
41 42 43 44 45 46 47 48 49 50 51 | |
BodyKind
¶
Bases: StrEnum
Describe the runtime body encoding while storing no body values or bytes.
Source code in fuzzy1337/requests.py
54 55 56 57 58 59 60 61 62 | |
BindingSource
¶
Bases: StrEnum
Distinguish caller input names from separately owned session input names.
Source code in fuzzy1337/requests.py
65 66 67 68 69 | |
ValueBinding
dataclass
¶
Name a runtime value source rather than persisting its content.
Source code in fuzzy1337/requests.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
__post_init__() -> None
¶
Require a bounded non-secret identifier and an explicit source enum.
Source code in fuzzy1337/requests.py
114 115 116 117 118 119 120 | |
ToDict() -> dict[str, object]
¶
Return symbolic fields without resolving a value.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Exact schema fields for an unresolved named input. |
Source code in fuzzy1337/requests.py
122 123 124 125 126 127 128 129 | |
FromDict(value: object) -> ValueBinding
classmethod
¶
Decode an exact symbolic binding and reject literal-value extension fields.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Decoded binding object. |
required |
Returns:
| Type | Description |
|---|---|
ValueBinding
|
Validated binding without side effects. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Fields, source, or identifier are invalid. |
Source code in fuzzy1337/requests.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
SessionReference
dataclass
¶
Reference a separately owned session using non-secret workspace-local identifiers.
Source code in fuzzy1337/requests.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 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 208 209 210 211 | |
__post_init__() -> None
¶
Require bounded identifiers without reading credentials or session state.
Source code in fuzzy1337/requests.py
164 165 166 167 168 169 170 171 172 | |
Reference() -> str
¶
Expose a workspace-bound reference that does not prove session availability.
Returns:
| Type | Description |
|---|---|
str
|
Deterministic session digest independent of credentials. |
Source code in fuzzy1337/requests.py
174 175 176 177 178 179 180 181 | |
ToDict() -> dict[str, object]
¶
Render the owned identifiers without credential material.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Workspace and session identifier fields. |
Source code in fuzzy1337/requests.py
183 184 185 186 187 188 189 190 | |
FromDict(value: object) -> SessionReference
classmethod
¶
Decode a reference rather than a captured authenticated session.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Exact workspace/session identifier object. |
required |
Returns:
| Type | Description |
|---|---|
SessionReference
|
Validated unresolved session reference. |
Raises:
| Type | Description |
|---|---|
ValueError
|
A field is unknown, absent, or not an identifier. |
Source code in fuzzy1337/requests.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | |
Endpoint
dataclass
¶
Describe a structural HTTP endpoint in the existing Security Object Model namespace.
Source code in fuzzy1337/requests.py
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 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 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | |
__post_init__() -> None
¶
Canonicalize an offline origin/method and reject inline values or ambiguous paths.
Source code in fuzzy1337/requests.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | |
PathVariables() -> tuple[str, ...]
¶
Return declared structural path names without substituting runtime data.
Returns:
| Type | Description |
|---|---|
tuple[str, ...]
|
Ordered path variable names. |
Source code in fuzzy1337/requests.py
260 261 262 263 264 265 266 267 | |
Identity() -> ObjectIdentity
¶
Reuse the SOM Endpoint identity rather than inventing another object store.
Returns:
| Type | Description |
|---|---|
ObjectIdentity
|
Workspace-bound Endpoint natural key over canonical method/origin/path fields. |
Source code in fuzzy1337/requests.py
269 270 271 272 273 274 275 276 277 278 279 280 | |
ToDict() -> dict[str, object]
¶
Render canonical endpoint fields with their recomputable existing model reference.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Endpoint fields and object reference, without request values. |
Source code in fuzzy1337/requests.py
282 283 284 285 286 287 288 289 290 291 292 293 | |
FromDict(value: object) -> Endpoint
classmethod
¶
Decode stored canonical endpoint spelling and reject forged references.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Exact decoded endpoint object. |
required |
Returns:
| Type | Description |
|---|---|
Endpoint
|
Validated endpoint; alias spelling is accepted only by the constructor. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Fields, spelling or reference differ from the canonical endpoint. |
Source code in fuzzy1337/requests.py
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | |
InjectionPoint
dataclass
¶
Address one typed value slot without storing its value or a mutation payload.
Source code in fuzzy1337/requests.py
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 | |
__post_init__() -> None
¶
Validate location syntax and freeze header names before template-level checks.
Source code in fuzzy1337/requests.py
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | |
Coordinate() -> tuple[str, str, int]
¶
Identify an injection position independently of its value binding.
Returns:
| Type | Description |
|---|---|
tuple[str, str, int]
|
Location, selector and occurrence in canonical order. |
Source code in fuzzy1337/requests.py
366 367 368 369 370 371 372 373 | |
Reference(request_reference: str) -> str
¶
Bind an injection identity to one recomputable request template reference.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_reference
|
str
|
Validated request digest from the owning template. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Domain-separated injection reference. |
Raises:
| Type | Description |
|---|---|
ValueError
|
The owner reference is malformed. |
Source code in fuzzy1337/requests.py
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | |
ToDict() -> dict[str, object]
¶
Render a structural coordinate and symbolic binding.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Exact location, selector, binding and occurrence fields. |
Source code in fuzzy1337/requests.py
397 398 399 400 401 402 403 404 405 406 407 | |
FromDict(value: object) -> InjectionPoint
classmethod
¶
Decode an exact injection descriptor without accepting captured values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Decoded injection descriptor object. |
required |
Returns:
| Type | Description |
|---|---|
InjectionPoint
|
Validated immutable injection point. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Fields, coordinate, binding or stored spelling are invalid. |
Source code in fuzzy1337/requests.py
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 | |
RequestTemplate
dataclass
¶
Group structural inputs, encoding and a session reference without resolving values.
Source code in fuzzy1337/requests.py
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 | |
__post_init__() -> None
¶
Require coherent locations, ownership and unique deterministic coordinates.
Source code in fuzzy1337/requests.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | |
ValidatePoint(point: InjectionPoint) -> None
¶
Check encoding, path ownership and session-reference relationships.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
InjectionPoint
|
Typed input descriptor from this template. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
A descriptor cannot be represented by this template's structure. |
Source code in fuzzy1337/requests.py
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 | |
Fields() -> dict[str, object]
¶
Render identity fields without recursively including their digest.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Strict schema-versioned structural fields, with deterministic point order. |
Source code in fuzzy1337/requests.py
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 | |
Reference() -> str
¶
Return a digest of the complete unresolved structural template.
Returns:
| Type | Description |
|---|---|
str
|
Canonical request reference, including session and symbolic binding identity. |
Source code in fuzzy1337/requests.py
543 544 545 546 547 548 549 550 | |
ToDict() -> dict[str, object]
¶
Render a complete schema-versioned template with a verifiable reference.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Canonical serializable request template object. |
Source code in fuzzy1337/requests.py
552 553 554 555 556 557 558 559 | |
ToJson() -> str
¶
Serialize a deterministic portable template without accessing runtime values.
Returns:
| Type | Description |
|---|---|
str
|
Strict UTF-8 JSON text with no trailing newline. |
Source code in fuzzy1337/requests.py
561 562 563 564 565 566 567 568 | |
FromDict(value: object) -> RequestTemplate
classmethod
¶
Decode exact schema fields and recompute identity instead of trusting stored digests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Decoded canonical schema-versioned object. |
required |
Returns:
| Type | Description |
|---|---|
RequestTemplate
|
Validated template ready for a separate authorized runtime consumer. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Size, version, fields, canonical spelling or relationships are invalid. |
Source code in fuzzy1337/requests.py
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 | |
FromJson(value: str) -> RequestTemplate
classmethod
¶
Parse bounded strict JSON without duplicate-key or non-finite-value ambiguity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Serialized structural template, never a captured raw HTTP request. |
required |
Returns:
| Type | Description |
|---|---|
RequestTemplate
|
Validated immutable request template. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Input is oversized, malformed, noncanonical or outside schema version 1. |
Source code in fuzzy1337/requests.py
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 | |
RequestDigest(namespace: str, value: object) -> str
¶
Derive a domain-separated structural identity without consulting runtime values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
namespace
|
str
|
Request, injection, or session reference namespace. |
required |
value
|
object
|
Validated immutable structural identity fields. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Namespace and lowercase SHA-256 digest over canonical JSON. |
Source code in fuzzy1337/requests.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
RequirePointer(value: str) -> None
¶
Validate a bounded RFC 6901 pointer without resolving or decoding a body.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Root pointer or slash-prefixed pointer containing only valid tilde escapes. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
The pointer is malformed, oversized, or contains controls. |
Source code in fuzzy1337/requests.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
ProjectRequests(templates: tuple[RequestTemplate, ...], *, provenance: tuple[ModelProvenance, ...]) -> SecurityObject
¶
Project one endpoint's complete request collection into the existing model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
templates
|
tuple[RequestTemplate, ...]
|
Nonempty complete collection for one endpoint; replaces this attribute. |
required |
provenance
|
tuple[ModelProvenance, ...]
|
Nonempty existing model attribution for the structural observation. |
required |
Returns:
| Type | Description |
|---|---|
SecurityObject
|
Endpoint patch containing only the owned request_templates attribute. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Collection types, ownership, duplicates or model attribute bounds are invalid. |
Source code in fuzzy1337/requests.py
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 | |
RequestsFromObject(value: SecurityObject) -> tuple[RequestTemplate, ...]
¶
Reopen validated structural requests from the existing model's immutable attributes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
SecurityObject
|
Endpoint object from a real model snapshot; no scope authority is inferred. |
required |
Returns:
| Type | Description |
|---|---|
tuple[RequestTemplate, ...]
|
Ordered complete template collection, or empty when no projection is present. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Object kind, projection schema, order, identity or duplicates are invalid. |
Source code in fuzzy1337/requests.py
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 | |