(slug: string, opts?: { readonly owner?: Owner })
| 15 | |
| 16 | // Minimal app summary builder — only the fields the helpers read matter. |
| 17 | const app = (slug: string, opts?: { readonly owner?: Owner }): OAuthClientSummary => ({ |
| 18 | owner: opts?.owner ?? "org", |
| 19 | slug: OAuthClientSlug.make(slug), |
| 20 | grant: "authorization_code", |
| 21 | authorizationUrl: "https://issuer.example.com/authorize", |
| 22 | tokenUrl: "https://issuer.example.com/token", |
| 23 | resource: null, |
| 24 | clientId: "client-id", |
| 25 | origin: { kind: "manual" }, |
| 26 | }); |
| 27 | |
| 28 | // A connection optionally minted by an app (its `oauthClient` slug). |
| 29 | const connection = ( |
no outgoing calls
no test coverage detected