const e="viverse:secure-api",n={AuthGetStatus:"auth:get-status",AuthStart:"auth:start",AuthLogout:"auth:logout",PublishGetStatus:"publish:get-status",WorldCreate:"world:create",WorldImport:"world:import"},r={AuthRequired:"auth-required",WorldNotOwner:"world-not-owner"};function o(t){return typeof t=="string"&&Object.values(r).includes(t)}function s(t){return typeof t!="object"||t===null||!("channel"in t)||!("requestId"in t)||!("action"in t)?!1:t.channel===e&&typeof t.requestId=="string"&&Object.values(n).includes(t.action)}function i(t){return typeof t=="object"&&t!==null&&"channel"in t&&"requestId"in t&&"ok"in t&&t.channel===e&&typeof t.requestId=="string"&&typeof t.ok=="boolean"&&(!("status"in t)||typeof t.status=="number")&&(!("reason"in t)||o(t.reason))}export{n as S,e as a,r as b,i as c,s as i};
