MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / connectionToOutput

Function connectionToOutput

packages/core/sdk/src/core-tools.ts:370–384  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

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

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected