{ "schemas": { "PartyAuthentication": { "type": "object", "additionalProperties": false, "required": [ "party_id", "revision", "auth_version", "access_state", "identity_state", "authentication_eligible" ], "properties": { "party_id": { "type": "string", "format": "uuid" }, "revision": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 9007199254740991 }, "auth_version": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 9007199254740991 }, "access_state": { "type": "string", "enum": [ "enabled", "disabled" ] }, "identity_state": { "type": "string", "enum": [ "enabled" ] }, "authentication_eligible": { "type": "boolean" } } }, "PartyIdentityAttributes": { "type": "object", "additionalProperties": false, "required": [ "revision", "auth_version", "observed_at", "display_name", "email", "given_name", "family_name", "preferred_username", "schac_home_organization", "voperson_id", "site_username", "email_verified", "voperson_external_affiliation", "entitlements" ], "properties": { "revision": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 9007199254740991 }, "auth_version": { "type": "integer", "format": "int64", "minimum": 1, "maximum": 9007199254740991 }, "observed_at": { "type": "string", "format": "date-time" }, "display_name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "given_name": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 1024 }, "family_name": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 1024 }, "preferred_username": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 256 }, "schac_home_organization": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 2048 }, "voperson_id": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 2048 }, "site_username": { "type": "string", "nullable": true, "minLength": 1, "maxLength": 256 }, "email_verified": { "type": "boolean" }, "voperson_external_affiliation": { "type": "array", "nullable": true, "maxItems": 128, "items": { "type": "string", "minLength": 1, "maxLength": 2048 } }, "entitlements": { "type": "array", "nullable": true, "maxItems": 128, "items": { "type": "string", "minLength": 1, "maxLength": 2048 } } } }, "CurrentParty": { "type": "object", "additionalProperties": false, "required": [ "authentication", "attributes_state", "attributes", "policy_authority" ], "properties": { "authentication": { "$ref": "#/schemas/PartyAuthentication" }, "attributes_state": { "type": "string", "enum": [ "pending", "ready" ] }, "attributes": { "type": "object", "nullable": true, "allOf": [ { "$ref": "#/schemas/PartyIdentityAttributes" } ] }, "policy_authority": { "type": "string", "enum": [ "legacy_themelio" ] } } }, "ProfileSocialLinks": { "type": "object", "additionalProperties": false, "required": [ "github", "twitter", "linkedin", "youtube", "facebook", "instagram" ], "properties": { "github": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "twitter": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "linkedin": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "youtube": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "facebook": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "instagram": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" } } }, "PartyProfile": { "type": "object", "additionalProperties": false, "required": [ "party_id", "revision", "display_name", "bio", "location", "website", "social_links", "visibility" ], "properties": { "party_id": { "type": "string", "format": "uuid" }, "revision": { "type": "integer", "format": "int64", "minimum": 0, "maximum": 9007199254740991 }, "display_name": { "type": "string", "maxLength": 256, "x-party-profile-format": "text" }, "bio": { "type": "string", "maxLength": 4096, "x-party-profile-format": "multiline" }, "location": { "type": "string", "maxLength": 256, "x-party-profile-format": "text" }, "website": { "type": "string", "maxLength": 2048, "x-party-profile-format": "website" }, "social_links": { "$ref": "#/schemas/ProfileSocialLinks" }, "visibility": { "type": "string", "enum": [ "private", "public" ] } } }, "UpdateProfileSocialLinks": { "type": "object", "additionalProperties": false, "required": [ "github", "twitter", "linkedin", "youtube", "facebook", "instagram" ], "properties": { "github": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "twitter": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "linkedin": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "youtube": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "facebook": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" }, "instagram": { "type": "string", "maxLength": 256, "x-party-profile-format": "social" } }, "x-direction": "request" }, "UpdateMyProfile": { "type": "object", "additionalProperties": false, "required": [ "display_name", "bio", "location", "website", "social_links", "visibility" ], "properties": { "display_name": { "type": "string", "maxLength": 256, "x-party-profile-format": "text" }, "bio": { "type": "string", "maxLength": 4096, "x-party-profile-format": "multiline" }, "location": { "type": "string", "maxLength": 256, "x-party-profile-format": "text" }, "website": { "type": "string", "maxLength": 2048, "x-party-profile-format": "website" }, "social_links": { "$ref": "#/schemas/UpdateProfileSocialLinks" }, "visibility": { "type": "string", "enum": [ "private", "public" ] } }, "x-direction": "request" } } }