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

Function connectionToOutput

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

Source from the content-addressed store, hash-verified

369const OAuthCancelInputStd = schemaToStandard(OAuthCancelInput);
370
371const connectionToOutput = (connection: Connection) => ({
372 owner: connection.owner,
373 name: String(connection.name),
374 integration: String(connection.integration),
375 template: String(connection.template),
376 provider: String(connection.provider),
377 address: String(connection.address),
378 identityLabel: connection.identityLabel ?? null,
379 description: connection.description ?? null,
380 expiresAt: connection.expiresAt ?? null,
381 oauthClient: connection.oauthClient == null ? null : String(connection.oauthClient),
382 oauthClientOwner: connection.oauthClientOwner ?? null,
383 oauthScope: connection.oauthScope ?? null,
384 lastHealth: connection.lastHealth ?? null,
385});
386
387/** Number of space-separated grants in an `oauthScope` string, or null when
388 * 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