(input: {
readonly slug: string;
readonly integration: string;
readonly connection: string;
readonly template: string;
})
| 279 | `; |
| 280 | |
| 281 | const startConnectionCode = (input: { |
| 282 | readonly slug: string; |
| 283 | readonly integration: string; |
| 284 | readonly connection: string; |
| 285 | readonly template: string; |
| 286 | }) => ` |
| 287 | const started = await tools.executor.coreTools.oauth.start({ |
| 288 | client: ${JSON.stringify(input.slug)}, |
| 289 | clientOwner: "org", |
| 290 | owner: "org", |
| 291 | name: ${JSON.stringify(input.connection)}, |
| 292 | integration: ${JSON.stringify(input.integration)}, |
| 293 | template: ${JSON.stringify(input.template)}, |
| 294 | }); |
| 295 | return started.ok ? { ok: true, status: started.data.status } : { ok: false, error: started.error }; |
| 296 | `; |
| 297 | |
| 298 | const requireOAuthClientCredential = (credential: IssuedCredential) => |
| 299 | Effect.gen(function* () { |
no outgoing calls
no test coverage detected