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

Function connectionToOutput

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

Source from the content-addressed store, hash-verified

361const OAuthCancelInputStd = schemaToStandard(OAuthCancelInput);
362
363const 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

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected