EnvironmentModel
Example Usage
typescript
import { EnvironmentModel } from "@meetkai/mka1/models/components";
let value: EnvironmentModel = {
environmentId: 366771,
name: "<value>",
environmentVariables: {
"key": "<value>",
},
repositories: [
{
repositoryId: 593816,
},
],
networkAccess: "package_managers",
createdByUserId: "<id>",
createdAt: new Date("2025-11-30T16:33:17.622Z"),
updatedAt: new Date("2026-11-30T13:04:08.095Z"),
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
environmentId | number | ✔️ | N/A |
name | string | ✔️ | N/A |
environmentVariables | Record<string, string> | ✔️ | N/A |
setupScript | string | ➖ | N/A |
repositories | components.EnvironmentRepositoryModel[] | ✔️ | N/A |
networkAccess | components.NetworkAccess | ✔️ | How much of the internet a Coding Harness guest reaches through the proxy. Ordered: each level includes the one before it. The model broker and the mka1-github push/PR tool reach the runner directly, and theEnvironment's repositories are cloned on the host before boot, so all of them work at every level, including none. |
createdByUserId | string | ✔️ | N/A |
createdAt | Date | ✔️ | N/A |
updatedAt | Date | ✔️ | N/A |