{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Sessions", "description": "A group of sessions.", "type": "object", "required": [ "sessions" ], "properties": { "sessions": { "type": "array", "items": { "$ref": "#/definitions/Session" } } }, "definitions": { "Addr": { "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" }, "Binary": { "description": "Binary is a wrapper around Vec to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec. See also .", "type": "string" }, "Party": { "description": "An address with an associated role.", "type": "object", "required": [ "address", "role" ], "properties": { "address": { "$ref": "#/definitions/Addr" }, "role": { "$ref": "#/definitions/PartyType" } } }, "PartyType": { "description": "Roles that can be associated to a party.", "type": "string", "enum": [ "originator", "servicer", "investor", "custodian", "owner", "affiliate", "omnibus", "provenance", "unspecified" ] }, "Session": { "description": "The final state of an execution context for a specification instance.", "type": "object", "required": [ "context", "name", "session_id", "specification_id" ], "properties": { "context": { "$ref": "#/definitions/Binary" }, "name": { "type": "string" }, "parties": { "default": [], "type": "array", "items": { "$ref": "#/definitions/Party" } }, "session_id": { "type": "string" }, "specification_id": { "type": "string" } } } } }