Refactors page-related API interactions and client-side logic to align with an updated Kiota client and recent backend API changes.
* Regenerates Kiota client with `--clear-cache` to ensure integration with the latest OpenAPI specification.
* Adapts page data mapping to handle Kiota's improved type generation for `content`, `parentPageId`, `createdAt`, `updatedAt`, and `sortOrder`, which now correctly map to primitive types.
* Updates page listing and detail fetching to consume responses wrapped in `PageListResponseDto` instead of direct arrays.
* Removes explicit `userId` parameters from `createPage`, `updatePage`, and `deletePage` functions, as user context is now handled by server-side authentication.
* Extends the `updatePage` functionality to allow modifications of `parentId` and `sortOrder`.
* Standardizes API error responses across Kiota-generated endpoints to use a generic `ErrorResponseDto`.
* Corrects Kiota-generated response types for several primitive endpoints from `ArrayBuffer` to `string`.
* Enhances the UI to support space-aware page creation and navigation flows, including a new "Add Sub Page" option directly from the sidebar for hierarchical page management.
Refactors all page entity operations (get, create, update, delete) to use the Kiota-generated API client instead of mock data. This involves:
* Replacing in-memory data and simulated delays with actual API calls to the `/v1/page` endpoint.
* Introducing `ApiClient` and `Guid` types from Kiota for API interactions.
* Adding a mapping function (`mapPageResponseToPage`) to convert API DTOs to the application's local `Page` type.
* Updating page-related UI components (`PageListPage`, `PageDetailPage`, `PageEditPage`) to pass the authenticated `ApiClient` and `userId` to the entity functions.
* Regenerating the Kiota client to include new `image`, `page`, and `space` API endpoints and their associated DTOs.
* Introducing `useApiClient` and `useUserId` hooks for streamlined API client access and user context.