| 365 | const OAuthCancelInputStd = schemaToStandard(OAuthCancelInput); |
| 366 | |
| 367 | const connectionToOutput = (connection: Connection) => ({ |
| 368 | owner: connection.owner, |
| 369 | name: String(connection.name), |
| 370 | integration: String(connection.integration), |
| 371 | template: String(connection.template), |
| 372 | provider: String(connection.provider), |
| 373 | address: String(connection.address), |
| 374 | identityLabel: connection.identityLabel ?? null, |
| 375 | description: connection.description ?? null, |
| 376 | expiresAt: connection.expiresAt ?? null, |
| 377 | oauthClient: connection.oauthClient == null ? null : String(connection.oauthClient), |
| 378 | oauthClientOwner: connection.oauthClientOwner ?? null, |
| 379 | oauthScope: connection.oauthScope ?? null, |
| 380 | lastHealth: connection.lastHealth ?? null, |
| 381 | }); |
| 382 | |
| 383 | /** Number of space-separated grants in an `oauthScope` string, or null when |
| 384 | * the connection carries no scope (static credentials, or an OAuth AS that |