Skip to content

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 ​

FieldTypeRequiredDescription
environmentIdnumber✔️N/A
namestring✔️N/A
environmentVariablesRecord<string, string>✔️N/A
setupScriptstring➖N/A
repositoriescomponents.EnvironmentRepositoryModel[]✔️N/A
networkAccesscomponents.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 the
Environment's repositories are cloned on the host before boot, so all of
them work at every level, including none.
createdByUserIdstring✔️N/A
createdAtDate✔️N/A
updatedAtDate✔️N/A