Example Usage
import { App } from "@openrouter/sdk/models";
let value: App = {
appId: "<id>",
appSlug: "<value>",
installations: [
{
account: "90395233",
accountType: "user",
coverage: {
checkedAt: new Date("2024-07-28T01:53:50.306Z"),
repositoryCount: 283955,
selection: "all",
},
credentialId: "<id>",
holdsToken: false,
isEnabled: false,
isOffForIntern: true,
shadowedBy: "token",
},
],
memberLinks: [],
scope: "workspace",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
appId | string | ✔️ | N/A |
appSlug | string | ✔️ | N/A |
installations | models.Installation[] | ✔️ | N/A |
memberLinks | models.AppMemberLink[] | ✔️ | Members whose own account the vault would act as on this App’s accounts; GitHub still limits a member’s token to what that member can reach. |
scope | models.AppScope | ✔️ | workspace applies to every intern of the workspace; intern to this intern alone. |