(value: unknown)
| 130 | }; |
| 131 | |
| 132 | const firstScope = (value: unknown): { readonly id: string; readonly name: string } => { |
| 133 | const data = toolData<{ |
| 134 | readonly scopes: readonly { readonly id: string; readonly name: string }[]; |
| 135 | }>(value); |
| 136 | const scopes = data.scopes; |
| 137 | const scope = scopes?.[0]; |
| 138 | assert(scope, `scopes.list returned no scopes: ${JSON.stringify(value)}`); |
| 139 | return scope; |
| 140 | }; |
| 141 | |
| 142 | const createSecretPlaceholder = async ( |
| 143 | ctx: CliContext, |