Skip to main content
Glama
routineSchema.ts2.37 kB
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import { z } from "zod"; export const routineSchema = z.object({ "id": z.optional(z.string().describe("The routine ID.")), "title": z.optional(z.string().describe("The routine title.")), "folder_id": z.number().describe("The routine folder ID.").nullish(), "updated_at": z.optional(z.string().describe("ISO 8601 timestamp of when the routine was last updated.")), "created_at": z.optional(z.string().describe("ISO 8601 timestamp of when the routine was created.")), "exercises": z.optional(z.array(z.object({ "index": z.optional(z.number().describe("Index indicating the order of the exercise in the routine.")), "title": z.optional(z.string().describe("Title of the exercise")), "rest_seconds": z.optional(z.string().describe("The rest time in seconds between sets of the exercise")), "notes": z.optional(z.string().describe("Routine notes on the exercise")), "exercise_template_id": z.optional(z.string().describe("The id of the exercise template. This can be used to fetch the exercise template.")), "supersets_id": z.number().describe("The id of the superset that the exercise belongs to. A value of null indicates the exercise is not part of a superset.").nullish(), "sets": z.optional(z.array(z.object({ "index": z.optional(z.number().describe("Index indicating the order of the set in the routine.")), "type": z.optional(z.string().describe("The type of set. This can be one of 'normal', 'warmup', 'dropset', 'failure'")), "weight_kg": z.number().describe("Weight lifted in kilograms.").nullish(), "reps": z.number().describe("Number of reps logged for the set").nullish(), "rep_range": z.object({ "start": z.number().describe("Starting rep count for the range").nullish(), "end": z.number().describe("Ending rep count for the range").nullish() }).describe("Range of reps for the set, if applicable").nullish(), "distance_meters": z.number().describe("Number of meters logged for the set").nullish(), "duration_seconds": z.number().describe("Number of seconds logged for the set").nullish(), "rpe": z.number().describe("RPE (Relative perceived exertion) value logged for the set").nullish(), "custom_metric": z.number().describe("Custom metric logged for the set (Currently only used to log floors or steps for stair machine exercises)").nullish() }))) }))) })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisdoc/hevy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server