import{_ as n}from"./chunks/open-api.Dp6qYB4i.js";import{M as p}from"./chunks/index.BMSQkwth.js";/* empty css                                                            */import{J as m,c as u,e as l,G as i,w as y,B as c,o as d}from"./chunks/framework.Do-HmJSh.js";const C=JSON.parse('{"title":"List spaces","description":"","frontmatter":{"aside":false,"prev":false,"next":false,"lastUpdated":false},"headers":[],"params":{"operationId":"space-get","description":"To list both private and public resources, both of the `floor:queryPublic` and `floor:queryPrivate` scopes must be provided in the access token. If just one of the scopes is provided, then the query only returns resources that fall into that category. For example, a query with an access token that only has `floor:queryPublic` scope will only return public floors of the team.","summary":"List spaces","method":"get","path":"/space","parameters":[{"in":"query","name":"floorId","schema":{"type":"string","format":"uuid"},"description":"List all spaces within a Floor"},{"in":"query","name":"assetId","schema":{"type":"string","format":"uuid"},"description":"List spaces including in a specific asset"},{"in":"query","name":"geometry","schema":{"type":"boolean"},"description":"Whether to include `geometry` and `geometryOpenings` properties of the spaces in the results"},{"in":"query","name":"includeCustomAttributes","schema":{"type":"boolean"},"description":"Whether to include custom attributes on the resource in the result"},{"in":"query","name":"limit","schema":{"type":"integer","default":500,"minimum":1,"maximum":500},"description":"Pagination support for large results"},{"in":"query","name":"offset","schema":{"type":"integer","default":0,"minimum":0},"description":"Pagination support for large results"}],"responses":{"200":{"description":"The response will include a limited number of items per page. Iterate over the pages to fetch all items.","content":{"application/json":{"schema":{"required":["type","features"],"additionalProperties":false,"properties":{"type":{"enum":["FeatureCollection"]},"features":{"type":"array","items":{"allOf":[{"type":"object","required":["type","id","resourceType","resourceRelations","properties"],"additionalProperties":false,"properties":{"type":{"enum":["Feature"]},"id":{"type":"string","format":"uuid"},"resourceType":{"type":"string","enum":["Space"]},"resourceRelations":{"type":"object","properties":{"floors":{"type":"array","items":{"type":"string","format":"uuid"}},"spaces":{"type":"array","items":{"type":"string","format":"uuid"}},"assets":{"type":"array","items":{"type":"string","format":"uuid"}}}},"properties":{"additionalProperties":false,"required":["height","northDirection"],"properties":{"externalIds":{"type":"array","items":{"type":"string"}},"area":{"type":"number"},"center":{"type":"array"},"usage":{"type":"string"},"program":{"type":"string"},"height":{"type":"number"},"northDirection":{"type":["number","array"]},"customId":{"type":"string"},"name":{"type":"string"},"customAttributes":{"type":"array","items":{"additionalProperties":false,"required":["value","valueType","apiFieldName"],"properties":{"apiFieldName":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"valueType":{"type":"string","enum":["Boolean","Text","Number"]},"value":{"anyOf":[{"type":"number"},{"type":"boolean"},{"type":"string"}]}}}}}}}},{"additionalProperties":false,"properties":{"geometry":{"required":["type","coordinates"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":3},"minItems":4}}}},"geometryOpenings":{"type":"array","items":{"required":["type","edgeIdx","pos","y","l","h","id"],"additionalProperties":false,"properties":{"type":{"type":"string"},"edgeIdx":{"type":"array","items":{"type":"integer"},"minItems":2,"maxItems":2},"pos":{"type":"number"},"y":{"type":"number"},"l":{"type":"number"},"h":{"type":"number"},"id":{"type":"string"}}}}}}]}}}}}}}}},"relativePath":"space-api/v2/reference/operations/space-get.md","filePath":"space-api/v2/reference/operations/space-get.md"}'),f={name:"space-api/v2/reference/operations/space-get.md"},T=Object.assign(f,{setup(g){var s;const a=m();p();const{method:h,description:b,summary:_,path:q,parameters:e,requestBody:r,responses:v}=a.data.params;return e!=null&&e.filter(t=>t.in==="query"),e!=null&&e.filter(t=>t.in==="path"),(s=r==null?void 0:r.content["application/json"])==null||s.schema,(t,I)=>{const o=c("ClientOnly");return d(),u("div",null,[l("",!0),i(o,null,{default:y(()=>[i(n)]),_:1})])}}});export{C as __pageData,T as default};
