Example Usage
import { Installation } from "@openrouter/sdk/models";
let value: Installation = {
account: "79325006",
accountType: "organization",
coverage: {
checkedAt: new Date("2024-07-28T01:53:50.306Z"),
repositoryCount: 283955,
selection: "all",
},
credentialId: "<id>",
holdsToken: false,
isEnabled: true,
isOffForIntern: false,
shadowedBy: "installation",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
account | string | ✔️ | The account the App is installed on, as GitHub spells it. |
accountType | models.AccountType | ✔️ | N/A |
coverage | models.Coverage | ✔️ | What GitHub says the installation covers; null until read. |
credentialId | string | ✔️ | N/A |
holdsToken | boolean | ✔️ | Whether the vault holds a current installation token to inject. |
isEnabled | boolean | ✔️ | N/A |
isOffForIntern | boolean | ✔️ | The workspace turned this shared installation off or hid it for this intern. |
shadowedBy | models.ShadowedBy | ✔️ | What egress uses instead of this installation for a request to its account: an earlier installation on the same account, or a token pinned to the account. Null when this installation answers. |