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