@learnorama/mozaik-sdk 0.20.4-staging.65.1 → 0.21.0-staging.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FRONTEND-REQUESTS.md +5 -3
- package/README.md +24 -0
- package/dist/api/account.d.ts +16 -1
- package/dist/api/account.js +30 -1
- package/dist/api/account.js.map +1 -1
- package/dist/api/admin-catalogue.d.ts +1 -1
- package/dist/api/admin-catalogue.js.map +1 -1
- package/dist/api/admin-consumption.d.ts +1 -1
- package/dist/api/admin-consumption.js.map +1 -1
- package/dist/api/admin-contracts.d.ts +1 -1
- package/dist/api/admin-contracts.js.map +1 -1
- package/dist/api/admin-customer.d.ts +1 -1
- package/dist/api/admin-customer.js.map +1 -1
- package/dist/api/admin-desk.d.ts +7 -1
- package/dist/api/admin-desk.js +27 -1
- package/dist/api/admin-desk.js.map +1 -1
- package/dist/api/admin-licenses.d.ts +1 -1
- package/dist/api/admin-licenses.js.map +1 -1
- package/dist/api/admin-partner-selections.d.ts +1 -1
- package/dist/api/admin-partner-selections.js.map +1 -1
- package/dist/api/admin-patrons.d.ts +1 -1
- package/dist/api/admin-patrons.js.map +1 -1
- package/dist/api/admin-reviews.d.ts +1 -1
- package/dist/api/admin-reviews.js.map +1 -1
- package/dist/api/admin-roles.d.ts +1 -1
- package/dist/api/admin-roles.js.map +1 -1
- package/dist/api/admin-support.d.ts +1 -1
- package/dist/api/admin-support.js.map +1 -1
- package/dist/api/admin-tenants.d.ts +1 -1
- package/dist/api/admin-tenants.js.map +1 -1
- package/dist/api/admin-tutoring.d.ts +1 -1
- package/dist/api/admin-tutoring.js.map +1 -1
- package/dist/api/admin-vod.d.ts +1 -1
- package/dist/api/admin-vod.js.map +1 -1
- package/dist/api/auth-device.d.ts +1 -1
- package/dist/api/auth-device.js.map +1 -1
- package/dist/api/auth.d.ts +7 -1
- package/dist/api/auth.js +14 -1
- package/dist/api/auth.js.map +1 -1
- package/dist/api/biblio-billing-webhooks.d.ts +1 -1
- package/dist/api/biblio-billing-webhooks.js.map +1 -1
- package/dist/api/biblio-billing.d.ts +1 -1
- package/dist/api/biblio-billing.js.map +1 -1
- package/dist/api/biblio-catalogue.d.ts +1 -1
- package/dist/api/biblio-catalogue.js.map +1 -1
- package/dist/api/biblio-home.d.ts +1 -1
- package/dist/api/biblio-home.js.map +1 -1
- package/dist/api/biblio-learning-author-profiles.d.ts +1 -1
- package/dist/api/biblio-learning-author-profiles.js.map +1 -1
- package/dist/api/biblio-learning-authoring.d.ts +1 -1
- package/dist/api/biblio-learning-authoring.js.map +1 -1
- package/dist/api/biblio-learning-editorial.d.ts +1 -1
- package/dist/api/biblio-learning-editorial.js.map +1 -1
- package/dist/api/biblio-learning-feedback.d.ts +1 -1
- package/dist/api/biblio-learning-feedback.js.map +1 -1
- package/dist/api/biblio-learning-finance.d.ts +1 -1
- package/dist/api/biblio-learning-finance.js.map +1 -1
- package/dist/api/biblio-learning-integrations.d.ts +1 -1
- package/dist/api/biblio-learning-integrations.js.map +1 -1
- package/dist/api/biblio-learning-membership.d.ts +1 -1
- package/dist/api/biblio-learning-membership.js.map +1 -1
- package/dist/api/biblio-learning.d.ts +1 -1
- package/dist/api/biblio-learning.js.map +1 -1
- package/dist/api/biblio-library.d.ts +1 -1
- package/dist/api/biblio-library.js.map +1 -1
- package/dist/api/biblio-nextory.d.ts +1 -1
- package/dist/api/biblio-nextory.js.map +1 -1
- package/dist/api/biblio-press.d.ts +1 -1
- package/dist/api/biblio-press.js.map +1 -1
- package/dist/api/biblio-search.d.ts +1 -1
- package/dist/api/biblio-search.js.map +1 -1
- package/dist/api/biblio-telemetry.d.ts +1 -1
- package/dist/api/biblio-telemetry.js.map +1 -1
- package/dist/api/biblio-youscribe.js.map +1 -1
- package/dist/api/consumption.d.ts +1 -1
- package/dist/api/consumption.js.map +1 -1
- package/dist/api/cvs-app.d.ts +1 -1
- package/dist/api/cvs-app.js.map +1 -1
- package/dist/api/cvs-documents.d.ts +1 -1
- package/dist/api/cvs-documents.js.map +1 -1
- package/dist/api/cvs-favorites.d.ts +1 -1
- package/dist/api/cvs-favorites.js.map +1 -1
- package/dist/api/cvs-ils.d.ts +1 -1
- package/dist/api/cvs-ils.js.map +1 -1
- package/dist/api/cvs-loans.d.ts +1 -1
- package/dist/api/cvs-loans.js.map +1 -1
- package/dist/api/cvs-payments.d.ts +1 -1
- package/dist/api/cvs-payments.js.map +1 -1
- package/dist/api/cvs-streaming.d.ts +1 -1
- package/dist/api/cvs-streaming.js.map +1 -1
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +4 -4
- package/dist/api/partner-catalogue.d.ts +1 -1
- package/dist/api/partner-catalogue.js.map +1 -1
- package/dist/api/partner-reader-nextory.d.ts +1 -1
- package/dist/api/partner-reader-nextory.js.map +1 -1
- package/dist/api/partner-reader-youscribe.d.ts +1 -1
- package/dist/api/partner-reader-youscribe.js.map +1 -1
- package/dist/api/partner-reading.d.ts +1 -1
- package/dist/api/partner-reading.js.map +1 -1
- package/dist/api/profiles.d.ts +1 -1
- package/dist/api/profiles.js.map +1 -1
- package/dist/api/search.d.ts +1 -1
- package/dist/api/search.js.map +1 -1
- package/dist/api/tutoring-catalogue.d.ts +1 -1
- package/dist/api/tutoring-catalogue.js.map +1 -1
- package/dist/api/tutoring-chat.d.ts +1 -1
- package/dist/api/tutoring-chat.js.map +1 -1
- package/dist/api/tutoring-dispatch.d.ts +1 -1
- package/dist/api/tutoring-dispatch.js.map +1 -1
- package/dist/api/tutoring-practitioner.d.ts +1 -1
- package/dist/api/tutoring-practitioner.js.map +1 -1
- package/dist/api/tutoring-requests.d.ts +1 -1
- package/dist/api/tutoring-requests.js.map +1 -1
- package/dist/chunks/client2.d.ts +1 -1
- package/dist/chunks/connection.d.ts +1 -1
- package/dist/chunks/index.d.ts +1067 -651
- package/dist/chunks/index2.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/models.js +108 -2
- package/dist/models.js.map +1 -1
- package/dist/react/account.d.ts +60 -1
- package/dist/react/account.js +83 -2
- package/dist/react/account.js.map +1 -1
- package/dist/react/admin-catalogue.d.ts +1 -1
- package/dist/react/admin-catalogue.js +1 -1
- package/dist/react/admin-catalogue.js.map +1 -1
- package/dist/react/admin-consumption.d.ts +1 -1
- package/dist/react/admin-consumption.js +1 -1
- package/dist/react/admin-consumption.js.map +1 -1
- package/dist/react/admin-contracts.d.ts +1 -1
- package/dist/react/admin-contracts.js +1 -1
- package/dist/react/admin-contracts.js.map +1 -1
- package/dist/react/admin-customer.d.ts +1 -1
- package/dist/react/admin-customer.js +1 -1
- package/dist/react/admin-customer.js.map +1 -1
- package/dist/react/admin-desk.d.ts +25 -1
- package/dist/react/admin-desk.js +56 -2
- package/dist/react/admin-desk.js.map +1 -1
- package/dist/react/admin-licenses.d.ts +1 -1
- package/dist/react/admin-licenses.js +1 -1
- package/dist/react/admin-licenses.js.map +1 -1
- package/dist/react/admin-partner-selections.d.ts +1 -1
- package/dist/react/admin-partner-selections.js +1 -1
- package/dist/react/admin-partner-selections.js.map +1 -1
- package/dist/react/admin-patrons.d.ts +1 -1
- package/dist/react/admin-patrons.js +1 -1
- package/dist/react/admin-patrons.js.map +1 -1
- package/dist/react/admin-reviews.d.ts +1 -1
- package/dist/react/admin-reviews.js +1 -1
- package/dist/react/admin-reviews.js.map +1 -1
- package/dist/react/admin-roles.d.ts +1 -1
- package/dist/react/admin-roles.js +1 -1
- package/dist/react/admin-roles.js.map +1 -1
- package/dist/react/admin-support.d.ts +1 -1
- package/dist/react/admin-support.js +1 -1
- package/dist/react/admin-support.js.map +1 -1
- package/dist/react/admin-tenants.d.ts +1 -1
- package/dist/react/admin-tenants.js +1 -1
- package/dist/react/admin-tenants.js.map +1 -1
- package/dist/react/admin-tutoring.d.ts +1 -1
- package/dist/react/admin-tutoring.js +1 -1
- package/dist/react/admin-tutoring.js.map +1 -1
- package/dist/react/admin-vod.d.ts +1 -1
- package/dist/react/admin-vod.js +1 -1
- package/dist/react/admin-vod.js.map +1 -1
- package/dist/react/auth-device.d.ts +1 -1
- package/dist/react/auth-device.js +1 -1
- package/dist/react/auth-device.js.map +1 -1
- package/dist/react/auth.d.ts +34 -1
- package/dist/react/auth.js +39 -2
- package/dist/react/auth.js.map +1 -1
- package/dist/react/biblio-billing-webhooks.d.ts +1 -1
- package/dist/react/biblio-billing-webhooks.js +1 -1
- package/dist/react/biblio-billing-webhooks.js.map +1 -1
- package/dist/react/biblio-billing.d.ts +1 -1
- package/dist/react/biblio-billing.js +1 -1
- package/dist/react/biblio-billing.js.map +1 -1
- package/dist/react/biblio-catalogue.d.ts +1 -1
- package/dist/react/biblio-catalogue.js +1 -1
- package/dist/react/biblio-catalogue.js.map +1 -1
- package/dist/react/biblio-home.d.ts +1 -1
- package/dist/react/biblio-home.js +1 -1
- package/dist/react/biblio-home.js.map +1 -1
- package/dist/react/biblio-learning-author-profiles.d.ts +1 -1
- package/dist/react/biblio-learning-author-profiles.js +1 -1
- package/dist/react/biblio-learning-author-profiles.js.map +1 -1
- package/dist/react/biblio-learning-authoring.d.ts +1 -1
- package/dist/react/biblio-learning-authoring.js +1 -1
- package/dist/react/biblio-learning-authoring.js.map +1 -1
- package/dist/react/biblio-learning-editorial.d.ts +1 -1
- package/dist/react/biblio-learning-editorial.js +1 -1
- package/dist/react/biblio-learning-editorial.js.map +1 -1
- package/dist/react/biblio-learning-feedback.d.ts +1 -1
- package/dist/react/biblio-learning-feedback.js +1 -1
- package/dist/react/biblio-learning-feedback.js.map +1 -1
- package/dist/react/biblio-learning-finance.d.ts +1 -1
- package/dist/react/biblio-learning-finance.js +1 -1
- package/dist/react/biblio-learning-finance.js.map +1 -1
- package/dist/react/biblio-learning-integrations.d.ts +1 -1
- package/dist/react/biblio-learning-integrations.js +1 -1
- package/dist/react/biblio-learning-integrations.js.map +1 -1
- package/dist/react/biblio-learning-membership.d.ts +1 -1
- package/dist/react/biblio-learning-membership.js +1 -1
- package/dist/react/biblio-learning-membership.js.map +1 -1
- package/dist/react/biblio-learning.d.ts +1 -1
- package/dist/react/biblio-learning.js +1 -1
- package/dist/react/biblio-learning.js.map +1 -1
- package/dist/react/biblio-library.d.ts +1 -1
- package/dist/react/biblio-library.js +1 -1
- package/dist/react/biblio-library.js.map +1 -1
- package/dist/react/biblio-nextory.d.ts +1 -1
- package/dist/react/biblio-nextory.js +1 -1
- package/dist/react/biblio-nextory.js.map +1 -1
- package/dist/react/biblio-press.d.ts +1 -1
- package/dist/react/biblio-press.js +1 -1
- package/dist/react/biblio-press.js.map +1 -1
- package/dist/react/biblio-search.d.ts +1 -1
- package/dist/react/biblio-search.js +1 -1
- package/dist/react/biblio-search.js.map +1 -1
- package/dist/react/biblio-telemetry.d.ts +1 -1
- package/dist/react/biblio-telemetry.js +1 -1
- package/dist/react/biblio-telemetry.js.map +1 -1
- package/dist/react/biblio-youscribe.d.ts +1 -1
- package/dist/react/biblio-youscribe.js +1 -1
- package/dist/react/biblio-youscribe.js.map +1 -1
- package/dist/react/chat.d.ts +1 -1
- package/dist/react/consumption.d.ts +1 -1
- package/dist/react/consumption.js +1 -1
- package/dist/react/consumption.js.map +1 -1
- package/dist/react/cvs-app.d.ts +1 -1
- package/dist/react/cvs-app.js +1 -1
- package/dist/react/cvs-app.js.map +1 -1
- package/dist/react/cvs-documents.d.ts +1 -1
- package/dist/react/cvs-documents.js +1 -1
- package/dist/react/cvs-documents.js.map +1 -1
- package/dist/react/cvs-favorites.d.ts +1 -1
- package/dist/react/cvs-favorites.js +1 -1
- package/dist/react/cvs-favorites.js.map +1 -1
- package/dist/react/cvs-ils.d.ts +1 -1
- package/dist/react/cvs-ils.js +1 -1
- package/dist/react/cvs-ils.js.map +1 -1
- package/dist/react/cvs-loans.d.ts +1 -1
- package/dist/react/cvs-loans.js +1 -1
- package/dist/react/cvs-loans.js.map +1 -1
- package/dist/react/cvs-payments.d.ts +1 -1
- package/dist/react/cvs-payments.js +1 -1
- package/dist/react/cvs-payments.js.map +1 -1
- package/dist/react/cvs-streaming.d.ts +1 -1
- package/dist/react/cvs-streaming.js +1 -1
- package/dist/react/cvs-streaming.js.map +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/dist/react/partner-catalogue.d.ts +1 -1
- package/dist/react/partner-catalogue.js +1 -1
- package/dist/react/partner-catalogue.js.map +1 -1
- package/dist/react/partner-reader-nextory.d.ts +1 -1
- package/dist/react/partner-reader-nextory.js +1 -1
- package/dist/react/partner-reader-nextory.js.map +1 -1
- package/dist/react/partner-reader-youscribe.d.ts +1 -1
- package/dist/react/partner-reader-youscribe.js +1 -1
- package/dist/react/partner-reader-youscribe.js.map +1 -1
- package/dist/react/partner-reading.d.ts +1 -1
- package/dist/react/partner-reading.js +1 -1
- package/dist/react/partner-reading.js.map +1 -1
- package/dist/react/profiles.d.ts +1 -1
- package/dist/react/profiles.js +1 -1
- package/dist/react/profiles.js.map +1 -1
- package/dist/react/search.d.ts +1 -1
- package/dist/react/search.js +1 -1
- package/dist/react/search.js.map +1 -1
- package/dist/react/tutoring-catalogue.d.ts +1 -1
- package/dist/react/tutoring-catalogue.js +1 -1
- package/dist/react/tutoring-catalogue.js.map +1 -1
- package/dist/react/tutoring-chat.d.ts +1 -1
- package/dist/react/tutoring-chat.js +1 -1
- package/dist/react/tutoring-chat.js.map +1 -1
- package/dist/react/tutoring-dispatch.d.ts +1 -1
- package/dist/react/tutoring-dispatch.js +1 -1
- package/dist/react/tutoring-dispatch.js.map +1 -1
- package/dist/react/tutoring-practitioner.d.ts +1 -1
- package/dist/react/tutoring-practitioner.js +1 -1
- package/dist/react/tutoring-practitioner.js.map +1 -1
- package/dist/react/tutoring-requests.d.ts +1 -1
- package/dist/react/tutoring-requests.js +1 -1
- package/dist/react/tutoring-requests.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"biblio-learning-authoring.js","names":[],"sources":["../../src/react/biblio-learning-authoring/biblio-learning-authoring.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.20.4\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n CourseAuthorRevisionRead,\n CourseReviewWrite,\n CourseRevisionPage,\n CourseRevisionRead,\n CourseRevisionWriteInput,\n HTTPExceptionResponse,\n LearningAssessmentWriteInput,\n LearningAssetRead,\n LearningAssetWrite,\n LearningCaptionWrite,\n LearningCatalogueGrantWrite,\n LearningCatalogueListRead,\n LearningCatalogueRead,\n LearningCatalogueWrite,\n LearningCourseAdminPage,\n LearningCourseAdminRead,\n LearningCourseCreateWrite,\n LearningCourseSettingsWrite,\n LearningLibraryDocumentRead,\n LearningLibraryPage,\n LearningLibraryRead,\n LearningLibraryVersionPage,\n LearningLibraryVersionRead,\n LearningLibraryVersionWrite,\n LearningLibraryWrite,\n LearningListAuthorCoursesParams,\n LearningListLibrariesParams,\n LearningListLibraryVersionsParams,\n LearningListRevisionsParams,\n LearningPathAdminRead,\n LearningPathAssessmentRead,\n LearningPathWrite,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType , BodyType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getLearningListAuthorCataloguesUrl = () => {\n\n\n\n\n return `/learning/author/catalogues`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Lists active catalogues with creation, review or finance authority. Review permission also enables creation; finance permission alone does not. The collection is ordered by catalogue ID and is not paginated.\n * @summary List my authoring catalogues\n */\nexport const learningListAuthorCatalogues = async ( options?: Parameters<typeof request>[1]): Promise<LearningCatalogueListRead> => {\n\n return request<LearningCatalogueListRead>(getLearningListAuthorCataloguesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListAuthorCataloguesQueryKey = () => {\n return [\n `/learning/author/catalogues`\n ] as const;\n }\n\n\nexport const getLearningListAuthorCataloguesQueryOptions = <TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListAuthorCataloguesQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListAuthorCatalogues>>> = ({ signal }) => learningListAuthorCatalogues({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListAuthorCataloguesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListAuthorCatalogues>>>\nexport type LearningListAuthorCataloguesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List my authoring catalogues\n */\n\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListAuthorCataloguesQueryOptions(options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateAuthorCatalogueUrl = () => {\n\n\n\n\n return `/learning/author/catalogues`\n}\n\n/**\n * Requires global catalogue write authority and rejects support impersonation. Creates an active authoring catalogue; the returned capability flags describe the operator making this request.\n * @summary Create a learning catalogue\n */\nexport const learningCreateAuthorCatalogue = async (learningCatalogueWrite: LearningCatalogueWrite, options?: Parameters<typeof request>[1]): Promise<LearningCatalogueRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCatalogueRead>(getLearningCreateAuthorCatalogueUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCatalogueWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateAuthorCatalogueMutationKey = () => ['learningCreateAuthorCatalogue'] as const;\n\nexport const getLearningCreateAuthorCatalogueMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateAuthorCatalogueMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, LearningCreateAuthorCatalogueMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateAuthorCatalogue(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateAuthorCatalogueMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>>\n export type LearningCreateAuthorCatalogueMutationBody = BodyType<LearningCatalogueWrite>\n export type LearningCreateAuthorCatalogueMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateAuthorCatalogueMutationVariables = {data: BodyType<LearningCatalogueWrite>}\n\n /**\n * @summary Create a learning catalogue\n */\nexport const useLearningCreateAuthorCatalogue = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>,\n TError,\n LearningCreateAuthorCatalogueMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateAuthorCatalogueMutationOptions(options), queryClient);\n }\n export const getLearningSetCatalogueAuthorityUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/author/catalogues/${catalogueId}/authority`\n}\n\n/**\n * Requires global catalogue write authority. Replaces all three grants for the selected active independent account, including revocation when all flags are false. The reason is recorded for audit. Successful updates return 204 with no response body.\n * @summary Replace an author's catalogue permissions\n */\nexport const learningSetCatalogueAuthority = async (catalogueId: number,\n learningCatalogueGrantWrite: LearningCatalogueGrantWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetCatalogueAuthorityUrl(catalogueId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCatalogueGrantWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningSetCatalogueAuthorityMutationKey = () => ['learningSetCatalogueAuthority'] as const;\n\nexport const getLearningSetCatalogueAuthorityMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSetCatalogueAuthorityMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, LearningSetCatalogueAuthorityMutationVariables> = (props) => {\n const {catalogueId,data} = props ?? {};\n\n return learningSetCatalogueAuthority(catalogueId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSetCatalogueAuthorityMutationResult = NonNullable<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>>\n export type LearningSetCatalogueAuthorityMutationBody = BodyType<LearningCatalogueGrantWrite>\n export type LearningSetCatalogueAuthorityMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSetCatalogueAuthorityMutationVariables = {catalogueId: number;data: BodyType<LearningCatalogueGrantWrite>}\n\n /**\n * @summary Replace an author's catalogue permissions\n */\nexport const useLearningSetCatalogueAuthority = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSetCatalogueAuthority>>,\n TError,\n LearningSetCatalogueAuthorityMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSetCatalogueAuthorityMutationOptions(options), queryClient);\n }\n export const getLearningListAuthorCoursesUrl = (params?: LearningListAuthorCoursesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses?${stringifiedParams}` : `/learning/author/courses`\n}\n\n/**\n * Returns courses assigned to the effective author and courses in active catalogues they may review. Global administrators and support readers can see all courses. Dependent profiles and support impersonation are refused. Pagination counts this authorized scope and sorts by course ID ascending; draft courses are included.\n * @summary List courses available to the author\n */\nexport const learningListAuthorCourses = async (params?: LearningListAuthorCoursesParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminPage> => {\n\n return request<LearningCourseAdminPage>(getLearningListAuthorCoursesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListAuthorCoursesQueryKey = (params?: LearningListAuthorCoursesParams,) => {\n return [\n `/learning/author/courses`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListAuthorCoursesQueryOptions = <TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListAuthorCoursesQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListAuthorCourses>>> = ({ signal }) => learningListAuthorCourses(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListAuthorCoursesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListAuthorCourses>>>\nexport type LearningListAuthorCoursesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | LearningListAuthorCoursesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCourses>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCourses>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCourses>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCourses>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List courses available to the author\n */\n\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListAuthorCoursesQueryOptions(params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateCourseUrl = () => {\n\n\n\n\n return `/learning/author/courses`\n}\n\n/**\n * Create an inactive course from a title in an authorized catalogue, then register media and create an edition. Binding an existing catalogue contentId, or creating without catalogueId, requires global administration. Assigning other authors requires curator authority. Publication activates a new course; this request alone does not make it readable.\n * @summary Create a native course shell\n */\nexport const learningCreateCourse = async (learningCourseCreateWrite: LearningCourseCreateWrite, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCourseAdminRead>(getLearningCreateCourseUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCourseCreateWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateCourseMutationKey = () => ['learningCreateCourse'] as const;\n\nexport const getLearningCreateCourseMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateCourseMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateCourse>>, LearningCreateCourseMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateCourse(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateCourseMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateCourse>>>\n export type LearningCreateCourseMutationBody = BodyType<LearningCourseCreateWrite>\n export type LearningCreateCourseMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateCourseMutationVariables = {data: BodyType<LearningCourseCreateWrite>}\n\n /**\n * @summary Create a native course shell\n */\nexport const useLearningCreateCourse = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateCourse>>,\n TError,\n LearningCreateCourseMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateCourseMutationOptions(options), queryClient);\n }\n export const getLearningUpdateCourseSettingsUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}`\n}\n\n/**\n * Requires course curator or global administrator authority and an audit reason. Non-null scalar fields replace their current values; null or omitted values leave them unchanged. authorIds replaces the complete author set, including clearing it with an empty list. A course must have a published edition before isActive can be true.\n * @summary Update publication and author settings\n */\nexport const learningUpdateCourseSettings = async (courseId: number,\n learningCourseSettingsWrite: LearningCourseSettingsWrite, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCourseAdminRead>(getLearningUpdateCourseSettingsUrl(courseId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCourseSettingsWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningUpdateCourseSettingsMutationKey = () => ['learningUpdateCourseSettings'] as const;\n\nexport const getLearningUpdateCourseSettingsMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext> => {\n\nconst mutationKey = getLearningUpdateCourseSettingsMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, LearningUpdateCourseSettingsMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningUpdateCourseSettings(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningUpdateCourseSettingsMutationResult = NonNullable<Awaited<ReturnType<typeof learningUpdateCourseSettings>>>\n export type LearningUpdateCourseSettingsMutationBody = BodyType<LearningCourseSettingsWrite>\n export type LearningUpdateCourseSettingsMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningUpdateCourseSettingsMutationVariables = {courseId: number;data: BodyType<LearningCourseSettingsWrite>}\n\n /**\n * @summary Update publication and author settings\n */\nexport const useLearningUpdateCourseSettings = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningUpdateCourseSettings>>,\n TError,\n LearningUpdateCourseSettingsMutationVariables,\n TContext\n > => {\n return useMutation(getLearningUpdateCourseSettingsMutationOptions(options), queryClient);\n }\n export const getLearningRegisterAssetUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/assets`\n}\n\n/**\n * Requires edit authority on the course. Registers an immutable media reference for use in edition definitions. Vimeo requires a numeric video ID; external resources require HTTPS without credentials; HTML is sanitized; storage keys must identify an existing object under this author's learning prefix. The response identifies the asset and does not issue a playback URL. For new file bytes use the upload reservation workflow.\n * @summary Register a course media resource\n */\nexport const learningRegisterAsset = async (courseId: number,\n learningAssetWrite: LearningAssetWrite, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningAssetRead>(getLearningRegisterAssetUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningAssetWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningRegisterAssetMutationKey = () => ['learningRegisterAsset'] as const;\n\nexport const getLearningRegisterAssetMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext> => {\n\nconst mutationKey = getLearningRegisterAssetMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningRegisterAsset>>, LearningRegisterAssetMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningRegisterAsset(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningRegisterAssetMutationResult = NonNullable<Awaited<ReturnType<typeof learningRegisterAsset>>>\n export type LearningRegisterAssetMutationBody = BodyType<LearningAssetWrite>\n export type LearningRegisterAssetMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningRegisterAssetMutationVariables = {courseId: number;data: BodyType<LearningAssetWrite>}\n\n /**\n * @summary Register a course media resource\n */\nexport const useLearningRegisterAsset = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningRegisterAsset>>,\n TError,\n LearningRegisterAssetMutationVariables,\n TContext\n > => {\n return useMutation(getLearningRegisterAssetMutationOptions(options), queryClient);\n }\n export const getLearningAttachCaptionsUrl = (courseId: number,\n assetId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/assets/${assetId}/captions`\n}\n\n/**\n * Requires course edit authority. First upload validated UTF-8 WebVTT to the same course, then reference its asset ID here. Returns a new immutable media variant; existing editions keep their original asset. Repeating the original asset, caption asset and language returns the existing variant. Put the returned assetId into a draft edition to publish the captions.\n * @summary Create a captioned variant of course audio or video\n */\nexport const learningAttachCaptions = async (courseId: number,\n assetId: number,\n learningCaptionWrite: LearningCaptionWrite, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningAssetRead>(getLearningAttachCaptionsUrl(courseId,assetId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCaptionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningAttachCaptionsMutationKey = () => ['learningAttachCaptions'] as const;\n\nexport const getLearningAttachCaptionsMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext> => {\n\nconst mutationKey = getLearningAttachCaptionsMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningAttachCaptions>>, LearningAttachCaptionsMutationVariables> = (props) => {\n const {courseId,assetId,data} = props ?? {};\n\n return learningAttachCaptions(courseId,assetId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningAttachCaptionsMutationResult = NonNullable<Awaited<ReturnType<typeof learningAttachCaptions>>>\n export type LearningAttachCaptionsMutationBody = BodyType<LearningCaptionWrite>\n export type LearningAttachCaptionsMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningAttachCaptionsMutationVariables = {courseId: number;assetId: number;data: BodyType<LearningCaptionWrite>}\n\n /**\n * @summary Create a captioned variant of course audio or video\n */\nexport const useLearningAttachCaptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningAttachCaptions>>,\n TError,\n LearningAttachCaptionsMutationVariables,\n TContext\n > => {\n return useMutation(getLearningAttachCaptionsMutationOptions(options), queryClient);\n }\n export const getLearningListRevisionsUrl = (courseId: number,\n params?: LearningListRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/revisions?${stringifiedParams}` : `/learning/author/courses/${courseId}/revisions`\n}\n\n/**\n * Requires read authority on this course. Returns draft, submitted, published, rejected and superseded editions, newest version first. version identifies the course edition; editVersion is the optimistic concurrency counter within a working edition.\n * @summary List the course's edition history\n */\nexport const learningListRevisions = async (courseId: number,\n params?: LearningListRevisionsParams, options?: Parameters<typeof request>[1]): Promise<CourseRevisionPage> => {\n\n return request<CourseRevisionPage>(getLearningListRevisionsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListRevisionsQueryKey = (courseId: number,\n params?: LearningListRevisionsParams,) => {\n return [\n `/learning/author/courses/${courseId}/revisions`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListRevisionsQueryOptions = <TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListRevisionsQueryKey(courseId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListRevisions>>> = ({ signal }) => learningListRevisions(courseId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: courseId !== null && courseId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListRevisionsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListRevisions>>>\nexport type LearningListRevisionsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params: undefined | LearningListRevisionsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListRevisions>>,\n TError,\n Awaited<ReturnType<typeof learningListRevisions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListRevisions>>,\n TError,\n Awaited<ReturnType<typeof learningListRevisions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List the course's edition history\n */\n\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListRevisionsQueryOptions(courseId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateRevisionUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions`\n}\n\n/**\n * Requires course edit authority. Creates a complete edition with the next version number; only one draft or submitted edition may exist for a course. Asset and library references must be available to this course. Chapters contain 1–2000 lessons with unique keys across the edition; the serialized authoring definition is limited to 2,000,000 bytes. Published editions and existing enrollments remain pinned to their definitions.\n * @summary Create the next draft edition\n */\nexport const learningCreateRevision = async (courseId: number,\n courseRevisionWriteInput: CourseRevisionWriteInput, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningCreateRevisionUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseRevisionWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateRevisionMutationKey = () => ['learningCreateRevision'] as const;\n\nexport const getLearningCreateRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateRevision>>, LearningCreateRevisionMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningCreateRevision(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateRevision>>>\n export type LearningCreateRevisionMutationBody = BodyType<CourseRevisionWriteInput>\n export type LearningCreateRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateRevisionMutationVariables = {courseId: number;data: BodyType<CourseRevisionWriteInput>}\n\n /**\n * @summary Create the next draft edition\n */\nexport const useLearningCreateRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateRevision>>,\n TError,\n LearningCreateRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateRevisionMutationOptions(options), queryClient);\n }\n export const getLearningReadAuthorRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}`\n}\n\n/**\n * Requires authoring read authority and checks that revisionId belongs to courseId. Returns editorial content, lessons, resources, vocabularies and private assessment solutions. Read revision.editVersion before replacing a changed definition. This author-only representation includes grading keys that are deliberately absent from reader questions.\n * @summary Read a complete editable edition definition\n */\nexport const learningReadAuthorRevision = async (courseId: number,\n revisionId: number, options?: Parameters<typeof request>[1]): Promise<CourseAuthorRevisionRead> => {\n\n return request<CourseAuthorRevisionRead>(getLearningReadAuthorRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadAuthorRevisionQueryKey = (courseId: number,\n revisionId: number,) => {\n return [\n `/learning/author/courses/${courseId}/revisions/${revisionId}`\n ] as const;\n }\n\n\nexport const getLearningReadAuthorRevisionQueryOptions = <TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadAuthorRevisionQueryKey(courseId,revisionId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadAuthorRevision>>> = ({ signal }) => learningReadAuthorRevision(courseId,revisionId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: courseId !== null && courseId !== undefined && revisionId !== null && revisionId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadAuthorRevisionQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadAuthorRevision>>>\nexport type LearningReadAuthorRevisionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorRevision>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorRevision>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorRevision>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorRevision>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a complete editable edition definition\n */\n\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadAuthorRevisionQueryOptions(courseId,revisionId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningReplaceRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}`\n}\n\n/**\n * Replaces the entire editorial and lesson graph of a draft or rejected edition. Send the editVersion last read as expectedEditVersion. An identical definition is an idempotent replay; a changed definition requires a matching version and increments editVersion. A changed rejected edition returns to draft and clears its review note and submission date. Published and submitted editions cannot be edited.\n * @summary Replace a draft edition with concurrency protection\n */\nexport const learningReplaceRevision = async (courseId: number,\n revisionId: number,\n courseRevisionWriteInput: CourseRevisionWriteInput, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningReplaceRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseRevisionWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningReplaceRevisionMutationKey = () => ['learningReplaceRevision'] as const;\n\nexport const getLearningReplaceRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReplaceRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReplaceRevision>>, LearningReplaceRevisionMutationVariables> = (props) => {\n const {courseId,revisionId,data} = props ?? {};\n\n return learningReplaceRevision(courseId,revisionId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReplaceRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReplaceRevision>>>\n export type LearningReplaceRevisionMutationBody = BodyType<CourseRevisionWriteInput>\n export type LearningReplaceRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReplaceRevisionMutationVariables = {courseId: number;revisionId: number;data: BodyType<CourseRevisionWriteInput>}\n\n /**\n * @summary Replace a draft edition with concurrency protection\n */\nexport const useLearningReplaceRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReplaceRevision>>,\n TError,\n LearningReplaceRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReplaceRevisionMutationOptions(options), queryClient);\n }\n export const getLearningReviewRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}/review`\n}\n\n/**\n * Requires course curator or global administrator authority. Approval revalidates materials, publishes this edition, supersedes its published predecessor, updates catalogue editorial fields and activates the course. Existing readers retain their selected edition until they explicitly upgrade. Rejection returns the edition for editing. Every decision requires a review note; repeated decisions return 409 once the edition leaves submitted.\n * @summary Publish or reject a submitted edition\n */\nexport const learningReviewRevision = async (courseId: number,\n revisionId: number,\n courseReviewWrite: CourseReviewWrite, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningReviewRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseReviewWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReviewRevisionMutationKey = () => ['learningReviewRevision'] as const;\n\nexport const getLearningReviewRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReviewRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReviewRevision>>, LearningReviewRevisionMutationVariables> = (props) => {\n const {courseId,revisionId,data} = props ?? {};\n\n return learningReviewRevision(courseId,revisionId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReviewRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReviewRevision>>>\n export type LearningReviewRevisionMutationBody = BodyType<CourseReviewWrite>\n export type LearningReviewRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReviewRevisionMutationVariables = {courseId: number;revisionId: number;data: BodyType<CourseReviewWrite>}\n\n /**\n * @summary Publish or reject a submitted edition\n */\nexport const useLearningReviewRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReviewRevision>>,\n TError,\n LearningReviewRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReviewRevisionMutationOptions(options), queryClient);\n }\n export const getLearningSubmitRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}/submit`\n}\n\n/**\n * Requires course edit authority. Moves draft to submitted and records submittedAt; reviewers can then approve or reject it. Submission locks the definition against editing. This transition is not replay-idempotent: submitting an already submitted edition returns 409.\n * @summary Submit a draft edition for review\n */\nexport const learningSubmitRevision = async (courseId: number,\n revisionId: number, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n return request<CourseRevisionRead>(getLearningSubmitRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningSubmitRevisionMutationKey = () => ['learningSubmitRevision'] as const;\n\nexport const getLearningSubmitRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSubmitRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSubmitRevision>>, LearningSubmitRevisionMutationVariables> = (props) => {\n const {courseId,revisionId} = props ?? {};\n\n return learningSubmitRevision(courseId,revisionId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSubmitRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningSubmitRevision>>>\n\n export type LearningSubmitRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSubmitRevisionMutationVariables = {courseId: number;revisionId: number}\n\n /**\n * @summary Submit a draft edition for review\n */\nexport const useLearningSubmitRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSubmitRevision>>,\n TError,\n LearningSubmitRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSubmitRevisionMutationOptions(options), queryClient);\n }\n export const getLearningListLibrariesUrl = (params?: LearningListLibrariesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/libraries?${stringifiedParams}` : `/learning/author/libraries`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Lists owned or shared libraries for creators, all libraries in reviewable active catalogues for reviewers, and all libraries for global operators. Ordered by library ID. publishedVersion=0 means no native published version is selected.\n * @summary List reusable teaching libraries\n */\nexport const learningListLibraries = async (params?: LearningListLibrariesParams, options?: Parameters<typeof request>[1]): Promise<LearningLibraryPage> => {\n\n return request<LearningLibraryPage>(getLearningListLibrariesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListLibrariesQueryKey = (params?: LearningListLibrariesParams,) => {\n return [\n `/learning/author/libraries`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListLibrariesQueryOptions = <TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListLibrariesQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListLibraries>>> = ({ signal }) => learningListLibraries(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListLibrariesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListLibraries>>>\nexport type LearningListLibrariesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | LearningListLibrariesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraries>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraries>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraries>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraries>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List reusable teaching libraries\n */\n\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListLibrariesQueryOptions(params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateLibraryUrl = () => {\n\n\n\n\n return `/learning/author/libraries`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Creates an empty assessment or vocabulary container owned by the caller. A null catalogueId requires global authority. shared allows catalogue peers to reuse published material; it does not grant them editing rights. Create a version separately.\n * @summary Create a reusable teaching library\n */\nexport const learningCreateLibrary = async (learningLibraryWrite: LearningLibraryWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryRead>(getLearningCreateLibraryUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateLibraryMutationKey = () => ['learningCreateLibrary'] as const;\n\nexport const getLearningCreateLibraryMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateLibraryMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateLibrary>>, LearningCreateLibraryMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateLibrary(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateLibraryMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateLibrary>>>\n export type LearningCreateLibraryMutationBody = BodyType<LearningLibraryWrite>\n export type LearningCreateLibraryMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateLibraryMutationVariables = {data: BodyType<LearningLibraryWrite>}\n\n /**\n * @summary Create a reusable teaching library\n */\nexport const useLearningCreateLibrary = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateLibrary>>,\n TError,\n LearningCreateLibraryMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateLibraryMutationOptions(options), queryClient);\n }\n export const getLearningListLibraryVersionsUrl = (libraryId: number,\n params?: LearningListLibraryVersionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/libraries/${libraryId}/versions?${stringifiedParams}` : `/learning/author/libraries/${libraryId}/versions`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by version descending. Owners, reviewers and global operators can read drafts; other eligible users see published and superseded versions only. sealed is authoritative for editing: imported or referenced material can be sealed even with a draft status.\n * @summary List versions of a teaching library\n */\nexport const learningListLibraryVersions = async (libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionPage> => {\n\n return request<LearningLibraryVersionPage>(getLearningListLibraryVersionsUrl(libraryId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListLibraryVersionsQueryKey = (libraryId: number,\n params?: LearningListLibraryVersionsParams,) => {\n return [\n `/learning/author/libraries/${libraryId}/versions`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListLibraryVersionsQueryOptions = <TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListLibraryVersionsQueryKey(libraryId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListLibraryVersions>>> = ({ signal }) => learningListLibraryVersions(libraryId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: libraryId !== null && libraryId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListLibraryVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListLibraryVersions>>>\nexport type LearningListLibraryVersionsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params: undefined | LearningListLibraryVersionsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraryVersions>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraryVersions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraryVersions>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraryVersions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List versions of a teaching library\n */\n\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListLibraryVersionsQueryOptions(libraryId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateLibraryVersionUrl = (libraryId: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Creates the next numbered draft without changing any previous definition. Supply exactly one assessment or vocabulary matching the library kind. There must be no submitted version or unsealed working draft. Sealed source drafts do not block a successor. Referenced questions must be published and accessible; sourceLessonKeys are not accepted for libraries.\n * @summary Create a successor library version\n */\nexport const learningCreateLibraryVersion = async (libraryId: number,\n learningLibraryVersionWrite: LearningLibraryVersionWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningCreateLibraryVersionUrl(libraryId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryVersionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateLibraryVersionMutationKey = () => ['learningCreateLibraryVersion'] as const;\n\nexport const getLearningCreateLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, LearningCreateLibraryVersionMutationVariables> = (props) => {\n const {libraryId,data} = props ?? {};\n\n return learningCreateLibraryVersion(libraryId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateLibraryVersion>>>\n export type LearningCreateLibraryVersionMutationBody = BodyType<LearningLibraryVersionWrite>\n export type LearningCreateLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateLibraryVersionMutationVariables = {libraryId: number;data: BodyType<LearningLibraryVersionWrite>}\n\n /**\n * @summary Create a successor library version\n */\nexport const useLearningCreateLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateLibraryVersion>>,\n TError,\n LearningCreateLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningReadLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Returns the full authoring definition and stable question references. version is the library's sequential version number, not materialId. Draft visibility is restricted to owner/reviewer/global operator. Answer keys are part of this private authoring contract. A sealed source snapshot must be copied into a successor to change it.\n * @summary Read a teaching library version\n */\nexport const learningReadLibraryVersion = async (libraryId: number,\n version: number, options?: Parameters<typeof request>[1]): Promise<LearningLibraryDocumentRead> => {\n\n return request<LearningLibraryDocumentRead>(getLearningReadLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadLibraryVersionQueryKey = (libraryId: number,\n version: number,) => {\n return [\n `/learning/author/libraries/${libraryId}/versions/${version}`\n ] as const;\n }\n\n\nexport const getLearningReadLibraryVersionQueryOptions = <TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadLibraryVersionQueryKey(libraryId,version);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadLibraryVersion>>> = ({ signal }) => learningReadLibraryVersion(libraryId,version, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: libraryId !== null && libraryId !== undefined && version !== null && version !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadLibraryVersionQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadLibraryVersion>>>\nexport type LearningReadLibraryVersionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadLibraryVersion>>,\n TError,\n Awaited<ReturnType<typeof learningReadLibraryVersion>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadLibraryVersion>>,\n TError,\n Awaited<ReturnType<typeof learningReadLibraryVersion>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a teaching library version\n */\n\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadLibraryVersionQueryOptions(libraryId,version,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningReplaceLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Replaces an unsealed draft or rejected version. Supply the current expectedEditVersion when changing the definition; a semantic no-op returns the same version. Submitted, published, superseded, imported and referenced definitions are immutable. Create a successor for sealed material instead. Exactly one matching assessment or vocabulary is required.\n * @summary Replace an editable library definition\n */\nexport const learningReplaceLibraryVersion = async (libraryId: number,\n version: number,\n learningLibraryVersionWrite: LearningLibraryVersionWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningReplaceLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryVersionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReplaceLibraryVersionMutationKey = () => ['learningReplaceLibraryVersion'] as const;\n\nexport const getLearningReplaceLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReplaceLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, LearningReplaceLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version,data} = props ?? {};\n\n return learningReplaceLibraryVersion(libraryId,version,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReplaceLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>>\n export type LearningReplaceLibraryVersionMutationBody = BodyType<LearningLibraryVersionWrite>\n export type LearningReplaceLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReplaceLibraryVersionMutationVariables = {libraryId: number;version: number;data: BodyType<LearningLibraryVersionWrite>}\n\n /**\n * @summary Replace an editable library definition\n */\nexport const useLearningReplaceLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReplaceLibraryVersion>>,\n TError,\n LearningReplaceLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReplaceLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningReviewLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}/review`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review or global authority. Approval revalidates resources, publishes this version and supersedes the previously published version. Rejection records the decision and makes an unpinned definition editable again. The supplied note is audited; it is not a field of the returned version summary.\n * @summary Approve or reject a submitted library version\n */\nexport const learningReviewLibraryVersion = async (libraryId: number,\n version: number,\n courseReviewWrite: CourseReviewWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningReviewLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseReviewWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReviewLibraryVersionMutationKey = () => ['learningReviewLibraryVersion'] as const;\n\nexport const getLearningReviewLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReviewLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, LearningReviewLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version,data} = props ?? {};\n\n return learningReviewLibraryVersion(libraryId,version,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReviewLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReviewLibraryVersion>>>\n export type LearningReviewLibraryVersionMutationBody = BodyType<CourseReviewWrite>\n export type LearningReviewLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReviewLibraryVersionMutationVariables = {libraryId: number;version: number;data: BodyType<CourseReviewWrite>}\n\n /**\n * @summary Approve or reject a submitted library version\n */\nexport const useLearningReviewLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReviewLibraryVersion>>,\n TError,\n LearningReviewLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReviewLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningSubmitLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}/submit`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Only an unsealed draft can be submitted. Submission locks its definition pending review; it does not publish the material. Source snapshots and referenced drafts require a successor before submission.\n * @summary Submit a library draft for review\n */\nexport const learningSubmitLibraryVersion = async (libraryId: number,\n version: number, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n return request<LearningLibraryVersionRead>(getLearningSubmitLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningSubmitLibraryVersionMutationKey = () => ['learningSubmitLibraryVersion'] as const;\n\nexport const getLearningSubmitLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSubmitLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, LearningSubmitLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version} = props ?? {};\n\n return learningSubmitLibraryVersion(libraryId,version,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSubmitLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>>\n\n export type LearningSubmitLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSubmitLibraryVersionMutationVariables = {libraryId: number;version: number}\n\n /**\n * @summary Submit a library draft for review\n */\nexport const useLearningSubmitLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSubmitLibraryVersion>>,\n TError,\n LearningSubmitLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSubmitLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningCreatePathUrl = () => {\n\n\n\n\n return `/learning/author/paths`\n}\n\n/**\n * Requires review authority for the chosen catalogue, or global authority for a null catalogueId. Creates a path with ordered, unique content IDs; these are catalogue content identities, not revision IDs. Creators without review permission cannot curate paths. Active publication requires active content and eligible catalogue resources.\n * @summary Create a curated learning path\n */\nexport const learningCreatePath = async (learningPathWrite: LearningPathWrite, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAdminRead>(getLearningCreatePathUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPathWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreatePathMutationKey = () => ['learningCreatePath'] as const;\n\nexport const getLearningCreatePathMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreatePathMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreatePath>>, LearningCreatePathMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreatePath(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePath>>>\n export type LearningCreatePathMutationBody = BodyType<LearningPathWrite>\n export type LearningCreatePathMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreatePathMutationVariables = {data: BodyType<LearningPathWrite>}\n\n /**\n * @summary Create a curated learning path\n */\nexport const useLearningCreatePath = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreatePath>>,\n TError,\n LearningCreatePathMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreatePathMutationOptions(options), queryClient);\n }\n export const getLearningReadAuthorPathUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}`\n}\n\n/**\n * Requires review authority for the path's original catalogue or global authority. Returns the complete ordered definition and its current editVersion; use that counter in the next replacement request.\n * @summary Read a path's authoring definition\n */\nexport const learningReadAuthorPath = async (pathId: number, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n return request<LearningPathAdminRead>(getLearningReadAuthorPathUrl(pathId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadAuthorPathQueryKey = (pathId: number,) => {\n return [\n `/learning/author/paths/${pathId}`\n ] as const;\n }\n\n\nexport const getLearningReadAuthorPathQueryOptions = <TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadAuthorPathQueryKey(pathId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadAuthorPath>>> = ({ signal }) => learningReadAuthorPath(pathId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: pathId !== null && pathId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadAuthorPathQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadAuthorPath>>>\nexport type LearningReadAuthorPathQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorPath>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorPath>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorPath>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorPath>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a path's authoring definition\n */\n\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadAuthorPathQueryOptions(pathId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningUpdatePathUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}`\n}\n\n/**\n * Requires review authority for the original catalogue or global authority. Replaces the entire definition and step ordering, increments editVersion, and requires expectedEditVersion to match. The catalogue cannot change. Setting isActive=true requires all referenced content to be active; step visibility for readers still follows their existing access grants.\n * @summary Replace and optionally publish a learning path\n */\nexport const learningUpdatePath = async (pathId: number,\n learningPathWrite: LearningPathWrite, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAdminRead>(getLearningUpdatePathUrl(pathId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPathWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningUpdatePathMutationKey = () => ['learningUpdatePath'] as const;\n\nexport const getLearningUpdatePathMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext> => {\n\nconst mutationKey = getLearningUpdatePathMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningUpdatePath>>, LearningUpdatePathMutationVariables> = (props) => {\n const {pathId,data} = props ?? {};\n\n return learningUpdatePath(pathId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningUpdatePathMutationResult = NonNullable<Awaited<ReturnType<typeof learningUpdatePath>>>\n export type LearningUpdatePathMutationBody = BodyType<LearningPathWrite>\n export type LearningUpdatePathMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningUpdatePathMutationVariables = {pathId: number;data: BodyType<LearningPathWrite>}\n\n /**\n * @summary Replace and optionally publish a learning path\n */\nexport const useLearningUpdatePath = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningUpdatePath>>,\n TError,\n LearningUpdatePathMutationVariables,\n TContext\n > => {\n return useMutation(getLearningUpdatePathMutationOptions(options), queryClient);\n }\n export const getLearningCreatePathAssessmentUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}/assessments`\n}\n\n/**\n * Requires path catalogue review authority or global authority. Creates a new assessment with kind=final and explicit questions or published questionRefs; sourceLessonKeys are not accepted. References must come from courses in this path. Existing assessments are immutable; withdraw one and create another when replacing it.\n * @summary Add a final assessment to a learning path\n */\nexport const learningCreatePathAssessment = async (pathId: number,\n learningAssessmentWriteInput: LearningAssessmentWriteInput, options?: Parameters<typeof request>[1]): Promise<LearningPathAssessmentRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAssessmentRead>(getLearningCreatePathAssessmentUrl(pathId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningAssessmentWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningCreatePathAssessmentMutationKey = () => ['learningCreatePathAssessment'] as const;\n\nexport const getLearningCreatePathAssessmentMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreatePathAssessmentMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreatePathAssessment>>, LearningCreatePathAssessmentMutationVariables> = (props) => {\n const {pathId,data} = props ?? {};\n\n return learningCreatePathAssessment(pathId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreatePathAssessmentMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePathAssessment>>>\n export type LearningCreatePathAssessmentMutationBody = BodyType<LearningAssessmentWriteInput>\n export type LearningCreatePathAssessmentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreatePathAssessmentMutationVariables = {pathId: number;data: BodyType<LearningAssessmentWriteInput>}\n\n /**\n * @summary Add a final assessment to a learning path\n */\nexport const useLearningCreatePathAssessment = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreatePathAssessment>>,\n TError,\n LearningCreatePathAssessmentMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreatePathAssessmentMutationOptions(options), queryClient);\n }\n export const getLearningWithdrawPathAssessmentUrl = (pathId: number,\n assessmentId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}/assessments/${assessmentId}`\n}\n\n/**\n * Requires path catalogue review authority or global authority. Marks the selected assessment inactive while retaining its identity and recorded evidence. assessmentId must belong to pathId. Repeating withdrawal leaves it inactive. Success returns 204 with no response body.\n * @summary Withdraw a path assessment\n */\nexport const learningWithdrawPathAssessment = async (pathId: number,\n assessmentId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getLearningWithdrawPathAssessmentUrl(pathId,assessmentId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningWithdrawPathAssessmentMutationKey = () => ['learningWithdrawPathAssessment'] as const;\n\nexport const getLearningWithdrawPathAssessmentMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext> => {\n\nconst mutationKey = getLearningWithdrawPathAssessmentMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, LearningWithdrawPathAssessmentMutationVariables> = (props) => {\n const {pathId,assessmentId} = props ?? {};\n\n return learningWithdrawPathAssessment(pathId,assessmentId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningWithdrawPathAssessmentMutationResult = NonNullable<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>>\n\n export type LearningWithdrawPathAssessmentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningWithdrawPathAssessmentMutationVariables = {pathId: number;assessmentId: number}\n\n /**\n * @summary Withdraw a path assessment\n */\nexport const useLearningWithdrawPathAssessment = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningWithdrawPathAssessment>>,\n TError,\n LearningWithdrawPathAssessmentMutationVariables,\n TContext\n > => {\n return useMutation(getLearningWithdrawPathAssessmentMutationOptions(options), queryClient);\n }\n"],"mappings":";;;;;;;;;;;AAsEA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GAC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AC;EAEhC,OAAQ,6BAA6B,QAAO,MAAK,cAAc;CACjE;CAON,OAAQ;EAAE;EAAY,GAAG;CAAgB;AAAC;;;;AAU5C,MAAa,mCACW,SACrB,gBAKQ;CACL,OAAO,YAAY,+CAA+C,OAAO,GAAG,WAAW;AACzF;AACA,MAAa,wCAAwC,QACrD,iBAA0B;CAK5B,OAAO,0BAA0B,OAAO,eAAe;AACzD;;;;;AAMA,MAAa,iCAAiC,OAAO,QACjD,cAAsB,YAA2D;CAEnF,OAAO,QAAc,qCAAqC,QAAO,YAAY,GAC7E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAMF,MAAa,qDAAqD,CAAC,gCAAgC;AAEnG,MAAa,oDACW,YAC+H;CAEvJ,MAAM,cAAc,6CAA6C;CACjE,MAAM,EAAC,UAAU,iBAAiB,SAAS,mBAAkB,UACvD,QAAQ,YAAY,iBAAiB,QAAQ,YAAY,QAAQ,SAAS,cAC1E,UACE;EAAC,GAAG;EAAS,UAAU;GAAC,GAAG,QAAQ;GAAU;EAAW;CAAC,IACzD;EAAC,UAAU,EAAE,YAAa;EAAG,SAAS,KAAA;CAAS;CAKjD,MAAM,cAA6I,UAAU;EACzJ,MAAM,EAAC,QAAO,iBAAgB,SAAS,CAAC;EAExC,OAAQ,+BAA+B,QAAO,cAAa,cAAc;CAC3E;CAON,OAAQ;EAAE;EAAY,GAAG;CAAgB;AAAC;;;;AAU5C,MAAa,qCACW,SACrB,gBAKQ;CACL,OAAO,YAAY,iDAAiD,OAAO,GAAG,WAAW;AAC3F"}
|
|
1
|
+
{"version":3,"file":"biblio-learning-authoring.js","names":[],"sources":["../../src/react/biblio-learning-authoring/biblio-learning-authoring.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Mozaik backend\n * Four products behind one API — Biblio, Médiathèques, the partner catalogues (Nextory and YouScribe) and Prof Express. Authentication is Keycloak SSO only, once, for all of them: see the **auth** section below for the browser flow and the three failure modes.\n * OpenAPI spec version: 0.21.0\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query';\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query';\n\nimport type {\n CourseAuthorRevisionRead,\n CourseReviewWrite,\n CourseRevisionPage,\n CourseRevisionRead,\n CourseRevisionWriteInput,\n HTTPExceptionResponse,\n LearningAssessmentWriteInput,\n LearningAssetRead,\n LearningAssetWrite,\n LearningCaptionWrite,\n LearningCatalogueGrantWrite,\n LearningCatalogueListRead,\n LearningCatalogueRead,\n LearningCatalogueWrite,\n LearningCourseAdminPage,\n LearningCourseAdminRead,\n LearningCourseCreateWrite,\n LearningCourseSettingsWrite,\n LearningLibraryDocumentRead,\n LearningLibraryPage,\n LearningLibraryRead,\n LearningLibraryVersionPage,\n LearningLibraryVersionRead,\n LearningLibraryVersionWrite,\n LearningLibraryWrite,\n LearningListAuthorCoursesParams,\n LearningListLibrariesParams,\n LearningListLibraryVersionsParams,\n LearningListRevisionsParams,\n LearningPathAdminRead,\n LearningPathAssessmentRead,\n LearningPathWrite,\n ValidationErrorResponse\n} from '../../models';\n\nimport { request } from '../../client';\nimport type { ErrorType , BodyType } from '../../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === 'queryKey') continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport const getLearningListAuthorCataloguesUrl = () => {\n\n\n\n\n return `/learning/author/catalogues`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Lists active catalogues with creation, review or finance authority. Review permission also enables creation; finance permission alone does not. The collection is ordered by catalogue ID and is not paginated.\n * @summary List my authoring catalogues\n */\nexport const learningListAuthorCatalogues = async ( options?: Parameters<typeof request>[1]): Promise<LearningCatalogueListRead> => {\n\n return request<LearningCatalogueListRead>(getLearningListAuthorCataloguesUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListAuthorCataloguesQueryKey = () => {\n return [\n `/learning/author/catalogues`\n ] as const;\n }\n\n\nexport const getLearningListAuthorCataloguesQueryOptions = <TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListAuthorCataloguesQueryKey();\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListAuthorCatalogues>>> = ({ signal }) => learningListAuthorCatalogues({ signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListAuthorCataloguesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListAuthorCatalogues>>>\nexport type LearningListAuthorCataloguesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCatalogues>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List my authoring catalogues\n */\n\nexport function useLearningListAuthorCatalogues<TData = Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCatalogues>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListAuthorCataloguesQueryOptions(options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateAuthorCatalogueUrl = () => {\n\n\n\n\n return `/learning/author/catalogues`\n}\n\n/**\n * Requires global catalogue write authority and rejects support impersonation. Creates an active authoring catalogue; the returned capability flags describe the operator making this request.\n * @summary Create a learning catalogue\n */\nexport const learningCreateAuthorCatalogue = async (learningCatalogueWrite: LearningCatalogueWrite, options?: Parameters<typeof request>[1]): Promise<LearningCatalogueRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCatalogueRead>(getLearningCreateAuthorCatalogueUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCatalogueWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateAuthorCatalogueMutationKey = () => ['learningCreateAuthorCatalogue'] as const;\n\nexport const getLearningCreateAuthorCatalogueMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateAuthorCatalogueMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, LearningCreateAuthorCatalogueMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateAuthorCatalogue(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateAuthorCatalogueMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>>\n export type LearningCreateAuthorCatalogueMutationBody = BodyType<LearningCatalogueWrite>\n export type LearningCreateAuthorCatalogueMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateAuthorCatalogueMutationVariables = {data: BodyType<LearningCatalogueWrite>}\n\n /**\n * @summary Create a learning catalogue\n */\nexport const useLearningCreateAuthorCatalogue = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>, TError,LearningCreateAuthorCatalogueMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateAuthorCatalogue>>,\n TError,\n LearningCreateAuthorCatalogueMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateAuthorCatalogueMutationOptions(options), queryClient);\n }\n export const getLearningSetCatalogueAuthorityUrl = (catalogueId: number,) => {\n\n\n\n\n return `/learning/author/catalogues/${catalogueId}/authority`\n}\n\n/**\n * Requires global catalogue write authority. Replaces all three grants for the selected active independent account, including revocation when all flags are false. The reason is recorded for audit. Successful updates return 204 with no response body.\n * @summary Replace an author's catalogue permissions\n */\nexport const learningSetCatalogueAuthority = async (catalogueId: number,\n learningCatalogueGrantWrite: LearningCatalogueGrantWrite, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<void>(getLearningSetCatalogueAuthorityUrl(catalogueId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCatalogueGrantWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningSetCatalogueAuthorityMutationKey = () => ['learningSetCatalogueAuthority'] as const;\n\nexport const getLearningSetCatalogueAuthorityMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSetCatalogueAuthorityMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, LearningSetCatalogueAuthorityMutationVariables> = (props) => {\n const {catalogueId,data} = props ?? {};\n\n return learningSetCatalogueAuthority(catalogueId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSetCatalogueAuthorityMutationResult = NonNullable<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>>\n export type LearningSetCatalogueAuthorityMutationBody = BodyType<LearningCatalogueGrantWrite>\n export type LearningSetCatalogueAuthorityMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSetCatalogueAuthorityMutationVariables = {catalogueId: number;data: BodyType<LearningCatalogueGrantWrite>}\n\n /**\n * @summary Replace an author's catalogue permissions\n */\nexport const useLearningSetCatalogueAuthority = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSetCatalogueAuthority>>, TError,LearningSetCatalogueAuthorityMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSetCatalogueAuthority>>,\n TError,\n LearningSetCatalogueAuthorityMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSetCatalogueAuthorityMutationOptions(options), queryClient);\n }\n export const getLearningListAuthorCoursesUrl = (params?: LearningListAuthorCoursesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses?${stringifiedParams}` : `/learning/author/courses`\n}\n\n/**\n * Returns courses assigned to the effective author and courses in active catalogues they may review. Global administrators and support readers can see all courses. Dependent profiles and support impersonation are refused. Pagination counts this authorized scope and sorts by course ID ascending; draft courses are included.\n * @summary List courses available to the author\n */\nexport const learningListAuthorCourses = async (params?: LearningListAuthorCoursesParams, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminPage> => {\n\n return request<LearningCourseAdminPage>(getLearningListAuthorCoursesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListAuthorCoursesQueryKey = (params?: LearningListAuthorCoursesParams,) => {\n return [\n `/learning/author/courses`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListAuthorCoursesQueryOptions = <TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListAuthorCoursesQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListAuthorCourses>>> = ({ signal }) => learningListAuthorCourses(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListAuthorCoursesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListAuthorCourses>>>\nexport type LearningListAuthorCoursesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | LearningListAuthorCoursesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCourses>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCourses>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListAuthorCourses>>,\n TError,\n Awaited<ReturnType<typeof learningListAuthorCourses>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List courses available to the author\n */\n\nexport function useLearningListAuthorCourses<TData = Awaited<ReturnType<typeof learningListAuthorCourses>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListAuthorCoursesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListAuthorCourses>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListAuthorCoursesQueryOptions(params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateCourseUrl = () => {\n\n\n\n\n return `/learning/author/courses`\n}\n\n/**\n * Create an inactive course from a title in an authorized catalogue, then register media and create an edition. Binding an existing catalogue contentId, or creating without catalogueId, requires global administration. Assigning other authors requires curator authority. Publication activates a new course; this request alone does not make it readable.\n * @summary Create a native course shell\n */\nexport const learningCreateCourse = async (learningCourseCreateWrite: LearningCourseCreateWrite, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCourseAdminRead>(getLearningCreateCourseUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCourseCreateWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateCourseMutationKey = () => ['learningCreateCourse'] as const;\n\nexport const getLearningCreateCourseMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateCourseMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateCourse>>, LearningCreateCourseMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateCourse(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateCourseMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateCourse>>>\n export type LearningCreateCourseMutationBody = BodyType<LearningCourseCreateWrite>\n export type LearningCreateCourseMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateCourseMutationVariables = {data: BodyType<LearningCourseCreateWrite>}\n\n /**\n * @summary Create a native course shell\n */\nexport const useLearningCreateCourse = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateCourse>>, TError,LearningCreateCourseMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateCourse>>,\n TError,\n LearningCreateCourseMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateCourseMutationOptions(options), queryClient);\n }\n export const getLearningUpdateCourseSettingsUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}`\n}\n\n/**\n * Requires course curator or global administrator authority and an audit reason. Non-null scalar fields replace their current values; null or omitted values leave them unchanged. authorIds replaces the complete author set, including clearing it with an empty list. A course must have a published edition before isActive can be true.\n * @summary Update publication and author settings\n */\nexport const learningUpdateCourseSettings = async (courseId: number,\n learningCourseSettingsWrite: LearningCourseSettingsWrite, options?: Parameters<typeof request>[1]): Promise<LearningCourseAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningCourseAdminRead>(getLearningUpdateCourseSettingsUrl(courseId),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCourseSettingsWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningUpdateCourseSettingsMutationKey = () => ['learningUpdateCourseSettings'] as const;\n\nexport const getLearningUpdateCourseSettingsMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext> => {\n\nconst mutationKey = getLearningUpdateCourseSettingsMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, LearningUpdateCourseSettingsMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningUpdateCourseSettings(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningUpdateCourseSettingsMutationResult = NonNullable<Awaited<ReturnType<typeof learningUpdateCourseSettings>>>\n export type LearningUpdateCourseSettingsMutationBody = BodyType<LearningCourseSettingsWrite>\n export type LearningUpdateCourseSettingsMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningUpdateCourseSettingsMutationVariables = {courseId: number;data: BodyType<LearningCourseSettingsWrite>}\n\n /**\n * @summary Update publication and author settings\n */\nexport const useLearningUpdateCourseSettings = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdateCourseSettings>>, TError,LearningUpdateCourseSettingsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningUpdateCourseSettings>>,\n TError,\n LearningUpdateCourseSettingsMutationVariables,\n TContext\n > => {\n return useMutation(getLearningUpdateCourseSettingsMutationOptions(options), queryClient);\n }\n export const getLearningRegisterAssetUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/assets`\n}\n\n/**\n * Requires edit authority on the course. Registers an immutable media reference for use in edition definitions. Vimeo requires a numeric video ID; external resources require HTTPS without credentials; HTML is sanitized; storage keys must identify an existing object under this author's learning prefix. The response identifies the asset and does not issue a playback URL. For new file bytes use the upload reservation workflow.\n * @summary Register a course media resource\n */\nexport const learningRegisterAsset = async (courseId: number,\n learningAssetWrite: LearningAssetWrite, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningAssetRead>(getLearningRegisterAssetUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningAssetWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningRegisterAssetMutationKey = () => ['learningRegisterAsset'] as const;\n\nexport const getLearningRegisterAssetMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext> => {\n\nconst mutationKey = getLearningRegisterAssetMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningRegisterAsset>>, LearningRegisterAssetMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningRegisterAsset(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningRegisterAssetMutationResult = NonNullable<Awaited<ReturnType<typeof learningRegisterAsset>>>\n export type LearningRegisterAssetMutationBody = BodyType<LearningAssetWrite>\n export type LearningRegisterAssetMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningRegisterAssetMutationVariables = {courseId: number;data: BodyType<LearningAssetWrite>}\n\n /**\n * @summary Register a course media resource\n */\nexport const useLearningRegisterAsset = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningRegisterAsset>>, TError,LearningRegisterAssetMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningRegisterAsset>>,\n TError,\n LearningRegisterAssetMutationVariables,\n TContext\n > => {\n return useMutation(getLearningRegisterAssetMutationOptions(options), queryClient);\n }\n export const getLearningAttachCaptionsUrl = (courseId: number,\n assetId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/assets/${assetId}/captions`\n}\n\n/**\n * Requires course edit authority. First upload validated UTF-8 WebVTT to the same course, then reference its asset ID here. Returns a new immutable media variant; existing editions keep their original asset. Repeating the original asset, caption asset and language returns the existing variant. Put the returned assetId into a draft edition to publish the captions.\n * @summary Create a captioned variant of course audio or video\n */\nexport const learningAttachCaptions = async (courseId: number,\n assetId: number,\n learningCaptionWrite: LearningCaptionWrite, options?: Parameters<typeof request>[1]): Promise<LearningAssetRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningAssetRead>(getLearningAttachCaptionsUrl(courseId,assetId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningCaptionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningAttachCaptionsMutationKey = () => ['learningAttachCaptions'] as const;\n\nexport const getLearningAttachCaptionsMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext> => {\n\nconst mutationKey = getLearningAttachCaptionsMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningAttachCaptions>>, LearningAttachCaptionsMutationVariables> = (props) => {\n const {courseId,assetId,data} = props ?? {};\n\n return learningAttachCaptions(courseId,assetId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningAttachCaptionsMutationResult = NonNullable<Awaited<ReturnType<typeof learningAttachCaptions>>>\n export type LearningAttachCaptionsMutationBody = BodyType<LearningCaptionWrite>\n export type LearningAttachCaptionsMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningAttachCaptionsMutationVariables = {courseId: number;assetId: number;data: BodyType<LearningCaptionWrite>}\n\n /**\n * @summary Create a captioned variant of course audio or video\n */\nexport const useLearningAttachCaptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningAttachCaptions>>, TError,LearningAttachCaptionsMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningAttachCaptions>>,\n TError,\n LearningAttachCaptionsMutationVariables,\n TContext\n > => {\n return useMutation(getLearningAttachCaptionsMutationOptions(options), queryClient);\n }\n export const getLearningListRevisionsUrl = (courseId: number,\n params?: LearningListRevisionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/courses/${courseId}/revisions?${stringifiedParams}` : `/learning/author/courses/${courseId}/revisions`\n}\n\n/**\n * Requires read authority on this course. Returns draft, submitted, published, rejected and superseded editions, newest version first. version identifies the course edition; editVersion is the optimistic concurrency counter within a working edition.\n * @summary List the course's edition history\n */\nexport const learningListRevisions = async (courseId: number,\n params?: LearningListRevisionsParams, options?: Parameters<typeof request>[1]): Promise<CourseRevisionPage> => {\n\n return request<CourseRevisionPage>(getLearningListRevisionsUrl(courseId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListRevisionsQueryKey = (courseId: number,\n params?: LearningListRevisionsParams,) => {\n return [\n `/learning/author/courses/${courseId}/revisions`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListRevisionsQueryOptions = <TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListRevisionsQueryKey(courseId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListRevisions>>> = ({ signal }) => learningListRevisions(courseId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: courseId !== null && courseId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListRevisionsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListRevisions>>>\nexport type LearningListRevisionsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params: undefined | LearningListRevisionsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListRevisions>>,\n TError,\n Awaited<ReturnType<typeof learningListRevisions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListRevisions>>,\n TError,\n Awaited<ReturnType<typeof learningListRevisions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List the course's edition history\n */\n\nexport function useLearningListRevisions<TData = Awaited<ReturnType<typeof learningListRevisions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n params?: LearningListRevisionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListRevisions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListRevisionsQueryOptions(courseId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateRevisionUrl = (courseId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions`\n}\n\n/**\n * Requires course edit authority. Creates a complete edition with the next version number; only one draft or submitted edition may exist for a course. Asset and library references must be available to this course. Chapters contain 1–2000 lessons with unique keys across the edition; the serialized authoring definition is limited to 2,000,000 bytes. Published editions and existing enrollments remain pinned to their definitions.\n * @summary Create the next draft edition\n */\nexport const learningCreateRevision = async (courseId: number,\n courseRevisionWriteInput: CourseRevisionWriteInput, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningCreateRevisionUrl(courseId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseRevisionWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateRevisionMutationKey = () => ['learningCreateRevision'] as const;\n\nexport const getLearningCreateRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateRevision>>, LearningCreateRevisionMutationVariables> = (props) => {\n const {courseId,data} = props ?? {};\n\n return learningCreateRevision(courseId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateRevision>>>\n export type LearningCreateRevisionMutationBody = BodyType<CourseRevisionWriteInput>\n export type LearningCreateRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateRevisionMutationVariables = {courseId: number;data: BodyType<CourseRevisionWriteInput>}\n\n /**\n * @summary Create the next draft edition\n */\nexport const useLearningCreateRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateRevision>>, TError,LearningCreateRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateRevision>>,\n TError,\n LearningCreateRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateRevisionMutationOptions(options), queryClient);\n }\n export const getLearningReadAuthorRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}`\n}\n\n/**\n * Requires authoring read authority and checks that revisionId belongs to courseId. Returns editorial content, lessons, resources, vocabularies and private assessment solutions. Read revision.editVersion before replacing a changed definition. This author-only representation includes grading keys that are deliberately absent from reader questions.\n * @summary Read a complete editable edition definition\n */\nexport const learningReadAuthorRevision = async (courseId: number,\n revisionId: number, options?: Parameters<typeof request>[1]): Promise<CourseAuthorRevisionRead> => {\n\n return request<CourseAuthorRevisionRead>(getLearningReadAuthorRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadAuthorRevisionQueryKey = (courseId: number,\n revisionId: number,) => {\n return [\n `/learning/author/courses/${courseId}/revisions/${revisionId}`\n ] as const;\n }\n\n\nexport const getLearningReadAuthorRevisionQueryOptions = <TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadAuthorRevisionQueryKey(courseId,revisionId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadAuthorRevision>>> = ({ signal }) => learningReadAuthorRevision(courseId,revisionId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: courseId !== null && courseId !== undefined && revisionId !== null && revisionId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadAuthorRevisionQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadAuthorRevision>>>\nexport type LearningReadAuthorRevisionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorRevision>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorRevision>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorRevision>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorRevision>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a complete editable edition definition\n */\n\nexport function useLearningReadAuthorRevision<TData = Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n courseId: number,\n revisionId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorRevision>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadAuthorRevisionQueryOptions(courseId,revisionId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningReplaceRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}`\n}\n\n/**\n * Replaces the entire editorial and lesson graph of a draft or rejected edition. Send the editVersion last read as expectedEditVersion. An identical definition is an idempotent replay; a changed definition requires a matching version and increments editVersion. A changed rejected edition returns to draft and clears its review note and submission date. Published and submitted editions cannot be edited.\n * @summary Replace a draft edition with concurrency protection\n */\nexport const learningReplaceRevision = async (courseId: number,\n revisionId: number,\n courseRevisionWriteInput: CourseRevisionWriteInput, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningReplaceRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseRevisionWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningReplaceRevisionMutationKey = () => ['learningReplaceRevision'] as const;\n\nexport const getLearningReplaceRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReplaceRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReplaceRevision>>, LearningReplaceRevisionMutationVariables> = (props) => {\n const {courseId,revisionId,data} = props ?? {};\n\n return learningReplaceRevision(courseId,revisionId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReplaceRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReplaceRevision>>>\n export type LearningReplaceRevisionMutationBody = BodyType<CourseRevisionWriteInput>\n export type LearningReplaceRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReplaceRevisionMutationVariables = {courseId: number;revisionId: number;data: BodyType<CourseRevisionWriteInput>}\n\n /**\n * @summary Replace a draft edition with concurrency protection\n */\nexport const useLearningReplaceRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceRevision>>, TError,LearningReplaceRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReplaceRevision>>,\n TError,\n LearningReplaceRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReplaceRevisionMutationOptions(options), queryClient);\n }\n export const getLearningReviewRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}/review`\n}\n\n/**\n * Requires course curator or global administrator authority. Approval revalidates materials, publishes this edition, supersedes its published predecessor, updates catalogue editorial fields and activates the course. Existing readers retain their selected edition until they explicitly upgrade. Rejection returns the edition for editing. Every decision requires a review note; repeated decisions return 409 once the edition leaves submitted.\n * @summary Publish or reject a submitted edition\n */\nexport const learningReviewRevision = async (courseId: number,\n revisionId: number,\n courseReviewWrite: CourseReviewWrite, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<CourseRevisionRead>(getLearningReviewRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseReviewWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReviewRevisionMutationKey = () => ['learningReviewRevision'] as const;\n\nexport const getLearningReviewRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReviewRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReviewRevision>>, LearningReviewRevisionMutationVariables> = (props) => {\n const {courseId,revisionId,data} = props ?? {};\n\n return learningReviewRevision(courseId,revisionId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReviewRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReviewRevision>>>\n export type LearningReviewRevisionMutationBody = BodyType<CourseReviewWrite>\n export type LearningReviewRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReviewRevisionMutationVariables = {courseId: number;revisionId: number;data: BodyType<CourseReviewWrite>}\n\n /**\n * @summary Publish or reject a submitted edition\n */\nexport const useLearningReviewRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewRevision>>, TError,LearningReviewRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReviewRevision>>,\n TError,\n LearningReviewRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReviewRevisionMutationOptions(options), queryClient);\n }\n export const getLearningSubmitRevisionUrl = (courseId: number,\n revisionId: number,) => {\n\n\n\n\n return `/learning/author/courses/${courseId}/revisions/${revisionId}/submit`\n}\n\n/**\n * Requires course edit authority. Moves draft to submitted and records submittedAt; reviewers can then approve or reject it. Submission locks the definition against editing. This transition is not replay-idempotent: submitting an already submitted edition returns 409.\n * @summary Submit a draft edition for review\n */\nexport const learningSubmitRevision = async (courseId: number,\n revisionId: number, options?: Parameters<typeof request>[1]): Promise<CourseRevisionRead> => {\n\n return request<CourseRevisionRead>(getLearningSubmitRevisionUrl(courseId,revisionId),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningSubmitRevisionMutationKey = () => ['learningSubmitRevision'] as const;\n\nexport const getLearningSubmitRevisionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSubmitRevisionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSubmitRevision>>, LearningSubmitRevisionMutationVariables> = (props) => {\n const {courseId,revisionId} = props ?? {};\n\n return learningSubmitRevision(courseId,revisionId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSubmitRevisionMutationResult = NonNullable<Awaited<ReturnType<typeof learningSubmitRevision>>>\n\n export type LearningSubmitRevisionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSubmitRevisionMutationVariables = {courseId: number;revisionId: number}\n\n /**\n * @summary Submit a draft edition for review\n */\nexport const useLearningSubmitRevision = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitRevision>>, TError,LearningSubmitRevisionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSubmitRevision>>,\n TError,\n LearningSubmitRevisionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSubmitRevisionMutationOptions(options), queryClient);\n }\n export const getLearningListLibrariesUrl = (params?: LearningListLibrariesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/libraries?${stringifiedParams}` : `/learning/author/libraries`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Lists owned or shared libraries for creators, all libraries in reviewable active catalogues for reviewers, and all libraries for global operators. Ordered by library ID. publishedVersion=0 means no native published version is selected.\n * @summary List reusable teaching libraries\n */\nexport const learningListLibraries = async (params?: LearningListLibrariesParams, options?: Parameters<typeof request>[1]): Promise<LearningLibraryPage> => {\n\n return request<LearningLibraryPage>(getLearningListLibrariesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListLibrariesQueryKey = (params?: LearningListLibrariesParams,) => {\n return [\n `/learning/author/libraries`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListLibrariesQueryOptions = <TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListLibrariesQueryKey(params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListLibraries>>> = ({ signal }) => learningListLibraries(params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListLibrariesQueryResult = NonNullable<Awaited<ReturnType<typeof learningListLibraries>>>\nexport type LearningListLibrariesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params: undefined | LearningListLibrariesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraries>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraries>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraries>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraries>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List reusable teaching libraries\n */\n\nexport function useLearningListLibraries<TData = Awaited<ReturnType<typeof learningListLibraries>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n params?: LearningListLibrariesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraries>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListLibrariesQueryOptions(params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateLibraryUrl = () => {\n\n\n\n\n return `/learning/author/libraries`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Creates an empty assessment or vocabulary container owned by the caller. A null catalogueId requires global authority. shared allows catalogue peers to reuse published material; it does not grant them editing rights. Create a version separately.\n * @summary Create a reusable teaching library\n */\nexport const learningCreateLibrary = async (learningLibraryWrite: LearningLibraryWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryRead>(getLearningCreateLibraryUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateLibraryMutationKey = () => ['learningCreateLibrary'] as const;\n\nexport const getLearningCreateLibraryMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateLibraryMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateLibrary>>, LearningCreateLibraryMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreateLibrary(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateLibraryMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateLibrary>>>\n export type LearningCreateLibraryMutationBody = BodyType<LearningLibraryWrite>\n export type LearningCreateLibraryMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateLibraryMutationVariables = {data: BodyType<LearningLibraryWrite>}\n\n /**\n * @summary Create a reusable teaching library\n */\nexport const useLearningCreateLibrary = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibrary>>, TError,LearningCreateLibraryMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateLibrary>>,\n TError,\n LearningCreateLibraryMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateLibraryMutationOptions(options), queryClient);\n }\n export const getLearningListLibraryVersionsUrl = (libraryId: number,\n params?: LearningListLibraryVersionsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/learning/author/libraries/${libraryId}/versions?${stringifiedParams}` : `/learning/author/libraries/${libraryId}/versions`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Results are filtered to the caller's scope before pagination; page is one-based and limit is bounded by the shared pagination contract. Ordered by version descending. Owners, reviewers and global operators can read drafts; other eligible users see published and superseded versions only. sealed is authoritative for editing: imported or referenced material can be sealed even with a draft status.\n * @summary List versions of a teaching library\n */\nexport const learningListLibraryVersions = async (libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionPage> => {\n\n return request<LearningLibraryVersionPage>(getLearningListLibraryVersionsUrl(libraryId,params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningListLibraryVersionsQueryKey = (libraryId: number,\n params?: LearningListLibraryVersionsParams,) => {\n return [\n `/learning/author/libraries/${libraryId}/versions`, ...(params ? [params] : [])\n ] as const;\n }\n\n\nexport const getLearningListLibraryVersionsQueryOptions = <TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningListLibraryVersionsQueryKey(libraryId,params);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningListLibraryVersions>>> = ({ signal }) => learningListLibraryVersions(libraryId,params, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: libraryId !== null && libraryId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningListLibraryVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof learningListLibraryVersions>>>\nexport type LearningListLibraryVersionsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params: undefined | LearningListLibraryVersionsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraryVersions>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraryVersions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningListLibraryVersions>>,\n TError,\n Awaited<ReturnType<typeof learningListLibraryVersions>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary List versions of a teaching library\n */\n\nexport function useLearningListLibraryVersions<TData = Awaited<ReturnType<typeof learningListLibraryVersions>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n params?: LearningListLibraryVersionsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningListLibraryVersions>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningListLibraryVersionsQueryOptions(libraryId,params,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningCreateLibraryVersionUrl = (libraryId: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Creates the next numbered draft without changing any previous definition. Supply exactly one assessment or vocabulary matching the library kind. There must be no submitted version or unsealed working draft. Sealed source drafts do not block a successor. Referenced questions must be published and accessible; sourceLessonKeys are not accepted for libraries.\n * @summary Create a successor library version\n */\nexport const learningCreateLibraryVersion = async (libraryId: number,\n learningLibraryVersionWrite: LearningLibraryVersionWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningCreateLibraryVersionUrl(libraryId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryVersionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreateLibraryVersionMutationKey = () => ['learningCreateLibraryVersion'] as const;\n\nexport const getLearningCreateLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreateLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, LearningCreateLibraryVersionMutationVariables> = (props) => {\n const {libraryId,data} = props ?? {};\n\n return learningCreateLibraryVersion(libraryId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreateLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreateLibraryVersion>>>\n export type LearningCreateLibraryVersionMutationBody = BodyType<LearningLibraryVersionWrite>\n export type LearningCreateLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreateLibraryVersionMutationVariables = {libraryId: number;data: BodyType<LearningLibraryVersionWrite>}\n\n /**\n * @summary Create a successor library version\n */\nexport const useLearningCreateLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreateLibraryVersion>>, TError,LearningCreateLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreateLibraryVersion>>,\n TError,\n LearningCreateLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreateLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningReadLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Returns the full authoring definition and stable question references. version is the library's sequential version number, not materialId. Draft visibility is restricted to owner/reviewer/global operator. Answer keys are part of this private authoring contract. A sealed source snapshot must be copied into a successor to change it.\n * @summary Read a teaching library version\n */\nexport const learningReadLibraryVersion = async (libraryId: number,\n version: number, options?: Parameters<typeof request>[1]): Promise<LearningLibraryDocumentRead> => {\n\n return request<LearningLibraryDocumentRead>(getLearningReadLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadLibraryVersionQueryKey = (libraryId: number,\n version: number,) => {\n return [\n `/learning/author/libraries/${libraryId}/versions/${version}`\n ] as const;\n }\n\n\nexport const getLearningReadLibraryVersionQueryOptions = <TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadLibraryVersionQueryKey(libraryId,version);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadLibraryVersion>>> = ({ signal }) => learningReadLibraryVersion(libraryId,version, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: libraryId !== null && libraryId !== undefined && version !== null && version !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadLibraryVersionQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadLibraryVersion>>>\nexport type LearningReadLibraryVersionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadLibraryVersion>>,\n TError,\n Awaited<ReturnType<typeof learningReadLibraryVersion>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadLibraryVersion>>,\n TError,\n Awaited<ReturnType<typeof learningReadLibraryVersion>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a teaching library version\n */\n\nexport function useLearningReadLibraryVersion<TData = Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n libraryId: number,\n version: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadLibraryVersion>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadLibraryVersionQueryOptions(libraryId,version,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningReplaceLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Replaces an unsealed draft or rejected version. Supply the current expectedEditVersion when changing the definition; a semantic no-op returns the same version. Submitted, published, superseded, imported and referenced definitions are immutable. Create a successor for sealed material instead. Exactly one matching assessment or vocabulary is required.\n * @summary Replace an editable library definition\n */\nexport const learningReplaceLibraryVersion = async (libraryId: number,\n version: number,\n learningLibraryVersionWrite: LearningLibraryVersionWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningReplaceLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningLibraryVersionWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReplaceLibraryVersionMutationKey = () => ['learningReplaceLibraryVersion'] as const;\n\nexport const getLearningReplaceLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReplaceLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, LearningReplaceLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version,data} = props ?? {};\n\n return learningReplaceLibraryVersion(libraryId,version,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReplaceLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>>\n export type LearningReplaceLibraryVersionMutationBody = BodyType<LearningLibraryVersionWrite>\n export type LearningReplaceLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReplaceLibraryVersionMutationVariables = {libraryId: number;version: number;data: BodyType<LearningLibraryVersionWrite>}\n\n /**\n * @summary Replace an editable library definition\n */\nexport const useLearningReplaceLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReplaceLibraryVersion>>, TError,LearningReplaceLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReplaceLibraryVersion>>,\n TError,\n LearningReplaceLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReplaceLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningReviewLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}/review`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires catalogue review or global authority. Approval revalidates resources, publishes this version and supersedes the previously published version. Rejection records the decision and makes an unpinned definition editable again. The supplied note is audited; it is not a field of the returned version summary.\n * @summary Approve or reject a submitted library version\n */\nexport const learningReviewLibraryVersion = async (libraryId: number,\n version: number,\n courseReviewWrite: CourseReviewWrite, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningLibraryVersionRead>(getLearningReviewLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(courseReviewWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningReviewLibraryVersionMutationKey = () => ['learningReviewLibraryVersion'] as const;\n\nexport const getLearningReviewLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningReviewLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, LearningReviewLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version,data} = props ?? {};\n\n return learningReviewLibraryVersion(libraryId,version,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningReviewLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningReviewLibraryVersion>>>\n export type LearningReviewLibraryVersionMutationBody = BodyType<CourseReviewWrite>\n export type LearningReviewLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningReviewLibraryVersionMutationVariables = {libraryId: number;version: number;data: BodyType<CourseReviewWrite>}\n\n /**\n * @summary Approve or reject a submitted library version\n */\nexport const useLearningReviewLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningReviewLibraryVersion>>, TError,LearningReviewLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningReviewLibraryVersion>>,\n TError,\n LearningReviewLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningReviewLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningSubmitLibraryVersionUrl = (libraryId: number,\n version: number,) => {\n\n\n\n\n return `/learning/author/libraries/${libraryId}/versions/${version}/submit`\n}\n\n/**\n * Requires the effective independent author profile and the relevant catalogue, ownership or global authority. Support impersonation is rejected. Requires library ownership, catalogue review authority or global authority for writes; sharing only permits reuse and reading published versions. Only an unsealed draft can be submitted. Submission locks its definition pending review; it does not publish the material. Source snapshots and referenced drafts require a successor before submission.\n * @summary Submit a library draft for review\n */\nexport const learningSubmitLibraryVersion = async (libraryId: number,\n version: number, options?: Parameters<typeof request>[1]): Promise<LearningLibraryVersionRead> => {\n\n return request<LearningLibraryVersionRead>(getLearningSubmitLibraryVersionUrl(libraryId,version),\n {\n ...options,\n method: 'POST'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningSubmitLibraryVersionMutationKey = () => ['learningSubmitLibraryVersion'] as const;\n\nexport const getLearningSubmitLibraryVersionMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext> => {\n\nconst mutationKey = getLearningSubmitLibraryVersionMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, LearningSubmitLibraryVersionMutationVariables> = (props) => {\n const {libraryId,version} = props ?? {};\n\n return learningSubmitLibraryVersion(libraryId,version,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningSubmitLibraryVersionMutationResult = NonNullable<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>>\n\n export type LearningSubmitLibraryVersionMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningSubmitLibraryVersionMutationVariables = {libraryId: number;version: number}\n\n /**\n * @summary Submit a library draft for review\n */\nexport const useLearningSubmitLibraryVersion = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningSubmitLibraryVersion>>, TError,LearningSubmitLibraryVersionMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningSubmitLibraryVersion>>,\n TError,\n LearningSubmitLibraryVersionMutationVariables,\n TContext\n > => {\n return useMutation(getLearningSubmitLibraryVersionMutationOptions(options), queryClient);\n }\n export const getLearningCreatePathUrl = () => {\n\n\n\n\n return `/learning/author/paths`\n}\n\n/**\n * Requires review authority for the chosen catalogue, or global authority for a null catalogueId. Creates a path with ordered, unique content IDs; these are catalogue content identities, not revision IDs. Creators without review permission cannot curate paths. Active publication requires active content and eligible catalogue resources.\n * @summary Create a curated learning path\n */\nexport const learningCreatePath = async (learningPathWrite: LearningPathWrite, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAdminRead>(getLearningCreatePathUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPathWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningCreatePathMutationKey = () => ['learningCreatePath'] as const;\n\nexport const getLearningCreatePathMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreatePathMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreatePath>>, LearningCreatePathMutationVariables> = (props) => {\n const {data} = props ?? {};\n\n return learningCreatePath(data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePath>>>\n export type LearningCreatePathMutationBody = BodyType<LearningPathWrite>\n export type LearningCreatePathMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreatePathMutationVariables = {data: BodyType<LearningPathWrite>}\n\n /**\n * @summary Create a curated learning path\n */\nexport const useLearningCreatePath = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePath>>, TError,LearningCreatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreatePath>>,\n TError,\n LearningCreatePathMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreatePathMutationOptions(options), queryClient);\n }\n export const getLearningReadAuthorPathUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}`\n}\n\n/**\n * Requires review authority for the path's original catalogue or global authority. Returns the complete ordered definition and its current editVersion; use that counter in the next replacement request.\n * @summary Read a path's authoring definition\n */\nexport const learningReadAuthorPath = async (pathId: number, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n return request<LearningPathAdminRead>(getLearningReadAuthorPathUrl(pathId),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningReadAuthorPathQueryKey = (pathId: number,) => {\n return [\n `/learning/author/paths/${pathId}`\n ] as const;\n }\n\n\nexport const getLearningReadAuthorPathQueryOptions = <TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getLearningReadAuthorPathQueryKey(pathId);\n\n\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof learningReadAuthorPath>>> = ({ signal }) => learningReadAuthorPath(pathId, { signal, ...requestOptions });\n\n\n\n\n\n return { queryKey, queryFn, enabled: pathId !== null && pathId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type LearningReadAuthorPathQueryResult = NonNullable<Awaited<ReturnType<typeof learningReadAuthorPath>>>\nexport type LearningReadAuthorPathQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n\n\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorPath>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorPath>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof learningReadAuthorPath>>,\n TError,\n Awaited<ReturnType<typeof learningReadAuthorPath>>\n > , 'initialData'\n >, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Read a path's authoring definition\n */\n\nexport function useLearningReadAuthorPath<TData = Awaited<ReturnType<typeof learningReadAuthorPath>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(\n pathId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof learningReadAuthorPath>>, TError, TData>>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getLearningReadAuthorPathQueryOptions(pathId,options)\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n\n\n\n\n\nexport const getLearningUpdatePathUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}`\n}\n\n/**\n * Requires review authority for the original catalogue or global authority. Replaces the entire definition and step ordering, increments editVersion, and requires expectedEditVersion to match. The catalogue cannot change. Setting isActive=true requires all referenced content to be active; step visibility for readers still follows their existing access grants.\n * @summary Replace and optionally publish a learning path\n */\nexport const learningUpdatePath = async (pathId: number,\n learningPathWrite: LearningPathWrite, options?: Parameters<typeof request>[1]): Promise<LearningPathAdminRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAdminRead>(getLearningUpdatePathUrl(pathId),\n {\n ...options,\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningPathWrite)\n }\n);}\n\n\n\n\n\nexport const getLearningUpdatePathMutationKey = () => ['learningUpdatePath'] as const;\n\nexport const getLearningUpdatePathMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext> => {\n\nconst mutationKey = getLearningUpdatePathMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningUpdatePath>>, LearningUpdatePathMutationVariables> = (props) => {\n const {pathId,data} = props ?? {};\n\n return learningUpdatePath(pathId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningUpdatePathMutationResult = NonNullable<Awaited<ReturnType<typeof learningUpdatePath>>>\n export type LearningUpdatePathMutationBody = BodyType<LearningPathWrite>\n export type LearningUpdatePathMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningUpdatePathMutationVariables = {pathId: number;data: BodyType<LearningPathWrite>}\n\n /**\n * @summary Replace and optionally publish a learning path\n */\nexport const useLearningUpdatePath = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningUpdatePath>>, TError,LearningUpdatePathMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningUpdatePath>>,\n TError,\n LearningUpdatePathMutationVariables,\n TContext\n > => {\n return useMutation(getLearningUpdatePathMutationOptions(options), queryClient);\n }\n export const getLearningCreatePathAssessmentUrl = (pathId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}/assessments`\n}\n\n/**\n * Requires path catalogue review authority or global authority. Creates a new assessment with kind=final and explicit questions or published questionRefs; sourceLessonKeys are not accepted. References must come from courses in this path. Existing assessments are immutable; withdraw one and create another when replacing it.\n * @summary Add a final assessment to a learning path\n */\nexport const learningCreatePathAssessment = async (pathId: number,\n learningAssessmentWriteInput: LearningAssessmentWriteInput, options?: Parameters<typeof request>[1]): Promise<LearningPathAssessmentRead> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Symbol.iterator in h) {\n return Object.fromEntries(\n Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),\n );\n }\n const headers: Record<string, string | readonly string[]> = {};\n for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {\n if (value !== undefined) headers[name] = value;\n }\n return headers;\n };\nreturn request<LearningPathAssessmentRead>(getLearningCreatePathAssessmentUrl(pathId),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(learningAssessmentWriteInput)\n }\n);}\n\n\n\n\n\nexport const getLearningCreatePathAssessmentMutationKey = () => ['learningCreatePathAssessment'] as const;\n\nexport const getLearningCreatePathAssessmentMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext> => {\n\nconst mutationKey = getLearningCreatePathAssessmentMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningCreatePathAssessment>>, LearningCreatePathAssessmentMutationVariables> = (props) => {\n const {pathId,data} = props ?? {};\n\n return learningCreatePathAssessment(pathId,data,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningCreatePathAssessmentMutationResult = NonNullable<Awaited<ReturnType<typeof learningCreatePathAssessment>>>\n export type LearningCreatePathAssessmentMutationBody = BodyType<LearningAssessmentWriteInput>\n export type LearningCreatePathAssessmentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningCreatePathAssessmentMutationVariables = {pathId: number;data: BodyType<LearningAssessmentWriteInput>}\n\n /**\n * @summary Add a final assessment to a learning path\n */\nexport const useLearningCreatePathAssessment = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningCreatePathAssessment>>, TError,LearningCreatePathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningCreatePathAssessment>>,\n TError,\n LearningCreatePathAssessmentMutationVariables,\n TContext\n > => {\n return useMutation(getLearningCreatePathAssessmentMutationOptions(options), queryClient);\n }\n export const getLearningWithdrawPathAssessmentUrl = (pathId: number,\n assessmentId: number,) => {\n\n\n\n\n return `/learning/author/paths/${pathId}/assessments/${assessmentId}`\n}\n\n/**\n * Requires path catalogue review authority or global authority. Marks the selected assessment inactive while retaining its identity and recorded evidence. assessmentId must belong to pathId. Repeating withdrawal leaves it inactive. Success returns 204 with no response body.\n * @summary Withdraw a path assessment\n */\nexport const learningWithdrawPathAssessment = async (pathId: number,\n assessmentId: number, options?: Parameters<typeof request>[1]): Promise<void> => {\n\n return request<void>(getLearningWithdrawPathAssessmentUrl(pathId,assessmentId),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\n\n\nexport const getLearningWithdrawPathAssessmentMutationKey = () => ['learningWithdrawPathAssessment'] as const;\n\nexport const getLearningWithdrawPathAssessmentMutationOptions = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n): UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext> => {\n\nconst mutationKey = getLearningWithdrawPathAssessmentMutationKey();\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n\n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, LearningWithdrawPathAssessmentMutationVariables> = (props) => {\n const {pathId,assessmentId} = props ?? {};\n\n return learningWithdrawPathAssessment(pathId,assessmentId,requestOptions)\n }\n\n\n\n\n\n\n return { mutationFn, ...mutationOptions }}\n\n export type LearningWithdrawPathAssessmentMutationResult = NonNullable<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>>\n\n export type LearningWithdrawPathAssessmentMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>\n export type LearningWithdrawPathAssessmentMutationVariables = {pathId: number;assessmentId: number}\n\n /**\n * @summary Withdraw a path assessment\n */\nexport const useLearningWithdrawPathAssessment = <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof learningWithdrawPathAssessment>>, TError,LearningWithdrawPathAssessmentMutationVariables, TContext>, request?: SecondParameter<typeof request>}\n , queryClient?: QueryClient): UseMutationResult<\n Awaited<ReturnType<typeof learningWithdrawPathAssessment>>,\n TError,\n LearningWithdrawPathAssessmentMutationVariables,\n TContext\n > => {\n return useMutation(getLearningWithdrawPathAssessmentMutationOptions(options), queryClient);\n }\n"],"mappings":";;;;;;;;;;;AAsEA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAEA,MAAa,2CAA2C;CAKtD,OAAO;AACT;;;;;AAMA,MAAa,+BAA+B,OAAQ,YAAgF;CAElI,OAAO,QAAmC,mCAAmC,GAC7E;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAMF,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