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

Function connectionToOutput

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

Source from the content-addressed store, hash-verified

365const OAuthCancelInputStd = schemaToStandard(OAuthCancelInput);
366
367const 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

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected