import { U as object, V as literal, a as BaseDocumentHeaderSchema, o as BaseDocumentStateSchema } from "./dist-uUUuTqM0.js";
import { s as OperationalHubProfileStateSchema } from "./creators-BZ72KijW.js";
//#region document-models/operational-hub-profile/v1/gen/document-type.ts
const operationalHubProfileDocumentType = "powerhouse/operational-hub-profile";
//#endregion
//#region document-models/operational-hub-profile/v1/gen/document-schema.ts
/** Schema for validating the header object of a OperationalHubProfile document */
const OperationalHubProfileDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: literal(operationalHubProfileDocumentType) });
/** Schema for validating the state object of a OperationalHubProfile document */
const OperationalHubProfilePHStateSchema = BaseDocumentStateSchema.extend({ global: OperationalHubProfileStateSchema() });
const OperationalHubProfileDocumentSchema = object({
	header: OperationalHubProfileDocumentHeaderSchema,
	state: OperationalHubProfilePHStateSchema,
	initialState: OperationalHubProfilePHStateSchema
});
/** Simple helper function to check if a state object is a OperationalHubProfile document state object */
function isOperationalHubProfileState(state) {
	return OperationalHubProfilePHStateSchema.safeParse(state).success;
}
/** Simple helper function to assert that a document state object is a OperationalHubProfile document state object */
function assertIsOperationalHubProfileState(state) {
	OperationalHubProfilePHStateSchema.parse(state);
}
/** Simple helper function to check if a document is a OperationalHubProfile document */
function isOperationalHubProfileDocument(document) {
	return OperationalHubProfileDocumentSchema.safeParse(document).success;
}
/** Simple helper function to assert that a document is a OperationalHubProfile document */
function assertIsOperationalHubProfileDocument(document) {
	OperationalHubProfileDocumentSchema.parse(document);
}
//#endregion
export { assertIsOperationalHubProfileState as a, operationalHubProfileDocumentType as c, assertIsOperationalHubProfileDocument as i, OperationalHubProfileDocumentSchema as n, isOperationalHubProfileDocument as o, OperationalHubProfilePHStateSchema as r, isOperationalHubProfileState as s, OperationalHubProfileDocumentHeaderSchema as t };

//# sourceMappingURL=document-schema-DUJorxA0.js.map