vibesketcher.server.guest_loading¶
REST routes for reproducible guest loading into periodic hosts (#203).
A preview reads the current document and changes nothing; applying is checked against the document revision (and optionally the previewed host digest) and recorded as an edit; an applied loading has an undo route that refuses when the loaded model changed since.
Functions
|
Classes
|
|
|
|
|
- class vibesketcher.server.guest_loading.LoadingPreviewRequest(*, loading)[source]¶
Bases:
BaseModel- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.guest_loading.LoadingRequest(*, actor='agent', client='rest', revision, loading, source_sha256=None)[source]¶
Bases:
RevisionRequest- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.guest_loading.LoadingUndoRequest(*, actor='agent', client='rest', revision, structure)[source]¶
Bases:
RevisionRequest- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].